2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 8.5devel.
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-2010, 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='8.5devel'
602 PACKAGE_STRING='PostgreSQL 8.5devel'
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
674 python_additional_libs
792 program_transform_name
804 enable_option_checking
809 enable_integer_datetimes
839 with_libedit_preferred
850 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of PostgreSQL 8.5devel:";;
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-integer-datetimes
1487 disable 64-bit integer date/time support
1488 --enable-nls[=LANGUAGES]
1489 enable Native Language Support
1490 --disable-shared do not build shared libraries
1491 --disable-rpath do not embed shared library search path in
1493 --disable-spinlocks do not use spinlocks
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-depend turn on automatic dependency tracking
1499 --enable-cassert enable assertion checks (for debugging)
1500 --disable-thread-safety disable thread-safety in client libraries
1501 --disable-float4-byval disable float4 passed by value
1502 --disable-float8-byval disable float8 passed by value
1503 --disable-largefile omit support for large files
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-template=NAME override operating system template
1509 --with-includes=DIRS look for additional header files in DIRS
1510 --with-libraries=DIRS look for additional libraries in DIRS
1511 --with-libs=DIRS alternative spelling of --with-libraries
1512 --with-pgport=PORTNUM set default port number [5432]
1513 --with-blocksize=BLOCKSIZE
1514 set table block size in kB [8]
1515 --with-segsize=SEGSIZE set table segment size in GB [1]
1516 --with-wal-blocksize=BLOCKSIZE
1517 set WAL block size in kB [8]
1518 --with-wal-segsize=SEGSIZE
1519 set WAL segment size in MB [16]
1520 --with-CC=CMD set compiler (deprecated)
1521 --with-tcl build Tcl modules (PL/Tcl)
1522 --with-tclconfig=DIR tclConfig.sh is in DIR
1523 --with-perl build Perl modules (PL/Perl)
1524 --with-python build Python modules (PL/Python)
1525 --with-gssapi build with GSSAPI support
1526 --with-krb5 build with Kerberos 5 support
1527 --with-krb-srvnam=NAME default service principal name in Kerberos
1529 --with-pam build with PAM support
1530 --with-ldap build with LDAP support
1531 --with-bonjour build with Bonjour support
1532 --with-openssl build with OpenSSL support
1533 --without-readline do not use GNU Readline nor BSD Libedit for editing
1534 --with-libedit-preferred
1535 prefer BSD Libedit over GNU Readline
1536 --with-ossp-uuid use OSSP UUID library when building
1538 --with-libxml build with XML support
1539 --with-libxslt use XSLT support when building contrib/xml2
1540 --with-system-tzdata=DIR
1541 use system time zone data in DIR
1542 --without-zlib do not use Zlib
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 LDFLAGS_SL linker flags for shared library linking
1556 location of DocBook stylesheets
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1561 Report bugs to <pgsql-bugs@postgresql.org>.
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1591 .) # We are building in place.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1624 PostgreSQL configure 8.5devel
1625 generated by GNU Autoconf 2.63
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1632 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1640 It was created by PostgreSQL $as_me 8.5devel, which was
1641 generated by GNU Autoconf 2.63. Invocation command line was
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 $as_echo "PATH: $as_dir"
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_must_keep_next=false
1707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709 | -silent | --silent | --silen | --sile | --sil)
1712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718 if test $ac_must_keep_next = true; then
1719 ac_must_keep_next=false # Got value, back to normal.
1722 *=* | --config-cache | -C | -disable-* | --disable-* \
1723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725 | -with-* | --with-* | -without-* | --without-* | --x)
1726 case "$ac_configure_args0 " in
1727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730 -* ) ac_must_keep_next=true ;;
1733 ac_configure_args="$ac_configure_args '$ac_arg'"
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log. We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747 # Save into config.log some information that might help in debugging.
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1757 # The following way of writing the cache mishandles newlines in values,
1759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 eval ac_val=\$$ac_var
1764 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1768 _ | IFS | as_nl) ;; #(
1769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770 *) $as_unset $ac_var ;;
1775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776 *${as_nl}ac_space=\ *)
1778 "s/'\''/'\''\\\\'\'''\''/g;
1779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1795 for ac_var in $ac_subst_vars
1797 eval ac_val=\$$ac_var
1799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 $as_echo "$ac_var='\''$ac_val'\''"
1805 if test -n "$ac_subst_files"; then
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1812 for ac_var in $ac_subst_files
1814 eval ac_val=\$$ac_var
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 $as_echo "$ac_var='\''$ac_val'\''"
1823 if test -s confdefs.h; then
1833 test "$ac_signal" != 0 &&
1834 $as_echo "$as_me: caught signal $ac_signal"
1835 $as_echo "$as_me: exit $exit_status"
1837 rm -f core *.core core.conftest.* &&
1838 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841 for ac_signal in 1 2 13 15; do
1842 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1849 # Predefined preprocessor variables.
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 # Let the site file select an alternate cache file if it wants to.
1877 # Prefer an explicitly selected file to automatically selected ones.
1880 if test -n "$CONFIG_SITE"; then
1881 ac_site_file1=$CONFIG_SITE
1882 elif test "x$prefix" != xNONE; then
1883 ac_site_file1=$prefix/share/config.site
1884 ac_site_file2=$prefix/etc/config.site
1886 ac_site_file1=$ac_default_prefix/share/config.site
1887 ac_site_file2=$ac_default_prefix/etc/config.site
1889 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 test "x$ac_site_file" = xNONE && continue
1892 if test -r "$ac_site_file"; then
1893 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895 sed 's/^/| /' "$ac_site_file" >&5
1900 if test -r "$cache_file"; then
1901 # Some versions of bash will fail to source /dev/null (special
1902 # files actually), so we avoid doing that.
1903 if test -f "$cache_file"; then
1904 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908 *) . "./$cache_file";;
1912 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917 # Check that the precious variables saved in the cache have kept the same
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922 eval ac_new_set=\$ac_env_${ac_var}_set
1923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924 eval ac_new_val=\$ac_env_${ac_var}_value
1925 case $ac_old_set,$ac_new_set in
1927 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1931 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1936 if test "x$ac_old_val" != "x$ac_new_val"; then
1937 # differences in whitespace do not lead to failure.
1938 ac_old_val_w=`echo x $ac_old_val`
1939 ac_new_val_w=`echo x $ac_new_val`
1940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 ac_cache_corrupted=:
1945 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947 eval $ac_var=\$ac_old_val
1949 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1950 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1951 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1952 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1958 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 if $ac_cache_corrupted; then
1968 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974 { (exit 1); exit 1; }; }
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 for ac_dir in config "$srcdir"/config; do
2014 if test -f "$ac_dir/install-sh"; then
2016 ac_install_sh="$ac_aux_dir/install-sh -c"
2018 elif test -f "$ac_dir/install.sh"; then
2020 ac_install_sh="$ac_aux_dir/install.sh -c"
2022 elif test -f "$ac_dir/shtool"; then
2024 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 if test -z "$ac_aux_dir"; then
2029 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2030 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2031 { (exit 1); exit 1; }; }
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2044 configure_args=$ac_configure_args
2048 cat >>confdefs.h <<_ACEOF
2049 #define PG_VERSION "$PACKAGE_VERSION"
2052 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2055 cat >>confdefs.h <<_ACEOF
2056 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2067 $as_echo_n "checking build system type... " >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 $as_echo_n "(cached) " >&6
2071 ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 $as_echo "$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2088 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2093 ac_save_IFS=$IFS; IFS='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2107 $as_echo_n "checking host system type... " >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 $as_echo_n "(cached) " >&6
2111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 $as_echo "$ac_cv_host" >&6; }
2125 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2130 ac_save_IFS=$IFS; IFS='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2146 $as_echo_n "checking which template to use... " >&6; }
2151 # Check whether --with-template was given.
2152 if test "${with_template+set}" = set; then
2153 withval=$with_template;
2156 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2157 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2158 { (exit 1); exit 1; }; }
2161 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2162 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2163 { (exit 1); exit 1; }; }
2168 list) echo; ls "$srcdir/src/template"; exit;;
2169 *) if test -f "$srcdir/src/template/$with_template" ; then
2172 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2173 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2174 { (exit 1); exit 1; }; }
2183 # --with-template not given
2186 aix*) template=aix ;;
2187 bsdi*) template=bsdi ;;
2188 cygwin*) template=cygwin ;;
2189 darwin*) template=darwin ;;
2190 dgux*) template=dgux ;;
2191 freebsd*) template=freebsd ;;
2192 hpux*) template=hpux ;;
2193 irix*) template=irix ;;
2194 linux*|gnu*|k*bsd*-gnu)
2196 mingw*) template=win32 ;;
2197 netbsd*) template=netbsd ;;
2198 nextstep*) template=nextstep ;;
2199 openbsd*) template=openbsd ;;
2200 osf*) template=osf ;;
2201 sco*) template=sco ;;
2202 solaris*) template=solaris ;;
2203 sunos*) template=sunos4 ;;
2205 case $host_vendor in
2206 univel) template=univel ;;
2208 sysv4*) template=svr4 ;;
2209 sysv5*) template=unixware ;;
2210 ultrix*) template=ultrix4 ;;
2213 if test x"$template" = x"" ; then
2214 { { $as_echo "$as_me:$LINENO: error:
2215 *******************************************************************
2216 PostgreSQL has apparently not been ported to your platform yet.
2217 To try a manual configuration, look into the src/template directory
2218 for a similar platform and use the '--with-template=' option.
2220 Please also contact <pgsql-bugs@postgresql.org> to see about
2221 rectifying this. Include the above 'checking host system type...'
2223 *******************************************************************
2225 $as_echo "$as_me: error:
2226 *******************************************************************
2227 PostgreSQL has apparently not been ported to your platform yet.
2228 To try a manual configuration, look into the src/template directory
2229 for a similar platform and use the '--with-template=' option.
2231 Please also contact <pgsql-bugs@postgresql.org> to see about
2232 rectifying this. Include the above 'checking host system type...'
2234 *******************************************************************
2236 { (exit 1); exit 1; }; }
2244 { $as_echo "$as_me:$LINENO: result: $template" >&5
2245 $as_echo "$template" >&6; }
2250 # Initialize default assumption that we do not need separate assembly code
2251 # for TAS (test-and-set). This can be overridden by the template file
2252 # when it's executed.
2259 ## Command line options
2263 # Add non-standard directories to the include path
2268 # Check whether --with-includes was given.
2269 if test "${with_includes+set}" = set; then
2270 withval=$with_includes;
2273 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2274 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2275 { (exit 1); exit 1; }; }
2278 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2279 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2280 { (exit 1); exit 1; }; }
2293 # Add non-standard directories to the library search path
2298 # Check whether --with-libraries was given.
2299 if test "${with_libraries+set}" = set; then
2300 withval=$with_libraries;
2303 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2304 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2305 { (exit 1); exit 1; }; }
2308 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2309 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2310 { (exit 1); exit 1; }; }
2313 LIBRARY_DIRS=$withval
2324 # Check whether --with-libs was given.
2325 if test "${with_libs+set}" = set; then
2329 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2330 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2331 { (exit 1); exit 1; }; }
2334 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2335 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2336 { (exit 1); exit 1; }; }
2339 LIBRARY_DIRS=$withval
2349 # 64-bit integer date/time storage: enabled by default.
2351 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2352 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2355 # Check whether --enable-integer-datetimes was given.
2356 if test "${enable_integer_datetimes+set}" = set; then
2357 enableval=$enable_integer_datetimes;
2361 cat >>confdefs.h <<\_ACEOF
2362 #define USE_INTEGER_DATETIMES 1
2370 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2371 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2372 { (exit 1); exit 1; }; }
2377 enable_integer_datetimes=yes
2379 cat >>confdefs.h <<\_ACEOF
2380 #define USE_INTEGER_DATETIMES 1
2386 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2387 $as_echo "$enable_integer_datetimes" >&6; }
2393 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2394 $as_echo_n "checking whether NLS is wanted... " >&6; }
2397 # Check whether --enable-nls was given.
2398 if test "${enable_nls+set}" = set; then
2399 enableval=$enable_nls;
2409 WANTED_LANGUAGES=$enableval
2419 if test "$enable_nls" = yes; then
2421 cat >>confdefs.h <<\_ACEOF
2422 #define ENABLE_NLS 1
2427 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2428 $as_echo "$enable_nls" >&6; }
2433 # Default port number (--with-pgport), default 5432
2435 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2436 $as_echo_n "checking for default port number... " >&6; }
2440 # Check whether --with-pgport was given.
2441 if test "${with_pgport+set}" = set; then
2442 withval=$with_pgport;
2445 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2446 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2447 { (exit 1); exit 1; }; }
2450 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2451 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2452 { (exit 1); exit 1; }; }
2455 default_port=$withval
2464 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2465 $as_echo "$default_port" >&6; }
2466 # Need both of these because some places want an integer and some a string
2468 cat >>confdefs.h <<_ACEOF
2469 #define DEF_PGPORT ${default_port}
2473 cat >>confdefs.h <<_ACEOF
2474 #define DEF_PGPORT_STR "${default_port}"
2480 # Option to disable shared libraries
2484 # Check whether --enable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486 enableval=$enable_shared;
2495 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2496 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2497 { (exit 1); exit 1; }; }
2510 # '-rpath'-like feature can be disabled
2514 # Check whether --enable-rpath was given.
2515 if test "${enable_rpath+set}" = set; then
2516 enableval=$enable_rpath;
2525 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2526 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2527 { (exit 1); exit 1; }; }
2544 # Check whether --enable-spinlocks was given.
2545 if test "${enable_spinlocks+set}" = set; then
2546 enableval=$enable_spinlocks;
2555 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2556 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2557 { (exit 1); exit 1; }; }
2562 enable_spinlocks=yes
2569 # --enable-debug adds -g to compiler flags
2573 # Check whether --enable-debug was given.
2574 if test "${enable_debug+set}" = set; then
2575 enableval=$enable_debug;
2584 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2585 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2586 { (exit 1); exit 1; }; }
2599 # --enable-profiling enables gcc profiling
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605 enableval=$enable_profiling;
2614 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2615 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2616 { (exit 1); exit 1; }; }
2629 # --enable-coverage enables generation of code coverage metrics with gcov
2633 # Check whether --enable-coverage was given.
2634 if test "${enable_coverage+set}" = set; then
2635 enableval=$enable_coverage;
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_GCOV+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2647 if test -n "$GCOV"; then
2648 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_GCOV="$ac_prog"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 GCOV=$ac_cv_prog_GCOV
2668 if test -n "$GCOV"; then
2669 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2670 $as_echo "$GCOV" >&6; }
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2677 test -n "$GCOV" && break
2680 if test -z "$GCOV"; then
2681 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2682 $as_echo "$as_me: error: gcov not found" >&2;}
2683 { (exit 1); exit 1; }; }
2687 # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_LCOV+set}" = set; then
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$LCOV"; then
2695 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_LCOV="$ac_prog"
2705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 LCOV=$ac_cv_prog_LCOV
2715 if test -n "$LCOV"; then
2716 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2717 $as_echo "$LCOV" >&6; }
2719 { $as_echo "$as_me:$LINENO: result: no" >&5
2720 $as_echo "no" >&6; }
2724 test -n "$LCOV" && break
2727 if test -z "$LCOV"; then
2728 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2729 $as_echo "$as_me: error: lcov not found" >&2;}
2730 { (exit 1); exit 1; }; }
2732 for ac_prog in genhtml
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_GENHTML+set}" = set; then
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$GENHTML"; then
2742 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_GENHTML="$ac_prog"
2752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 GENHTML=$ac_cv_prog_GENHTML
2762 if test -n "$GENHTML"; then
2763 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2764 $as_echo "$GENHTML" >&6; }
2766 { $as_echo "$as_me:$LINENO: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$GENHTML" && break
2774 if test -z "$GENHTML"; then
2775 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2776 $as_echo "$as_me: error: genhtml not found" >&2;}
2777 { (exit 1); exit 1; }; }
2784 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2785 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2786 { (exit 1); exit 1; }; }
2803 # Check whether --enable-dtrace was given.
2804 if test "${enable_dtrace+set}" = set; then
2805 enableval=$enable_dtrace;
2809 cat >>confdefs.h <<\_ACEOF
2810 #define ENABLE_DTRACE 1
2813 for ac_prog in dtrace
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_DTRACE+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$DTRACE"; then
2823 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_DTRACE="$ac_prog"
2833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 DTRACE=$ac_cv_prog_DTRACE
2843 if test -n "$DTRACE"; then
2844 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2845 $as_echo "$DTRACE" >&6; }
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$DTRACE" && break
2855 if test -z "$DTRACE"; then
2856 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2857 $as_echo "$as_me: error: dtrace not found" >&2;}
2858 { (exit 1); exit 1; }; }
2866 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2867 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2868 { (exit 1); exit 1; }; }
2883 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2884 $as_echo_n "checking for block size... " >&6; }
2888 # Check whether --with-blocksize was given.
2889 if test "${with_blocksize+set}" = set; then
2890 withval=$with_blocksize;
2893 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2894 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2895 { (exit 1); exit 1; }; }
2898 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2899 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2900 { (exit 1); exit 1; }; }
2912 case ${blocksize} in
2919 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2920 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2921 { (exit 1); exit 1; }; }
2923 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2924 $as_echo "${blocksize}kB" >&6; }
2927 cat >>confdefs.h <<_ACEOF
2928 #define BLCKSZ ${BLCKSZ}
2933 # Relation segment size
2935 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2936 $as_echo_n "checking for segment size... " >&6; }
2940 # Check whether --with-segsize was given.
2941 if test "${with_segsize+set}" = set; then
2942 withval=$with_segsize;
2945 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2946 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2947 { (exit 1); exit 1; }; }
2950 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2951 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2952 { (exit 1); exit 1; }; }
2964 # this expression is set up to avoid unnecessary integer overflow
2965 # blocksize is already guaranteed to be a factor of 1024
2966 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2967 test $? -eq 0 || exit 1
2968 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2969 $as_echo "${segsize}GB" >&6; }
2972 cat >>confdefs.h <<_ACEOF
2973 #define RELSEG_SIZE ${RELSEG_SIZE}
2980 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2981 $as_echo_n "checking for WAL block size... " >&6; }
2985 # Check whether --with-wal-blocksize was given.
2986 if test "${with_wal_blocksize+set}" = set; then
2987 withval=$with_wal_blocksize;
2990 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2991 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2992 { (exit 1); exit 1; }; }
2995 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2996 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2997 { (exit 1); exit 1; }; }
3000 wal_blocksize=$withval
3009 case ${wal_blocksize} in
3010 1) XLOG_BLCKSZ=1024;;
3011 2) XLOG_BLCKSZ=2048;;
3012 4) XLOG_BLCKSZ=4096;;
3013 8) XLOG_BLCKSZ=8192;;
3014 16) XLOG_BLCKSZ=16384;;
3015 32) XLOG_BLCKSZ=32768;;
3016 64) XLOG_BLCKSZ=65536;;
3017 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3018 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3019 { (exit 1); exit 1; }; }
3021 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3022 $as_echo "${wal_blocksize}kB" >&6; }
3025 cat >>confdefs.h <<_ACEOF
3026 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3033 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3034 $as_echo_n "checking for WAL segment size... " >&6; }
3038 # Check whether --with-wal-segsize was given.
3039 if test "${with_wal_segsize+set}" = set; then
3040 withval=$with_wal_segsize;
3043 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3044 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3045 { (exit 1); exit 1; }; }
3048 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3049 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3050 { (exit 1); exit 1; }; }
3053 wal_segsize=$withval
3062 case ${wal_segsize} in
3070 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3071 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3072 { (exit 1); exit 1; }; }
3074 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3075 $as_echo "${wal_segsize}MB" >&6; }
3078 cat >>confdefs.h <<_ACEOF
3079 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3087 # For historical reasons you can also use --with-CC to specify the C compiler
3088 # to use, although the standard way to do this is to set the CC environment
3093 # Check whether --with-CC was given.
3094 if test "${with_CC+set}" = set; then
3098 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3099 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3100 { (exit 1); exit 1; }; }
3103 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3104 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3105 { (exit 1); exit 1; }; }
3117 aix) pgac_cc_list="gcc xlc";;
3118 irix) pgac_cc_list="cc";; # no gcc
3119 *) pgac_cc_list="gcc cc";;
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in $pgac_cc_list
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$CC" && break
3170 if test -z "$CC"; then
3172 for ac_prog in $pgac_cc_list
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC="$ac_prog"
3192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3206 { $as_echo "$as_me:$LINENO: result: no" >&5
3207 $as_echo "no" >&6; }
3211 test -n "$ac_ct_CC" && break
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3228 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details." >&5
3232 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }; }
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3240 { (ac_try="$ac_compiler --version >&5"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compiler --version >&5") 2>&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251 { (ac_try="$ac_compiler -v >&5"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compiler -v >&5") 2>&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compiler -V >&5") 2>&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { (ac_try="$ac_link_default"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318 (eval "$ac_link_default") 2>&5
3320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; then
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3327 for ac_file in $ac_files ''
3329 test -f "$ac_file" || continue
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 # We found the default executable, but exeext='' is most
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3358 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3359 $as_echo "$ac_file" >&6; }
3360 if test -z "$ac_file"; then
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3367 See \`config.log' for more details." >&5
3368 $as_echo "$as_me: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&2;}
3370 { (exit 77); exit 77; }; }; }
3373 ac_exeext=$ac_cv_exeext
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3378 $as_echo_n "checking whether the C compiler works... " >&6; }
3379 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3380 # If not cross compiling, check that we can run a simple program.
3381 if test "$cross_compiling" != yes; then
3382 if { ac_try='./$ac_file'
3383 { (case "(($ac_try" in
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_try") 2>&5
3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&2;}
3406 { (exit 1); exit 1; }; }; }
3410 { $as_echo "$as_me:$LINENO: result: yes" >&5
3411 $as_echo "yes" >&6; }
3413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3414 ac_clean_files=$ac_clean_files_save
3415 # Check that the compiler produces executables we can run. If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { (ac_try="$ac_link"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430 $as_echo "$ac_try_echo") >&5
3431 (eval "$ac_link") 2>&5
3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; then
3435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 for ac_file in conftest.exe conftest conftest.*; do
3440 test -f "$ac_file" || continue
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." >&5
3453 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }; }
3458 rm -f conftest$ac_cv_exeext
3459 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3460 $as_echo "$ac_cv_exeext" >&6; }
3462 rm -f conftest.$ac_ext
3463 EXEEXT=$ac_cv_exeext
3465 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3466 $as_echo_n "checking for suffix of object files... " >&6; }
3467 if test "${ac_cv_objext+set}" = set; then
3468 $as_echo_n "(cached) " >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3485 rm -f conftest.o conftest.obj
3486 if { (ac_try="$ac_compile"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_compile") 2>&5
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; then
3497 for ac_file in conftest.o conftest.obj conftest.*; do
3498 test -f "$ac_file" || continue;
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3501 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details." >&5
3513 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }; }
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3524 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3527 $as_echo_n "(cached) " >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3554 $as_echo "$ac_try_echo") >&5
3555 (eval "$ac_compile") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && {
3562 test -z "$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 } && test -s conftest.$ac_objext; then
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3577 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then
3589 $as_echo_n "(cached) " >&6
3591 ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3617 $as_echo "$ac_try_echo") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3669 $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3689 rm -f conftest.$ac_objext
3690 if { (ac_try="$ac_compile"
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3696 $as_echo "$ac_try_echo") >&5
3697 (eval "$ac_compile") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && {
3704 test -z "$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3706 } && test -s conftest.$ac_objext; then
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3724 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3725 $as_echo "$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727 CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729 if test "$GCC" = yes; then
3735 if test "$GCC" = yes; then
3741 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743 if test "${ac_cv_prog_cc_c89+set}" = set; then
3744 $as_echo_n "(cached) " >&6
3746 ac_cv_prog_cc_c89=no
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3772 s = g (p, va_arg (v,int));
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3778 function prototypes and stuff, but not '\xHH' hex character constants.
3779 These don't provoke an error unfortunately, instead are silently treated
3780 as 'x'. The following induces an error, until -std is added to get
3781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3782 array size at least. It's necessary to write '\x00'==0 to get something
3783 that's true only with -std. */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787 inside strings and character constants. */
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3808 CC="$ac_save_CC $ac_arg"
3809 rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3816 $as_echo "$ac_try_echo") >&5
3817 (eval "$ac_compile") 2>conftest.er1
3819 grep -v '^ *+' conftest.er1 >conftest.err
3821 cat conftest.err >&5
3822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } && {
3824 test -z "$ac_c_werror_flag" ||
3825 test ! -s conftest.err
3826 } && test -s conftest.$ac_objext; then
3827 ac_cv_prog_cc_c89=$ac_arg
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3835 rm -f core conftest.err conftest.$ac_objext
3836 test "x$ac_cv_prog_cc_c89" != "xno" && break
3838 rm -f conftest.$ac_ext
3843 case "x$ac_cv_prog_cc_c89" in
3845 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3848 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3851 CC="$CC $ac_cv_prog_cc_c89"
3852 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3865 # but has idiosyncrasies of its own. We assume icc will define
3866 # __INTEL_COMPILER regardless of CFLAGS.
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3878 #ifndef __INTEL_COMPILER
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 # Check if it's Sun Studio compiler. We assume that
3914 # __SUNPRO_C will be defined for Sun Studio compilers
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3939 $as_echo "$ac_try_echo") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 . "$srcdir/src/template/$template" || exit
3969 # CFLAGS are selected so:
3970 # If the user specifies something in the environment, that is used.
3971 # else: If the template file set something, that is used.
3972 # else: If coverage was enabled, don't set anything.
3973 # else: If the compiler is GCC, then we use -O2.
3974 # else: If the compiler is something else, then we use -O, unless debugging.
3976 if test "$ac_env_CFLAGS_set" = set; then
3977 CFLAGS=$ac_env_CFLAGS_value
3978 elif test "${CFLAGS+set}" = set; then
3979 : # (keep what template set)
3980 elif test "$enable_coverage" = yes; then
3981 : # no optimization by default
3982 elif test "$GCC" = yes; then
3985 # if the user selected debug mode, don't use -O
3986 if test "$enable_debug" != yes; then
3991 # Some versions of GCC support some additional useful warning flags.
3992 # Check whether they are supported, and add them to CFLAGS if so.
3993 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3994 # but has its own. Also check other compiler-specific flags here.
3996 if test "$GCC" = yes -a "$ICC" = no; then
3997 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3998 # These work in some but not all gcc versions
3999 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4000 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4001 pgac_save_CFLAGS=$CFLAGS
4002 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4025 $as_echo "$ac_try_echo") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } && {
4033 test -z "$ac_c_werror_flag" ||
4034 test ! -s conftest.err
4035 } && test -s conftest.$ac_objext; then
4036 { $as_echo "$as_me:$LINENO: result: yes" >&5
4037 $as_echo "yes" >&6; }
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 CFLAGS="$pgac_save_CFLAGS"
4043 { $as_echo "$as_me:$LINENO: result: no" >&5
4044 $as_echo "no" >&6; }
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4050 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4051 pgac_save_CFLAGS=$CFLAGS
4052 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 { $as_echo "$as_me:$LINENO: result: yes" >&5
4087 $as_echo "yes" >&6; }
4089 $as_echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 CFLAGS="$pgac_save_CFLAGS"
4093 { $as_echo "$as_me:$LINENO: result: no" >&5
4094 $as_echo "no" >&6; }
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 # Disable strict-aliasing rules; needed for gcc 3.3+
4100 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4101 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4102 pgac_save_CFLAGS=$CFLAGS
4103 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4126 $as_echo "$ac_try_echo") >&5
4127 (eval "$ac_compile") 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } && {
4134 test -z "$ac_c_werror_flag" ||
4135 test ! -s conftest.err
4136 } && test -s conftest.$ac_objext; then
4137 { $as_echo "$as_me:$LINENO: result: yes" >&5
4138 $as_echo "yes" >&6; }
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 CFLAGS="$pgac_save_CFLAGS"
4144 { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4151 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4152 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4153 pgac_save_CFLAGS=$CFLAGS
4154 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4170 rm -f conftest.$ac_objext
4171 if { (ac_try="$ac_compile"
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && {
4185 test -z "$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 } && test -s conftest.$ac_objext; then
4188 { $as_echo "$as_me:$LINENO: result: yes" >&5
4189 $as_echo "yes" >&6; }
4191 $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 CFLAGS="$pgac_save_CFLAGS"
4195 { $as_echo "$as_me:$LINENO: result: no" >&5
4196 $as_echo "no" >&6; }
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 elif test "$ICC" = yes; then
4202 # Intel's compiler has a bug/misoptimization in checking for
4203 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4204 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4205 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4206 pgac_save_CFLAGS=$CFLAGS
4207 CFLAGS="$pgac_save_CFLAGS -mp1"
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230 $as_echo "$ac_try_echo") >&5
4231 (eval "$ac_compile") 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } && {
4238 test -z "$ac_c_werror_flag" ||
4239 test ! -s conftest.err
4240 } && test -s conftest.$ac_objext; then
4241 { $as_echo "$as_me:$LINENO: result: yes" >&5
4242 $as_echo "yes" >&6; }
4244 $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 CFLAGS="$pgac_save_CFLAGS"
4248 { $as_echo "$as_me:$LINENO: result: no" >&5
4249 $as_echo "no" >&6; }
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 # Make sure strict aliasing is off (though this is said to be the default)
4255 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4256 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4257 pgac_save_CFLAGS=$CFLAGS
4258 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 { $as_echo "$as_me:$LINENO: result: yes" >&5
4293 $as_echo "yes" >&6; }
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 CFLAGS="$pgac_save_CFLAGS"
4299 { $as_echo "$as_me:$LINENO: result: no" >&5
4300 $as_echo "no" >&6; }
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 elif test "$PORTNAME" = "aix"; then
4306 # AIX's xlc has to have strict aliasing turned off too
4307 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4308 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4309 pgac_save_CFLAGS=$CFLAGS
4310 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4326 rm -f conftest.$ac_objext
4327 if { (ac_try="$ac_compile"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334 (eval "$ac_compile") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest.$ac_objext; then
4344 { $as_echo "$as_me:$LINENO: result: yes" >&5
4345 $as_echo "yes" >&6; }
4347 $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 CFLAGS="$pgac_save_CFLAGS"
4351 { $as_echo "$as_me:$LINENO: result: no" >&5
4352 $as_echo "no" >&6; }
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 # supply -g if --enable-debug
4360 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4364 # enable code coverage if --enable-coverage
4365 if test "$enable_coverage" = yes; then
4366 if test "$GCC" = yes; then
4367 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4369 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4370 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4371 { (exit 1); exit 1; }; }
4375 # enable profiling if --enable-profiling
4376 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4377 if test "$GCC" = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4380 #define PROFILE_PID_DIR 1
4383 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4385 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4386 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4387 { (exit 1); exit 1; }; }
4391 # We already have this in Makefile.win32, but configure needs it too
4392 if test "$PORTNAME" = "win32"; then
4393 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4396 # Check if the compiler still works with the template settings
4397 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4398 $as_echo_n "checking whether the C compiler still works... " >&6; }
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4414 rm -f conftest.$ac_objext conftest$ac_exeext
4415 if { (ac_try="$ac_link"
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4421 $as_echo "$ac_try_echo") >&5
4422 (eval "$ac_link") 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } && {
4429 test -z "$ac_c_werror_flag" ||
4430 test ! -s conftest.err
4431 } && test -s conftest$ac_exeext && {
4432 test "$cross_compiling" = yes ||
4433 $as_test_x conftest$ac_exeext
4435 { $as_echo "$as_me:$LINENO: result: yes" >&5
4436 $as_echo "yes" >&6; }
4438 $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 { $as_echo "$as_me:$LINENO: result: no" >&5
4442 $as_echo "no" >&6; }
4443 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4444 $as_echo "$as_me: error: cannot proceed" >&2;}
4445 { (exit 1); exit 1; }; }
4448 rm -rf conftest.dSYM
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450 conftest$ac_exeext conftest.$ac_ext
4452 # Defend against gcc -ffast-math
4453 if test "$GCC" = yes; then
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4464 #ifdef __FAST_MATH__
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
4491 $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4495 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4496 { (exit 1); exit 1; }; }
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4509 # On Suns, sometimes $CPP names a directory.
4510 if test -n "$CPP" && test -d "$CPP"; then
4513 if test -z "$CPP"; then
4514 if test "${ac_cv_prog_CPP+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4517 # Double quotes because CPP needs to be expanded
4518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4521 for ac_c_preproc_warn_flag in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4536 # include <limits.h>
4538 # include <assert.h>
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4548 $as_echo "$ac_try_echo") >&5
4549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } >/dev/null && {
4556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557 test ! -s conftest.err
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 # Broken: fails on valid input.
4568 rm -f conftest.err conftest.$ac_ext
4570 # OK, works on sane cases. Now check whether nonexistent headers
4571 # can be detected and how.
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #include <ac_nonexistent.h>
4580 if { (ac_try="$ac_cpp conftest.$ac_ext"
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586 $as_echo "$ac_try_echo") >&5
4587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } >/dev/null && {
4594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4597 # Broken: success on invalid input.
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 # Passes both tests.
4608 rm -f conftest.err conftest.$ac_ext
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then
4625 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4626 $as_echo "$CPP" >&6; }
4628 for ac_c_preproc_warn_flag in '' yes
4630 # Use a header file that comes with gcc, so configuring glibc
4631 # with a fresh cross-compiler works.
4632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 # <limits.h> exists even on freestanding compilers.
4634 # On the NeXT, cc -E runs the code through the compiler's parser,
4635 # not just through cpp. "Syntax error" is here to catch this case.
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4643 # include <limits.h>
4645 # include <assert.h>
4649 if { (ac_try="$ac_cpp conftest.$ac_ext"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 $as_echo "$ac_try_echo") >&5
4656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } >/dev/null && {
4663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4668 $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 # Broken: fails on valid input.
4675 rm -f conftest.err conftest.$ac_ext
4677 # OK, works on sane cases. Now check whether nonexistent headers
4678 # can be detected and how.
4679 cat >conftest.$ac_ext <<_ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 #include <ac_nonexistent.h>
4687 if { (ac_try="$ac_cpp conftest.$ac_ext"
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } >/dev/null && {
4701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4704 # Broken: success on invalid input.
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 # Passes both tests.
4715 rm -f conftest.err conftest.$ac_ext
4718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4719 rm -f conftest.err conftest.$ac_ext
4720 if $ac_preproc_ok; then
4723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4725 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4726 See \`config.log' for more details." >&5
4727 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details." >&2;}
4729 { (exit 1); exit 1; }; }; }
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 # Set up TAS assembly code if needed; the template file has now had its
4743 # chance to request this.
4745 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4748 if test "$need_tas" = yes ; then
4757 # Automatic dependency tracking
4761 # Check whether --enable-depend was given.
4762 if test "${enable_depend+set}" = set; then
4763 enableval=$enable_depend;
4772 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4773 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4774 { (exit 1); exit 1; }; }
4788 # Enable assert checks
4792 # Check whether --enable-cassert was given.
4793 if test "${enable_cassert+set}" = set; then
4794 enableval=$enable_cassert;
4798 cat >>confdefs.h <<\_ACEOF
4799 #define USE_ASSERT_CHECKING 1
4807 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4808 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4809 { (exit 1); exit 1; }; }
4822 # Include directories
4825 IFS="${IFS}${PATH_SEPARATOR}"
4826 # SRCH_INC comes from the template file
4827 for dir in $with_includes $SRCH_INC; do
4828 if test -d "$dir"; then
4829 INCLUDES="$INCLUDES -I$dir"
4831 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4832 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4840 # Library directories
4843 IFS="${IFS}${PATH_SEPARATOR}"
4844 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4845 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4846 if test -d "$dir"; then
4847 LIBDIRS="$LIBDIRS -L$dir"
4849 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4850 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4856 # Enable thread-safe client libraries
4858 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4859 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4862 # Check whether --enable-thread-safety was given.
4863 if test "${enable_thread_safety+set}" = set; then
4864 enableval=$enable_thread_safety;
4873 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4874 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4875 { (exit 1); exit 1; }; }
4880 enable_thread_safety=yes
4885 if test "$enable_thread_safety" = yes; then
4887 cat >>confdefs.h <<\_ACEOF
4888 #define ENABLE_THREAD_SAFETY 1
4892 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4893 $as_echo "$enable_thread_safety" >&6; }
4897 # Optionally build Tcl modules (PL/Tcl)
4899 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4900 $as_echo_n "checking whether to build with Tcl... " >&6; }
4904 # Check whether --with-tcl was given.
4905 if test "${with_tcl+set}" = set; then
4915 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4916 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4917 { (exit 1); exit 1; }; }
4927 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4928 $as_echo "$with_tcl" >&6; }
4931 # We see if the path to the Tcl/Tk configuration scripts is specified.
4932 # This will override the use of tclsh to find the paths to search.
4937 # Check whether --with-tclconfig was given.
4938 if test "${with_tclconfig+set}" = set; then
4939 withval=$with_tclconfig;
4942 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4943 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4944 { (exit 1); exit 1; }; }
4947 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4948 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4949 { (exit 1); exit 1; }; }
4961 # Optionally build Perl modules (PL/Perl)
4963 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4964 $as_echo_n "checking whether to build Perl modules... " >&6; }
4968 # Check whether --with-perl was given.
4969 if test "${with_perl+set}" = set; then
4979 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4980 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4981 { (exit 1); exit 1; }; }
4991 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4992 $as_echo "$with_perl" >&6; }
4996 # Optionally build Python modules (PL/Python)
4998 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4999 $as_echo_n "checking whether to build Python modules... " >&6; }
5003 # Check whether --with-python was given.
5004 if test "${with_python+set}" = set; then
5005 withval=$with_python;
5014 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5015 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5016 { (exit 1); exit 1; }; }
5026 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5027 $as_echo "$with_python" >&6; }
5033 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5034 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5038 # Check whether --with-gssapi was given.
5039 if test "${with_gssapi+set}" = set; then
5040 withval=$with_gssapi;
5045 cat >>confdefs.h <<\_ACEOF
5046 #define ENABLE_GSS 1
5049 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5056 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5057 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5058 { (exit 1); exit 1; }; }
5068 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5069 $as_echo "$with_gssapi" >&6; }
5075 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5076 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5080 # Check whether --with-krb5 was given.
5081 if test "${with_krb5+set}" = set; then
5087 cat >>confdefs.h <<\_ACEOF
5091 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5098 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5099 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5100 { (exit 1); exit 1; }; }
5110 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5111 $as_echo "$with_krb5" >&6; }
5119 # Kerberos configuration parameters
5124 # Check whether --with-krb-srvnam was given.
5125 if test "${with_krb_srvnam+set}" = set; then
5126 withval=$with_krb_srvnam;
5129 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5130 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5131 { (exit 1); exit 1; }; }
5134 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5135 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5136 { (exit 1); exit 1; }; }
5144 with_krb_srvnam="postgres"
5149 cat >>confdefs.h <<_ACEOF
5150 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5158 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5159 $as_echo_n "checking whether to build with PAM support... " >&6; }
5163 # Check whether --with-pam was given.
5164 if test "${with_pam+set}" = set; then
5169 cat >>confdefs.h <<\_ACEOF
5178 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5179 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5180 { (exit 1); exit 1; }; }
5190 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5191 $as_echo "$with_pam" >&6; }
5198 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5199 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5203 # Check whether --with-ldap was given.
5204 if test "${with_ldap+set}" = set; then
5209 cat >>confdefs.h <<\_ACEOF
5218 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5219 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5220 { (exit 1); exit 1; }; }
5230 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5231 $as_echo "$with_ldap" >&6; }
5238 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5239 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5243 # Check whether --with-bonjour was given.
5244 if test "${with_bonjour+set}" = set; then
5245 withval=$with_bonjour;
5249 cat >>confdefs.h <<\_ACEOF
5250 #define USE_BONJOUR 1
5258 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5259 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5260 { (exit 1); exit 1; }; }
5270 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5271 $as_echo "$with_bonjour" >&6; }
5278 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5279 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5283 # Check whether --with-openssl was given.
5284 if test "${with_openssl+set}" = set; then
5285 withval=$with_openssl;
5289 cat >>confdefs.h <<\_ACEOF
5298 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5299 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5300 { (exit 1); exit 1; }; }
5310 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5311 $as_echo "$with_openssl" >&6; }
5321 # Check whether --with-readline was given.
5322 if test "${with_readline+set}" = set; then
5323 withval=$with_readline;
5332 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5333 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5334 { (exit 1); exit 1; }; }
5344 # readline on MinGW has problems with backslashes in psql and other bugs.
5345 # This is particularly a problem with non-US code pages.
5346 # Therefore disable its use until we understand the cause. 2004-07-20
5347 if test "$PORTNAME" = "win32"; then
5348 if test "$with_readline" = yes; then
5349 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5350 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5362 # Check whether --with-libedit-preferred was given.
5363 if test "${with_libedit_preferred+set}" = set; then
5364 withval=$with_libedit_preferred;
5373 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5374 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5375 { (exit 1); exit 1; }; }
5380 with_libedit_preferred=no
5393 # Check whether --with-ossp-uuid was given.
5394 if test "${with_ossp_uuid+set}" = set; then
5395 withval=$with_ossp_uuid;
5404 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5405 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5406 { (exit 1); exit 1; }; }
5425 # Check whether --with-libxml was given.
5426 if test "${with_libxml+set}" = set; then
5427 withval=$with_libxml;
5431 cat >>confdefs.h <<\_ACEOF
5432 #define USE_LIBXML 1
5440 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5441 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5442 { (exit 1); exit 1; }; }
5453 if test "$with_libxml" = yes ; then
5454 for ac_prog in xml2-config
5456 # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$XML2_CONFIG"; then
5464 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_XML2_CONFIG="$ac_prog"
5474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5484 if test -n "$XML2_CONFIG"; then
5485 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5486 $as_echo "$XML2_CONFIG" >&6; }
5488 { $as_echo "$as_me:$LINENO: result: no" >&5
5489 $as_echo "no" >&6; }
5493 test -n "$XML2_CONFIG" && break
5496 if test -n "$XML2_CONFIG"; then
5497 for pgac_option in `$XML2_CONFIG --cflags`; do
5498 case $pgac_option in
5499 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5502 for pgac_option in `$XML2_CONFIG --libs`; do
5503 case $pgac_option in
5504 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5518 # Check whether --with-libxslt was given.
5519 if test "${with_libxslt+set}" = set; then
5520 withval=$with_libxslt;
5524 cat >>confdefs.h <<\_ACEOF
5525 #define USE_LIBXSLT 1
5533 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5534 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5535 { (exit 1); exit 1; }; }
5555 # Check whether --with-system-tzdata was given.
5556 if test "${with_system_tzdata+set}" = set; then
5557 withval=$with_system_tzdata;
5560 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5561 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5562 { (exit 1); exit 1; }; }
5565 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5566 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5567 { (exit 1); exit 1; }; }
5585 # Check whether --with-zlib was given.
5586 if test "${with_zlib+set}" = set; then
5596 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5597 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5598 { (exit 1); exit 1; }; }
5614 # Assume system is ELF if it predefines __ELF__ as 1,
5615 # otherwise believe host_os based default.
5617 freebsd1*|freebsd2*) elf=no;;
5618 freebsd3*|freebsd4*) elf=yes;;
5622 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5624 if test "${ac_cv_path_GREP+set}" = set; then
5625 $as_echo_n "(cached) " >&6
5627 if test -z "$GREP"; then
5628 ac_path_GREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in grep ggrep; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5639 # Check for GNU ac_path_GREP and select it if it is found.
5640 # Check for GNU $ac_path_GREP
5641 case `"$ac_path_GREP" --version 2>&1` in
5643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5646 $as_echo_n 0123456789 >"conftest.in"
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo 'GREP' >> "conftest.nl"
5653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 ac_count=`expr $ac_count + 1`
5656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_GREP="$ac_path_GREP"
5659 ac_path_GREP_max=$ac_count
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 $ac_path_GREP_found && break 3
5672 if test -z "$ac_cv_path_GREP"; then
5673 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675 { (exit 1); exit 1; }; }
5678 ac_cv_path_GREP=$GREP
5682 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5683 $as_echo "$ac_cv_path_GREP" >&6; }
5684 GREP="$ac_cv_path_GREP"
5687 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5688 $as_echo_n "checking for egrep... " >&6; }
5689 if test "${ac_cv_path_EGREP+set}" = set; then
5690 $as_echo_n "(cached) " >&6
5692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5693 then ac_cv_path_EGREP="$GREP -E"
5695 if test -z "$EGREP"; then
5696 ac_path_EGREP_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 test -z "$as_dir" && as_dir=.
5703 for ac_prog in egrep; do
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5706 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5707 # Check for GNU ac_path_EGREP and select it if it is found.
5708 # Check for GNU $ac_path_EGREP
5709 case `"$ac_path_EGREP" --version 2>&1` in
5711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5714 $as_echo_n 0123456789 >"conftest.in"
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo 'EGREP' >> "conftest.nl"
5721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723 ac_count=`expr $ac_count + 1`
5724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_EGREP="$ac_path_EGREP"
5727 ac_path_EGREP_max=$ac_count
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 $ac_path_EGREP_found && break 3
5740 if test -z "$ac_cv_path_EGREP"; then
5741 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743 { (exit 1); exit 1; }; }
5746 ac_cv_path_EGREP=$EGREP
5751 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5752 $as_echo "$ac_cv_path_EGREP" >&6; }
5753 EGREP="$ac_cv_path_EGREP"
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5768 $EGREP "yes" >/dev/null 2>&1; then
5771 if test "X$elf" = "Xyes" ; then
5785 CPPFLAGS="$CPPFLAGS $INCLUDES"
5786 LDFLAGS="$LDFLAGS $LIBDIRS"
5791 # Check whether --with-gnu-ld was given.
5792 if test "${with_gnu_ld+set}" = set; then
5793 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5799 if test "$GCC" = yes; then
5800 # Check if gcc -print-prog-name=ld gives a path.
5801 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5802 $as_echo_n "checking for ld used by GCC... " >&6; }
5805 # gcc leaves a trailing carriage return which upsets mingw
5806 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5808 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5811 # Accept absolute paths.
5812 [\\/]* | [A-Za-z]:[\\/]*)
5813 re_direlt='/[^/][^/]*/\.\./'
5814 # Canonicalize the path of ld
5815 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5816 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5817 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5819 test -z "$LD" && LD="$ac_prog"
5822 # If it fails, then pretend we aren't using GCC.
5826 # If it is relative, then search for the first ld in PATH.
5830 elif test "$with_gnu_ld" = yes; then
5831 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5832 $as_echo_n "checking for GNU ld... " >&6; }
5834 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5835 $as_echo_n "checking for non-GNU ld... " >&6; }
5837 if test "${ac_cv_path_LD+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5840 if test -z "$LD"; then
5841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5842 for ac_dir in $PATH; do
5843 test -z "$ac_dir" && ac_dir=.
5844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5845 ac_cv_path_LD="$ac_dir/$ac_prog"
5846 # Check to see if the program is GNU ld. I'd rather use --version,
5847 # but apparently some GNU ld's only accept -v.
5848 # Break only if it was the GNU/non-GNU ld that we prefer.
5849 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5850 test "$with_gnu_ld" != no && break
5852 test "$with_gnu_ld" != yes && break
5858 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5863 if test -n "$LD"; then
5864 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5867 { $as_echo "$as_me:$LINENO: result: no" >&5
5868 $as_echo "no" >&6; }
5870 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5871 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5872 { (exit 1); exit 1; }; }
5873 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5878 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5879 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5880 ac_cv_prog_gnu_ld=yes
5882 ac_cv_prog_gnu_ld=no
5885 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5886 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5887 with_gnu_ld=$ac_cv_prog_gnu_ld
5892 case $host_os in sysv5*)
5893 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5894 $as_echo_n "checking whether ld -R works... " >&6; }
5895 if test "${pgac_cv_prog_ld_R+set}" = set; then
5896 $as_echo_n "(cached) " >&6
5899 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (ac_try="$ac_link"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923 (eval "$ac_link") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext && {
5933 test "$cross_compiling" = yes ||
5934 $as_test_x conftest$ac_exeext
5936 pgac_cv_prog_ld_R=yes
5938 $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 pgac_cv_prog_ld_R=no
5944 rm -rf conftest.dSYM
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5946 conftest$ac_exeext conftest.$ac_ext
5947 LDFLAGS=$pgac_save_LDFLAGS
5950 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5951 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5952 ld_R_works=$pgac_cv_prog_ld_R
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_RANLIB+set}" = set; then
5961 $as_echo_n "(cached) " >&6
5963 if test -n "$RANLIB"; then
5964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 RANLIB=$ac_cv_prog_RANLIB
5984 if test -n "$RANLIB"; then
5985 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5986 $as_echo "$RANLIB" >&6; }
5988 { $as_echo "$as_me:$LINENO: result: no" >&5
5989 $as_echo "no" >&6; }
5994 if test -z "$ac_cv_prog_RANLIB"; then
5995 ac_ct_RANLIB=$RANLIB
5996 # Extract the first word of "ranlib", so it can be a program name with args.
5997 set dummy ranlib; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$ac_ct_RANLIB"; then
6004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_RANLIB="ranlib"
6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024 if test -n "$ac_ct_RANLIB"; then
6025 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6026 $as_echo "$ac_ct_RANLIB" >&6; }
6028 { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6032 if test "x$ac_ct_RANLIB" = x; then
6035 case $cross_compiling:$ac_tool_warned in
6037 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6041 RANLIB=$ac_ct_RANLIB
6044 RANLIB="$ac_cv_prog_RANLIB"
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_STRIP+set}" = set; then
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$STRIP"; then
6057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 STRIP=$ac_cv_prog_STRIP
6077 if test -n "$STRIP"; then
6078 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6079 $as_echo "$STRIP" >&6; }
6081 { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6087 if test -z "$ac_cv_prog_STRIP"; then
6089 # Extract the first word of "strip", so it can be a program name with args.
6090 set dummy strip; ac_word=$2
6091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6094 $as_echo_n "(cached) " >&6
6096 if test -n "$ac_ct_STRIP"; then
6097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_STRIP="strip"
6107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117 if test -n "$ac_ct_STRIP"; then
6118 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6119 $as_echo "$ac_ct_STRIP" >&6; }
6121 { $as_echo "$as_me:$LINENO: result: no" >&5
6122 $as_echo "no" >&6; }
6125 if test "x$ac_ct_STRIP" = x; then
6128 case $cross_compiling:$ac_tool_warned in
6130 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6137 STRIP="$ac_cv_prog_STRIP"
6141 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6142 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6143 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6144 STRIP_STATIC_LIB="$STRIP -x"
6145 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6146 { $as_echo "$as_me:$LINENO: result: yes" >&5
6147 $as_echo "yes" >&6; }
6151 { $as_echo "$as_me:$LINENO: result: no" >&5
6152 $as_echo "no" >&6; }
6157 if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}ar; ac_word=$2
6160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_AR+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$AR"; then
6166 ac_cv_prog_AR="$AR" # Let the user override the test.
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_AR="${ac_tool_prefix}ar"
6176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 if test -n "$AR"; then
6187 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6188 $as_echo "$AR" >&6; }
6190 { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6196 if test -z "$ac_cv_prog_AR"; then
6198 # Extract the first word of "ar", so it can be a program name with args.
6199 set dummy ar; ac_word=$2
6200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$ac_ct_AR"; then
6206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_ac_ct_AR="ar"
6216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6226 if test -n "$ac_ct_AR"; then
6227 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6228 $as_echo "$ac_ct_AR" >&6; }
6230 { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6234 if test "x$ac_ct_AR" = x; then
6237 case $cross_compiling:$ac_tool_warned in
6239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6249 if test "$PORTNAME" = "win32"; then
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$DLLTOOL"; then
6259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 DLLTOOL=$ac_cv_prog_DLLTOOL
6279 if test -n "$DLLTOOL"; then
6280 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6281 $as_echo "$DLLTOOL" >&6; }
6283 { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6289 if test -z "$ac_cv_prog_DLLTOOL"; then
6290 ac_ct_DLLTOOL=$DLLTOOL
6291 # Extract the first word of "dlltool", so it can be a program name with args.
6292 set dummy dlltool; ac_word=$2
6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$ac_ct_DLLTOOL"; then
6299 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6319 if test -n "$ac_ct_DLLTOOL"; then
6320 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6321 $as_echo "$ac_ct_DLLTOOL" >&6; }
6323 { $as_echo "$as_me:$LINENO: result: no" >&5
6324 $as_echo "no" >&6; }
6327 if test "x$ac_ct_DLLTOOL" = x; then
6330 case $cross_compiling:$ac_tool_warned in
6332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6336 DLLTOOL=$ac_ct_DLLTOOL
6339 DLLTOOL="$ac_cv_prog_DLLTOOL"
6342 if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$DLLWRAP"; then
6351 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 DLLWRAP=$ac_cv_prog_DLLWRAP
6371 if test -n "$DLLWRAP"; then
6372 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6373 $as_echo "$DLLWRAP" >&6; }
6375 { $as_echo "$as_me:$LINENO: result: no" >&5
6376 $as_echo "no" >&6; }
6381 if test -z "$ac_cv_prog_DLLWRAP"; then
6382 ac_ct_DLLWRAP=$DLLWRAP
6383 # Extract the first word of "dllwrap", so it can be a program name with args.
6384 set dummy dllwrap; ac_word=$2
6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$ac_ct_DLLWRAP"; then
6391 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6411 if test -n "$ac_ct_DLLWRAP"; then
6412 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6413 $as_echo "$ac_ct_DLLWRAP" >&6; }
6415 { $as_echo "$as_me:$LINENO: result: no" >&5
6416 $as_echo "no" >&6; }
6419 if test "x$ac_ct_DLLWRAP" = x; then
6422 case $cross_compiling:$ac_tool_warned in
6424 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6428 DLLWRAP=$ac_ct_DLLWRAP
6431 DLLWRAP="$ac_cv_prog_DLLWRAP"
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}windres; ac_word=$2
6437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if test "${ac_cv_prog_WINDRES+set}" = set; then
6440 $as_echo_n "(cached) " >&6
6442 if test -n "$WINDRES"; then
6443 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 WINDRES=$ac_cv_prog_WINDRES
6463 if test -n "$WINDRES"; then
6464 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6465 $as_echo "$WINDRES" >&6; }
6467 { $as_echo "$as_me:$LINENO: result: no" >&5
6468 $as_echo "no" >&6; }
6473 if test -z "$ac_cv_prog_WINDRES"; then
6474 ac_ct_WINDRES=$WINDRES
6475 # Extract the first word of "windres", so it can be a program name with args.
6476 set dummy windres; ac_word=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$ac_ct_WINDRES"; then
6483 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_ac_ct_WINDRES="windres"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6503 if test -n "$ac_ct_WINDRES"; then
6504 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6505 $as_echo "$ac_ct_WINDRES" >&6; }
6507 { $as_echo "$as_me:$LINENO: result: no" >&5
6508 $as_echo "no" >&6; }
6511 if test "x$ac_ct_WINDRES" = x; then
6514 case $cross_compiling:$ac_tool_warned in
6516 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6520 WINDRES=$ac_ct_WINDRES
6523 WINDRES="$ac_cv_prog_WINDRES"
6528 # Extract the first word of "tar", so it can be a program name with args.
6529 set dummy tar; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_path_TAR+set}" = set; then
6533 $as_echo_n "(cached) " >&6
6537 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 if test -n "$TAR"; then
6560 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6561 $as_echo "$TAR" >&6; }
6563 { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6568 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6569 $as_echo_n "checking whether ln -s works... " >&6; }
6571 if test "$LN_S" = "ln -s"; then
6572 { $as_echo "$as_me:$LINENO: result: yes" >&5
6573 $as_echo "yes" >&6; }
6575 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6576 $as_echo "no, using $LN_S" >&6; }
6579 for ac_prog in gawk mawk nawk awk
6581 # Extract the first word of "$ac_prog", so it can be a program name with args.
6582 set dummy $ac_prog; ac_word=$2
6583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_AWK+set}" = set; then
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$AWK"; then
6589 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_AWK="$ac_prog"
6599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 if test -n "$AWK"; then
6610 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6611 $as_echo "$AWK" >&6; }
6613 { $as_echo "$as_me:$LINENO: result: no" >&5
6614 $as_echo "no" >&6; }
6618 test -n "$AWK" && break
6621 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6623 if test -z "$MKDIR_P"; then
6624 if test "${ac_cv_path_mkdir+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6631 test -z "$as_dir" && as_dir=.
6632 for ac_prog in mkdir gmkdir; do
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6636 'mkdir (GNU coreutils) '* | \
6637 'mkdir (coreutils) '* | \
6638 'mkdir (fileutils) '4.1*)
6639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6649 if test "${ac_cv_path_mkdir+set}" = set; then
6650 MKDIR_P="$ac_cv_path_mkdir -p"
6652 # As a last resort, use the slow shell script. Don't cache a
6653 # value for MKDIR_P within a source directory, because that will
6654 # break other packages using the cache if that directory is
6655 # removed, or if the value is a relative name.
6656 test -d ./--version && rmdir ./--version
6657 MKDIR_P="$ac_install_sh -d"
6660 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6661 $as_echo "$MKDIR_P" >&6; }
6663 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6664 # a relative path to it in each makefile where it subsitutes it. This clashes
6665 # with our Makefile.global concept. This workaround helps.
6667 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6670 # Let the user override the search
6671 if test -z "$BISON"; then
6672 for ac_prog in bison
6674 # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_path_BISON+set}" = set; then
6679 $as_echo_n "(cached) " >&6
6683 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 BISON=$ac_cv_path_BISON
6705 if test -n "$BISON"; then
6706 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6707 $as_echo "$BISON" >&6; }
6709 { $as_echo "$as_me:$LINENO: result: no" >&5
6710 $as_echo "no" >&6; }
6714 test -n "$BISON" && break
6719 if test "$BISON"; then
6720 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6721 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6722 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6723 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6725 { $as_echo "$as_me:$LINENO: WARNING:
6726 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6727 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6728 $as_echo "$as_me: WARNING:
6729 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6730 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6735 if test -z "$BISON"; then
6736 { $as_echo "$as_me:$LINENO: WARNING:
6737 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6738 *** change any of the parser definition files. You can obtain Bison from
6739 *** a GNU mirror site. (If you are using the official distribution of
6740 *** PostgreSQL then you do not need to worry about this, because the Bison
6741 *** output is pre-generated.)" >&5
6742 $as_echo "$as_me: WARNING:
6743 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6744 *** change any of the parser definition files. You can obtain Bison from
6745 *** a GNU mirror site. (If you are using the official distribution of
6746 *** PostgreSQL then you do not need to worry about this, because the Bison
6747 *** output is pre-generated.)" >&2;}
6749 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6752 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6753 $as_echo_n "checking for flex... " >&6; }
6754 if test "${pgac_cv_path_flex+set}" = set; then
6755 $as_echo_n "(cached) " >&6
6757 # Let the user override the test
6758 if test -n "$FLEX"; then
6759 pgac_cv_path_flex=$FLEX
6763 for pgac_dir in $PATH; do
6765 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6768 for pgac_prog in flex lex; do
6769 pgac_candidate="$pgac_dir/$pgac_prog"
6770 if test -f "$pgac_candidate" \
6771 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6773 echo '%%' > conftest.l
6774 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6775 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6776 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6778 pgac_cv_path_flex=$pgac_candidate
6781 { $as_echo "$as_me:$LINENO: WARNING:
6782 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6783 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6784 $as_echo "$as_me: WARNING:
6785 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6786 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6792 rm -f conftest.l lex.yy.c
6793 : ${pgac_cv_path_flex=no}
6797 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6798 $as_echo "$pgac_cv_path_flex" >&6; }
6799 if test x"$pgac_cv_path_flex" = x"no"; then
6800 { $as_echo "$as_me:$LINENO: WARNING:
6801 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6802 *** change any of the scanner definition files. You can obtain Flex from
6803 *** a GNU mirror site. (If you are using the official distribution of
6804 *** PostgreSQL then you do not need to worry about this because the Flex
6805 *** output is pre-generated.)" >&5
6806 $as_echo "$as_me: WARNING:
6807 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6808 *** change any of the scanner definition files. You can obtain Flex from
6809 *** a GNU mirror site. (If you are using the official distribution of
6810 *** PostgreSQL then you do not need to worry about this because the Flex
6811 *** output is pre-generated.)" >&2;}
6815 FLEX=$pgac_cv_path_flex
6816 pgac_flex_version=`$FLEX --version 2>/dev/null`
6817 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6818 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6825 # Extract the first word of "perl", so it can be a program name with args.
6826 set dummy perl; ac_word=$2
6827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_path_PERL+set}" = set; then
6830 $as_echo_n "(cached) " >&6
6834 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 PERL=$ac_cv_path_PERL
6856 if test -n "$PERL"; then
6857 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6858 $as_echo "$PERL" >&6; }
6860 { $as_echo "$as_me:$LINENO: result: no" >&5
6861 $as_echo "no" >&6; }
6865 if test "$with_perl" = yes; then
6867 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6868 $as_echo_n "checking for Perl archlibexp... " >&6; }
6869 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6870 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6871 $as_echo "$perl_archlibexp" >&6; }
6872 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6873 $as_echo_n "checking for Perl privlibexp... " >&6; }
6874 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6875 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6876 $as_echo "$perl_privlibexp" >&6; }
6877 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6878 $as_echo_n "checking for Perl useshrplib... " >&6; }
6879 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6880 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6881 $as_echo "$perl_useshrplib" >&6; }
6883 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6884 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6885 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6886 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6887 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6888 if test -z "$perl_embed_ldflags" ; then
6889 { $as_echo "$as_me:$LINENO: result: no" >&5
6890 $as_echo "no" >&6; }
6891 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6892 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6894 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6895 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6897 { (exit 1); exit 1; }; }
6899 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6900 $as_echo "$perl_embed_ldflags" >&6; }
6905 if test "$with_python" = yes; then
6906 # Extract the first word of "python", so it can be a program name with args.
6907 set dummy python; ac_word=$2
6908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if test "${ac_cv_path_PYTHON+set}" = set; then
6911 $as_echo_n "(cached) " >&6
6915 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 PYTHON=$ac_cv_path_PYTHON
6937 if test -n "$PYTHON"; then
6938 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6939 $as_echo "$PYTHON" >&6; }
6941 { $as_echo "$as_me:$LINENO: result: no" >&5
6942 $as_echo "no" >&6; }
6946 if test x"$PYTHON" = x""; then
6947 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6948 $as_echo "$as_me: error: Python not found" >&2;}
6949 { (exit 1); exit 1; }; }
6953 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6954 $as_echo_n "checking for Python distutils module... " >&6; }
6955 if "${PYTHON}" -c 'import distutils' 2>&5
6957 { $as_echo "$as_me:$LINENO: result: yes" >&5
6958 $as_echo "yes" >&6; }
6960 { $as_echo "$as_me:$LINENO: result: no" >&5
6961 $as_echo "no" >&6; }
6962 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
6963 $as_echo "$as_me: error: distutils module not found" >&2;}
6964 { (exit 1); exit 1; }; }
6966 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
6967 $as_echo_n "checking Python configuration directory... " >&6; }
6968 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
6969 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6970 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
6971 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6973 # This should be enough of a message.
6974 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
6975 $as_echo "$python_configdir" >&6; }
6978 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6979 $as_echo_n "checking how to link an embedded Python application... " >&6; }
6981 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6982 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6983 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6984 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6986 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6988 # New way: use the official shared library
6989 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6990 python_libspec="-L${python_libdir} -l${ldlibrary}"
6992 # Old way: use libpython from python_configdir
6993 python_libdir="${python_configdir}"
6994 python_libspec="-L${python_libdir} -lpython${python_version}"
6997 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6999 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7000 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7003 # threaded python is not supported on bsd's
7004 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7005 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7006 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7007 if test "$pythreads" = "1"; then
7008 { $as_echo "$as_me:$LINENO: result: yes" >&5
7009 $as_echo "yes" >&6; }
7012 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7013 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7014 { (exit 1); exit 1; }; }
7018 { $as_echo "$as_me:$LINENO: result: no" >&5
7019 $as_echo "no" >&6; }
7025 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7026 # Extract the first word of "zic", so it can be a program name with args.
7027 set dummy zic; ac_word=$2
7028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if test "${ac_cv_path_ZIC+set}" = set; then
7031 $as_echo_n "(cached) " >&6
7035 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 if test -n "$ZIC"; then
7058 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7059 $as_echo "$ZIC" >&6; }
7061 { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7066 if test -z "$ZIC"; then
7067 { { $as_echo "$as_me:$LINENO: error:
7068 When cross-compiling, either use the option --with-system-tzdata to use
7069 existing time-zone data, or set the environment variable ZIC to a zic
7070 program to use during the build." >&5
7071 $as_echo "$as_me: error:
7072 When cross-compiling, either use the option --with-system-tzdata to use
7073 existing time-zone data, or set the environment variable ZIC to a zic
7074 program to use during the build." >&2;}
7075 { (exit 1); exit 1; }; }
7083 ## Most libraries are included only if they demonstrably provide a function
7084 ## we need, but libm is an exception: always include it, because there are
7085 ## too many compilers that play cute optimization games that will break
7086 ## probes for standard functions such as pow().
7090 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7091 $as_echo_n "checking for main in -lm... " >&6; }
7092 if test "${ac_cv_lib_m_main+set}" = set; then
7093 $as_echo_n "(cached) " >&6
7095 ac_check_lib_save_LIBS=$LIBS
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_link") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest$ac_exeext && {
7131 test "$cross_compiling" = yes ||
7132 $as_test_x conftest$ac_exeext
7134 ac_cv_lib_m_main=yes
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7144 conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7148 $as_echo "$ac_cv_lib_m_main" >&6; }
7149 if test "x$ac_cv_lib_m_main" = x""yes; then
7150 cat >>confdefs.h <<_ACEOF
7158 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7159 $as_echo_n "checking for library containing setproctitle... " >&6; }
7160 if test "${ac_cv_search_setproctitle+set}" = set; then
7161 $as_echo_n "(cached) " >&6
7163 ac_func_search_save_LIBS=$LIBS
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7171 /* Override any GCC internal prototype to avoid an error.
7172 Use char because int might match the return type of a GCC
7173 builtin and then its argument prototype would still apply. */
7177 char setproctitle ();
7181 return setproctitle ();
7186 for ac_lib in '' util; do
7187 if test -z "$ac_lib"; then
7188 ac_res="none required"
7191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (ac_try="$ac_link"
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_link") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest$ac_exeext && {
7211 test "$cross_compiling" = yes ||
7212 $as_test_x conftest$ac_exeext
7214 ac_cv_search_setproctitle=$ac_res
7216 $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7222 rm -rf conftest.dSYM
7223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7225 if test "${ac_cv_search_setproctitle+set}" = set; then
7229 if test "${ac_cv_search_setproctitle+set}" = set; then
7232 ac_cv_search_setproctitle=no
7235 LIBS=$ac_func_search_save_LIBS
7237 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7238 $as_echo "$ac_cv_search_setproctitle" >&6; }
7239 ac_res=$ac_cv_search_setproctitle
7240 if test "$ac_res" != no; then
7241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7245 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7246 $as_echo_n "checking for library containing dlopen... " >&6; }
7247 if test "${ac_cv_search_dlopen+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7250 ac_func_search_save_LIBS=$LIBS
7251 cat >conftest.$ac_ext <<_ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7258 /* Override any GCC internal prototype to avoid an error.
7259 Use char because int might match the return type of a GCC
7260 builtin and then its argument prototype would still apply. */
7273 for ac_lib in '' dl; do
7274 if test -z "$ac_lib"; then
7275 ac_res="none required"
7278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288 (eval "$ac_link") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest$ac_exeext && {
7298 test "$cross_compiling" = yes ||
7299 $as_test_x conftest$ac_exeext
7301 ac_cv_search_dlopen=$ac_res
7303 $as_echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7309 rm -rf conftest.dSYM
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312 if test "${ac_cv_search_dlopen+set}" = set; then
7316 if test "${ac_cv_search_dlopen+set}" = set; then
7319 ac_cv_search_dlopen=no
7322 LIBS=$ac_func_search_save_LIBS
7324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7325 $as_echo "$ac_cv_search_dlopen" >&6; }
7326 ac_res=$ac_cv_search_dlopen
7327 if test "$ac_res" != no; then
7328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7332 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7333 $as_echo_n "checking for library containing socket... " >&6; }
7334 if test "${ac_cv_search_socket+set}" = set; then
7335 $as_echo_n "(cached) " >&6
7337 ac_func_search_save_LIBS=$LIBS
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7345 /* Override any GCC internal prototype to avoid an error.
7346 Use char because int might match the return type of a GCC
7347 builtin and then its argument prototype would still apply. */
7360 for ac_lib in '' socket wsock32; do
7361 if test -z "$ac_lib"; then
7362 ac_res="none required"
7365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (ac_try="$ac_link"
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375 (eval "$ac_link") 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest$ac_exeext && {
7385 test "$cross_compiling" = yes ||
7386 $as_test_x conftest$ac_exeext
7388 ac_cv_search_socket=$ac_res
7390 $as_echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7396 rm -rf conftest.dSYM
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7399 if test "${ac_cv_search_socket+set}" = set; then
7403 if test "${ac_cv_search_socket+set}" = set; then
7406 ac_cv_search_socket=no
7409 LIBS=$ac_func_search_save_LIBS
7411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7412 $as_echo "$ac_cv_search_socket" >&6; }
7413 ac_res=$ac_cv_search_socket
7414 if test "$ac_res" != no; then
7415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7419 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7420 $as_echo_n "checking for library containing shl_load... " >&6; }
7421 if test "${ac_cv_search_shl_load+set}" = set; then
7422 $as_echo_n "(cached) " >&6
7424 ac_func_search_save_LIBS=$LIBS
7425 cat >conftest.$ac_ext <<_ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7432 /* Override any GCC internal prototype to avoid an error.
7433 Use char because int might match the return type of a GCC
7434 builtin and then its argument prototype would still apply. */
7447 for ac_lib in '' dld; do
7448 if test -z "$ac_lib"; then
7449 ac_res="none required"
7452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461 $as_echo "$ac_try_echo") >&5
7462 (eval "$ac_link") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && {
7469 test -z "$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7471 } && test -s conftest$ac_exeext && {
7472 test "$cross_compiling" = yes ||
7473 $as_test_x conftest$ac_exeext
7475 ac_cv_search_shl_load=$ac_res
7477 $as_echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7483 rm -rf conftest.dSYM
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7486 if test "${ac_cv_search_shl_load+set}" = set; then
7490 if test "${ac_cv_search_shl_load+set}" = set; then
7493 ac_cv_search_shl_load=no
7496 LIBS=$ac_func_search_save_LIBS
7498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7499 $as_echo "$ac_cv_search_shl_load" >&6; }
7500 ac_res=$ac_cv_search_shl_load
7501 if test "$ac_res" != no; then
7502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7506 # We only use libld in port/dynloader/aix.c
7509 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7510 $as_echo_n "checking for library containing ldopen... " >&6; }
7511 if test "${ac_cv_search_ldopen+set}" = set; then
7512 $as_echo_n "(cached) " >&6
7514 ac_func_search_save_LIBS=$LIBS
7515 cat >conftest.$ac_ext <<_ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7522 /* Override any GCC internal prototype to avoid an error.
7523 Use char because int might match the return type of a GCC
7524 builtin and then its argument prototype would still apply. */
7537 for ac_lib in '' ld; do
7538 if test -z "$ac_lib"; then
7539 ac_res="none required"
7542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (ac_try="$ac_link"
7547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548 *) ac_try_echo=$ac_try;;
7550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551 $as_echo "$ac_try_echo") >&5
7552 (eval "$ac_link") 2>conftest.er1
7554 grep -v '^ *+' conftest.er1 >conftest.err
7556 cat conftest.err >&5
7557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } && {
7559 test -z "$ac_c_werror_flag" ||
7560 test ! -s conftest.err
7561 } && test -s conftest$ac_exeext && {
7562 test "$cross_compiling" = yes ||
7563 $as_test_x conftest$ac_exeext
7565 ac_cv_search_ldopen=$ac_res
7567 $as_echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7573 rm -rf conftest.dSYM
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7576 if test "${ac_cv_search_ldopen+set}" = set; then
7580 if test "${ac_cv_search_ldopen+set}" = set; then
7583 ac_cv_search_ldopen=no
7586 LIBS=$ac_func_search_save_LIBS
7588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7589 $as_echo "$ac_cv_search_ldopen" >&6; }
7590 ac_res=$ac_cv_search_ldopen
7591 if test "$ac_res" != no; then
7592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7598 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7599 $as_echo_n "checking for library containing getopt_long... " >&6; }
7600 if test "${ac_cv_search_getopt_long+set}" = set; then
7601 $as_echo_n "(cached) " >&6
7603 ac_func_search_save_LIBS=$LIBS
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7611 /* Override any GCC internal prototype to avoid an error.
7612 Use char because int might match the return type of a GCC
7613 builtin and then its argument prototype would still apply. */
7617 char getopt_long ();
7621 return getopt_long ();
7626 for ac_lib in '' getopt gnugetopt; do
7627 if test -z "$ac_lib"; then
7628 ac_res="none required"
7631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (ac_try="$ac_link"
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641 (eval "$ac_link") 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest$ac_exeext && {
7651 test "$cross_compiling" = yes ||
7652 $as_test_x conftest$ac_exeext
7654 ac_cv_search_getopt_long=$ac_res
7656 $as_echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7662 rm -rf conftest.dSYM
7663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7665 if test "${ac_cv_search_getopt_long+set}" = set; then
7669 if test "${ac_cv_search_getopt_long+set}" = set; then
7672 ac_cv_search_getopt_long=no
7675 LIBS=$ac_func_search_save_LIBS
7677 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7678 $as_echo "$ac_cv_search_getopt_long" >&6; }
7679 ac_res=$ac_cv_search_getopt_long
7680 if test "$ac_res" != no; then
7681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7685 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7686 $as_echo_n "checking for library containing crypt... " >&6; }
7687 if test "${ac_cv_search_crypt+set}" = set; then
7688 $as_echo_n "(cached) " >&6
7690 ac_func_search_save_LIBS=$LIBS
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7698 /* Override any GCC internal prototype to avoid an error.
7699 Use char because int might match the return type of a GCC
7700 builtin and then its argument prototype would still apply. */
7713 for ac_lib in '' crypt; do
7714 if test -z "$ac_lib"; then
7715 ac_res="none required"
7718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (ac_try="$ac_link"
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7727 $as_echo "$ac_try_echo") >&5
7728 (eval "$ac_link") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1 >conftest.err
7732 cat conftest.err >&5
7733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest$ac_exeext && {
7738 test "$cross_compiling" = yes ||
7739 $as_test_x conftest$ac_exeext
7741 ac_cv_search_crypt=$ac_res
7743 $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -rf conftest.dSYM
7750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7752 if test "${ac_cv_search_crypt+set}" = set; then
7756 if test "${ac_cv_search_crypt+set}" = set; then
7759 ac_cv_search_crypt=no
7762 LIBS=$ac_func_search_save_LIBS
7764 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7765 $as_echo "$ac_cv_search_crypt" >&6; }
7766 ac_res=$ac_cv_search_crypt
7767 if test "$ac_res" != no; then
7768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7773 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7774 $as_echo_n "checking for library containing fdatasync... " >&6; }
7775 if test "${ac_cv_search_fdatasync+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7778 ac_func_search_save_LIBS=$LIBS
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7796 return fdatasync ();
7801 for ac_lib in '' rt posix4; do
7802 if test -z "$ac_lib"; then
7803 ac_res="none required"
7806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7808 rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (ac_try="$ac_link"
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816 (eval "$ac_link") 2>conftest.er1
7818 grep -v '^ *+' conftest.er1 >conftest.err
7820 cat conftest.err >&5
7821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest$ac_exeext && {
7826 test "$cross_compiling" = yes ||
7827 $as_test_x conftest$ac_exeext
7829 ac_cv_search_fdatasync=$ac_res
7831 $as_echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7837 rm -rf conftest.dSYM
7838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7840 if test "${ac_cv_search_fdatasync+set}" = set; then
7844 if test "${ac_cv_search_fdatasync+set}" = set; then
7847 ac_cv_search_fdatasync=no
7850 LIBS=$ac_func_search_save_LIBS
7852 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7853 $as_echo "$ac_cv_search_fdatasync" >&6; }
7854 ac_res=$ac_cv_search_fdatasync
7855 if test "$ac_res" != no; then
7856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7860 # Required for thread_test.c on Solaris 2.5:
7861 # Other ports use it too (HP-UX) so test unconditionally
7862 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7863 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7864 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7865 $as_echo_n "(cached) " >&6
7867 ac_func_search_save_LIBS=$LIBS
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7881 char gethostbyname_r ();
7885 return gethostbyname_r ();
7890 for ac_lib in '' nsl; do
7891 if test -z "$ac_lib"; then
7892 ac_res="none required"
7895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905 (eval "$ac_link") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest$ac_exeext && {
7915 test "$cross_compiling" = yes ||
7916 $as_test_x conftest$ac_exeext
7918 ac_cv_search_gethostbyname_r=$ac_res
7920 $as_echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7926 rm -rf conftest.dSYM
7927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7929 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7933 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7936 ac_cv_search_gethostbyname_r=no
7939 LIBS=$ac_func_search_save_LIBS
7941 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7942 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7943 ac_res=$ac_cv_search_gethostbyname_r
7944 if test "$ac_res" != no; then
7945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7950 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7951 $as_echo_n "checking for library containing shmget... " >&6; }
7952 if test "${ac_cv_search_shmget+set}" = set; then
7953 $as_echo_n "(cached) " >&6
7955 ac_func_search_save_LIBS=$LIBS
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7963 /* Override any GCC internal prototype to avoid an error.
7964 Use char because int might match the return type of a GCC
7965 builtin and then its argument prototype would still apply. */
7978 for ac_lib in '' cygipc; do
7979 if test -z "$ac_lib"; then
7980 ac_res="none required"
7983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993 (eval "$ac_link") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest$ac_exeext && {
8003 test "$cross_compiling" = yes ||
8004 $as_test_x conftest$ac_exeext
8006 ac_cv_search_shmget=$ac_res
8008 $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8014 rm -rf conftest.dSYM
8015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8017 if test "${ac_cv_search_shmget+set}" = set; then
8021 if test "${ac_cv_search_shmget+set}" = set; then
8024 ac_cv_search_shmget=no
8027 LIBS=$ac_func_search_save_LIBS
8029 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8030 $as_echo "$ac_cv_search_shmget" >&6; }
8031 ac_res=$ac_cv_search_shmget
8032 if test "$ac_res" != no; then
8033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8038 if test "$with_readline" = yes; then
8041 if test "${pgac_cv_check_readline+set}" = set; then
8042 $as_echo_n "(cached) " >&6
8044 pgac_cv_check_readline=no
8045 pgac_save_LIBS=$LIBS
8046 if test x"$with_libedit_preferred" != x"yes"
8047 then READLINE_ORDER="-lreadline -ledit"
8048 else READLINE_ORDER="-ledit -lreadline"
8050 for pgac_rllib in $READLINE_ORDER ; do
8051 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8052 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8053 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8054 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8055 cat >conftest.$ac_ext <<_ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h. */
8062 /* Override any GCC internal prototype to avoid an error.
8063 Use char because int might match the return type of a GCC
8064 builtin and then its argument prototype would still apply. */
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085 (eval "$ac_link") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest$ac_exeext && {
8095 test "$cross_compiling" = yes ||
8096 $as_test_x conftest$ac_exeext
8099 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8100 # recognize dependent libraries; assume curses is needed if we didn't
8101 # find any dependency.
8103 netbsd* | openbsd* | irix*)
8104 if test x"$pgac_lib" = x"" ; then
8105 pgac_lib=" -lcurses"
8109 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8113 $as_echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8119 rm -rf conftest.dSYM
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121 conftest$ac_exeext conftest.$ac_ext
8123 if test "$pgac_cv_check_readline" != no ; then
8124 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8125 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8128 { $as_echo "$as_me:$LINENO: result: no" >&5
8129 $as_echo "no" >&6; }
8132 LIBS=$pgac_save_LIBS
8136 if test "$pgac_cv_check_readline" != no ; then
8137 LIBS="$pgac_cv_check_readline $LIBS"
8139 cat >>confdefs.h <<\_ACEOF
8140 #define HAVE_LIBREADLINE 1
8146 if test x"$pgac_cv_check_readline" = x"no"; then
8147 { { $as_echo "$as_me:$LINENO: error: readline library not found
8148 If you have readline already installed, see config.log for details on the
8149 failure. It is possible the compiler isn't looking in the proper directory.
8150 Use --without-readline to disable readline support." >&5
8151 $as_echo "$as_me: error: readline library not found
8152 If you have readline already installed, see config.log for details on the
8153 failure. It is possible the compiler isn't looking in the proper directory.
8154 Use --without-readline to disable readline support." >&2;}
8155 { (exit 1); exit 1; }; }
8159 if test "$with_zlib" = yes; then
8161 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8162 $as_echo_n "checking for inflate in -lz... " >&6; }
8163 if test "${ac_cv_lib_z_inflate+set}" = set; then
8164 $as_echo_n "(cached) " >&6
8166 ac_check_lib_save_LIBS=$LIBS
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8175 /* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply. */
8190 rm -f conftest.$ac_objext conftest$ac_exeext
8191 if { (ac_try="$ac_link"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8197 $as_echo "$ac_try_echo") >&5
8198 (eval "$ac_link") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext && {
8208 test "$cross_compiling" = yes ||
8209 $as_test_x conftest$ac_exeext
8211 ac_cv_lib_z_inflate=yes
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_lib_z_inflate=no
8219 rm -rf conftest.dSYM
8220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8221 conftest$ac_exeext conftest.$ac_ext
8222 LIBS=$ac_check_lib_save_LIBS
8224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8225 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8226 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8227 cat >>confdefs.h <<_ACEOF
8234 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8235 If you have zlib already installed, see config.log for details on the
8236 failure. It is possible the compiler isn't looking in the proper directory.
8237 Use --without-zlib to disable zlib support." >&5
8238 $as_echo "$as_me: error: zlib library not found
8239 If you have zlib already installed, see config.log for details on the
8240 failure. It is possible the compiler isn't looking in the proper directory.
8241 Use --without-zlib to disable zlib support." >&2;}
8242 { (exit 1); exit 1; }; }
8247 if test "$enable_spinlocks" = yes; then
8249 cat >>confdefs.h <<\_ACEOF
8250 #define HAVE_SPINLOCKS 1
8254 { $as_echo "$as_me:$LINENO: WARNING:
8255 *** Not using spinlocks will cause poor performance." >&5
8256 $as_echo "$as_me: WARNING:
8257 *** Not using spinlocks will cause poor performance." >&2;}
8260 if test "$with_gssapi" = yes ; then
8261 if test "$PORTNAME" != "win32"; then
8262 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8263 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8264 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8265 $as_echo_n "(cached) " >&6
8267 ac_func_search_save_LIBS=$LIBS
8268 cat >conftest.$ac_ext <<_ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8275 /* Override any GCC internal prototype to avoid an error.
8276 Use char because int might match the return type of a GCC
8277 builtin and then its argument prototype would still apply. */
8281 char gss_init_sec_context ();
8285 return gss_init_sec_context ();
8290 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8291 if test -z "$ac_lib"; then
8292 ac_res="none required"
8295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8304 $as_echo "$ac_try_echo") >&5
8305 (eval "$ac_link") 2>conftest.er1
8307 grep -v '^ *+' conftest.er1 >conftest.err
8309 cat conftest.err >&5
8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && {
8312 test -z "$ac_c_werror_flag" ||
8313 test ! -s conftest.err
8314 } && test -s conftest$ac_exeext && {
8315 test "$cross_compiling" = yes ||
8316 $as_test_x conftest$ac_exeext
8318 ac_cv_search_gss_init_sec_context=$ac_res
8320 $as_echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -rf conftest.dSYM
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8333 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8336 ac_cv_search_gss_init_sec_context=no
8339 LIBS=$ac_func_search_save_LIBS
8341 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8342 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8343 ac_res=$ac_cv_search_gss_init_sec_context
8344 if test "$ac_res" != no; then
8345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8348 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8349 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8350 { (exit 1); exit 1; }; }
8354 LIBS="$LIBS -lgssapi32"
8358 if test "$with_krb5" = yes ; then
8359 if test "$PORTNAME" != "win32"; then
8360 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8361 $as_echo_n "checking for library containing com_err... " >&6; }
8362 if test "${ac_cv_search_com_err+set}" = set; then
8363 $as_echo_n "(cached) " >&6
8365 ac_func_search_save_LIBS=$LIBS
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8373 /* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8388 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8389 if test -z "$ac_lib"; then
8390 ac_res="none required"
8393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (ac_try="$ac_link"
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_link") 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest$ac_exeext && {
8413 test "$cross_compiling" = yes ||
8414 $as_test_x conftest$ac_exeext
8416 ac_cv_search_com_err=$ac_res
8418 $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8424 rm -rf conftest.dSYM
8425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8427 if test "${ac_cv_search_com_err+set}" = set; then
8431 if test "${ac_cv_search_com_err+set}" = set; then
8434 ac_cv_search_com_err=no
8437 LIBS=$ac_func_search_save_LIBS
8439 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8440 $as_echo "$ac_cv_search_com_err" >&6; }
8441 ac_res=$ac_cv_search_com_err
8442 if test "$ac_res" != no; then
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8446 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8447 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8448 { (exit 1); exit 1; }; }
8451 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8452 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8453 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8454 $as_echo_n "(cached) " >&6
8456 ac_func_search_save_LIBS=$LIBS
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 /* Override any GCC internal prototype to avoid an error.
8465 Use char because int might match the return type of a GCC
8466 builtin and then its argument prototype would still apply. */
8470 char krb5_sendauth ();
8474 return krb5_sendauth ();
8479 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8480 if test -z "$ac_lib"; then
8481 ac_res="none required"
8484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (ac_try="$ac_link"
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8493 $as_echo "$ac_try_echo") >&5
8494 (eval "$ac_link") 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } && {
8501 test -z "$ac_c_werror_flag" ||
8502 test ! -s conftest.err
8503 } && test -s conftest$ac_exeext && {
8504 test "$cross_compiling" = yes ||
8505 $as_test_x conftest$ac_exeext
8507 ac_cv_search_krb5_sendauth=$ac_res
8509 $as_echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8515 rm -rf conftest.dSYM
8516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8522 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8525 ac_cv_search_krb5_sendauth=no
8528 LIBS=$ac_func_search_save_LIBS
8530 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8531 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8532 ac_res=$ac_cv_search_krb5_sendauth
8533 if test "$ac_res" != no; then
8534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8537 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8538 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8539 { (exit 1); exit 1; }; }
8543 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8544 $as_echo_n "checking for library containing com_err... " >&6; }
8545 if test "${ac_cv_search_com_err+set}" = set; then
8546 $as_echo_n "(cached) " >&6
8548 ac_func_search_save_LIBS=$LIBS
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8571 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8572 if test -z "$ac_lib"; then
8573 ac_res="none required"
8576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586 (eval "$ac_link") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest$ac_exeext && {
8596 test "$cross_compiling" = yes ||
8597 $as_test_x conftest$ac_exeext
8599 ac_cv_search_com_err=$ac_res
8601 $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8607 rm -rf conftest.dSYM
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610 if test "${ac_cv_search_com_err+set}" = set; then
8614 if test "${ac_cv_search_com_err+set}" = set; then
8617 ac_cv_search_com_err=no
8620 LIBS=$ac_func_search_save_LIBS
8622 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8623 $as_echo "$ac_cv_search_com_err" >&6; }
8624 ac_res=$ac_cv_search_com_err
8625 if test "$ac_res" != no; then
8626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8629 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8630 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8631 { (exit 1); exit 1; }; }
8637 if test "$with_openssl" = yes ; then
8638 if test "$PORTNAME" != "win32"; then
8640 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8641 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8642 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8643 $as_echo_n "(cached) " >&6
8645 ac_check_lib_save_LIBS=$LIBS
8646 LIBS="-lcrypto $LIBS"
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 /* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
8656 builtin and then its argument prototype would still apply. */
8660 char CRYPTO_new_ex_data ();
8664 return CRYPTO_new_ex_data ();
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8676 $as_echo "$ac_try_echo") >&5
8677 (eval "$ac_link") 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest$ac_exeext && {
8687 test "$cross_compiling" = yes ||
8688 $as_test_x conftest$ac_exeext
8690 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8692 $as_echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8698 rm -rf conftest.dSYM
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8704 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8705 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_LIBCRYPTO 1
8710 LIBS="-lcrypto $LIBS"
8713 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8714 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8715 { (exit 1); exit 1; }; }
8719 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8720 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8721 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8722 $as_echo_n "(cached) " >&6
8724 ac_check_lib_save_LIBS=$LIBS
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8733 /* Override any GCC internal prototype to avoid an error.
8734 Use char because int might match the return type of a GCC
8735 builtin and then its argument prototype would still apply. */
8739 char SSL_library_init ();
8743 return SSL_library_init ();
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (ac_try="$ac_link"
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8755 $as_echo "$ac_try_echo") >&5
8756 (eval "$ac_link") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1 >conftest.err
8760 cat conftest.err >&5
8761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest$ac_exeext && {
8766 test "$cross_compiling" = yes ||
8767 $as_test_x conftest$ac_exeext
8769 ac_cv_lib_ssl_SSL_library_init=yes
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_lib_ssl_SSL_library_init=no
8777 rm -rf conftest.dSYM
8778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8779 conftest$ac_exeext conftest.$ac_ext
8780 LIBS=$ac_check_lib_save_LIBS
8782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8783 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8784 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8785 cat >>confdefs.h <<_ACEOF
8786 #define HAVE_LIBSSL 1
8792 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8793 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8794 { (exit 1); exit 1; }; }
8799 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8800 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8801 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8802 $as_echo_n "(cached) " >&6
8804 ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-leay32 $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8819 char CRYPTO_new_ex_data ();
8823 return CRYPTO_new_ex_data ();
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (ac_try="$ac_link"
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835 $as_echo "$ac_try_echo") >&5
8836 (eval "$ac_link") 2>conftest.er1
8838 grep -v '^ *+' conftest.er1 >conftest.err
8840 cat conftest.err >&5
8841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest$ac_exeext && {
8846 test "$cross_compiling" = yes ||
8847 $as_test_x conftest$ac_exeext
8849 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8851 $as_echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8857 rm -rf conftest.dSYM
8858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8859 conftest$ac_exeext conftest.$ac_ext
8860 LIBS=$ac_check_lib_save_LIBS
8862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8863 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8864 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_LIBEAY32 1
8869 LIBS="-leay32 $LIBS"
8872 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8873 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8874 { (exit 1); exit 1; }; }
8878 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8879 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8880 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8881 $as_echo_n "(cached) " >&6
8883 ac_check_lib_save_LIBS=$LIBS
8884 LIBS="-lssleay32 $LIBS"
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8892 /* Override any GCC internal prototype to avoid an error.
8893 Use char because int might match the return type of a GCC
8894 builtin and then its argument prototype would still apply. */
8898 char SSL_library_init ();
8902 return SSL_library_init ();
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8914 $as_echo "$ac_try_echo") >&5
8915 (eval "$ac_link") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest$ac_exeext && {
8925 test "$cross_compiling" = yes ||
8926 $as_test_x conftest$ac_exeext
8928 ac_cv_lib_ssleay32_SSL_library_init=yes
8930 $as_echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8933 ac_cv_lib_ssleay32_SSL_library_init=no
8936 rm -rf conftest.dSYM
8937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8938 conftest$ac_exeext conftest.$ac_ext
8939 LIBS=$ac_check_lib_save_LIBS
8941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8942 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8943 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8944 cat >>confdefs.h <<_ACEOF
8945 #define HAVE_LIBSSLEAY32 1
8948 LIBS="-lssleay32 $LIBS"
8951 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8952 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8953 { (exit 1); exit 1; }; }
8959 if test "$with_pam" = yes ; then
8961 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8962 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8963 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8964 $as_echo_n "(cached) " >&6
8966 ac_check_lib_save_LIBS=$LIBS
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8975 /* Override any GCC internal prototype to avoid an error.
8976 Use char because int might match the return type of a GCC
8977 builtin and then its argument prototype would still apply. */
8985 return pam_start ();
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998 (eval "$ac_link") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_c_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest$ac_exeext && {
9008 test "$cross_compiling" = yes ||
9009 $as_test_x conftest$ac_exeext
9011 ac_cv_lib_pam_pam_start=yes
9013 $as_echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_cv_lib_pam_pam_start=no
9019 rm -rf conftest.dSYM
9020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021 conftest$ac_exeext conftest.$ac_ext
9022 LIBS=$ac_check_lib_save_LIBS
9024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9025 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9026 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9027 cat >>confdefs.h <<_ACEOF
9028 #define HAVE_LIBPAM 1
9034 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9035 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9036 { (exit 1); exit 1; }; }
9041 if test "$with_libxml" = yes ; then
9043 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9044 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9045 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9046 $as_echo_n "(cached) " >&6
9048 ac_check_lib_save_LIBS=$LIBS
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9057 /* Override any GCC internal prototype to avoid an error.
9058 Use char because int might match the return type of a GCC
9059 builtin and then its argument prototype would still apply. */
9063 char xmlSaveToBuffer ();
9067 return xmlSaveToBuffer ();
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9079 $as_echo "$ac_try_echo") >&5
9080 (eval "$ac_link") 2>conftest.er1
9082 grep -v '^ *+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && {
9087 test -z "$ac_c_werror_flag" ||
9088 test ! -s conftest.err
9089 } && test -s conftest$ac_exeext && {
9090 test "$cross_compiling" = yes ||
9091 $as_test_x conftest$ac_exeext
9093 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9095 $as_echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_cv_lib_xml2_xmlSaveToBuffer=no
9101 rm -rf conftest.dSYM
9102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103 conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9106 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9107 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9108 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9109 cat >>confdefs.h <<_ACEOF
9110 #define HAVE_LIBXML2 1
9116 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9117 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9118 { (exit 1); exit 1; }; }
9123 if test "$with_libxslt" = yes ; then
9125 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9126 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9127 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9128 $as_echo_n "(cached) " >&6
9130 ac_check_lib_save_LIBS=$LIBS
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9145 char xsltCleanupGlobals ();
9149 return xsltCleanupGlobals ();
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162 (eval "$ac_link") 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext && {
9172 test "$cross_compiling" = yes ||
9173 $as_test_x conftest$ac_exeext
9175 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9177 $as_echo "$as_me: failed program was:" >&5
9178 sed 's/^/| /' conftest.$ac_ext >&5
9180 ac_cv_lib_xslt_xsltCleanupGlobals=no
9183 rm -rf conftest.dSYM
9184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9185 conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9189 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9190 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9191 cat >>confdefs.h <<_ACEOF
9192 #define HAVE_LIBXSLT 1
9198 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9199 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9200 { (exit 1); exit 1; }; }
9205 # for contrib/uuid-ossp
9206 if test "$with_ossp_uuid" = yes ; then
9207 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9208 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9209 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9210 $as_echo_n "(cached) " >&6
9212 ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-lossp-uuid $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9227 char uuid_export ();
9231 return uuid_export ();
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244 (eval "$ac_link") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1 >conftest.err
9248 cat conftest.err >&5
9249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest$ac_exeext && {
9254 test "$cross_compiling" = yes ||
9255 $as_test_x conftest$ac_exeext
9257 ac_cv_lib_ossp_uuid_uuid_export=yes
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 ac_cv_lib_ossp_uuid_uuid_export=no
9265 rm -rf conftest.dSYM
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9271 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9272 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9273 OSSP_UUID_LIBS="-lossp-uuid"
9275 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9276 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9277 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9278 $as_echo_n "(cached) " >&6
9280 ac_check_lib_save_LIBS=$LIBS
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9295 char uuid_export ();
9299 return uuid_export ();
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312 (eval "$ac_link") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest$ac_exeext && {
9322 test "$cross_compiling" = yes ||
9323 $as_test_x conftest$ac_exeext
9325 ac_cv_lib_uuid_uuid_export=yes
9327 $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_lib_uuid_uuid_export=no
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9339 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9340 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9341 OSSP_UUID_LIBS="-luuid"
9343 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9344 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9345 { (exit 1); exit 1; }; }
9358 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9359 $as_echo_n "checking for ANSI C header files... " >&6; }
9360 if test "${ac_cv_header_stdc+set}" = set; then
9361 $as_echo_n "(cached) " >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9382 rm -f conftest.$ac_objext
9383 if { (ac_try="$ac_compile"
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9389 $as_echo "$ac_try_echo") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.$ac_objext; then
9400 ac_cv_header_stdc=yes
9402 $as_echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_header_stdc=no
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 if test $ac_cv_header_stdc = yes; then
9411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9422 $EGREP "memchr" >/dev/null 2>&1; then
9425 ac_cv_header_stdc=no
9431 if test $ac_cv_header_stdc = yes; then
9432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443 $EGREP "free" >/dev/null 2>&1; then
9446 ac_cv_header_stdc=no
9452 if test $ac_cv_header_stdc = yes; then
9453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9454 if test "$cross_compiling" = yes; then
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9465 #if ((' ' & 0x0FF) == 0x020)
9466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9469 # define ISLOWER(c) \
9470 (('a' <= (c) && (c) <= 'i') \
9471 || ('j' <= (c) && (c) <= 'r') \
9472 || ('s' <= (c) && (c) <= 'z'))
9473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9481 for (i = 0; i < 256; i++)
9482 if (XOR (islower (i), ISLOWER (i))
9483 || toupper (i) != TOUPPER (i))
9488 rm -f conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9495 $as_echo "$ac_try_echo") >&5
9496 (eval "$ac_link") 2>&5
9498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9500 { (case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9505 $as_echo "$ac_try_echo") >&5
9506 (eval "$ac_try") 2>&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9512 $as_echo "$as_me: program exited with status $ac_status" >&5
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_header_stdc=no
9519 rm -rf conftest.dSYM
9520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9526 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9527 $as_echo "$ac_cv_header_stdc" >&6; }
9528 if test $ac_cv_header_stdc = yes; then
9530 cat >>confdefs.h <<\_ACEOF
9531 #define STDC_HEADERS 1
9536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9547 inttypes.h stdint.h unistd.h
9549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 $as_echo_n "checking for $ac_header... " >&6; }
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553 $as_echo_n "(cached) " >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 $ac_includes_default
9563 #include <$ac_header>
9565 rm -f conftest.$ac_objext
9566 if { (ac_try="$ac_compile"
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9572 $as_echo "$ac_try_echo") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 eval "$as_ac_Header=yes"
9585 $as_echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 eval "$as_ac_Header=no"
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 ac_res=`eval 'as_val=${'$as_ac_Header'}
9594 $as_echo "$as_val"'`
9595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9596 $as_echo "$ac_res" >&6; }
9597 as_val=`eval 'as_val=${'$as_ac_Header'}
9598 $as_echo "$as_val"'`
9599 if test "x$as_val" = x""yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9639 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9644 $as_echo_n "checking for $ac_header... " >&6; }
9645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9646 $as_echo_n "(cached) " >&6
9648 ac_res=`eval 'as_val=${'$as_ac_Header'}
9649 $as_echo "$as_val"'`
9650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9651 $as_echo "$ac_res" >&6; }
9653 # Is the header compilable?
9654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 $as_echo_n "checking $ac_header usability... " >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9672 $as_echo "$ac_try_echo") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9683 ac_header_compiler=yes
9685 $as_echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_header_compiler=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9693 $as_echo "$ac_header_compiler" >&6; }
9695 # Is the header present?
9696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9697 $as_echo_n "checking $ac_header presence... " >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <$ac_header>
9706 if { (ac_try="$ac_cpp conftest.$ac_ext"
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9715 grep -v '^ *+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } >/dev/null && {
9720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9723 ac_header_preproc=yes
9725 $as_echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_header_preproc=no
9731 rm -f conftest.err conftest.$ac_ext
9732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9733 $as_echo "$ac_header_preproc" >&6; }
9735 # So? What about this header?
9736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9742 ac_header_preproc=yes
9745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9748 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9758 ## ---------------------------------------- ##
9759 ## Report this to pgsql-bugs@postgresql.org ##
9760 ## ---------------------------------------- ##
9762 ) | sed "s/^/$as_me: WARNING: /" >&2
9765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 $as_echo_n "checking for $ac_header... " >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 $as_echo_n "(cached) " >&6
9770 eval "$as_ac_Header=\$ac_header_preproc"
9772 ac_res=`eval 'as_val=${'$as_ac_Header'}
9773 $as_echo "$as_val"'`
9774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9775 $as_echo "$ac_res" >&6; }
9778 as_val=`eval 'as_val=${'$as_ac_Header'}
9779 $as_echo "$as_val"'`
9780 if test "x$as_val" = x""yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9790 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9791 # is included first.
9793 for ac_header in net/if.h
9795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9797 $as_echo_n "checking for $ac_header... " >&6; }
9798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9799 $as_echo_n "(cached) " >&6
9801 cat >conftest.$ac_ext <<_ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 $ac_includes_default
9808 #ifdef HAVE_SYS_SOCKET_H
9809 #include <sys/socket.h>
9813 #include <$ac_header>
9815 rm -f conftest.$ac_objext
9816 if { (ac_try="$ac_compile"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9822 $as_echo "$ac_try_echo") >&5
9823 (eval "$ac_compile") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.$ac_objext; then
9833 eval "$as_ac_Header=yes"
9835 $as_echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 eval "$as_ac_Header=no"
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 ac_res=`eval 'as_val=${'$as_ac_Header'}
9844 $as_echo "$as_val"'`
9845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9846 $as_echo "$ac_res" >&6; }
9847 as_val=`eval 'as_val=${'$as_ac_Header'}
9848 $as_echo "$as_val"'`
9849 if test "x$as_val" = x""yes; then
9850 cat >>confdefs.h <<_ACEOF
9851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9860 # netinet/in.h is included first.
9862 for ac_header in netinet/in.h
9864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 $as_echo_n "checking for $ac_header... " >&6; }
9868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9869 $as_echo_n "(cached) " >&6
9871 ac_res=`eval 'as_val=${'$as_ac_Header'}
9872 $as_echo "$as_val"'`
9873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9874 $as_echo "$ac_res" >&6; }
9876 # Is the header compilable?
9877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9878 $as_echo_n "checking $ac_header usability... " >&6; }
9879 cat >conftest.$ac_ext <<_ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 $ac_includes_default
9886 #include <$ac_header>
9888 rm -f conftest.$ac_objext
9889 if { (ac_try="$ac_compile"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9895 $as_echo "$ac_try_echo") >&5
9896 (eval "$ac_compile") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest.$ac_objext; then
9906 ac_header_compiler=yes
9908 $as_echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_header_compiler=no
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9916 $as_echo "$ac_header_compiler" >&6; }
9918 # Is the header present?
9919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9920 $as_echo_n "checking $ac_header presence... " >&6; }
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 #include <$ac_header>
9929 if { (ac_try="$ac_cpp conftest.$ac_ext"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } >/dev/null && {
9943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9946 ac_header_preproc=yes
9948 $as_echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_header_preproc=no
9954 rm -f conftest.err conftest.$ac_ext
9955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9956 $as_echo "$ac_header_preproc" >&6; }
9958 # So? What about this header?
9959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9965 ac_header_preproc=yes
9968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9971 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9975 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9981 ## ---------------------------------------- ##
9982 ## Report this to pgsql-bugs@postgresql.org ##
9983 ## ---------------------------------------- ##
9985 ) | sed "s/^/$as_me: WARNING: /" >&2
9988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 $as_echo_n "checking for $ac_header... " >&6; }
9990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9991 $as_echo_n "(cached) " >&6
9993 eval "$as_ac_Header=\$ac_header_preproc"
9995 ac_res=`eval 'as_val=${'$as_ac_Header'}
9996 $as_echo "$as_val"'`
9997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9998 $as_echo "$ac_res" >&6; }
10001 as_val=`eval 'as_val=${'$as_ac_Header'}
10002 $as_echo "$as_val"'`
10003 if test "x$as_val" = x""yes; then
10004 cat >>confdefs.h <<_ACEOF
10005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10013 for ac_header in netinet/tcp.h
10015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 $as_echo_n "checking for $ac_header... " >&6; }
10018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019 $as_echo_n "(cached) " >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 $ac_includes_default
10028 #ifdef HAVE_NETINET_IN_H
10029 #include <netinet/in.h>
10033 #include <$ac_header>
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043 (eval "$ac_compile") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.$ac_objext; then
10053 eval "$as_ac_Header=yes"
10055 $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 eval "$as_ac_Header=no"
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 ac_res=`eval 'as_val=${'$as_ac_Header'}
10064 $as_echo "$as_val"'`
10065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10066 $as_echo "$ac_res" >&6; }
10067 as_val=`eval 'as_val=${'$as_ac_Header'}
10068 $as_echo "$as_val"'`
10069 if test "x$as_val" = x""yes; then
10070 cat >>confdefs.h <<_ACEOF
10071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10079 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10081 for ac_header in readline/readline.h
10083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 $as_echo_n "checking for $ac_header... " >&6; }
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088 $as_echo_n "(cached) " >&6
10090 ac_res=`eval 'as_val=${'$as_ac_Header'}
10091 $as_echo "$as_val"'`
10092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10093 $as_echo "$ac_res" >&6; }
10095 # Is the header compilable?
10096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10097 $as_echo_n "checking $ac_header usability... " >&6; }
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10105 #include <$ac_header>
10107 rm -f conftest.$ac_objext
10108 if { (ac_try="$ac_compile"
10109 case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10114 $as_echo "$ac_try_echo") >&5
10115 (eval "$ac_compile") 2>conftest.er1
10117 grep -v '^ *+' conftest.er1 >conftest.err
10119 cat conftest.err >&5
10120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && {
10122 test -z "$ac_c_werror_flag" ||
10123 test ! -s conftest.err
10124 } && test -s conftest.$ac_objext; then
10125 ac_header_compiler=yes
10127 $as_echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_header_compiler=no
10133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10135 $as_echo "$ac_header_compiler" >&6; }
10137 # Is the header present?
10138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10139 $as_echo_n "checking $ac_header presence... " >&6; }
10140 cat >conftest.$ac_ext <<_ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <$ac_header>
10148 if { (ac_try="$ac_cpp conftest.$ac_ext"
10149 case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154 $as_echo "$ac_try_echo") >&5
10155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } >/dev/null && {
10162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163 test ! -s conftest.err
10165 ac_header_preproc=yes
10167 $as_echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_header_preproc=no
10173 rm -f conftest.err conftest.$ac_ext
10174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 $as_echo "$ac_header_preproc" >&6; }
10177 # So? What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184 ac_header_preproc=yes
10187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10190 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10194 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10200 ## ---------------------------------------- ##
10201 ## Report this to pgsql-bugs@postgresql.org ##
10202 ## ---------------------------------------- ##
10204 ) | sed "s/^/$as_me: WARNING: /" >&2
10207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 $as_echo_n "checking for $ac_header... " >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210 $as_echo_n "(cached) " >&6
10212 eval "$as_ac_Header=\$ac_header_preproc"
10214 ac_res=`eval 'as_val=${'$as_ac_Header'}
10215 $as_echo "$as_val"'`
10216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10217 $as_echo "$ac_res" >&6; }
10220 as_val=`eval 'as_val=${'$as_ac_Header'}
10221 $as_echo "$as_val"'`
10222 if test "x$as_val" = x""yes; then
10223 cat >>confdefs.h <<_ACEOF
10224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10229 for ac_header in readline.h
10231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10234 $as_echo_n "checking for $ac_header... " >&6; }
10235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10236 $as_echo_n "(cached) " >&6
10238 ac_res=`eval 'as_val=${'$as_ac_Header'}
10239 $as_echo "$as_val"'`
10240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10241 $as_echo "$ac_res" >&6; }
10243 # Is the header compilable?
10244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10245 $as_echo_n "checking $ac_header usability... " >&6; }
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 $ac_includes_default
10253 #include <$ac_header>
10255 rm -f conftest.$ac_objext
10256 if { (ac_try="$ac_compile"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_compile") 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest.$ac_objext; then
10273 ac_header_compiler=yes
10275 $as_echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_header_compiler=no
10281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10283 $as_echo "$ac_header_compiler" >&6; }
10285 # Is the header present?
10286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10287 $as_echo_n "checking $ac_header presence... " >&6; }
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 #include <$ac_header>
10296 if { (ac_try="$ac_cpp conftest.$ac_ext"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10302 $as_echo "$ac_try_echo") >&5
10303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10305 grep -v '^ *+' conftest.er1 >conftest.err
10307 cat conftest.err >&5
10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } >/dev/null && {
10310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10311 test ! -s conftest.err
10313 ac_header_preproc=yes
10315 $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_header_preproc=no
10321 rm -f conftest.err conftest.$ac_ext
10322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10323 $as_echo "$ac_header_preproc" >&6; }
10325 # So? What about this header?
10326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10332 ac_header_preproc=yes
10335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10338 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10342 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10348 ## ---------------------------------------- ##
10349 ## Report this to pgsql-bugs@postgresql.org ##
10350 ## ---------------------------------------- ##
10352 ) | sed "s/^/$as_me: WARNING: /" >&2
10355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10356 $as_echo_n "checking for $ac_header... " >&6; }
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358 $as_echo_n "(cached) " >&6
10360 eval "$as_ac_Header=\$ac_header_preproc"
10362 ac_res=`eval 'as_val=${'$as_ac_Header'}
10363 $as_echo "$as_val"'`
10364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10365 $as_echo "$ac_res" >&6; }
10368 as_val=`eval 'as_val=${'$as_ac_Header'}
10369 $as_echo "$as_val"'`
10370 if test "x$as_val" = x""yes; then
10371 cat >>confdefs.h <<_ACEOF
10372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376 { { $as_echo "$as_me:$LINENO: error: readline header not found
10377 If you have readline already installed, see config.log for details on the
10378 failure. It is possible the compiler isn't looking in the proper directory.
10379 Use --without-readline to disable readline support." >&5
10380 $as_echo "$as_me: error: readline header not found
10381 If you have readline already installed, see config.log for details on the
10382 failure. It is possible the compiler isn't looking in the proper directory.
10383 Use --without-readline to disable readline support." >&2;}
10384 { (exit 1); exit 1; }; }
10394 for ac_header in readline/history.h
10396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401 $as_echo_n "(cached) " >&6
10403 ac_res=`eval 'as_val=${'$as_ac_Header'}
10404 $as_echo "$as_val"'`
10405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10406 $as_echo "$ac_res" >&6; }
10408 # Is the header compilable?
10409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10410 $as_echo_n "checking $ac_header usability... " >&6; }
10411 cat >conftest.$ac_ext <<_ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 #include <$ac_header>
10420 rm -f conftest.$ac_objext
10421 if { (ac_try="$ac_compile"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_compile") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest.$ac_objext; then
10438 ac_header_compiler=yes
10440 $as_echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_header_compiler=no
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10448 $as_echo "$ac_header_compiler" >&6; }
10450 # Is the header present?
10451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10452 $as_echo_n "checking $ac_header presence... " >&6; }
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 #include <$ac_header>
10461 if { (ac_try="$ac_cpp conftest.$ac_ext"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10467 $as_echo "$ac_try_echo") >&5
10468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10470 grep -v '^ *+' conftest.er1 >conftest.err
10472 cat conftest.err >&5
10473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } >/dev/null && {
10475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10476 test ! -s conftest.err
10478 ac_header_preproc=yes
10480 $as_echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ac_header_preproc=no
10486 rm -f conftest.err conftest.$ac_ext
10487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10488 $as_echo "$ac_header_preproc" >&6; }
10490 # So? What about this header?
10491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10497 ac_header_preproc=yes
10500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10513 ## ---------------------------------------- ##
10514 ## Report this to pgsql-bugs@postgresql.org ##
10515 ## ---------------------------------------- ##
10517 ) | sed "s/^/$as_me: WARNING: /" >&2
10520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 $as_echo_n "checking for $ac_header... " >&6; }
10522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523 $as_echo_n "(cached) " >&6
10525 eval "$as_ac_Header=\$ac_header_preproc"
10527 ac_res=`eval 'as_val=${'$as_ac_Header'}
10528 $as_echo "$as_val"'`
10529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10530 $as_echo "$ac_res" >&6; }
10533 as_val=`eval 'as_val=${'$as_ac_Header'}
10534 $as_echo "$as_val"'`
10535 if test "x$as_val" = x""yes; then
10536 cat >>confdefs.h <<_ACEOF
10537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10542 for ac_header in history.h
10544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 $as_echo_n "checking for $ac_header... " >&6; }
10548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 $as_echo_n "(cached) " >&6
10551 ac_res=`eval 'as_val=${'$as_ac_Header'}
10552 $as_echo "$as_val"'`
10553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10554 $as_echo "$ac_res" >&6; }
10556 # Is the header compilable?
10557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 $as_echo_n "checking $ac_header usability... " >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 #include <$ac_header>
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576 (eval "$ac_compile") 2>conftest.er1
10578 grep -v '^ *+' conftest.er1 >conftest.err
10580 cat conftest.err >&5
10581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest.$ac_objext; then
10586 ac_header_compiler=yes
10588 $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_header_compiler=no
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 $as_echo "$ac_header_compiler" >&6; }
10598 # Is the header present?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 $as_echo_n "checking $ac_header presence... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <$ac_header>
10609 if { (ac_try="$ac_cpp conftest.$ac_ext"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1 >conftest.err
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null && {
10623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10626 ac_header_preproc=yes
10628 $as_echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_header_preproc=no
10634 rm -f conftest.err conftest.$ac_ext
10635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 $as_echo "$ac_header_preproc" >&6; }
10638 # So? What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645 ac_header_preproc=yes
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10655 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10661 ## ---------------------------------------- ##
10662 ## Report this to pgsql-bugs@postgresql.org ##
10663 ## ---------------------------------------- ##
10665 ) | sed "s/^/$as_me: WARNING: /" >&2
10668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10669 $as_echo_n "checking for $ac_header... " >&6; }
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671 $as_echo_n "(cached) " >&6
10673 eval "$as_ac_Header=\$ac_header_preproc"
10675 ac_res=`eval 'as_val=${'$as_ac_Header'}
10676 $as_echo "$as_val"'`
10677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10678 $as_echo "$ac_res" >&6; }
10681 as_val=`eval 'as_val=${'$as_ac_Header'}
10682 $as_echo "$as_val"'`
10683 if test "x$as_val" = x""yes; then
10684 cat >>confdefs.h <<_ACEOF
10685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10689 { { $as_echo "$as_me:$LINENO: error: history header not found
10690 If you have readline already installed, see config.log for details on the
10691 failure. It is possible the compiler isn't looking in the proper directory.
10692 Use --without-readline to disable readline support." >&5
10693 $as_echo "$as_me: error: history header not found
10694 If you have readline already installed, see config.log for details on the
10695 failure. It is possible the compiler isn't looking in the proper directory.
10696 Use --without-readline to disable readline support." >&2;}
10697 { (exit 1); exit 1; }; }
10708 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10709 # Some installations of libedit usurp /usr/include/readline/, which seems
10710 # bad practice, since in combined installations readline will have its headers
10711 # there. We might have to resort to AC_EGREP checks to make sure we found
10712 # the proper header...
10714 for ac_header in editline/readline.h
10716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10719 $as_echo_n "checking for $ac_header... " >&6; }
10720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10721 $as_echo_n "(cached) " >&6
10723 ac_res=`eval 'as_val=${'$as_ac_Header'}
10724 $as_echo "$as_val"'`
10725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10726 $as_echo "$ac_res" >&6; }
10728 # Is the header compilable?
10729 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10730 $as_echo_n "checking $ac_header usability... " >&6; }
10731 cat >conftest.$ac_ext <<_ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 $ac_includes_default
10738 #include <$ac_header>
10740 rm -f conftest.$ac_objext
10741 if { (ac_try="$ac_compile"
10742 case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10747 $as_echo "$ac_try_echo") >&5
10748 (eval "$ac_compile") 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && {
10755 test -z "$ac_c_werror_flag" ||
10756 test ! -s conftest.err
10757 } && test -s conftest.$ac_objext; then
10758 ac_header_compiler=yes
10760 $as_echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10763 ac_header_compiler=no
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10768 $as_echo "$ac_header_compiler" >&6; }
10770 # Is the header present?
10771 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10772 $as_echo_n "checking $ac_header presence... " >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 #include <$ac_header>
10781 if { (ac_try="$ac_cpp conftest.$ac_ext"
10782 case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10787 $as_echo "$ac_try_echo") >&5
10788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } >/dev/null && {
10795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10796 test ! -s conftest.err
10798 ac_header_preproc=yes
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_header_preproc=no
10806 rm -f conftest.err conftest.$ac_ext
10807 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 $as_echo "$ac_header_preproc" >&6; }
10810 # So? What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10814 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10816 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10823 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10827 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10831 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10833 ## ---------------------------------------- ##
10834 ## Report this to pgsql-bugs@postgresql.org ##
10835 ## ---------------------------------------- ##
10837 ) | sed "s/^/$as_me: WARNING: /" >&2
10840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10841 $as_echo_n "checking for $ac_header... " >&6; }
10842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10843 $as_echo_n "(cached) " >&6
10845 eval "$as_ac_Header=\$ac_header_preproc"
10847 ac_res=`eval 'as_val=${'$as_ac_Header'}
10848 $as_echo "$as_val"'`
10849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10850 $as_echo "$ac_res" >&6; }
10853 as_val=`eval 'as_val=${'$as_ac_Header'}
10854 $as_echo "$as_val"'`
10855 if test "x$as_val" = x""yes; then
10856 cat >>confdefs.h <<_ACEOF
10857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862 for ac_header in readline.h
10864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 $as_echo_n "checking for $ac_header... " >&6; }
10868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 $as_echo_n "(cached) " >&6
10871 ac_res=`eval 'as_val=${'$as_ac_Header'}
10872 $as_echo "$as_val"'`
10873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10874 $as_echo "$ac_res" >&6; }
10876 # Is the header compilable?
10877 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 $as_echo_n "checking $ac_header usability... " >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <$ac_header>
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10895 $as_echo "$ac_try_echo") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.$ac_objext; then
10906 ac_header_compiler=yes
10908 $as_echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_header_compiler=no
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10916 $as_echo "$ac_header_compiler" >&6; }
10918 # Is the header present?
10919 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10920 $as_echo_n "checking $ac_header presence... " >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <$ac_header>
10929 if { (ac_try="$ac_cpp conftest.$ac_ext"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } >/dev/null && {
10943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10946 ac_header_preproc=yes
10948 $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_header_preproc=no
10954 rm -f conftest.err conftest.$ac_ext
10955 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956 $as_echo "$ac_header_preproc" >&6; }
10958 # So? What about this header?
10959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10962 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10965 ac_header_preproc=yes
10968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10969 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10971 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10973 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10975 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10979 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10981 ## ---------------------------------------- ##
10982 ## Report this to pgsql-bugs@postgresql.org ##
10983 ## ---------------------------------------- ##
10985 ) | sed "s/^/$as_me: WARNING: /" >&2
10988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 $as_echo_n "checking for $ac_header... " >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 $as_echo_n "(cached) " >&6
10993 eval "$as_ac_Header=\$ac_header_preproc"
10995 ac_res=`eval 'as_val=${'$as_ac_Header'}
10996 $as_echo "$as_val"'`
10997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998 $as_echo "$ac_res" >&6; }
11001 as_val=`eval 'as_val=${'$as_ac_Header'}
11002 $as_echo "$as_val"'`
11003 if test "x$as_val" = x""yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11010 for ac_header in readline/readline.h
11012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11015 $as_echo_n "checking for $ac_header... " >&6; }
11016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11017 $as_echo_n "(cached) " >&6
11019 ac_res=`eval 'as_val=${'$as_ac_Header'}
11020 $as_echo "$as_val"'`
11021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11022 $as_echo "$ac_res" >&6; }
11024 # Is the header compilable?
11025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11026 $as_echo_n "checking $ac_header usability... " >&6; }
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 $ac_includes_default
11034 #include <$ac_header>
11036 rm -f conftest.$ac_objext
11037 if { (ac_try="$ac_compile"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest.$ac_objext; then
11054 ac_header_compiler=yes
11056 $as_echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_header_compiler=no
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11064 $as_echo "$ac_header_compiler" >&6; }
11066 # Is the header present?
11067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11068 $as_echo_n "checking $ac_header presence... " >&6; }
11069 cat >conftest.$ac_ext <<_ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11075 #include <$ac_header>
11077 if { (ac_try="$ac_cpp conftest.$ac_ext"
11078 case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11083 $as_echo "$ac_try_echo") >&5
11084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } >/dev/null && {
11091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11094 ac_header_preproc=yes
11096 $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_header_preproc=no
11102 rm -f conftest.err conftest.$ac_ext
11103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 $as_echo "$ac_header_preproc" >&6; }
11106 # So? What about this header?
11107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11113 ac_header_preproc=yes
11116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11119 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11123 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11129 ## ---------------------------------------- ##
11130 ## Report this to pgsql-bugs@postgresql.org ##
11131 ## ---------------------------------------- ##
11133 ) | sed "s/^/$as_me: WARNING: /" >&2
11136 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 $as_echo_n "checking for $ac_header... " >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 $as_echo_n "(cached) " >&6
11141 eval "$as_ac_Header=\$ac_header_preproc"
11143 ac_res=`eval 'as_val=${'$as_ac_Header'}
11144 $as_echo "$as_val"'`
11145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11146 $as_echo "$ac_res" >&6; }
11149 as_val=`eval 'as_val=${'$as_ac_Header'}
11150 $as_echo "$as_val"'`
11151 if test "x$as_val" = x""yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11157 { { $as_echo "$as_me:$LINENO: error: readline header not found
11158 If you have libedit already installed, see config.log for details on the
11159 failure. It is possible the compiler isn't looking in the proper directory.
11160 Use --without-readline to disable libedit support." >&5
11161 $as_echo "$as_me: error: readline header not found
11162 If you have libedit already installed, see config.log for details on the
11163 failure. It is possible the compiler isn't looking in the proper directory.
11164 Use --without-readline to disable libedit support." >&2;}
11165 { (exit 1); exit 1; }; }
11178 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11179 # not be there at all. Hence, don't complain if not found. We must check
11180 # though, since in yet other versions it is an independent header.
11182 for ac_header in editline/history.h
11184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 $as_echo_n "checking for $ac_header... " >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 $as_echo_n "(cached) " >&6
11191 ac_res=`eval 'as_val=${'$as_ac_Header'}
11192 $as_echo "$as_val"'`
11193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11194 $as_echo "$ac_res" >&6; }
11196 # Is the header compilable?
11197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11198 $as_echo_n "checking $ac_header usability... " >&6; }
11199 cat >conftest.$ac_ext <<_ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 $ac_includes_default
11206 #include <$ac_header>
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.$ac_objext; then
11226 ac_header_compiler=yes
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_header_compiler=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 $as_echo "$ac_header_compiler" >&6; }
11238 # Is the header present?
11239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 $as_echo_n "checking $ac_header presence... " >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <$ac_header>
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11255 $as_echo "$ac_try_echo") >&5
11256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null && {
11263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11264 test ! -s conftest.err
11266 ac_header_preproc=yes
11268 $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_header_preproc=no
11274 rm -f conftest.err conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 $as_echo "$ac_header_preproc" >&6; }
11278 # So? What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285 ac_header_preproc=yes
11288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11301 ## ---------------------------------------- ##
11302 ## Report this to pgsql-bugs@postgresql.org ##
11303 ## ---------------------------------------- ##
11305 ) | sed "s/^/$as_me: WARNING: /" >&2
11308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 $as_echo_n "checking for $ac_header... " >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311 $as_echo_n "(cached) " >&6
11313 eval "$as_ac_Header=\$ac_header_preproc"
11315 ac_res=`eval 'as_val=${'$as_ac_Header'}
11316 $as_echo "$as_val"'`
11317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11318 $as_echo "$ac_res" >&6; }
11321 as_val=`eval 'as_val=${'$as_ac_Header'}
11322 $as_echo "$as_val"'`
11323 if test "x$as_val" = x""yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11330 for ac_header in history.h
11332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 $as_echo_n "checking for $ac_header... " >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 $as_echo_n "(cached) " >&6
11339 ac_res=`eval 'as_val=${'$as_ac_Header'}
11340 $as_echo "$as_val"'`
11341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11342 $as_echo "$ac_res" >&6; }
11344 # Is the header compilable?
11345 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346 $as_echo_n "checking $ac_header usability... " >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 $ac_includes_default
11354 #include <$ac_header>
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11363 $as_echo "$ac_try_echo") >&5
11364 (eval "$ac_compile") 2>conftest.er1
11366 grep -v '^ *+' conftest.er1 >conftest.err
11368 cat conftest.err >&5
11369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest.$ac_objext; then
11374 ac_header_compiler=yes
11376 $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_header_compiler=no
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 $as_echo "$ac_header_compiler" >&6; }
11386 # Is the header present?
11387 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 $as_echo_n "checking $ac_header presence... " >&6; }
11389 cat >conftest.$ac_ext <<_ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <$ac_header>
11397 if { (ac_try="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403 $as_echo "$ac_try_echo") >&5
11404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11406 grep -v '^ *+' conftest.er1 >conftest.err
11408 cat conftest.err >&5
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } >/dev/null && {
11411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11414 ac_header_preproc=yes
11416 $as_echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 ac_header_preproc=no
11422 rm -f conftest.err conftest.$ac_ext
11423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 $as_echo "$ac_header_preproc" >&6; }
11426 # So? What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433 ac_header_preproc=yes
11436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11439 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11449 ## ---------------------------------------- ##
11450 ## Report this to pgsql-bugs@postgresql.org ##
11451 ## ---------------------------------------- ##
11453 ) | sed "s/^/$as_me: WARNING: /" >&2
11456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 $as_echo_n "checking for $ac_header... " >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 $as_echo_n "(cached) " >&6
11461 eval "$as_ac_Header=\$ac_header_preproc"
11463 ac_res=`eval 'as_val=${'$as_ac_Header'}
11464 $as_echo "$as_val"'`
11465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11466 $as_echo "$ac_res" >&6; }
11469 as_val=`eval 'as_val=${'$as_ac_Header'}
11470 $as_echo "$as_val"'`
11471 if test "x$as_val" = x""yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11478 for ac_header in readline/history.h
11480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 $as_echo_n "checking for $ac_header... " >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 $as_echo_n "(cached) " >&6
11487 ac_res=`eval 'as_val=${'$as_ac_Header'}
11488 $as_echo "$as_val"'`
11489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11490 $as_echo "$ac_res" >&6; }
11492 # Is the header compilable?
11493 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 $as_echo_n "checking $ac_header usability... " >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 $ac_includes_default
11502 #include <$ac_header>
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11511 $as_echo "$ac_try_echo") >&5
11512 (eval "$ac_compile") 2>conftest.er1
11514 grep -v '^ *+' conftest.er1 >conftest.err
11516 cat conftest.err >&5
11517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } && {
11519 test -z "$ac_c_werror_flag" ||
11520 test ! -s conftest.err
11521 } && test -s conftest.$ac_objext; then
11522 ac_header_compiler=yes
11524 $as_echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 ac_header_compiler=no
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 $as_echo "$ac_header_compiler" >&6; }
11534 # Is the header present?
11535 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 $as_echo_n "checking $ac_header presence... " >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <$ac_header>
11545 if { (ac_try="$ac_cpp conftest.$ac_ext"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11551 $as_echo "$ac_try_echo") >&5
11552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } >/dev/null && {
11559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560 test ! -s conftest.err
11562 ac_header_preproc=yes
11564 $as_echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 ac_header_preproc=no
11570 rm -f conftest.err conftest.$ac_ext
11571 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 $as_echo "$ac_header_preproc" >&6; }
11574 # So? What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581 ac_header_preproc=yes
11584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11587 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11591 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11597 ## ---------------------------------------- ##
11598 ## Report this to pgsql-bugs@postgresql.org ##
11599 ## ---------------------------------------- ##
11601 ) | sed "s/^/$as_me: WARNING: /" >&2
11604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 $as_echo_n "checking for $ac_header... " >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607 $as_echo_n "(cached) " >&6
11609 eval "$as_ac_Header=\$ac_header_preproc"
11611 ac_res=`eval 'as_val=${'$as_ac_Header'}
11612 $as_echo "$as_val"'`
11613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11614 $as_echo "$ac_res" >&6; }
11617 as_val=`eval 'as_val=${'$as_ac_Header'}
11618 $as_echo "$as_val"'`
11619 if test "x$as_val" = x""yes; then
11620 cat >>confdefs.h <<_ACEOF
11621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 if test "$with_zlib" = yes; then
11639 if test "${ac_cv_header_zlib_h+set}" = set; then
11640 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11641 $as_echo_n "checking for zlib.h... " >&6; }
11642 if test "${ac_cv_header_zlib_h+set}" = set; then
11643 $as_echo_n "(cached) " >&6
11645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11646 $as_echo "$ac_cv_header_zlib_h" >&6; }
11648 # Is the header compilable?
11649 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11650 $as_echo_n "checking zlib.h usability... " >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11660 rm -f conftest.$ac_objext
11661 if { (ac_try="$ac_compile"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668 (eval "$ac_compile") 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest.$ac_objext; then
11678 ac_header_compiler=yes
11680 $as_echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_header_compiler=no
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11688 $as_echo "$ac_header_compiler" >&6; }
11690 # Is the header present?
11691 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11692 $as_echo_n "checking zlib.h presence... " >&6; }
11693 cat >conftest.$ac_ext <<_ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11701 if { (ac_try="$ac_cpp conftest.$ac_ext"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } >/dev/null && {
11715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11718 ac_header_preproc=yes
11720 $as_echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_header_preproc=no
11726 rm -f conftest.err conftest.$ac_ext
11727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11728 $as_echo "$ac_header_preproc" >&6; }
11730 # So? What about this header?
11731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11733 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11734 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11735 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11736 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11737 ac_header_preproc=yes
11740 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11741 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11742 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11743 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11744 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11745 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11746 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11747 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11748 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11749 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11750 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11751 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11753 ## ---------------------------------------- ##
11754 ## Report this to pgsql-bugs@postgresql.org ##
11755 ## ---------------------------------------- ##
11757 ) | sed "s/^/$as_me: WARNING: /" >&2
11760 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11761 $as_echo_n "checking for zlib.h... " >&6; }
11762 if test "${ac_cv_header_zlib_h+set}" = set; then
11763 $as_echo_n "(cached) " >&6
11765 ac_cv_header_zlib_h=$ac_header_preproc
11767 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11768 $as_echo "$ac_cv_header_zlib_h" >&6; }
11771 if test "x$ac_cv_header_zlib_h" = x""yes; then
11774 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11775 If you have zlib already installed, see config.log for details on the
11776 failure. It is possible the compiler isn't looking in the proper directory.
11777 Use --without-zlib to disable zlib support." >&5
11778 $as_echo "$as_me: error: zlib header not found
11779 If you have zlib already installed, see config.log for details on the
11780 failure. It is possible the compiler isn't looking in the proper directory.
11781 Use --without-zlib to disable zlib support." >&2;}
11782 { (exit 1); exit 1; }; }
11788 if test "$with_gssapi" = yes ; then
11790 for ac_header in gssapi/gssapi.h
11792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11795 $as_echo_n "checking for $ac_header... " >&6; }
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 $as_echo_n "(cached) " >&6
11799 ac_res=`eval 'as_val=${'$as_ac_Header'}
11800 $as_echo "$as_val"'`
11801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11802 $as_echo "$ac_res" >&6; }
11804 # Is the header compilable?
11805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11806 $as_echo_n "checking $ac_header usability... " >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 $ac_includes_default
11814 #include <$ac_header>
11816 rm -f conftest.$ac_objext
11817 if { (ac_try="$ac_compile"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.$ac_objext; then
11834 ac_header_compiler=yes
11836 $as_echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_header_compiler=no
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11844 $as_echo "$ac_header_compiler" >&6; }
11846 # Is the header present?
11847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11848 $as_echo_n "checking $ac_header presence... " >&6; }
11849 cat >conftest.$ac_ext <<_ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <$ac_header>
11857 if { (ac_try="$ac_cpp conftest.$ac_ext"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11863 $as_echo "$ac_try_echo") >&5
11864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } >/dev/null && {
11871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11874 ac_header_preproc=yes
11876 $as_echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_header_preproc=no
11882 rm -f conftest.err conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 $as_echo "$ac_header_preproc" >&6; }
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc=yes
11896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11909 ## ---------------------------------------- ##
11910 ## Report this to pgsql-bugs@postgresql.org ##
11911 ## ---------------------------------------- ##
11913 ) | sed "s/^/$as_me: WARNING: /" >&2
11916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 $as_echo_n "checking for $ac_header... " >&6; }
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919 $as_echo_n "(cached) " >&6
11921 eval "$as_ac_Header=\$ac_header_preproc"
11923 ac_res=`eval 'as_val=${'$as_ac_Header'}
11924 $as_echo "$as_val"'`
11925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11926 $as_echo "$ac_res" >&6; }
11929 as_val=`eval 'as_val=${'$as_ac_Header'}
11930 $as_echo "$as_val"'`
11931 if test "x$as_val" = x""yes; then
11932 cat >>confdefs.h <<_ACEOF
11933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 for ac_header in gssapi.h
11940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11943 $as_echo_n "checking for $ac_header... " >&6; }
11944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11945 $as_echo_n "(cached) " >&6
11947 ac_res=`eval 'as_val=${'$as_ac_Header'}
11948 $as_echo "$as_val"'`
11949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11950 $as_echo "$ac_res" >&6; }
11952 # Is the header compilable?
11953 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11954 $as_echo_n "checking $ac_header usability... " >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <$ac_header>
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_header_compiler=yes
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_header_compiler=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 $as_echo "$ac_header_compiler" >&6; }
11994 # Is the header present?
11995 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11996 $as_echo_n "checking $ac_header presence... " >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #include <$ac_header>
12005 if { (ac_try="$ac_cpp conftest.$ac_ext"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12014 grep -v '^ *+' conftest.er1 >conftest.err
12016 cat conftest.err >&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null && {
12019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12022 ac_header_preproc=yes
12024 $as_echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_preproc=no
12030 rm -f conftest.err conftest.$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 $as_echo "$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12047 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12051 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12057 ## ---------------------------------------- ##
12058 ## Report this to pgsql-bugs@postgresql.org ##
12059 ## ---------------------------------------- ##
12061 ) | sed "s/^/$as_me: WARNING: /" >&2
12064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12065 $as_echo_n "checking for $ac_header... " >&6; }
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 $as_echo_n "(cached) " >&6
12069 eval "$as_ac_Header=\$ac_header_preproc"
12071 ac_res=`eval 'as_val=${'$as_ac_Header'}
12072 $as_echo "$as_val"'`
12073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12074 $as_echo "$ac_res" >&6; }
12077 as_val=`eval 'as_val=${'$as_ac_Header'}
12078 $as_echo "$as_val"'`
12079 if test "x$as_val" = x""yes; then
12080 cat >>confdefs.h <<_ACEOF
12081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12085 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12086 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12087 { (exit 1); exit 1; }; }
12098 if test "$with_krb5" = yes ; then
12099 if test "${ac_cv_header_krb5_h+set}" = set; then
12100 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12101 $as_echo_n "checking for krb5.h... " >&6; }
12102 if test "${ac_cv_header_krb5_h+set}" = set; then
12103 $as_echo_n "(cached) " >&6
12105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12106 $as_echo "$ac_cv_header_krb5_h" >&6; }
12108 # Is the header compilable?
12109 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12110 $as_echo_n "checking krb5.h usability... " >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 $ac_includes_default
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128 (eval "$ac_compile") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest.$ac_objext; then
12138 ac_header_compiler=yes
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12143 ac_header_compiler=no
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 $as_echo "$ac_header_compiler" >&6; }
12150 # Is the header present?
12151 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12152 $as_echo_n "checking krb5.h presence... " >&6; }
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12161 if { (ac_try="$ac_cpp conftest.$ac_ext"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$ac_try_echo") >&5
12168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } >/dev/null && {
12175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12178 ac_header_preproc=yes
12180 $as_echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_header_preproc=no
12186 rm -f conftest.err conftest.$ac_ext
12187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12188 $as_echo "$ac_header_preproc" >&6; }
12190 # So? What about this header?
12191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12193 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12194 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12195 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12196 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12197 ac_header_preproc=yes
12200 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12201 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12202 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12203 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12204 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12205 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12206 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12207 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12208 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12209 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12210 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12211 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12213 ## ---------------------------------------- ##
12214 ## Report this to pgsql-bugs@postgresql.org ##
12215 ## ---------------------------------------- ##
12217 ) | sed "s/^/$as_me: WARNING: /" >&2
12220 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12221 $as_echo_n "checking for krb5.h... " >&6; }
12222 if test "${ac_cv_header_krb5_h+set}" = set; then
12223 $as_echo_n "(cached) " >&6
12225 ac_cv_header_krb5_h=$ac_header_preproc
12227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12228 $as_echo "$ac_cv_header_krb5_h" >&6; }
12231 if test "x$ac_cv_header_krb5_h" = x""yes; then
12234 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12235 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12236 { (exit 1); exit 1; }; }
12242 if test "$with_openssl" = yes ; then
12243 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12244 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12245 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12246 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12247 $as_echo_n "(cached) " >&6
12249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12250 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12252 # Is the header compilable?
12253 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12254 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 $ac_includes_default
12262 #include <openssl/ssl.h>
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12271 $as_echo "$ac_try_echo") >&5
12272 (eval "$ac_compile") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest.$ac_objext; then
12282 ac_header_compiler=yes
12284 $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_header_compiler=no
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12292 $as_echo "$ac_header_compiler" >&6; }
12294 # Is the header present?
12295 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12296 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <openssl/ssl.h>
12305 if { (ac_try="$ac_cpp conftest.$ac_ext"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12311 $as_echo "$ac_try_echo") >&5
12312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } >/dev/null && {
12319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12320 test ! -s conftest.err
12322 ac_header_preproc=yes
12324 $as_echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ac_header_preproc=no
12330 rm -f conftest.err conftest.$ac_ext
12331 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 $as_echo "$ac_header_preproc" >&6; }
12334 # So? What about this header?
12335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12337 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12338 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12340 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12341 ac_header_preproc=yes
12344 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12345 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12346 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12347 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12348 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12349 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12350 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12351 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12352 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12353 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12354 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12355 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12357 ## ---------------------------------------- ##
12358 ## Report this to pgsql-bugs@postgresql.org ##
12359 ## ---------------------------------------- ##
12361 ) | sed "s/^/$as_me: WARNING: /" >&2
12364 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12365 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12366 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12367 $as_echo_n "(cached) " >&6
12369 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12371 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12372 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12375 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12378 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12379 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12380 { (exit 1); exit 1; }; }
12384 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12385 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12386 $as_echo_n "checking for openssl/err.h... " >&6; }
12387 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12388 $as_echo_n "(cached) " >&6
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12391 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12393 # Is the header compilable?
12394 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12395 $as_echo_n "checking openssl/err.h usability... " >&6; }
12396 cat >conftest.$ac_ext <<_ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12403 #include <openssl/err.h>
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412 $as_echo "$ac_try_echo") >&5
12413 (eval "$ac_compile") 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
12423 ac_header_compiler=yes
12425 $as_echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12428 ac_header_compiler=no
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12433 $as_echo "$ac_header_compiler" >&6; }
12435 # Is the header present?
12436 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12437 $as_echo_n "checking openssl/err.h presence... " >&6; }
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #include <openssl/err.h>
12446 if { (ac_try="$ac_cpp conftest.$ac_ext"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } >/dev/null && {
12460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12463 ac_header_preproc=yes
12465 $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_header_preproc=no
12471 rm -f conftest.err conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12473 $as_echo "$ac_header_preproc" >&6; }
12475 # So? What about this header?
12476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12478 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12479 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12480 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12481 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12482 ac_header_preproc=yes
12485 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12486 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12487 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12488 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12489 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12490 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12491 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12492 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12493 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12494 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12495 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12496 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12498 ## ---------------------------------------- ##
12499 ## Report this to pgsql-bugs@postgresql.org ##
12500 ## ---------------------------------------- ##
12502 ) | sed "s/^/$as_me: WARNING: /" >&2
12505 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12506 $as_echo_n "checking for openssl/err.h... " >&6; }
12507 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12508 $as_echo_n "(cached) " >&6
12510 ac_cv_header_openssl_err_h=$ac_header_preproc
12512 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12513 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12516 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12519 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12520 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12521 { (exit 1); exit 1; }; }
12526 for ac_func in ERR_set_mark
12528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12530 $as_echo_n "checking for $ac_func... " >&6; }
12531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12532 $as_echo_n "(cached) " >&6
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12542 #define $ac_func innocuous_$ac_func
12544 /* System header to define __stub macros and hopefully few prototypes,
12545 which can conflict with char $ac_func (); below.
12546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12547 <limits.h> exists even on freestanding compilers. */
12550 # include <limits.h>
12552 # include <assert.h>
12557 /* Override any GCC internal prototype to avoid an error.
12558 Use char because int might match the return type of a GCC
12559 builtin and then its argument prototype would still apply. */
12564 /* The GNU C library defines this for functions which it implements
12565 to always fail with ENOSYS. Some functions are actually named
12566 something starting with __ and the normal name is an alias. */
12567 #if defined __stub_$ac_func || defined __stub___$ac_func
12574 return $ac_func ();
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12586 $as_echo "$ac_try_echo") >&5
12587 (eval "$ac_link") 2>conftest.er1
12589 grep -v '^ *+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest$ac_exeext && {
12597 test "$cross_compiling" = yes ||
12598 $as_test_x conftest$ac_exeext
12600 eval "$as_ac_var=yes"
12602 $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 eval "$as_ac_var=no"
12608 rm -rf conftest.dSYM
12609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12610 conftest$ac_exeext conftest.$ac_ext
12612 ac_res=`eval 'as_val=${'$as_ac_var'}
12613 $as_echo "$as_val"'`
12614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12615 $as_echo "$ac_res" >&6; }
12616 as_val=`eval 'as_val=${'$as_ac_var'}
12617 $as_echo "$as_val"'`
12618 if test "x$as_val" = x""yes; then
12619 cat >>confdefs.h <<_ACEOF
12620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12628 if test "$with_pam" = yes ; then
12630 for ac_header in security/pam_appl.h
12632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637 $as_echo_n "(cached) " >&6
12639 ac_res=`eval 'as_val=${'$as_ac_Header'}
12640 $as_echo "$as_val"'`
12641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12642 $as_echo "$ac_res" >&6; }
12644 # Is the header compilable?
12645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12646 $as_echo_n "checking $ac_header usability... " >&6; }
12647 cat >conftest.$ac_ext <<_ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12654 #include <$ac_header>
12656 rm -f conftest.$ac_objext
12657 if { (ac_try="$ac_compile"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12663 $as_echo "$ac_try_echo") >&5
12664 (eval "$ac_compile") 2>conftest.er1
12666 grep -v '^ *+' conftest.er1 >conftest.err
12668 cat conftest.err >&5
12669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } && {
12671 test -z "$ac_c_werror_flag" ||
12672 test ! -s conftest.err
12673 } && test -s conftest.$ac_objext; then
12674 ac_header_compiler=yes
12676 $as_echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ac_header_compiler=no
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 $as_echo "$ac_header_compiler" >&6; }
12686 # Is the header present?
12687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688 $as_echo_n "checking $ac_header presence... " >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #include <$ac_header>
12697 if { (ac_try="$ac_cpp conftest.$ac_ext"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12703 $as_echo "$ac_try_echo") >&5
12704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12706 grep -v '^ *+' conftest.er1 >conftest.err
12708 cat conftest.err >&5
12709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } >/dev/null && {
12711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12714 ac_header_preproc=yes
12716 $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_header_preproc=no
12722 rm -f conftest.err conftest.$ac_ext
12723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 $as_echo "$ac_header_preproc" >&6; }
12726 # So? What about this header?
12727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733 ac_header_preproc=yes
12736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12739 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12743 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12749 ## ---------------------------------------- ##
12750 ## Report this to pgsql-bugs@postgresql.org ##
12751 ## ---------------------------------------- ##
12753 ) | sed "s/^/$as_me: WARNING: /" >&2
12756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12757 $as_echo_n "checking for $ac_header... " >&6; }
12758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12759 $as_echo_n "(cached) " >&6
12761 eval "$as_ac_Header=\$ac_header_preproc"
12763 ac_res=`eval 'as_val=${'$as_ac_Header'}
12764 $as_echo "$as_val"'`
12765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12766 $as_echo "$ac_res" >&6; }
12769 as_val=`eval 'as_val=${'$as_ac_Header'}
12770 $as_echo "$as_val"'`
12771 if test "x$as_val" = x""yes; then
12772 cat >>confdefs.h <<_ACEOF
12773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778 for ac_header in pam/pam_appl.h
12780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 $as_echo_n "checking for $ac_header... " >&6; }
12784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12785 $as_echo_n "(cached) " >&6
12787 ac_res=`eval 'as_val=${'$as_ac_Header'}
12788 $as_echo "$as_val"'`
12789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12792 # Is the header compilable?
12793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794 $as_echo_n "checking $ac_header usability... " >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12802 #include <$ac_header>
12804 rm -f conftest.$ac_objext
12805 if { (ac_try="$ac_compile"
12806 case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12811 $as_echo "$ac_try_echo") >&5
12812 (eval "$ac_compile") 2>conftest.er1
12814 grep -v '^ *+' conftest.er1 >conftest.err
12816 cat conftest.err >&5
12817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && {
12819 test -z "$ac_c_werror_flag" ||
12820 test ! -s conftest.err
12821 } && test -s conftest.$ac_objext; then
12822 ac_header_compiler=yes
12824 $as_echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_header_compiler=no
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12832 $as_echo "$ac_header_compiler" >&6; }
12834 # Is the header present?
12835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12836 $as_echo_n "checking $ac_header presence... " >&6; }
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 #include <$ac_header>
12845 if { (ac_try="$ac_cpp conftest.$ac_ext"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12851 $as_echo "$ac_try_echo") >&5
12852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12854 grep -v '^ *+' conftest.er1 >conftest.err
12856 cat conftest.err >&5
12857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } >/dev/null && {
12859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12862 ac_header_preproc=yes
12864 $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_header_preproc=no
12870 rm -f conftest.err conftest.$ac_ext
12871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12872 $as_echo "$ac_header_preproc" >&6; }
12874 # So? What about this header?
12875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12881 ac_header_preproc=yes
12884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12887 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12891 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12897 ## ---------------------------------------- ##
12898 ## Report this to pgsql-bugs@postgresql.org ##
12899 ## ---------------------------------------- ##
12901 ) | sed "s/^/$as_me: WARNING: /" >&2
12904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12905 $as_echo_n "checking for $ac_header... " >&6; }
12906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12907 $as_echo_n "(cached) " >&6
12909 eval "$as_ac_Header=\$ac_header_preproc"
12911 ac_res=`eval 'as_val=${'$as_ac_Header'}
12912 $as_echo "$as_val"'`
12913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12914 $as_echo "$ac_res" >&6; }
12917 as_val=`eval 'as_val=${'$as_ac_Header'}
12918 $as_echo "$as_val"'`
12919 if test "x$as_val" = x""yes; then
12920 cat >>confdefs.h <<_ACEOF
12921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12925 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12926 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12927 { (exit 1); exit 1; }; }
12938 if test "$with_libxml" = yes ; then
12939 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12940 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12941 $as_echo_n "checking for libxml/parser.h... " >&6; }
12942 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12943 $as_echo_n "(cached) " >&6
12945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12946 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12948 # Is the header compilable?
12949 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12950 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12951 cat >conftest.$ac_ext <<_ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 #include <libxml/parser.h>
12960 rm -f conftest.$ac_objext
12961 if { (ac_try="$ac_compile"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12967 $as_echo "$ac_try_echo") >&5
12968 (eval "$ac_compile") 2>conftest.er1
12970 grep -v '^ *+' conftest.er1 >conftest.err
12972 cat conftest.err >&5
12973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && {
12975 test -z "$ac_c_werror_flag" ||
12976 test ! -s conftest.err
12977 } && test -s conftest.$ac_objext; then
12978 ac_header_compiler=yes
12980 $as_echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ac_header_compiler=no
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12988 $as_echo "$ac_header_compiler" >&6; }
12990 # Is the header present?
12991 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12992 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12993 cat >conftest.$ac_ext <<_ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 #include <libxml/parser.h>
13001 if { (ac_try="$ac_cpp conftest.$ac_ext"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } >/dev/null && {
13015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13018 ac_header_preproc=yes
13020 $as_echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_header_preproc=no
13026 rm -f conftest.err conftest.$ac_ext
13027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13028 $as_echo "$ac_header_preproc" >&6; }
13030 # So? What about this header?
13031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13033 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13034 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13035 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13036 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13037 ac_header_preproc=yes
13040 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13041 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13042 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13043 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13044 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13045 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13046 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13047 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13048 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13049 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13050 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13051 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13053 ## ---------------------------------------- ##
13054 ## Report this to pgsql-bugs@postgresql.org ##
13055 ## ---------------------------------------- ##
13057 ) | sed "s/^/$as_me: WARNING: /" >&2
13060 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13061 $as_echo_n "checking for libxml/parser.h... " >&6; }
13062 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13063 $as_echo_n "(cached) " >&6
13065 ac_cv_header_libxml_parser_h=$ac_header_preproc
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13068 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13071 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13074 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13075 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13076 { (exit 1); exit 1; }; }
13082 if test "$with_libxslt" = yes ; then
13083 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13084 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13085 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13086 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13087 $as_echo_n "(cached) " >&6
13089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13090 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13092 # Is the header compilable?
13093 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13094 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 $ac_includes_default
13102 #include <libxslt/xslt.h>
13104 rm -f conftest.$ac_objext
13105 if { (ac_try="$ac_compile"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13111 $as_echo "$ac_try_echo") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
13122 ac_header_compiler=yes
13124 $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_header_compiler=no
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13132 $as_echo "$ac_header_compiler" >&6; }
13134 # Is the header present?
13135 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13136 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 #include <libxslt/xslt.h>
13145 if { (ac_try="$ac_cpp conftest.$ac_ext"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13151 $as_echo "$ac_try_echo") >&5
13152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13154 grep -v '^ *+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } >/dev/null && {
13159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13160 test ! -s conftest.err
13162 ac_header_preproc=yes
13164 $as_echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_header_preproc=no
13170 rm -f conftest.err conftest.$ac_ext
13171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13172 $as_echo "$ac_header_preproc" >&6; }
13174 # So? What about this header?
13175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13177 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13178 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13179 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13180 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13181 ac_header_preproc=yes
13184 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13185 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13186 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13187 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13188 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13189 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13190 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13191 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13192 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13193 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13194 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13195 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13197 ## ---------------------------------------- ##
13198 ## Report this to pgsql-bugs@postgresql.org ##
13199 ## ---------------------------------------- ##
13201 ) | sed "s/^/$as_me: WARNING: /" >&2
13204 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13205 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13206 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13207 $as_echo_n "(cached) " >&6
13209 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13212 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13215 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13218 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13219 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13220 { (exit 1); exit 1; }; }
13226 if test "$with_ldap" = yes ; then
13227 if test "$PORTNAME" != "win32"; then
13229 for ac_header in ldap.h
13231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13234 $as_echo_n "checking for $ac_header... " >&6; }
13235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236 $as_echo_n "(cached) " >&6
13238 ac_res=`eval 'as_val=${'$as_ac_Header'}
13239 $as_echo "$as_val"'`
13240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13241 $as_echo "$ac_res" >&6; }
13243 # Is the header compilable?
13244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13245 $as_echo_n "checking $ac_header usability... " >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 $ac_includes_default
13253 #include <$ac_header>
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263 (eval "$ac_compile") 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && {
13270 test -z "$ac_c_werror_flag" ||
13271 test ! -s conftest.err
13272 } && test -s conftest.$ac_objext; then
13273 ac_header_compiler=yes
13275 $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ac_header_compiler=no
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283 $as_echo "$ac_header_compiler" >&6; }
13285 # Is the header present?
13286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13287 $as_echo_n "checking $ac_header presence... " >&6; }
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <$ac_header>
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13302 $as_echo "$ac_try_echo") >&5
13303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13305 grep -v '^ *+' conftest.er1 >conftest.err
13307 cat conftest.err >&5
13308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } >/dev/null && {
13310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13311 test ! -s conftest.err
13313 ac_header_preproc=yes
13315 $as_echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_header_preproc=no
13321 rm -f conftest.err conftest.$ac_ext
13322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323 $as_echo "$ac_header_preproc" >&6; }
13325 # So? What about this header?
13326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13332 ac_header_preproc=yes
13335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13338 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13342 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348 ## ---------------------------------------- ##
13349 ## Report this to pgsql-bugs@postgresql.org ##
13350 ## ---------------------------------------- ##
13352 ) | sed "s/^/$as_me: WARNING: /" >&2
13355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 $as_echo_n "checking for $ac_header... " >&6; }
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 $as_echo_n "(cached) " >&6
13360 eval "$as_ac_Header=\$ac_header_preproc"
13362 ac_res=`eval 'as_val=${'$as_ac_Header'}
13363 $as_echo "$as_val"'`
13364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13365 $as_echo "$ac_res" >&6; }
13368 as_val=`eval 'as_val=${'$as_ac_Header'}
13369 $as_echo "$as_val"'`
13370 if test "x$as_val" = x""yes; then
13371 cat >>confdefs.h <<_ACEOF
13372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13377 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13378 { (exit 1); exit 1; }; }
13385 for ac_header in winldap.h
13387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13389 $as_echo_n "checking for $ac_header... " >&6; }
13390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13391 $as_echo_n "(cached) " >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 $ac_includes_default
13400 #include <windows.h>
13403 #include <$ac_header>
13405 rm -f conftest.$ac_objext
13406 if { (ac_try="$ac_compile"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest.$ac_objext; then
13423 eval "$as_ac_Header=yes"
13425 $as_echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 eval "$as_ac_Header=no"
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 ac_res=`eval 'as_val=${'$as_ac_Header'}
13434 $as_echo "$as_val"'`
13435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13436 $as_echo "$ac_res" >&6; }
13437 as_val=`eval 'as_val=${'$as_ac_Header'}
13438 $as_echo "$as_val"'`
13439 if test "x$as_val" = x""yes; then
13440 cat >>confdefs.h <<_ACEOF
13441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13445 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13446 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13447 { (exit 1); exit 1; }; }
13455 if test "$with_bonjour" = yes ; then
13456 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13457 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13458 $as_echo_n "checking for dns_sd.h... " >&6; }
13459 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13460 $as_echo_n "(cached) " >&6
13462 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13463 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13465 # Is the header compilable?
13466 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13467 $as_echo_n "checking dns_sd.h usability... " >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13475 #include <dns_sd.h>
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest.$ac_objext; then
13495 ac_header_compiler=yes
13497 $as_echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_header_compiler=no
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 $as_echo "$ac_header_compiler" >&6; }
13507 # Is the header present?
13508 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13509 $as_echo_n "checking dns_sd.h presence... " >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <dns_sd.h>
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } >/dev/null && {
13532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13535 ac_header_preproc=yes
13537 $as_echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_header_preproc=no
13543 rm -f conftest.err conftest.$ac_ext
13544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13545 $as_echo "$ac_header_preproc" >&6; }
13547 # So? What about this header?
13548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13550 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13551 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13552 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13553 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13554 ac_header_preproc=yes
13557 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13558 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13559 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13560 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13561 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13562 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13563 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13564 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13565 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13566 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13567 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13568 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13570 ## ---------------------------------------- ##
13571 ## Report this to pgsql-bugs@postgresql.org ##
13572 ## ---------------------------------------- ##
13574 ) | sed "s/^/$as_me: WARNING: /" >&2
13577 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13578 $as_echo_n "checking for dns_sd.h... " >&6; }
13579 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13580 $as_echo_n "(cached) " >&6
13582 ac_cv_header_dns_sd_h=$ac_header_preproc
13584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13585 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13588 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13591 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13592 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13593 { (exit 1); exit 1; }; }
13599 # for contrib/uuid-ossp
13600 if test "$with_ossp_uuid" = yes ; then
13602 for ac_header in ossp/uuid.h
13604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 $as_echo_n "checking for $ac_header... " >&6; }
13608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13609 $as_echo_n "(cached) " >&6
13611 ac_res=`eval 'as_val=${'$as_ac_Header'}
13612 $as_echo "$as_val"'`
13613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13614 $as_echo "$ac_res" >&6; }
13616 # Is the header compilable?
13617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13618 $as_echo_n "checking $ac_header usability... " >&6; }
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13626 #include <$ac_header>
13628 rm -f conftest.$ac_objext
13629 if { (ac_try="$ac_compile"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13635 $as_echo "$ac_try_echo") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13638 grep -v '^ *+' conftest.er1 >conftest.err
13640 cat conftest.err >&5
13641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest.$ac_objext; then
13646 ac_header_compiler=yes
13648 $as_echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_header_compiler=no
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13656 $as_echo "$ac_header_compiler" >&6; }
13658 # Is the header present?
13659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13660 $as_echo_n "checking $ac_header presence... " >&6; }
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include <$ac_header>
13669 if { (ac_try="$ac_cpp conftest.$ac_ext"
13670 case "(($ac_try" in
13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672 *) ac_try_echo=$ac_try;;
13674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13675 $as_echo "$ac_try_echo") >&5
13676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13678 grep -v '^ *+' conftest.er1 >conftest.err
13680 cat conftest.err >&5
13681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } >/dev/null && {
13683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13684 test ! -s conftest.err
13686 ac_header_preproc=yes
13688 $as_echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 ac_header_preproc=no
13694 rm -f conftest.err conftest.$ac_ext
13695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13696 $as_echo "$ac_header_preproc" >&6; }
13698 # So? What about this header?
13699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13705 ac_header_preproc=yes
13708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13711 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13715 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13721 ## ---------------------------------------- ##
13722 ## Report this to pgsql-bugs@postgresql.org ##
13723 ## ---------------------------------------- ##
13725 ) | sed "s/^/$as_me: WARNING: /" >&2
13728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13729 $as_echo_n "checking for $ac_header... " >&6; }
13730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13731 $as_echo_n "(cached) " >&6
13733 eval "$as_ac_Header=\$ac_header_preproc"
13735 ac_res=`eval 'as_val=${'$as_ac_Header'}
13736 $as_echo "$as_val"'`
13737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13738 $as_echo "$ac_res" >&6; }
13741 as_val=`eval 'as_val=${'$as_ac_Header'}
13742 $as_echo "$as_val"'`
13743 if test "x$as_val" = x""yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13751 for ac_header in uuid.h
13753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13756 $as_echo_n "checking for $ac_header... " >&6; }
13757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13758 $as_echo_n "(cached) " >&6
13760 ac_res=`eval 'as_val=${'$as_ac_Header'}
13761 $as_echo "$as_val"'`
13762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13763 $as_echo "$ac_res" >&6; }
13765 # Is the header compilable?
13766 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13767 $as_echo_n "checking $ac_header usability... " >&6; }
13768 cat >conftest.$ac_ext <<_ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 $ac_includes_default
13775 #include <$ac_header>
13777 rm -f conftest.$ac_objext
13778 if { (ac_try="$ac_compile"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_compile") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest.$ac_objext; then
13795 ac_header_compiler=yes
13797 $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_header_compiler=no
13803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13804 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 $as_echo "$ac_header_compiler" >&6; }
13807 # Is the header present?
13808 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13809 $as_echo_n "checking $ac_header presence... " >&6; }
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 #include <$ac_header>
13818 if { (ac_try="$ac_cpp conftest.$ac_ext"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13824 $as_echo "$ac_try_echo") >&5
13825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1 >conftest.err
13829 cat conftest.err >&5
13830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } >/dev/null && {
13832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13835 ac_header_preproc=yes
13837 $as_echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_header_preproc=no
13843 rm -f conftest.err conftest.$ac_ext
13844 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13845 $as_echo "$ac_header_preproc" >&6; }
13847 # So? What about this header?
13848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13851 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13854 ac_header_preproc=yes
13857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13858 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13860 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13862 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13864 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13868 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13870 ## ---------------------------------------- ##
13871 ## Report this to pgsql-bugs@postgresql.org ##
13872 ## ---------------------------------------- ##
13874 ) | sed "s/^/$as_me: WARNING: /" >&2
13877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13878 $as_echo_n "checking for $ac_header... " >&6; }
13879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13880 $as_echo_n "(cached) " >&6
13882 eval "$as_ac_Header=\$ac_header_preproc"
13884 ac_res=`eval 'as_val=${'$as_ac_Header'}
13885 $as_echo "$as_val"'`
13886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13887 $as_echo "$ac_res" >&6; }
13890 as_val=`eval 'as_val=${'$as_ac_Header'}
13891 $as_echo "$as_val"'`
13892 if test "x$as_val" = x""yes; then
13893 cat >>confdefs.h <<_ACEOF
13894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13898 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13899 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13900 { (exit 1); exit 1; }; }
13913 ## Types, structures, compiler characteristics
13917 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13918 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13919 if test "${ac_cv_c_bigendian+set}" = set; then
13920 $as_echo_n "(cached) " >&6
13922 ac_cv_c_bigendian=unknown
13923 # See if we're dealing with a universal compiler.
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #ifndef __APPLE_CC__
13931 not a universal capable compiler
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13943 $as_echo "$ac_try_echo") >&5
13944 (eval "$ac_compile") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest.$ac_objext; then
13955 # Check for potential -arch flags. It is not universal unless
13956 # there are some -arch flags. Note that *ppc* also matches
13957 # ppc64. This check is also rather less than ideal.
13958 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13959 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13962 $as_echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969 if test $ac_cv_c_bigendian = unknown; then
13970 # See if sys/param.h defines the BYTE_ORDER macro.
13971 cat >conftest.$ac_ext <<_ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13977 #include <sys/types.h>
13978 #include <sys/param.h>
13983 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13984 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13986 bogus endian macros
13993 rm -f conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14000 $as_echo "$ac_try_echo") >&5
14001 (eval "$ac_compile") 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } && {
14008 test -z "$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 } && test -s conftest.$ac_objext; then
14011 # It does; now see whether it defined to BIG_ENDIAN or not.
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 #include <sys/types.h>
14019 #include <sys/param.h>
14024 #if BYTE_ORDER != BIG_ENDIAN
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040 (eval "$ac_compile") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && {
14047 test -z "$ac_c_werror_flag" ||
14048 test ! -s conftest.err
14049 } && test -s conftest.$ac_objext; then
14050 ac_cv_c_bigendian=yes
14052 $as_echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14055 ac_cv_c_bigendian=no
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 $as_echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 if test $ac_cv_c_bigendian = unknown; then
14069 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <limits.h>
14081 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14082 bogus endian macros
14089 rm -f conftest.$ac_objext
14090 if { (ac_try="$ac_compile"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097 (eval "$ac_compile") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest.$ac_objext; then
14107 # It does; now see whether it defined to _BIG_ENDIAN or not.
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 #include <limits.h>
14119 #ifndef _BIG_ENDIAN
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest.$ac_objext; then
14145 ac_cv_c_bigendian=yes
14147 $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_cv_c_bigendian=no
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155 $as_echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 if test $ac_cv_c_bigendian = unknown; then
14164 # Compile a test program.
14165 if test "$cross_compiling" = yes; then
14166 # Try to guess by grepping values from an object file.
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 short int ascii_mm[] =
14174 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14175 short int ascii_ii[] =
14176 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14177 int use_ascii (int i) {
14178 return ascii_mm[i] + ascii_ii[i];
14180 short int ebcdic_ii[] =
14181 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14182 short int ebcdic_mm[] =
14183 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14184 int use_ebcdic (int i) {
14185 return ebcdic_mm[i] + ebcdic_ii[i];
14192 return use_ascii (foo) == use_ebcdic (foo);
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205 (eval "$ac_compile") 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } && {
14212 test -z "$ac_c_werror_flag" ||
14213 test ! -s conftest.err
14214 } && test -s conftest.$ac_objext; then
14215 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14216 ac_cv_c_bigendian=yes
14218 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14219 if test "$ac_cv_c_bigendian" = unknown; then
14220 ac_cv_c_bigendian=no
14222 # finding both strings is unlikely to happen, but who knows?
14223 ac_cv_c_bigendian=unknown
14227 $as_echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 $ac_includes_default
14246 /* Are we little or big endian? From Harbison&Steele. */
14250 char c[sizeof (long int)];
14253 return u.c[sizeof (long int) - 1] == 1;
14259 rm -f conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14266 $as_echo "$ac_try_echo") >&5
14267 (eval "$ac_link") 2>&5
14269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277 (eval "$ac_try") 2>&5
14279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_c_bigendian=no
14283 $as_echo "$as_me: program exited with status $ac_status" >&5
14284 $as_echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 ( exit $ac_status )
14288 ac_cv_c_bigendian=yes
14290 rm -rf conftest.dSYM
14291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14297 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14298 $as_echo "$ac_cv_c_bigendian" >&6; }
14299 case $ac_cv_c_bigendian in #(
14301 cat >>confdefs.h <<\_ACEOF
14302 #define WORDS_BIGENDIAN 1
14309 cat >>confdefs.h <<\_ACEOF
14310 #define AC_APPLE_UNIVERSAL_BUILD 1
14315 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14316 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14317 $as_echo "$as_me: error: unknown endianness
14318 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14319 { (exit 1); exit 1; }; } ;;
14322 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14324 if test "${ac_cv_c_const+set}" = set; then
14325 $as_echo_n "(cached) " >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14337 /* FIXME: Include the comments suggested by Paul. */
14338 #ifndef __cplusplus
14339 /* Ultrix mips cc rejects this. */
14340 typedef int charset[2];
14342 /* SunOS 4.1.1 cc rejects this. */
14343 char const *const *pcpcc;
14345 /* NEC SVR4.0.2 mips cc rejects this. */
14346 struct point {int x, y;};
14347 static struct point const zero = {0,0};
14348 /* AIX XL C 1.02.0.0 rejects this.
14349 It does not let you subtract one const X* pointer from another in
14350 an arm of an if-expression whose if-part is not a constant
14352 const char *g = "string";
14353 pcpcc = &g + (g ? g-g : 0);
14354 /* HPUX 7.0 cc rejects these. */
14356 ppc = (char**) pcpcc;
14357 pcpcc = (char const *const *) ppc;
14358 { /* SCO 3.2v4 cc rejects this. */
14360 char const *s = 0 ? (char *) 0 : (char const *) 0;
14365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14366 int x[] = {25, 17};
14367 const int *foo = &x[0];
14370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14371 typedef const int *iptr;
14375 { /* AIX XL C 1.02.0.0 rejects this saying
14376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14377 struct s { int j; const int *ap[3]; };
14378 struct s *b; b->j = 5;
14380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14381 const int foo = 10;
14382 if (!foo) return 0;
14384 return !cs[0] && !zero.x;
14391 rm -f conftest.$ac_objext
14392 if { (ac_try="$ac_compile"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14420 $as_echo "$ac_cv_c_const" >&6; }
14421 if test $ac_cv_c_const = no; then
14423 cat >>confdefs.h <<\_ACEOF
14429 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14430 $as_echo_n "checking for inline... " >&6; }
14431 if test "${ac_cv_c_inline+set}" = set; then
14432 $as_echo_n "(cached) " >&6
14435 for ac_kw in inline __inline__ __inline; do
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #ifndef __cplusplus
14444 static $ac_kw foo_t static_foo () {return 0; }
14445 $ac_kw foo_t foo () {return 0; }
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14456 $as_echo "$ac_try_echo") >&5
14457 (eval "$ac_compile") 2>conftest.er1
14459 grep -v '^ *+' conftest.er1 >conftest.err
14461 cat conftest.err >&5
14462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest.$ac_objext; then
14467 ac_cv_c_inline=$ac_kw
14469 $as_echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 test "$ac_cv_c_inline" != no && break
14480 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14481 $as_echo "$ac_cv_c_inline" >&6; }
14484 case $ac_cv_c_inline in
14487 case $ac_cv_c_inline in
14489 *) ac_val=$ac_cv_c_inline;;
14491 cat >>confdefs.h <<_ACEOF
14492 #ifndef __cplusplus
14493 #define inline $ac_val
14499 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14500 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14501 if test "${ac_cv_c_stringize+set}" = set; then
14502 $as_echo_n "(cached) " >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14512 char *s = x(teststring);
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515 $EGREP "#teststring" >/dev/null 2>&1; then
14516 ac_cv_c_stringize=no
14518 ac_cv_c_stringize=yes
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14524 $as_echo "$ac_cv_c_stringize" >&6; }
14525 if test $ac_cv_c_stringize = yes; then
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_STRINGIZE 1
14533 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14534 $as_echo_n "checking for signed types... " >&6; }
14535 if test "${pgac_cv_c_signed+set}" = set; then
14536 $as_echo_n "(cached) " >&6
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14548 signed char c; signed short s; signed int i;
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14560 $as_echo "$ac_try_echo") >&5
14561 (eval "$ac_compile") 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } && {
14568 test -z "$ac_c_werror_flag" ||
14569 test ! -s conftest.err
14570 } && test -s conftest.$ac_objext; then
14571 pgac_cv_c_signed=yes
14573 $as_echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 pgac_cv_c_signed=no
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14582 $as_echo "$pgac_cv_c_signed" >&6; }
14583 if test x"$pgac_cv_c_signed" = xno ; then
14585 cat >>confdefs.h <<\_ACEOF
14586 #define signed /**/
14590 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14591 $as_echo_n "checking for working volatile... " >&6; }
14592 if test "${ac_cv_c_volatile+set}" = set; then
14593 $as_echo_n "(cached) " >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14607 int * volatile y = (int *) 0;
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14620 $as_echo "$ac_try_echo") >&5
14621 (eval "$ac_compile") 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest.$ac_objext; then
14631 ac_cv_c_volatile=yes
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 ac_cv_c_volatile=no
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14642 $as_echo "$ac_cv_c_volatile" >&6; }
14643 if test $ac_cv_c_volatile = no; then
14645 cat >>confdefs.h <<\_ACEOF
14646 #define volatile /**/
14651 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14652 $as_echo_n "checking for __func__... " >&6; }
14653 if test "${pgac_cv_funcname_func_support+set}" = set; then
14654 $as_echo_n "(cached) " >&6
14656 cat >conftest.$ac_ext <<_ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14666 printf("%s\n", __func__);
14671 rm -f conftest.$ac_objext
14672 if { (ac_try="$ac_compile"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679 (eval "$ac_compile") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } && {
14686 test -z "$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14688 } && test -s conftest.$ac_objext; then
14689 pgac_cv_funcname_func_support=yes
14691 $as_echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14694 pgac_cv_funcname_func_support=no
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14700 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14701 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_FUNCNAME__FUNC 1
14708 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14709 $as_echo_n "checking for __FUNCTION__... " >&6; }
14710 if test "${pgac_cv_funcname_function_support+set}" = set; then
14711 $as_echo_n "(cached) " >&6
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14723 printf("%s\n", __FUNCTION__);
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736 (eval "$ac_compile") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest.$ac_objext; then
14746 pgac_cv_funcname_function_support=yes
14748 $as_echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 pgac_cv_funcname_function_support=no
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14757 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14758 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14760 cat >>confdefs.h <<\_ACEOF
14761 #define HAVE_FUNCNAME__FUNCTION 1
14766 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14767 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14768 if test "${ac_cv_struct_tm+set}" = set; then
14769 $as_echo_n "(cached) " >&6
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 #include <sys/types.h>
14784 int *p = &tm.tm_sec;
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798 (eval "$ac_compile") 2>conftest.er1
14800 grep -v '^ *+' conftest.er1 >conftest.err
14802 cat conftest.err >&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest.$ac_objext; then
14808 ac_cv_struct_tm=time.h
14810 $as_echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 ac_cv_struct_tm=sys/time.h
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14819 $as_echo "$ac_cv_struct_tm" >&6; }
14820 if test $ac_cv_struct_tm = sys/time.h; then
14822 cat >>confdefs.h <<\_ACEOF
14823 #define TM_IN_SYS_TIME 1
14828 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14829 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14830 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14831 $as_echo_n "(cached) " >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 #include <sys/types.h>
14840 #include <$ac_cv_struct_tm>
14846 static struct tm ac_aggr;
14847 if (ac_aggr.tm_zone)
14853 rm -f conftest.$ac_objext
14854 if { (ac_try="$ac_compile"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14860 $as_echo "$ac_try_echo") >&5
14861 (eval "$ac_compile") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 } && test -s conftest.$ac_objext; then
14871 ac_cv_member_struct_tm_tm_zone=yes
14873 $as_echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <sys/types.h>
14883 #include <$ac_cv_struct_tm>
14889 static struct tm ac_aggr;
14890 if (sizeof ac_aggr.tm_zone)
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14903 $as_echo "$ac_try_echo") >&5
14904 (eval "$ac_compile") 2>conftest.er1
14906 grep -v '^ *+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
14913 } && test -s conftest.$ac_objext; then
14914 ac_cv_member_struct_tm_tm_zone=yes
14916 $as_echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14919 ac_cv_member_struct_tm_tm_zone=no
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14928 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14929 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_STRUCT_TM_TM_ZONE 1
14938 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_TM_ZONE 1
14945 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14946 $as_echo_n "checking for tzname... " >&6; }
14947 if test "${ac_cv_var_tzname+set}" = set; then
14948 $as_echo_n "(cached) " >&6
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14957 #ifndef tzname /* For SGI. */
14958 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14976 $as_echo "$ac_try_echo") >&5
14977 (eval "$ac_link") 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext && {
14987 test "$cross_compiling" = yes ||
14988 $as_test_x conftest$ac_exeext
14990 ac_cv_var_tzname=yes
14992 $as_echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_cv_var_tzname=no
14998 rm -rf conftest.dSYM
14999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15000 conftest$ac_exeext conftest.$ac_ext
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15003 $as_echo "$ac_cv_var_tzname" >&6; }
15004 if test $ac_cv_var_tzname = yes; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_TZNAME 1
15012 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15013 $as_echo_n "checking for union semun... " >&6; }
15014 if test "${ac_cv_type_union_semun+set}" = set; then
15015 $as_echo_n "(cached) " >&6
15017 ac_cv_type_union_semun=no
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <sys/types.h>
15025 #include <sys/ipc.h>
15026 #include <sys/sem.h>
15031 if (sizeof (union semun))
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15044 $as_echo "$ac_try_echo") >&5
15045 (eval "$ac_compile") 2>conftest.er1
15047 grep -v '^ *+' conftest.er1 >conftest.err
15049 cat conftest.err >&5
15050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest.$ac_objext; then
15055 cat >conftest.$ac_ext <<_ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15061 #include <sys/types.h>
15062 #include <sys/ipc.h>
15063 #include <sys/sem.h>
15068 if (sizeof ((union semun)))
15074 rm -f conftest.$ac_objext
15075 if { (ac_try="$ac_compile"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15081 $as_echo "$ac_try_echo") >&5
15082 (eval "$ac_compile") 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } && {
15089 test -z "$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15091 } && test -s conftest.$ac_objext; then
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_type_union_semun=yes
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15111 $as_echo "$ac_cv_type_union_semun" >&6; }
15112 if test "x$ac_cv_type_union_semun" = x""yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_UNION_SEMUN 1
15121 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15122 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15123 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15124 $as_echo_n "(cached) " >&6
15126 ac_cv_type_struct_sockaddr_un=no
15127 cat >conftest.$ac_ext <<_ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <sys/types.h>
15134 #ifdef HAVE_SYS_UN_H
15135 #include <sys/un.h>
15142 if (sizeof (struct sockaddr_un))
15148 rm -f conftest.$ac_objext
15149 if { (ac_try="$ac_compile"
15150 case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155 $as_echo "$ac_try_echo") >&5
15156 (eval "$ac_compile") 2>conftest.er1
15158 grep -v '^ *+' conftest.er1 >conftest.err
15160 cat conftest.err >&5
15161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } && {
15163 test -z "$ac_c_werror_flag" ||
15164 test ! -s conftest.err
15165 } && test -s conftest.$ac_objext; then
15166 cat >conftest.$ac_ext <<_ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172 #include <sys/types.h>
15173 #ifdef HAVE_SYS_UN_H
15174 #include <sys/un.h>
15181 if (sizeof ((struct sockaddr_un)))
15187 rm -f conftest.$ac_objext
15188 if { (ac_try="$ac_compile"
15189 case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15194 $as_echo "$ac_try_echo") >&5
15195 (eval "$ac_compile") 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest.$ac_objext; then
15207 $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15210 ac_cv_type_struct_sockaddr_un=yes
15213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15215 $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15224 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15225 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_STRUCT_SOCKADDR_UN 1
15232 cat >>confdefs.h <<\_ACEOF
15233 #define HAVE_UNIX_SOCKETS 1
15238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15239 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15240 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15241 $as_echo_n "(cached) " >&6
15243 ac_cv_type_struct_sockaddr_storage=no
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #include <sys/types.h>
15251 #ifdef HAVE_SYS_SOCKET_H
15252 #include <sys/socket.h>
15259 if (sizeof (struct sockaddr_storage))
15265 rm -f conftest.$ac_objext
15266 if { (ac_try="$ac_compile"
15267 case "(($ac_try" in
15268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15269 *) ac_try_echo=$ac_try;;
15271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15272 $as_echo "$ac_try_echo") >&5
15273 (eval "$ac_compile") 2>conftest.er1
15275 grep -v '^ *+' conftest.er1 >conftest.err
15277 cat conftest.err >&5
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest.$ac_objext; then
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 #include <sys/types.h>
15290 #ifdef HAVE_SYS_SOCKET_H
15291 #include <sys/socket.h>
15298 if (sizeof ((struct sockaddr_storage)))
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15314 grep -v '^ *+' conftest.er1 >conftest.err
15316 cat conftest.err >&5
15317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
15321 } && test -s conftest.$ac_objext; then
15324 $as_echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_cv_type_struct_sockaddr_storage=yes
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15332 $as_echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15341 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15342 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15344 cat >>confdefs.h <<_ACEOF
15345 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15352 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15353 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15354 $as_echo_n "(cached) " >&6
15356 cat >conftest.$ac_ext <<_ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15371 static struct sockaddr_storage ac_aggr;
15372 if (ac_aggr.ss_family)
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386 (eval "$ac_compile") 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest.$ac_objext; then
15396 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15398 $as_echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 cat >conftest.$ac_ext <<_ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/types.h>
15408 #ifdef HAVE_SYS_SOCKET_H
15409 #include <sys/socket.h>
15416 static struct sockaddr_storage ac_aggr;
15417 if (sizeof ac_aggr.ss_family)
15423 rm -f conftest.$ac_objext
15424 if { (ac_try="$ac_compile"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430 $as_echo "$ac_try_echo") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest.$ac_objext; then
15441 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15443 $as_echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_cv_member_struct_sockaddr_storage_ss_family=no
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15458 cat >>confdefs.h <<_ACEOF
15459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15465 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15466 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15467 $as_echo_n "(cached) " >&6
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <sys/types.h>
15476 #ifdef HAVE_SYS_SOCKET_H
15477 #include <sys/socket.h>
15484 static struct sockaddr_storage ac_aggr;
15485 if (ac_aggr.__ss_family)
15491 rm -f conftest.$ac_objext
15492 if { (ac_try="$ac_compile"
15493 case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498 $as_echo "$ac_try_echo") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest.$ac_objext; then
15509 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15511 $as_echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <sys/types.h>
15521 #ifdef HAVE_SYS_SOCKET_H
15522 #include <sys/socket.h>
15529 static struct sockaddr_storage ac_aggr;
15530 if (sizeof ac_aggr.__ss_family)
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15543 $as_echo "$ac_try_echo") >&5
15544 (eval "$ac_compile") 2>conftest.er1
15546 grep -v '^ *+' conftest.er1 >conftest.err
15548 cat conftest.err >&5
15549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } && {
15551 test -z "$ac_c_werror_flag" ||
15552 test ! -s conftest.err
15553 } && test -s conftest.$ac_objext; then
15554 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15556 $as_echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_cv_member_struct_sockaddr_storage___ss_family=no
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15571 cat >>confdefs.h <<_ACEOF
15572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15578 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15579 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+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. */
15588 #include <sys/types.h>
15589 #ifdef HAVE_SYS_SOCKET_H
15590 #include <sys/socket.h>
15597 static struct sockaddr_storage ac_aggr;
15598 if (ac_aggr.ss_len)
15604 rm -f conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15611 $as_echo "$ac_try_echo") >&5
15612 (eval "$ac_compile") 2>conftest.er1
15614 grep -v '^ *+' conftest.er1 >conftest.err
15616 cat conftest.err >&5
15617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } && {
15619 test -z "$ac_c_werror_flag" ||
15620 test ! -s conftest.err
15621 } && test -s conftest.$ac_objext; then
15622 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15624 $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15633 #include <sys/types.h>
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15642 static struct sockaddr_storage ac_aggr;
15643 if (sizeof ac_aggr.ss_len)
15649 rm -f conftest.$ac_objext
15650 if { (ac_try="$ac_compile"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15669 $as_echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_cv_member_struct_sockaddr_storage_ss_len=no
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15681 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15682 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15684 cat >>confdefs.h <<_ACEOF
15685 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15690 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15691 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15692 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15693 $as_echo_n "(cached) " >&6
15695 cat >conftest.$ac_ext <<_ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 #include <sys/types.h>
15702 #ifdef HAVE_SYS_SOCKET_H
15703 #include <sys/socket.h>
15710 static struct sockaddr_storage ac_aggr;
15711 if (ac_aggr.__ss_len)
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725 (eval "$ac_compile") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest.$ac_objext; then
15735 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15737 $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 #include <sys/types.h>
15747 #ifdef HAVE_SYS_SOCKET_H
15748 #include <sys/socket.h>
15755 static struct sockaddr_storage ac_aggr;
15756 if (sizeof ac_aggr.__ss_len)
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_member_struct_sockaddr_storage___ss_len=yes
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_cv_member_struct_sockaddr_storage___ss_len=no
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15794 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15795 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15803 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15804 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15805 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15806 $as_echo_n "(cached) " >&6
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 #include <sys/types.h>
15815 #ifdef HAVE_SYS_SOCKET_H
15816 #include <sys/socket.h>
15823 static struct sockaddr ac_aggr;
15824 if (ac_aggr.sa_len)
15830 rm -f conftest.$ac_objext
15831 if { (ac_try="$ac_compile"
15832 case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15837 $as_echo "$ac_try_echo") >&5
15838 (eval "$ac_compile") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } && {
15845 test -z "$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15847 } && test -s conftest.$ac_objext; then
15848 ac_cv_member_struct_sockaddr_sa_len=yes
15850 $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <sys/types.h>
15860 #ifdef HAVE_SYS_SOCKET_H
15861 #include <sys/socket.h>
15868 static struct sockaddr ac_aggr;
15869 if (sizeof ac_aggr.sa_len)
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15882 $as_echo "$ac_try_echo") >&5
15883 (eval "$ac_compile") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && {
15890 test -z "$ac_c_werror_flag" ||
15891 test ! -s conftest.err
15892 } && test -s conftest.$ac_objext; then
15893 ac_cv_member_struct_sockaddr_sa_len=yes
15895 $as_echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_cv_member_struct_sockaddr_sa_len=no
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15907 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15908 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15917 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15918 $as_echo_n "checking for struct addrinfo... " >&6; }
15919 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15920 $as_echo_n "(cached) " >&6
15922 ac_cv_type_struct_addrinfo=no
15923 cat >conftest.$ac_ext <<_ACEOF
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15929 #include <sys/types.h>
15930 #include <sys/socket.h>
15937 if (sizeof (struct addrinfo))
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15950 $as_echo "$ac_try_echo") >&5
15951 (eval "$ac_compile") 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } && {
15958 test -z "$ac_c_werror_flag" ||
15959 test ! -s conftest.err
15960 } && test -s conftest.$ac_objext; then
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 #include <sys/types.h>
15968 #include <sys/socket.h>
15975 if (sizeof ((struct addrinfo)))
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15988 $as_echo "$ac_try_echo") >&5
15989 (eval "$ac_compile") 2>conftest.er1
15991 grep -v '^ *+' conftest.er1 >conftest.err
15993 cat conftest.err >&5
15994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } && {
15996 test -z "$ac_c_werror_flag" ||
15997 test ! -s conftest.err
15998 } && test -s conftest.$ac_objext; then
16001 $as_echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 ac_cv_type_struct_addrinfo=yes
16007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 $as_echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16018 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16019 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16021 cat >>confdefs.h <<_ACEOF
16022 #define HAVE_STRUCT_ADDRINFO 1
16029 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16030 $as_echo_n "checking for intptr_t... " >&6; }
16031 if test "${ac_cv_type_intptr_t+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16034 ac_cv_type_intptr_t=no
16035 cat >conftest.$ac_ext <<_ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 $ac_includes_default
16045 if (sizeof (intptr_t))
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059 (eval "$ac_compile") 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } && {
16066 test -z "$ac_c_werror_flag" ||
16067 test ! -s conftest.err
16068 } && test -s conftest.$ac_objext; then
16069 cat >conftest.$ac_ext <<_ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 $ac_includes_default
16079 if (sizeof ((intptr_t)))
16085 rm -f conftest.$ac_objext
16086 if { (ac_try="$ac_compile"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16092 $as_echo "$ac_try_echo") >&5
16093 (eval "$ac_compile") 2>conftest.er1
16095 grep -v '^ *+' conftest.er1 >conftest.err
16097 cat conftest.err >&5
16098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } && {
16100 test -z "$ac_c_werror_flag" ||
16101 test ! -s conftest.err
16102 } && test -s conftest.$ac_objext; then
16105 $as_echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 ac_cv_type_intptr_t=yes
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16122 $as_echo "$ac_cv_type_intptr_t" >&6; }
16123 if test "x$ac_cv_type_intptr_t" = x""yes; then
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE_INTPTR_T 1
16130 for ac_type in 'int' 'long int' 'long long int'; do
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16141 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16148 rm -f conftest.$ac_objext
16149 if { (ac_try="$ac_compile"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16158 grep -v '^ *+' conftest.er1 >conftest.err
16160 cat conftest.err >&5
16161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest.$ac_objext; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define intptr_t $ac_type
16173 $as_echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 test -z "$ac_type" && break
16186 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16187 $as_echo_n "checking for uintptr_t... " >&6; }
16188 if test "${ac_cv_type_uintptr_t+set}" = set; then
16189 $as_echo_n "(cached) " >&6
16191 ac_cv_type_uintptr_t=no
16192 cat >conftest.$ac_ext <<_ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 $ac_includes_default
16202 if (sizeof (uintptr_t))
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $ac_includes_default
16236 if (sizeof ((uintptr_t)))
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.$ac_objext; then
16262 $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_cv_type_uintptr_t=yes
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16279 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16280 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_UINTPTR_T 1
16287 for ac_type in 'unsigned int' 'unsigned long int' \
16288 'unsigned long long int'; do
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16299 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16306 rm -f conftest.$ac_objext
16307 if { (ac_try="$ac_compile"
16308 case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313 $as_echo "$ac_try_echo") >&5
16314 (eval "$ac_compile") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest.$ac_objext; then
16325 cat >>confdefs.h <<_ACEOF
16326 #define uintptr_t $ac_type
16331 $as_echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 test -z "$ac_type" && break
16344 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16345 $as_echo_n "checking for struct cmsgcred... " >&6; }
16346 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16347 $as_echo_n "(cached) " >&6
16349 ac_cv_type_struct_cmsgcred=no
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 #include <sys/param.h>
16357 #include <sys/types.h>
16358 #include <sys/socket.h>
16359 #include <sys/ucred.h>
16364 if (sizeof (struct cmsgcred))
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16377 $as_echo "$ac_try_echo") >&5
16378 (eval "$ac_compile") 2>conftest.er1
16380 grep -v '^ *+' conftest.er1 >conftest.err
16382 cat conftest.err >&5
16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } && {
16385 test -z "$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16387 } && test -s conftest.$ac_objext; then
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 #include <sys/param.h>
16395 #include <sys/types.h>
16396 #include <sys/socket.h>
16397 #include <sys/ucred.h>
16402 if (sizeof ((struct cmsgcred)))
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16415 $as_echo "$ac_try_echo") >&5
16416 (eval "$ac_compile") 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && {
16423 test -z "$ac_c_werror_flag" ||
16424 test ! -s conftest.err
16425 } && test -s conftest.$ac_objext; then
16428 $as_echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16431 ac_cv_type_struct_cmsgcred=yes
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436 $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16445 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16446 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_STRUCT_CMSGCRED 1
16454 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16455 $as_echo_n "checking for struct fcred... " >&6; }
16456 if test "${ac_cv_type_struct_fcred+set}" = set; then
16457 $as_echo_n "(cached) " >&6
16459 ac_cv_type_struct_fcred=no
16460 cat >conftest.$ac_ext <<_ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <sys/param.h>
16467 #include <sys/types.h>
16468 #include <sys/socket.h>
16469 #include <sys/ucred.h>
16474 if (sizeof (struct fcred))
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16487 $as_echo "$ac_try_echo") >&5
16488 (eval "$ac_compile") 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } && {
16495 test -z "$ac_c_werror_flag" ||
16496 test ! -s conftest.err
16497 } && test -s conftest.$ac_objext; then
16498 cat >conftest.$ac_ext <<_ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16504 #include <sys/param.h>
16505 #include <sys/types.h>
16506 #include <sys/socket.h>
16507 #include <sys/ucred.h>
16512 if (sizeof ((struct fcred)))
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16525 $as_echo "$ac_try_echo") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } && {
16533 test -z "$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 } && test -s conftest.$ac_objext; then
16538 $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_cv_type_struct_fcred=yes
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546 $as_echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16555 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16556 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_STRUCT_FCRED 1
16564 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16565 $as_echo_n "checking for struct sockcred... " >&6; }
16566 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16567 $as_echo_n "(cached) " >&6
16569 ac_cv_type_struct_sockcred=no
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <sys/param.h>
16577 #include <sys/types.h>
16578 #include <sys/socket.h>
16579 #include <sys/ucred.h>
16584 if (sizeof (struct sockcred))
16590 rm -f conftest.$ac_objext
16591 if { (ac_try="$ac_compile"
16592 case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16597 $as_echo "$ac_try_echo") >&5
16598 (eval "$ac_compile") 2>conftest.er1
16600 grep -v '^ *+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest.$ac_objext; then
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 #include <sys/param.h>
16615 #include <sys/types.h>
16616 #include <sys/socket.h>
16617 #include <sys/ucred.h>
16622 if (sizeof ((struct sockcred)))
16628 rm -f conftest.$ac_objext
16629 if { (ac_try="$ac_compile"
16630 case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16635 $as_echo "$ac_try_echo") >&5
16636 (eval "$ac_compile") 2>conftest.er1
16638 grep -v '^ *+' conftest.er1 >conftest.err
16640 cat conftest.err >&5
16641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } && {
16643 test -z "$ac_c_werror_flag" ||
16644 test ! -s conftest.err
16645 } && test -s conftest.$ac_objext; then
16648 $as_echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 ac_cv_type_struct_sockcred=yes
16654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656 $as_echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16665 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16666 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16668 cat >>confdefs.h <<_ACEOF
16669 #define HAVE_STRUCT_SOCKCRED 1
16676 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16677 $as_echo_n "checking for struct option... " >&6; }
16678 if test "${ac_cv_type_struct_option+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16681 ac_cv_type_struct_option=no
16682 cat >conftest.$ac_ext <<_ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #ifdef HAVE_GETOPT_H
16689 #include <getopt.h>
16695 if (sizeof (struct option))
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16708 $as_echo "$ac_try_echo") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.$ac_objext; then
16719 cat >conftest.$ac_ext <<_ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 #ifdef HAVE_GETOPT_H
16726 #include <getopt.h>
16732 if (sizeof ((struct option)))
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16745 $as_echo "$ac_try_echo") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } && {
16753 test -z "$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 } && test -s conftest.$ac_objext; then
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_cv_type_struct_option=yes
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 $as_echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16775 $as_echo "$ac_cv_type_struct_option" >&6; }
16776 if test "x$ac_cv_type_struct_option" = x""yes; then
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_STRUCT_OPTION 1
16786 if test "$with_zlib" = yes; then
16787 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16788 # did not). While we could work around the lack of z_streamp, it
16789 # seems unwise to encourage people to use such old zlib versions...
16790 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16791 $as_echo_n "checking for z_streamp... " >&6; }
16792 if test "${ac_cv_type_z_streamp+set}" = set; then
16793 $as_echo_n "(cached) " >&6
16795 ac_cv_type_z_streamp=no
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16807 if (sizeof (z_streamp))
16813 rm -f conftest.$ac_objext
16814 if { (ac_try="$ac_compile"
16815 case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820 $as_echo "$ac_try_echo") >&5
16821 (eval "$ac_compile") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest.$ac_objext; then
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16842 if (sizeof ((z_streamp)))
16848 rm -f conftest.$ac_objext
16849 if { (ac_try="$ac_compile"
16850 case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855 $as_echo "$ac_try_echo") >&5
16856 (eval "$ac_compile") 2>conftest.er1
16858 grep -v '^ *+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } && {
16863 test -z "$ac_c_werror_flag" ||
16864 test ! -s conftest.err
16865 } && test -s conftest.$ac_objext; then
16868 $as_echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ac_cv_type_z_streamp=yes
16874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16876 $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16885 $as_echo "$ac_cv_type_z_streamp" >&6; }
16886 if test "x$ac_cv_type_z_streamp" = x""yes; then
16889 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16890 Use --without-zlib to disable zlib support." >&5
16891 $as_echo "$as_me: error: zlib version is too old
16892 Use --without-zlib to disable zlib support." >&2;}
16893 { (exit 1); exit 1; }; }
16898 if test "$with_krb5" = yes; then
16899 # Check for differences between MIT and Heimdal (KTH) releases
16900 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16901 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16902 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16903 $as_echo_n "(cached) " >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16916 static krb5_ticket ac_aggr;
16917 if (ac_aggr.enc_part2)
16923 rm -f conftest.$ac_objext
16924 if { (ac_try="$ac_compile"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931 (eval "$ac_compile") 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest.$ac_objext; then
16941 ac_cv_member_krb5_ticket_enc_part2=yes
16943 $as_echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 cat >conftest.$ac_ext <<_ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16957 static krb5_ticket ac_aggr;
16958 if (sizeof ac_aggr.enc_part2)
16964 rm -f conftest.$ac_objext
16965 if { (ac_try="$ac_compile"
16966 case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16971 $as_echo "$ac_try_echo") >&5
16972 (eval "$ac_compile") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest.$ac_objext; then
16982 ac_cv_member_krb5_ticket_enc_part2=yes
16984 $as_echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 ac_cv_member_krb5_ticket_enc_part2=no
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16996 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16997 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_KRB5_TICKET_ENC_PART2 1
17005 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17006 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17007 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17008 $as_echo_n "(cached) " >&6
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17021 static krb5_ticket ac_aggr;
17022 if (ac_aggr.client)
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17035 $as_echo "$ac_try_echo") >&5
17036 (eval "$ac_compile") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && {
17043 test -z "$ac_c_werror_flag" ||
17044 test ! -s conftest.err
17045 } && test -s conftest.$ac_objext; then
17046 ac_cv_member_krb5_ticket_client=yes
17048 $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17062 static krb5_ticket ac_aggr;
17063 if (sizeof ac_aggr.client)
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17076 $as_echo "$ac_try_echo") >&5
17077 (eval "$ac_compile") 2>conftest.er1
17079 grep -v '^ *+' conftest.er1 >conftest.err
17081 cat conftest.err >&5
17082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest.$ac_objext; then
17087 ac_cv_member_krb5_ticket_client=yes
17089 $as_echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 ac_cv_member_krb5_ticket_client=no
17095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17100 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17101 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17102 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17104 cat >>confdefs.h <<_ACEOF
17105 #define HAVE_KRB5_TICKET_CLIENT 1
17110 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17111 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17112 { (exit 1); exit 1; }; }
17117 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17118 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17119 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17120 $as_echo_n "(cached) " >&6
17122 cat >conftest.$ac_ext <<_ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17133 static krb5_error ac_aggr;
17134 if (ac_aggr.text.data)
17140 rm -f conftest.$ac_objext
17141 if { (ac_try="$ac_compile"
17142 case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17147 $as_echo "$ac_try_echo") >&5
17148 (eval "$ac_compile") 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } && {
17155 test -z "$ac_c_werror_flag" ||
17156 test ! -s conftest.err
17157 } && test -s conftest.$ac_objext; then
17158 ac_cv_member_krb5_error_text_data=yes
17160 $as_echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17174 static krb5_error ac_aggr;
17175 if (sizeof ac_aggr.text.data)
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17188 $as_echo "$ac_try_echo") >&5
17189 (eval "$ac_compile") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1 >conftest.err
17193 cat conftest.err >&5
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest.$ac_objext; then
17199 ac_cv_member_krb5_error_text_data=yes
17201 $as_echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_member_krb5_error_text_data=no
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17213 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17214 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17216 cat >>confdefs.h <<_ACEOF
17217 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17222 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17223 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17224 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17225 $as_echo_n "(cached) " >&6
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17238 static krb5_error ac_aggr;
17239 if (ac_aggr.e_data)
17245 rm -f conftest.$ac_objext
17246 if { (ac_try="$ac_compile"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253 (eval "$ac_compile") 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest.$ac_objext; then
17263 ac_cv_member_krb5_error_e_data=yes
17265 $as_echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 cat >conftest.$ac_ext <<_ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17279 static krb5_error ac_aggr;
17280 if (sizeof ac_aggr.e_data)
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest.$ac_objext; then
17304 ac_cv_member_krb5_error_e_data=yes
17306 $as_echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_cv_member_krb5_error_e_data=no
17312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17317 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17318 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17319 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17321 cat >>confdefs.h <<_ACEOF
17322 #define HAVE_KRB5_ERROR_E_DATA 1
17327 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17328 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17329 { (exit 1); exit 1; }; }
17335 # Win32 requires headers to be loaded for __stdcall, so can't use
17336 # AC_CHECK_FUNCS here.
17337 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17338 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17349 krb5_free_unparsed_name(NULL,NULL);
17354 rm -f conftest.$ac_objext conftest$ac_exeext
17355 if { (ac_try="$ac_link"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17361 $as_echo "$ac_try_echo") >&5
17362 (eval "$ac_link") 2>conftest.er1
17364 grep -v '^ *+' conftest.er1 >conftest.err
17366 cat conftest.err >&5
17367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext && {
17372 test "$cross_compiling" = yes ||
17373 $as_test_x conftest$ac_exeext
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17380 { $as_echo "$as_me:$LINENO: result: yes" >&5
17381 $as_echo "yes" >&6; }
17383 $as_echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 { $as_echo "$as_me:$LINENO: result: no" >&5
17387 $as_echo "no" >&6; }
17390 rm -rf conftest.dSYM
17391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17392 conftest$ac_exeext conftest.$ac_ext
17397 ## Functions, global variables
17400 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17401 $as_echo_n "checking for int timezone... " >&6; }
17402 if test "${pgac_cv_var_int_timezone+set}" = set; then
17403 $as_echo_n "(cached) " >&6
17405 cat >conftest.$ac_ext <<_ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17417 res = timezone / 60;
17419 res = _timezone / 60;
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (ac_try="$ac_link"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17432 $as_echo "$ac_try_echo") >&5
17433 (eval "$ac_link") 2>conftest.er1
17435 grep -v '^ *+' conftest.er1 >conftest.err
17437 cat conftest.err >&5
17438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } && {
17440 test -z "$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 } && test -s conftest$ac_exeext && {
17443 test "$cross_compiling" = yes ||
17444 $as_test_x conftest$ac_exeext
17446 pgac_cv_var_int_timezone=yes
17448 $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 pgac_cv_var_int_timezone=no
17454 rm -rf conftest.dSYM
17455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17456 conftest$ac_exeext conftest.$ac_ext
17458 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17459 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17460 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_INT_TIMEZONE /**/
17467 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17468 $as_echo_n "checking types of arguments for accept()... " >&6; }
17469 if test "${ac_cv_func_accept_return+set}" = set; then
17470 $as_echo_n "(cached) " >&6
17472 if test "${ac_cv_func_accept_arg1+set}" = set; then
17473 $as_echo_n "(cached) " >&6
17475 if test "${ac_cv_func_accept_arg2+set}" = set; then
17476 $as_echo_n "(cached) " >&6
17478 if test "${ac_cv_func_accept_arg3+set}" = set; then
17479 $as_echo_n "(cached) " >&6
17481 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17482 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17483 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17484 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17485 cat >conftest.$ac_ext <<_ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 #ifdef HAVE_SYS_TYPES_H
17492 #include <sys/types.h>
17494 #ifdef HAVE_SYS_SOCKET_H
17495 #include <sys/socket.h>
17497 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17506 rm -f conftest.$ac_objext
17507 if { (ac_try="$ac_compile"
17508 case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17513 $as_echo "$ac_try_echo") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17524 ac_not_found=no; break 4
17526 $as_echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 if test "$ac_not_found" = yes; then
17538 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17539 $as_echo "$as_me: error: could not determine argument types" >&2;}
17540 { (exit 1); exit 1; }; }
17542 if test "$ac_cv_func_accept_arg3" = "void"; then
17543 ac_cv_func_accept_arg3=int
17553 { $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
17554 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17556 cat >>confdefs.h <<_ACEOF
17557 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17561 cat >>confdefs.h <<_ACEOF
17562 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17566 cat >>confdefs.h <<_ACEOF
17567 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17571 cat >>confdefs.h <<_ACEOF
17572 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17576 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17577 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17578 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17579 $as_echo_n "(cached) " >&6
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 #include <sys/time.h>
17591 struct timeval *tp;
17592 struct timezone *tzp;
17593 gettimeofday(tp,tzp);
17598 rm -f conftest.$ac_objext
17599 if { (ac_try="$ac_compile"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17605 $as_echo "$ac_try_echo") >&5
17606 (eval "$ac_compile") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest.$ac_objext; then
17616 pgac_cv_func_gettimeofday_1arg=no
17618 $as_echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 pgac_cv_func_gettimeofday_1arg=yes
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17627 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17628 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17630 cat >>confdefs.h <<\_ACEOF
17631 #define GETTIMEOFDAY_1ARG /**/
17660 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17664 $as_echo_n "checking for $ac_func... " >&6; }
17665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17666 $as_echo_n "(cached) " >&6
17668 cat >conftest.$ac_ext <<_ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17676 #define $ac_func innocuous_$ac_func
17678 /* System header to define __stub macros and hopefully few prototypes,
17679 which can conflict with char $ac_func (); below.
17680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681 <limits.h> exists even on freestanding compilers. */
17684 # include <limits.h>
17686 # include <assert.h>
17691 /* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined __stub_$ac_func || defined __stub___$ac_func
17708 return $ac_func ();
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17720 $as_echo "$ac_try_echo") >&5
17721 (eval "$ac_link") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } && {
17728 test -z "$ac_c_werror_flag" ||
17729 test ! -s conftest.err
17730 } && test -s conftest$ac_exeext && {
17731 test "$cross_compiling" = yes ||
17732 $as_test_x conftest$ac_exeext
17734 eval "$as_ac_var=yes"
17736 $as_echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 eval "$as_ac_var=no"
17742 rm -rf conftest.dSYM
17743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17744 conftest$ac_exeext conftest.$ac_ext
17746 ac_res=`eval 'as_val=${'$as_ac_var'}
17747 $as_echo "$as_val"'`
17748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17749 $as_echo "$ac_res" >&6; }
17750 as_val=`eval 'as_val=${'$as_ac_var'}
17751 $as_echo "$as_val"'`
17752 if test "x$as_val" = x""yes; then
17753 cat >>confdefs.h <<_ACEOF
17754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17761 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17762 # by calling it, 2009-04-02
17763 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17764 if test "$PORTNAME" != "solaris"; then
17766 for ac_func in posix_fadvise
17768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17770 $as_echo_n "checking for $ac_func... " >&6; }
17771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17772 $as_echo_n "(cached) " >&6
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17782 #define $ac_func innocuous_$ac_func
17784 /* System header to define __stub macros and hopefully few prototypes,
17785 which can conflict with char $ac_func (); below.
17786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17787 <limits.h> exists even on freestanding compilers. */
17790 # include <limits.h>
17792 # include <assert.h>
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17804 /* The GNU C library defines this for functions which it implements
17805 to always fail with ENOSYS. Some functions are actually named
17806 something starting with __ and the normal name is an alias. */
17807 #if defined __stub_$ac_func || defined __stub___$ac_func
17814 return $ac_func ();
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (ac_try="$ac_link"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17826 $as_echo "$ac_try_echo") >&5
17827 (eval "$ac_link") 2>conftest.er1
17829 grep -v '^ *+' conftest.er1 >conftest.err
17831 cat conftest.err >&5
17832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } && {
17834 test -z "$ac_c_werror_flag" ||
17835 test ! -s conftest.err
17836 } && test -s conftest$ac_exeext && {
17837 test "$cross_compiling" = yes ||
17838 $as_test_x conftest$ac_exeext
17840 eval "$as_ac_var=yes"
17842 $as_echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 eval "$as_ac_var=no"
17848 rm -rf conftest.dSYM
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850 conftest$ac_exeext conftest.$ac_ext
17852 ac_res=`eval 'as_val=${'$as_ac_var'}
17853 $as_echo "$as_val"'`
17854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17855 $as_echo "$ac_res" >&6; }
17856 as_val=`eval 'as_val=${'$as_ac_var'}
17857 $as_echo "$as_val"'`
17858 if test "x$as_val" = x""yes; then
17859 cat >>confdefs.h <<_ACEOF
17860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17866 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17867 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17868 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17869 $as_echo_n "(cached) " >&6
17871 cat >conftest.$ac_ext <<_ACEOF
17874 cat confdefs.h >>conftest.$ac_ext
17875 cat >>conftest.$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17882 #ifndef posix_fadvise
17883 (void) posix_fadvise;
17890 rm -f conftest.$ac_objext
17891 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } && {
17905 test -z "$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 } && test -s conftest.$ac_objext; then
17908 ac_cv_have_decl_posix_fadvise=yes
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_cv_have_decl_posix_fadvise=no
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17919 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17920 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define HAVE_DECL_POSIX_FADVISE 1
17928 cat >>confdefs.h <<_ACEOF
17929 #define HAVE_DECL_POSIX_FADVISE 0
17938 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17939 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17940 if test "${ac_cv_have_decl_fdatasync+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 <unistd.h>
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17969 $as_echo "$ac_try_echo") >&5
17970 (eval "$ac_compile") 2>conftest.er1
17972 grep -v '^ *+' conftest.er1 >conftest.err
17974 cat conftest.err >&5
17975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } && {
17977 test -z "$ac_c_werror_flag" ||
17978 test ! -s conftest.err
17979 } && test -s conftest.$ac_objext; then
17980 ac_cv_have_decl_fdatasync=yes
17982 $as_echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ac_cv_have_decl_fdatasync=no
17988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17991 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17992 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17994 cat >>confdefs.h <<_ACEOF
17995 #define HAVE_DECL_FDATASYNC 1
18000 cat >>confdefs.h <<_ACEOF
18001 #define HAVE_DECL_FDATASYNC 0
18008 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
18009 $as_echo_n "checking whether strlcat is declared... " >&6; }
18010 if test "${ac_cv_have_decl_strlcat+set}" = set; then
18011 $as_echo_n "(cached) " >&6
18013 cat >conftest.$ac_ext <<_ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18019 $ac_includes_default
18031 rm -f conftest.$ac_objext
18032 if { (ac_try="$ac_compile"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18038 $as_echo "$ac_try_echo") >&5
18039 (eval "$ac_compile") 2>conftest.er1
18041 grep -v '^ *+' conftest.er1 >conftest.err
18043 cat conftest.err >&5
18044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } && {
18046 test -z "$ac_c_werror_flag" ||
18047 test ! -s conftest.err
18048 } && test -s conftest.$ac_objext; then
18049 ac_cv_have_decl_strlcat=yes
18051 $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ac_cv_have_decl_strlcat=no
18057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18059 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
18060 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
18061 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
18063 cat >>confdefs.h <<_ACEOF
18064 #define HAVE_DECL_STRLCAT 1
18069 cat >>confdefs.h <<_ACEOF
18070 #define HAVE_DECL_STRLCAT 0
18075 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
18076 $as_echo_n "checking whether strlcpy is declared... " >&6; }
18077 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
18078 $as_echo_n "(cached) " >&6
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 $ac_includes_default
18098 rm -f conftest.$ac_objext
18099 if { (ac_try="$ac_compile"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106 (eval "$ac_compile") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } && {
18113 test -z "$ac_c_werror_flag" ||
18114 test ! -s conftest.err
18115 } && test -s conftest.$ac_objext; then
18116 ac_cv_have_decl_strlcpy=yes
18118 $as_echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_have_decl_strlcpy=no
18124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
18127 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
18128 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_DECL_STRLCPY 1
18136 cat >>confdefs.h <<_ACEOF
18137 #define HAVE_DECL_STRLCPY 0
18144 # This is probably only present on Darwin, but may as well check always
18145 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
18146 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
18147 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
18148 $as_echo_n "(cached) " >&6
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18161 #ifndef F_FULLFSYNC
18162 (void) F_FULLFSYNC;
18169 rm -f conftest.$ac_objext
18170 if { (ac_try="$ac_compile"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18176 $as_echo "$ac_try_echo") >&5
18177 (eval "$ac_compile") 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && {
18184 test -z "$ac_c_werror_flag" ||
18185 test ! -s conftest.err
18186 } && test -s conftest.$ac_objext; then
18187 ac_cv_have_decl_F_FULLFSYNC=yes
18189 $as_echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_have_decl_F_FULLFSYNC=no
18195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
18198 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
18199 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
18201 cat >>confdefs.h <<_ACEOF
18202 #define HAVE_DECL_F_FULLFSYNC 1
18207 cat >>confdefs.h <<_ACEOF
18208 #define HAVE_DECL_F_FULLFSYNC 0
18217 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
18218 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
18219 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
18220 $as_echo_n "(cached) " >&6
18222 ac_cv_type_struct_sockaddr_in6=no
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 $ac_includes_default
18230 #include <netinet/in.h>
18235 if (sizeof (struct sockaddr_in6))
18241 rm -f conftest.$ac_objext
18242 if { (ac_try="$ac_compile"
18243 case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18248 $as_echo "$ac_try_echo") >&5
18249 (eval "$ac_compile") 2>conftest.er1
18251 grep -v '^ *+' conftest.er1 >conftest.err
18253 cat conftest.err >&5
18254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && {
18256 test -z "$ac_c_werror_flag" ||
18257 test ! -s conftest.err
18258 } && test -s conftest.$ac_objext; then
18259 cat >conftest.$ac_ext <<_ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 $ac_includes_default
18266 #include <netinet/in.h>
18271 if (sizeof ((struct sockaddr_in6)))
18277 rm -f conftest.$ac_objext
18278 if { (ac_try="$ac_compile"
18279 case "(($ac_try" in
18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18281 *) ac_try_echo=$ac_try;;
18283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18284 $as_echo "$ac_try_echo") >&5
18285 (eval "$ac_compile") 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } && {
18292 test -z "$ac_c_werror_flag" ||
18293 test ! -s conftest.err
18294 } && test -s conftest.$ac_objext; then
18297 $as_echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_cv_type_struct_sockaddr_in6=yes
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
18314 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
18315 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
18317 cat >>confdefs.h <<\_ACEOF
18318 #define HAVE_IPV6 1
18326 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
18327 $as_echo_n "checking for PS_STRINGS... " >&6; }
18328 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
18329 $as_echo_n "(cached) " >&6
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <machine/vmparam.h>
18338 #include <sys/exec.h>
18343 PS_STRINGS->ps_nargvstr = 1;
18344 PS_STRINGS->ps_argvstr = "foo";
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (ac_try="$ac_link"
18351 case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18356 $as_echo "$ac_try_echo") >&5
18357 (eval "$ac_link") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } && {
18364 test -z "$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 } && test -s conftest$ac_exeext && {
18367 test "$cross_compiling" = yes ||
18368 $as_test_x conftest$ac_exeext
18370 pgac_cv_var_PS_STRINGS=yes
18372 $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18375 pgac_cv_var_PS_STRINGS=no
18378 rm -rf conftest.dSYM
18379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18380 conftest$ac_exeext conftest.$ac_ext
18382 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18383 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18384 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18386 cat >>confdefs.h <<\_ACEOF
18387 #define HAVE_PS_STRINGS /**/
18393 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18394 # is missing. Yes, there are machines that have only one. We may
18395 # also decide to use snprintf.c if snprintf() is present but does not
18396 # have all the features we need --- see below.
18398 if test "$PORTNAME" = "win32"; then
18399 # Win32 gets snprintf.c built unconditionally.
18401 # To properly translate all NLS languages strings, we must support the
18402 # *printf() %$ format, which allows *printf() arguments to be selected
18403 # by position in the translated string.
18405 # libintl versions < 0.13 use the native *printf() functions, and Win32
18406 # *printf() doesn't understand %$, so we must use our /port versions,
18407 # which do understand %$. libintl versions >= 0.13 include their own
18408 # *printf versions on Win32. The libintl 0.13 release note text is:
18410 # C format strings with positions, as they arise when a translator
18411 # needs to reorder a sentence, are now supported on all platforms.
18412 # On those few platforms (NetBSD and Woe32) for which the native
18413 # printf()/fprintf()/... functions don't support such format
18414 # strings, replacements are provided through <libintl.h>.
18416 # We could use libintl >= 0.13's *printf() if we were sure that we had
18417 # a litint >= 0.13 at runtime, but seeing that there is no clean way
18418 # to guarantee that, it is best to just use our own, so we are sure to
18419 # get %$ support. In include/port.h we disable the *printf() macros
18420 # that might have been defined by libintl.
18422 # We do this unconditionally whether NLS is used or not so we are sure
18423 # that all Win32 libraries and binaries behave the same.
18424 pgac_need_repl_snprintf=yes
18426 pgac_need_repl_snprintf=no
18428 for ac_func in snprintf
18430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18431 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18432 $as_echo_n "checking for $ac_func... " >&6; }
18433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18434 $as_echo_n "(cached) " >&6
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18444 #define $ac_func innocuous_$ac_func
18446 /* System header to define __stub macros and hopefully few prototypes,
18447 which can conflict with char $ac_func (); below.
18448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18449 <limits.h> exists even on freestanding compilers. */
18452 # include <limits.h>
18454 # include <assert.h>
18459 /* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18466 /* The GNU C library defines this for functions which it implements
18467 to always fail with ENOSYS. Some functions are actually named
18468 something starting with __ and the normal name is an alias. */
18469 #if defined __stub_$ac_func || defined __stub___$ac_func
18476 return $ac_func ();
18481 rm -f conftest.$ac_objext conftest$ac_exeext
18482 if { (ac_try="$ac_link"
18483 case "(($ac_try" in
18484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485 *) ac_try_echo=$ac_try;;
18487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18488 $as_echo "$ac_try_echo") >&5
18489 (eval "$ac_link") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_c_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest$ac_exeext && {
18499 test "$cross_compiling" = yes ||
18500 $as_test_x conftest$ac_exeext
18502 eval "$as_ac_var=yes"
18504 $as_echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 eval "$as_ac_var=no"
18510 rm -rf conftest.dSYM
18511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18512 conftest$ac_exeext conftest.$ac_ext
18514 ac_res=`eval 'as_val=${'$as_ac_var'}
18515 $as_echo "$as_val"'`
18516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18517 $as_echo "$ac_res" >&6; }
18518 as_val=`eval 'as_val=${'$as_ac_var'}
18519 $as_echo "$as_val"'`
18520 if test "x$as_val" = x""yes; then
18521 cat >>confdefs.h <<_ACEOF
18522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18526 pgac_need_repl_snprintf=yes
18531 for ac_func in vsnprintf
18533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18534 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18535 $as_echo_n "checking for $ac_func... " >&6; }
18536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18537 $as_echo_n "(cached) " >&6
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18547 #define $ac_func innocuous_$ac_func
18549 /* System header to define __stub macros and hopefully few prototypes,
18550 which can conflict with char $ac_func (); below.
18551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552 <limits.h> exists even on freestanding compilers. */
18555 # include <limits.h>
18557 # include <assert.h>
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18569 /* The GNU C library defines this for functions which it implements
18570 to always fail with ENOSYS. Some functions are actually named
18571 something starting with __ and the normal name is an alias. */
18572 #if defined __stub_$ac_func || defined __stub___$ac_func
18579 return $ac_func ();
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18591 $as_echo "$ac_try_echo") >&5
18592 (eval "$ac_link") 2>conftest.er1
18594 grep -v '^ *+' conftest.er1 >conftest.err
18596 cat conftest.err >&5
18597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } && {
18599 test -z "$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 } && test -s conftest$ac_exeext && {
18602 test "$cross_compiling" = yes ||
18603 $as_test_x conftest$ac_exeext
18605 eval "$as_ac_var=yes"
18607 $as_echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 eval "$as_ac_var=no"
18613 rm -rf conftest.dSYM
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18617 ac_res=`eval 'as_val=${'$as_ac_var'}
18618 $as_echo "$as_val"'`
18619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18620 $as_echo "$ac_res" >&6; }
18621 as_val=`eval 'as_val=${'$as_ac_var'}
18622 $as_echo "$as_val"'`
18623 if test "x$as_val" = x""yes; then
18624 cat >>confdefs.h <<_ACEOF
18625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18629 pgac_need_repl_snprintf=yes
18636 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18637 # include/c.h will provide declarations. Note this is a separate test
18638 # from whether the functions exist in the C library --- there are
18639 # systems that have the functions but don't bother to declare them :-(
18641 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18642 $as_echo_n "checking whether snprintf is declared... " >&6; }
18643 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18644 $as_echo_n "(cached) " >&6
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 $ac_includes_default
18664 rm -f conftest.$ac_objext
18665 if { (ac_try="$ac_compile"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18671 $as_echo "$ac_try_echo") >&5
18672 (eval "$ac_compile") 2>conftest.er1
18674 grep -v '^ *+' conftest.er1 >conftest.err
18676 cat conftest.err >&5
18677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } && {
18679 test -z "$ac_c_werror_flag" ||
18680 test ! -s conftest.err
18681 } && test -s conftest.$ac_objext; then
18682 ac_cv_have_decl_snprintf=yes
18684 $as_echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_cv_have_decl_snprintf=no
18690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18692 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18693 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18694 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_DECL_SNPRINTF 1
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_DECL_SNPRINTF 0
18708 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18709 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18710 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18711 $as_echo_n "(cached) " >&6
18713 cat >conftest.$ac_ext <<_ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18738 $as_echo "$ac_try_echo") >&5
18739 (eval "$ac_compile") 2>conftest.er1
18741 grep -v '^ *+' conftest.er1 >conftest.err
18743 cat conftest.err >&5
18744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } && {
18746 test -z "$ac_c_werror_flag" ||
18747 test ! -s conftest.err
18748 } && test -s conftest.$ac_objext; then
18749 ac_cv_have_decl_vsnprintf=yes
18751 $as_echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_cv_have_decl_vsnprintf=no
18757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18759 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18760 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18761 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_DECL_VSNPRINTF 1
18769 cat >>confdefs.h <<_ACEOF
18770 #define HAVE_DECL_VSNPRINTF 0
18779 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18780 $as_echo_n "checking for isinf... " >&6; }
18781 if test "${ac_cv_func_isinf+set}" = set; then
18782 $as_echo_n "(cached) " >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18792 double glob_double;
18797 return isinf(glob_double) ? 0 : 1;
18802 rm -f conftest.$ac_objext conftest$ac_exeext
18803 if { (ac_try="$ac_link"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18809 $as_echo "$ac_try_echo") >&5
18810 (eval "$ac_link") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest$ac_exeext && {
18820 test "$cross_compiling" = yes ||
18821 $as_test_x conftest$ac_exeext
18823 ac_cv_func_isinf=yes
18825 $as_echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 ac_cv_func_isinf=no
18831 rm -rf conftest.dSYM
18832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18833 conftest$ac_exeext conftest.$ac_ext
18835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18836 $as_echo "$ac_cv_func_isinf" >&6; }
18838 if test $ac_cv_func_isinf = yes ; then
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE_ISINF 1
18845 case " $LIBOBJS " in
18846 *" isinf.$ac_objext "* ) ;;
18847 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18851 # Look for a way to implement a substitute for isinf()
18856 for ac_func in fpclass fp_class fp_class_d class
18858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18859 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18860 $as_echo_n "checking for $ac_func... " >&6; }
18861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18862 $as_echo_n "(cached) " >&6
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18872 #define $ac_func innocuous_$ac_func
18874 /* System header to define __stub macros and hopefully few prototypes,
18875 which can conflict with char $ac_func (); below.
18876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18877 <limits.h> exists even on freestanding compilers. */
18880 # include <limits.h>
18882 # include <assert.h>
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18894 /* The GNU C library defines this for functions which it implements
18895 to always fail with ENOSYS. Some functions are actually named
18896 something starting with __ and the normal name is an alias. */
18897 #if defined __stub_$ac_func || defined __stub___$ac_func
18904 return $ac_func ();
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917 (eval "$ac_link") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest$ac_exeext && {
18927 test "$cross_compiling" = yes ||
18928 $as_test_x conftest$ac_exeext
18930 eval "$as_ac_var=yes"
18932 $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 eval "$as_ac_var=no"
18938 rm -rf conftest.dSYM
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940 conftest$ac_exeext conftest.$ac_ext
18942 ac_res=`eval 'as_val=${'$as_ac_var'}
18943 $as_echo "$as_val"'`
18944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18945 $as_echo "$ac_res" >&6; }
18946 as_val=`eval 'as_val=${'$as_ac_var'}
18947 $as_echo "$as_val"'`
18948 if test "x$as_val" = x""yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18958 # Some versions of libedit contain strlcpy(); so disregard that library while
18959 # checking for these standard libc functions.
18960 pgac_save_LIBS="$LIBS"
18961 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18977 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18981 $as_echo_n "checking for $ac_func... " >&6; }
18982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18983 $as_echo_n "(cached) " >&6
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18993 #define $ac_func innocuous_$ac_func
18995 /* System header to define __stub macros and hopefully few prototypes,
18996 which can conflict with char $ac_func (); below.
18997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18998 <limits.h> exists even on freestanding compilers. */
19001 # include <limits.h>
19003 # include <assert.h>
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19015 /* The GNU C library defines this for functions which it implements
19016 to always fail with ENOSYS. Some functions are actually named
19017 something starting with __ and the normal name is an alias. */
19018 #if defined __stub_$ac_func || defined __stub___$ac_func
19025 return $ac_func ();
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19037 $as_echo "$ac_try_echo") >&5
19038 (eval "$ac_link") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext && {
19048 test "$cross_compiling" = yes ||
19049 $as_test_x conftest$ac_exeext
19051 eval "$as_ac_var=yes"
19053 $as_echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 eval "$as_ac_var=no"
19059 rm -rf conftest.dSYM
19060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19061 conftest$ac_exeext conftest.$ac_ext
19063 ac_res=`eval 'as_val=${'$as_ac_var'}
19064 $as_echo "$as_val"'`
19065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19066 $as_echo "$ac_res" >&6; }
19067 as_val=`eval 'as_val=${'$as_ac_var'}
19068 $as_echo "$as_val"'`
19069 if test "x$as_val" = x""yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19075 case " $LIBOBJS " in
19076 *" $ac_func.$ac_objext "* ) ;;
19077 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19088 # Windows uses a specialised env handler
19091 cat >>confdefs.h <<\_ACEOF
19092 #define HAVE_UNSETENV 1
19095 ac_cv_func_unsetenv=yes;;
19098 for ac_func in unsetenv
19100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19102 $as_echo_n "checking for $ac_func... " >&6; }
19103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19104 $as_echo_n "(cached) " >&6
19106 cat >conftest.$ac_ext <<_ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19114 #define $ac_func innocuous_$ac_func
19116 /* System header to define __stub macros and hopefully few prototypes,
19117 which can conflict with char $ac_func (); below.
19118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19119 <limits.h> exists even on freestanding compilers. */
19122 # include <limits.h>
19124 # include <assert.h>
19129 /* Override any GCC internal prototype to avoid an error.
19130 Use char because int might match the return type of a GCC
19131 builtin and then its argument prototype would still apply. */
19136 /* The GNU C library defines this for functions which it implements
19137 to always fail with ENOSYS. Some functions are actually named
19138 something starting with __ and the normal name is an alias. */
19139 #if defined __stub_$ac_func || defined __stub___$ac_func
19146 return $ac_func ();
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19158 $as_echo "$ac_try_echo") >&5
19159 (eval "$ac_link") 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest$ac_exeext && {
19169 test "$cross_compiling" = yes ||
19170 $as_test_x conftest$ac_exeext
19172 eval "$as_ac_var=yes"
19174 $as_echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 eval "$as_ac_var=no"
19180 rm -rf conftest.dSYM
19181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19182 conftest$ac_exeext conftest.$ac_ext
19184 ac_res=`eval 'as_val=${'$as_ac_var'}
19185 $as_echo "$as_val"'`
19186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19187 $as_echo "$ac_res" >&6; }
19188 as_val=`eval 'as_val=${'$as_ac_var'}
19189 $as_echo "$as_val"'`
19190 if test "x$as_val" = x""yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19196 case " $LIBOBJS " in
19197 *" $ac_func.$ac_objext "* ) ;;
19198 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19210 LIBS="$pgac_save_LIBS"
19212 # System's version of getaddrinfo(), if any, may be used only if we found
19213 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
19214 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
19215 # versions of getaddrinfo don't follow normal C call protocol. This is OK
19216 # because we want to use our own getaddrinfo.c on Windows anyway.)
19217 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
19219 for ac_func in getaddrinfo
19221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19222 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19223 $as_echo_n "checking for $ac_func... " >&6; }
19224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19225 $as_echo_n "(cached) " >&6
19227 cat >conftest.$ac_ext <<_ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19235 #define $ac_func innocuous_$ac_func
19237 /* System header to define __stub macros and hopefully few prototypes,
19238 which can conflict with char $ac_func (); below.
19239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19240 <limits.h> exists even on freestanding compilers. */
19243 # include <limits.h>
19245 # include <assert.h>
19250 /* Override any GCC internal prototype to avoid an error.
19251 Use char because int might match the return type of a GCC
19252 builtin and then its argument prototype would still apply. */
19257 /* The GNU C library defines this for functions which it implements
19258 to always fail with ENOSYS. Some functions are actually named
19259 something starting with __ and the normal name is an alias. */
19260 #if defined __stub_$ac_func || defined __stub___$ac_func
19267 return $ac_func ();
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19279 $as_echo "$ac_try_echo") >&5
19280 (eval "$ac_link") 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } && {
19287 test -z "$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 } && test -s conftest$ac_exeext && {
19290 test "$cross_compiling" = yes ||
19291 $as_test_x conftest$ac_exeext
19293 eval "$as_ac_var=yes"
19295 $as_echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 eval "$as_ac_var=no"
19301 rm -rf conftest.dSYM
19302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19303 conftest$ac_exeext conftest.$ac_ext
19305 ac_res=`eval 'as_val=${'$as_ac_var'}
19306 $as_echo "$as_val"'`
19307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19308 $as_echo "$ac_res" >&6; }
19309 as_val=`eval 'as_val=${'$as_ac_var'}
19310 $as_echo "$as_val"'`
19311 if test "x$as_val" = x""yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19317 case " $LIBOBJS " in
19318 *" $ac_func.$ac_objext "* ) ;;
19319 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19328 case " $LIBOBJS " in
19329 *" getaddrinfo.$ac_objext "* ) ;;
19330 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
19336 # Similarly, use system's getopt_long() only if system provides struct option.
19337 if test x"$ac_cv_type_struct_option" = xyes ; then
19339 for ac_func in getopt_long
19341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19342 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19343 $as_echo_n "checking for $ac_func... " >&6; }
19344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19345 $as_echo_n "(cached) " >&6
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19355 #define $ac_func innocuous_$ac_func
19357 /* System header to define __stub macros and hopefully few prototypes,
19358 which can conflict with char $ac_func (); below.
19359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19360 <limits.h> exists even on freestanding compilers. */
19363 # include <limits.h>
19365 # include <assert.h>
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19377 /* The GNU C library defines this for functions which it implements
19378 to always fail with ENOSYS. Some functions are actually named
19379 something starting with __ and the normal name is an alias. */
19380 #if defined __stub_$ac_func || defined __stub___$ac_func
19387 return $ac_func ();
19392 rm -f conftest.$ac_objext conftest$ac_exeext
19393 if { (ac_try="$ac_link"
19394 case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400 (eval "$ac_link") 2>conftest.er1
19402 grep -v '^ *+' conftest.er1 >conftest.err
19404 cat conftest.err >&5
19405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } && {
19407 test -z "$ac_c_werror_flag" ||
19408 test ! -s conftest.err
19409 } && test -s conftest$ac_exeext && {
19410 test "$cross_compiling" = yes ||
19411 $as_test_x conftest$ac_exeext
19413 eval "$as_ac_var=yes"
19415 $as_echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 eval "$as_ac_var=no"
19421 rm -rf conftest.dSYM
19422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19423 conftest$ac_exeext conftest.$ac_ext
19425 ac_res=`eval 'as_val=${'$as_ac_var'}
19426 $as_echo "$as_val"'`
19427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19428 $as_echo "$ac_res" >&6; }
19429 as_val=`eval 'as_val=${'$as_ac_var'}
19430 $as_echo "$as_val"'`
19431 if test "x$as_val" = x""yes; then
19432 cat >>confdefs.h <<_ACEOF
19433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19437 case " $LIBOBJS " in
19438 *" $ac_func.$ac_objext "* ) ;;
19439 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19448 case " $LIBOBJS " in
19449 *" getopt_long.$ac_objext "* ) ;;
19450 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19456 # Solaris' getopt() doesn't do what we want for long options, so always use
19457 # our version on that platform.
19458 if test "$PORTNAME" = "solaris"; then
19459 case " $LIBOBJS " in
19460 *" getopt.$ac_objext "* ) ;;
19461 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19467 # Cygwin's erand48() is broken (always returns zero) in some releases,
19468 # so force use of ours.
19469 if test "$PORTNAME" = "cygwin"; then
19470 case " $LIBOBJS " in
19471 *" erand48.$ac_objext "* ) ;;
19472 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19479 if test "$PORTNAME" = "win32"; then
19481 for ac_func in gettimeofday
19483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19484 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19485 $as_echo_n "checking for $ac_func... " >&6; }
19486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19487 $as_echo_n "(cached) " >&6
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19497 #define $ac_func innocuous_$ac_func
19499 /* System header to define __stub macros and hopefully few prototypes,
19500 which can conflict with char $ac_func (); below.
19501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19502 <limits.h> exists even on freestanding compilers. */
19505 # include <limits.h>
19507 # include <assert.h>
19512 /* Override any GCC internal prototype to avoid an error.
19513 Use char because int might match the return type of a GCC
19514 builtin and then its argument prototype would still apply. */
19519 /* The GNU C library defines this for functions which it implements
19520 to always fail with ENOSYS. Some functions are actually named
19521 something starting with __ and the normal name is an alias. */
19522 #if defined __stub_$ac_func || defined __stub___$ac_func
19529 return $ac_func ();
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19541 $as_echo "$ac_try_echo") >&5
19542 (eval "$ac_link") 2>conftest.er1
19544 grep -v '^ *+' conftest.er1 >conftest.err
19546 cat conftest.err >&5
19547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest$ac_exeext && {
19552 test "$cross_compiling" = yes ||
19553 $as_test_x conftest$ac_exeext
19555 eval "$as_ac_var=yes"
19557 $as_echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 eval "$as_ac_var=no"
19563 rm -rf conftest.dSYM
19564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565 conftest$ac_exeext conftest.$ac_ext
19567 ac_res=`eval 'as_val=${'$as_ac_var'}
19568 $as_echo "$as_val"'`
19569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19570 $as_echo "$ac_res" >&6; }
19571 as_val=`eval 'as_val=${'$as_ac_var'}
19572 $as_echo "$as_val"'`
19573 if test "x$as_val" = x""yes; then
19574 cat >>confdefs.h <<_ACEOF
19575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579 case " $LIBOBJS " in
19580 *" $ac_func.$ac_objext "* ) ;;
19581 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19589 case " $LIBOBJS " in
19590 *" kill.$ac_objext "* ) ;;
19591 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19595 case " $LIBOBJS " in
19596 *" open.$ac_objext "* ) ;;
19597 *) LIBOBJS="$LIBOBJS open.$ac_objext"
19601 case " $LIBOBJS " in
19602 *" win32env.$ac_objext "* ) ;;
19603 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19607 case " $LIBOBJS " in
19608 *" win32error.$ac_objext "* ) ;;
19609 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_SYMLINK 1
19620 if test "$with_readline" = yes; then
19621 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19622 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 #ifdef HAVE_READLINE_READLINE_H
19631 # include <readline/readline.h>
19632 #elif defined(HAVE_READLINE_H)
19633 # include <readline.h>
19639 rl_completion_append_character = 'x';
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (ac_try="$ac_link"
19646 case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19651 $as_echo "$ac_try_echo") >&5
19652 (eval "$ac_link") 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext && {
19662 test "$cross_compiling" = yes ||
19663 $as_test_x conftest$ac_exeext
19665 { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19673 $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 { $as_echo "$as_me:$LINENO: result: no" >&5
19677 $as_echo "no" >&6; }
19680 rm -rf conftest.dSYM
19681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682 conftest$ac_exeext conftest.$ac_ext
19685 for ac_func in rl_completion_matches rl_filename_completion_function
19687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19688 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19689 $as_echo_n "checking for $ac_func... " >&6; }
19690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19691 $as_echo_n "(cached) " >&6
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19701 #define $ac_func innocuous_$ac_func
19703 /* System header to define __stub macros and hopefully few prototypes,
19704 which can conflict with char $ac_func (); below.
19705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19706 <limits.h> exists even on freestanding compilers. */
19709 # include <limits.h>
19711 # include <assert.h>
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19723 /* The GNU C library defines this for functions which it implements
19724 to always fail with ENOSYS. Some functions are actually named
19725 something starting with __ and the normal name is an alias. */
19726 #if defined __stub_$ac_func || defined __stub___$ac_func
19733 return $ac_func ();
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19745 $as_echo "$ac_try_echo") >&5
19746 (eval "$ac_link") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest$ac_exeext && {
19756 test "$cross_compiling" = yes ||
19757 $as_test_x conftest$ac_exeext
19759 eval "$as_ac_var=yes"
19761 $as_echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 eval "$as_ac_var=no"
19767 rm -rf conftest.dSYM
19768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19769 conftest$ac_exeext conftest.$ac_ext
19771 ac_res=`eval 'as_val=${'$as_ac_var'}
19772 $as_echo "$as_val"'`
19773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19774 $as_echo "$ac_res" >&6; }
19775 as_val=`eval 'as_val=${'$as_ac_var'}
19776 $as_echo "$as_val"'`
19777 if test "x$as_val" = x""yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19787 for ac_func in append_history history_truncate_file
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 $as_echo_n "checking for $ac_func... " >&6; }
19792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19793 $as_echo_n "(cached) " >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19803 #define $ac_func innocuous_$ac_func
19805 /* System header to define __stub macros and hopefully few prototypes,
19806 which can conflict with char $ac_func (); below.
19807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808 <limits.h> exists even on freestanding compilers. */
19811 # include <limits.h>
19813 # include <assert.h>
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19825 /* The GNU C library defines this for functions which it implements
19826 to always fail with ENOSYS. Some functions are actually named
19827 something starting with __ and the normal name is an alias. */
19828 #if defined __stub_$ac_func || defined __stub___$ac_func
19835 return $ac_func ();
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848 (eval "$ac_link") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest$ac_exeext && {
19858 test "$cross_compiling" = yes ||
19859 $as_test_x conftest$ac_exeext
19861 eval "$as_ac_var=yes"
19863 $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 eval "$as_ac_var=no"
19869 rm -rf conftest.dSYM
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871 conftest$ac_exeext conftest.$ac_ext
19873 ac_res=`eval 'as_val=${'$as_ac_var'}
19874 $as_echo "$as_val"'`
19875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19876 $as_echo "$ac_res" >&6; }
19877 as_val=`eval 'as_val=${'$as_ac_var'}
19878 $as_echo "$as_val"'`
19879 if test "x$as_val" = x""yes; then
19880 cat >>confdefs.h <<_ACEOF
19881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19890 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19891 $as_echo_n "checking for sigsetjmp... " >&6; }
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 #include <setjmp.h>
19902 sigjmp_buf x; sigsetjmp(x, 1);
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19914 $as_echo "$ac_try_echo") >&5
19915 (eval "$ac_link") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest$ac_exeext && {
19925 test "$cross_compiling" = yes ||
19926 $as_test_x conftest$ac_exeext
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_SIGSETJMP 1
19933 { $as_echo "$as_me:$LINENO: result: yes" >&5
19934 $as_echo "yes" >&6; }
19936 $as_echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 { $as_echo "$as_me:$LINENO: result: no" >&5
19940 $as_echo "no" >&6; }
19943 rm -rf conftest.dSYM
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945 conftest$ac_exeext conftest.$ac_ext
19947 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19948 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19949 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19950 $as_echo_n "(cached) " >&6
19952 cat >conftest.$ac_ext <<_ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #include <signal.h>
19959 /* NetBSD declares sys_siglist in unistd.h. */
19960 #ifdef HAVE_UNISTD_H
19961 # include <unistd.h>
19968 #ifndef sys_siglist
19969 (void) sys_siglist;
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19983 $as_echo "$ac_try_echo") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest.$ac_objext; then
19994 ac_cv_have_decl_sys_siglist=yes
19996 $as_echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 ac_cv_have_decl_sys_siglist=no
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
20005 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
20006 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
20008 cat >>confdefs.h <<_ACEOF
20009 #define HAVE_DECL_SYS_SIGLIST 1
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_DECL_SYS_SIGLIST 0
20024 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
20025 $as_echo_n "checking for syslog... " >&6; }
20026 if test "${ac_cv_func_syslog+set}" = set; then
20027 $as_echo_n "(cached) " >&6
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
20036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20037 #define syslog innocuous_syslog
20039 /* System header to define __stub macros and hopefully few prototypes,
20040 which can conflict with char syslog (); below.
20041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20042 <limits.h> exists even on freestanding compilers. */
20045 # include <limits.h>
20047 # include <assert.h>
20052 /* Override any GCC internal prototype to avoid an error.
20053 Use char because int might match the return type of a GCC
20054 builtin and then its argument prototype would still apply. */
20059 /* The GNU C library defines this for functions which it implements
20060 to always fail with ENOSYS. Some functions are actually named
20061 something starting with __ and the normal name is an alias. */
20062 #if defined __stub_syslog || defined __stub___syslog
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082 (eval "$ac_link") 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest$ac_exeext && {
20092 test "$cross_compiling" = yes ||
20093 $as_test_x conftest$ac_exeext
20095 ac_cv_func_syslog=yes
20097 $as_echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_cv_func_syslog=no
20103 rm -rf conftest.dSYM
20104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20105 conftest$ac_exeext conftest.$ac_ext
20107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
20108 $as_echo "$ac_cv_func_syslog" >&6; }
20109 if test "x$ac_cv_func_syslog" = x""yes; then
20110 if test "${ac_cv_header_syslog_h+set}" = set; then
20111 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
20112 $as_echo_n "checking for syslog.h... " >&6; }
20113 if test "${ac_cv_header_syslog_h+set}" = set; then
20114 $as_echo_n "(cached) " >&6
20116 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
20117 $as_echo "$ac_cv_header_syslog_h" >&6; }
20119 # Is the header compilable?
20120 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
20121 $as_echo_n "checking syslog.h usability... " >&6; }
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 $ac_includes_default
20129 #include <syslog.h>
20131 rm -f conftest.$ac_objext
20132 if { (ac_try="$ac_compile"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20138 $as_echo "$ac_try_echo") >&5
20139 (eval "$ac_compile") 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && {
20146 test -z "$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20148 } && test -s conftest.$ac_objext; then
20149 ac_header_compiler=yes
20151 $as_echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20154 ac_header_compiler=no
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20159 $as_echo "$ac_header_compiler" >&6; }
20161 # Is the header present?
20162 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
20163 $as_echo_n "checking syslog.h presence... " >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 #include <syslog.h>
20172 if { (ac_try="$ac_cpp conftest.$ac_ext"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20178 $as_echo "$ac_try_echo") >&5
20179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } >/dev/null && {
20186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20189 ac_header_preproc=yes
20191 $as_echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_header_preproc=no
20197 rm -f conftest.err conftest.$ac_ext
20198 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20199 $as_echo "$ac_header_preproc" >&6; }
20201 # So? What about this header?
20202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20204 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
20205 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20206 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
20207 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
20208 ac_header_preproc=yes
20211 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
20212 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
20213 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
20214 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
20215 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
20216 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
20217 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
20218 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
20219 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
20220 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
20221 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
20222 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
20224 ## ---------------------------------------- ##
20225 ## Report this to pgsql-bugs@postgresql.org ##
20226 ## ---------------------------------------- ##
20228 ) | sed "s/^/$as_me: WARNING: /" >&2
20231 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
20232 $as_echo_n "checking for syslog.h... " >&6; }
20233 if test "${ac_cv_header_syslog_h+set}" = set; then
20234 $as_echo_n "(cached) " >&6
20236 ac_cv_header_syslog_h=$ac_header_preproc
20238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
20239 $as_echo "$ac_cv_header_syslog_h" >&6; }
20242 if test "x$ac_cv_header_syslog_h" = x""yes; then
20244 cat >>confdefs.h <<\_ACEOF
20245 #define HAVE_SYSLOG 1
20254 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
20255 $as_echo_n "checking for opterr... " >&6; }
20256 if test "${pgac_cv_var_int_opterr+set}" = set; then
20257 $as_echo_n "(cached) " >&6
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #include <unistd.h>
20269 extern int opterr; opterr = 1;
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20281 $as_echo "$ac_try_echo") >&5
20282 (eval "$ac_link") 2>conftest.er1
20284 grep -v '^ *+' conftest.er1 >conftest.err
20286 cat conftest.err >&5
20287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } && {
20289 test -z "$ac_c_werror_flag" ||
20290 test ! -s conftest.err
20291 } && test -s conftest$ac_exeext && {
20292 test "$cross_compiling" = yes ||
20293 $as_test_x conftest$ac_exeext
20295 pgac_cv_var_int_opterr=yes
20297 $as_echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 pgac_cv_var_int_opterr=no
20303 rm -rf conftest.dSYM
20304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20305 conftest$ac_exeext conftest.$ac_ext
20307 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
20308 $as_echo "$pgac_cv_var_int_opterr" >&6; }
20309 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_INT_OPTERR 1
20317 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
20318 $as_echo_n "checking for optreset... " >&6; }
20319 if test "${pgac_cv_var_int_optreset+set}" = set; then
20320 $as_echo_n "(cached) " >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <unistd.h>
20332 extern int optreset; optreset = 1;
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20344 $as_echo "$ac_try_echo") >&5
20345 (eval "$ac_link") 2>conftest.er1
20347 grep -v '^ *+' conftest.er1 >conftest.err
20349 cat conftest.err >&5
20350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && {
20352 test -z "$ac_c_werror_flag" ||
20353 test ! -s conftest.err
20354 } && test -s conftest$ac_exeext && {
20355 test "$cross_compiling" = yes ||
20356 $as_test_x conftest$ac_exeext
20358 pgac_cv_var_int_optreset=yes
20360 $as_echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 pgac_cv_var_int_optreset=no
20366 rm -rf conftest.dSYM
20367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20368 conftest$ac_exeext conftest.$ac_ext
20370 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
20371 $as_echo "$pgac_cv_var_int_optreset" >&6; }
20372 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
20374 cat >>confdefs.h <<\_ACEOF
20375 #define HAVE_INT_OPTRESET 1
20382 for ac_func in strtoll strtoq
20384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20386 $as_echo_n "checking for $ac_func... " >&6; }
20387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20388 $as_echo_n "(cached) " >&6
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20398 #define $ac_func innocuous_$ac_func
20400 /* System header to define __stub macros and hopefully few prototypes,
20401 which can conflict with char $ac_func (); below.
20402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20403 <limits.h> exists even on freestanding compilers. */
20406 # include <limits.h>
20408 # include <assert.h>
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20420 /* The GNU C library defines this for functions which it implements
20421 to always fail with ENOSYS. Some functions are actually named
20422 something starting with __ and the normal name is an alias. */
20423 #if defined __stub_$ac_func || defined __stub___$ac_func
20430 return $ac_func ();
20435 rm -f conftest.$ac_objext conftest$ac_exeext
20436 if { (ac_try="$ac_link"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20442 $as_echo "$ac_try_echo") >&5
20443 (eval "$ac_link") 2>conftest.er1
20445 grep -v '^ *+' conftest.er1 >conftest.err
20447 cat conftest.err >&5
20448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest$ac_exeext && {
20453 test "$cross_compiling" = yes ||
20454 $as_test_x conftest$ac_exeext
20456 eval "$as_ac_var=yes"
20458 $as_echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 eval "$as_ac_var=no"
20464 rm -rf conftest.dSYM
20465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20466 conftest$ac_exeext conftest.$ac_ext
20468 ac_res=`eval 'as_val=${'$as_ac_var'}
20469 $as_echo "$as_val"'`
20470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20471 $as_echo "$ac_res" >&6; }
20472 as_val=`eval 'as_val=${'$as_ac_var'}
20473 $as_echo "$as_val"'`
20474 if test "x$as_val" = x""yes; then
20475 cat >>confdefs.h <<_ACEOF
20476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20484 for ac_func in strtoull strtouq
20486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20487 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20488 $as_echo_n "checking for $ac_func... " >&6; }
20489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20490 $as_echo_n "(cached) " >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20500 #define $ac_func innocuous_$ac_func
20502 /* System header to define __stub macros and hopefully few prototypes,
20503 which can conflict with char $ac_func (); below.
20504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20505 <limits.h> exists even on freestanding compilers. */
20508 # include <limits.h>
20510 # include <assert.h>
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20522 /* The GNU C library defines this for functions which it implements
20523 to always fail with ENOSYS. Some functions are actually named
20524 something starting with __ and the normal name is an alias. */
20525 #if defined __stub_$ac_func || defined __stub___$ac_func
20532 return $ac_func ();
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20544 $as_echo "$ac_try_echo") >&5
20545 (eval "$ac_link") 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && {
20552 test -z "$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20554 } && test -s conftest$ac_exeext && {
20555 test "$cross_compiling" = yes ||
20556 $as_test_x conftest$ac_exeext
20558 eval "$as_ac_var=yes"
20560 $as_echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 eval "$as_ac_var=no"
20566 rm -rf conftest.dSYM
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568 conftest$ac_exeext conftest.$ac_ext
20570 ac_res=`eval 'as_val=${'$as_ac_var'}
20571 $as_echo "$as_val"'`
20572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20573 $as_echo "$ac_res" >&6; }
20574 as_val=`eval 'as_val=${'$as_ac_var'}
20575 $as_echo "$as_val"'`
20576 if test "x$as_val" = x""yes; then
20577 cat >>confdefs.h <<_ACEOF
20578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20585 # Check for one of atexit() or on_exit()
20587 for ac_func in atexit
20589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20590 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20591 $as_echo_n "checking for $ac_func... " >&6; }
20592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20593 $as_echo_n "(cached) " >&6
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20603 #define $ac_func innocuous_$ac_func
20605 /* System header to define __stub macros and hopefully few prototypes,
20606 which can conflict with char $ac_func (); below.
20607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20608 <limits.h> exists even on freestanding compilers. */
20611 # include <limits.h>
20613 # include <assert.h>
20618 /* Override any GCC internal prototype to avoid an error.
20619 Use char because int might match the return type of a GCC
20620 builtin and then its argument prototype would still apply. */
20625 /* The GNU C library defines this for functions which it implements
20626 to always fail with ENOSYS. Some functions are actually named
20627 something starting with __ and the normal name is an alias. */
20628 #if defined __stub_$ac_func || defined __stub___$ac_func
20635 return $ac_func ();
20640 rm -f conftest.$ac_objext conftest$ac_exeext
20641 if { (ac_try="$ac_link"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647 $as_echo "$ac_try_echo") >&5
20648 (eval "$ac_link") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest$ac_exeext && {
20658 test "$cross_compiling" = yes ||
20659 $as_test_x conftest$ac_exeext
20661 eval "$as_ac_var=yes"
20663 $as_echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 eval "$as_ac_var=no"
20669 rm -rf conftest.dSYM
20670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20671 conftest$ac_exeext conftest.$ac_ext
20673 ac_res=`eval 'as_val=${'$as_ac_var'}
20674 $as_echo "$as_val"'`
20675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20676 $as_echo "$ac_res" >&6; }
20677 as_val=`eval 'as_val=${'$as_ac_var'}
20678 $as_echo "$as_val"'`
20679 if test "x$as_val" = x""yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20686 for ac_func in on_exit
20688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20690 $as_echo_n "checking for $ac_func... " >&6; }
20691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20692 $as_echo_n "(cached) " >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20702 #define $ac_func innocuous_$ac_func
20704 /* System header to define __stub macros and hopefully few prototypes,
20705 which can conflict with char $ac_func (); below.
20706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20707 <limits.h> exists even on freestanding compilers. */
20710 # include <limits.h>
20712 # include <assert.h>
20717 /* Override any GCC internal prototype to avoid an error.
20718 Use char because int might match the return type of a GCC
20719 builtin and then its argument prototype would still apply. */
20724 /* The GNU C library defines this for functions which it implements
20725 to always fail with ENOSYS. Some functions are actually named
20726 something starting with __ and the normal name is an alias. */
20727 #if defined __stub_$ac_func || defined __stub___$ac_func
20734 return $ac_func ();
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20746 $as_echo "$ac_try_echo") >&5
20747 (eval "$ac_link") 2>conftest.er1
20749 grep -v '^ *+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } && {
20754 test -z "$ac_c_werror_flag" ||
20755 test ! -s conftest.err
20756 } && test -s conftest$ac_exeext && {
20757 test "$cross_compiling" = yes ||
20758 $as_test_x conftest$ac_exeext
20760 eval "$as_ac_var=yes"
20762 $as_echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 eval "$as_ac_var=no"
20768 rm -rf conftest.dSYM
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20772 ac_res=`eval 'as_val=${'$as_ac_var'}
20773 $as_echo "$as_val"'`
20774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20775 $as_echo "$ac_res" >&6; }
20776 as_val=`eval 'as_val=${'$as_ac_var'}
20777 $as_echo "$as_val"'`
20778 if test "x$as_val" = x""yes; then
20779 cat >>confdefs.h <<_ACEOF
20780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20784 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20785 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20786 { (exit 1); exit 1; }; }
20795 for ac_func in fseeko
20797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20798 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20799 $as_echo_n "checking for $ac_func... " >&6; }
20800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20801 $as_echo_n "(cached) " >&6
20803 cat >conftest.$ac_ext <<_ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20811 #define $ac_func innocuous_$ac_func
20813 /* System header to define __stub macros and hopefully few prototypes,
20814 which can conflict with char $ac_func (); below.
20815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20816 <limits.h> exists even on freestanding compilers. */
20819 # include <limits.h>
20821 # include <assert.h>
20826 /* Override any GCC internal prototype to avoid an error.
20827 Use char because int might match the return type of a GCC
20828 builtin and then its argument prototype would still apply. */
20833 /* The GNU C library defines this for functions which it implements
20834 to always fail with ENOSYS. Some functions are actually named
20835 something starting with __ and the normal name is an alias. */
20836 #if defined __stub_$ac_func || defined __stub___$ac_func
20843 return $ac_func ();
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20855 $as_echo "$ac_try_echo") >&5
20856 (eval "$ac_link") 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest$ac_exeext && {
20866 test "$cross_compiling" = yes ||
20867 $as_test_x conftest$ac_exeext
20869 eval "$as_ac_var=yes"
20871 $as_echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 eval "$as_ac_var=no"
20877 rm -rf conftest.dSYM
20878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20879 conftest$ac_exeext conftest.$ac_ext
20881 ac_res=`eval 'as_val=${'$as_ac_var'}
20882 $as_echo "$as_val"'`
20883 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20884 $as_echo "$ac_res" >&6; }
20885 as_val=`eval 'as_val=${'$as_ac_var'}
20886 $as_echo "$as_val"'`
20887 if test "x$as_val" = x""yes; then
20888 cat >>confdefs.h <<_ACEOF
20889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20893 case " $LIBOBJS " in
20894 *" $ac_func.$ac_objext "* ) ;;
20895 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20904 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20905 # Mingw uses macros to access Win32 API calls
20906 bsdi*|netbsd*|mingw*)
20908 cat >>confdefs.h <<\_ACEOF
20909 #define HAVE_FSEEKO 1
20912 ac_cv_func_fseeko=yes;;
20914 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20915 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20916 if test "${ac_cv_sys_largefile_source+set}" = set; then
20917 $as_echo_n "(cached) " >&6
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include <sys/types.h> /* for off_t */
20931 int (*fp) (FILE *, off_t, int) = fseeko;
20932 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (ac_try="$ac_link"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20944 $as_echo "$ac_try_echo") >&5
20945 (eval "$ac_link") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest$ac_exeext && {
20955 test "$cross_compiling" = yes ||
20956 $as_test_x conftest$ac_exeext
20958 ac_cv_sys_largefile_source=no; break
20960 $as_echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20966 rm -rf conftest.dSYM
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968 conftest$ac_exeext conftest.$ac_ext
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 #define _LARGEFILE_SOURCE 1
20976 #include <sys/types.h> /* for off_t */
20981 int (*fp) (FILE *, off_t, int) = fseeko;
20982 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995 (eval "$ac_link") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest$ac_exeext && {
21005 test "$cross_compiling" = yes ||
21006 $as_test_x conftest$ac_exeext
21008 ac_cv_sys_largefile_source=1; break
21010 $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21016 rm -rf conftest.dSYM
21017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21018 conftest$ac_exeext conftest.$ac_ext
21019 ac_cv_sys_largefile_source=unknown
21023 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21024 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21025 case $ac_cv_sys_largefile_source in #(
21028 cat >>confdefs.h <<_ACEOF
21029 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21035 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21036 # in glibc 2.1.3, but that breaks too many other things.
21037 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21038 if test $ac_cv_sys_largefile_source != unknown; then
21040 cat >>confdefs.h <<\_ACEOF
21041 #define HAVE_FSEEKO 1
21052 # For each platform, we need to know about any special compile and link
21053 # libraries, and whether the normal C function names are thread-safe.
21054 # See the comment at the top of src/port/thread.c for more information.
21055 # WIN32 doesn't need the pthread tests; it always uses threads
21056 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
21061 ac_cpp='$CPP $CPPFLAGS'
21062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068 # We used to check for pthread.h first, but this fails if pthread.h
21069 # requires special compiler flags (e.g. on True64 or Sequent).
21070 # It gets checked for in the link test anyway.
21072 # First of all, check if the user has set any of the PTHREAD_LIBS,
21073 # etcetera environment variables, and if threads linking works using
21075 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21076 save_CFLAGS="$CFLAGS"
21077 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21079 LIBS="$PTHREAD_LIBS $LIBS"
21080 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21081 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21089 /* Override any GCC internal prototype to avoid an error.
21090 Use char because int might match the return type of a GCC
21091 builtin and then its argument prototype would still apply. */
21095 char pthread_join ();
21099 return pthread_join ();
21104 rm -f conftest.$ac_objext conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21111 $as_echo "$ac_try_echo") >&5
21112 (eval "$ac_link") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest$ac_exeext && {
21122 test "$cross_compiling" = yes ||
21123 $as_test_x conftest$ac_exeext
21127 $as_echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21133 rm -rf conftest.dSYM
21134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21135 conftest$ac_exeext conftest.$ac_ext
21136 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21137 $as_echo "$acx_pthread_ok" >&6; }
21138 if test x"$acx_pthread_ok" = xno; then
21143 CFLAGS="$save_CFLAGS"
21146 # We must check for the threads library under a number of different
21147 # names; the ordering is very important because some systems
21148 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21149 # libraries is broken (non-POSIX).
21151 # Create a list of thread flags to try. Items starting with a "-" are
21152 # C compiler flags, and other items are library names, except for "none"
21153 # which indicates that we try without any flags at all, and "pthread-config"
21154 # which is a program returning the flags for the Pth emulation library.
21156 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
21158 # The ordering *is* (sometimes) important. Some notes on the
21159 # individual items follow:
21161 # pthreads: AIX (must check this before -lpthread)
21162 # none: in case threads are in libc; should be tried before -Kthread and
21163 # other compiler flags to prevent continual compiler warnings
21164 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21165 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21166 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21167 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21168 # -pthreads: Solaris/gcc
21169 # -mthreads: Mingw32/gcc, Lynx/gcc
21170 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21171 # doesn't hurt to check since this sometimes defines pthreads too;
21172 # also defines -D_REENTRANT)
21173 # pthread: Linux, etcetera
21174 # --thread-safe: KAI C++
21175 # pthread-config: use pthread-config program (for GNU Pth library)
21177 case "${host_cpu}-${host_os}" in
21180 # On Solaris (at least, for some versions), libc contains stubbed
21181 # (non-functional) versions of the pthreads routines, so link-based
21182 # tests will erroneously succeed. (We need to link with -pthread or
21183 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21184 # a function called by this macro, so we could check for that, but
21185 # who knows whether they'll stub that too in a future libc.) So,
21186 # we'll just look for -pthreads and -lpthread first:
21188 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21192 if test x"$acx_pthread_ok" = xno; then
21193 for flag in $acx_pthread_flags; do
21195 tryPTHREAD_CFLAGS=""
21199 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21200 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21204 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21205 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21206 tryPTHREAD_CFLAGS="$flag"
21210 # skip this if we already have flags defined, for PostgreSQL
21211 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
21212 # Extract the first word of "pthread-config", so it can be a program name with args.
21213 set dummy pthread-config; ac_word=$2
21214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21215 $as_echo_n "checking for $ac_word... " >&6; }
21216 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21217 $as_echo_n "(cached) " >&6
21219 if test -n "$acx_pthread_config"; then
21220 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21223 for as_dir in $PATH
21226 test -z "$as_dir" && as_dir=.
21227 for ac_exec_ext in '' $ac_executable_extensions; do
21228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21229 ac_cv_prog_acx_pthread_config="yes"
21230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21237 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21240 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21241 if test -n "$acx_pthread_config"; then
21242 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21243 $as_echo "$acx_pthread_config" >&6; }
21245 { $as_echo "$as_me:$LINENO: result: no" >&5
21246 $as_echo "no" >&6; }
21250 if test x"$acx_pthread_config" = xno; then continue; fi
21251 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
21252 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21256 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21257 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21258 tryPTHREAD_LIBS="-l$flag"
21263 save_CFLAGS="$CFLAGS"
21264 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
21265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21267 # Check for various functions. We must include pthread.h,
21268 # since some functions may be macros. (On the Sequent, we
21269 # need a special flag -Kthread to make this header compile.)
21270 # We check for pthread_join because it is in -lpthread on IRIX
21271 # while pthread_create is in libc. We check for pthread_attr_init
21272 # due to DEC craziness with -lpthreads. We check for
21273 # pthread_cleanup_push because it is one of the few pthread
21274 # functions on Solaris that doesn't have a non-functional libc stub.
21275 # We try pthread_create on general principles.
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 #include <pthread.h>
21286 pthread_t th; pthread_join(th, 0);
21287 pthread_attr_init(0); pthread_cleanup_push(0, 0);
21288 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (ac_try="$ac_link"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21300 $as_echo "$ac_try_echo") >&5
21301 (eval "$ac_link") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest$ac_exeext && {
21311 test "$cross_compiling" = yes ||
21312 $as_test_x conftest$ac_exeext
21316 $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21322 rm -rf conftest.dSYM
21323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21324 conftest$ac_exeext conftest.$ac_ext
21326 if test "x$acx_pthread_ok" = xyes; then
21327 # Don't use options that are ignored by the compiler.
21328 # We find them by checking stderror.
21329 cat >conftest.$ac_ext <<_ACEOF
21331 main (int argc, char **argv)
21338 rm -f conftest.$ac_objext conftest$ac_exeext
21339 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
21340 # we continue with more flags because Linux needs -lpthread
21341 # for libpq builds on PostgreSQL. The test above only
21342 # tests for building binaries, not shared libraries.
21343 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
21344 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21345 else acx_pthread_ok=no
21350 CFLAGS="$save_CFLAGS"
21352 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21353 $as_echo "$acx_pthread_ok" >&6; }
21357 # Various other checks:
21358 if test "x$acx_pthread_ok" = xyes; then
21360 LIBS="$PTHREAD_LIBS $LIBS"
21361 save_CFLAGS="$CFLAGS"
21362 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21364 # Detect AIX lossage: threads are created detached by default
21365 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21366 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21367 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21368 cat >conftest.$ac_ext <<_ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 #include <pthread.h>
21378 int attr=PTHREAD_CREATE_JOINABLE;
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (ac_try="$ac_link"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391 (eval "$ac_link") 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest$ac_exeext && {
21401 test "$cross_compiling" = yes ||
21402 $as_test_x conftest$ac_exeext
21404 ok=PTHREAD_CREATE_JOINABLE
21406 $as_echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21412 rm -rf conftest.dSYM
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21415 if test x"$ok" = xunknown; then
21416 cat >conftest.$ac_ext <<_ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 #include <pthread.h>
21426 int attr=PTHREAD_CREATE_UNDETACHED;
21431 rm -f conftest.$ac_objext conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21438 $as_echo "$ac_try_echo") >&5
21439 (eval "$ac_link") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest$ac_exeext && {
21449 test "$cross_compiling" = yes ||
21450 $as_test_x conftest$ac_exeext
21452 ok=PTHREAD_CREATE_UNDETACHED
21454 $as_echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21460 rm -rf conftest.dSYM
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462 conftest$ac_exeext conftest.$ac_ext
21464 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21466 cat >>confdefs.h <<\_ACEOF
21467 #define PTHREAD_CREATE_JOINABLE $ok
21471 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21472 $as_echo "${ok}" >&6; }
21473 if test x"$ok" = xunknown; then
21474 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21475 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21478 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21479 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21481 # We always add these in PostgreSQL
21482 # case "${host_cpu}-${host_os}" in
21483 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21484 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21486 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21487 $as_echo "${flag}" >&6; }
21488 if test "x$flag" != xno; then
21489 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21493 CFLAGS="$save_CFLAGS"
21495 # Supporting cc_r would require a special CC in all places that
21496 # use libpq, and that is ugly, so we don't do it. Users can still
21497 # define their compiler as cc_r to do thread builds of everything.
21498 # More AIX lossage: must compile with cc_r
21499 # Extract the first word of "cc_r", so it can be a program name with args.
21500 set dummy cc_r; ac_word=$2
21501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21502 $as_echo_n "checking for $ac_word... " >&6; }
21503 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21504 $as_echo_n "(cached) " >&6
21506 if test -n "$PTHREAD_CC"; then
21507 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21510 for as_dir in $PATH
21513 test -z "$as_dir" && as_dir=.
21514 for ac_exec_ext in '' $ac_executable_extensions; do
21515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21516 ac_cv_prog_PTHREAD_CC="cc_r"
21517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21524 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21527 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21528 if test -n "$PTHREAD_CC"; then
21529 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21530 $as_echo "$PTHREAD_CC" >&6; }
21532 { $as_echo "$as_me:$LINENO: result: no" >&5
21533 $as_echo "no" >&6; }
21545 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21546 if test x"$acx_pthread_ok" = xyes; then
21548 cat >>confdefs.h <<\_ACEOF
21549 #define HAVE_PTHREAD 1
21558 ac_cpp='$CPP $CPPFLAGS'
21559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21565 # Some platforms use these, so just define them. They can't hurt if they
21566 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21567 # enables 5-arg getpwuid_r, among other things.
21568 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21571 # At this point, we don't want to muck with the compiler name for threading.
21572 # Let's see who fails, perhaps AIX. 2004-04-23
21573 if test "$PTHREAD_CC" != "$CC"; then
21574 { { $as_echo "$as_me:$LINENO: error:
21575 PostgreSQL does not support platforms that require a special compiler
21576 for thread safety; use --disable-thread-safety to disable thread safety." >&5
21577 $as_echo "$as_me: error:
21578 PostgreSQL does not support platforms that require a special compiler
21579 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
21580 { (exit 1); exit 1; }; }
21583 # Check for *_r functions
21586 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21587 LIBS="$LIBS $PTHREAD_LIBS"
21589 if test "$PORTNAME" != "win32"; then
21590 if test "${ac_cv_header_pthread_h+set}" = set; then
21591 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21592 $as_echo_n "checking for pthread.h... " >&6; }
21593 if test "${ac_cv_header_pthread_h+set}" = set; then
21594 $as_echo_n "(cached) " >&6
21596 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21597 $as_echo "$ac_cv_header_pthread_h" >&6; }
21599 # Is the header compilable?
21600 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21601 $as_echo_n "checking pthread.h usability... " >&6; }
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 $ac_includes_default
21609 #include <pthread.h>
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21618 $as_echo "$ac_try_echo") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21629 ac_header_compiler=yes
21631 $as_echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_header_compiler=no
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21639 $as_echo "$ac_header_compiler" >&6; }
21641 # Is the header present?
21642 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21643 $as_echo_n "checking pthread.h presence... " >&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 #include <pthread.h>
21652 if { (ac_try="$ac_cpp conftest.$ac_ext"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } >/dev/null && {
21666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21669 ac_header_preproc=yes
21671 $as_echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21674 ac_header_preproc=no
21677 rm -f conftest.err conftest.$ac_ext
21678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21679 $as_echo "$ac_header_preproc" >&6; }
21681 # So? What about this header?
21682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21684 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21685 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21686 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21687 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21688 ac_header_preproc=yes
21691 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21692 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21693 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21694 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21695 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21696 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21697 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21698 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21699 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21700 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21701 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21702 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21704 ## ---------------------------------------- ##
21705 ## Report this to pgsql-bugs@postgresql.org ##
21706 ## ---------------------------------------- ##
21708 ) | sed "s/^/$as_me: WARNING: /" >&2
21711 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21712 $as_echo_n "checking for pthread.h... " >&6; }
21713 if test "${ac_cv_header_pthread_h+set}" = set; then
21714 $as_echo_n "(cached) " >&6
21716 ac_cv_header_pthread_h=$ac_header_preproc
21718 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21719 $as_echo "$ac_cv_header_pthread_h" >&6; }
21722 if test "x$ac_cv_header_pthread_h" = x""yes; then
21725 { { $as_echo "$as_me:$LINENO: error:
21726 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
21727 $as_echo "$as_me: error:
21728 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
21729 { (exit 1); exit 1; }; }
21738 for ac_func in strerror_r getpwuid_r gethostbyname_r
21740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21742 $as_echo_n "checking for $ac_func... " >&6; }
21743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21744 $as_echo_n "(cached) " >&6
21746 cat >conftest.$ac_ext <<_ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21754 #define $ac_func innocuous_$ac_func
21756 /* System header to define __stub macros and hopefully few prototypes,
21757 which can conflict with char $ac_func (); below.
21758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21759 <limits.h> exists even on freestanding compilers. */
21762 # include <limits.h>
21764 # include <assert.h>
21769 /* Override any GCC internal prototype to avoid an error.
21770 Use char because int might match the return type of a GCC
21771 builtin and then its argument prototype would still apply. */
21776 /* The GNU C library defines this for functions which it implements
21777 to always fail with ENOSYS. Some functions are actually named
21778 something starting with __ and the normal name is an alias. */
21779 #if defined __stub_$ac_func || defined __stub___$ac_func
21786 return $ac_func ();
21791 rm -f conftest.$ac_objext conftest$ac_exeext
21792 if { (ac_try="$ac_link"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21798 $as_echo "$ac_try_echo") >&5
21799 (eval "$ac_link") 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } && {
21806 test -z "$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21808 } && test -s conftest$ac_exeext && {
21809 test "$cross_compiling" = yes ||
21810 $as_test_x conftest$ac_exeext
21812 eval "$as_ac_var=yes"
21814 $as_echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 eval "$as_ac_var=no"
21820 rm -rf conftest.dSYM
21821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21822 conftest$ac_exeext conftest.$ac_ext
21824 ac_res=`eval 'as_val=${'$as_ac_var'}
21825 $as_echo "$as_val"'`
21826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21827 $as_echo "$ac_res" >&6; }
21828 as_val=`eval 'as_val=${'$as_ac_var'}
21829 $as_echo "$as_val"'`
21830 if test "x$as_val" = x""yes; then
21831 cat >>confdefs.h <<_ACEOF
21832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21839 # Do test here with the proper thread flags
21840 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21841 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21842 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21843 $as_echo_n "(cached) " >&6
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <sys/types.h>
21857 struct passwd *space;
21860 struct passwd **result;
21861 getpwuid_r(uid, space, buf, bufsize, result);
21866 rm -f conftest.$ac_objext
21867 if { (ac_try="$ac_compile"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21873 $as_echo "$ac_try_echo") >&5
21874 (eval "$ac_compile") 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest.$ac_objext; then
21884 pgac_cv_func_getpwuid_r_5arg=yes
21886 $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 pgac_cv_func_getpwuid_r_5arg=no
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21894 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21895 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21896 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21898 cat >>confdefs.h <<\_ACEOF
21899 #define GETPWUID_R_5ARG /**/
21904 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21905 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21906 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21907 $as_echo_n "(cached) " >&6
21909 cat >conftest.$ac_ext <<_ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 #include <string.h>
21920 int strerror_r(int, char *, size_t);
21922 /* Older AIX has 'int' for the third argument so we don't test the args. */
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21936 $as_echo "$ac_try_echo") >&5
21937 (eval "$ac_compile") 2>conftest.er1
21939 grep -v '^ *+' conftest.er1 >conftest.err
21941 cat conftest.err >&5
21942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest.$ac_objext; then
21947 pgac_cv_func_strerror_r_int=yes
21949 $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 pgac_cv_func_strerror_r_int=no
21955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21958 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21959 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21961 cat >>confdefs.h <<\_ACEOF
21962 #define STRERROR_R_INT /**/
21972 # do not use values from template file
21981 # We can test for libldap_r only after we know PTHREAD_LIBS
21982 if test "$with_ldap" = yes ; then
21984 if test "$PORTNAME" != "win32"; then
21986 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21987 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21988 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21989 $as_echo_n "(cached) " >&6
21991 ac_check_lib_save_LIBS=$LIBS
21992 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
22000 /* Override any GCC internal prototype to avoid an error.
22001 Use char because int might match the return type of a GCC
22002 builtin and then its argument prototype would still apply. */
22010 return ldap_bind ();
22015 rm -f conftest.$ac_objext conftest$ac_exeext
22016 if { (ac_try="$ac_link"
22017 case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22022 $as_echo "$ac_try_echo") >&5
22023 (eval "$ac_link") 2>conftest.er1
22025 grep -v '^ *+' conftest.er1 >conftest.err
22027 cat conftest.err >&5
22028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } && {
22030 test -z "$ac_c_werror_flag" ||
22031 test ! -s conftest.err
22032 } && test -s conftest$ac_exeext && {
22033 test "$cross_compiling" = yes ||
22034 $as_test_x conftest$ac_exeext
22036 ac_cv_lib_ldap_ldap_bind=yes
22038 $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ac_cv_lib_ldap_ldap_bind=no
22044 rm -rf conftest.dSYM
22045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22046 conftest$ac_exeext conftest.$ac_ext
22047 LIBS=$ac_check_lib_save_LIBS
22049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
22050 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
22051 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
22052 cat >>confdefs.h <<_ACEOF
22053 #define HAVE_LIBLDAP 1
22056 LIBS="-lldap $LIBS"
22059 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
22060 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
22061 { (exit 1); exit 1; }; }
22064 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
22065 if test "$enable_thread_safety" = yes; then
22066 # on some platforms ldap_r fails to link without PTHREAD_LIBS
22068 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
22069 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
22070 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
22071 $as_echo_n "(cached) " >&6
22073 ac_check_lib_save_LIBS=$LIBS
22074 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
22075 cat >conftest.$ac_ext <<_ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22082 /* Override any GCC internal prototype to avoid an error.
22083 Use char because int might match the return type of a GCC
22084 builtin and then its argument prototype would still apply. */
22088 char ldap_simple_bind ();
22092 return ldap_simple_bind ();
22097 rm -f conftest.$ac_objext conftest$ac_exeext
22098 if { (ac_try="$ac_link"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22104 $as_echo "$ac_try_echo") >&5
22105 (eval "$ac_link") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest$ac_exeext && {
22115 test "$cross_compiling" = yes ||
22116 $as_test_x conftest$ac_exeext
22118 ac_cv_lib_ldap_r_ldap_simple_bind=yes
22120 $as_echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_cv_lib_ldap_r_ldap_simple_bind=no
22126 rm -rf conftest.dSYM
22127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22128 conftest$ac_exeext conftest.$ac_ext
22129 LIBS=$ac_check_lib_save_LIBS
22131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
22132 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
22133 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
22134 cat >>confdefs.h <<_ACEOF
22135 #define HAVE_LIBLDAP_R 1
22138 LIBS="-lldap_r $LIBS"
22141 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
22142 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
22143 { (exit 1); exit 1; }; }
22146 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
22148 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
22152 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
22153 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
22154 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
22155 $as_echo_n "(cached) " >&6
22157 ac_check_lib_save_LIBS=$LIBS
22158 LIBS="-lwldap32 $LIBS"
22159 cat >conftest.$ac_ext <<_ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h. */
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22176 return ldap_bind ();
22181 rm -f conftest.$ac_objext conftest$ac_exeext
22182 if { (ac_try="$ac_link"
22183 case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22188 $as_echo "$ac_try_echo") >&5
22189 (eval "$ac_link") 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && {
22196 test -z "$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22198 } && test -s conftest$ac_exeext && {
22199 test "$cross_compiling" = yes ||
22200 $as_test_x conftest$ac_exeext
22202 ac_cv_lib_wldap32_ldap_bind=yes
22204 $as_echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 ac_cv_lib_wldap32_ldap_bind=no
22210 rm -rf conftest.dSYM
22211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22212 conftest$ac_exeext conftest.$ac_ext
22213 LIBS=$ac_check_lib_save_LIBS
22215 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
22216 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
22217 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
22218 cat >>confdefs.h <<_ACEOF
22219 #define HAVE_LIBWLDAP32 1
22222 LIBS="-lwldap32 $LIBS"
22225 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
22226 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
22227 { (exit 1); exit 1; }; }
22230 LDAP_LIBS_FE="-lwldap32"
22231 LDAP_LIBS_BE="-lwldap32"
22239 # This test makes sure that run tests work at all. Sometimes a shared
22240 # library is found by the linker, but the runtime linker can't find it.
22241 # This check should come after all modifications of compiler or linker
22242 # variables, and before any other run tests.
22243 { $as_echo "$as_me:$LINENO: checking test program" >&5
22244 $as_echo_n "checking test program... " >&6; }
22245 if test "$cross_compiling" = yes; then
22246 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
22247 $as_echo "cross-compiling" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 int main() { return 0; }
22257 rm -f conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22264 $as_echo "$ac_try_echo") >&5
22265 (eval "$ac_link") 2>&5
22267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22269 { (case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22274 $as_echo "$ac_try_echo") >&5
22275 (eval "$ac_try") 2>&5
22277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 { $as_echo "$as_me:$LINENO: result: ok" >&5
22280 $as_echo "ok" >&6; }
22282 $as_echo "$as_me: program exited with status $ac_status" >&5
22283 $as_echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ( exit $ac_status )
22287 { $as_echo "$as_me:$LINENO: result: failed" >&5
22288 $as_echo "failed" >&6; }
22289 { { $as_echo "$as_me:$LINENO: error:
22290 Could not execute a simple test program. This may be a problem
22291 related to locating shared libraries. Check the file 'config.log'
22292 for the exact reason." >&5
22293 $as_echo "$as_me: error:
22294 Could not execute a simple test program. This may be a problem
22295 related to locating shared libraries. Check the file 'config.log'
22296 for the exact reason." >&2;}
22297 { (exit 1); exit 1; }; }
22299 rm -rf conftest.dSYM
22300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22305 # --------------------
22306 # Run tests below here
22307 # --------------------
22309 # Force use of our snprintf if system's doesn't do arg control
22310 # See comment above at snprintf test for details.
22311 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
22312 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
22313 $as_echo_n "checking whether printf supports argument control... " >&6; }
22314 if test "${pgac_cv_printf_arg_control+set}" = set; then
22315 $as_echo_n "(cached) " >&6
22317 if test "$cross_compiling" = yes; then
22318 pgac_cv_printf_arg_control=cross
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22327 #include <string.h>
22333 /* can it swap arguments? */
22334 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
22335 if (strcmp(buf, "4 3") != 0)
22340 rm -f conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22347 $as_echo "$ac_try_echo") >&5
22348 (eval "$ac_link") 2>&5
22350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22352 { (case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22357 $as_echo "$ac_try_echo") >&5
22358 (eval "$ac_try") 2>&5
22360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 pgac_cv_printf_arg_control=yes
22364 $as_echo "$as_me: program exited with status $ac_status" >&5
22365 $as_echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 ( exit $ac_status )
22369 pgac_cv_printf_arg_control=no
22371 rm -rf conftest.dSYM
22372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22378 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22379 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22381 if test $pgac_cv_printf_arg_control != yes ; then
22382 pgac_need_repl_snprintf=yes
22389 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22390 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22391 if test "${pgac_cv_type_long_int_64+set}" = set; then
22392 $as_echo_n "(cached) " >&6
22394 if test "$cross_compiling" = yes; then
22395 # If cross-compiling, check the size reported by the compiler and
22396 # trust that the arithmetic works.
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22407 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421 $as_echo "$ac_try_echo") >&5
22422 (eval "$ac_compile") 2>conftest.er1
22424 grep -v '^ *+' conftest.er1 >conftest.err
22426 cat conftest.err >&5
22427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest.$ac_objext; then
22432 pgac_cv_type_long_int_64=yes
22434 $as_echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 pgac_cv_type_long_int_64=no
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22448 typedef long int ac_int64;
22451 * These are globals to discourage the compiler from folding all the
22452 * arithmetic tests down to compile-time constants.
22454 ac_int64 a = 20000001;
22455 ac_int64 b = 40000005;
22457 int does_int64_work()
22461 if (sizeof(ac_int64) != 8)
22462 return 0; /* definitely not the right size */
22464 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22472 exit(! does_int64_work());
22475 rm -f conftest$ac_exeext
22476 if { (ac_try="$ac_link"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22482 $as_echo "$ac_try_echo") >&5
22483 (eval "$ac_link") 2>&5
22485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22487 { (case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493 (eval "$ac_try") 2>&5
22495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 pgac_cv_type_long_int_64=yes
22499 $as_echo "$as_me: program exited with status $ac_status" >&5
22500 $as_echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ( exit $ac_status )
22504 pgac_cv_type_long_int_64=no
22506 rm -rf conftest.dSYM
22507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22512 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22513 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22515 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22516 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_LONG_INT_64 1
22525 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22526 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22527 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22528 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22529 $as_echo_n "(cached) " >&6
22531 if test "$cross_compiling" = yes; then
22532 # If cross-compiling, check the size reported by the compiler and
22533 # trust that the arithmetic works.
22534 cat >conftest.$ac_ext <<_ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22544 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22569 pgac_cv_type_long_long_int_64=yes
22571 $as_echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 pgac_cv_type_long_long_int_64=no
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 typedef long long int ac_int64;
22588 * These are globals to discourage the compiler from folding all the
22589 * arithmetic tests down to compile-time constants.
22591 ac_int64 a = 20000001;
22592 ac_int64 b = 40000005;
22594 int does_int64_work()
22598 if (sizeof(ac_int64) != 8)
22599 return 0; /* definitely not the right size */
22601 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22609 exit(! does_int64_work());
22612 rm -f conftest$ac_exeext
22613 if { (ac_try="$ac_link"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22619 $as_echo "$ac_try_echo") >&5
22620 (eval "$ac_link") 2>&5
22622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22624 { (case "(($ac_try" in
22625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626 *) ac_try_echo=$ac_try;;
22628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22629 $as_echo "$ac_try_echo") >&5
22630 (eval "$ac_try") 2>&5
22632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 pgac_cv_type_long_long_int_64=yes
22636 $as_echo "$as_me: program exited with status $ac_status" >&5
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 ( exit $ac_status )
22641 pgac_cv_type_long_long_int_64=no
22643 rm -rf conftest.dSYM
22644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22649 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22650 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22652 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22653 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22655 cat >>confdefs.h <<\_ACEOF
22656 #define HAVE_LONG_LONG_INT_64 1
22661 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
22662 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
22663 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
22664 { (exit 1); exit 1; }; }
22670 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22678 #define INT64CONST(x) x##LL
22679 long long int foo = INT64CONST(0x1234567890123456);
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22696 $as_echo "$ac_try_echo") >&5
22697 (eval "$ac_compile") 2>conftest.er1
22699 grep -v '^ *+' conftest.er1 >conftest.err
22701 cat conftest.err >&5
22702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } && {
22704 test -z "$ac_c_werror_flag" ||
22705 test ! -s conftest.err
22706 } && test -s conftest.$ac_objext; then
22708 cat >>confdefs.h <<\_ACEOF
22709 #define HAVE_LL_CONSTANTS 1
22713 $as_echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 # If we found "long int" is 64 bits, assume snprintf handles it. If
22724 # we found we need to use "long long int", better check. We cope with
22725 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
22726 # work, fall back to our own snprintf emulation (which we know uses %lld).
22728 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22729 if test $pgac_need_repl_snprintf = no; then
22730 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22731 $as_echo_n "checking snprintf format for long long int... " >&6; }
22732 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22733 $as_echo_n "(cached) " >&6
22735 for pgac_format in '%lld' '%qd' '%I64d'; do
22736 if test "$cross_compiling" = yes; then
22737 pgac_cv_snprintf_long_long_int_format=cross; break
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22746 typedef long long int ac_int64;
22747 #define INT64_FORMAT "$pgac_format"
22749 ac_int64 a = 20000001;
22750 ac_int64 b = 40000005;
22752 int does_int64_snprintf_work()
22757 if (sizeof(ac_int64) != 8)
22758 return 0; /* doesn't look like the right size */
22761 snprintf(buf, 100, INT64_FORMAT, c);
22762 if (strcmp(buf, "800000140000005") != 0)
22763 return 0; /* either multiply or snprintf is busted */
22767 exit(! does_int64_snprintf_work());
22770 rm -f conftest$ac_exeext
22771 if { (ac_try="$ac_link"
22772 case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22777 $as_echo "$ac_try_echo") >&5
22778 (eval "$ac_link") 2>&5
22780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22782 { (case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22787 $as_echo "$ac_try_echo") >&5
22788 (eval "$ac_try") 2>&5
22790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22792 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22794 $as_echo "$as_me: program exited with status $ac_status" >&5
22795 $as_echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22799 rm -rf conftest.dSYM
22800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22807 LONG_LONG_INT_FORMAT=''
22809 case $pgac_cv_snprintf_long_long_int_format in
22810 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22811 $as_echo "cannot test (not on host machine)" >&6; };;
22812 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22813 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22814 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22815 *) { $as_echo "$as_me:$LINENO: result: none" >&5
22816 $as_echo "none" >&6; };;
22818 if test "$LONG_LONG_INT_FORMAT" = ""; then
22819 # Force usage of our own snprintf, since system snprintf is broken
22820 pgac_need_repl_snprintf=yes
22821 LONG_LONG_INT_FORMAT='%lld'
22824 # Here if we previously decided we needed to use our own snprintf
22825 LONG_LONG_INT_FORMAT='%lld'
22827 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22828 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22829 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22831 # Here if we are not using 'long long int' at all
22832 INT64_FORMAT='"%ld"'
22833 UINT64_FORMAT='"%lu"'
22837 cat >>confdefs.h <<_ACEOF
22838 #define INT64_FORMAT $INT64_FORMAT
22843 cat >>confdefs.h <<_ACEOF
22844 #define UINT64_FORMAT $UINT64_FORMAT
22848 # Now we have checked all the reasons to replace snprintf
22849 if test $pgac_need_repl_snprintf = yes; then
22851 cat >>confdefs.h <<\_ACEOF
22852 #define USE_REPL_SNPRINTF 1
22855 case " $LIBOBJS " in
22856 *" snprintf.$ac_objext "* ) ;;
22857 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22863 # Check size of void *, size_t (enables tweaks for > 32bit address space)
22864 # The cast to long int works around a bug in the HP C Compiler
22865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22867 # This bug is HP SR number 8606223364.
22868 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22869 $as_echo_n "checking size of void *... " >&6; }
22870 if test "${ac_cv_sizeof_void_p+set}" = set; then
22871 $as_echo_n "(cached) " >&6
22873 if test "$cross_compiling" = yes; then
22874 # Depending upon the size, compute the lo and hi bounds.
22875 cat >conftest.$ac_ext <<_ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22881 $ac_includes_default
22885 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22899 $as_echo "$ac_try_echo") >&5
22900 (eval "$ac_compile") 2>conftest.er1
22902 grep -v '^ *+' conftest.er1 >conftest.err
22904 cat conftest.err >&5
22905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } && {
22907 test -z "$ac_c_werror_flag" ||
22908 test ! -s conftest.err
22909 } && test -s conftest.$ac_objext; then
22912 cat >conftest.$ac_ext <<_ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 $ac_includes_default
22922 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22929 rm -f conftest.$ac_objext
22930 if { (ac_try="$ac_compile"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22936 $as_echo "$ac_try_echo") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_hi=$ac_mid; break
22949 $as_echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_lo=`expr $ac_mid + 1`
22953 if test $ac_lo -le $ac_mid; then
22957 ac_mid=`expr 2 '*' $ac_mid + 1`
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 $as_echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 $ac_includes_default
22976 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990 $as_echo "$ac_try_echo") >&5
22991 (eval "$ac_compile") 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && {
22998 test -z "$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 } && test -s conftest.$ac_objext; then
23003 cat >conftest.$ac_ext <<_ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 $ac_includes_default
23013 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23020 rm -f conftest.$ac_objext
23021 if { (ac_try="$ac_compile"
23022 case "(($ac_try" in
23023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024 *) ac_try_echo=$ac_try;;
23026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027 $as_echo "$ac_try_echo") >&5
23028 (eval "$ac_compile") 2>conftest.er1
23030 grep -v '^ *+' conftest.er1 >conftest.err
23032 cat conftest.err >&5
23033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } && {
23035 test -z "$ac_c_werror_flag" ||
23036 test ! -s conftest.err
23037 } && test -s conftest.$ac_objext; then
23038 ac_lo=$ac_mid; break
23040 $as_echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23043 ac_hi=`expr '(' $ac_mid ')' - 1`
23044 if test $ac_mid -le $ac_hi; then
23048 ac_mid=`expr 2 '*' $ac_mid`
23051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23054 $as_echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 # Binary search between lo and hi bounds.
23065 while test "x$ac_lo" != "x$ac_hi"; do
23066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23067 cat >conftest.$ac_ext <<_ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23073 $ac_includes_default
23077 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23084 rm -f conftest.$ac_objext
23085 if { (ac_try="$ac_compile"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_compile") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest.$ac_objext; then
23104 $as_echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 ac_lo=`expr '(' $ac_mid ')' + 1`
23110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23113 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23114 '') if test "$ac_cv_type_void_p" = yes; then
23115 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23117 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23118 See \`config.log' for more details." >&5
23119 $as_echo "$as_me: error: cannot compute sizeof (void *)
23120 See \`config.log' for more details." >&2;}
23121 { (exit 77); exit 77; }; }; }
23123 ac_cv_sizeof_void_p=0
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 $ac_includes_default
23134 static long int longval () { return (long int) (sizeof (void *)); }
23135 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23137 #include <stdlib.h>
23142 FILE *f = fopen ("conftest.val", "w");
23145 if (((long int) (sizeof (void *))) < 0)
23147 long int i = longval ();
23148 if (i != ((long int) (sizeof (void *))))
23150 fprintf (f, "%ld", i);
23154 unsigned long int i = ulongval ();
23155 if (i != ((long int) (sizeof (void *))))
23157 fprintf (f, "%lu", i);
23159 /* Do not output a trailing newline, as this causes \r\n confusion
23160 on some platforms. */
23161 return ferror (f) || fclose (f) != 0;
23167 rm -f conftest$ac_exeext
23168 if { (ac_try="$ac_link"
23169 case "(($ac_try" in
23170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171 *) ac_try_echo=$ac_try;;
23173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23174 $as_echo "$ac_try_echo") >&5
23175 (eval "$ac_link") 2>&5
23177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23179 { (case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23184 $as_echo "$ac_try_echo") >&5
23185 (eval "$ac_try") 2>&5
23187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; }; then
23189 ac_cv_sizeof_void_p=`cat conftest.val`
23191 $as_echo "$as_me: program exited with status $ac_status" >&5
23192 $as_echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23195 ( exit $ac_status )
23196 if test "$ac_cv_type_void_p" = yes; then
23197 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23199 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23200 See \`config.log' for more details." >&5
23201 $as_echo "$as_me: error: cannot compute sizeof (void *)
23202 See \`config.log' for more details." >&2;}
23203 { (exit 77); exit 77; }; }; }
23205 ac_cv_sizeof_void_p=0
23208 rm -rf conftest.dSYM
23209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23213 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23214 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23218 cat >>confdefs.h <<_ACEOF
23219 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23223 # The cast to long int works around a bug in the HP C Compiler
23224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23226 # This bug is HP SR number 8606223364.
23227 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23228 $as_echo_n "checking size of size_t... " >&6; }
23229 if test "${ac_cv_sizeof_size_t+set}" = set; then
23230 $as_echo_n "(cached) " >&6
23232 if test "$cross_compiling" = yes; then
23233 # Depending upon the size, compute the lo and hi bounds.
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23244 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23251 rm -f conftest.$ac_objext
23252 if { (ac_try="$ac_compile"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23258 $as_echo "$ac_try_echo") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23261 grep -v '^ *+' conftest.er1 >conftest.err
23263 cat conftest.err >&5
23264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23271 cat >conftest.$ac_ext <<_ACEOF
23274 cat confdefs.h >>conftest.$ac_ext
23275 cat >>conftest.$ac_ext <<_ACEOF
23276 /* end confdefs.h. */
23277 $ac_includes_default
23281 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23288 rm -f conftest.$ac_objext
23289 if { (ac_try="$ac_compile"
23290 case "(($ac_try" in
23291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292 *) ac_try_echo=$ac_try;;
23294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23295 $as_echo "$ac_try_echo") >&5
23296 (eval "$ac_compile") 2>conftest.er1
23298 grep -v '^ *+' conftest.er1 >conftest.err
23300 cat conftest.err >&5
23301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); } && {
23303 test -z "$ac_c_werror_flag" ||
23304 test ! -s conftest.err
23305 } && test -s conftest.$ac_objext; then
23306 ac_hi=$ac_mid; break
23308 $as_echo "$as_me: failed program was:" >&5
23309 sed 's/^/| /' conftest.$ac_ext >&5
23311 ac_lo=`expr $ac_mid + 1`
23312 if test $ac_lo -le $ac_mid; then
23316 ac_mid=`expr 2 '*' $ac_mid + 1`
23319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23322 $as_echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 $ac_includes_default
23335 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23342 rm -f conftest.$ac_objext
23343 if { (ac_try="$ac_compile"
23344 case "(($ac_try" in
23345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346 *) ac_try_echo=$ac_try;;
23348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23349 $as_echo "$ac_try_echo") >&5
23350 (eval "$ac_compile") 2>conftest.er1
23352 grep -v '^ *+' conftest.er1 >conftest.err
23354 cat conftest.err >&5
23355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } && {
23357 test -z "$ac_c_werror_flag" ||
23358 test ! -s conftest.err
23359 } && test -s conftest.$ac_objext; then
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23372 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23379 rm -f conftest.$ac_objext
23380 if { (ac_try="$ac_compile"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23386 $as_echo "$ac_try_echo") >&5
23387 (eval "$ac_compile") 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } && {
23394 test -z "$ac_c_werror_flag" ||
23395 test ! -s conftest.err
23396 } && test -s conftest.$ac_objext; then
23397 ac_lo=$ac_mid; break
23399 $as_echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23402 ac_hi=`expr '(' $ac_mid ')' - 1`
23403 if test $ac_mid -le $ac_hi; then
23407 ac_mid=`expr 2 '*' $ac_mid`
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 $as_echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 # Binary search between lo and hi bounds.
23424 while test "x$ac_lo" != "x$ac_hi"; do
23425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23426 cat >conftest.$ac_ext <<_ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23432 $ac_includes_default
23436 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23450 $as_echo "$ac_try_echo") >&5
23451 (eval "$ac_compile") 2>conftest.er1
23453 grep -v '^ *+' conftest.er1 >conftest.err
23455 cat conftest.err >&5
23456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest.$ac_objext; then
23463 $as_echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_lo=`expr '(' $ac_mid ')' + 1`
23469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23473 '') if test "$ac_cv_type_size_t" = yes; then
23474 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23476 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23477 See \`config.log' for more details." >&5
23478 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23479 See \`config.log' for more details." >&2;}
23480 { (exit 77); exit 77; }; }; }
23482 ac_cv_sizeof_size_t=0
23486 cat >conftest.$ac_ext <<_ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23492 $ac_includes_default
23493 static long int longval () { return (long int) (sizeof (size_t)); }
23494 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23496 #include <stdlib.h>
23501 FILE *f = fopen ("conftest.val", "w");
23504 if (((long int) (sizeof (size_t))) < 0)
23506 long int i = longval ();
23507 if (i != ((long int) (sizeof (size_t))))
23509 fprintf (f, "%ld", i);
23513 unsigned long int i = ulongval ();
23514 if (i != ((long int) (sizeof (size_t))))
23516 fprintf (f, "%lu", i);
23518 /* Do not output a trailing newline, as this causes \r\n confusion
23519 on some platforms. */
23520 return ferror (f) || fclose (f) != 0;
23526 rm -f conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23533 $as_echo "$ac_try_echo") >&5
23534 (eval "$ac_link") 2>&5
23536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23538 { (case "(($ac_try" in
23539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23543 $as_echo "$ac_try_echo") >&5
23544 (eval "$ac_try") 2>&5
23546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; }; then
23548 ac_cv_sizeof_size_t=`cat conftest.val`
23550 $as_echo "$as_me: program exited with status $ac_status" >&5
23551 $as_echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ( exit $ac_status )
23555 if test "$ac_cv_type_size_t" = yes; then
23556 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23558 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23559 See \`config.log' for more details." >&5
23560 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23561 See \`config.log' for more details." >&2;}
23562 { (exit 77); exit 77; }; }; }
23564 ac_cv_sizeof_size_t=0
23567 rm -rf conftest.dSYM
23568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23572 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23573 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23577 cat >>confdefs.h <<_ACEOF
23578 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23582 # The cast to long int works around a bug in the HP C Compiler
23583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23585 # This bug is HP SR number 8606223364.
23586 { $as_echo "$as_me:$LINENO: checking size of long" >&5
23587 $as_echo_n "checking size of long... " >&6; }
23588 if test "${ac_cv_sizeof_long+set}" = set; then
23589 $as_echo_n "(cached) " >&6
23591 if test "$cross_compiling" = yes; then
23592 # Depending upon the size, compute the lo and hi bounds.
23593 cat >conftest.$ac_ext <<_ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23599 $ac_includes_default
23603 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23617 $as_echo "$ac_try_echo") >&5
23618 (eval "$ac_compile") 2>conftest.er1
23620 grep -v '^ *+' conftest.er1 >conftest.err
23622 cat conftest.err >&5
23623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); } && {
23625 test -z "$ac_c_werror_flag" ||
23626 test ! -s conftest.err
23627 } && test -s conftest.$ac_objext; then
23630 cat >conftest.$ac_ext <<_ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h. */
23636 $ac_includes_default
23640 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
23647 rm -f conftest.$ac_objext
23648 if { (ac_try="$ac_compile"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23654 $as_echo "$ac_try_echo") >&5
23655 (eval "$ac_compile") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest.$ac_objext; then
23665 ac_hi=$ac_mid; break
23667 $as_echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23670 ac_lo=`expr $ac_mid + 1`
23671 if test $ac_lo -le $ac_mid; then
23675 ac_mid=`expr 2 '*' $ac_mid + 1`
23678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23681 $as_echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 $ac_includes_default
23694 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709 (eval "$ac_compile") 2>conftest.er1
23711 grep -v '^ *+' conftest.er1 >conftest.err
23713 cat conftest.err >&5
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } && {
23716 test -z "$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 } && test -s conftest.$ac_objext; then
23721 cat >conftest.$ac_ext <<_ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h. */
23727 $ac_includes_default
23731 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
23738 rm -f conftest.$ac_objext
23739 if { (ac_try="$ac_compile"
23740 case "(($ac_try" in
23741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742 *) ac_try_echo=$ac_try;;
23744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23745 $as_echo "$ac_try_echo") >&5
23746 (eval "$ac_compile") 2>conftest.er1
23748 grep -v '^ *+' conftest.er1 >conftest.err
23750 cat conftest.err >&5
23751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } && {
23753 test -z "$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23755 } && test -s conftest.$ac_objext; then
23756 ac_lo=$ac_mid; break
23758 $as_echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ac_hi=`expr '(' $ac_mid ')' - 1`
23762 if test $ac_mid -le $ac_hi; then
23766 ac_mid=`expr 2 '*' $ac_mid`
23769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772 $as_echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 # Binary search between lo and hi bounds.
23783 while test "x$ac_lo" != "x$ac_hi"; do
23784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23785 cat >conftest.$ac_ext <<_ACEOF
23788 cat confdefs.h >>conftest.$ac_ext
23789 cat >>conftest.$ac_ext <<_ACEOF
23790 /* end confdefs.h. */
23791 $ac_includes_default
23795 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23809 $as_echo "$ac_try_echo") >&5
23810 (eval "$ac_compile") 2>conftest.er1
23812 grep -v '^ *+' conftest.er1 >conftest.err
23814 cat conftest.err >&5
23815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest.$ac_objext; then
23822 $as_echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23825 ac_lo=`expr '(' $ac_mid ')' + 1`
23828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 ?*) ac_cv_sizeof_long=$ac_lo;;
23832 '') if test "$ac_cv_type_long" = yes; then
23833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23835 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23836 See \`config.log' for more details." >&5
23837 $as_echo "$as_me: error: cannot compute sizeof (long)
23838 See \`config.log' for more details." >&2;}
23839 { (exit 77); exit 77; }; }; }
23841 ac_cv_sizeof_long=0
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 $ac_includes_default
23852 static long int longval () { return (long int) (sizeof (long)); }
23853 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
23855 #include <stdlib.h>
23860 FILE *f = fopen ("conftest.val", "w");
23863 if (((long int) (sizeof (long))) < 0)
23865 long int i = longval ();
23866 if (i != ((long int) (sizeof (long))))
23868 fprintf (f, "%ld", i);
23872 unsigned long int i = ulongval ();
23873 if (i != ((long int) (sizeof (long))))
23875 fprintf (f, "%lu", i);
23877 /* Do not output a trailing newline, as this causes \r\n confusion
23878 on some platforms. */
23879 return ferror (f) || fclose (f) != 0;
23885 rm -f conftest$ac_exeext
23886 if { (ac_try="$ac_link"
23887 case "(($ac_try" in
23888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889 *) ac_try_echo=$ac_try;;
23891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23892 $as_echo "$ac_try_echo") >&5
23893 (eval "$ac_link") 2>&5
23895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23897 { (case "(($ac_try" in
23898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23899 *) ac_try_echo=$ac_try;;
23901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23902 $as_echo "$ac_try_echo") >&5
23903 (eval "$ac_try") 2>&5
23905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; }; then
23907 ac_cv_sizeof_long=`cat conftest.val`
23909 $as_echo "$as_me: program exited with status $ac_status" >&5
23910 $as_echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23913 ( exit $ac_status )
23914 if test "$ac_cv_type_long" = yes; then
23915 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23917 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23918 See \`config.log' for more details." >&5
23919 $as_echo "$as_me: error: cannot compute sizeof (long)
23920 See \`config.log' for more details." >&2;}
23921 { (exit 77); exit 77; }; }; }
23923 ac_cv_sizeof_long=0
23926 rm -rf conftest.dSYM
23927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23931 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23932 $as_echo "$ac_cv_sizeof_long" >&6; }
23936 cat >>confdefs.h <<_ACEOF
23937 #define SIZEOF_LONG $ac_cv_sizeof_long
23942 # Decide whether float4 is passed by value: user-selectable, enabled by default
23943 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23944 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23947 # Check whether --enable-float4-byval was given.
23948 if test "${enable_float4_byval+set}" = set; then
23949 enableval=$enable_float4_byval;
23953 cat >>confdefs.h <<\_ACEOF
23954 #define USE_FLOAT4_BYVAL 1
23957 float4passbyval=true
23960 float4passbyval=false
23963 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23964 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23965 { (exit 1); exit 1; }; }
23970 enable_float4_byval=yes
23972 cat >>confdefs.h <<\_ACEOF
23973 #define USE_FLOAT4_BYVAL 1
23976 float4passbyval=true
23980 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23981 $as_echo "$enable_float4_byval" >&6; }
23983 cat >>confdefs.h <<_ACEOF
23984 #define FLOAT4PASSBYVAL $float4passbyval
23988 # Decide whether float8 is passed by value.
23989 # Note: this setting also controls int8 and related types such as timestamp.
23990 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23991 # If not, trying to select it is an error.
23992 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23993 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23994 if test $ac_cv_sizeof_void_p -ge 8 ; then
23997 # Check whether --enable-float8-byval was given.
23998 if test "${enable_float8_byval+set}" = set; then
23999 enableval=$enable_float8_byval;
24008 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24009 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24010 { (exit 1); exit 1; }; }
24015 enable_float8_byval=yes
24023 # Check whether --enable-float8-byval was given.
24024 if test "${enable_float8_byval+set}" = set; then
24025 enableval=$enable_float8_byval;
24034 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24035 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24036 { (exit 1); exit 1; }; }
24041 enable_float8_byval=no
24046 if test "$enable_float8_byval" = yes ; then
24047 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
24048 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
24049 { (exit 1); exit 1; }; }
24052 if test "$enable_float8_byval" = yes ; then
24054 cat >>confdefs.h <<\_ACEOF
24055 #define USE_FLOAT8_BYVAL 1
24058 float8passbyval=true
24060 float8passbyval=false
24062 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
24063 $as_echo "$enable_float8_byval" >&6; }
24065 cat >>confdefs.h <<_ACEOF
24066 #define FLOAT8PASSBYVAL $float8passbyval
24070 # Determine memory alignment requirements for the basic C data types.
24072 # The cast to long int works around a bug in the HP C Compiler,
24073 # see AC_CHECK_SIZEOF for more information.
24074 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
24075 $as_echo_n "checking alignment of short... " >&6; }
24076 if test "${ac_cv_alignof_short+set}" = set; then
24077 $as_echo_n "(cached) " >&6
24079 if test "$cross_compiling" = yes; then
24080 # Depending upon the size, compute the lo and hi bounds.
24081 cat >conftest.$ac_ext <<_ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 $ac_includes_default
24089 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24091 typedef struct { char x; short y; } ac__type_alignof_;
24095 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24102 rm -f conftest.$ac_objext
24103 if { (ac_try="$ac_compile"
24104 case "(($ac_try" in
24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24109 $as_echo "$ac_try_echo") >&5
24110 (eval "$ac_compile") 2>conftest.er1
24112 grep -v '^ *+' conftest.er1 >conftest.err
24114 cat conftest.err >&5
24115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); } && {
24117 test -z "$ac_c_werror_flag" ||
24118 test ! -s conftest.err
24119 } && test -s conftest.$ac_objext; then
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 $ac_includes_default
24130 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24132 typedef struct { char x; short y; } ac__type_alignof_;
24136 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24143 rm -f conftest.$ac_objext
24144 if { (ac_try="$ac_compile"
24145 case "(($ac_try" in
24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24147 *) ac_try_echo=$ac_try;;
24149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24150 $as_echo "$ac_try_echo") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24153 grep -v '^ *+' conftest.er1 >conftest.err
24155 cat conftest.err >&5
24156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.$ac_objext; then
24161 ac_hi=$ac_mid; break
24163 $as_echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24166 ac_lo=`expr $ac_mid + 1`
24167 if test $ac_lo -le $ac_mid; then
24171 ac_mid=`expr 2 '*' $ac_mid + 1`
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 $as_echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24186 $ac_includes_default
24188 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24190 typedef struct { char x; short y; } ac__type_alignof_;
24194 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205 *) ac_try_echo=$ac_try;;
24207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24208 $as_echo "$ac_try_echo") >&5
24209 (eval "$ac_compile") 2>conftest.er1
24211 grep -v '^ *+' conftest.er1 >conftest.err
24213 cat conftest.err >&5
24214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } && {
24216 test -z "$ac_c_werror_flag" ||
24217 test ! -s conftest.err
24218 } && test -s conftest.$ac_objext; then
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24229 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24231 typedef struct { char x; short y; } ac__type_alignof_;
24235 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24249 $as_echo "$ac_try_echo") >&5
24250 (eval "$ac_compile") 2>conftest.er1
24252 grep -v '^ *+' conftest.er1 >conftest.err
24254 cat conftest.err >&5
24255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } && {
24257 test -z "$ac_c_werror_flag" ||
24258 test ! -s conftest.err
24259 } && test -s conftest.$ac_objext; then
24260 ac_lo=$ac_mid; break
24262 $as_echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24265 ac_hi=`expr '(' $ac_mid ')' - 1`
24266 if test $ac_mid -le $ac_hi; then
24270 ac_mid=`expr 2 '*' $ac_mid`
24273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286 # Binary search between lo and hi bounds.
24287 while test "x$ac_lo" != "x$ac_hi"; do
24288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24289 cat >conftest.$ac_ext <<_ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h. */
24295 $ac_includes_default
24297 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24299 typedef struct { char x; short y; } ac__type_alignof_;
24303 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24310 rm -f conftest.$ac_objext
24311 if { (ac_try="$ac_compile"
24312 case "(($ac_try" in
24313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314 *) ac_try_echo=$ac_try;;
24316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24317 $as_echo "$ac_try_echo") >&5
24318 (eval "$ac_compile") 2>conftest.er1
24320 grep -v '^ *+' conftest.er1 >conftest.err
24322 cat conftest.err >&5
24323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } && {
24325 test -z "$ac_c_werror_flag" ||
24326 test ! -s conftest.err
24327 } && test -s conftest.$ac_objext; then
24330 $as_echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_lo=`expr '(' $ac_mid ')' + 1`
24336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339 ?*) ac_cv_alignof_short=$ac_lo;;
24340 '') if test "$ac_cv_type_short" = yes; then
24341 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24343 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24344 See \`config.log' for more details." >&5
24345 $as_echo "$as_me: error: cannot compute alignment of short
24346 See \`config.log' for more details." >&2;}
24347 { (exit 77); exit 77; }; }; }
24349 ac_cv_alignof_short=0
24353 cat >conftest.$ac_ext <<_ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h. */
24359 $ac_includes_default
24361 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24363 typedef struct { char x; short y; } ac__type_alignof_;
24364 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24365 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24367 #include <stdlib.h>
24372 FILE *f = fopen ("conftest.val", "w");
24375 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24377 long int i = longval ();
24378 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24380 fprintf (f, "%ld", i);
24384 unsigned long int i = ulongval ();
24385 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24387 fprintf (f, "%lu", i);
24389 /* Do not output a trailing newline, as this causes \r\n confusion
24390 on some platforms. */
24391 return ferror (f) || fclose (f) != 0;
24397 rm -f conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24404 $as_echo "$ac_try_echo") >&5
24405 (eval "$ac_link") 2>&5
24407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24409 { (case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24414 $as_echo "$ac_try_echo") >&5
24415 (eval "$ac_try") 2>&5
24417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; }; then
24419 ac_cv_alignof_short=`cat conftest.val`
24421 $as_echo "$as_me: program exited with status $ac_status" >&5
24422 $as_echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 ( exit $ac_status )
24426 if test "$ac_cv_type_short" = yes; then
24427 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24429 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24430 See \`config.log' for more details." >&5
24431 $as_echo "$as_me: error: cannot compute alignment of short
24432 See \`config.log' for more details." >&2;}
24433 { (exit 77); exit 77; }; }; }
24435 ac_cv_alignof_short=0
24438 rm -rf conftest.dSYM
24439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24443 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24444 $as_echo "$ac_cv_alignof_short" >&6; }
24448 cat >>confdefs.h <<_ACEOF
24449 #define ALIGNOF_SHORT $ac_cv_alignof_short
24453 # The cast to long int works around a bug in the HP C Compiler,
24454 # see AC_CHECK_SIZEOF for more information.
24455 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24456 $as_echo_n "checking alignment of int... " >&6; }
24457 if test "${ac_cv_alignof_int+set}" = set; then
24458 $as_echo_n "(cached) " >&6
24460 if test "$cross_compiling" = yes; then
24461 # Depending upon the size, compute the lo and hi bounds.
24462 cat >conftest.$ac_ext <<_ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h. */
24468 $ac_includes_default
24470 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24472 typedef struct { char x; int y; } ac__type_alignof_;
24476 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24483 rm -f conftest.$ac_objext
24484 if { (ac_try="$ac_compile"
24485 case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24490 $as_echo "$ac_try_echo") >&5
24491 (eval "$ac_compile") 2>conftest.er1
24493 grep -v '^ *+' conftest.er1 >conftest.err
24495 cat conftest.err >&5
24496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && {
24498 test -z "$ac_c_werror_flag" ||
24499 test ! -s conftest.err
24500 } && test -s conftest.$ac_objext; then
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24509 $ac_includes_default
24511 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24513 typedef struct { char x; int y; } ac__type_alignof_;
24517 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_compile") 2>conftest.er1
24534 grep -v '^ *+' conftest.er1 >conftest.err
24536 cat conftest.err >&5
24537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest.$ac_objext; then
24542 ac_hi=$ac_mid; break
24544 $as_echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 ac_lo=`expr $ac_mid + 1`
24548 if test $ac_lo -le $ac_mid; then
24552 ac_mid=`expr 2 '*' $ac_mid + 1`
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24558 $as_echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24561 cat >conftest.$ac_ext <<_ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h. */
24567 $ac_includes_default
24569 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24571 typedef struct { char x; int y; } ac__type_alignof_;
24575 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24582 rm -f conftest.$ac_objext
24583 if { (ac_try="$ac_compile"
24584 case "(($ac_try" in
24585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24586 *) ac_try_echo=$ac_try;;
24588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24589 $as_echo "$ac_try_echo") >&5
24590 (eval "$ac_compile") 2>conftest.er1
24592 grep -v '^ *+' conftest.er1 >conftest.err
24594 cat conftest.err >&5
24595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } && {
24597 test -z "$ac_c_werror_flag" ||
24598 test ! -s conftest.err
24599 } && test -s conftest.$ac_objext; then
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 $ac_includes_default
24610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24612 typedef struct { char x; int y; } ac__type_alignof_;
24616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24623 rm -f conftest.$ac_objext
24624 if { (ac_try="$ac_compile"
24625 case "(($ac_try" in
24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627 *) ac_try_echo=$ac_try;;
24629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24630 $as_echo "$ac_try_echo") >&5
24631 (eval "$ac_compile") 2>conftest.er1
24633 grep -v '^ *+' conftest.er1 >conftest.err
24635 cat conftest.err >&5
24636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } && {
24638 test -z "$ac_c_werror_flag" ||
24639 test ! -s conftest.err
24640 } && test -s conftest.$ac_objext; then
24641 ac_lo=$ac_mid; break
24643 $as_echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24646 ac_hi=`expr '(' $ac_mid ')' - 1`
24647 if test $ac_mid -le $ac_hi; then
24651 ac_mid=`expr 2 '*' $ac_mid`
24654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657 $as_echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667 # Binary search between lo and hi bounds.
24668 while test "x$ac_lo" != "x$ac_hi"; do
24669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24670 cat >conftest.$ac_ext <<_ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24676 $ac_includes_default
24678 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24680 typedef struct { char x; int y; } ac__type_alignof_;
24684 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24691 rm -f conftest.$ac_objext
24692 if { (ac_try="$ac_compile"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24698 $as_echo "$ac_try_echo") >&5
24699 (eval "$ac_compile") 2>conftest.er1
24701 grep -v '^ *+' conftest.er1 >conftest.err
24703 cat conftest.err >&5
24704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } && {
24706 test -z "$ac_c_werror_flag" ||
24707 test ! -s conftest.err
24708 } && test -s conftest.$ac_objext; then
24711 $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24714 ac_lo=`expr '(' $ac_mid ')' + 1`
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24720 ?*) ac_cv_alignof_int=$ac_lo;;
24721 '') if test "$ac_cv_type_int" = yes; then
24722 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24724 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24725 See \`config.log' for more details." >&5
24726 $as_echo "$as_me: error: cannot compute alignment of int
24727 See \`config.log' for more details." >&2;}
24728 { (exit 77); exit 77; }; }; }
24730 ac_cv_alignof_int=0
24734 cat >conftest.$ac_ext <<_ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h. */
24740 $ac_includes_default
24742 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24744 typedef struct { char x; int y; } ac__type_alignof_;
24745 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24746 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24748 #include <stdlib.h>
24753 FILE *f = fopen ("conftest.val", "w");
24756 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24758 long int i = longval ();
24759 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24761 fprintf (f, "%ld", i);
24765 unsigned long int i = ulongval ();
24766 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24768 fprintf (f, "%lu", i);
24770 /* Do not output a trailing newline, as this causes \r\n confusion
24771 on some platforms. */
24772 return ferror (f) || fclose (f) != 0;
24778 rm -f conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782 *) ac_try_echo=$ac_try;;
24784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24785 $as_echo "$ac_try_echo") >&5
24786 (eval "$ac_link") 2>&5
24788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24790 { (case "(($ac_try" in
24791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792 *) ac_try_echo=$ac_try;;
24794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24795 $as_echo "$ac_try_echo") >&5
24796 (eval "$ac_try") 2>&5
24798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; }; then
24800 ac_cv_alignof_int=`cat conftest.val`
24802 $as_echo "$as_me: program exited with status $ac_status" >&5
24803 $as_echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24806 ( exit $ac_status )
24807 if test "$ac_cv_type_int" = yes; then
24808 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24810 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24811 See \`config.log' for more details." >&5
24812 $as_echo "$as_me: error: cannot compute alignment of int
24813 See \`config.log' for more details." >&2;}
24814 { (exit 77); exit 77; }; }; }
24816 ac_cv_alignof_int=0
24819 rm -rf conftest.dSYM
24820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24824 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24825 $as_echo "$ac_cv_alignof_int" >&6; }
24829 cat >>confdefs.h <<_ACEOF
24830 #define ALIGNOF_INT $ac_cv_alignof_int
24834 # The cast to long int works around a bug in the HP C Compiler,
24835 # see AC_CHECK_SIZEOF for more information.
24836 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24837 $as_echo_n "checking alignment of long... " >&6; }
24838 if test "${ac_cv_alignof_long+set}" = set; then
24839 $as_echo_n "(cached) " >&6
24841 if test "$cross_compiling" = yes; then
24842 # Depending upon the size, compute the lo and hi bounds.
24843 cat >conftest.$ac_ext <<_ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h. */
24849 $ac_includes_default
24851 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24853 typedef struct { char x; long y; } ac__type_alignof_;
24857 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24874 grep -v '^ *+' conftest.er1 >conftest.err
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24884 cat >conftest.$ac_ext <<_ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24890 $ac_includes_default
24892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24894 typedef struct { char x; long y; } ac__type_alignof_;
24898 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24923 ac_hi=$ac_mid; break
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 ac_lo=`expr $ac_mid + 1`
24929 if test $ac_lo -le $ac_mid; then
24933 ac_mid=`expr 2 '*' $ac_mid + 1`
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24939 $as_echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 $ac_includes_default
24950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24952 typedef struct { char x; long y; } ac__type_alignof_;
24956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24970 $as_echo "$ac_try_echo") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24973 grep -v '^ *+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest.$ac_objext; then
24983 cat >conftest.$ac_ext <<_ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24991 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24993 typedef struct { char x; long y; } ac__type_alignof_;
24997 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25004 rm -f conftest.$ac_objext
25005 if { (ac_try="$ac_compile"
25006 case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } && {
25019 test -z "$ac_c_werror_flag" ||
25020 test ! -s conftest.err
25021 } && test -s conftest.$ac_objext; then
25022 ac_lo=$ac_mid; break
25024 $as_echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25027 ac_hi=`expr '(' $ac_mid ')' - 1`
25028 if test $ac_mid -le $ac_hi; then
25032 ac_mid=`expr 2 '*' $ac_mid`
25035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038 $as_echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25048 # Binary search between lo and hi bounds.
25049 while test "x$ac_lo" != "x$ac_hi"; do
25050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 $ac_includes_default
25059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25061 typedef struct { char x; long y; } ac__type_alignof_;
25065 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25079 $as_echo "$ac_try_echo") >&5
25080 (eval "$ac_compile") 2>conftest.er1
25082 grep -v '^ *+' conftest.er1 >conftest.err
25084 cat conftest.err >&5
25085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } && {
25087 test -z "$ac_c_werror_flag" ||
25088 test ! -s conftest.err
25089 } && test -s conftest.$ac_objext; then
25092 $as_echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25095 ac_lo=`expr '(' $ac_mid ')' + 1`
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 ?*) ac_cv_alignof_long=$ac_lo;;
25102 '') if test "$ac_cv_type_long" = yes; then
25103 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
25106 See \`config.log' for more details." >&5
25107 $as_echo "$as_me: error: cannot compute alignment of long
25108 See \`config.log' for more details." >&2;}
25109 { (exit 77); exit 77; }; }; }
25111 ac_cv_alignof_long=0
25115 cat >conftest.$ac_ext <<_ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 $ac_includes_default
25123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25125 typedef struct { char x; long y; } ac__type_alignof_;
25126 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25127 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25129 #include <stdlib.h>
25134 FILE *f = fopen ("conftest.val", "w");
25137 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25139 long int i = longval ();
25140 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25142 fprintf (f, "%ld", i);
25146 unsigned long int i = ulongval ();
25147 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25149 fprintf (f, "%lu", i);
25151 /* Do not output a trailing newline, as this causes \r\n confusion
25152 on some platforms. */
25153 return ferror (f) || fclose (f) != 0;
25159 rm -f conftest$ac_exeext
25160 if { (ac_try="$ac_link"
25161 case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25166 $as_echo "$ac_try_echo") >&5
25167 (eval "$ac_link") 2>&5
25169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25171 { (case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25176 $as_echo "$ac_try_echo") >&5
25177 (eval "$ac_try") 2>&5
25179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); }; }; then
25181 ac_cv_alignof_long=`cat conftest.val`
25183 $as_echo "$as_me: program exited with status $ac_status" >&5
25184 $as_echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25187 ( exit $ac_status )
25188 if test "$ac_cv_type_long" = yes; then
25189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25191 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
25192 See \`config.log' for more details." >&5
25193 $as_echo "$as_me: error: cannot compute alignment of long
25194 See \`config.log' for more details." >&2;}
25195 { (exit 77); exit 77; }; }; }
25197 ac_cv_alignof_long=0
25200 rm -rf conftest.dSYM
25201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25205 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
25206 $as_echo "$ac_cv_alignof_long" >&6; }
25210 cat >>confdefs.h <<_ACEOF
25211 #define ALIGNOF_LONG $ac_cv_alignof_long
25215 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
25216 # The cast to long int works around a bug in the HP C Compiler,
25217 # see AC_CHECK_SIZEOF for more information.
25218 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
25219 $as_echo_n "checking alignment of long long int... " >&6; }
25220 if test "${ac_cv_alignof_long_long_int+set}" = set; then
25221 $as_echo_n "(cached) " >&6
25223 if test "$cross_compiling" = yes; then
25224 # Depending upon the size, compute the lo and hi bounds.
25225 cat >conftest.$ac_ext <<_ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h. */
25231 $ac_includes_default
25233 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25235 typedef struct { char x; long long int y; } ac__type_alignof_;
25239 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.$ac_objext; then
25266 cat >conftest.$ac_ext <<_ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25272 $ac_includes_default
25274 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25276 typedef struct { char x; long long int y; } ac__type_alignof_;
25280 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25287 rm -f conftest.$ac_objext
25288 if { (ac_try="$ac_compile"
25289 case "(($ac_try" in
25290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291 *) ac_try_echo=$ac_try;;
25293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25294 $as_echo "$ac_try_echo") >&5
25295 (eval "$ac_compile") 2>conftest.er1
25297 grep -v '^ *+' conftest.er1 >conftest.err
25299 cat conftest.err >&5
25300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && {
25302 test -z "$ac_c_werror_flag" ||
25303 test ! -s conftest.err
25304 } && test -s conftest.$ac_objext; then
25305 ac_hi=$ac_mid; break
25307 $as_echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25310 ac_lo=`expr $ac_mid + 1`
25311 if test $ac_lo -le $ac_mid; then
25315 ac_mid=`expr 2 '*' $ac_mid + 1`
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321 $as_echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25324 cat >conftest.$ac_ext <<_ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 $ac_includes_default
25332 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25334 typedef struct { char x; long long int y; } ac__type_alignof_;
25338 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25345 rm -f conftest.$ac_objext
25346 if { (ac_try="$ac_compile"
25347 case "(($ac_try" in
25348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349 *) ac_try_echo=$ac_try;;
25351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25352 $as_echo "$ac_try_echo") >&5
25353 (eval "$ac_compile") 2>conftest.er1
25355 grep -v '^ *+' conftest.er1 >conftest.err
25357 cat conftest.err >&5
25358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } && {
25360 test -z "$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25362 } && test -s conftest.$ac_objext; then
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25375 typedef struct { char x; long long int y; } ac__type_alignof_;
25379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25386 rm -f conftest.$ac_objext
25387 if { (ac_try="$ac_compile"
25388 case "(($ac_try" in
25389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390 *) ac_try_echo=$ac_try;;
25392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25393 $as_echo "$ac_try_echo") >&5
25394 (eval "$ac_compile") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } && {
25401 test -z "$ac_c_werror_flag" ||
25402 test ! -s conftest.err
25403 } && test -s conftest.$ac_objext; then
25404 ac_lo=$ac_mid; break
25406 $as_echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25409 ac_hi=`expr '(' $ac_mid ')' - 1`
25410 if test $ac_mid -le $ac_hi; then
25414 ac_mid=`expr 2 '*' $ac_mid`
25417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 $as_echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 # Binary search between lo and hi bounds.
25431 while test "x$ac_lo" != "x$ac_hi"; do
25432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25443 typedef struct { char x; long long int y; } ac__type_alignof_;
25447 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25461 $as_echo "$ac_try_echo") >&5
25462 (eval "$ac_compile") 2>conftest.er1
25464 grep -v '^ *+' conftest.er1 >conftest.err
25466 cat conftest.err >&5
25467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); } && {
25469 test -z "$ac_c_werror_flag" ||
25470 test ! -s conftest.err
25471 } && test -s conftest.$ac_objext; then
25474 $as_echo "$as_me: failed program was:" >&5
25475 sed 's/^/| /' conftest.$ac_ext >&5
25477 ac_lo=`expr '(' $ac_mid ')' + 1`
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25484 '') if test "$ac_cv_type_long_long_int" = yes; then
25485 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25487 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25488 See \`config.log' for more details." >&5
25489 $as_echo "$as_me: error: cannot compute alignment of long long int
25490 See \`config.log' for more details." >&2;}
25491 { (exit 77); exit 77; }; }; }
25493 ac_cv_alignof_long_long_int=0
25497 cat >conftest.$ac_ext <<_ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h. */
25503 $ac_includes_default
25505 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25507 typedef struct { char x; long long int y; } ac__type_alignof_;
25508 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25509 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25511 #include <stdlib.h>
25516 FILE *f = fopen ("conftest.val", "w");
25519 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25521 long int i = longval ();
25522 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25524 fprintf (f, "%ld", i);
25528 unsigned long int i = ulongval ();
25529 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25531 fprintf (f, "%lu", i);
25533 /* Do not output a trailing newline, as this causes \r\n confusion
25534 on some platforms. */
25535 return ferror (f) || fclose (f) != 0;
25541 rm -f conftest$ac_exeext
25542 if { (ac_try="$ac_link"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25548 $as_echo "$ac_try_echo") >&5
25549 (eval "$ac_link") 2>&5
25551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25553 { (case "(($ac_try" in
25554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555 *) ac_try_echo=$ac_try;;
25557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25558 $as_echo "$ac_try_echo") >&5
25559 (eval "$ac_try") 2>&5
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 ac_cv_alignof_long_long_int=`cat conftest.val`
25565 $as_echo "$as_me: program exited with status $ac_status" >&5
25566 $as_echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25569 ( exit $ac_status )
25570 if test "$ac_cv_type_long_long_int" = yes; then
25571 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25573 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25574 See \`config.log' for more details." >&5
25575 $as_echo "$as_me: error: cannot compute alignment of long long int
25576 See \`config.log' for more details." >&2;}
25577 { (exit 77); exit 77; }; }; }
25579 ac_cv_alignof_long_long_int=0
25582 rm -rf conftest.dSYM
25583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25587 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25588 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25592 cat >>confdefs.h <<_ACEOF
25593 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25598 # The cast to long int works around a bug in the HP C Compiler,
25599 # see AC_CHECK_SIZEOF for more information.
25600 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25601 $as_echo_n "checking alignment of double... " >&6; }
25602 if test "${ac_cv_alignof_double+set}" = set; then
25603 $as_echo_n "(cached) " >&6
25605 if test "$cross_compiling" = yes; then
25606 # Depending upon the size, compute the lo and hi bounds.
25607 cat >conftest.$ac_ext <<_ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h. */
25613 $ac_includes_default
25615 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25617 typedef struct { char x; double y; } ac__type_alignof_;
25621 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25628 rm -f conftest.$ac_objext
25629 if { (ac_try="$ac_compile"
25630 case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25635 $as_echo "$ac_try_echo") >&5
25636 (eval "$ac_compile") 2>conftest.er1
25638 grep -v '^ *+' conftest.er1 >conftest.err
25640 cat conftest.err >&5
25641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } && {
25643 test -z "$ac_c_werror_flag" ||
25644 test ! -s conftest.err
25645 } && test -s conftest.$ac_objext; then
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25654 $ac_includes_default
25656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25658 typedef struct { char x; double y; } ac__type_alignof_;
25662 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25669 rm -f conftest.$ac_objext
25670 if { (ac_try="$ac_compile"
25671 case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676 $as_echo "$ac_try_echo") >&5
25677 (eval "$ac_compile") 2>conftest.er1
25679 grep -v '^ *+' conftest.er1 >conftest.err
25681 cat conftest.err >&5
25682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && {
25684 test -z "$ac_c_werror_flag" ||
25685 test ! -s conftest.err
25686 } && test -s conftest.$ac_objext; then
25687 ac_hi=$ac_mid; break
25689 $as_echo "$as_me: failed program was:" >&5
25690 sed 's/^/| /' conftest.$ac_ext >&5
25692 ac_lo=`expr $ac_mid + 1`
25693 if test $ac_lo -le $ac_mid; then
25697 ac_mid=`expr 2 '*' $ac_mid + 1`
25700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703 $as_echo "$as_me: failed program was:" >&5
25704 sed 's/^/| /' conftest.$ac_ext >&5
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 $ac_includes_default
25714 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25716 typedef struct { char x; double y; } ac__type_alignof_;
25720 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25727 rm -f conftest.$ac_objext
25728 if { (ac_try="$ac_compile"
25729 case "(($ac_try" in
25730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25731 *) ac_try_echo=$ac_try;;
25733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25734 $as_echo "$ac_try_echo") >&5
25735 (eval "$ac_compile") 2>conftest.er1
25737 grep -v '^ *+' conftest.er1 >conftest.err
25739 cat conftest.err >&5
25740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741 (exit $ac_status); } && {
25742 test -z "$ac_c_werror_flag" ||
25743 test ! -s conftest.err
25744 } && test -s conftest.$ac_objext; then
25747 cat >conftest.$ac_ext <<_ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h. */
25753 $ac_includes_default
25755 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25757 typedef struct { char x; double y; } ac__type_alignof_;
25761 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25768 rm -f conftest.$ac_objext
25769 if { (ac_try="$ac_compile"
25770 case "(($ac_try" in
25771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772 *) ac_try_echo=$ac_try;;
25774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25775 $as_echo "$ac_try_echo") >&5
25776 (eval "$ac_compile") 2>conftest.er1
25778 grep -v '^ *+' conftest.er1 >conftest.err
25780 cat conftest.err >&5
25781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } && {
25783 test -z "$ac_c_werror_flag" ||
25784 test ! -s conftest.err
25785 } && test -s conftest.$ac_objext; then
25786 ac_lo=$ac_mid; break
25788 $as_echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25791 ac_hi=`expr '(' $ac_mid ')' - 1`
25792 if test $ac_mid -le $ac_hi; then
25796 ac_mid=`expr 2 '*' $ac_mid`
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802 $as_echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25812 # Binary search between lo and hi bounds.
25813 while test "x$ac_lo" != "x$ac_hi"; do
25814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25815 cat >conftest.$ac_ext <<_ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25821 $ac_includes_default
25823 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25825 typedef struct { char x; double y; } ac__type_alignof_;
25829 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25836 rm -f conftest.$ac_objext
25837 if { (ac_try="$ac_compile"
25838 case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25843 $as_echo "$ac_try_echo") >&5
25844 (eval "$ac_compile") 2>conftest.er1
25846 grep -v '^ *+' conftest.er1 >conftest.err
25848 cat conftest.err >&5
25849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } && {
25851 test -z "$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25853 } && test -s conftest.$ac_objext; then
25856 $as_echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25859 ac_lo=`expr '(' $ac_mid ')' + 1`
25862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25865 ?*) ac_cv_alignof_double=$ac_lo;;
25866 '') if test "$ac_cv_type_double" = yes; then
25867 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25869 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25870 See \`config.log' for more details." >&5
25871 $as_echo "$as_me: error: cannot compute alignment of double
25872 See \`config.log' for more details." >&2;}
25873 { (exit 77); exit 77; }; }; }
25875 ac_cv_alignof_double=0
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 $ac_includes_default
25887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25889 typedef struct { char x; double y; } ac__type_alignof_;
25890 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25891 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25893 #include <stdlib.h>
25898 FILE *f = fopen ("conftest.val", "w");
25901 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25903 long int i = longval ();
25904 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25906 fprintf (f, "%ld", i);
25910 unsigned long int i = ulongval ();
25911 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25913 fprintf (f, "%lu", i);
25915 /* Do not output a trailing newline, as this causes \r\n confusion
25916 on some platforms. */
25917 return ferror (f) || fclose (f) != 0;
25923 rm -f conftest$ac_exeext
25924 if { (ac_try="$ac_link"
25925 case "(($ac_try" in
25926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 *) ac_try_echo=$ac_try;;
25929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25930 $as_echo "$ac_try_echo") >&5
25931 (eval "$ac_link") 2>&5
25933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25935 { (case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25940 $as_echo "$ac_try_echo") >&5
25941 (eval "$ac_try") 2>&5
25943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 ac_cv_alignof_double=`cat conftest.val`
25947 $as_echo "$as_me: program exited with status $ac_status" >&5
25948 $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 ( exit $ac_status )
25952 if test "$ac_cv_type_double" = yes; then
25953 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25955 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25956 See \`config.log' for more details." >&5
25957 $as_echo "$as_me: error: cannot compute alignment of double
25958 See \`config.log' for more details." >&2;}
25959 { (exit 77); exit 77; }; }; }
25961 ac_cv_alignof_double=0
25964 rm -rf conftest.dSYM
25965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25969 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25970 $as_echo "$ac_cv_alignof_double" >&6; }
25974 cat >>confdefs.h <<_ACEOF
25975 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25980 # Compute maximum alignment of any basic type.
25981 # We assume long's alignment is at least as strong as char, short, or int;
25982 # but we must check long long (if it exists) and double.
25984 MAX_ALIGNOF=$ac_cv_alignof_long
25985 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25986 MAX_ALIGNOF=$ac_cv_alignof_double
25988 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25989 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25992 cat >>confdefs.h <<_ACEOF
25993 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25998 # Some platforms predefine the types int8, int16, etc. Only check
25999 # a (hopefully) representative subset.
26000 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26001 $as_echo_n "checking for int8... " >&6; }
26002 if test "${ac_cv_type_int8+set}" = set; then
26003 $as_echo_n "(cached) " >&6
26006 cat >conftest.$ac_ext <<_ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h. */
26013 #ifdef HAVE_SUPPORTDEFS_H
26014 #include <SupportDefs.h>
26026 rm -f conftest.$ac_objext
26027 if { (ac_try="$ac_compile"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034 (eval "$ac_compile") 2>conftest.er1
26036 grep -v '^ *+' conftest.er1 >conftest.err
26038 cat conftest.err >&5
26039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } && {
26041 test -z "$ac_c_werror_flag" ||
26042 test ! -s conftest.err
26043 } && test -s conftest.$ac_objext; then
26044 cat >conftest.$ac_ext <<_ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h. */
26051 #ifdef HAVE_SUPPORTDEFS_H
26052 #include <SupportDefs.h>
26058 if (sizeof ((int8)))
26064 rm -f conftest.$ac_objext
26065 if { (ac_try="$ac_compile"
26066 case "(($ac_try" in
26067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068 *) ac_try_echo=$ac_try;;
26070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26071 $as_echo "$ac_try_echo") >&5
26072 (eval "$ac_compile") 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } && {
26079 test -z "$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26081 } && test -s conftest.$ac_objext; then
26084 $as_echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26087 ac_cv_type_int8=yes
26090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26092 $as_echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26100 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
26101 $as_echo "$ac_cv_type_int8" >&6; }
26102 if test "x$ac_cv_type_int8" = x""yes; then
26104 cat >>confdefs.h <<_ACEOF
26105 #define HAVE_INT8 1
26110 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
26111 $as_echo_n "checking for uint8... " >&6; }
26112 if test "${ac_cv_type_uint8+set}" = set; then
26113 $as_echo_n "(cached) " >&6
26115 ac_cv_type_uint8=no
26116 cat >conftest.$ac_ext <<_ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h. */
26123 #ifdef HAVE_SUPPORTDEFS_H
26124 #include <SupportDefs.h>
26130 if (sizeof (uint8))
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26143 $as_echo "$ac_try_echo") >&5
26144 (eval "$ac_compile") 2>conftest.er1
26146 grep -v '^ *+' conftest.er1 >conftest.err
26148 cat conftest.err >&5
26149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && {
26151 test -z "$ac_c_werror_flag" ||
26152 test ! -s conftest.err
26153 } && test -s conftest.$ac_objext; then
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26161 #ifdef HAVE_SUPPORTDEFS_H
26162 #include <SupportDefs.h>
26168 if (sizeof ((uint8)))
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26181 $as_echo "$ac_try_echo") >&5
26182 (eval "$ac_compile") 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } && {
26189 test -z "$ac_c_werror_flag" ||
26190 test ! -s conftest.err
26191 } && test -s conftest.$ac_objext; then
26194 $as_echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 ac_cv_type_uint8=yes
26200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26202 $as_echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
26211 $as_echo "$ac_cv_type_uint8" >&6; }
26212 if test "x$ac_cv_type_uint8" = x""yes; then
26214 cat >>confdefs.h <<_ACEOF
26215 #define HAVE_UINT8 1
26220 { $as_echo "$as_me:$LINENO: checking for int64" >&5
26221 $as_echo_n "checking for int64... " >&6; }
26222 if test "${ac_cv_type_int64+set}" = set; then
26223 $as_echo_n "(cached) " >&6
26225 ac_cv_type_int64=no
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26233 #ifdef HAVE_SUPPORTDEFS_H
26234 #include <SupportDefs.h>
26240 if (sizeof (int64))
26246 rm -f conftest.$ac_objext
26247 if { (ac_try="$ac_compile"
26248 case "(($ac_try" in
26249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250 *) ac_try_echo=$ac_try;;
26252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26253 $as_echo "$ac_try_echo") >&5
26254 (eval "$ac_compile") 2>conftest.er1
26256 grep -v '^ *+' conftest.er1 >conftest.err
26258 cat conftest.err >&5
26259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); } && {
26261 test -z "$ac_c_werror_flag" ||
26262 test ! -s conftest.err
26263 } && test -s conftest.$ac_objext; then
26264 cat >conftest.$ac_ext <<_ACEOF
26267 cat confdefs.h >>conftest.$ac_ext
26268 cat >>conftest.$ac_ext <<_ACEOF
26269 /* end confdefs.h. */
26271 #ifdef HAVE_SUPPORTDEFS_H
26272 #include <SupportDefs.h>
26278 if (sizeof ((int64)))
26284 rm -f conftest.$ac_objext
26285 if { (ac_try="$ac_compile"
26286 case "(($ac_try" in
26287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288 *) ac_try_echo=$ac_try;;
26290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26291 $as_echo "$ac_try_echo") >&5
26292 (eval "$ac_compile") 2>conftest.er1
26294 grep -v '^ *+' conftest.er1 >conftest.err
26296 cat conftest.err >&5
26297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); } && {
26299 test -z "$ac_c_werror_flag" ||
26300 test ! -s conftest.err
26301 } && test -s conftest.$ac_objext; then
26304 $as_echo "$as_me: failed program was:" >&5
26305 sed 's/^/| /' conftest.$ac_ext >&5
26307 ac_cv_type_int64=yes
26310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26312 $as_echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
26321 $as_echo "$ac_cv_type_int64" >&6; }
26322 if test "x$ac_cv_type_int64" = x""yes; then
26324 cat >>confdefs.h <<_ACEOF
26325 #define HAVE_INT64 1
26330 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
26331 $as_echo_n "checking for uint64... " >&6; }
26332 if test "${ac_cv_type_uint64+set}" = set; then
26333 $as_echo_n "(cached) " >&6
26335 ac_cv_type_uint64=no
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26343 #ifdef HAVE_SUPPORTDEFS_H
26344 #include <SupportDefs.h>
26350 if (sizeof (uint64))
26356 rm -f conftest.$ac_objext
26357 if { (ac_try="$ac_compile"
26358 case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363 $as_echo "$ac_try_echo") >&5
26364 (eval "$ac_compile") 2>conftest.er1
26366 grep -v '^ *+' conftest.er1 >conftest.err
26368 cat conftest.err >&5
26369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest.$ac_objext; then
26374 cat >conftest.$ac_ext <<_ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26381 #ifdef HAVE_SUPPORTDEFS_H
26382 #include <SupportDefs.h>
26388 if (sizeof ((uint64)))
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401 $as_echo "$ac_try_echo") >&5
26402 (eval "$ac_compile") 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } && {
26409 test -z "$ac_c_werror_flag" ||
26410 test ! -s conftest.err
26411 } && test -s conftest.$ac_objext; then
26414 $as_echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26417 ac_cv_type_uint64=yes
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26422 $as_echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26431 $as_echo "$ac_cv_type_uint64" >&6; }
26432 if test "x$ac_cv_type_uint64" = x""yes; then
26434 cat >>confdefs.h <<_ACEOF
26435 #define HAVE_UINT64 1
26442 # We also check for sig_atomic_t, which *should* be defined per ANSI
26443 # C, but is missing on some old platforms.
26444 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26445 $as_echo_n "checking for sig_atomic_t... " >&6; }
26446 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26447 $as_echo_n "(cached) " >&6
26449 ac_cv_type_sig_atomic_t=no
26450 cat >conftest.$ac_ext <<_ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 #include <signal.h>
26461 if (sizeof (sig_atomic_t))
26467 rm -f conftest.$ac_objext
26468 if { (ac_try="$ac_compile"
26469 case "(($ac_try" in
26470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26474 $as_echo "$ac_try_echo") >&5
26475 (eval "$ac_compile") 2>conftest.er1
26477 grep -v '^ *+' conftest.er1 >conftest.err
26479 cat conftest.err >&5
26480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); } && {
26482 test -z "$ac_c_werror_flag" ||
26483 test ! -s conftest.err
26484 } && test -s conftest.$ac_objext; then
26485 cat >conftest.$ac_ext <<_ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26491 #include <signal.h>
26496 if (sizeof ((sig_atomic_t)))
26502 rm -f conftest.$ac_objext
26503 if { (ac_try="$ac_compile"
26504 case "(($ac_try" in
26505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26506 *) ac_try_echo=$ac_try;;
26508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26509 $as_echo "$ac_try_echo") >&5
26510 (eval "$ac_compile") 2>conftest.er1
26512 grep -v '^ *+' conftest.er1 >conftest.err
26514 cat conftest.err >&5
26515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); } && {
26517 test -z "$ac_c_werror_flag" ||
26518 test ! -s conftest.err
26519 } && test -s conftest.$ac_objext; then
26522 $as_echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26525 ac_cv_type_sig_atomic_t=yes
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 $as_echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26538 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26539 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26540 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26542 cat >>confdefs.h <<_ACEOF
26543 #define HAVE_SIG_ATOMIC_T 1
26551 if test "$PORTNAME" != "win32"
26553 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26554 $as_echo_n "checking for POSIX signal interface... " >&6; }
26555 if test "${pgac_cv_func_posix_signals+set}" = set; then
26556 $as_echo_n "(cached) " >&6
26558 cat >conftest.$ac_ext <<_ACEOF
26561 cat confdefs.h >>conftest.$ac_ext
26562 cat >>conftest.$ac_ext <<_ACEOF
26563 /* end confdefs.h. */
26564 #include <signal.h>
26569 struct sigaction act, oact;
26570 sigemptyset(&act.sa_mask);
26571 act.sa_flags = SA_RESTART;
26572 sigaction(0, &act, &oact);
26577 rm -f conftest.$ac_objext conftest$ac_exeext
26578 if { (ac_try="$ac_link"
26579 case "(($ac_try" in
26580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26581 *) ac_try_echo=$ac_try;;
26583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26584 $as_echo "$ac_try_echo") >&5
26585 (eval "$ac_link") 2>conftest.er1
26587 grep -v '^ *+' conftest.er1 >conftest.err
26589 cat conftest.err >&5
26590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } && {
26592 test -z "$ac_c_werror_flag" ||
26593 test ! -s conftest.err
26594 } && test -s conftest$ac_exeext && {
26595 test "$cross_compiling" = yes ||
26596 $as_test_x conftest$ac_exeext
26598 pgac_cv_func_posix_signals=yes
26600 $as_echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26603 pgac_cv_func_posix_signals=no
26606 rm -rf conftest.dSYM
26607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26608 conftest$ac_exeext conftest.$ac_ext
26610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26611 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26612 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26614 cat >>confdefs.h <<\_ACEOF
26615 #define HAVE_POSIX_SIGNALS /**/
26619 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26621 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26622 { { $as_echo "$as_me:$LINENO: error:
26623 Thread-safety requires POSIX signals, which are not supported by this
26624 operating system; use --disable-thread-safety to disable thread safety." >&5
26625 $as_echo "$as_me: error:
26626 Thread-safety requires POSIX signals, which are not supported by this
26627 operating system; use --disable-thread-safety to disable thread safety." >&2;}
26628 { (exit 1); exit 1; }; }
26632 if test $ac_cv_func_fseeko = yes; then
26633 # Check whether --enable-largefile was given.
26634 if test "${enable_largefile+set}" = set; then
26635 enableval=$enable_largefile;
26638 if test "$enable_largefile" != no; then
26640 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26641 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26642 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26643 $as_echo_n "(cached) " >&6
26645 ac_cv_sys_largefile_CC=no
26646 if test "$GCC" != yes; then
26649 # IRIX 6.2 and later do not support large files by default,
26650 # so use the C compiler's -n32 option if that helps.
26651 cat >conftest.$ac_ext <<_ACEOF
26654 cat confdefs.h >>conftest.$ac_ext
26655 cat >>conftest.$ac_ext <<_ACEOF
26656 /* end confdefs.h. */
26657 #include <sys/types.h>
26658 /* Check that off_t can represent 2**63 - 1 correctly.
26659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26660 since some C++ compilers masquerading as C compilers
26661 incorrectly reject 9223372036854775807. */
26662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26664 && LARGE_OFF_T % 2147483647 == 1)
26674 rm -f conftest.$ac_objext
26675 if { (ac_try="$ac_compile"
26676 case "(($ac_try" in
26677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26678 *) ac_try_echo=$ac_try;;
26680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26681 $as_echo "$ac_try_echo") >&5
26682 (eval "$ac_compile") 2>conftest.er1
26684 grep -v '^ *+' conftest.er1 >conftest.err
26686 cat conftest.err >&5
26687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } && {
26689 test -z "$ac_c_werror_flag" ||
26690 test ! -s conftest.err
26691 } && test -s conftest.$ac_objext; then
26694 $as_echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26700 rm -f core conftest.err conftest.$ac_objext
26702 rm -f conftest.$ac_objext
26703 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26712 grep -v '^ *+' conftest.er1 >conftest.err
26714 cat conftest.err >&5
26715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } && {
26717 test -z "$ac_c_werror_flag" ||
26718 test ! -s conftest.err
26719 } && test -s conftest.$ac_objext; then
26720 ac_cv_sys_largefile_CC=' -n32'; break
26722 $as_echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26728 rm -f core conftest.err conftest.$ac_objext
26732 rm -f conftest.$ac_ext
26735 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26736 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26737 if test "$ac_cv_sys_largefile_CC" != no; then
26738 CC=$CC$ac_cv_sys_largefile_CC
26741 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26742 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26744 $as_echo_n "(cached) " >&6
26747 cat >conftest.$ac_ext <<_ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h. */
26753 #include <sys/types.h>
26754 /* Check that off_t can represent 2**63 - 1 correctly.
26755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26756 since some C++ compilers masquerading as C compilers
26757 incorrectly reject 9223372036854775807. */
26758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26760 && LARGE_OFF_T % 2147483647 == 1)
26770 rm -f conftest.$ac_objext
26771 if { (ac_try="$ac_compile"
26772 case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26777 $as_echo "$ac_try_echo") >&5
26778 (eval "$ac_compile") 2>conftest.er1
26780 grep -v '^ *+' conftest.er1 >conftest.err
26782 cat conftest.err >&5
26783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } && {
26785 test -z "$ac_c_werror_flag" ||
26786 test ! -s conftest.err
26787 } && test -s conftest.$ac_objext; then
26788 ac_cv_sys_file_offset_bits=no; break
26790 $as_echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797 cat >conftest.$ac_ext <<_ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803 #define _FILE_OFFSET_BITS 64
26804 #include <sys/types.h>
26805 /* Check that off_t can represent 2**63 - 1 correctly.
26806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26807 since some C++ compilers masquerading as C compilers
26808 incorrectly reject 9223372036854775807. */
26809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26811 && LARGE_OFF_T % 2147483647 == 1)
26821 rm -f conftest.$ac_objext
26822 if { (ac_try="$ac_compile"
26823 case "(($ac_try" in
26824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26825 *) ac_try_echo=$ac_try;;
26827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26828 $as_echo "$ac_try_echo") >&5
26829 (eval "$ac_compile") 2>conftest.er1
26831 grep -v '^ *+' conftest.er1 >conftest.err
26833 cat conftest.err >&5
26834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } && {
26836 test -z "$ac_c_werror_flag" ||
26837 test ! -s conftest.err
26838 } && test -s conftest.$ac_objext; then
26839 ac_cv_sys_file_offset_bits=64; break
26841 $as_echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26848 ac_cv_sys_file_offset_bits=unknown
26852 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26853 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26854 case $ac_cv_sys_file_offset_bits in #(
26857 cat >>confdefs.h <<_ACEOF
26858 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26863 if test $ac_cv_sys_file_offset_bits = unknown; then
26864 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26865 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26866 if test "${ac_cv_sys_large_files+set}" = set; then
26867 $as_echo_n "(cached) " >&6
26870 cat >conftest.$ac_ext <<_ACEOF
26873 cat confdefs.h >>conftest.$ac_ext
26874 cat >>conftest.$ac_ext <<_ACEOF
26875 /* end confdefs.h. */
26876 #include <sys/types.h>
26877 /* Check that off_t can represent 2**63 - 1 correctly.
26878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26879 since some C++ compilers masquerading as C compilers
26880 incorrectly reject 9223372036854775807. */
26881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26883 && LARGE_OFF_T % 2147483647 == 1)
26893 rm -f conftest.$ac_objext
26894 if { (ac_try="$ac_compile"
26895 case "(($ac_try" in
26896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26897 *) ac_try_echo=$ac_try;;
26899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26900 $as_echo "$ac_try_echo") >&5
26901 (eval "$ac_compile") 2>conftest.er1
26903 grep -v '^ *+' conftest.er1 >conftest.err
26905 cat conftest.err >&5
26906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); } && {
26908 test -z "$ac_c_werror_flag" ||
26909 test ! -s conftest.err
26910 } && test -s conftest.$ac_objext; then
26911 ac_cv_sys_large_files=no; break
26913 $as_echo "$as_me: failed program was:" >&5
26914 sed 's/^/| /' conftest.$ac_ext >&5
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920 cat >conftest.$ac_ext <<_ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26926 #define _LARGE_FILES 1
26927 #include <sys/types.h>
26928 /* Check that off_t can represent 2**63 - 1 correctly.
26929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26930 since some C++ compilers masquerading as C compilers
26931 incorrectly reject 9223372036854775807. */
26932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26934 && LARGE_OFF_T % 2147483647 == 1)
26944 rm -f conftest.$ac_objext
26945 if { (ac_try="$ac_compile"
26946 case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26951 $as_echo "$ac_try_echo") >&5
26952 (eval "$ac_compile") 2>conftest.er1
26954 grep -v '^ *+' conftest.er1 >conftest.err
26956 cat conftest.err >&5
26957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } && {
26959 test -z "$ac_c_werror_flag" ||
26960 test ! -s conftest.err
26961 } && test -s conftest.$ac_objext; then
26962 ac_cv_sys_large_files=1; break
26964 $as_echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26971 ac_cv_sys_large_files=unknown
26975 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26976 $as_echo "$ac_cv_sys_large_files" >&6; }
26977 case $ac_cv_sys_large_files in #(
26980 cat >>confdefs.h <<_ACEOF
26981 #define _LARGE_FILES $ac_cv_sys_large_files
26991 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26992 # The cast to long int works around a bug in the HP C Compiler
26993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26995 # This bug is HP SR number 8606223364.
26996 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26997 $as_echo_n "checking size of off_t... " >&6; }
26998 if test "${ac_cv_sizeof_off_t+set}" = set; then
26999 $as_echo_n "(cached) " >&6
27001 if test "$cross_compiling" = yes; then
27002 # Depending upon the size, compute the lo and hi bounds.
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 $ac_includes_default
27013 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27027 $as_echo "$ac_try_echo") >&5
27028 (eval "$ac_compile") 2>conftest.er1
27030 grep -v '^ *+' conftest.er1 >conftest.err
27032 cat conftest.err >&5
27033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } && {
27035 test -z "$ac_c_werror_flag" ||
27036 test ! -s conftest.err
27037 } && test -s conftest.$ac_objext; then
27040 cat >conftest.$ac_ext <<_ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27046 $ac_includes_default
27050 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27057 rm -f conftest.$ac_objext
27058 if { (ac_try="$ac_compile"
27059 case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27064 $as_echo "$ac_try_echo") >&5
27065 (eval "$ac_compile") 2>conftest.er1
27067 grep -v '^ *+' conftest.er1 >conftest.err
27069 cat conftest.err >&5
27070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } && {
27072 test -z "$ac_c_werror_flag" ||
27073 test ! -s conftest.err
27074 } && test -s conftest.$ac_objext; then
27075 ac_hi=$ac_mid; break
27077 $as_echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.$ac_ext >&5
27080 ac_lo=`expr $ac_mid + 1`
27081 if test $ac_lo -le $ac_mid; then
27085 ac_mid=`expr 2 '*' $ac_mid + 1`
27088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27091 $as_echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27094 cat >conftest.$ac_ext <<_ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100 $ac_includes_default
27104 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27111 rm -f conftest.$ac_objext
27112 if { (ac_try="$ac_compile"
27113 case "(($ac_try" in
27114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27115 *) ac_try_echo=$ac_try;;
27117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27118 $as_echo "$ac_try_echo") >&5
27119 (eval "$ac_compile") 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } && {
27126 test -z "$ac_c_werror_flag" ||
27127 test ! -s conftest.err
27128 } && test -s conftest.$ac_objext; then
27131 cat >conftest.$ac_ext <<_ACEOF
27134 cat confdefs.h >>conftest.$ac_ext
27135 cat >>conftest.$ac_ext <<_ACEOF
27136 /* end confdefs.h. */
27137 $ac_includes_default
27141 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27148 rm -f conftest.$ac_objext
27149 if { (ac_try="$ac_compile"
27150 case "(($ac_try" in
27151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27152 *) ac_try_echo=$ac_try;;
27154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27155 $as_echo "$ac_try_echo") >&5
27156 (eval "$ac_compile") 2>conftest.er1
27158 grep -v '^ *+' conftest.er1 >conftest.err
27160 cat conftest.err >&5
27161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } && {
27163 test -z "$ac_c_werror_flag" ||
27164 test ! -s conftest.err
27165 } && test -s conftest.$ac_objext; then
27166 ac_lo=$ac_mid; break
27168 $as_echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27171 ac_hi=`expr '(' $ac_mid ')' - 1`
27172 if test $ac_mid -le $ac_hi; then
27176 ac_mid=`expr 2 '*' $ac_mid`
27179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27182 $as_echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 # Binary search between lo and hi bounds.
27193 while test "x$ac_lo" != "x$ac_hi"; do
27194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27195 cat >conftest.$ac_ext <<_ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27201 $ac_includes_default
27205 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27212 rm -f conftest.$ac_objext
27213 if { (ac_try="$ac_compile"
27214 case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27219 $as_echo "$ac_try_echo") >&5
27220 (eval "$ac_compile") 2>conftest.er1
27222 grep -v '^ *+' conftest.er1 >conftest.err
27224 cat conftest.err >&5
27225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } && {
27227 test -z "$ac_c_werror_flag" ||
27228 test ! -s conftest.err
27229 } && test -s conftest.$ac_objext; then
27232 $as_echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.$ac_ext >&5
27235 ac_lo=`expr '(' $ac_mid ')' + 1`
27238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27241 ?*) ac_cv_sizeof_off_t=$ac_lo;;
27242 '') if test "$ac_cv_type_off_t" = yes; then
27243 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27245 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27246 See \`config.log' for more details." >&5
27247 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27248 See \`config.log' for more details." >&2;}
27249 { (exit 77); exit 77; }; }; }
27251 ac_cv_sizeof_off_t=0
27255 cat >conftest.$ac_ext <<_ACEOF
27258 cat confdefs.h >>conftest.$ac_ext
27259 cat >>conftest.$ac_ext <<_ACEOF
27260 /* end confdefs.h. */
27261 $ac_includes_default
27262 static long int longval () { return (long int) (sizeof (off_t)); }
27263 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27265 #include <stdlib.h>
27270 FILE *f = fopen ("conftest.val", "w");
27273 if (((long int) (sizeof (off_t))) < 0)
27275 long int i = longval ();
27276 if (i != ((long int) (sizeof (off_t))))
27278 fprintf (f, "%ld", i);
27282 unsigned long int i = ulongval ();
27283 if (i != ((long int) (sizeof (off_t))))
27285 fprintf (f, "%lu", i);
27287 /* Do not output a trailing newline, as this causes \r\n confusion
27288 on some platforms. */
27289 return ferror (f) || fclose (f) != 0;
27295 rm -f conftest$ac_exeext
27296 if { (ac_try="$ac_link"
27297 case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27302 $as_echo "$ac_try_echo") >&5
27303 (eval "$ac_link") 2>&5
27305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27307 { (case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27312 $as_echo "$ac_try_echo") >&5
27313 (eval "$ac_try") 2>&5
27315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_cv_sizeof_off_t=`cat conftest.val`
27319 $as_echo "$as_me: program exited with status $ac_status" >&5
27320 $as_echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27323 ( exit $ac_status )
27324 if test "$ac_cv_type_off_t" = yes; then
27325 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27327 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27328 See \`config.log' for more details." >&5
27329 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27330 See \`config.log' for more details." >&2;}
27331 { (exit 77); exit 77; }; }; }
27333 ac_cv_sizeof_off_t=0
27336 rm -rf conftest.dSYM
27337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27341 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27342 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27346 cat >>confdefs.h <<_ACEOF
27347 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27352 # If we don't have largefile support, can't handle segsize >= 2GB.
27353 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
27354 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
27355 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27356 { (exit 1); exit 1; }; }
27359 # SunOS doesn't handle negative byte comparisons properly with +/- return
27360 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27361 $as_echo_n "checking for working memcmp... " >&6; }
27362 if test "${ac_cv_func_memcmp_working+set}" = set; then
27363 $as_echo_n "(cached) " >&6
27365 if test "$cross_compiling" = yes; then
27366 ac_cv_func_memcmp_working=no
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27374 $ac_includes_default
27379 /* Some versions of memcmp are not 8-bit clean. */
27380 char c0 = '\100', c1 = '\200', c2 = '\201';
27381 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27384 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27385 or more and with at least one buffer not starting on a 4-byte boundary.
27386 William Lewis provided this test program. */
27391 for (i = 0; i < 4; i++)
27395 strcpy (a, "--------01111111");
27396 strcpy (b, "--------10000000");
27397 if (memcmp (a, b, 16) >= 0)
27407 rm -f conftest$ac_exeext
27408 if { (ac_try="$ac_link"
27409 case "(($ac_try" in
27410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27411 *) ac_try_echo=$ac_try;;
27413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27414 $as_echo "$ac_try_echo") >&5
27415 (eval "$ac_link") 2>&5
27417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27419 { (case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27424 $as_echo "$ac_try_echo") >&5
27425 (eval "$ac_try") 2>&5
27427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); }; }; then
27429 ac_cv_func_memcmp_working=yes
27431 $as_echo "$as_me: program exited with status $ac_status" >&5
27432 $as_echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27435 ( exit $ac_status )
27436 ac_cv_func_memcmp_working=no
27438 rm -rf conftest.dSYM
27439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27444 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27445 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27446 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27447 *" memcmp.$ac_objext "* ) ;;
27448 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27455 # Select semaphore implementation type.
27456 if test "$PORTNAME" != "win32"; then
27457 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27459 cat >>confdefs.h <<\_ACEOF
27460 #define USE_NAMED_POSIX_SEMAPHORES 1
27463 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27465 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27467 cat >>confdefs.h <<\_ACEOF
27468 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27471 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27474 cat >>confdefs.h <<\_ACEOF
27475 #define USE_SYSV_SEMAPHORES 1
27478 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27483 cat >>confdefs.h <<\_ACEOF
27484 #define USE_WIN32_SEMAPHORES 1
27487 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27491 # Select shared-memory implementation type.
27492 if test "$PORTNAME" != "win32"; then
27494 cat >>confdefs.h <<\_ACEOF
27495 #define USE_SYSV_SHARED_MEMORY 1
27498 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27501 cat >>confdefs.h <<\_ACEOF
27502 #define USE_WIN32_SHARED_MEMORY 1
27505 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27508 # If not set in template file, set bytes to use libc memset()
27509 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27510 MEMSET_LOOP_LIMIT=1024
27513 cat >>confdefs.h <<_ACEOF
27514 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27519 if test "$enable_nls" = yes ; then
27521 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27522 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27523 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27524 $as_echo_n "(cached) " >&6
27526 ac_func_search_save_LIBS=$LIBS
27527 cat >conftest.$ac_ext <<_ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h. */
27534 /* Override any GCC internal prototype to avoid an error.
27535 Use char because int might match the return type of a GCC
27536 builtin and then its argument prototype would still apply. */
27540 char bind_textdomain_codeset ();
27544 return bind_textdomain_codeset ();
27549 for ac_lib in '' intl; do
27550 if test -z "$ac_lib"; then
27551 ac_res="none required"
27554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (ac_try="$ac_link"
27558 case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27563 $as_echo "$ac_try_echo") >&5
27564 (eval "$ac_link") 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } && {
27571 test -z "$ac_c_werror_flag" ||
27572 test ! -s conftest.err
27573 } && test -s conftest$ac_exeext && {
27574 test "$cross_compiling" = yes ||
27575 $as_test_x conftest$ac_exeext
27577 ac_cv_search_bind_textdomain_codeset=$ac_res
27579 $as_echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27585 rm -rf conftest.dSYM
27586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27588 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27592 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27595 ac_cv_search_bind_textdomain_codeset=no
27597 rm conftest.$ac_ext
27598 LIBS=$ac_func_search_save_LIBS
27600 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27601 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27602 ac_res=$ac_cv_search_bind_textdomain_codeset
27603 if test "$ac_res" != no; then
27604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27607 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27608 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27609 { (exit 1); exit 1; }; }
27612 if test "${ac_cv_header_libintl_h+set}" = set; then
27613 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27614 $as_echo_n "checking for libintl.h... " >&6; }
27615 if test "${ac_cv_header_libintl_h+set}" = set; then
27616 $as_echo_n "(cached) " >&6
27618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27619 $as_echo "$ac_cv_header_libintl_h" >&6; }
27621 # Is the header compilable?
27622 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27623 $as_echo_n "checking libintl.h usability... " >&6; }
27624 cat >conftest.$ac_ext <<_ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h. */
27630 $ac_includes_default
27631 #include <libintl.h>
27633 rm -f conftest.$ac_objext
27634 if { (ac_try="$ac_compile"
27635 case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27640 $as_echo "$ac_try_echo") >&5
27641 (eval "$ac_compile") 2>conftest.er1
27643 grep -v '^ *+' conftest.er1 >conftest.err
27645 cat conftest.err >&5
27646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647 (exit $ac_status); } && {
27648 test -z "$ac_c_werror_flag" ||
27649 test ! -s conftest.err
27650 } && test -s conftest.$ac_objext; then
27651 ac_header_compiler=yes
27653 $as_echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27656 ac_header_compiler=no
27659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27660 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27661 $as_echo "$ac_header_compiler" >&6; }
27663 # Is the header present?
27664 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27665 $as_echo_n "checking libintl.h presence... " >&6; }
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27672 #include <libintl.h>
27674 if { (ac_try="$ac_cpp conftest.$ac_ext"
27675 case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27680 $as_echo "$ac_try_echo") >&5
27681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27683 grep -v '^ *+' conftest.er1 >conftest.err
27685 cat conftest.err >&5
27686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); } >/dev/null && {
27688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27689 test ! -s conftest.err
27691 ac_header_preproc=yes
27693 $as_echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27696 ac_header_preproc=no
27699 rm -f conftest.err conftest.$ac_ext
27700 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27701 $as_echo "$ac_header_preproc" >&6; }
27703 # So? What about this header?
27704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27706 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27707 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27708 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27709 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27710 ac_header_preproc=yes
27713 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27714 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27715 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27716 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27717 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27718 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27719 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27720 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27721 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27722 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27723 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27724 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27726 ## ---------------------------------------- ##
27727 ## Report this to pgsql-bugs@postgresql.org ##
27728 ## ---------------------------------------- ##
27730 ) | sed "s/^/$as_me: WARNING: /" >&2
27733 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27734 $as_echo_n "checking for libintl.h... " >&6; }
27735 if test "${ac_cv_header_libintl_h+set}" = set; then
27736 $as_echo_n "(cached) " >&6
27738 ac_cv_header_libintl_h=$ac_header_preproc
27740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27741 $as_echo "$ac_cv_header_libintl_h" >&6; }
27744 if test "x$ac_cv_header_libintl_h" = x""yes; then
27747 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27748 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27749 { (exit 1); exit 1; }; }
27753 for ac_prog in msgfmt
27755 # Extract the first word of "$ac_prog", so it can be a program name with args.
27756 set dummy $ac_prog; ac_word=$2
27757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27758 $as_echo_n "checking for $ac_word... " >&6; }
27759 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27760 $as_echo_n "(cached) " >&6
27762 if test -n "$MSGFMT"; then
27763 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27766 for as_dir in $PATH
27769 test -z "$as_dir" && as_dir=.
27770 for ac_exec_ext in '' $ac_executable_extensions; do
27771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27772 ac_cv_prog_MSGFMT="$ac_prog"
27773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27782 MSGFMT=$ac_cv_prog_MSGFMT
27783 if test -n "$MSGFMT"; then
27784 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27785 $as_echo "$MSGFMT" >&6; }
27787 { $as_echo "$as_me:$LINENO: result: no" >&5
27788 $as_echo "no" >&6; }
27792 test -n "$MSGFMT" && break
27795 if test -z "$MSGFMT"; then
27796 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27797 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27798 { (exit 1); exit 1; }; }
27800 for ac_prog in msgmerge
27802 # Extract the first word of "$ac_prog", so it can be a program name with args.
27803 set dummy $ac_prog; ac_word=$2
27804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27805 $as_echo_n "checking for $ac_word... " >&6; }
27806 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27807 $as_echo_n "(cached) " >&6
27809 if test -n "$MSGMERGE"; then
27810 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27813 for as_dir in $PATH
27816 test -z "$as_dir" && as_dir=.
27817 for ac_exec_ext in '' $ac_executable_extensions; do
27818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27819 ac_cv_prog_MSGMERGE="$ac_prog"
27820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27829 MSGMERGE=$ac_cv_prog_MSGMERGE
27830 if test -n "$MSGMERGE"; then
27831 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27832 $as_echo "$MSGMERGE" >&6; }
27834 { $as_echo "$as_me:$LINENO: result: no" >&5
27835 $as_echo "no" >&6; }
27839 test -n "$MSGMERGE" && break
27842 for ac_prog in xgettext
27844 # Extract the first word of "$ac_prog", so it can be a program name with args.
27845 set dummy $ac_prog; ac_word=$2
27846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27847 $as_echo_n "checking for $ac_word... " >&6; }
27848 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27849 $as_echo_n "(cached) " >&6
27851 if test -n "$XGETTEXT"; then
27852 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27855 for as_dir in $PATH
27858 test -z "$as_dir" && as_dir=.
27859 for ac_exec_ext in '' $ac_executable_extensions; do
27860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27861 ac_cv_prog_XGETTEXT="$ac_prog"
27862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27871 XGETTEXT=$ac_cv_prog_XGETTEXT
27872 if test -n "$XGETTEXT"; then
27873 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27874 $as_echo "$XGETTEXT" >&6; }
27876 { $as_echo "$as_me:$LINENO: result: no" >&5
27877 $as_echo "no" >&6; }
27881 test -n "$XGETTEXT" && break
27887 # Check for Tcl configuration script tclConfig.sh
27888 if test "$with_tcl" = yes; then
27889 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27891 # Extract the first word of "$ac_prog", so it can be a program name with args.
27892 set dummy $ac_prog; ac_word=$2
27893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27894 $as_echo_n "checking for $ac_word... " >&6; }
27895 if test "${ac_cv_path_TCLSH+set}" = set; then
27896 $as_echo_n "(cached) " >&6
27900 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27904 for as_dir in $PATH
27907 test -z "$as_dir" && as_dir=.
27908 for ac_exec_ext in '' $ac_executable_extensions; do
27909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27910 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27921 TCLSH=$ac_cv_path_TCLSH
27922 if test -n "$TCLSH"; then
27923 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27924 $as_echo "$TCLSH" >&6; }
27926 { $as_echo "$as_me:$LINENO: result: no" >&5
27927 $as_echo "no" >&6; }
27931 test -n "$TCLSH" && break
27934 if test x"$TCLSH" = x""; then
27935 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27936 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27937 { (exit 1); exit 1; }; }
27940 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27941 $as_echo_n "checking for tclConfig.sh... " >&6; }
27942 # Let user override test
27943 if test -z "$TCL_CONFIG_SH"; then
27944 pgac_test_dirs="$with_tclconfig"
27946 set X $pgac_test_dirs; shift
27947 if test $# -eq 0; then
27948 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27949 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27950 { (exit 1); exit 1; }; }
27951 set X `echo 'puts $auto_path' | $TCLSH`; shift
27955 if test -r "$pgac_dir/tclConfig.sh"; then
27956 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27962 if test -z "$TCL_CONFIG_SH"; then
27963 { $as_echo "$as_me:$LINENO: result: no" >&5
27964 $as_echo "no" >&6; }
27965 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27966 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27967 { (exit 1); exit 1; }; }
27969 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27970 $as_echo "$TCL_CONFIG_SH" >&6; }
27976 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27977 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27978 eval TCL_LIBS=\"$TCL_LIBS\"
27979 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27980 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27982 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27983 ac_save_CPPFLAGS=$CPPFLAGS
27984 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27985 if test "${ac_cv_header_tcl_h+set}" = set; then
27986 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27987 $as_echo_n "checking for tcl.h... " >&6; }
27988 if test "${ac_cv_header_tcl_h+set}" = set; then
27989 $as_echo_n "(cached) " >&6
27991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27992 $as_echo "$ac_cv_header_tcl_h" >&6; }
27994 # Is the header compilable?
27995 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27996 $as_echo_n "checking tcl.h usability... " >&6; }
27997 cat >conftest.$ac_ext <<_ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28003 $ac_includes_default
28006 rm -f conftest.$ac_objext
28007 if { (ac_try="$ac_compile"
28008 case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28013 $as_echo "$ac_try_echo") >&5
28014 (eval "$ac_compile") 2>conftest.er1
28016 grep -v '^ *+' conftest.er1 >conftest.err
28018 cat conftest.err >&5
28019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } && {
28021 test -z "$ac_c_werror_flag" ||
28022 test ! -s conftest.err
28023 } && test -s conftest.$ac_objext; then
28024 ac_header_compiler=yes
28026 $as_echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28029 ac_header_compiler=no
28032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28034 $as_echo "$ac_header_compiler" >&6; }
28036 # Is the header present?
28037 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28038 $as_echo_n "checking tcl.h presence... " >&6; }
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28047 if { (ac_try="$ac_cpp conftest.$ac_ext"
28048 case "(($ac_try" in
28049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050 *) ac_try_echo=$ac_try;;
28052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28053 $as_echo "$ac_try_echo") >&5
28054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28056 grep -v '^ *+' conftest.er1 >conftest.err
28058 cat conftest.err >&5
28059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } >/dev/null && {
28061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28062 test ! -s conftest.err
28064 ac_header_preproc=yes
28066 $as_echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_header_preproc=no
28072 rm -f conftest.err conftest.$ac_ext
28073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28074 $as_echo "$ac_header_preproc" >&6; }
28076 # So? What about this header?
28077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28079 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28080 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28081 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28082 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28083 ac_header_preproc=yes
28086 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28087 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28088 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28089 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28090 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28091 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28092 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28093 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28094 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28095 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28096 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28097 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28099 ## ---------------------------------------- ##
28100 ## Report this to pgsql-bugs@postgresql.org ##
28101 ## ---------------------------------------- ##
28103 ) | sed "s/^/$as_me: WARNING: /" >&2
28106 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28107 $as_echo_n "checking for tcl.h... " >&6; }
28108 if test "${ac_cv_header_tcl_h+set}" = set; then
28109 $as_echo_n "(cached) " >&6
28111 ac_cv_header_tcl_h=$ac_header_preproc
28113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28114 $as_echo "$ac_cv_header_tcl_h" >&6; }
28117 if test "x$ac_cv_header_tcl_h" = x""yes; then
28120 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28121 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28122 { (exit 1); exit 1; }; }
28126 CPPFLAGS=$ac_save_CPPFLAGS
28130 # Check for DocBook and tools
28132 for ac_prog in onsgmls nsgmls
28134 # Extract the first word of "$ac_prog", so it can be a program name with args.
28135 set dummy $ac_prog; ac_word=$2
28136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28137 $as_echo_n "checking for $ac_word... " >&6; }
28138 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28139 $as_echo_n "(cached) " >&6
28141 if test -n "$NSGMLS"; then
28142 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28145 for as_dir in $PATH
28148 test -z "$as_dir" && as_dir=.
28149 for ac_exec_ext in '' $ac_executable_extensions; do
28150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28151 ac_cv_prog_NSGMLS="$ac_prog"
28152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28161 NSGMLS=$ac_cv_prog_NSGMLS
28162 if test -n "$NSGMLS"; then
28163 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28164 $as_echo "$NSGMLS" >&6; }
28166 { $as_echo "$as_me:$LINENO: result: no" >&5
28167 $as_echo "no" >&6; }
28171 test -n "$NSGMLS" && break
28174 for ac_prog in openjade jade
28176 # Extract the first word of "$ac_prog", so it can be a program name with args.
28177 set dummy $ac_prog; ac_word=$2
28178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28179 $as_echo_n "checking for $ac_word... " >&6; }
28180 if test "${ac_cv_prog_JADE+set}" = set; then
28181 $as_echo_n "(cached) " >&6
28183 if test -n "$JADE"; then
28184 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28187 for as_dir in $PATH
28190 test -z "$as_dir" && as_dir=.
28191 for ac_exec_ext in '' $ac_executable_extensions; do
28192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28193 ac_cv_prog_JADE="$ac_prog"
28194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28203 JADE=$ac_cv_prog_JADE
28204 if test -n "$JADE"; then
28205 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28206 $as_echo "$JADE" >&6; }
28208 { $as_echo "$as_me:$LINENO: result: no" >&5
28209 $as_echo "no" >&6; }
28213 test -n "$JADE" && break
28217 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28218 $as_echo_n "checking for DocBook V4.2... " >&6; }
28219 if test "${pgac_cv_check_docbook+set}" = set; then
28220 $as_echo_n "(cached) " >&6
28222 cat >conftest.sgml <<EOF
28223 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28225 <title>test</title>
28227 <title>random</title>
28229 <title>testsect</title>
28236 pgac_cv_check_docbook=no
28238 if test -n "$NSGMLS"; then
28239 $NSGMLS -s conftest.sgml 1>&5 2>&1
28240 if test $? -eq 0; then
28241 pgac_cv_check_docbook=yes
28244 rm -f conftest.sgml
28246 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28247 $as_echo "$pgac_cv_check_docbook" >&6; }
28249 have_docbook=$pgac_cv_check_docbook
28252 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28253 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28254 if test "${pgac_cv_path_stylesheets+set}" = set; then
28255 $as_echo_n "(cached) " >&6
28257 if test -n "$DOCBOOKSTYLE"; then
28258 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28260 for pgac_prefix in /usr /usr/local /opt /sw; do
28261 for pgac_infix in share lib; do
28262 for pgac_postfix in \
28263 sgml/stylesheets/nwalsh-modular \
28264 sgml/stylesheets/docbook \
28265 sgml/stylesheets/dsssl/docbook \
28266 sgml/docbook-dsssl \
28267 sgml/docbook/dsssl/modular \
28268 sgml/docbook/stylesheet/dsssl/modular \
28269 sgml/docbook/dsssl-stylesheets \
28270 sgml/dsssl/docbook-dsssl-nwalsh
28272 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28273 if test -r "$pgac_candidate/html/docbook.dsl" \
28274 && test -r "$pgac_candidate/print/docbook.dsl"
28276 pgac_cv_path_stylesheets=$pgac_candidate
28285 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28287 if test -n "$DOCBOOKSTYLE"; then
28288 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28289 $as_echo "$DOCBOOKSTYLE" >&6; }
28291 { $as_echo "$as_me:$LINENO: result: no" >&5
28292 $as_echo "no" >&6; }
28294 if test -n "$DOCBOOKSTYLE"; then
28295 for ac_prog in collateindex.pl
28297 # Extract the first word of "$ac_prog", so it can be a program name with args.
28298 set dummy $ac_prog; ac_word=$2
28299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28300 $as_echo_n "checking for $ac_word... " >&6; }
28301 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28302 $as_echo_n "(cached) " >&6
28304 case $COLLATEINDEX in
28306 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28310 for as_dir in $DOCBOOKSTYLE/bin $PATH
28313 test -z "$as_dir" && as_dir=.
28314 for ac_exec_ext in '' $ac_executable_extensions; do
28315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28316 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28327 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28328 if test -n "$COLLATEINDEX"; then
28329 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28330 $as_echo "$COLLATEINDEX" >&6; }
28332 { $as_echo "$as_me:$LINENO: result: no" >&5
28333 $as_echo "no" >&6; }
28337 test -n "$COLLATEINDEX" && break
28341 for ac_prog in collateindex.pl
28343 # Extract the first word of "$ac_prog", so it can be a program name with args.
28344 set dummy $ac_prog; ac_word=$2
28345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28346 $as_echo_n "checking for $ac_word... " >&6; }
28347 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28348 $as_echo_n "(cached) " >&6
28350 case $COLLATEINDEX in
28352 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28356 for as_dir in $PATH
28359 test -z "$as_dir" && as_dir=.
28360 for ac_exec_ext in '' $ac_executable_extensions; do
28361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28362 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28373 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28374 if test -n "$COLLATEINDEX"; then
28375 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28376 $as_echo "$COLLATEINDEX" >&6; }
28378 { $as_echo "$as_me:$LINENO: result: no" >&5
28379 $as_echo "no" >&6; }
28383 test -n "$COLLATEINDEX" && break
28387 for ac_prog in xsltproc
28389 # Extract the first word of "$ac_prog", so it can be a program name with args.
28390 set dummy $ac_prog; ac_word=$2
28391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28392 $as_echo_n "checking for $ac_word... " >&6; }
28393 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28394 $as_echo_n "(cached) " >&6
28396 if test -n "$XSLTPROC"; then
28397 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28400 for as_dir in $PATH
28403 test -z "$as_dir" && as_dir=.
28404 for ac_exec_ext in '' $ac_executable_extensions; do
28405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28406 ac_cv_prog_XSLTPROC="$ac_prog"
28407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28416 XSLTPROC=$ac_cv_prog_XSLTPROC
28417 if test -n "$XSLTPROC"; then
28418 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28419 $as_echo "$XSLTPROC" >&6; }
28421 { $as_echo "$as_me:$LINENO: result: no" >&5
28422 $as_echo "no" >&6; }
28426 test -n "$XSLTPROC" && break
28429 for ac_prog in osx sgml2xml sx
28431 # Extract the first word of "$ac_prog", so it can be a program name with args.
28432 set dummy $ac_prog; ac_word=$2
28433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28434 $as_echo_n "checking for $ac_word... " >&6; }
28435 if test "${ac_cv_prog_OSX+set}" = set; then
28436 $as_echo_n "(cached) " >&6
28438 if test -n "$OSX"; then
28439 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28442 for as_dir in $PATH
28445 test -z "$as_dir" && as_dir=.
28446 for ac_exec_ext in '' $ac_executable_extensions; do
28447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28448 ac_cv_prog_OSX="$ac_prog"
28449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28458 OSX=$ac_cv_prog_OSX
28459 if test -n "$OSX"; then
28460 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28461 $as_echo "$OSX" >&6; }
28463 { $as_echo "$as_me:$LINENO: result: no" >&5
28464 $as_echo "no" >&6; }
28468 test -n "$OSX" && break
28474 # We have to run the thread test near the end so we have all our symbols
28475 # defined. Cross compiling throws a warning.
28477 if test "$enable_thread_safety" = yes; then
28478 if test "$PORTNAME" != "win32"
28480 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28481 $as_echo_n "checking thread safety of required library functions... " >&6; }
28485 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28486 LIBS="$LIBS $PTHREAD_LIBS"
28487 if test "$cross_compiling" = yes; then
28488 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28489 $as_echo "maybe" >&6; }
28490 { $as_echo "$as_me:$LINENO: WARNING:
28491 *** Skipping thread test program because of cross-compile build.
28492 *** Run the program in src/test/thread on the target machine.
28494 $as_echo "$as_me: WARNING:
28495 *** Skipping thread test program because of cross-compile build.
28496 *** Run the program in src/test/thread on the target machine.
28499 cat >conftest.$ac_ext <<_ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h. */
28505 #include "$srcdir/src/test/thread/thread_test.c"
28507 rm -f conftest$ac_exeext
28508 if { (ac_try="$ac_link"
28509 case "(($ac_try" in
28510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 *) ac_try_echo=$ac_try;;
28513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28514 $as_echo "$ac_try_echo") >&5
28515 (eval "$ac_link") 2>&5
28517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28519 { (case "(($ac_try" in
28520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521 *) ac_try_echo=$ac_try;;
28523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28524 $as_echo "$ac_try_echo") >&5
28525 (eval "$ac_try") 2>&5
28527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; }; then
28529 { $as_echo "$as_me:$LINENO: result: yes" >&5
28530 $as_echo "yes" >&6; }
28532 $as_echo "$as_me: program exited with status $ac_status" >&5
28533 $as_echo "$as_me: failed program was:" >&5
28534 sed 's/^/| /' conftest.$ac_ext >&5
28536 ( exit $ac_status )
28537 { $as_echo "$as_me:$LINENO: result: no" >&5
28538 $as_echo "no" >&6; }
28539 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28540 This platform is not thread-safe. Check the file 'config.log' or compile
28541 and run src/test/thread/thread_test for the exact reason.
28542 Use --disable-thread-safety to disable thread safety." >&5
28543 $as_echo "$as_me: error: thread test program failed
28544 This platform is not thread-safe. Check the file 'config.log' or compile
28545 and run src/test/thread/thread_test for the exact reason.
28546 Use --disable-thread-safety to disable thread safety." >&2;}
28547 { (exit 1); exit 1; }; }
28549 rm -rf conftest.dSYM
28550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28557 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28558 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28562 # If compiler will take -Wl,--as-needed (or various platform-specific
28563 # spellings thereof) then add that to LDFLAGS. This is much easier than
28564 # trying to filter LIBS to the minimum for each executable.
28565 # (Note that shared library links won't use this switch, though.)
28566 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28567 # libreadline; therefore we postpone testing it until we know what library
28568 # dependencies readline has. The test code will try to link with $LIBS.
28569 if test "$with_readline" = yes; then
28570 link_test_func=readline
28572 link_test_func=exit
28575 if test "$PORTNAME" = "darwin"; then
28576 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28577 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28578 pgac_save_LDFLAGS=$LDFLAGS
28579 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28580 if test "$cross_compiling" = yes; then
28581 LDFLAGS="$pgac_save_LDFLAGS"
28582 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28583 $as_echo "assuming no" >&6; }
28585 cat >conftest.$ac_ext <<_ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h. */
28591 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28600 rm -f conftest$ac_exeext
28601 if { (ac_try="$ac_link"
28602 case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28607 $as_echo "$ac_try_echo") >&5
28608 (eval "$ac_link") 2>&5
28610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28612 { (case "(($ac_try" in
28613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614 *) ac_try_echo=$ac_try;;
28616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28617 $as_echo "$ac_try_echo") >&5
28618 (eval "$ac_try") 2>&5
28620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); }; }; then
28622 { $as_echo "$as_me:$LINENO: result: yes" >&5
28623 $as_echo "yes" >&6; }
28625 $as_echo "$as_me: program exited with status $ac_status" >&5
28626 $as_echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28629 ( exit $ac_status )
28630 LDFLAGS="$pgac_save_LDFLAGS"
28631 { $as_echo "$as_me:$LINENO: result: no" >&5
28632 $as_echo "no" >&6; }
28634 rm -rf conftest.dSYM
28635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28640 elif test "$PORTNAME" = "openbsd"; then
28641 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28642 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28643 pgac_save_LDFLAGS=$LDFLAGS
28644 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28645 if test "$cross_compiling" = yes; then
28646 LDFLAGS="$pgac_save_LDFLAGS"
28647 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28648 $as_echo "assuming no" >&6; }
28650 cat >conftest.$ac_ext <<_ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h. */
28656 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28665 rm -f conftest$ac_exeext
28666 if { (ac_try="$ac_link"
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_link") 2>&5
28675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28677 { (case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28682 $as_echo "$ac_try_echo") >&5
28683 (eval "$ac_try") 2>&5
28685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
28687 { $as_echo "$as_me:$LINENO: result: yes" >&5
28688 $as_echo "yes" >&6; }
28690 $as_echo "$as_me: program exited with status $ac_status" >&5
28691 $as_echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28694 ( exit $ac_status )
28695 LDFLAGS="$pgac_save_LDFLAGS"
28696 { $as_echo "$as_me:$LINENO: result: no" >&5
28697 $as_echo "no" >&6; }
28699 rm -rf conftest.dSYM
28700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28706 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28707 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28708 pgac_save_LDFLAGS=$LDFLAGS
28709 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28710 if test "$cross_compiling" = yes; then
28711 LDFLAGS="$pgac_save_LDFLAGS"
28712 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28713 $as_echo "assuming no" >&6; }
28715 cat >conftest.$ac_ext <<_ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h. */
28721 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28730 rm -f conftest$ac_exeext
28731 if { (ac_try="$ac_link"
28732 case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28737 $as_echo "$ac_try_echo") >&5
28738 (eval "$ac_link") 2>&5
28740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28742 { (case "(($ac_try" in
28743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744 *) ac_try_echo=$ac_try;;
28746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28747 $as_echo "$ac_try_echo") >&5
28748 (eval "$ac_try") 2>&5
28750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
28752 { $as_echo "$as_me:$LINENO: result: yes" >&5
28753 $as_echo "yes" >&6; }
28755 $as_echo "$as_me: program exited with status $ac_status" >&5
28756 $as_echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28759 ( exit $ac_status )
28760 LDFLAGS="$pgac_save_LDFLAGS"
28761 { $as_echo "$as_me:$LINENO: result: no" >&5
28762 $as_echo "no" >&6; }
28764 rm -rf conftest.dSYM
28765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28773 # Begin output steps
28775 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28776 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28777 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28778 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28779 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28780 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28782 # Create compiler version string
28783 if test x"$GCC" = x"yes" ; then
28784 cc_string="GCC `${CC} --version | sed q`"
28785 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28786 cc_string=`${CC} -V 2>&1 | sed q`
28792 cat >>confdefs.h <<_ACEOF
28793 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28797 # Supply a numeric version string for use by 3rd party add-ons
28798 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28799 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28801 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28803 cat >>confdefs.h <<_ACEOF
28804 #define PG_VERSION_NUM $PG_VERSION_NUM
28809 # prepare build tree if outside source tree
28810 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28811 # Note 2: /bin/pwd might be better than shell's built-in at getting
28812 # a symlink-free name.
28813 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28817 if test "$no_create" != yes; then
28818 $as_echo_n "preparing build tree... " >&6
28819 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28820 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28821 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28822 $as_echo "$as_me: error: failed" >&2;}
28823 { (exit 1); exit 1; }; }
28824 { $as_echo "$as_me:$LINENO: result: done" >&5
28825 $as_echo "done" >&6; }
28831 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28834 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
28837 if test "$PORTNAME" = "win32"; then
28838 ac_config_commands="$ac_config_commands check_win32_symlinks"
28842 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28845 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28848 cat >confcache <<\_ACEOF
28849 # This file is a shell script that caches the results of configure
28850 # tests run on this system so they can be shared between configure
28851 # scripts and configure runs, see configure's option --config-cache.
28852 # It is not useful on other systems. If it contains results you don't
28853 # want to keep, you may remove or edit it.
28855 # config.status only pays attention to the cache file if you give it
28856 # the --recheck option to rerun configure.
28858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28860 # following values.
28864 # The following way of writing the cache mishandles newlines in values,
28865 # but we know of no workaround that is simple, portable, and efficient.
28866 # So, we kill variables containing newlines.
28867 # Ultrix sh set writes to stderr and can't be redirected directly,
28868 # and sets the high bit in the cache file unless we assign to the vars.
28870 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28871 eval ac_val=\$$ac_var
28875 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28876 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28879 _ | IFS | as_nl) ;; #(
28880 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28881 *) $as_unset $ac_var ;;
28887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28888 *${as_nl}ac_space=\ *)
28889 # `set' does not quote correctly, so add quotes (double-quote
28890 # substitution turns \\\\ into \\, and sed turns \\ into \).
28893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28896 # `set' quotes correctly as required by POSIX, so do not add quotes.
28897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28911 if test -w "$cache_file"; then
28912 test "x$cache_file" != "x/dev/null" &&
28913 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28914 $as_echo "$as_me: updating cache $cache_file" >&6;}
28915 cat confcache >$cache_file
28917 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28918 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28924 # Let make expand exec_prefix.
28925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28927 DEFS=-DHAVE_CONFIG_H
28931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28932 # 1. Remove the extension, and $U if already installed.
28933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28934 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28936 # will be set to the directory where LIBOBJS objects are built.
28937 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28938 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28940 LIBOBJS=$ac_libobjs
28942 LTLIBOBJS=$ac_ltlibobjs
28947 : ${CONFIG_STATUS=./config.status}
28949 ac_clean_files_save=$ac_clean_files
28950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28951 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28952 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28953 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28955 # Generated by $as_me.
28956 # Run this file to recreate the current configuration.
28957 # Compiler output produced by configure, useful for debugging
28958 # configure, is in config.log if it exists.
28961 ac_cs_recheck=false
28963 SHELL=\${CONFIG_SHELL-$SHELL}
28966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28967 ## --------------------- ##
28968 ## M4sh Initialization. ##
28969 ## --------------------- ##
28971 # Be more Bourne compatible
28972 DUALCASE=1; export DUALCASE # for MKS sh
28973 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28976 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28977 # is contrary to our usage. Disable this feature.
28978 alias -g '${1+"$@"}'='"$@"'
28979 setopt NO_GLOB_SUBST
28981 case `(set -o) 2>/dev/null` in
28982 *posix*) set -o posix ;;
28991 # Avoid depending upon Character Ranges.
28992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28995 as_cr_digits='0123456789'
28996 as_cr_alnum=$as_cr_Letters$as_cr_digits
29001 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29002 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29005 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29006 as_echo='printf %s\n'
29007 as_echo_n='printf %s'
29009 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29010 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29011 as_echo_n='/usr/ucb/echo -n'
29013 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29014 as_echo_n_body='eval
29018 expr "X$arg" : "X\\(.*\\)$as_nl";
29019 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29021 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29023 export as_echo_n_body
29024 as_echo_n='sh -c $as_echo_n_body as_echo'
29026 export as_echo_body
29027 as_echo='sh -c $as_echo_body as_echo'
29030 # The user is always right.
29031 if test "${PATH_SEPARATOR+set}" != set; then
29033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29034 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29039 # Support unset when possible.
29040 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29048 # We need space, tab and new line, in precisely that order. Quoting is
29049 # there to prevent editors from complaining about space-tab.
29050 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29051 # splitting by setting IFS to empty value.)
29054 # Find who we are. Look in the path if we contain no directory separator.
29056 *[\\/]* ) as_myself=$0 ;;
29057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29058 for as_dir in $PATH
29061 test -z "$as_dir" && as_dir=.
29062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29068 # We did not find ourselves, most probably we were run as `sh COMMAND'
29069 # in which case we are not to be found in the path.
29070 if test "x$as_myself" = x; then
29073 if test ! -f "$as_myself"; then
29074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29075 { (exit 1); exit 1; }
29078 # Work around bugs in pre-3.0 UWIN ksh.
29079 for as_var in ENV MAIL MAILPATH
29080 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29092 # Required to use basename.
29093 if expr a : '\(a\)' >/dev/null 2>&1 &&
29094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29101 as_basename=basename
29107 # Name of the executable.
29108 as_me=`$as_basename -- "$0" ||
29109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29110 X"$0" : 'X\(//\)$' \| \
29111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29113 sed '/^.*\/\([^/][^/]*\)\/*$/{
29132 as_lineno_1=$LINENO
29133 as_lineno_2=$LINENO
29134 test "x$as_lineno_1" != "x$as_lineno_2" &&
29135 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29137 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29138 # uniformly replaced by the line number. The first 'sed' inserts a
29139 # line-number line after each line using $LINENO; the second 'sed'
29140 # does the real work. The second script uses 'N' to pair each
29141 # line-number line with the line containing $LINENO, and appends
29142 # trailing '-' during substitution so that $LINENO is not a special
29143 # case at line end.
29144 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29145 # scripts with optimization help from Paolo Bonzini. Blame Lee
29146 # E. McMahon (1931-1989) for sed's syntax. :-)
29158 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29161 ' >$as_me.lineno &&
29162 chmod +x "$as_me.lineno" ||
29163 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29164 { (exit 1); exit 1; }; }
29166 # Don't try to exec as it changes $[0], causing all sort of problems
29167 # (the dirname of $[0] is not the place where we might find the
29168 # original and so on. Autoconf is especially sensitive to this).
29169 . "./$as_me.lineno"
29170 # Exit status is that of the last command.
29175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29181 ECHO_C= ECHO_N= ECHO_T=
29182 case `echo -n x` in
29184 case `echo 'x\c'` in
29185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29191 if expr a : '\(a\)' >/dev/null 2>&1 &&
29192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29198 rm -f conf$$ conf$$.exe conf$$.file
29199 if test -d conf$$.dir; then
29200 rm -f conf$$.dir/conf$$.file
29203 mkdir conf$$.dir 2>/dev/null
29205 if (echo >conf$$.file) 2>/dev/null; then
29206 if ln -s conf$$.file conf$$ 2>/dev/null; then
29208 # ... but there are two gotchas:
29209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29211 # In both cases, we have to default to `cp -p'.
29212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29214 elif ln conf$$.file conf$$ 2>/dev/null; then
29222 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29223 rmdir conf$$.dir 2>/dev/null
29225 if mkdir -p . 2>/dev/null; then
29228 test -d ./-p && rmdir ./-p
29232 if test -x / >/dev/null 2>&1; then
29233 as_test_x='test -x'
29235 if ls -dL / >/dev/null 2>&1; then
29242 if test -d "$1"; then
29248 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29249 ???[sx]*):;;*)false;;esac;fi
29253 as_executable_p=$as_test_x
29255 # Sed expression to map a string onto a valid CPP name.
29256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29258 # Sed expression to map a string onto a valid variable name.
29259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29264 # Save the log message, to keep $[0] and so on meaningful, and to
29265 # report actual input values of CONFIG_FILES etc. instead of their
29266 # values after options handling.
29268 This file was extended by PostgreSQL $as_me 8.5devel, which was
29269 generated by GNU Autoconf 2.63. Invocation command line was
29271 CONFIG_FILES = $CONFIG_FILES
29272 CONFIG_HEADERS = $CONFIG_HEADERS
29273 CONFIG_LINKS = $CONFIG_LINKS
29274 CONFIG_COMMANDS = $CONFIG_COMMANDS
29277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29282 case $ac_config_files in *"
29283 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29286 case $ac_config_headers in *"
29287 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29292 # Files that config.status was made for.
29293 config_files="$ac_config_files"
29294 config_headers="$ac_config_headers"
29295 config_links="$ac_config_links"
29296 config_commands="$ac_config_commands"
29300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29302 \`$as_me' instantiates files from templates according to the
29303 current configuration.
29305 Usage: $0 [OPTION]... [FILE]...
29307 -h, --help print this help, then exit
29308 -V, --version print version number and configuration settings, then exit
29309 -q, --quiet, --silent
29310 do not print progress messages
29311 -d, --debug don't remove temporary files
29312 --recheck update $as_me by reconfiguring in the same conditions
29313 --file=FILE[:TEMPLATE]
29314 instantiate the configuration file FILE
29315 --header=FILE[:TEMPLATE]
29316 instantiate the configuration header FILE
29318 Configuration files:
29321 Configuration headers:
29324 Configuration links:
29327 Configuration commands:
29330 Report bugs to <bug-autoconf@gnu.org>."
29333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29335 PostgreSQL config.status 8.5devel
29336 configured by $0, generated by GNU Autoconf 2.63,
29337 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29339 Copyright (C) 2008 Free Software Foundation, Inc.
29340 This config.status script is free software; the Free Software Foundation
29341 gives unlimited permission to copy, distribute and modify it."
29347 test -n "\$AWK" || AWK=awk
29350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29351 # The default lists apply if the user does not specify any file.
29357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29369 # Handling of the options.
29370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29373 $as_echo "$ac_cs_version"; exit ;;
29374 --debug | --debu | --deb | --de | --d | -d )
29376 --file | --fil | --fi | --f )
29379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29381 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29382 ac_need_defaults=false;;
29383 --header | --heade | --head | --hea )
29386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29388 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29389 ac_need_defaults=false;;
29391 # Conflict between --help and --header
29392 { $as_echo "$as_me: error: ambiguous option: $1
29393 Try \`$0 --help' for more information." >&2
29394 { (exit 1); exit 1; }; };;
29395 --help | --hel | -h )
29396 $as_echo "$ac_cs_usage"; exit ;;
29397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29401 # This is an error.
29402 -*) { $as_echo "$as_me: error: unrecognized option: $1
29403 Try \`$0 --help' for more information." >&2
29404 { (exit 1); exit 1; }; } ;;
29406 *) ac_config_targets="$ac_config_targets $1"
29407 ac_need_defaults=false ;;
29413 ac_configure_extra_args=
29415 if $ac_cs_silent; then
29417 ac_configure_extra_args="$ac_configure_extra_args --silent"
29421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29422 if \$ac_cs_recheck; then
29423 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29426 CONFIG_SHELL='$SHELL'
29427 export CONFIG_SHELL
29432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29437 ## Running $as_me. ##
29443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29448 # Handling of arguments.
29449 for ac_config_target in $ac_config_targets
29451 case $ac_config_target in
29452 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29453 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29454 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29455 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29456 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29457 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29458 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29459 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29460 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29461 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29462 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29463 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29465 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29466 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29467 { (exit 1); exit 1; }; };;
29472 # If the user did not use the arguments to specify the items to instantiate,
29473 # then the envvar interface is used. Set only those that are not.
29474 # We use the long form for the default assignment because of an extremely
29475 # bizarre bug on SunOS 4.1.3.
29476 if $ac_need_defaults; then
29477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29479 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29483 # Have a temporary directory for convenience. Make it in the build tree
29484 # simply because there is no reason against having it here, and in addition,
29485 # creating and moving files from /tmp can sometimes cause problems.
29486 # Hook for its removal unless debugging.
29487 # Note that there is a small window in which the directory will not be cleaned:
29488 # after its creation but before its name has been assigned to `$tmp'.
29492 trap 'exit_status=$?
29493 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29495 trap '{ (exit 1); exit 1; }' 1 2 13 15
29497 # Create a (secure) tmp directory for tmp files.
29500 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29501 test -n "$tmp" && test -d "$tmp"
29504 tmp=./conf$$-$RANDOM
29505 (umask 077 && mkdir "$tmp")
29508 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29509 { (exit 1); exit 1; }
29512 # Set up the scripts for CONFIG_FILES section.
29513 # No need to generate them if there are no CONFIG_FILES.
29514 # This happens for instance with `./config.status config.h'.
29515 if test -n "$CONFIG_FILES"; then
29519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29523 ac_cs_awk_cr=$ac_cr
29526 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29531 echo "cat >conf$$subs.awk <<_ACEOF" &&
29532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29534 } >conf$$subs.sh ||
29535 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29536 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29537 { (exit 1); exit 1; }; }
29538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29540 for ac_last_try in false false false false false :; do
29541 . ./conf$$subs.sh ||
29542 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29543 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29544 { (exit 1); exit 1; }; }
29546 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29547 if test $ac_delim_n = $ac_delim_num; then
29549 elif $ac_last_try; then
29550 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29551 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29552 { (exit 1); exit 1; }; }
29554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29557 rm -f conf$$subs.sh
29559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29560 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29564 s/^/S["/; s/!.*/"]=/
29574 s/\(.\{148\}\).*/\1/
29576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29588 s/\(.\{148\}\).*/\1/
29590 s/["\\]/\\&/g; s/^/"/; s/$/"/
29594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29599 ' <conf$$subs.awk | sed '
29604 ' >>$CONFIG_STATUS || ac_write_fail=1
29605 rm -f conf$$subs.awk
29606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29608 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29609 for (key in S) S_is_set[key] = 1
29615 nfields = split(line, field, "@")
29617 len = length(field[1])
29618 for (i = 2; i < nfields; i++) {
29620 keylen = length(key)
29621 if (S_is_set[key]) {
29623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29624 len += length(value) + length(field[++i])
29635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29640 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29641 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29642 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29643 { (exit 1); exit 1; }; }
29646 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29647 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29648 # trailing colons and then remove the whole line if VPATH becomes empty
29649 # (actually we leave an empty line to preserve line numbers).
29650 if test "x$srcdir" = x.; then
29651 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29652 s/:*\$(srcdir):*/:/
29653 s/:*\${srcdir}:*/:/
29655 s/^\([^=]*=[ ]*\):*/\1/
29661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29662 fi # test -n "$CONFIG_FILES"
29664 # Set up the scripts for CONFIG_HEADERS section.
29665 # No need to generate them if there are no CONFIG_HEADERS.
29666 # This happens for instance with `./config.status Makefile'.
29667 if test -n "$CONFIG_HEADERS"; then
29668 cat >"$tmp/defines.awk" <<\_ACAWK ||
29672 # Transform confdefs.h into an awk script `defines.awk', embedded as
29673 # here-document in config.status, that substitutes the proper values into
29674 # config.h.in to produce config.h.
29676 # Create a delimiter string that does not exist in confdefs.h, to ease
29677 # handling of long lines.
29679 for ac_last_try in false false :; do
29680 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29681 if test -z "$ac_t"; then
29683 elif $ac_last_try; then
29684 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29685 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29686 { (exit 1); exit 1; }; }
29688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29692 # For the awk script, D is an array of macro values keyed by name,
29693 # likewise P contains macro parameters if any. Preserve backslash
29694 # newline sequences.
29696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29698 s/.\{148\}/&'"$ac_delim"'/g
29701 s/^[ ]*#[ ]*define[ ][ ]*/ /
29708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29715 D["\1"]=" \3\\\\\\n"\\/p
29717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29722 s/.\{148\}/&'"$ac_delim"'/g
29727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29732 ' <confdefs.h | sed '
29733 s/'"$ac_delim"'/"\\\
29734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29737 for (key in D) D_is_set[key] = 1
29740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29742 split(line, arg, " ")
29743 if (arg[1] == "#") {
29747 defundef = substr(arg[1], 2)
29750 split(mac1, mac2, "(") #)
29752 prefix = substr(line, 1, index(line, defundef) - 1)
29753 if (D_is_set[macro]) {
29754 # Preserve the white space surrounding the "#".
29755 print prefix "define", macro P[macro] D[macro]
29758 # Replace #undef with comments. This is necessary, for example,
29759 # in the case of _POSIX_SOURCE, which is predefined and required
29760 # on some systems where configure will not decide to define it.
29761 if (defundef == "undef") {
29762 print "/*", prefix defundef, macro, "*/"
29770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29771 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29772 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29773 { (exit 1); exit 1; }; }
29774 fi # test -n "$CONFIG_HEADERS"
29777 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29782 :[FHLC]) ac_mode=$ac_tag; continue;;
29784 case $ac_mode$ac_tag in
29786 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29787 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29788 { (exit 1); exit 1; }; };;
29789 :[FH]-) ac_tag=-:-;;
29790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29807 -) ac_f="$tmp/stdin";;
29808 *) # Look for the file first in the build tree, then in the source tree
29809 # (if the path is not absolute). The absolute path cannot be DOS-style,
29810 # because $ac_f cannot contain `:'.
29814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29816 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29817 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29818 { (exit 1); exit 1; }; };;
29820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29821 ac_file_inputs="$ac_file_inputs '$ac_f'"
29824 # Let's still pretend it is `configure' which instantiates (i.e., don't
29825 # use $as_me), people would be surprised to read:
29826 # /* config.h. Generated by config.status. */
29827 configure_input='Generated from '`
29828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29830 if test x"$ac_file" != x-; then
29831 configure_input="$ac_file. $configure_input"
29832 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29833 $as_echo "$as_me: creating $ac_file" >&6;}
29835 # Neutralize special characters interpreted by sed in replacement strings.
29836 case $configure_input in #(
29837 *\&* | *\|* | *\\* )
29838 ac_sed_conf_input=`$as_echo "$configure_input" |
29839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29840 *) ac_sed_conf_input=$configure_input;;
29844 *:-:* | *:-) cat >"$tmp/stdin" \
29845 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29846 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29847 { (exit 1); exit 1; }; } ;;
29852 ac_dir=`$as_dirname -- "$ac_file" ||
29853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29854 X"$ac_file" : 'X\(//\)[^/]' \| \
29855 X"$ac_file" : 'X\(//\)$' \| \
29856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29857 $as_echo X"$ac_file" |
29858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29862 /^X\(\/\/\)[^/].*/{
29877 -*) as_dir=./$as_dir;;
29879 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29884 *) as_qdir=$as_dir;;
29886 as_dirs="'$as_qdir' $as_dirs"
29887 as_dir=`$as_dirname -- "$as_dir" ||
29888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29889 X"$as_dir" : 'X\(//\)[^/]' \| \
29890 X"$as_dir" : 'X\(//\)$' \| \
29891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29892 $as_echo X"$as_dir" |
29893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29897 /^X\(\/\/\)[^/].*/{
29910 test -d "$as_dir" && break
29912 test -z "$as_dirs" || eval "mkdir $as_dirs"
29913 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29914 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29915 { (exit 1); exit 1; }; }; }
29919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29922 # A ".." for each directory in $ac_dir_suffix.
29923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29924 case $ac_top_builddir_sub in
29925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29929 ac_abs_top_builddir=$ac_pwd
29930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29931 # for backward compatibility:
29932 ac_top_builddir=$ac_top_build_prefix
29935 .) # We are building in place.
29937 ac_top_srcdir=$ac_top_builddir_sub
29938 ac_abs_top_srcdir=$ac_pwd ;;
29939 [\\/]* | ?:[\\/]* ) # Absolute name.
29940 ac_srcdir=$srcdir$ac_dir_suffix;
29941 ac_top_srcdir=$srcdir
29942 ac_abs_top_srcdir=$srcdir ;;
29943 *) # Relative name.
29944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29945 ac_top_srcdir=$ac_top_build_prefix$srcdir
29946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29957 ac_MKDIR_P=$MKDIR_P
29959 [\\/$]* | ?:[\\/]* ) ;;
29960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29965 # If the template does not know about datarootdir, expand it.
29966 # FIXME: This hack should be removed a few years after 2.60.
29967 ac_datarootdir_hack=; ac_datarootdir_seen=
29980 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29981 *datarootdir*) ac_datarootdir_seen=yes;;
29982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29983 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29984 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29987 ac_datarootdir_hack='
29988 s&@datadir@&$datadir&g
29989 s&@docdir@&$docdir&g
29990 s&@infodir@&$infodir&g
29991 s&@localedir@&$localedir&g
29992 s&@mandir@&$mandir&g
29993 s&\\\${datarootdir}&$datarootdir&g' ;;
29997 # Neutralize VPATH when `$srcdir' = `.'.
29998 # Shell code in configure.ac might set extrasub.
29999 # FIXME: do we really want to maintain this feature?
30000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30001 ac_sed_extra="$ac_vpsub
30004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30007 s|@configure_input@|$ac_sed_conf_input|;t t
30008 s&@top_builddir@&$ac_top_builddir_sub&;t t
30009 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30010 s&@srcdir@&$ac_srcdir&;t t
30011 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30012 s&@top_srcdir@&$ac_top_srcdir&;t t
30013 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30014 s&@builddir@&$ac_builddir&;t t
30015 s&@abs_builddir@&$ac_abs_builddir&;t t
30016 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30018 $ac_datarootdir_hack
30020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30021 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30022 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30023 { (exit 1); exit 1; }; }
30025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30026 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30028 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30029 which seems to be undefined. Please make sure it is defined." >&5
30030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30031 which seems to be undefined. Please make sure it is defined." >&2;}
30035 -) cat "$tmp/out" && rm -f "$tmp/out";;
30036 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30038 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30039 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30040 { (exit 1); exit 1; }; }
30046 if test x"$ac_file" != x-; then
30048 $as_echo "/* $configure_input */" \
30049 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30050 } >"$tmp/config.h" \
30051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30053 { (exit 1); exit 1; }; }
30054 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30055 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30056 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30059 mv "$tmp/config.h" "$ac_file" \
30060 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30061 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30062 { (exit 1); exit 1; }; }
30065 $as_echo "/* $configure_input */" \
30066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30067 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30068 $as_echo "$as_me: error: could not create -" >&2;}
30069 { (exit 1); exit 1; }; }
30077 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30080 # Prefer the file from the source tree if names are identical.
30081 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30082 ac_source=$srcdir/$ac_source
30085 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30086 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30088 if test ! -r "$ac_source"; then
30089 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30090 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30091 { (exit 1); exit 1; }; }
30095 # Try a relative symlink, then a hard link, then a copy.
30097 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30098 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30100 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30101 ln "$ac_source" "$ac_file" 2>/dev/null ||
30102 cp -p "$ac_source" "$ac_file" ||
30103 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30104 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30105 { (exit 1); exit 1; }; }
30108 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30109 $as_echo "$as_me: executing $ac_file commands" >&6;}
30114 case $ac_file$ac_mode in
30115 "check_win32_symlinks":C)
30116 # Links sometimes fail undetected on Mingw -
30117 # so here we detect it and warn the user
30118 for FILE in $CONFIG_LINKS
30120 # test -e works for symlinks in the MinGW console
30121 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30122 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30125 "src/include/pg_config.h":H)
30126 # Update timestamp for pg_config.h (see Makefile.global)
30127 echo >src/include/stamp-h
30129 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30135 { (exit 0); exit 0; }
30137 chmod +x $CONFIG_STATUS
30138 ac_clean_files=$ac_clean_files_save
30140 test $ac_write_fail = 0 ||
30141 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30142 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30143 { (exit 1); exit 1; }; }
30146 # configure is writing to config.log, and then calls config.status.
30147 # config.status does its own redirection, appending to config.log.
30148 # Unfortunately, on DOS this fails, as config.log is still kept open
30149 # by configure, so config.status won't be able to write to it; its
30150 # output is simply discarded. So we exec the FD to /dev/null,
30151 # effectively closing config.log, so it can be properly (re)opened and
30152 # appended to by config.status. When coming back to configure, we
30153 # need to make the FD available again.
30154 if test "$no_create" != yes; then
30156 ac_config_status_args=
30157 test "$silent" = yes &&
30158 ac_config_status_args="$ac_config_status_args --quiet"
30160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30163 # would make configure fail if this is the last instruction.
30164 $ac_cs_success || { (exit 1); exit 1; }
30166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30167 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}