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-2009, 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-2009, 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 struct cmsgcred" >&5
16030 $as_echo_n "checking for struct cmsgcred... " >&6; }
16031 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16034 ac_cv_type_struct_cmsgcred=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 #include <sys/param.h>
16042 #include <sys/types.h>
16043 #include <sys/socket.h>
16044 #include <sys/ucred.h>
16049 if (sizeof (struct cmsgcred))
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16062 $as_echo "$ac_try_echo") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16065 grep -v '^ *+' conftest.er1 >conftest.err
16067 cat conftest.err >&5
16068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <sys/param.h>
16080 #include <sys/types.h>
16081 #include <sys/socket.h>
16082 #include <sys/ucred.h>
16087 if (sizeof ((struct cmsgcred)))
16093 rm -f conftest.$ac_objext
16094 if { (ac_try="$ac_compile"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16100 $as_echo "$ac_try_echo") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16103 grep -v '^ *+' conftest.er1 >conftest.err
16105 cat conftest.err >&5
16106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } && {
16108 test -z "$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 } && test -s conftest.$ac_objext; then
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 ac_cv_type_struct_cmsgcred=yes
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16130 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16131 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_CMSGCRED 1
16139 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16140 $as_echo_n "checking for struct fcred... " >&6; }
16141 if test "${ac_cv_type_struct_fcred+set}" = set; then
16142 $as_echo_n "(cached) " >&6
16144 ac_cv_type_struct_fcred=no
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 #include <sys/param.h>
16152 #include <sys/types.h>
16153 #include <sys/socket.h>
16154 #include <sys/ucred.h>
16159 if (sizeof (struct fcred))
16165 rm -f conftest.$ac_objext
16166 if { (ac_try="$ac_compile"
16167 case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173 (eval "$ac_compile") 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest.$ac_objext; then
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <sys/param.h>
16190 #include <sys/types.h>
16191 #include <sys/socket.h>
16192 #include <sys/ucred.h>
16197 if (sizeof ((struct fcred)))
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
16205 case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16210 $as_echo "$ac_try_echo") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest.$ac_objext; then
16223 $as_echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 ac_cv_type_struct_fcred=yes
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 $as_echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16240 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16241 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define HAVE_STRUCT_FCRED 1
16249 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16250 $as_echo_n "checking for struct sockcred... " >&6; }
16251 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16252 $as_echo_n "(cached) " >&6
16254 ac_cv_type_struct_sockcred=no
16255 cat >conftest.$ac_ext <<_ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 #include <sys/param.h>
16262 #include <sys/types.h>
16263 #include <sys/socket.h>
16264 #include <sys/ucred.h>
16269 if (sizeof (struct sockcred))
16275 rm -f conftest.$ac_objext
16276 if { (ac_try="$ac_compile"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16282 $as_echo "$ac_try_echo") >&5
16283 (eval "$ac_compile") 2>conftest.er1
16285 grep -v '^ *+' conftest.er1 >conftest.err
16287 cat conftest.err >&5
16288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } && {
16290 test -z "$ac_c_werror_flag" ||
16291 test ! -s conftest.err
16292 } && test -s conftest.$ac_objext; then
16293 cat >conftest.$ac_ext <<_ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <sys/param.h>
16300 #include <sys/types.h>
16301 #include <sys/socket.h>
16302 #include <sys/ucred.h>
16307 if (sizeof ((struct sockcred)))
16313 rm -f conftest.$ac_objext
16314 if { (ac_try="$ac_compile"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16320 $as_echo "$ac_try_echo") >&5
16321 (eval "$ac_compile") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } && {
16328 test -z "$ac_c_werror_flag" ||
16329 test ! -s conftest.err
16330 } && test -s conftest.$ac_objext; then
16333 $as_echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_cv_type_struct_sockcred=yes
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 $as_echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16349 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16350 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16351 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_STRUCT_SOCKCRED 1
16361 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16362 $as_echo_n "checking for struct option... " >&6; }
16363 if test "${ac_cv_type_struct_option+set}" = set; then
16364 $as_echo_n "(cached) " >&6
16366 ac_cv_type_struct_option=no
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 #ifdef HAVE_GETOPT_H
16374 #include <getopt.h>
16380 if (sizeof (struct option))
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16393 $as_echo "$ac_try_echo") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } && {
16401 test -z "$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16403 } && test -s conftest.$ac_objext; then
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #ifdef HAVE_GETOPT_H
16411 #include <getopt.h>
16417 if (sizeof ((struct option)))
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_compile") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest.$ac_objext; then
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_cv_type_struct_option=yes
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 $as_echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16460 $as_echo "$ac_cv_type_struct_option" >&6; }
16461 if test "x$ac_cv_type_struct_option" = x""yes; then
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_STRUCT_OPTION 1
16471 if test "$with_zlib" = yes; then
16472 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16473 # did not). While we could work around the lack of z_streamp, it
16474 # seems unwise to encourage people to use such old zlib versions...
16475 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16476 $as_echo_n "checking for z_streamp... " >&6; }
16477 if test "${ac_cv_type_z_streamp+set}" = set; then
16478 $as_echo_n "(cached) " >&6
16480 ac_cv_type_z_streamp=no
16481 cat >conftest.$ac_ext <<_ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16492 if (sizeof (z_streamp))
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505 $as_echo "$ac_try_echo") >&5
16506 (eval "$ac_compile") 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } && {
16513 test -z "$ac_c_werror_flag" ||
16514 test ! -s conftest.err
16515 } && test -s conftest.$ac_objext; then
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16527 if (sizeof ((z_streamp)))
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
16535 case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest.$ac_objext; then
16553 $as_echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 ac_cv_type_z_streamp=yes
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16570 $as_echo "$ac_cv_type_z_streamp" >&6; }
16571 if test "x$ac_cv_type_z_streamp" = x""yes; then
16574 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16575 Use --without-zlib to disable zlib support." >&5
16576 $as_echo "$as_me: error: zlib version is too old
16577 Use --without-zlib to disable zlib support." >&2;}
16578 { (exit 1); exit 1; }; }
16583 if test "$with_krb5" = yes; then
16584 # Check for differences between MIT and Heimdal (KTH) releases
16585 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16586 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16587 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16588 $as_echo_n "(cached) " >&6
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16601 static krb5_ticket ac_aggr;
16602 if (ac_aggr.enc_part2)
16608 rm -f conftest.$ac_objext
16609 if { (ac_try="$ac_compile"
16610 case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16615 $as_echo "$ac_try_echo") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1 >conftest.err
16620 cat conftest.err >&5
16621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest.$ac_objext; then
16626 ac_cv_member_krb5_ticket_enc_part2=yes
16628 $as_echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 cat >conftest.$ac_ext <<_ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16642 static krb5_ticket ac_aggr;
16643 if (sizeof ac_aggr.enc_part2)
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest.$ac_objext; then
16667 ac_cv_member_krb5_ticket_enc_part2=yes
16669 $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_member_krb5_ticket_enc_part2=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16681 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16682 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_KRB5_TICKET_ENC_PART2 1
16690 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16691 $as_echo_n "checking for krb5_ticket.client... " >&6; }
16692 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16693 $as_echo_n "(cached) " >&6
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16706 static krb5_ticket ac_aggr;
16707 if (ac_aggr.client)
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16720 $as_echo "$ac_try_echo") >&5
16721 (eval "$ac_compile") 2>conftest.er1
16723 grep -v '^ *+' conftest.er1 >conftest.err
16725 cat conftest.err >&5
16726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } && {
16728 test -z "$ac_c_werror_flag" ||
16729 test ! -s conftest.err
16730 } && test -s conftest.$ac_objext; then
16731 ac_cv_member_krb5_ticket_client=yes
16733 $as_echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16747 static krb5_ticket ac_aggr;
16748 if (sizeof ac_aggr.client)
16754 rm -f conftest.$ac_objext
16755 if { (ac_try="$ac_compile"
16756 case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16761 $as_echo "$ac_try_echo") >&5
16762 (eval "$ac_compile") 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } && {
16769 test -z "$ac_c_werror_flag" ||
16770 test ! -s conftest.err
16771 } && test -s conftest.$ac_objext; then
16772 ac_cv_member_krb5_ticket_client=yes
16774 $as_echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_cv_member_krb5_ticket_client=no
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16786 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
16787 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_KRB5_TICKET_CLIENT 1
16795 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16796 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16797 { (exit 1); exit 1; }; }
16802 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16803 $as_echo_n "checking for krb5_error.text.data... " >&6; }
16804 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16805 $as_echo_n "(cached) " >&6
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16818 static krb5_error ac_aggr;
16819 if (ac_aggr.text.data)
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest.$ac_objext; then
16843 ac_cv_member_krb5_error_text_data=yes
16845 $as_echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16859 static krb5_error ac_aggr;
16860 if (sizeof ac_aggr.text.data)
16866 rm -f conftest.$ac_objext
16867 if { (ac_try="$ac_compile"
16868 case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16873 $as_echo "$ac_try_echo") >&5
16874 (eval "$ac_compile") 2>conftest.er1
16876 grep -v '^ *+' conftest.er1 >conftest.err
16878 cat conftest.err >&5
16879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } && {
16881 test -z "$ac_c_werror_flag" ||
16882 test ! -s conftest.err
16883 } && test -s conftest.$ac_objext; then
16884 ac_cv_member_krb5_error_text_data=yes
16886 $as_echo "$as_me: failed program was:" >&5
16887 sed 's/^/| /' conftest.$ac_ext >&5
16889 ac_cv_member_krb5_error_text_data=no
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16898 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
16899 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
16901 cat >>confdefs.h <<_ACEOF
16902 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16907 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16908 $as_echo_n "checking for krb5_error.e_data... " >&6; }
16909 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16910 $as_echo_n "(cached) " >&6
16912 cat >conftest.$ac_ext <<_ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16923 static krb5_error ac_aggr;
16924 if (ac_aggr.e_data)
16930 rm -f conftest.$ac_objext
16931 if { (ac_try="$ac_compile"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16937 $as_echo "$ac_try_echo") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest.$ac_objext; then
16948 ac_cv_member_krb5_error_e_data=yes
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 cat >conftest.$ac_ext <<_ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16964 static krb5_error ac_aggr;
16965 if (sizeof ac_aggr.e_data)
16971 rm -f conftest.$ac_objext
16972 if { (ac_try="$ac_compile"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16978 $as_echo "$ac_try_echo") >&5
16979 (eval "$ac_compile") 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest.$ac_objext; then
16989 ac_cv_member_krb5_error_e_data=yes
16991 $as_echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 ac_cv_member_krb5_error_e_data=no
16997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17002 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17003 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17004 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_KRB5_ERROR_E_DATA 1
17012 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17013 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17014 { (exit 1); exit 1; }; }
17020 # Win32 requires headers to be loaded for __stdcall, so can't use
17021 # AC_CHECK_FUNCS here.
17022 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17023 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17024 cat >conftest.$ac_ext <<_ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17034 krb5_free_unparsed_name(NULL,NULL);
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17046 $as_echo "$ac_try_echo") >&5
17047 (eval "$ac_link") 2>conftest.er1
17049 grep -v '^ *+' conftest.er1 >conftest.err
17051 cat conftest.err >&5
17052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } && {
17054 test -z "$ac_c_werror_flag" ||
17055 test ! -s conftest.err
17056 } && test -s conftest$ac_exeext && {
17057 test "$cross_compiling" = yes ||
17058 $as_test_x conftest$ac_exeext
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17065 { $as_echo "$as_me:$LINENO: result: yes" >&5
17066 $as_echo "yes" >&6; }
17068 $as_echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 { $as_echo "$as_me:$LINENO: result: no" >&5
17072 $as_echo "no" >&6; }
17075 rm -rf conftest.dSYM
17076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17077 conftest$ac_exeext conftest.$ac_ext
17082 ## Functions, global variables
17085 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17086 $as_echo_n "checking for int timezone... " >&6; }
17087 if test "${pgac_cv_var_int_timezone+set}" = set; then
17088 $as_echo_n "(cached) " >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17102 res = timezone / 60;
17104 res = _timezone / 60;
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17117 $as_echo "$ac_try_echo") >&5
17118 (eval "$ac_link") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1 >conftest.err
17122 cat conftest.err >&5
17123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest$ac_exeext && {
17128 test "$cross_compiling" = yes ||
17129 $as_test_x conftest$ac_exeext
17131 pgac_cv_var_int_timezone=yes
17133 $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 pgac_cv_var_int_timezone=no
17139 rm -rf conftest.dSYM
17140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17141 conftest$ac_exeext conftest.$ac_ext
17143 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17144 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17145 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_INT_TIMEZONE /**/
17152 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17153 $as_echo_n "checking types of arguments for accept()... " >&6; }
17154 if test "${ac_cv_func_accept_return+set}" = set; then
17155 $as_echo_n "(cached) " >&6
17157 if test "${ac_cv_func_accept_arg1+set}" = set; then
17158 $as_echo_n "(cached) " >&6
17160 if test "${ac_cv_func_accept_arg2+set}" = set; then
17161 $as_echo_n "(cached) " >&6
17163 if test "${ac_cv_func_accept_arg3+set}" = set; then
17164 $as_echo_n "(cached) " >&6
17166 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17167 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17168 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17169 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 #ifdef HAVE_SYS_TYPES_H
17177 #include <sys/types.h>
17179 #ifdef HAVE_SYS_SOCKET_H
17180 #include <sys/socket.h>
17182 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 ac_not_found=no; break 4
17211 $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 if test "$ac_not_found" = yes; then
17223 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17224 $as_echo "$as_me: error: could not determine argument types" >&2;}
17225 { (exit 1); exit 1; }; }
17227 if test "$ac_cv_func_accept_arg3" = "void"; then
17228 ac_cv_func_accept_arg3=int
17238 { $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
17239 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17241 cat >>confdefs.h <<_ACEOF
17242 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17246 cat >>confdefs.h <<_ACEOF
17247 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17251 cat >>confdefs.h <<_ACEOF
17252 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17256 cat >>confdefs.h <<_ACEOF
17257 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17261 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17262 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17263 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17264 $as_echo_n "(cached) " >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 #include <sys/time.h>
17276 struct timeval *tp;
17277 struct timezone *tzp;
17278 gettimeofday(tp,tzp);
17283 rm -f conftest.$ac_objext
17284 if { (ac_try="$ac_compile"
17285 case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17290 $as_echo "$ac_try_echo") >&5
17291 (eval "$ac_compile") 2>conftest.er1
17293 grep -v '^ *+' conftest.er1 >conftest.err
17295 cat conftest.err >&5
17296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } && {
17298 test -z "$ac_c_werror_flag" ||
17299 test ! -s conftest.err
17300 } && test -s conftest.$ac_objext; then
17301 pgac_cv_func_gettimeofday_1arg=no
17303 $as_echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 pgac_cv_func_gettimeofday_1arg=yes
17309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17312 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17313 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17315 cat >>confdefs.h <<\_ACEOF
17316 #define GETTIMEOFDAY_1ARG /**/
17345 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
17347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17348 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17349 $as_echo_n "checking for $ac_func... " >&6; }
17350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17351 $as_echo_n "(cached) " >&6
17353 cat >conftest.$ac_ext <<_ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17361 #define $ac_func innocuous_$ac_func
17363 /* System header to define __stub macros and hopefully few prototypes,
17364 which can conflict with char $ac_func (); below.
17365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17366 <limits.h> exists even on freestanding compilers. */
17369 # include <limits.h>
17371 # include <assert.h>
17376 /* Override any GCC internal prototype to avoid an error.
17377 Use char because int might match the return type of a GCC
17378 builtin and then its argument prototype would still apply. */
17383 /* The GNU C library defines this for functions which it implements
17384 to always fail with ENOSYS. Some functions are actually named
17385 something starting with __ and the normal name is an alias. */
17386 #if defined __stub_$ac_func || defined __stub___$ac_func
17393 return $ac_func ();
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (ac_try="$ac_link"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17405 $as_echo "$ac_try_echo") >&5
17406 (eval "$ac_link") 2>conftest.er1
17408 grep -v '^ *+' conftest.er1 >conftest.err
17410 cat conftest.err >&5
17411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && {
17413 test -z "$ac_c_werror_flag" ||
17414 test ! -s conftest.err
17415 } && test -s conftest$ac_exeext && {
17416 test "$cross_compiling" = yes ||
17417 $as_test_x conftest$ac_exeext
17419 eval "$as_ac_var=yes"
17421 $as_echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 eval "$as_ac_var=no"
17427 rm -rf conftest.dSYM
17428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17429 conftest$ac_exeext conftest.$ac_ext
17431 ac_res=`eval 'as_val=${'$as_ac_var'}
17432 $as_echo "$as_val"'`
17433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17434 $as_echo "$ac_res" >&6; }
17435 as_val=`eval 'as_val=${'$as_ac_var'}
17436 $as_echo "$as_val"'`
17437 if test "x$as_val" = x""yes; then
17438 cat >>confdefs.h <<_ACEOF
17439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17446 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17447 # by calling it, 2009-04-02
17448 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17449 if test "$PORTNAME" != "solaris"; then
17451 for ac_func in posix_fadvise
17453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17455 $as_echo_n "checking for $ac_func... " >&6; }
17456 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17457 $as_echo_n "(cached) " >&6
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17467 #define $ac_func innocuous_$ac_func
17469 /* System header to define __stub macros and hopefully few prototypes,
17470 which can conflict with char $ac_func (); below.
17471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17472 <limits.h> exists even on freestanding compilers. */
17475 # include <limits.h>
17477 # include <assert.h>
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17489 /* The GNU C library defines this for functions which it implements
17490 to always fail with ENOSYS. Some functions are actually named
17491 something starting with __ and the normal name is an alias. */
17492 #if defined __stub_$ac_func || defined __stub___$ac_func
17499 return $ac_func ();
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (ac_try="$ac_link"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17511 $as_echo "$ac_try_echo") >&5
17512 (eval "$ac_link") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && {
17519 test -z "$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 } && test -s conftest$ac_exeext && {
17522 test "$cross_compiling" = yes ||
17523 $as_test_x conftest$ac_exeext
17525 eval "$as_ac_var=yes"
17527 $as_echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 eval "$as_ac_var=no"
17533 rm -rf conftest.dSYM
17534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17535 conftest$ac_exeext conftest.$ac_ext
17537 ac_res=`eval 'as_val=${'$as_ac_var'}
17538 $as_echo "$as_val"'`
17539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17540 $as_echo "$ac_res" >&6; }
17541 as_val=`eval 'as_val=${'$as_ac_var'}
17542 $as_echo "$as_val"'`
17543 if test "x$as_val" = x""yes; then
17544 cat >>confdefs.h <<_ACEOF
17545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17551 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17552 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17553 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17554 $as_echo_n "(cached) " >&6
17556 cat >conftest.$ac_ext <<_ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17567 #ifndef posix_fadvise
17568 (void) posix_fadvise;
17575 rm -f conftest.$ac_objext
17576 if { (ac_try="$ac_compile"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17582 $as_echo "$ac_try_echo") >&5
17583 (eval "$ac_compile") 2>conftest.er1
17585 grep -v '^ *+' conftest.er1 >conftest.err
17587 cat conftest.err >&5
17588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && {
17590 test -z "$ac_c_werror_flag" ||
17591 test ! -s conftest.err
17592 } && test -s conftest.$ac_objext; then
17593 ac_cv_have_decl_posix_fadvise=yes
17595 $as_echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ac_cv_have_decl_posix_fadvise=no
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17603 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17604 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17605 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define HAVE_DECL_POSIX_FADVISE 1
17613 cat >>confdefs.h <<_ACEOF
17614 #define HAVE_DECL_POSIX_FADVISE 0
17623 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17624 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17625 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17626 $as_echo_n "(cached) " >&6
17628 cat >conftest.$ac_ext <<_ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17634 #include <unistd.h>
17647 rm -f conftest.$ac_objext
17648 if { (ac_try="$ac_compile"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655 (eval "$ac_compile") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest.$ac_objext; then
17665 ac_cv_have_decl_fdatasync=yes
17667 $as_echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_have_decl_fdatasync=no
17673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17676 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17677 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17679 cat >>confdefs.h <<_ACEOF
17680 #define HAVE_DECL_FDATASYNC 1
17685 cat >>confdefs.h <<_ACEOF
17686 #define HAVE_DECL_FDATASYNC 0
17693 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
17694 $as_echo_n "checking whether strlcat is declared... " >&6; }
17695 if test "${ac_cv_have_decl_strlcat+set}" = set; then
17696 $as_echo_n "(cached) " >&6
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 $ac_includes_default
17716 rm -f conftest.$ac_objext
17717 if { (ac_try="$ac_compile"
17718 case "(($ac_try" in
17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720 *) ac_try_echo=$ac_try;;
17722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17723 $as_echo "$ac_try_echo") >&5
17724 (eval "$ac_compile") 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest.$ac_objext; then
17734 ac_cv_have_decl_strlcat=yes
17736 $as_echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_cv_have_decl_strlcat=no
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
17745 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
17746 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
17748 cat >>confdefs.h <<_ACEOF
17749 #define HAVE_DECL_STRLCAT 1
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_DECL_STRLCAT 0
17760 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
17761 $as_echo_n "checking whether strlcpy is declared... " >&6; }
17762 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
17763 $as_echo_n "(cached) " >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17783 rm -f conftest.$ac_objext
17784 if { (ac_try="$ac_compile"
17785 case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17790 $as_echo "$ac_try_echo") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17793 grep -v '^ *+' conftest.er1 >conftest.err
17795 cat conftest.err >&5
17796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && {
17798 test -z "$ac_c_werror_flag" ||
17799 test ! -s conftest.err
17800 } && test -s conftest.$ac_objext; then
17801 ac_cv_have_decl_strlcpy=yes
17803 $as_echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 ac_cv_have_decl_strlcpy=no
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17811 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17812 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
17813 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
17815 cat >>confdefs.h <<_ACEOF
17816 #define HAVE_DECL_STRLCPY 1
17821 cat >>confdefs.h <<_ACEOF
17822 #define HAVE_DECL_STRLCPY 0
17829 # This is probably only present on Darwin, but may as well check always
17830 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17831 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
17832 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17833 $as_echo_n "(cached) " >&6
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17846 #ifndef F_FULLFSYNC
17847 (void) F_FULLFSYNC;
17854 rm -f conftest.$ac_objext
17855 if { (ac_try="$ac_compile"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862 (eval "$ac_compile") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest.$ac_objext; then
17872 ac_cv_have_decl_F_FULLFSYNC=yes
17874 $as_echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_cv_have_decl_F_FULLFSYNC=no
17880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17883 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17884 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
17886 cat >>confdefs.h <<_ACEOF
17887 #define HAVE_DECL_F_FULLFSYNC 1
17892 cat >>confdefs.h <<_ACEOF
17893 #define HAVE_DECL_F_FULLFSYNC 0
17902 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17903 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
17904 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17905 $as_echo_n "(cached) " >&6
17907 ac_cv_type_struct_sockaddr_in6=no
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 $ac_includes_default
17915 #include <netinet/in.h>
17920 if (sizeof (struct sockaddr_in6))
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934 (eval "$ac_compile") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest.$ac_objext; then
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 $ac_includes_default
17951 #include <netinet/in.h>
17956 if (sizeof ((struct sockaddr_in6)))
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
17982 $as_echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 ac_cv_type_struct_sockaddr_in6=yes
17988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990 $as_echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17998 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17999 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
18000 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_IPV6 1
18011 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
18012 $as_echo_n "checking for PS_STRINGS... " >&6; }
18013 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
18014 $as_echo_n "(cached) " >&6
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18022 #include <machine/vmparam.h>
18023 #include <sys/exec.h>
18028 PS_STRINGS->ps_nargvstr = 1;
18029 PS_STRINGS->ps_argvstr = "foo";
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (ac_try="$ac_link"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18041 $as_echo "$ac_try_echo") >&5
18042 (eval "$ac_link") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest$ac_exeext && {
18052 test "$cross_compiling" = yes ||
18053 $as_test_x conftest$ac_exeext
18055 pgac_cv_var_PS_STRINGS=yes
18057 $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 pgac_cv_var_PS_STRINGS=no
18063 rm -rf conftest.dSYM
18064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18065 conftest$ac_exeext conftest.$ac_ext
18067 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18068 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18069 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE_PS_STRINGS /**/
18078 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18079 # is missing. Yes, there are machines that have only one. We may
18080 # also decide to use snprintf.c if snprintf() is present but does not
18081 # have all the features we need --- see below.
18083 if test "$PORTNAME" = "win32"; then
18084 # Win32 gets snprintf.c built unconditionally.
18086 # To properly translate all NLS languages strings, we must support the
18087 # *printf() %$ format, which allows *printf() arguments to be selected
18088 # by position in the translated string.
18090 # libintl versions < 0.13 use the native *printf() functions, and Win32
18091 # *printf() doesn't understand %$, so we must use our /port versions,
18092 # which do understand %$. libintl versions >= 0.13 include their own
18093 # *printf versions on Win32. The libintl 0.13 release note text is:
18095 # C format strings with positions, as they arise when a translator
18096 # needs to reorder a sentence, are now supported on all platforms.
18097 # On those few platforms (NetBSD and Woe32) for which the native
18098 # printf()/fprintf()/... functions don't support such format
18099 # strings, replacements are provided through <libintl.h>.
18101 # We could use libintl >= 0.13's *printf() if we were sure that we had
18102 # a litint >= 0.13 at runtime, but seeing that there is no clean way
18103 # to guarantee that, it is best to just use our own, so we are sure to
18104 # get %$ support. In include/port.h we disable the *printf() macros
18105 # that might have been defined by libintl.
18107 # We do this unconditionally whether NLS is used or not so we are sure
18108 # that all Win32 libraries and binaries behave the same.
18109 pgac_need_repl_snprintf=yes
18111 pgac_need_repl_snprintf=no
18113 for ac_func in snprintf
18115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18116 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18117 $as_echo_n "checking for $ac_func... " >&6; }
18118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18119 $as_echo_n "(cached) " >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18129 #define $ac_func innocuous_$ac_func
18131 /* System header to define __stub macros and hopefully few prototypes,
18132 which can conflict with char $ac_func (); below.
18133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18134 <limits.h> exists even on freestanding compilers. */
18137 # include <limits.h>
18139 # include <assert.h>
18144 /* Override any GCC internal prototype to avoid an error.
18145 Use char because int might match the return type of a GCC
18146 builtin and then its argument prototype would still apply. */
18151 /* The GNU C library defines this for functions which it implements
18152 to always fail with ENOSYS. Some functions are actually named
18153 something starting with __ and the normal name is an alias. */
18154 #if defined __stub_$ac_func || defined __stub___$ac_func
18161 return $ac_func ();
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18173 $as_echo "$ac_try_echo") >&5
18174 (eval "$ac_link") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext && {
18184 test "$cross_compiling" = yes ||
18185 $as_test_x conftest$ac_exeext
18187 eval "$as_ac_var=yes"
18189 $as_echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 eval "$as_ac_var=no"
18195 rm -rf conftest.dSYM
18196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18197 conftest$ac_exeext conftest.$ac_ext
18199 ac_res=`eval 'as_val=${'$as_ac_var'}
18200 $as_echo "$as_val"'`
18201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18202 $as_echo "$ac_res" >&6; }
18203 as_val=`eval 'as_val=${'$as_ac_var'}
18204 $as_echo "$as_val"'`
18205 if test "x$as_val" = x""yes; then
18206 cat >>confdefs.h <<_ACEOF
18207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18211 pgac_need_repl_snprintf=yes
18216 for ac_func in vsnprintf
18218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18219 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18220 $as_echo_n "checking for $ac_func... " >&6; }
18221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18222 $as_echo_n "(cached) " >&6
18224 cat >conftest.$ac_ext <<_ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h. */
18230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18232 #define $ac_func innocuous_$ac_func
18234 /* System header to define __stub macros and hopefully few prototypes,
18235 which can conflict with char $ac_func (); below.
18236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18237 <limits.h> exists even on freestanding compilers. */
18240 # include <limits.h>
18242 # include <assert.h>
18247 /* Override any GCC internal prototype to avoid an error.
18248 Use char because int might match the return type of a GCC
18249 builtin and then its argument prototype would still apply. */
18254 /* The GNU C library defines this for functions which it implements
18255 to always fail with ENOSYS. Some functions are actually named
18256 something starting with __ and the normal name is an alias. */
18257 #if defined __stub_$ac_func || defined __stub___$ac_func
18264 return $ac_func ();
18269 rm -f conftest.$ac_objext conftest$ac_exeext
18270 if { (ac_try="$ac_link"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18276 $as_echo "$ac_try_echo") >&5
18277 (eval "$ac_link") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest$ac_exeext && {
18287 test "$cross_compiling" = yes ||
18288 $as_test_x conftest$ac_exeext
18290 eval "$as_ac_var=yes"
18292 $as_echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 eval "$as_ac_var=no"
18298 rm -rf conftest.dSYM
18299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18300 conftest$ac_exeext conftest.$ac_ext
18302 ac_res=`eval 'as_val=${'$as_ac_var'}
18303 $as_echo "$as_val"'`
18304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18305 $as_echo "$ac_res" >&6; }
18306 as_val=`eval 'as_val=${'$as_ac_var'}
18307 $as_echo "$as_val"'`
18308 if test "x$as_val" = x""yes; then
18309 cat >>confdefs.h <<_ACEOF
18310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18314 pgac_need_repl_snprintf=yes
18321 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18322 # include/c.h will provide declarations. Note this is a separate test
18323 # from whether the functions exist in the C library --- there are
18324 # systems that have the functions but don't bother to declare them :-(
18326 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18327 $as_echo_n "checking whether snprintf is declared... " >&6; }
18328 if test "${ac_cv_have_decl_snprintf+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 $ac_includes_default
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18367 ac_cv_have_decl_snprintf=yes
18369 $as_echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ac_cv_have_decl_snprintf=no
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18378 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18379 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18381 cat >>confdefs.h <<_ACEOF
18382 #define HAVE_DECL_SNPRINTF 1
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_DECL_SNPRINTF 0
18393 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18394 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18395 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18396 $as_echo_n "(cached) " >&6
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 $ac_includes_default
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18423 $as_echo "$ac_try_echo") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_cv_have_decl_vsnprintf=yes
18436 $as_echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 ac_cv_have_decl_vsnprintf=no
18442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18445 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18446 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18448 cat >>confdefs.h <<_ACEOF
18449 #define HAVE_DECL_VSNPRINTF 1
18454 cat >>confdefs.h <<_ACEOF
18455 #define HAVE_DECL_VSNPRINTF 0
18464 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18465 $as_echo_n "checking for isinf... " >&6; }
18466 if test "${ac_cv_func_isinf+set}" = set; then
18467 $as_echo_n "(cached) " >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18477 double glob_double;
18482 return isinf(glob_double) ? 0 : 1;
18487 rm -f conftest.$ac_objext conftest$ac_exeext
18488 if { (ac_try="$ac_link"
18489 case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18494 $as_echo "$ac_try_echo") >&5
18495 (eval "$ac_link") 2>conftest.er1
18497 grep -v '^ *+' conftest.er1 >conftest.err
18499 cat conftest.err >&5
18500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } && {
18502 test -z "$ac_c_werror_flag" ||
18503 test ! -s conftest.err
18504 } && test -s conftest$ac_exeext && {
18505 test "$cross_compiling" = yes ||
18506 $as_test_x conftest$ac_exeext
18508 ac_cv_func_isinf=yes
18510 $as_echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 ac_cv_func_isinf=no
18516 rm -rf conftest.dSYM
18517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18518 conftest$ac_exeext conftest.$ac_ext
18520 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18521 $as_echo "$ac_cv_func_isinf" >&6; }
18523 if test $ac_cv_func_isinf = yes ; then
18525 cat >>confdefs.h <<\_ACEOF
18526 #define HAVE_ISINF 1
18530 case " $LIBOBJS " in
18531 *" isinf.$ac_objext "* ) ;;
18532 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18536 # Look for a way to implement a substitute for isinf()
18541 for ac_func in fpclass fp_class fp_class_d class
18543 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18544 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18545 $as_echo_n "checking for $ac_func... " >&6; }
18546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18547 $as_echo_n "(cached) " >&6
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18557 #define $ac_func innocuous_$ac_func
18559 /* System header to define __stub macros and hopefully few prototypes,
18560 which can conflict with char $ac_func (); below.
18561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18562 <limits.h> exists even on freestanding compilers. */
18565 # include <limits.h>
18567 # include <assert.h>
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18579 /* The GNU C library defines this for functions which it implements
18580 to always fail with ENOSYS. Some functions are actually named
18581 something starting with __ and the normal name is an alias. */
18582 #if defined __stub_$ac_func || defined __stub___$ac_func
18589 return $ac_func ();
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18601 $as_echo "$ac_try_echo") >&5
18602 (eval "$ac_link") 2>conftest.er1
18604 grep -v '^ *+' conftest.er1 >conftest.err
18606 cat conftest.err >&5
18607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } && {
18609 test -z "$ac_c_werror_flag" ||
18610 test ! -s conftest.err
18611 } && test -s conftest$ac_exeext && {
18612 test "$cross_compiling" = yes ||
18613 $as_test_x conftest$ac_exeext
18615 eval "$as_ac_var=yes"
18617 $as_echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 eval "$as_ac_var=no"
18623 rm -rf conftest.dSYM
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625 conftest$ac_exeext conftest.$ac_ext
18627 ac_res=`eval 'as_val=${'$as_ac_var'}
18628 $as_echo "$as_val"'`
18629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18630 $as_echo "$ac_res" >&6; }
18631 as_val=`eval 'as_val=${'$as_ac_var'}
18632 $as_echo "$as_val"'`
18633 if test "x$as_val" = x""yes; then
18634 cat >>confdefs.h <<_ACEOF
18635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18643 # Some versions of libedit contain strlcpy(); so disregard that library while
18644 # checking for these standard libc functions.
18645 pgac_save_LIBS="$LIBS"
18646 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18662 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18666 $as_echo_n "checking for $ac_func... " >&6; }
18667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18668 $as_echo_n "(cached) " >&6
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18678 #define $ac_func innocuous_$ac_func
18680 /* System header to define __stub macros and hopefully few prototypes,
18681 which can conflict with char $ac_func (); below.
18682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18683 <limits.h> exists even on freestanding compilers. */
18686 # include <limits.h>
18688 # include <assert.h>
18693 /* Override any GCC internal prototype to avoid an error.
18694 Use char because int might match the return type of a GCC
18695 builtin and then its argument prototype would still apply. */
18700 /* The GNU C library defines this for functions which it implements
18701 to always fail with ENOSYS. Some functions are actually named
18702 something starting with __ and the normal name is an alias. */
18703 #if defined __stub_$ac_func || defined __stub___$ac_func
18710 return $ac_func ();
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18722 $as_echo "$ac_try_echo") >&5
18723 (eval "$ac_link") 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } && {
18730 test -z "$ac_c_werror_flag" ||
18731 test ! -s conftest.err
18732 } && test -s conftest$ac_exeext && {
18733 test "$cross_compiling" = yes ||
18734 $as_test_x conftest$ac_exeext
18736 eval "$as_ac_var=yes"
18738 $as_echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 eval "$as_ac_var=no"
18744 rm -rf conftest.dSYM
18745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18746 conftest$ac_exeext conftest.$ac_ext
18748 ac_res=`eval 'as_val=${'$as_ac_var'}
18749 $as_echo "$as_val"'`
18750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18751 $as_echo "$ac_res" >&6; }
18752 as_val=`eval 'as_val=${'$as_ac_var'}
18753 $as_echo "$as_val"'`
18754 if test "x$as_val" = x""yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18760 case " $LIBOBJS " in
18761 *" $ac_func.$ac_objext "* ) ;;
18762 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18773 # Windows uses a specialised env handler
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE_UNSETENV 1
18780 ac_cv_func_unsetenv=yes;;
18783 for ac_func in unsetenv
18785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18786 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18787 $as_echo_n "checking for $ac_func... " >&6; }
18788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18789 $as_echo_n "(cached) " >&6
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18799 #define $ac_func innocuous_$ac_func
18801 /* System header to define __stub macros and hopefully few prototypes,
18802 which can conflict with char $ac_func (); below.
18803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18804 <limits.h> exists even on freestanding compilers. */
18807 # include <limits.h>
18809 # include <assert.h>
18814 /* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18821 /* The GNU C library defines this for functions which it implements
18822 to always fail with ENOSYS. Some functions are actually named
18823 something starting with __ and the normal name is an alias. */
18824 #if defined __stub_$ac_func || defined __stub___$ac_func
18831 return $ac_func ();
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (ac_try="$ac_link"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18843 $as_echo "$ac_try_echo") >&5
18844 (eval "$ac_link") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest$ac_exeext && {
18854 test "$cross_compiling" = yes ||
18855 $as_test_x conftest$ac_exeext
18857 eval "$as_ac_var=yes"
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 eval "$as_ac_var=no"
18865 rm -rf conftest.dSYM
18866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18867 conftest$ac_exeext conftest.$ac_ext
18869 ac_res=`eval 'as_val=${'$as_ac_var'}
18870 $as_echo "$as_val"'`
18871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18872 $as_echo "$ac_res" >&6; }
18873 as_val=`eval 'as_val=${'$as_ac_var'}
18874 $as_echo "$as_val"'`
18875 if test "x$as_val" = x""yes; then
18876 cat >>confdefs.h <<_ACEOF
18877 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 case " $LIBOBJS " in
18882 *" $ac_func.$ac_objext "* ) ;;
18883 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18895 LIBS="$pgac_save_LIBS"
18897 # System's version of getaddrinfo(), if any, may be used only if we found
18898 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
18899 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
18900 # versions of getaddrinfo don't follow normal C call protocol. This is OK
18901 # because we want to use our own getaddrinfo.c on Windows anyway.)
18902 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
18904 for ac_func in getaddrinfo
18906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18907 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18908 $as_echo_n "checking for $ac_func... " >&6; }
18909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18910 $as_echo_n "(cached) " >&6
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18920 #define $ac_func innocuous_$ac_func
18922 /* System header to define __stub macros and hopefully few prototypes,
18923 which can conflict with char $ac_func (); below.
18924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925 <limits.h> exists even on freestanding compilers. */
18928 # include <limits.h>
18930 # include <assert.h>
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18942 /* The GNU C library defines this for functions which it implements
18943 to always fail with ENOSYS. Some functions are actually named
18944 something starting with __ and the normal name is an alias. */
18945 #if defined __stub_$ac_func || defined __stub___$ac_func
18952 return $ac_func ();
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964 $as_echo "$ac_try_echo") >&5
18965 (eval "$ac_link") 2>conftest.er1
18967 grep -v '^ *+' conftest.er1 >conftest.err
18969 cat conftest.err >&5
18970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && {
18972 test -z "$ac_c_werror_flag" ||
18973 test ! -s conftest.err
18974 } && test -s conftest$ac_exeext && {
18975 test "$cross_compiling" = yes ||
18976 $as_test_x conftest$ac_exeext
18978 eval "$as_ac_var=yes"
18980 $as_echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 eval "$as_ac_var=no"
18986 rm -rf conftest.dSYM
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18990 ac_res=`eval 'as_val=${'$as_ac_var'}
18991 $as_echo "$as_val"'`
18992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18993 $as_echo "$ac_res" >&6; }
18994 as_val=`eval 'as_val=${'$as_ac_var'}
18995 $as_echo "$as_val"'`
18996 if test "x$as_val" = x""yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19002 case " $LIBOBJS " in
19003 *" $ac_func.$ac_objext "* ) ;;
19004 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19013 case " $LIBOBJS " in
19014 *" getaddrinfo.$ac_objext "* ) ;;
19015 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
19021 # Similarly, use system's getopt_long() only if system provides struct option.
19022 if test x"$ac_cv_type_struct_option" = xyes ; then
19024 for ac_func in getopt_long
19026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19028 $as_echo_n "checking for $ac_func... " >&6; }
19029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19030 $as_echo_n "(cached) " >&6
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19040 #define $ac_func innocuous_$ac_func
19042 /* System header to define __stub macros and hopefully few prototypes,
19043 which can conflict with char $ac_func (); below.
19044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19045 <limits.h> exists even on freestanding compilers. */
19048 # include <limits.h>
19050 # include <assert.h>
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19062 /* The GNU C library defines this for functions which it implements
19063 to always fail with ENOSYS. Some functions are actually named
19064 something starting with __ and the normal name is an alias. */
19065 #if defined __stub_$ac_func || defined __stub___$ac_func
19072 return $ac_func ();
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (ac_try="$ac_link"
19079 case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19084 $as_echo "$ac_try_echo") >&5
19085 (eval "$ac_link") 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } && {
19092 test -z "$ac_c_werror_flag" ||
19093 test ! -s conftest.err
19094 } && test -s conftest$ac_exeext && {
19095 test "$cross_compiling" = yes ||
19096 $as_test_x conftest$ac_exeext
19098 eval "$as_ac_var=yes"
19100 $as_echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19103 eval "$as_ac_var=no"
19106 rm -rf conftest.dSYM
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19110 ac_res=`eval 'as_val=${'$as_ac_var'}
19111 $as_echo "$as_val"'`
19112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
19114 as_val=`eval 'as_val=${'$as_ac_var'}
19115 $as_echo "$as_val"'`
19116 if test "x$as_val" = x""yes; then
19117 cat >>confdefs.h <<_ACEOF
19118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19122 case " $LIBOBJS " in
19123 *" $ac_func.$ac_objext "* ) ;;
19124 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19133 case " $LIBOBJS " in
19134 *" getopt_long.$ac_objext "* ) ;;
19135 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19141 # Solaris' getopt() doesn't do what we want for long options, so always use
19142 # our version on that platform.
19143 if test "$PORTNAME" = "solaris"; then
19144 case " $LIBOBJS " in
19145 *" getopt.$ac_objext "* ) ;;
19146 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19152 # Cygwin's erand48() is broken (always returns zero) in some releases,
19153 # so force use of ours.
19154 if test "$PORTNAME" = "cygwin"; then
19155 case " $LIBOBJS " in
19156 *" erand48.$ac_objext "* ) ;;
19157 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19164 if test "$PORTNAME" = "win32"; then
19166 for ac_func in gettimeofday
19168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19169 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19170 $as_echo_n "checking for $ac_func... " >&6; }
19171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19172 $as_echo_n "(cached) " >&6
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19182 #define $ac_func innocuous_$ac_func
19184 /* System header to define __stub macros and hopefully few prototypes,
19185 which can conflict with char $ac_func (); below.
19186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19187 <limits.h> exists even on freestanding compilers. */
19190 # include <limits.h>
19192 # include <assert.h>
19197 /* Override any GCC internal prototype to avoid an error.
19198 Use char because int might match the return type of a GCC
19199 builtin and then its argument prototype would still apply. */
19204 /* The GNU C library defines this for functions which it implements
19205 to always fail with ENOSYS. Some functions are actually named
19206 something starting with __ and the normal name is an alias. */
19207 #if defined __stub_$ac_func || defined __stub___$ac_func
19214 return $ac_func ();
19219 rm -f conftest.$ac_objext conftest$ac_exeext
19220 if { (ac_try="$ac_link"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19226 $as_echo "$ac_try_echo") >&5
19227 (eval "$ac_link") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest$ac_exeext && {
19237 test "$cross_compiling" = yes ||
19238 $as_test_x conftest$ac_exeext
19240 eval "$as_ac_var=yes"
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 eval "$as_ac_var=no"
19248 rm -rf conftest.dSYM
19249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19250 conftest$ac_exeext conftest.$ac_ext
19252 ac_res=`eval 'as_val=${'$as_ac_var'}
19253 $as_echo "$as_val"'`
19254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19255 $as_echo "$ac_res" >&6; }
19256 as_val=`eval 'as_val=${'$as_ac_var'}
19257 $as_echo "$as_val"'`
19258 if test "x$as_val" = x""yes; then
19259 cat >>confdefs.h <<_ACEOF
19260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19264 case " $LIBOBJS " in
19265 *" $ac_func.$ac_objext "* ) ;;
19266 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19274 case " $LIBOBJS " in
19275 *" kill.$ac_objext "* ) ;;
19276 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19280 case " $LIBOBJS " in
19281 *" open.$ac_objext "* ) ;;
19282 *) LIBOBJS="$LIBOBJS open.$ac_objext"
19286 case " $LIBOBJS " in
19287 *" win32env.$ac_objext "* ) ;;
19288 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19292 case " $LIBOBJS " in
19293 *" win32error.$ac_objext "* ) ;;
19294 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19299 cat >>confdefs.h <<\_ACEOF
19300 #define HAVE_SYMLINK 1
19305 if test "$with_readline" = yes; then
19306 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19307 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19308 cat >conftest.$ac_ext <<_ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19315 #ifdef HAVE_READLINE_READLINE_H
19316 # include <readline/readline.h>
19317 #elif defined(HAVE_READLINE_H)
19318 # include <readline.h>
19324 rl_completion_append_character = 'x';
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (ac_try="$ac_link"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19336 $as_echo "$ac_try_echo") >&5
19337 (eval "$ac_link") 2>conftest.er1
19339 grep -v '^ *+' conftest.er1 >conftest.err
19341 cat conftest.err >&5
19342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); } && {
19344 test -z "$ac_c_werror_flag" ||
19345 test ! -s conftest.err
19346 } && test -s conftest$ac_exeext && {
19347 test "$cross_compiling" = yes ||
19348 $as_test_x conftest$ac_exeext
19350 { $as_echo "$as_me:$LINENO: result: yes" >&5
19351 $as_echo "yes" >&6; }
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19358 $as_echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 { $as_echo "$as_me:$LINENO: result: no" >&5
19362 $as_echo "no" >&6; }
19365 rm -rf conftest.dSYM
19366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19367 conftest$ac_exeext conftest.$ac_ext
19370 for ac_func in rl_completion_matches rl_filename_completion_function
19372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19373 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19374 $as_echo_n "checking for $ac_func... " >&6; }
19375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19376 $as_echo_n "(cached) " >&6
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19386 #define $ac_func innocuous_$ac_func
19388 /* System header to define __stub macros and hopefully few prototypes,
19389 which can conflict with char $ac_func (); below.
19390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19391 <limits.h> exists even on freestanding compilers. */
19394 # include <limits.h>
19396 # include <assert.h>
19401 /* Override any GCC internal prototype to avoid an error.
19402 Use char because int might match the return type of a GCC
19403 builtin and then its argument prototype would still apply. */
19408 /* The GNU C library defines this for functions which it implements
19409 to always fail with ENOSYS. Some functions are actually named
19410 something starting with __ and the normal name is an alias. */
19411 #if defined __stub_$ac_func || defined __stub___$ac_func
19418 return $ac_func ();
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430 $as_echo "$ac_try_echo") >&5
19431 (eval "$ac_link") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext && {
19441 test "$cross_compiling" = yes ||
19442 $as_test_x conftest$ac_exeext
19444 eval "$as_ac_var=yes"
19446 $as_echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 eval "$as_ac_var=no"
19452 rm -rf conftest.dSYM
19453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454 conftest$ac_exeext conftest.$ac_ext
19456 ac_res=`eval 'as_val=${'$as_ac_var'}
19457 $as_echo "$as_val"'`
19458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19459 $as_echo "$ac_res" >&6; }
19460 as_val=`eval 'as_val=${'$as_ac_var'}
19461 $as_echo "$as_val"'`
19462 if test "x$as_val" = x""yes; then
19463 cat >>confdefs.h <<_ACEOF
19464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19472 for ac_func in append_history history_truncate_file
19474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19475 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19476 $as_echo_n "checking for $ac_func... " >&6; }
19477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19478 $as_echo_n "(cached) " >&6
19480 cat >conftest.$ac_ext <<_ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h. */
19486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19488 #define $ac_func innocuous_$ac_func
19490 /* System header to define __stub macros and hopefully few prototypes,
19491 which can conflict with char $ac_func (); below.
19492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19493 <limits.h> exists even on freestanding compilers. */
19496 # include <limits.h>
19498 # include <assert.h>
19503 /* Override any GCC internal prototype to avoid an error.
19504 Use char because int might match the return type of a GCC
19505 builtin and then its argument prototype would still apply. */
19510 /* The GNU C library defines this for functions which it implements
19511 to always fail with ENOSYS. Some functions are actually named
19512 something starting with __ and the normal name is an alias. */
19513 #if defined __stub_$ac_func || defined __stub___$ac_func
19520 return $ac_func ();
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19532 $as_echo "$ac_try_echo") >&5
19533 (eval "$ac_link") 2>conftest.er1
19535 grep -v '^ *+' conftest.er1 >conftest.err
19537 cat conftest.err >&5
19538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } && {
19540 test -z "$ac_c_werror_flag" ||
19541 test ! -s conftest.err
19542 } && test -s conftest$ac_exeext && {
19543 test "$cross_compiling" = yes ||
19544 $as_test_x conftest$ac_exeext
19546 eval "$as_ac_var=yes"
19548 $as_echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 eval "$as_ac_var=no"
19554 rm -rf conftest.dSYM
19555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19556 conftest$ac_exeext conftest.$ac_ext
19558 ac_res=`eval 'as_val=${'$as_ac_var'}
19559 $as_echo "$as_val"'`
19560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19561 $as_echo "$ac_res" >&6; }
19562 as_val=`eval 'as_val=${'$as_ac_var'}
19563 $as_echo "$as_val"'`
19564 if test "x$as_val" = x""yes; then
19565 cat >>confdefs.h <<_ACEOF
19566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19575 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19576 $as_echo_n "checking for sigsetjmp... " >&6; }
19577 cat >conftest.$ac_ext <<_ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19583 #include <setjmp.h>
19587 sigjmp_buf x; sigsetjmp(x, 1);
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (ac_try="$ac_link"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19599 $as_echo "$ac_try_echo") >&5
19600 (eval "$ac_link") 2>conftest.er1
19602 grep -v '^ *+' conftest.er1 >conftest.err
19604 cat conftest.err >&5
19605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } && {
19607 test -z "$ac_c_werror_flag" ||
19608 test ! -s conftest.err
19609 } && test -s conftest$ac_exeext && {
19610 test "$cross_compiling" = yes ||
19611 $as_test_x conftest$ac_exeext
19614 cat >>confdefs.h <<\_ACEOF
19615 #define HAVE_SIGSETJMP 1
19618 { $as_echo "$as_me:$LINENO: result: yes" >&5
19619 $as_echo "yes" >&6; }
19621 $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 { $as_echo "$as_me:$LINENO: result: no" >&5
19625 $as_echo "no" >&6; }
19628 rm -rf conftest.dSYM
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630 conftest$ac_exeext conftest.$ac_ext
19632 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19633 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19634 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19635 $as_echo_n "(cached) " >&6
19637 cat >conftest.$ac_ext <<_ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19643 #include <signal.h>
19644 /* NetBSD declares sys_siglist in unistd.h. */
19645 #ifdef HAVE_UNISTD_H
19646 # include <unistd.h>
19653 #ifndef sys_siglist
19654 (void) sys_siglist;
19661 rm -f conftest.$ac_objext
19662 if { (ac_try="$ac_compile"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19668 $as_echo "$ac_try_echo") >&5
19669 (eval "$ac_compile") 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } && {
19676 test -z "$ac_c_werror_flag" ||
19677 test ! -s conftest.err
19678 } && test -s conftest.$ac_objext; then
19679 ac_cv_have_decl_sys_siglist=yes
19681 $as_echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ac_cv_have_decl_sys_siglist=no
19687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19689 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19690 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19691 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19693 cat >>confdefs.h <<_ACEOF
19694 #define HAVE_DECL_SYS_SIGLIST 1
19699 cat >>confdefs.h <<_ACEOF
19700 #define HAVE_DECL_SYS_SIGLIST 0
19709 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
19710 $as_echo_n "checking for syslog... " >&6; }
19711 if test "${ac_cv_func_syslog+set}" = set; then
19712 $as_echo_n "(cached) " >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19722 #define syslog innocuous_syslog
19724 /* System header to define __stub macros and hopefully few prototypes,
19725 which can conflict with char syslog (); below.
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727 <limits.h> exists even on freestanding compilers. */
19730 # include <limits.h>
19732 # include <assert.h>
19737 /* Override any GCC internal prototype to avoid an error.
19738 Use char because int might match the return type of a GCC
19739 builtin and then its argument prototype would still apply. */
19744 /* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
19747 #if defined __stub_syslog || defined __stub___syslog
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (ac_try="$ac_link"
19761 case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19766 $as_echo "$ac_try_echo") >&5
19767 (eval "$ac_link") 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } && {
19774 test -z "$ac_c_werror_flag" ||
19775 test ! -s conftest.err
19776 } && test -s conftest$ac_exeext && {
19777 test "$cross_compiling" = yes ||
19778 $as_test_x conftest$ac_exeext
19780 ac_cv_func_syslog=yes
19782 $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_func_syslog=no
19788 rm -rf conftest.dSYM
19789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19790 conftest$ac_exeext conftest.$ac_ext
19792 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19793 $as_echo "$ac_cv_func_syslog" >&6; }
19794 if test "x$ac_cv_func_syslog" = x""yes; then
19795 if test "${ac_cv_header_syslog_h+set}" = set; then
19796 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19797 $as_echo_n "checking for syslog.h... " >&6; }
19798 if test "${ac_cv_header_syslog_h+set}" = set; then
19799 $as_echo_n "(cached) " >&6
19801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19802 $as_echo "$ac_cv_header_syslog_h" >&6; }
19804 # Is the header compilable?
19805 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
19806 $as_echo_n "checking syslog.h usability... " >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <syslog.h>
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19823 $as_echo "$ac_try_echo") >&5
19824 (eval "$ac_compile") 2>conftest.er1
19826 grep -v '^ *+' conftest.er1 >conftest.err
19828 cat conftest.err >&5
19829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest.$ac_objext; then
19834 ac_header_compiler=yes
19836 $as_echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_header_compiler=no
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19844 $as_echo "$ac_header_compiler" >&6; }
19846 # Is the header present?
19847 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
19848 $as_echo_n "checking syslog.h presence... " >&6; }
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 #include <syslog.h>
19857 if { (ac_try="$ac_cpp conftest.$ac_ext"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863 $as_echo "$ac_try_echo") >&5
19864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } >/dev/null && {
19871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19872 test ! -s conftest.err
19874 ac_header_preproc=yes
19876 $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_header_preproc=no
19882 rm -f conftest.err conftest.$ac_ext
19883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19884 $as_echo "$ac_header_preproc" >&6; }
19886 # So? What about this header?
19887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19889 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
19890 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19891 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
19892 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
19893 ac_header_preproc=yes
19896 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
19897 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
19898 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
19899 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
19900 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
19901 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
19902 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
19903 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
19904 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
19905 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
19906 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
19907 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
19909 ## ---------------------------------------- ##
19910 ## Report this to pgsql-bugs@postgresql.org ##
19911 ## ---------------------------------------- ##
19913 ) | sed "s/^/$as_me: WARNING: /" >&2
19916 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19917 $as_echo_n "checking for syslog.h... " >&6; }
19918 if test "${ac_cv_header_syslog_h+set}" = set; then
19919 $as_echo_n "(cached) " >&6
19921 ac_cv_header_syslog_h=$ac_header_preproc
19923 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19924 $as_echo "$ac_cv_header_syslog_h" >&6; }
19927 if test "x$ac_cv_header_syslog_h" = x""yes; then
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_SYSLOG 1
19939 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
19940 $as_echo_n "checking for opterr... " >&6; }
19941 if test "${pgac_cv_var_int_opterr+set}" = set; then
19942 $as_echo_n "(cached) " >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <unistd.h>
19954 extern int opterr; opterr = 1;
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19966 $as_echo "$ac_try_echo") >&5
19967 (eval "$ac_link") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext && {
19977 test "$cross_compiling" = yes ||
19978 $as_test_x conftest$ac_exeext
19980 pgac_cv_var_int_opterr=yes
19982 $as_echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 pgac_cv_var_int_opterr=no
19988 rm -rf conftest.dSYM
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19992 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
19993 $as_echo "$pgac_cv_var_int_opterr" >&6; }
19994 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_INT_OPTERR 1
20002 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
20003 $as_echo_n "checking for optreset... " >&6; }
20004 if test "${pgac_cv_var_int_optreset+set}" = set; then
20005 $as_echo_n "(cached) " >&6
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 #include <unistd.h>
20017 extern int optreset; optreset = 1;
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20029 $as_echo "$ac_try_echo") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext && {
20040 test "$cross_compiling" = yes ||
20041 $as_test_x conftest$ac_exeext
20043 pgac_cv_var_int_optreset=yes
20045 $as_echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 pgac_cv_var_int_optreset=no
20051 rm -rf conftest.dSYM
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053 conftest$ac_exeext conftest.$ac_ext
20055 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
20056 $as_echo "$pgac_cv_var_int_optreset" >&6; }
20057 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_INT_OPTRESET 1
20067 for ac_func in strtoll strtoq
20069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20071 $as_echo_n "checking for $ac_func... " >&6; }
20072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20073 $as_echo_n "(cached) " >&6
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20083 #define $ac_func innocuous_$ac_func
20085 /* System header to define __stub macros and hopefully few prototypes,
20086 which can conflict with char $ac_func (); below.
20087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20088 <limits.h> exists even on freestanding compilers. */
20091 # include <limits.h>
20093 # include <assert.h>
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20105 /* The GNU C library defines this for functions which it implements
20106 to always fail with ENOSYS. Some functions are actually named
20107 something starting with __ and the normal name is an alias. */
20108 #if defined __stub_$ac_func || defined __stub___$ac_func
20115 return $ac_func ();
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20127 $as_echo "$ac_try_echo") >&5
20128 (eval "$ac_link") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest$ac_exeext && {
20138 test "$cross_compiling" = yes ||
20139 $as_test_x conftest$ac_exeext
20141 eval "$as_ac_var=yes"
20143 $as_echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20146 eval "$as_ac_var=no"
20149 rm -rf conftest.dSYM
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151 conftest$ac_exeext conftest.$ac_ext
20153 ac_res=`eval 'as_val=${'$as_ac_var'}
20154 $as_echo "$as_val"'`
20155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20156 $as_echo "$ac_res" >&6; }
20157 as_val=`eval 'as_val=${'$as_ac_var'}
20158 $as_echo "$as_val"'`
20159 if test "x$as_val" = x""yes; then
20160 cat >>confdefs.h <<_ACEOF
20161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20169 for ac_func in strtoull strtouq
20171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20173 $as_echo_n "checking for $ac_func... " >&6; }
20174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20175 $as_echo_n "(cached) " >&6
20177 cat >conftest.$ac_ext <<_ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20185 #define $ac_func innocuous_$ac_func
20187 /* System header to define __stub macros and hopefully few prototypes,
20188 which can conflict with char $ac_func (); below.
20189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20190 <limits.h> exists even on freestanding compilers. */
20193 # include <limits.h>
20195 # include <assert.h>
20200 /* Override any GCC internal prototype to avoid an error.
20201 Use char because int might match the return type of a GCC
20202 builtin and then its argument prototype would still apply. */
20207 /* The GNU C library defines this for functions which it implements
20208 to always fail with ENOSYS. Some functions are actually named
20209 something starting with __ and the normal name is an alias. */
20210 #if defined __stub_$ac_func || defined __stub___$ac_func
20217 return $ac_func ();
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (ac_try="$ac_link"
20224 case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20229 $as_echo "$ac_try_echo") >&5
20230 (eval "$ac_link") 2>conftest.er1
20232 grep -v '^ *+' conftest.er1 >conftest.err
20234 cat conftest.err >&5
20235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && {
20237 test -z "$ac_c_werror_flag" ||
20238 test ! -s conftest.err
20239 } && test -s conftest$ac_exeext && {
20240 test "$cross_compiling" = yes ||
20241 $as_test_x conftest$ac_exeext
20243 eval "$as_ac_var=yes"
20245 $as_echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 eval "$as_ac_var=no"
20251 rm -rf conftest.dSYM
20252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20253 conftest$ac_exeext conftest.$ac_ext
20255 ac_res=`eval 'as_val=${'$as_ac_var'}
20256 $as_echo "$as_val"'`
20257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20258 $as_echo "$ac_res" >&6; }
20259 as_val=`eval 'as_val=${'$as_ac_var'}
20260 $as_echo "$as_val"'`
20261 if test "x$as_val" = x""yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20270 # Check for one of atexit() or on_exit()
20272 for ac_func in atexit
20274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20276 $as_echo_n "checking for $ac_func... " >&6; }
20277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20278 $as_echo_n "(cached) " >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define $ac_func innocuous_$ac_func
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char $ac_func (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20296 # include <limits.h>
20298 # include <assert.h>
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub_$ac_func || defined __stub___$ac_func
20320 return $ac_func ();
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_link") 2>conftest.er1
20335 grep -v '^ *+' conftest.er1 >conftest.err
20337 cat conftest.err >&5
20338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest$ac_exeext && {
20343 test "$cross_compiling" = yes ||
20344 $as_test_x conftest$ac_exeext
20346 eval "$as_ac_var=yes"
20348 $as_echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 eval "$as_ac_var=no"
20354 rm -rf conftest.dSYM
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20358 ac_res=`eval 'as_val=${'$as_ac_var'}
20359 $as_echo "$as_val"'`
20360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20361 $as_echo "$ac_res" >&6; }
20362 as_val=`eval 'as_val=${'$as_ac_var'}
20363 $as_echo "$as_val"'`
20364 if test "x$as_val" = x""yes; then
20365 cat >>confdefs.h <<_ACEOF
20366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20371 for ac_func in on_exit
20373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20375 $as_echo_n "checking for $ac_func... " >&6; }
20376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20377 $as_echo_n "(cached) " >&6
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20387 #define $ac_func innocuous_$ac_func
20389 /* System header to define __stub macros and hopefully few prototypes,
20390 which can conflict with char $ac_func (); below.
20391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20392 <limits.h> exists even on freestanding compilers. */
20395 # include <limits.h>
20397 # include <assert.h>
20402 /* Override any GCC internal prototype to avoid an error.
20403 Use char because int might match the return type of a GCC
20404 builtin and then its argument prototype would still apply. */
20409 /* The GNU C library defines this for functions which it implements
20410 to always fail with ENOSYS. Some functions are actually named
20411 something starting with __ and the normal name is an alias. */
20412 #if defined __stub_$ac_func || defined __stub___$ac_func
20419 return $ac_func ();
20424 rm -f conftest.$ac_objext conftest$ac_exeext
20425 if { (ac_try="$ac_link"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432 (eval "$ac_link") 2>conftest.er1
20434 grep -v '^ *+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest$ac_exeext && {
20442 test "$cross_compiling" = yes ||
20443 $as_test_x conftest$ac_exeext
20445 eval "$as_ac_var=yes"
20447 $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 eval "$as_ac_var=no"
20453 rm -rf conftest.dSYM
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455 conftest$ac_exeext conftest.$ac_ext
20457 ac_res=`eval 'as_val=${'$as_ac_var'}
20458 $as_echo "$as_val"'`
20459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20460 $as_echo "$ac_res" >&6; }
20461 as_val=`eval 'as_val=${'$as_ac_var'}
20462 $as_echo "$as_val"'`
20463 if test "x$as_val" = x""yes; then
20464 cat >>confdefs.h <<_ACEOF
20465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20469 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20470 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20471 { (exit 1); exit 1; }; }
20480 for ac_func in fseeko
20482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20483 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20484 $as_echo_n "checking for $ac_func... " >&6; }
20485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20486 $as_echo_n "(cached) " >&6
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20496 #define $ac_func innocuous_$ac_func
20498 /* System header to define __stub macros and hopefully few prototypes,
20499 which can conflict with char $ac_func (); below.
20500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20501 <limits.h> exists even on freestanding compilers. */
20504 # include <limits.h>
20506 # include <assert.h>
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20518 /* The GNU C library defines this for functions which it implements
20519 to always fail with ENOSYS. Some functions are actually named
20520 something starting with __ and the normal name is an alias. */
20521 #if defined __stub_$ac_func || defined __stub___$ac_func
20528 return $ac_func ();
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (ac_try="$ac_link"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541 (eval "$ac_link") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && {
20548 test -z "$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 } && test -s conftest$ac_exeext && {
20551 test "$cross_compiling" = yes ||
20552 $as_test_x conftest$ac_exeext
20554 eval "$as_ac_var=yes"
20556 $as_echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 eval "$as_ac_var=no"
20562 rm -rf conftest.dSYM
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564 conftest$ac_exeext conftest.$ac_ext
20566 ac_res=`eval 'as_val=${'$as_ac_var'}
20567 $as_echo "$as_val"'`
20568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20569 $as_echo "$ac_res" >&6; }
20570 as_val=`eval 'as_val=${'$as_ac_var'}
20571 $as_echo "$as_val"'`
20572 if test "x$as_val" = x""yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20578 case " $LIBOBJS " in
20579 *" $ac_func.$ac_objext "* ) ;;
20580 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20589 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20590 # Mingw uses macros to access Win32 API calls
20591 bsdi*|netbsd*|mingw*)
20593 cat >>confdefs.h <<\_ACEOF
20594 #define HAVE_FSEEKO 1
20597 ac_cv_func_fseeko=yes;;
20599 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20600 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20601 if test "${ac_cv_sys_largefile_source+set}" = set; then
20602 $as_echo_n "(cached) " >&6
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611 #include <sys/types.h> /* for off_t */
20616 int (*fp) (FILE *, off_t, int) = fseeko;
20617 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20629 $as_echo "$ac_try_echo") >&5
20630 (eval "$ac_link") 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest$ac_exeext && {
20640 test "$cross_compiling" = yes ||
20641 $as_test_x conftest$ac_exeext
20643 ac_cv_sys_largefile_source=no; break
20645 $as_echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20651 rm -rf conftest.dSYM
20652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20653 conftest$ac_exeext conftest.$ac_ext
20654 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660 #define _LARGEFILE_SOURCE 1
20661 #include <sys/types.h> /* for off_t */
20666 int (*fp) (FILE *, off_t, int) = fseeko;
20667 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20672 rm -f conftest.$ac_objext conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20679 $as_echo "$ac_try_echo") >&5
20680 (eval "$ac_link") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1 >conftest.err
20684 cat conftest.err >&5
20685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest$ac_exeext && {
20690 test "$cross_compiling" = yes ||
20691 $as_test_x conftest$ac_exeext
20693 ac_cv_sys_largefile_source=1; break
20695 $as_echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20701 rm -rf conftest.dSYM
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703 conftest$ac_exeext conftest.$ac_ext
20704 ac_cv_sys_largefile_source=unknown
20708 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20709 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20710 case $ac_cv_sys_largefile_source in #(
20713 cat >>confdefs.h <<_ACEOF
20714 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20720 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20721 # in glibc 2.1.3, but that breaks too many other things.
20722 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20723 if test $ac_cv_sys_largefile_source != unknown; then
20725 cat >>confdefs.h <<\_ACEOF
20726 #define HAVE_FSEEKO 1
20737 # For each platform, we need to know about any special compile and link
20738 # libraries, and whether the normal C function names are thread-safe.
20739 # See the comment at the top of src/port/thread.c for more information.
20740 # WIN32 doesn't need the pthread tests; it always uses threads
20741 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
20746 ac_cpp='$CPP $CPPFLAGS'
20747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20753 # We used to check for pthread.h first, but this fails if pthread.h
20754 # requires special compiler flags (e.g. on True64 or Sequent).
20755 # It gets checked for in the link test anyway.
20757 # First of all, check if the user has set any of the PTHREAD_LIBS,
20758 # etcetera environment variables, and if threads linking works using
20760 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20761 save_CFLAGS="$CFLAGS"
20762 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20764 LIBS="$PTHREAD_LIBS $LIBS"
20765 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20766 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20780 char pthread_join ();
20784 return pthread_join ();
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20796 $as_echo "$ac_try_echo") >&5
20797 (eval "$ac_link") 2>conftest.er1
20799 grep -v '^ *+' conftest.er1 >conftest.err
20801 cat conftest.err >&5
20802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } && {
20804 test -z "$ac_c_werror_flag" ||
20805 test ! -s conftest.err
20806 } && test -s conftest$ac_exeext && {
20807 test "$cross_compiling" = yes ||
20808 $as_test_x conftest$ac_exeext
20812 $as_echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20818 rm -rf conftest.dSYM
20819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20820 conftest$ac_exeext conftest.$ac_ext
20821 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20822 $as_echo "$acx_pthread_ok" >&6; }
20823 if test x"$acx_pthread_ok" = xno; then
20828 CFLAGS="$save_CFLAGS"
20831 # We must check for the threads library under a number of different
20832 # names; the ordering is very important because some systems
20833 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20834 # libraries is broken (non-POSIX).
20836 # Create a list of thread flags to try. Items starting with a "-" are
20837 # C compiler flags, and other items are library names, except for "none"
20838 # which indicates that we try without any flags at all, and "pthread-config"
20839 # which is a program returning the flags for the Pth emulation library.
20841 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
20843 # The ordering *is* (sometimes) important. Some notes on the
20844 # individual items follow:
20846 # pthreads: AIX (must check this before -lpthread)
20847 # none: in case threads are in libc; should be tried before -Kthread and
20848 # other compiler flags to prevent continual compiler warnings
20849 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20850 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20851 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20852 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20853 # -pthreads: Solaris/gcc
20854 # -mthreads: Mingw32/gcc, Lynx/gcc
20855 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20856 # doesn't hurt to check since this sometimes defines pthreads too;
20857 # also defines -D_REENTRANT)
20858 # pthread: Linux, etcetera
20859 # --thread-safe: KAI C++
20860 # pthread-config: use pthread-config program (for GNU Pth library)
20862 case "${host_cpu}-${host_os}" in
20865 # On Solaris (at least, for some versions), libc contains stubbed
20866 # (non-functional) versions of the pthreads routines, so link-based
20867 # tests will erroneously succeed. (We need to link with -pthread or
20868 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20869 # a function called by this macro, so we could check for that, but
20870 # who knows whether they'll stub that too in a future libc.) So,
20871 # we'll just look for -pthreads and -lpthread first:
20873 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20877 if test x"$acx_pthread_ok" = xno; then
20878 for flag in $acx_pthread_flags; do
20880 tryPTHREAD_CFLAGS=""
20884 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20885 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20889 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20890 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20891 tryPTHREAD_CFLAGS="$flag"
20895 # skip this if we already have flags defined, for PostgreSQL
20896 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
20897 # Extract the first word of "pthread-config", so it can be a program name with args.
20898 set dummy pthread-config; ac_word=$2
20899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20900 $as_echo_n "checking for $ac_word... " >&6; }
20901 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20902 $as_echo_n "(cached) " >&6
20904 if test -n "$acx_pthread_config"; then
20905 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20908 for as_dir in $PATH
20911 test -z "$as_dir" && as_dir=.
20912 for ac_exec_ext in '' $ac_executable_extensions; do
20913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20914 ac_cv_prog_acx_pthread_config="yes"
20915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20922 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20925 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20926 if test -n "$acx_pthread_config"; then
20927 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20928 $as_echo "$acx_pthread_config" >&6; }
20930 { $as_echo "$as_me:$LINENO: result: no" >&5
20931 $as_echo "no" >&6; }
20935 if test x"$acx_pthread_config" = xno; then continue; fi
20936 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
20937 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20941 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20942 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20943 tryPTHREAD_LIBS="-l$flag"
20948 save_CFLAGS="$CFLAGS"
20949 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
20950 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20952 # Check for various functions. We must include pthread.h,
20953 # since some functions may be macros. (On the Sequent, we
20954 # need a special flag -Kthread to make this header compile.)
20955 # We check for pthread_join because it is in -lpthread on IRIX
20956 # while pthread_create is in libc. We check for pthread_attr_init
20957 # due to DEC craziness with -lpthreads. We check for
20958 # pthread_cleanup_push because it is one of the few pthread
20959 # functions on Solaris that doesn't have a non-functional libc stub.
20960 # We try pthread_create on general principles.
20961 cat >conftest.$ac_ext <<_ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 #include <pthread.h>
20971 pthread_t th; pthread_join(th, 0);
20972 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20973 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (ac_try="$ac_link"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20985 $as_echo "$ac_try_echo") >&5
20986 (eval "$ac_link") 2>conftest.er1
20988 grep -v '^ *+' conftest.er1 >conftest.err
20990 cat conftest.err >&5
20991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest$ac_exeext && {
20996 test "$cross_compiling" = yes ||
20997 $as_test_x conftest$ac_exeext
21001 $as_echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21007 rm -rf conftest.dSYM
21008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21009 conftest$ac_exeext conftest.$ac_ext
21011 if test "x$acx_pthread_ok" = xyes; then
21012 # Don't use options that are ignored by the compiler.
21013 # We find them by checking stderror.
21014 cat >conftest.$ac_ext <<_ACEOF
21016 main (int argc, char **argv)
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
21025 # we continue with more flags because Linux needs -lpthread
21026 # for libpq builds on PostgreSQL. The test above only
21027 # tests for building binaries, not shared libraries.
21028 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
21029 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21030 else acx_pthread_ok=no
21035 CFLAGS="$save_CFLAGS"
21037 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21038 $as_echo "$acx_pthread_ok" >&6; }
21042 # Various other checks:
21043 if test "x$acx_pthread_ok" = xyes; then
21045 LIBS="$PTHREAD_LIBS $LIBS"
21046 save_CFLAGS="$CFLAGS"
21047 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21049 # Detect AIX lossage: threads are created detached by default
21050 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21051 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21052 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <pthread.h>
21063 int attr=PTHREAD_CREATE_JOINABLE;
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076 (eval "$ac_link") 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest$ac_exeext && {
21086 test "$cross_compiling" = yes ||
21087 $as_test_x conftest$ac_exeext
21089 ok=PTHREAD_CREATE_JOINABLE
21091 $as_echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21097 rm -rf conftest.dSYM
21098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21099 conftest$ac_exeext conftest.$ac_ext
21100 if test x"$ok" = xunknown; then
21101 cat >conftest.$ac_ext <<_ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h. */
21107 #include <pthread.h>
21111 int attr=PTHREAD_CREATE_UNDETACHED;
21116 rm -f conftest.$ac_objext conftest$ac_exeext
21117 if { (ac_try="$ac_link"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21123 $as_echo "$ac_try_echo") >&5
21124 (eval "$ac_link") 2>conftest.er1
21126 grep -v '^ *+' conftest.er1 >conftest.err
21128 cat conftest.err >&5
21129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest$ac_exeext && {
21134 test "$cross_compiling" = yes ||
21135 $as_test_x conftest$ac_exeext
21137 ok=PTHREAD_CREATE_UNDETACHED
21139 $as_echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21145 rm -rf conftest.dSYM
21146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21147 conftest$ac_exeext conftest.$ac_ext
21149 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21151 cat >>confdefs.h <<\_ACEOF
21152 #define PTHREAD_CREATE_JOINABLE $ok
21156 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21157 $as_echo "${ok}" >&6; }
21158 if test x"$ok" = xunknown; then
21159 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21160 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21163 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21164 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21166 # We always add these in PostgreSQL
21167 # case "${host_cpu}-${host_os}" in
21168 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21169 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21171 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21172 $as_echo "${flag}" >&6; }
21173 if test "x$flag" != xno; then
21174 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21178 CFLAGS="$save_CFLAGS"
21180 # Supporting cc_r would require a special CC in all places that
21181 # use libpq, and that is ugly, so we don't do it. Users can still
21182 # define their compiler as cc_r to do thread builds of everything.
21183 # More AIX lossage: must compile with cc_r
21184 # Extract the first word of "cc_r", so it can be a program name with args.
21185 set dummy cc_r; ac_word=$2
21186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21187 $as_echo_n "checking for $ac_word... " >&6; }
21188 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21189 $as_echo_n "(cached) " >&6
21191 if test -n "$PTHREAD_CC"; then
21192 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21195 for as_dir in $PATH
21198 test -z "$as_dir" && as_dir=.
21199 for ac_exec_ext in '' $ac_executable_extensions; do
21200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21201 ac_cv_prog_PTHREAD_CC="cc_r"
21202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21209 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21212 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21213 if test -n "$PTHREAD_CC"; then
21214 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21215 $as_echo "$PTHREAD_CC" >&6; }
21217 { $as_echo "$as_me:$LINENO: result: no" >&5
21218 $as_echo "no" >&6; }
21230 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21231 if test x"$acx_pthread_ok" = xyes; then
21233 cat >>confdefs.h <<\_ACEOF
21234 #define HAVE_PTHREAD 1
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21250 # Some platforms use these, so just define them. They can't hurt if they
21251 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21252 # enables 5-arg getpwuid_r, among other things.
21253 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21256 # At this point, we don't want to muck with the compiler name for threading.
21257 # Let's see who fails, perhaps AIX. 2004-04-23
21258 if test "$PTHREAD_CC" != "$CC"; then
21259 { { $as_echo "$as_me:$LINENO: error:
21260 PostgreSQL does not support platforms that require a special compiler
21261 for thread safety; use --disable-thread-safety to disable thread safety." >&5
21262 $as_echo "$as_me: error:
21263 PostgreSQL does not support platforms that require a special compiler
21264 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
21265 { (exit 1); exit 1; }; }
21268 # Check for *_r functions
21271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21272 LIBS="$LIBS $PTHREAD_LIBS"
21274 if test "$PORTNAME" != "win32"; then
21275 if test "${ac_cv_header_pthread_h+set}" = set; then
21276 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21277 $as_echo_n "checking for pthread.h... " >&6; }
21278 if test "${ac_cv_header_pthread_h+set}" = set; then
21279 $as_echo_n "(cached) " >&6
21281 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21282 $as_echo "$ac_cv_header_pthread_h" >&6; }
21284 # Is the header compilable?
21285 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21286 $as_echo_n "checking pthread.h usability... " >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 $ac_includes_default
21294 #include <pthread.h>
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21303 $as_echo "$ac_try_echo") >&5
21304 (eval "$ac_compile") 2>conftest.er1
21306 grep -v '^ *+' conftest.er1 >conftest.err
21308 cat conftest.err >&5
21309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest.$ac_objext; then
21314 ac_header_compiler=yes
21316 $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 ac_header_compiler=no
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21324 $as_echo "$ac_header_compiler" >&6; }
21326 # Is the header present?
21327 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21328 $as_echo_n "checking pthread.h presence... " >&6; }
21329 cat >conftest.$ac_ext <<_ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 #include <pthread.h>
21337 if { (ac_try="$ac_cpp conftest.$ac_ext"
21338 case "(($ac_try" in
21339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21340 *) ac_try_echo=$ac_try;;
21342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21343 $as_echo "$ac_try_echo") >&5
21344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } >/dev/null && {
21351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21354 ac_header_preproc=yes
21356 $as_echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_preproc=no
21362 rm -f conftest.err conftest.$ac_ext
21363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21364 $as_echo "$ac_header_preproc" >&6; }
21366 # So? What about this header?
21367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21369 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21370 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21371 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21372 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21373 ac_header_preproc=yes
21376 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21377 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21378 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21379 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21380 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21381 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21382 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21383 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21384 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21385 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21386 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21387 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21389 ## ---------------------------------------- ##
21390 ## Report this to pgsql-bugs@postgresql.org ##
21391 ## ---------------------------------------- ##
21393 ) | sed "s/^/$as_me: WARNING: /" >&2
21396 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21397 $as_echo_n "checking for pthread.h... " >&6; }
21398 if test "${ac_cv_header_pthread_h+set}" = set; then
21399 $as_echo_n "(cached) " >&6
21401 ac_cv_header_pthread_h=$ac_header_preproc
21403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21404 $as_echo "$ac_cv_header_pthread_h" >&6; }
21407 if test "x$ac_cv_header_pthread_h" = x""yes; then
21410 { { $as_echo "$as_me:$LINENO: error:
21411 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
21412 $as_echo "$as_me: error:
21413 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
21414 { (exit 1); exit 1; }; }
21423 for ac_func in strerror_r getpwuid_r gethostbyname_r
21425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21427 $as_echo_n "checking for $ac_func... " >&6; }
21428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21429 $as_echo_n "(cached) " >&6
21431 cat >conftest.$ac_ext <<_ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h. */
21437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21439 #define $ac_func innocuous_$ac_func
21441 /* System header to define __stub macros and hopefully few prototypes,
21442 which can conflict with char $ac_func (); below.
21443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21444 <limits.h> exists even on freestanding compilers. */
21447 # include <limits.h>
21449 # include <assert.h>
21454 /* Override any GCC internal prototype to avoid an error.
21455 Use char because int might match the return type of a GCC
21456 builtin and then its argument prototype would still apply. */
21461 /* The GNU C library defines this for functions which it implements
21462 to always fail with ENOSYS. Some functions are actually named
21463 something starting with __ and the normal name is an alias. */
21464 #if defined __stub_$ac_func || defined __stub___$ac_func
21471 return $ac_func ();
21476 rm -f conftest.$ac_objext conftest$ac_exeext
21477 if { (ac_try="$ac_link"
21478 case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483 $as_echo "$ac_try_echo") >&5
21484 (eval "$ac_link") 2>conftest.er1
21486 grep -v '^ *+' conftest.er1 >conftest.err
21488 cat conftest.err >&5
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest$ac_exeext && {
21494 test "$cross_compiling" = yes ||
21495 $as_test_x conftest$ac_exeext
21497 eval "$as_ac_var=yes"
21499 $as_echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 eval "$as_ac_var=no"
21505 rm -rf conftest.dSYM
21506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21507 conftest$ac_exeext conftest.$ac_ext
21509 ac_res=`eval 'as_val=${'$as_ac_var'}
21510 $as_echo "$as_val"'`
21511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21512 $as_echo "$ac_res" >&6; }
21513 as_val=`eval 'as_val=${'$as_ac_var'}
21514 $as_echo "$as_val"'`
21515 if test "x$as_val" = x""yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21524 # Do test here with the proper thread flags
21525 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21526 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21527 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21528 $as_echo_n "(cached) " >&6
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 #include <sys/types.h>
21542 struct passwd *space;
21545 struct passwd **result;
21546 getpwuid_r(uid, space, buf, bufsize, result);
21551 rm -f conftest.$ac_objext
21552 if { (ac_try="$ac_compile"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21558 $as_echo "$ac_try_echo") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.$ac_objext; then
21569 pgac_cv_func_getpwuid_r_5arg=yes
21571 $as_echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 pgac_cv_func_getpwuid_r_5arg=no
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21580 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21581 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21583 cat >>confdefs.h <<\_ACEOF
21584 #define GETPWUID_R_5ARG /**/
21589 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21590 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21591 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21592 $as_echo_n "(cached) " >&6
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 #include <string.h>
21605 int strerror_r(int, char *, size_t);
21607 /* Older AIX has 'int' for the third argument so we don't test the args. */
21614 rm -f conftest.$ac_objext
21615 if { (ac_try="$ac_compile"
21616 case "(($ac_try" in
21617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618 *) ac_try_echo=$ac_try;;
21620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21621 $as_echo "$ac_try_echo") >&5
21622 (eval "$ac_compile") 2>conftest.er1
21624 grep -v '^ *+' conftest.er1 >conftest.err
21626 cat conftest.err >&5
21627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest.$ac_objext; then
21632 pgac_cv_func_strerror_r_int=yes
21634 $as_echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 pgac_cv_func_strerror_r_int=no
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21643 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21644 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21646 cat >>confdefs.h <<\_ACEOF
21647 #define STRERROR_R_INT /**/
21657 # do not use values from template file
21666 # We can test for libldap_r only after we know PTHREAD_LIBS
21667 if test "$with_ldap" = yes ; then
21669 if test "$PORTNAME" != "win32"; then
21671 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21672 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21673 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21674 $as_echo_n "(cached) " >&6
21676 ac_check_lib_save_LIBS=$LIBS
21677 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21685 /* Override any GCC internal prototype to avoid an error.
21686 Use char because int might match the return type of a GCC
21687 builtin and then its argument prototype would still apply. */
21695 return ldap_bind ();
21700 rm -f conftest.$ac_objext conftest$ac_exeext
21701 if { (ac_try="$ac_link"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21707 $as_echo "$ac_try_echo") >&5
21708 (eval "$ac_link") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest$ac_exeext && {
21718 test "$cross_compiling" = yes ||
21719 $as_test_x conftest$ac_exeext
21721 ac_cv_lib_ldap_ldap_bind=yes
21723 $as_echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726 ac_cv_lib_ldap_ldap_bind=no
21729 rm -rf conftest.dSYM
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731 conftest$ac_exeext conftest.$ac_ext
21732 LIBS=$ac_check_lib_save_LIBS
21734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
21735 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
21736 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
21737 cat >>confdefs.h <<_ACEOF
21738 #define HAVE_LIBLDAP 1
21741 LIBS="-lldap $LIBS"
21744 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
21745 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
21746 { (exit 1); exit 1; }; }
21749 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
21750 if test "$enable_thread_safety" = yes; then
21751 # on some platforms ldap_r fails to link without PTHREAD_LIBS
21753 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
21754 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
21755 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
21756 $as_echo_n "(cached) " >&6
21758 ac_check_lib_save_LIBS=$LIBS
21759 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
21760 cat >conftest.$ac_ext <<_ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21767 /* Override any GCC internal prototype to avoid an error.
21768 Use char because int might match the return type of a GCC
21769 builtin and then its argument prototype would still apply. */
21773 char ldap_simple_bind ();
21777 return ldap_simple_bind ();
21782 rm -f conftest.$ac_objext conftest$ac_exeext
21783 if { (ac_try="$ac_link"
21784 case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21789 $as_echo "$ac_try_echo") >&5
21790 (eval "$ac_link") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest$ac_exeext && {
21800 test "$cross_compiling" = yes ||
21801 $as_test_x conftest$ac_exeext
21803 ac_cv_lib_ldap_r_ldap_simple_bind=yes
21805 $as_echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_cv_lib_ldap_r_ldap_simple_bind=no
21811 rm -rf conftest.dSYM
21812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21813 conftest$ac_exeext conftest.$ac_ext
21814 LIBS=$ac_check_lib_save_LIBS
21816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
21817 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
21818 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
21819 cat >>confdefs.h <<_ACEOF
21820 #define HAVE_LIBLDAP_R 1
21823 LIBS="-lldap_r $LIBS"
21826 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
21827 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
21828 { (exit 1); exit 1; }; }
21831 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
21833 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
21837 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
21838 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
21839 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
21840 $as_echo_n "(cached) " >&6
21842 ac_check_lib_save_LIBS=$LIBS
21843 LIBS="-lwldap32 $LIBS"
21844 cat >conftest.$ac_ext <<_ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21851 /* Override any GCC internal prototype to avoid an error.
21852 Use char because int might match the return type of a GCC
21853 builtin and then its argument prototype would still apply. */
21861 return ldap_bind ();
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (ac_try="$ac_link"
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_link") 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_exeext && {
21884 test "$cross_compiling" = yes ||
21885 $as_test_x conftest$ac_exeext
21887 ac_cv_lib_wldap32_ldap_bind=yes
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_cv_lib_wldap32_ldap_bind=no
21895 rm -rf conftest.dSYM
21896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21897 conftest$ac_exeext conftest.$ac_ext
21898 LIBS=$ac_check_lib_save_LIBS
21900 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
21901 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
21902 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define HAVE_LIBWLDAP32 1
21907 LIBS="-lwldap32 $LIBS"
21910 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
21911 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
21912 { (exit 1); exit 1; }; }
21915 LDAP_LIBS_FE="-lwldap32"
21916 LDAP_LIBS_BE="-lwldap32"
21924 # This test makes sure that run tests work at all. Sometimes a shared
21925 # library is found by the linker, but the runtime linker can't find it.
21926 # This check should come after all modifications of compiler or linker
21927 # variables, and before any other run tests.
21928 { $as_echo "$as_me:$LINENO: checking test program" >&5
21929 $as_echo_n "checking test program... " >&6; }
21930 if test "$cross_compiling" = yes; then
21931 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
21932 $as_echo "cross-compiling" >&6; }
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 int main() { return 0; }
21942 rm -f conftest$ac_exeext
21943 if { (ac_try="$ac_link"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21949 $as_echo "$ac_try_echo") >&5
21950 (eval "$ac_link") 2>&5
21952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21954 { (case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21959 $as_echo "$ac_try_echo") >&5
21960 (eval "$ac_try") 2>&5
21962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 { $as_echo "$as_me:$LINENO: result: ok" >&5
21965 $as_echo "ok" >&6; }
21967 $as_echo "$as_me: program exited with status $ac_status" >&5
21968 $as_echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21971 ( exit $ac_status )
21972 { $as_echo "$as_me:$LINENO: result: failed" >&5
21973 $as_echo "failed" >&6; }
21974 { { $as_echo "$as_me:$LINENO: error:
21975 Could not execute a simple test program. This may be a problem
21976 related to locating shared libraries. Check the file 'config.log'
21977 for the exact reason." >&5
21978 $as_echo "$as_me: error:
21979 Could not execute a simple test program. This may be a problem
21980 related to locating shared libraries. Check the file 'config.log'
21981 for the exact reason." >&2;}
21982 { (exit 1); exit 1; }; }
21984 rm -rf conftest.dSYM
21985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21990 # --------------------
21991 # Run tests below here
21992 # --------------------
21994 # Force use of our snprintf if system's doesn't do arg control
21995 # See comment above at snprintf test for details.
21996 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
21997 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
21998 $as_echo_n "checking whether printf supports argument control... " >&6; }
21999 if test "${pgac_cv_printf_arg_control+set}" = set; then
22000 $as_echo_n "(cached) " >&6
22002 if test "$cross_compiling" = yes; then
22003 pgac_cv_printf_arg_control=cross
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22012 #include <string.h>
22018 /* can it swap arguments? */
22019 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
22020 if (strcmp(buf, "4 3") != 0)
22025 rm -f conftest$ac_exeext
22026 if { (ac_try="$ac_link"
22027 case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22032 $as_echo "$ac_try_echo") >&5
22033 (eval "$ac_link") 2>&5
22035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22037 { (case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22042 $as_echo "$ac_try_echo") >&5
22043 (eval "$ac_try") 2>&5
22045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 pgac_cv_printf_arg_control=yes
22049 $as_echo "$as_me: program exited with status $ac_status" >&5
22050 $as_echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 ( exit $ac_status )
22054 pgac_cv_printf_arg_control=no
22056 rm -rf conftest.dSYM
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22063 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22064 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22066 if test $pgac_cv_printf_arg_control != yes ; then
22067 pgac_need_repl_snprintf=yes
22073 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22074 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22075 if test "${pgac_cv_type_long_int_64+set}" = set; then
22076 $as_echo_n "(cached) " >&6
22078 if test "$cross_compiling" = yes; then
22079 # If cross-compiling, check the size reported by the compiler and
22080 # trust that the arithmetic works.
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22091 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22105 $as_echo "$ac_try_echo") >&5
22106 (eval "$ac_compile") 2>conftest.er1
22108 grep -v '^ *+' conftest.er1 >conftest.err
22110 cat conftest.err >&5
22111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && {
22113 test -z "$ac_c_werror_flag" ||
22114 test ! -s conftest.err
22115 } && test -s conftest.$ac_objext; then
22116 pgac_cv_type_long_int_64=yes
22118 $as_echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22121 pgac_cv_type_long_int_64=no
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 typedef long int ac_int64;
22135 * These are globals to discourage the compiler from folding all the
22136 * arithmetic tests down to compile-time constants.
22138 ac_int64 a = 20000001;
22139 ac_int64 b = 40000005;
22141 int does_int64_work()
22145 if (sizeof(ac_int64) != 8)
22146 return 0; /* definitely not the right size */
22148 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22156 exit(! does_int64_work());
22159 rm -f conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167 (eval "$ac_link") 2>&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171 { (case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_try") 2>&5
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22181 pgac_cv_type_long_int_64=yes
22183 $as_echo "$as_me: program exited with status $ac_status" >&5
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ( exit $ac_status )
22188 pgac_cv_type_long_int_64=no
22190 rm -rf conftest.dSYM
22191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22196 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22197 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22199 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22200 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22202 cat >>confdefs.h <<\_ACEOF
22203 #define HAVE_LONG_INT_64 1
22209 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22210 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22211 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22212 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22213 $as_echo_n "(cached) " >&6
22215 if test "$cross_compiling" = yes; then
22216 # If cross-compiling, check the size reported by the compiler and
22217 # trust that the arithmetic works.
22218 cat >conftest.$ac_ext <<_ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22228 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22242 $as_echo "$ac_try_echo") >&5
22243 (eval "$ac_compile") 2>conftest.er1
22245 grep -v '^ *+' conftest.er1 >conftest.err
22247 cat conftest.err >&5
22248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest.$ac_objext; then
22253 pgac_cv_type_long_long_int_64=yes
22255 $as_echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 pgac_cv_type_long_long_int_64=no
22261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 cat >conftest.$ac_ext <<_ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 typedef long long int ac_int64;
22272 * These are globals to discourage the compiler from folding all the
22273 * arithmetic tests down to compile-time constants.
22275 ac_int64 a = 20000001;
22276 ac_int64 b = 40000005;
22278 int does_int64_work()
22282 if (sizeof(ac_int64) != 8)
22283 return 0; /* definitely not the right size */
22285 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22293 exit(! does_int64_work());
22296 rm -f conftest$ac_exeext
22297 if { (ac_try="$ac_link"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304 (eval "$ac_link") 2>&5
22306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22308 { (case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22313 $as_echo "$ac_try_echo") >&5
22314 (eval "$ac_try") 2>&5
22316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 pgac_cv_type_long_long_int_64=yes
22320 $as_echo "$as_me: program exited with status $ac_status" >&5
22321 $as_echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22324 ( exit $ac_status )
22325 pgac_cv_type_long_long_int_64=no
22327 rm -rf conftest.dSYM
22328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22333 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22334 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22336 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22337 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22339 cat >>confdefs.h <<\_ACEOF
22340 #define HAVE_LONG_LONG_INT_64 1
22349 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22357 #define INT64CONST(x) x##LL
22358 long long int foo = INT64CONST(0x1234567890123456);
22368 rm -f conftest.$ac_objext
22369 if { (ac_try="$ac_compile"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22375 $as_echo "$ac_try_echo") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22387 cat >>confdefs.h <<\_ACEOF
22388 #define HAVE_LL_CONSTANTS 1
22392 $as_echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22402 # If we found "long int" is 64 bits, assume snprintf handles it. If
22403 # we found we need to use "long long int", better check. We cope with
22404 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
22405 # work, fall back to our own snprintf emulation (which we know uses %lld).
22407 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22408 if test $pgac_need_repl_snprintf = no; then
22409 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22410 $as_echo_n "checking snprintf format for long long int... " >&6; }
22411 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22412 $as_echo_n "(cached) " >&6
22414 for pgac_format in '%lld' '%qd' '%I64d'; do
22415 if test "$cross_compiling" = yes; then
22416 pgac_cv_snprintf_long_long_int_format=cross; break
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22425 typedef long long int ac_int64;
22426 #define INT64_FORMAT "$pgac_format"
22428 ac_int64 a = 20000001;
22429 ac_int64 b = 40000005;
22431 int does_int64_snprintf_work()
22436 if (sizeof(ac_int64) != 8)
22437 return 0; /* doesn't look like the right size */
22440 snprintf(buf, 100, INT64_FORMAT, c);
22441 if (strcmp(buf, "800000140000005") != 0)
22442 return 0; /* either multiply or snprintf is busted */
22446 exit(! does_int64_snprintf_work());
22449 rm -f conftest$ac_exeext
22450 if { (ac_try="$ac_link"
22451 case "(($ac_try" in
22452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453 *) ac_try_echo=$ac_try;;
22455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22456 $as_echo "$ac_try_echo") >&5
22457 (eval "$ac_link") 2>&5
22459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22461 { (case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22466 $as_echo "$ac_try_echo") >&5
22467 (eval "$ac_try") 2>&5
22469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22473 $as_echo "$as_me: program exited with status $ac_status" >&5
22474 $as_echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22478 rm -rf conftest.dSYM
22479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22486 LONG_LONG_INT_FORMAT=''
22488 case $pgac_cv_snprintf_long_long_int_format in
22489 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22490 $as_echo "cannot test (not on host machine)" >&6; };;
22491 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22492 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22493 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22494 *) { $as_echo "$as_me:$LINENO: result: none" >&5
22495 $as_echo "none" >&6; };;
22497 if test "$LONG_LONG_INT_FORMAT" = ""; then
22498 # Force usage of our own snprintf, since system snprintf is broken
22499 pgac_need_repl_snprintf=yes
22500 LONG_LONG_INT_FORMAT='%lld'
22503 # Here if we previously decided we needed to use our own snprintf
22504 LONG_LONG_INT_FORMAT='%lld'
22506 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22507 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22508 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22510 # Here if we are not using 'long long int' at all
22511 INT64_FORMAT='"%ld"'
22512 UINT64_FORMAT='"%lu"'
22516 cat >>confdefs.h <<_ACEOF
22517 #define INT64_FORMAT $INT64_FORMAT
22522 cat >>confdefs.h <<_ACEOF
22523 #define UINT64_FORMAT $UINT64_FORMAT
22527 # Now we have checked all the reasons to replace snprintf
22528 if test $pgac_need_repl_snprintf = yes; then
22530 cat >>confdefs.h <<\_ACEOF
22531 #define USE_REPL_SNPRINTF 1
22534 case " $LIBOBJS " in
22535 *" snprintf.$ac_objext "* ) ;;
22536 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22542 # Need a #define for the size of Datum (unsigned long)
22543 # The cast to long int works around a bug in the HP C Compiler
22544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22546 # This bug is HP SR number 8606223364.
22547 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
22548 $as_echo_n "checking size of unsigned long... " >&6; }
22549 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22550 $as_echo_n "(cached) " >&6
22552 if test "$cross_compiling" = yes; then
22553 # Depending upon the size, compute the lo and hi bounds.
22554 cat >conftest.$ac_ext <<_ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 $ac_includes_default
22564 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
22571 rm -f conftest.$ac_objext
22572 if { (ac_try="$ac_compile"
22573 case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22578 $as_echo "$ac_try_echo") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 $ac_includes_default
22601 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22615 $as_echo "$ac_try_echo") >&5
22616 (eval "$ac_compile") 2>conftest.er1
22618 grep -v '^ *+' conftest.er1 >conftest.err
22620 cat conftest.err >&5
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } && {
22623 test -z "$ac_c_werror_flag" ||
22624 test ! -s conftest.err
22625 } && test -s conftest.$ac_objext; then
22626 ac_hi=$ac_mid; break
22628 $as_echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22631 ac_lo=`expr $ac_mid + 1`
22632 if test $ac_lo -le $ac_mid; then
22636 ac_mid=`expr 2 '*' $ac_mid + 1`
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22642 $as_echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 $ac_includes_default
22655 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22669 $as_echo "$ac_try_echo") >&5
22670 (eval "$ac_compile") 2>conftest.er1
22672 grep -v '^ *+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest.$ac_objext; then
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 $ac_includes_default
22692 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
22699 rm -f conftest.$ac_objext
22700 if { (ac_try="$ac_compile"
22701 case "(($ac_try" in
22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22706 $as_echo "$ac_try_echo") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_lo=$ac_mid; break
22719 $as_echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_hi=`expr '(' $ac_mid ')' - 1`
22723 if test $ac_mid -le $ac_hi; then
22727 ac_mid=`expr 2 '*' $ac_mid`
22730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743 # Binary search between lo and hi bounds.
22744 while test "x$ac_lo" != "x$ac_hi"; do
22745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 $ac_includes_default
22756 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22770 $as_echo "$ac_try_echo") >&5
22771 (eval "$ac_compile") 2>conftest.er1
22773 grep -v '^ *+' conftest.er1 >conftest.err
22775 cat conftest.err >&5
22776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } && {
22778 test -z "$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22780 } && test -s conftest.$ac_objext; then
22783 $as_echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ac_lo=`expr '(' $ac_mid ')' + 1`
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22793 '') if test "$ac_cv_type_unsigned_long" = yes; then
22794 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22796 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22797 See \`config.log' for more details." >&5
22798 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22799 See \`config.log' for more details." >&2;}
22800 { (exit 77); exit 77; }; }; }
22802 ac_cv_sizeof_unsigned_long=0
22806 cat >conftest.$ac_ext <<_ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 $ac_includes_default
22813 static long int longval () { return (long int) (sizeof (unsigned long)); }
22814 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
22816 #include <stdlib.h>
22821 FILE *f = fopen ("conftest.val", "w");
22824 if (((long int) (sizeof (unsigned long))) < 0)
22826 long int i = longval ();
22827 if (i != ((long int) (sizeof (unsigned long))))
22829 fprintf (f, "%ld", i);
22833 unsigned long int i = ulongval ();
22834 if (i != ((long int) (sizeof (unsigned long))))
22836 fprintf (f, "%lu", i);
22838 /* Do not output a trailing newline, as this causes \r\n confusion
22839 on some platforms. */
22840 return ferror (f) || fclose (f) != 0;
22846 rm -f conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22853 $as_echo "$ac_try_echo") >&5
22854 (eval "$ac_link") 2>&5
22856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22858 { (case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22863 $as_echo "$ac_try_echo") >&5
22864 (eval "$ac_try") 2>&5
22866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 ac_cv_sizeof_unsigned_long=`cat conftest.val`
22870 $as_echo "$as_me: program exited with status $ac_status" >&5
22871 $as_echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 ( exit $ac_status )
22875 if test "$ac_cv_type_unsigned_long" = yes; then
22876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22878 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22879 See \`config.log' for more details." >&5
22880 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22881 See \`config.log' for more details." >&2;}
22882 { (exit 77); exit 77; }; }; }
22884 ac_cv_sizeof_unsigned_long=0
22887 rm -rf conftest.dSYM
22888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22892 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22893 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22897 cat >>confdefs.h <<_ACEOF
22898 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22903 # And check size of void *, size_t (enables tweaks for > 32bit address space)
22904 # The cast to long int works around a bug in the HP C Compiler
22905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22907 # This bug is HP SR number 8606223364.
22908 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22909 $as_echo_n "checking size of void *... " >&6; }
22910 if test "${ac_cv_sizeof_void_p+set}" = set; then
22911 $as_echo_n "(cached) " >&6
22913 if test "$cross_compiling" = yes; then
22914 # Depending upon the size, compute the lo and hi bounds.
22915 cat >conftest.$ac_ext <<_ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 $ac_includes_default
22925 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22939 $as_echo "$ac_try_echo") >&5
22940 (eval "$ac_compile") 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest.$ac_objext; then
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22962 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22969 rm -f conftest.$ac_objext
22970 if { (ac_try="$ac_compile"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22976 $as_echo "$ac_try_echo") >&5
22977 (eval "$ac_compile") 2>conftest.er1
22979 grep -v '^ *+' conftest.er1 >conftest.err
22981 cat conftest.err >&5
22982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } && {
22984 test -z "$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22986 } && test -s conftest.$ac_objext; then
22987 ac_hi=$ac_mid; break
22989 $as_echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_lo=`expr $ac_mid + 1`
22993 if test $ac_lo -le $ac_mid; then
22997 ac_mid=`expr 2 '*' $ac_mid + 1`
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23003 $as_echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 cat >conftest.$ac_ext <<_ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h. */
23012 $ac_includes_default
23016 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23023 rm -f conftest.$ac_objext
23024 if { (ac_try="$ac_compile"
23025 case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23030 $as_echo "$ac_try_echo") >&5
23031 (eval "$ac_compile") 2>conftest.er1
23033 grep -v '^ *+' conftest.er1 >conftest.err
23035 cat conftest.err >&5
23036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } && {
23038 test -z "$ac_c_werror_flag" ||
23039 test ! -s conftest.err
23040 } && test -s conftest.$ac_objext; then
23043 cat >conftest.$ac_ext <<_ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 $ac_includes_default
23053 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23067 $as_echo "$ac_try_echo") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_lo=$ac_mid; break
23080 $as_echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_hi=`expr '(' $ac_mid ')' - 1`
23084 if test $ac_mid -le $ac_hi; then
23088 ac_mid=`expr 2 '*' $ac_mid`
23091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094 $as_echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 # Binary search between lo and hi bounds.
23105 while test "x$ac_lo" != "x$ac_hi"; do
23106 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 $ac_includes_default
23117 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23124 rm -f conftest.$ac_objext
23125 if { (ac_try="$ac_compile"
23126 case "(($ac_try" in
23127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23128 *) ac_try_echo=$ac_try;;
23130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23131 $as_echo "$ac_try_echo") >&5
23132 (eval "$ac_compile") 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest.$ac_objext; then
23144 $as_echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ac_lo=`expr '(' $ac_mid ')' + 1`
23150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23154 '') if test "$ac_cv_type_void_p" = yes; then
23155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23157 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23158 See \`config.log' for more details." >&5
23159 $as_echo "$as_me: error: cannot compute sizeof (void *)
23160 See \`config.log' for more details." >&2;}
23161 { (exit 77); exit 77; }; }; }
23163 ac_cv_sizeof_void_p=0
23167 cat >conftest.$ac_ext <<_ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 $ac_includes_default
23174 static long int longval () { return (long int) (sizeof (void *)); }
23175 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23177 #include <stdlib.h>
23182 FILE *f = fopen ("conftest.val", "w");
23185 if (((long int) (sizeof (void *))) < 0)
23187 long int i = longval ();
23188 if (i != ((long int) (sizeof (void *))))
23190 fprintf (f, "%ld", i);
23194 unsigned long int i = ulongval ();
23195 if (i != ((long int) (sizeof (void *))))
23197 fprintf (f, "%lu", i);
23199 /* Do not output a trailing newline, as this causes \r\n confusion
23200 on some platforms. */
23201 return ferror (f) || fclose (f) != 0;
23207 rm -f conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23214 $as_echo "$ac_try_echo") >&5
23215 (eval "$ac_link") 2>&5
23217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23219 { (case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23224 $as_echo "$ac_try_echo") >&5
23225 (eval "$ac_try") 2>&5
23227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; }; then
23229 ac_cv_sizeof_void_p=`cat conftest.val`
23231 $as_echo "$as_me: program exited with status $ac_status" >&5
23232 $as_echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23235 ( exit $ac_status )
23236 if test "$ac_cv_type_void_p" = yes; then
23237 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23239 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23240 See \`config.log' for more details." >&5
23241 $as_echo "$as_me: error: cannot compute sizeof (void *)
23242 See \`config.log' for more details." >&2;}
23243 { (exit 77); exit 77; }; }; }
23245 ac_cv_sizeof_void_p=0
23248 rm -rf conftest.dSYM
23249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23253 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23254 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23258 cat >>confdefs.h <<_ACEOF
23259 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23263 # The cast to long int works around a bug in the HP C Compiler
23264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23266 # This bug is HP SR number 8606223364.
23267 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23268 $as_echo_n "checking size of size_t... " >&6; }
23269 if test "${ac_cv_sizeof_size_t+set}" = set; then
23270 $as_echo_n "(cached) " >&6
23272 if test "$cross_compiling" = yes; then
23273 # Depending upon the size, compute the lo and hi bounds.
23274 cat >conftest.$ac_ext <<_ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 $ac_includes_default
23284 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23298 $as_echo "$ac_try_echo") >&5
23299 (eval "$ac_compile") 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); } && {
23306 test -z "$ac_c_werror_flag" ||
23307 test ! -s conftest.err
23308 } && test -s conftest.$ac_objext; then
23311 cat >conftest.$ac_ext <<_ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h. */
23317 $ac_includes_default
23321 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23328 rm -f conftest.$ac_objext
23329 if { (ac_try="$ac_compile"
23330 case "(($ac_try" in
23331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332 *) ac_try_echo=$ac_try;;
23334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23335 $as_echo "$ac_try_echo") >&5
23336 (eval "$ac_compile") 2>conftest.er1
23338 grep -v '^ *+' conftest.er1 >conftest.err
23340 cat conftest.err >&5
23341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } && {
23343 test -z "$ac_c_werror_flag" ||
23344 test ! -s conftest.err
23345 } && test -s conftest.$ac_objext; then
23346 ac_hi=$ac_mid; break
23348 $as_echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23351 ac_lo=`expr $ac_mid + 1`
23352 if test $ac_lo -le $ac_mid; then
23356 ac_mid=`expr 2 '*' $ac_mid + 1`
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 $as_echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 $ac_includes_default
23375 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23382 rm -f conftest.$ac_objext
23383 if { (ac_try="$ac_compile"
23384 case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23389 $as_echo "$ac_try_echo") >&5
23390 (eval "$ac_compile") 2>conftest.er1
23392 grep -v '^ *+' conftest.er1 >conftest.err
23394 cat conftest.err >&5
23395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest.$ac_objext; then
23402 cat >conftest.$ac_ext <<_ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 $ac_includes_default
23412 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23419 rm -f conftest.$ac_objext
23420 if { (ac_try="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_compile") 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_lo=$ac_mid; break
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_hi=`expr '(' $ac_mid ')' - 1`
23443 if test $ac_mid -le $ac_hi; then
23447 ac_mid=`expr 2 '*' $ac_mid`
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453 $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 # Binary search between lo and hi bounds.
23464 while test "x$ac_lo" != "x$ac_hi"; do
23465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 $ac_includes_default
23476 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487 *) ac_try_echo=$ac_try;;
23489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23490 $as_echo "$ac_try_echo") >&5
23491 (eval "$ac_compile") 2>conftest.er1
23493 grep -v '^ *+' conftest.er1 >conftest.err
23495 cat conftest.err >&5
23496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest.$ac_objext; then
23503 $as_echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 ac_lo=`expr '(' $ac_mid ')' + 1`
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23513 '') if test "$ac_cv_type_size_t" = yes; then
23514 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23516 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23517 See \`config.log' for more details." >&5
23518 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23519 See \`config.log' for more details." >&2;}
23520 { (exit 77); exit 77; }; }; }
23522 ac_cv_sizeof_size_t=0
23526 cat >conftest.$ac_ext <<_ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h. */
23532 $ac_includes_default
23533 static long int longval () { return (long int) (sizeof (size_t)); }
23534 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23536 #include <stdlib.h>
23541 FILE *f = fopen ("conftest.val", "w");
23544 if (((long int) (sizeof (size_t))) < 0)
23546 long int i = longval ();
23547 if (i != ((long int) (sizeof (size_t))))
23549 fprintf (f, "%ld", i);
23553 unsigned long int i = ulongval ();
23554 if (i != ((long int) (sizeof (size_t))))
23556 fprintf (f, "%lu", i);
23558 /* Do not output a trailing newline, as this causes \r\n confusion
23559 on some platforms. */
23560 return ferror (f) || fclose (f) != 0;
23566 rm -f conftest$ac_exeext
23567 if { (ac_try="$ac_link"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23573 $as_echo "$ac_try_echo") >&5
23574 (eval "$ac_link") 2>&5
23576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23578 { (case "(($ac_try" in
23579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580 *) ac_try_echo=$ac_try;;
23582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23583 $as_echo "$ac_try_echo") >&5
23584 (eval "$ac_try") 2>&5
23586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; }; then
23588 ac_cv_sizeof_size_t=`cat conftest.val`
23590 $as_echo "$as_me: program exited with status $ac_status" >&5
23591 $as_echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23594 ( exit $ac_status )
23595 if test "$ac_cv_type_size_t" = yes; then
23596 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23598 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23599 See \`config.log' for more details." >&5
23600 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23601 See \`config.log' for more details." >&2;}
23602 { (exit 77); exit 77; }; }; }
23604 ac_cv_sizeof_size_t=0
23607 rm -rf conftest.dSYM
23608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23612 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23613 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23617 cat >>confdefs.h <<_ACEOF
23618 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23623 # Decide whether float4 is passed by value: user-selectable, enabled by default
23624 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23625 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23628 # Check whether --enable-float4-byval was given.
23629 if test "${enable_float4_byval+set}" = set; then
23630 enableval=$enable_float4_byval;
23634 cat >>confdefs.h <<\_ACEOF
23635 #define USE_FLOAT4_BYVAL 1
23638 float4passbyval=true
23641 float4passbyval=false
23644 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23645 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23646 { (exit 1); exit 1; }; }
23651 enable_float4_byval=yes
23653 cat >>confdefs.h <<\_ACEOF
23654 #define USE_FLOAT4_BYVAL 1
23657 float4passbyval=true
23661 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23662 $as_echo "$enable_float4_byval" >&6; }
23664 cat >>confdefs.h <<_ACEOF
23665 #define FLOAT4PASSBYVAL $float4passbyval
23669 # Decide whether float8 is passed by value.
23670 # Note: this setting also controls int8 and related types such as timestamp.
23671 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23672 # If not, trying to select it is an error.
23673 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23674 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23675 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
23678 # Check whether --enable-float8-byval was given.
23679 if test "${enable_float8_byval+set}" = set; then
23680 enableval=$enable_float8_byval;
23689 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23690 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23691 { (exit 1); exit 1; }; }
23696 enable_float8_byval=yes
23704 # Check whether --enable-float8-byval was given.
23705 if test "${enable_float8_byval+set}" = set; then
23706 enableval=$enable_float8_byval;
23715 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23716 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23717 { (exit 1); exit 1; }; }
23722 enable_float8_byval=no
23727 if test "$enable_float8_byval" = yes ; then
23728 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
23729 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
23730 { (exit 1); exit 1; }; }
23733 if test "$enable_float8_byval" = yes ; then
23735 cat >>confdefs.h <<\_ACEOF
23736 #define USE_FLOAT8_BYVAL 1
23739 float8passbyval=true
23741 float8passbyval=false
23743 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
23744 $as_echo "$enable_float8_byval" >&6; }
23746 cat >>confdefs.h <<_ACEOF
23747 #define FLOAT8PASSBYVAL $float8passbyval
23751 # Determine memory alignment requirements for the basic C data types.
23753 # The cast to long int works around a bug in the HP C Compiler,
23754 # see AC_CHECK_SIZEOF for more information.
23755 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
23756 $as_echo_n "checking alignment of short... " >&6; }
23757 if test "${ac_cv_alignof_short+set}" = set; then
23758 $as_echo_n "(cached) " >&6
23760 if test "$cross_compiling" = yes; then
23761 # Depending upon the size, compute the lo and hi bounds.
23762 cat >conftest.$ac_ext <<_ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23768 $ac_includes_default
23770 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23772 typedef struct { char x; short y; } ac__type_alignof_;
23776 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23783 rm -f conftest.$ac_objext
23784 if { (ac_try="$ac_compile"
23785 case "(($ac_try" in
23786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787 *) ac_try_echo=$ac_try;;
23789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23790 $as_echo "$ac_try_echo") >&5
23791 (eval "$ac_compile") 2>conftest.er1
23793 grep -v '^ *+' conftest.er1 >conftest.err
23795 cat conftest.err >&5
23796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && {
23798 test -z "$ac_c_werror_flag" ||
23799 test ! -s conftest.err
23800 } && test -s conftest.$ac_objext; then
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23809 $ac_includes_default
23811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23813 typedef struct { char x; short y; } ac__type_alignof_;
23817 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23824 rm -f conftest.$ac_objext
23825 if { (ac_try="$ac_compile"
23826 case "(($ac_try" in
23827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828 *) ac_try_echo=$ac_try;;
23830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23831 $as_echo "$ac_try_echo") >&5
23832 (eval "$ac_compile") 2>conftest.er1
23834 grep -v '^ *+' conftest.er1 >conftest.err
23836 cat conftest.err >&5
23837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } && {
23839 test -z "$ac_c_werror_flag" ||
23840 test ! -s conftest.err
23841 } && test -s conftest.$ac_objext; then
23842 ac_hi=$ac_mid; break
23844 $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23847 ac_lo=`expr $ac_mid + 1`
23848 if test $ac_lo -le $ac_mid; then
23852 ac_mid=`expr 2 '*' $ac_mid + 1`
23855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23858 $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 $ac_includes_default
23869 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23871 typedef struct { char x; short y; } ac__type_alignof_;
23875 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23882 rm -f conftest.$ac_objext
23883 if { (ac_try="$ac_compile"
23884 case "(($ac_try" in
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23889 $as_echo "$ac_try_echo") >&5
23890 (eval "$ac_compile") 2>conftest.er1
23892 grep -v '^ *+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); } && {
23897 test -z "$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23899 } && test -s conftest.$ac_objext; then
23902 cat >conftest.$ac_ext <<_ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23908 $ac_includes_default
23910 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23912 typedef struct { char x; short y; } ac__type_alignof_;
23916 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23930 $as_echo "$ac_try_echo") >&5
23931 (eval "$ac_compile") 2>conftest.er1
23933 grep -v '^ *+' conftest.er1 >conftest.err
23935 cat conftest.err >&5
23936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_c_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest.$ac_objext; then
23941 ac_lo=$ac_mid; break
23943 $as_echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23946 ac_hi=`expr '(' $ac_mid ')' - 1`
23947 if test $ac_mid -le $ac_hi; then
23951 ac_mid=`expr 2 '*' $ac_mid`
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957 $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23967 # Binary search between lo and hi bounds.
23968 while test "x$ac_lo" != "x$ac_hi"; do
23969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 $ac_includes_default
23978 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23980 typedef struct { char x; short y; } ac__type_alignof_;
23984 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23991 rm -f conftest.$ac_objext
23992 if { (ac_try="$ac_compile"
23993 case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23998 $as_echo "$ac_try_echo") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24001 grep -v '^ *+' conftest.er1 >conftest.err
24003 cat conftest.err >&5
24004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24011 $as_echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ac_lo=`expr '(' $ac_mid ')' + 1`
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24020 ?*) ac_cv_alignof_short=$ac_lo;;
24021 '') if test "$ac_cv_type_short" = yes; then
24022 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24024 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24025 See \`config.log' for more details." >&5
24026 $as_echo "$as_me: error: cannot compute alignment of short
24027 See \`config.log' for more details." >&2;}
24028 { (exit 77); exit 77; }; }; }
24030 ac_cv_alignof_short=0
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 $ac_includes_default
24042 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24044 typedef struct { char x; short y; } ac__type_alignof_;
24045 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24046 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24048 #include <stdlib.h>
24053 FILE *f = fopen ("conftest.val", "w");
24056 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24058 long int i = longval ();
24059 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24061 fprintf (f, "%ld", i);
24065 unsigned long int i = ulongval ();
24066 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24068 fprintf (f, "%lu", i);
24070 /* Do not output a trailing newline, as this causes \r\n confusion
24071 on some platforms. */
24072 return ferror (f) || fclose (f) != 0;
24078 rm -f conftest$ac_exeext
24079 if { (ac_try="$ac_link"
24080 case "(($ac_try" in
24081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24085 $as_echo "$ac_try_echo") >&5
24086 (eval "$ac_link") 2>&5
24088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24090 { (case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095 $as_echo "$ac_try_echo") >&5
24096 (eval "$ac_try") 2>&5
24098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 ac_cv_alignof_short=`cat conftest.val`
24102 $as_echo "$as_me: program exited with status $ac_status" >&5
24103 $as_echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24106 ( exit $ac_status )
24107 if test "$ac_cv_type_short" = yes; then
24108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24110 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24111 See \`config.log' for more details." >&5
24112 $as_echo "$as_me: error: cannot compute alignment of short
24113 See \`config.log' for more details." >&2;}
24114 { (exit 77); exit 77; }; }; }
24116 ac_cv_alignof_short=0
24119 rm -rf conftest.dSYM
24120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24124 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24125 $as_echo "$ac_cv_alignof_short" >&6; }
24129 cat >>confdefs.h <<_ACEOF
24130 #define ALIGNOF_SHORT $ac_cv_alignof_short
24134 # The cast to long int works around a bug in the HP C Compiler,
24135 # see AC_CHECK_SIZEOF for more information.
24136 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24137 $as_echo_n "checking alignment of int... " >&6; }
24138 if test "${ac_cv_alignof_int+set}" = set; then
24139 $as_echo_n "(cached) " >&6
24141 if test "$cross_compiling" = yes; then
24142 # Depending upon the size, compute the lo and hi bounds.
24143 cat >conftest.$ac_ext <<_ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 $ac_includes_default
24151 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24153 typedef struct { char x; int y; } ac__type_alignof_;
24157 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24171 $as_echo "$ac_try_echo") >&5
24172 (eval "$ac_compile") 2>conftest.er1
24174 grep -v '^ *+' conftest.er1 >conftest.err
24176 cat conftest.err >&5
24177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } && {
24179 test -z "$ac_c_werror_flag" ||
24180 test ! -s conftest.err
24181 } && test -s conftest.$ac_objext; then
24184 cat >conftest.$ac_ext <<_ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 $ac_includes_default
24192 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24194 typedef struct { char x; int y; } ac__type_alignof_;
24198 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24205 rm -f conftest.$ac_objext
24206 if { (ac_try="$ac_compile"
24207 case "(($ac_try" in
24208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24209 *) ac_try_echo=$ac_try;;
24211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24212 $as_echo "$ac_try_echo") >&5
24213 (eval "$ac_compile") 2>conftest.er1
24215 grep -v '^ *+' conftest.er1 >conftest.err
24217 cat conftest.err >&5
24218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest.$ac_objext; then
24223 ac_hi=$ac_mid; break
24225 $as_echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24228 ac_lo=`expr $ac_mid + 1`
24229 if test $ac_lo -le $ac_mid; then
24233 ac_mid=`expr 2 '*' $ac_mid + 1`
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24239 $as_echo "$as_me: failed program was:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24242 cat >conftest.$ac_ext <<_ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h. */
24248 $ac_includes_default
24250 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24252 typedef struct { char x; int y; } ac__type_alignof_;
24256 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24270 $as_echo "$ac_try_echo") >&5
24271 (eval "$ac_compile") 2>conftest.er1
24273 grep -v '^ *+' conftest.er1 >conftest.err
24275 cat conftest.err >&5
24276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } && {
24278 test -z "$ac_c_werror_flag" ||
24279 test ! -s conftest.err
24280 } && test -s conftest.$ac_objext; then
24283 cat >conftest.$ac_ext <<_ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289 $ac_includes_default
24291 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24293 typedef struct { char x; int y; } ac__type_alignof_;
24297 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24304 rm -f conftest.$ac_objext
24305 if { (ac_try="$ac_compile"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24314 grep -v '^ *+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24322 ac_lo=$ac_mid; break
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ac_hi=`expr '(' $ac_mid ')' - 1`
24328 if test $ac_mid -le $ac_hi; then
24332 ac_mid=`expr 2 '*' $ac_mid`
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 $as_echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24348 # Binary search between lo and hi bounds.
24349 while test "x$ac_lo" != "x$ac_hi"; do
24350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24351 cat >conftest.$ac_ext <<_ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 $ac_includes_default
24359 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24361 typedef struct { char x; int y; } ac__type_alignof_;
24365 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24372 rm -f conftest.$ac_objext
24373 if { (ac_try="$ac_compile"
24374 case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24379 $as_echo "$ac_try_echo") >&5
24380 (eval "$ac_compile") 2>conftest.er1
24382 grep -v '^ *+' conftest.er1 >conftest.err
24384 cat conftest.err >&5
24385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); } && {
24387 test -z "$ac_c_werror_flag" ||
24388 test ! -s conftest.err
24389 } && test -s conftest.$ac_objext; then
24392 $as_echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24395 ac_lo=`expr '(' $ac_mid ')' + 1`
24398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24401 ?*) ac_cv_alignof_int=$ac_lo;;
24402 '') if test "$ac_cv_type_int" = yes; then
24403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24405 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24406 See \`config.log' for more details." >&5
24407 $as_echo "$as_me: error: cannot compute alignment of int
24408 See \`config.log' for more details." >&2;}
24409 { (exit 77); exit 77; }; }; }
24411 ac_cv_alignof_int=0
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24421 $ac_includes_default
24423 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24425 typedef struct { char x; int y; } ac__type_alignof_;
24426 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24427 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24429 #include <stdlib.h>
24434 FILE *f = fopen ("conftest.val", "w");
24437 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24439 long int i = longval ();
24440 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24442 fprintf (f, "%ld", i);
24446 unsigned long int i = ulongval ();
24447 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24449 fprintf (f, "%lu", i);
24451 /* Do not output a trailing newline, as this causes \r\n confusion
24452 on some platforms. */
24453 return ferror (f) || fclose (f) != 0;
24459 rm -f conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24466 $as_echo "$ac_try_echo") >&5
24467 (eval "$ac_link") 2>&5
24469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24471 { (case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24476 $as_echo "$ac_try_echo") >&5
24477 (eval "$ac_try") 2>&5
24479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; }; then
24481 ac_cv_alignof_int=`cat conftest.val`
24483 $as_echo "$as_me: program exited with status $ac_status" >&5
24484 $as_echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24487 ( exit $ac_status )
24488 if test "$ac_cv_type_int" = yes; then
24489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24491 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24492 See \`config.log' for more details." >&5
24493 $as_echo "$as_me: error: cannot compute alignment of int
24494 See \`config.log' for more details." >&2;}
24495 { (exit 77); exit 77; }; }; }
24497 ac_cv_alignof_int=0
24500 rm -rf conftest.dSYM
24501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24505 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24506 $as_echo "$ac_cv_alignof_int" >&6; }
24510 cat >>confdefs.h <<_ACEOF
24511 #define ALIGNOF_INT $ac_cv_alignof_int
24515 # The cast to long int works around a bug in the HP C Compiler,
24516 # see AC_CHECK_SIZEOF for more information.
24517 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24518 $as_echo_n "checking alignment of long... " >&6; }
24519 if test "${ac_cv_alignof_long+set}" = set; then
24520 $as_echo_n "(cached) " >&6
24522 if test "$cross_compiling" = yes; then
24523 # Depending upon the size, compute the lo and hi bounds.
24524 cat >conftest.$ac_ext <<_ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h. */
24530 $ac_includes_default
24532 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24534 typedef struct { char x; long y; } ac__type_alignof_;
24538 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24545 rm -f conftest.$ac_objext
24546 if { (ac_try="$ac_compile"
24547 case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24552 $as_echo "$ac_try_echo") >&5
24553 (eval "$ac_compile") 2>conftest.er1
24555 grep -v '^ *+' conftest.er1 >conftest.err
24557 cat conftest.err >&5
24558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); } && {
24560 test -z "$ac_c_werror_flag" ||
24561 test ! -s conftest.err
24562 } && test -s conftest.$ac_objext; then
24565 cat >conftest.$ac_ext <<_ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 $ac_includes_default
24573 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24575 typedef struct { char x; long y; } ac__type_alignof_;
24579 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24586 rm -f conftest.$ac_objext
24587 if { (ac_try="$ac_compile"
24588 case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593 $as_echo "$ac_try_echo") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24596 grep -v '^ *+' conftest.er1 >conftest.err
24598 cat conftest.err >&5
24599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24604 ac_hi=$ac_mid; break
24606 $as_echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_lo=`expr $ac_mid + 1`
24610 if test $ac_lo -le $ac_mid; then
24614 ac_mid=`expr 2 '*' $ac_mid + 1`
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24620 $as_echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 $ac_includes_default
24631 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24633 typedef struct { char x; long y; } ac__type_alignof_;
24637 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24651 $as_echo "$ac_try_echo") >&5
24652 (eval "$ac_compile") 2>conftest.er1
24654 grep -v '^ *+' conftest.er1 >conftest.err
24656 cat conftest.err >&5
24657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } && {
24659 test -z "$ac_c_werror_flag" ||
24660 test ! -s conftest.err
24661 } && test -s conftest.$ac_objext; then
24664 cat >conftest.$ac_ext <<_ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24670 $ac_includes_default
24672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24674 typedef struct { char x; long y; } ac__type_alignof_;
24678 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24685 rm -f conftest.$ac_objext
24686 if { (ac_try="$ac_compile"
24687 case "(($ac_try" in
24688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689 *) ac_try_echo=$ac_try;;
24691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24692 $as_echo "$ac_try_echo") >&5
24693 (eval "$ac_compile") 2>conftest.er1
24695 grep -v '^ *+' conftest.er1 >conftest.err
24697 cat conftest.err >&5
24698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } && {
24700 test -z "$ac_c_werror_flag" ||
24701 test ! -s conftest.err
24702 } && test -s conftest.$ac_objext; then
24703 ac_lo=$ac_mid; break
24705 $as_echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 ac_hi=`expr '(' $ac_mid ')' - 1`
24709 if test $ac_mid -le $ac_hi; then
24713 ac_mid=`expr 2 '*' $ac_mid`
24716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719 $as_echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24729 # Binary search between lo and hi bounds.
24730 while test "x$ac_lo" != "x$ac_hi"; do
24731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24732 cat >conftest.$ac_ext <<_ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 $ac_includes_default
24740 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24742 typedef struct { char x; long y; } ac__type_alignof_;
24746 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24753 rm -f conftest.$ac_objext
24754 if { (ac_try="$ac_compile"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761 (eval "$ac_compile") 2>conftest.er1
24763 grep -v '^ *+' conftest.er1 >conftest.err
24765 cat conftest.err >&5
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest.$ac_objext; then
24773 $as_echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_lo=`expr '(' $ac_mid ')' + 1`
24779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24782 ?*) ac_cv_alignof_long=$ac_lo;;
24783 '') if test "$ac_cv_type_long" = yes; then
24784 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24786 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24787 See \`config.log' for more details." >&5
24788 $as_echo "$as_me: error: cannot compute alignment of long
24789 See \`config.log' for more details." >&2;}
24790 { (exit 77); exit 77; }; }; }
24792 ac_cv_alignof_long=0
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 $ac_includes_default
24804 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24806 typedef struct { char x; long y; } ac__type_alignof_;
24807 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24808 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24810 #include <stdlib.h>
24815 FILE *f = fopen ("conftest.val", "w");
24818 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24820 long int i = longval ();
24821 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24823 fprintf (f, "%ld", i);
24827 unsigned long int i = ulongval ();
24828 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24830 fprintf (f, "%lu", i);
24832 /* Do not output a trailing newline, as this causes \r\n confusion
24833 on some platforms. */
24834 return ferror (f) || fclose (f) != 0;
24840 rm -f conftest$ac_exeext
24841 if { (ac_try="$ac_link"
24842 case "(($ac_try" in
24843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 *) ac_try_echo=$ac_try;;
24846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24847 $as_echo "$ac_try_echo") >&5
24848 (eval "$ac_link") 2>&5
24850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24852 { (case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857 $as_echo "$ac_try_echo") >&5
24858 (eval "$ac_try") 2>&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; }; then
24862 ac_cv_alignof_long=`cat conftest.val`
24864 $as_echo "$as_me: program exited with status $ac_status" >&5
24865 $as_echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 ( exit $ac_status )
24869 if test "$ac_cv_type_long" = yes; then
24870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24872 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24873 See \`config.log' for more details." >&5
24874 $as_echo "$as_me: error: cannot compute alignment of long
24875 See \`config.log' for more details." >&2;}
24876 { (exit 77); exit 77; }; }; }
24878 ac_cv_alignof_long=0
24881 rm -rf conftest.dSYM
24882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24886 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
24887 $as_echo "$ac_cv_alignof_long" >&6; }
24891 cat >>confdefs.h <<_ACEOF
24892 #define ALIGNOF_LONG $ac_cv_alignof_long
24896 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24897 # The cast to long int works around a bug in the HP C Compiler,
24898 # see AC_CHECK_SIZEOF for more information.
24899 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
24900 $as_echo_n "checking alignment of long long int... " >&6; }
24901 if test "${ac_cv_alignof_long_long_int+set}" = set; then
24902 $as_echo_n "(cached) " >&6
24904 if test "$cross_compiling" = yes; then
24905 # Depending upon the size, compute the lo and hi bounds.
24906 cat >conftest.$ac_ext <<_ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 $ac_includes_default
24914 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24916 typedef struct { char x; long long int y; } ac__type_alignof_;
24920 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934 $as_echo "$ac_try_echo") >&5
24935 (eval "$ac_compile") 2>conftest.er1
24937 grep -v '^ *+' conftest.er1 >conftest.err
24939 cat conftest.err >&5
24940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } && {
24942 test -z "$ac_c_werror_flag" ||
24943 test ! -s conftest.err
24944 } && test -s conftest.$ac_objext; then
24947 cat >conftest.$ac_ext <<_ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953 $ac_includes_default
24955 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24957 typedef struct { char x; long long int y; } ac__type_alignof_;
24961 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24975 $as_echo "$ac_try_echo") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24978 grep -v '^ *+' conftest.er1 >conftest.err
24980 cat conftest.err >&5
24981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest.$ac_objext; then
24986 ac_hi=$ac_mid; break
24988 $as_echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24991 ac_lo=`expr $ac_mid + 1`
24992 if test $ac_lo -le $ac_mid; then
24996 ac_mid=`expr 2 '*' $ac_mid + 1`
24999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 $as_echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25005 cat >conftest.$ac_ext <<_ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25011 $ac_includes_default
25013 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25015 typedef struct { char x; long long int y; } ac__type_alignof_;
25019 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033 $as_echo "$ac_try_echo") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25046 cat >conftest.$ac_ext <<_ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 $ac_includes_default
25054 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25056 typedef struct { char x; long long int y; } ac__type_alignof_;
25060 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25067 rm -f conftest.$ac_objext
25068 if { (ac_try="$ac_compile"
25069 case "(($ac_try" in
25070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071 *) ac_try_echo=$ac_try;;
25073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25074 $as_echo "$ac_try_echo") >&5
25075 (eval "$ac_compile") 2>conftest.er1
25077 grep -v '^ *+' conftest.er1 >conftest.err
25079 cat conftest.err >&5
25080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } && {
25082 test -z "$ac_c_werror_flag" ||
25083 test ! -s conftest.err
25084 } && test -s conftest.$ac_objext; then
25085 ac_lo=$ac_mid; break
25087 $as_echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25090 ac_hi=`expr '(' $ac_mid ')' - 1`
25091 if test $ac_mid -le $ac_hi; then
25095 ac_mid=`expr 2 '*' $ac_mid`
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 $as_echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111 # Binary search between lo and hi bounds.
25112 while test "x$ac_lo" != "x$ac_hi"; do
25113 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25114 cat >conftest.$ac_ext <<_ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25120 $ac_includes_default
25122 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25124 typedef struct { char x; long long int y; } ac__type_alignof_;
25128 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25142 $as_echo "$ac_try_echo") >&5
25143 (eval "$ac_compile") 2>conftest.er1
25145 grep -v '^ *+' conftest.er1 >conftest.err
25147 cat conftest.err >&5
25148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } && {
25150 test -z "$ac_c_werror_flag" ||
25151 test ! -s conftest.err
25152 } && test -s conftest.$ac_objext; then
25155 $as_echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25158 ac_lo=`expr '(' $ac_mid ')' + 1`
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25165 '') if test "$ac_cv_type_long_long_int" = yes; then
25166 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25168 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25169 See \`config.log' for more details." >&5
25170 $as_echo "$as_me: error: cannot compute alignment of long long int
25171 See \`config.log' for more details." >&2;}
25172 { (exit 77); exit 77; }; }; }
25174 ac_cv_alignof_long_long_int=0
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 $ac_includes_default
25186 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25188 typedef struct { char x; long long int y; } ac__type_alignof_;
25189 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25190 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25192 #include <stdlib.h>
25197 FILE *f = fopen ("conftest.val", "w");
25200 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25202 long int i = longval ();
25203 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25205 fprintf (f, "%ld", i);
25209 unsigned long int i = ulongval ();
25210 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25212 fprintf (f, "%lu", i);
25214 /* Do not output a trailing newline, as this causes \r\n confusion
25215 on some platforms. */
25216 return ferror (f) || fclose (f) != 0;
25222 rm -f conftest$ac_exeext
25223 if { (ac_try="$ac_link"
25224 case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25229 $as_echo "$ac_try_echo") >&5
25230 (eval "$ac_link") 2>&5
25232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234 { (case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25239 $as_echo "$ac_try_echo") >&5
25240 (eval "$ac_try") 2>&5
25242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244 ac_cv_alignof_long_long_int=`cat conftest.val`
25246 $as_echo "$as_me: program exited with status $ac_status" >&5
25247 $as_echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25250 ( exit $ac_status )
25251 if test "$ac_cv_type_long_long_int" = yes; then
25252 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25254 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25255 See \`config.log' for more details." >&5
25256 $as_echo "$as_me: error: cannot compute alignment of long long int
25257 See \`config.log' for more details." >&2;}
25258 { (exit 77); exit 77; }; }; }
25260 ac_cv_alignof_long_long_int=0
25263 rm -rf conftest.dSYM
25264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25268 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25269 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25273 cat >>confdefs.h <<_ACEOF
25274 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25279 # The cast to long int works around a bug in the HP C Compiler,
25280 # see AC_CHECK_SIZEOF for more information.
25281 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25282 $as_echo_n "checking alignment of double... " >&6; }
25283 if test "${ac_cv_alignof_double+set}" = set; then
25284 $as_echo_n "(cached) " >&6
25286 if test "$cross_compiling" = yes; then
25287 # Depending upon the size, compute the lo and hi bounds.
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25294 $ac_includes_default
25296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25298 typedef struct { char x; double y; } ac__type_alignof_;
25302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25316 $as_echo "$ac_try_echo") >&5
25317 (eval "$ac_compile") 2>conftest.er1
25319 grep -v '^ *+' conftest.er1 >conftest.err
25321 cat conftest.err >&5
25322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest.$ac_objext; then
25329 cat >conftest.$ac_ext <<_ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 $ac_includes_default
25337 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25339 typedef struct { char x; double y; } ac__type_alignof_;
25343 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25350 rm -f conftest.$ac_objext
25351 if { (ac_try="$ac_compile"
25352 case "(($ac_try" in
25353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354 *) ac_try_echo=$ac_try;;
25356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25357 $as_echo "$ac_try_echo") >&5
25358 (eval "$ac_compile") 2>conftest.er1
25360 grep -v '^ *+' conftest.er1 >conftest.err
25362 cat conftest.err >&5
25363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } && {
25365 test -z "$ac_c_werror_flag" ||
25366 test ! -s conftest.err
25367 } && test -s conftest.$ac_objext; then
25368 ac_hi=$ac_mid; break
25370 $as_echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25373 ac_lo=`expr $ac_mid + 1`
25374 if test $ac_lo -le $ac_mid; then
25378 ac_mid=`expr 2 '*' $ac_mid + 1`
25381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25384 $as_echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25387 cat >conftest.$ac_ext <<_ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h. */
25393 $ac_includes_default
25395 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25397 typedef struct { char x; double y; } ac__type_alignof_;
25401 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25408 rm -f conftest.$ac_objext
25409 if { (ac_try="$ac_compile"
25410 case "(($ac_try" in
25411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412 *) ac_try_echo=$ac_try;;
25414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25415 $as_echo "$ac_try_echo") >&5
25416 (eval "$ac_compile") 2>conftest.er1
25418 grep -v '^ *+' conftest.er1 >conftest.err
25420 cat conftest.err >&5
25421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); } && {
25423 test -z "$ac_c_werror_flag" ||
25424 test ! -s conftest.err
25425 } && test -s conftest.$ac_objext; then
25428 cat >conftest.$ac_ext <<_ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h. */
25434 $ac_includes_default
25436 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25438 typedef struct { char x; double y; } ac__type_alignof_;
25442 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25456 $as_echo "$ac_try_echo") >&5
25457 (eval "$ac_compile") 2>conftest.er1
25459 grep -v '^ *+' conftest.er1 >conftest.err
25461 cat conftest.err >&5
25462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } && {
25464 test -z "$ac_c_werror_flag" ||
25465 test ! -s conftest.err
25466 } && test -s conftest.$ac_objext; then
25467 ac_lo=$ac_mid; break
25469 $as_echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 ac_hi=`expr '(' $ac_mid ')' - 1`
25473 if test $ac_mid -le $ac_hi; then
25477 ac_mid=`expr 2 '*' $ac_mid`
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 $as_echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 # Binary search between lo and hi bounds.
25494 while test "x$ac_lo" != "x$ac_hi"; do
25495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 $ac_includes_default
25504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25506 typedef struct { char x; double y; } ac__type_alignof_;
25510 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25524 $as_echo "$ac_try_echo") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25537 $as_echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_lo=`expr '(' $ac_mid ')' + 1`
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25546 ?*) ac_cv_alignof_double=$ac_lo;;
25547 '') if test "$ac_cv_type_double" = yes; then
25548 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25550 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25551 See \`config.log' for more details." >&5
25552 $as_echo "$as_me: error: cannot compute alignment of double
25553 See \`config.log' for more details." >&2;}
25554 { (exit 77); exit 77; }; }; }
25556 ac_cv_alignof_double=0
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25566 $ac_includes_default
25568 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25570 typedef struct { char x; double y; } ac__type_alignof_;
25571 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25572 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25574 #include <stdlib.h>
25579 FILE *f = fopen ("conftest.val", "w");
25582 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25584 long int i = longval ();
25585 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25587 fprintf (f, "%ld", i);
25591 unsigned long int i = ulongval ();
25592 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25594 fprintf (f, "%lu", i);
25596 /* Do not output a trailing newline, as this causes \r\n confusion
25597 on some platforms. */
25598 return ferror (f) || fclose (f) != 0;
25604 rm -f conftest$ac_exeext
25605 if { (ac_try="$ac_link"
25606 case "(($ac_try" in
25607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25608 *) ac_try_echo=$ac_try;;
25610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25611 $as_echo "$ac_try_echo") >&5
25612 (eval "$ac_link") 2>&5
25614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25616 { (case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25621 $as_echo "$ac_try_echo") >&5
25622 (eval "$ac_try") 2>&5
25624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 ac_cv_alignof_double=`cat conftest.val`
25628 $as_echo "$as_me: program exited with status $ac_status" >&5
25629 $as_echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25632 ( exit $ac_status )
25633 if test "$ac_cv_type_double" = yes; then
25634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25636 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25637 See \`config.log' for more details." >&5
25638 $as_echo "$as_me: error: cannot compute alignment of double
25639 See \`config.log' for more details." >&2;}
25640 { (exit 77); exit 77; }; }; }
25642 ac_cv_alignof_double=0
25645 rm -rf conftest.dSYM
25646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25650 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25651 $as_echo "$ac_cv_alignof_double" >&6; }
25655 cat >>confdefs.h <<_ACEOF
25656 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25661 # Compute maximum alignment of any basic type.
25662 # We assume long's alignment is at least as strong as char, short, or int;
25663 # but we must check long long (if it exists) and double.
25665 MAX_ALIGNOF=$ac_cv_alignof_long
25666 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25667 MAX_ALIGNOF=$ac_cv_alignof_double
25669 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25670 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25673 cat >>confdefs.h <<_ACEOF
25674 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25679 # Some platforms predefine the types int8, int16, etc. Only check
25680 # a (hopefully) representative subset.
25681 { $as_echo "$as_me:$LINENO: checking for int8" >&5
25682 $as_echo_n "checking for int8... " >&6; }
25683 if test "${ac_cv_type_int8+set}" = set; then
25684 $as_echo_n "(cached) " >&6
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25694 #ifdef HAVE_SUPPORTDEFS_H
25695 #include <SupportDefs.h>
25707 rm -f conftest.$ac_objext
25708 if { (ac_try="$ac_compile"
25709 case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25714 $as_echo "$ac_try_echo") >&5
25715 (eval "$ac_compile") 2>conftest.er1
25717 grep -v '^ *+' conftest.er1 >conftest.err
25719 cat conftest.err >&5
25720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); } && {
25722 test -z "$ac_c_werror_flag" ||
25723 test ! -s conftest.err
25724 } && test -s conftest.$ac_objext; then
25725 cat >conftest.$ac_ext <<_ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25732 #ifdef HAVE_SUPPORTDEFS_H
25733 #include <SupportDefs.h>
25739 if (sizeof ((int8)))
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25752 $as_echo "$ac_try_echo") >&5
25753 (eval "$ac_compile") 2>conftest.er1
25755 grep -v '^ *+' conftest.er1 >conftest.err
25757 cat conftest.err >&5
25758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && {
25760 test -z "$ac_c_werror_flag" ||
25761 test ! -s conftest.err
25762 } && test -s conftest.$ac_objext; then
25765 $as_echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25768 ac_cv_type_int8=yes
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 $as_echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
25782 $as_echo "$ac_cv_type_int8" >&6; }
25783 if test "x$ac_cv_type_int8" = x""yes; then
25785 cat >>confdefs.h <<_ACEOF
25786 #define HAVE_INT8 1
25791 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
25792 $as_echo_n "checking for uint8... " >&6; }
25793 if test "${ac_cv_type_uint8+set}" = set; then
25794 $as_echo_n "(cached) " >&6
25796 ac_cv_type_uint8=no
25797 cat >conftest.$ac_ext <<_ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h. */
25804 #ifdef HAVE_SUPPORTDEFS_H
25805 #include <SupportDefs.h>
25811 if (sizeof (uint8))
25817 rm -f conftest.$ac_objext
25818 if { (ac_try="$ac_compile"
25819 case "(($ac_try" in
25820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821 *) ac_try_echo=$ac_try;;
25823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25824 $as_echo "$ac_try_echo") >&5
25825 (eval "$ac_compile") 2>conftest.er1
25827 grep -v '^ *+' conftest.er1 >conftest.err
25829 cat conftest.err >&5
25830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); } && {
25832 test -z "$ac_c_werror_flag" ||
25833 test ! -s conftest.err
25834 } && test -s conftest.$ac_objext; then
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25842 #ifdef HAVE_SUPPORTDEFS_H
25843 #include <SupportDefs.h>
25849 if (sizeof ((uint8)))
25855 rm -f conftest.$ac_objext
25856 if { (ac_try="$ac_compile"
25857 case "(($ac_try" in
25858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859 *) ac_try_echo=$ac_try;;
25861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25862 $as_echo "$ac_try_echo") >&5
25863 (eval "$ac_compile") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest.$ac_objext; then
25875 $as_echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_cv_type_uint8=yes
25881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25883 $as_echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
25892 $as_echo "$ac_cv_type_uint8" >&6; }
25893 if test "x$ac_cv_type_uint8" = x""yes; then
25895 cat >>confdefs.h <<_ACEOF
25896 #define HAVE_UINT8 1
25901 { $as_echo "$as_me:$LINENO: checking for int64" >&5
25902 $as_echo_n "checking for int64... " >&6; }
25903 if test "${ac_cv_type_int64+set}" = set; then
25904 $as_echo_n "(cached) " >&6
25906 ac_cv_type_int64=no
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25914 #ifdef HAVE_SUPPORTDEFS_H
25915 #include <SupportDefs.h>
25921 if (sizeof (int64))
25927 rm -f conftest.$ac_objext
25928 if { (ac_try="$ac_compile"
25929 case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25934 $as_echo "$ac_try_echo") >&5
25935 (eval "$ac_compile") 2>conftest.er1
25937 grep -v '^ *+' conftest.er1 >conftest.err
25939 cat conftest.err >&5
25940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); } && {
25942 test -z "$ac_c_werror_flag" ||
25943 test ! -s conftest.err
25944 } && test -s conftest.$ac_objext; then
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25952 #ifdef HAVE_SUPPORTDEFS_H
25953 #include <SupportDefs.h>
25959 if (sizeof ((int64)))
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969 *) ac_try_echo=$ac_try;;
25971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25972 $as_echo "$ac_try_echo") >&5
25973 (eval "$ac_compile") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest.$ac_objext; then
25985 $as_echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25988 ac_cv_type_int64=yes
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 $as_echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26001 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
26002 $as_echo "$ac_cv_type_int64" >&6; }
26003 if test "x$ac_cv_type_int64" = x""yes; then
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_INT64 1
26011 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
26012 $as_echo_n "checking for uint64... " >&6; }
26013 if test "${ac_cv_type_uint64+set}" = set; then
26014 $as_echo_n "(cached) " >&6
26016 ac_cv_type_uint64=no
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26024 #ifdef HAVE_SUPPORTDEFS_H
26025 #include <SupportDefs.h>
26031 if (sizeof (uint64))
26037 rm -f conftest.$ac_objext
26038 if { (ac_try="$ac_compile"
26039 case "(($ac_try" in
26040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26041 *) ac_try_echo=$ac_try;;
26043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26044 $as_echo "$ac_try_echo") >&5
26045 (eval "$ac_compile") 2>conftest.er1
26047 grep -v '^ *+' conftest.er1 >conftest.err
26049 cat conftest.err >&5
26050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); } && {
26052 test -z "$ac_c_werror_flag" ||
26053 test ! -s conftest.err
26054 } && test -s conftest.$ac_objext; then
26055 cat >conftest.$ac_ext <<_ACEOF
26058 cat confdefs.h >>conftest.$ac_ext
26059 cat >>conftest.$ac_ext <<_ACEOF
26060 /* end confdefs.h. */
26062 #ifdef HAVE_SUPPORTDEFS_H
26063 #include <SupportDefs.h>
26069 if (sizeof ((uint64)))
26075 rm -f conftest.$ac_objext
26076 if { (ac_try="$ac_compile"
26077 case "(($ac_try" in
26078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079 *) ac_try_echo=$ac_try;;
26081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26082 $as_echo "$ac_try_echo") >&5
26083 (eval "$ac_compile") 2>conftest.er1
26085 grep -v '^ *+' conftest.er1 >conftest.err
26087 cat conftest.err >&5
26088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); } && {
26090 test -z "$ac_c_werror_flag" ||
26091 test ! -s conftest.err
26092 } && test -s conftest.$ac_objext; then
26095 $as_echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26098 ac_cv_type_uint64=yes
26101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26103 $as_echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.$ac_ext >&5
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26112 $as_echo "$ac_cv_type_uint64" >&6; }
26113 if test "x$ac_cv_type_uint64" = x""yes; then
26115 cat >>confdefs.h <<_ACEOF
26116 #define HAVE_UINT64 1
26123 # We also check for sig_atomic_t, which *should* be defined per ANSI
26124 # C, but is missing on some old platforms.
26125 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26126 $as_echo_n "checking for sig_atomic_t... " >&6; }
26127 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26128 $as_echo_n "(cached) " >&6
26130 ac_cv_type_sig_atomic_t=no
26131 cat >conftest.$ac_ext <<_ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h. */
26137 #include <signal.h>
26142 if (sizeof (sig_atomic_t))
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26158 grep -v '^ *+' conftest.er1 >conftest.err
26160 cat conftest.err >&5
26161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26166 cat >conftest.$ac_ext <<_ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 #include <signal.h>
26177 if (sizeof ((sig_atomic_t)))
26183 rm -f conftest.$ac_objext
26184 if { (ac_try="$ac_compile"
26185 case "(($ac_try" in
26186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187 *) ac_try_echo=$ac_try;;
26189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26190 $as_echo "$ac_try_echo") >&5
26191 (eval "$ac_compile") 2>conftest.er1
26193 grep -v '^ *+' conftest.er1 >conftest.err
26195 cat conftest.err >&5
26196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } && {
26198 test -z "$ac_c_werror_flag" ||
26199 test ! -s conftest.err
26200 } && test -s conftest.$ac_objext; then
26203 $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_cv_type_sig_atomic_t=yes
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 $as_echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26220 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26221 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26223 cat >>confdefs.h <<_ACEOF
26224 #define HAVE_SIG_ATOMIC_T 1
26232 # If the user did not disable integer datetimes, check that
26233 # there is a working 64-bit integral type to use.
26234 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
26235 test x"$HAVE_LONG_INT_64" = x"no" &&
26236 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
26237 test x"$HAVE_INT64" = x"no" ; then
26238 { { $as_echo "$as_me:$LINENO: error:
26239 Integer-based datetime support requires a 64-bit integer type,
26240 but no such type could be found. The --disable-integer-datetimes
26241 configure option can be used to disable integer-based storage
26242 of datetime values." >&5
26243 $as_echo "$as_me: error:
26244 Integer-based datetime support requires a 64-bit integer type,
26245 but no such type could be found. The --disable-integer-datetimes
26246 configure option can be used to disable integer-based storage
26247 of datetime values." >&2;}
26248 { (exit 1); exit 1; }; }
26252 if test "$PORTNAME" != "win32"
26254 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26255 $as_echo_n "checking for POSIX signal interface... " >&6; }
26256 if test "${pgac_cv_func_posix_signals+set}" = set; then
26257 $as_echo_n "(cached) " >&6
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26265 #include <signal.h>
26270 struct sigaction act, oact;
26271 sigemptyset(&act.sa_mask);
26272 act.sa_flags = SA_RESTART;
26273 sigaction(0, &act, &oact);
26278 rm -f conftest.$ac_objext conftest$ac_exeext
26279 if { (ac_try="$ac_link"
26280 case "(($ac_try" in
26281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26285 $as_echo "$ac_try_echo") >&5
26286 (eval "$ac_link") 2>conftest.er1
26288 grep -v '^ *+' conftest.er1 >conftest.err
26290 cat conftest.err >&5
26291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); } && {
26293 test -z "$ac_c_werror_flag" ||
26294 test ! -s conftest.err
26295 } && test -s conftest$ac_exeext && {
26296 test "$cross_compiling" = yes ||
26297 $as_test_x conftest$ac_exeext
26299 pgac_cv_func_posix_signals=yes
26301 $as_echo "$as_me: failed program was:" >&5
26302 sed 's/^/| /' conftest.$ac_ext >&5
26304 pgac_cv_func_posix_signals=no
26307 rm -rf conftest.dSYM
26308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26309 conftest$ac_exeext conftest.$ac_ext
26311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26312 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26313 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26315 cat >>confdefs.h <<\_ACEOF
26316 #define HAVE_POSIX_SIGNALS /**/
26320 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26322 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26323 { { $as_echo "$as_me:$LINENO: error:
26324 Thread-safety requires POSIX signals, which are not supported by this
26325 operating system; use --disable-thread-safety to disable thread safety." >&5
26326 $as_echo "$as_me: error:
26327 Thread-safety requires POSIX signals, which are not supported by this
26328 operating system; use --disable-thread-safety to disable thread safety." >&2;}
26329 { (exit 1); exit 1; }; }
26333 if test $ac_cv_func_fseeko = yes; then
26334 # Check whether --enable-largefile was given.
26335 if test "${enable_largefile+set}" = set; then
26336 enableval=$enable_largefile;
26339 if test "$enable_largefile" != no; then
26341 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26342 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26343 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26344 $as_echo_n "(cached) " >&6
26346 ac_cv_sys_largefile_CC=no
26347 if test "$GCC" != yes; then
26350 # IRIX 6.2 and later do not support large files by default,
26351 # so use the C compiler's -n32 option if that helps.
26352 cat >conftest.$ac_ext <<_ACEOF
26355 cat confdefs.h >>conftest.$ac_ext
26356 cat >>conftest.$ac_ext <<_ACEOF
26357 /* end confdefs.h. */
26358 #include <sys/types.h>
26359 /* Check that off_t can represent 2**63 - 1 correctly.
26360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26361 since some C++ compilers masquerading as C compilers
26362 incorrectly reject 9223372036854775807. */
26363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26365 && LARGE_OFF_T % 2147483647 == 1)
26375 rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26382 $as_echo "$ac_try_echo") >&5
26383 (eval "$ac_compile") 2>conftest.er1
26385 grep -v '^ *+' conftest.er1 >conftest.err
26387 cat conftest.err >&5
26388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } && {
26390 test -z "$ac_c_werror_flag" ||
26391 test ! -s conftest.err
26392 } && test -s conftest.$ac_objext; then
26395 $as_echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26401 rm -f core conftest.err conftest.$ac_objext
26403 rm -f conftest.$ac_objext
26404 if { (ac_try="$ac_compile"
26405 case "(($ac_try" in
26406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26407 *) ac_try_echo=$ac_try;;
26409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26410 $as_echo "$ac_try_echo") >&5
26411 (eval "$ac_compile") 2>conftest.er1
26413 grep -v '^ *+' conftest.er1 >conftest.err
26415 cat conftest.err >&5
26416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } && {
26418 test -z "$ac_c_werror_flag" ||
26419 test ! -s conftest.err
26420 } && test -s conftest.$ac_objext; then
26421 ac_cv_sys_largefile_CC=' -n32'; break
26423 $as_echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26429 rm -f core conftest.err conftest.$ac_objext
26433 rm -f conftest.$ac_ext
26436 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26437 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26438 if test "$ac_cv_sys_largefile_CC" != no; then
26439 CC=$CC$ac_cv_sys_largefile_CC
26442 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26443 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26444 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26445 $as_echo_n "(cached) " >&6
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26454 #include <sys/types.h>
26455 /* Check that off_t can represent 2**63 - 1 correctly.
26456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26457 since some C++ compilers masquerading as C compilers
26458 incorrectly reject 9223372036854775807. */
26459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26461 && LARGE_OFF_T % 2147483647 == 1)
26471 rm -f conftest.$ac_objext
26472 if { (ac_try="$ac_compile"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26478 $as_echo "$ac_try_echo") >&5
26479 (eval "$ac_compile") 2>conftest.er1
26481 grep -v '^ *+' conftest.er1 >conftest.err
26483 cat conftest.err >&5
26484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } && {
26486 test -z "$ac_c_werror_flag" ||
26487 test ! -s conftest.err
26488 } && test -s conftest.$ac_objext; then
26489 ac_cv_sys_file_offset_bits=no; break
26491 $as_echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26498 cat >conftest.$ac_ext <<_ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 #define _FILE_OFFSET_BITS 64
26505 #include <sys/types.h>
26506 /* Check that off_t can represent 2**63 - 1 correctly.
26507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26508 since some C++ compilers masquerading as C compilers
26509 incorrectly reject 9223372036854775807. */
26510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26512 && LARGE_OFF_T % 2147483647 == 1)
26522 rm -f conftest.$ac_objext
26523 if { (ac_try="$ac_compile"
26524 case "(($ac_try" in
26525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26526 *) ac_try_echo=$ac_try;;
26528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26529 $as_echo "$ac_try_echo") >&5
26530 (eval "$ac_compile") 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } && {
26537 test -z "$ac_c_werror_flag" ||
26538 test ! -s conftest.err
26539 } && test -s conftest.$ac_objext; then
26540 ac_cv_sys_file_offset_bits=64; break
26542 $as_echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26549 ac_cv_sys_file_offset_bits=unknown
26553 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26554 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26555 case $ac_cv_sys_file_offset_bits in #(
26558 cat >>confdefs.h <<_ACEOF
26559 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26564 if test $ac_cv_sys_file_offset_bits = unknown; then
26565 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26566 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26567 if test "${ac_cv_sys_large_files+set}" = set; then
26568 $as_echo_n "(cached) " >&6
26571 cat >conftest.$ac_ext <<_ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h. */
26577 #include <sys/types.h>
26578 /* Check that off_t can represent 2**63 - 1 correctly.
26579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26580 since some C++ compilers masquerading as C compilers
26581 incorrectly reject 9223372036854775807. */
26582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26584 && LARGE_OFF_T % 2147483647 == 1)
26594 rm -f conftest.$ac_objext
26595 if { (ac_try="$ac_compile"
26596 case "(($ac_try" in
26597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598 *) ac_try_echo=$ac_try;;
26600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26601 $as_echo "$ac_try_echo") >&5
26602 (eval "$ac_compile") 2>conftest.er1
26604 grep -v '^ *+' conftest.er1 >conftest.err
26606 cat conftest.err >&5
26607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_c_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest.$ac_objext; then
26612 ac_cv_sys_large_files=no; break
26614 $as_echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621 cat >conftest.$ac_ext <<_ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26627 #define _LARGE_FILES 1
26628 #include <sys/types.h>
26629 /* Check that off_t can represent 2**63 - 1 correctly.
26630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26631 since some C++ compilers masquerading as C compilers
26632 incorrectly reject 9223372036854775807. */
26633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26635 && LARGE_OFF_T % 2147483647 == 1)
26645 rm -f conftest.$ac_objext
26646 if { (ac_try="$ac_compile"
26647 case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26652 $as_echo "$ac_try_echo") >&5
26653 (eval "$ac_compile") 2>conftest.er1
26655 grep -v '^ *+' conftest.er1 >conftest.err
26657 cat conftest.err >&5
26658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); } && {
26660 test -z "$ac_c_werror_flag" ||
26661 test ! -s conftest.err
26662 } && test -s conftest.$ac_objext; then
26663 ac_cv_sys_large_files=1; break
26665 $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 ac_cv_sys_large_files=unknown
26676 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26677 $as_echo "$ac_cv_sys_large_files" >&6; }
26678 case $ac_cv_sys_large_files in #(
26681 cat >>confdefs.h <<_ACEOF
26682 #define _LARGE_FILES $ac_cv_sys_large_files
26692 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26693 # The cast to long int works around a bug in the HP C Compiler
26694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26696 # This bug is HP SR number 8606223364.
26697 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26698 $as_echo_n "checking size of off_t... " >&6; }
26699 if test "${ac_cv_sizeof_off_t+set}" = set; then
26700 $as_echo_n "(cached) " >&6
26702 if test "$cross_compiling" = yes; then
26703 # Depending upon the size, compute the lo and hi bounds.
26704 cat >conftest.$ac_ext <<_ACEOF
26707 cat confdefs.h >>conftest.$ac_ext
26708 cat >>conftest.$ac_ext <<_ACEOF
26709 /* end confdefs.h. */
26710 $ac_includes_default
26714 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26721 rm -f conftest.$ac_objext
26722 if { (ac_try="$ac_compile"
26723 case "(($ac_try" in
26724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26725 *) ac_try_echo=$ac_try;;
26727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26728 $as_echo "$ac_try_echo") >&5
26729 (eval "$ac_compile") 2>conftest.er1
26731 grep -v '^ *+' conftest.er1 >conftest.err
26733 cat conftest.err >&5
26734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } && {
26736 test -z "$ac_c_werror_flag" ||
26737 test ! -s conftest.err
26738 } && test -s conftest.$ac_objext; then
26741 cat >conftest.$ac_ext <<_ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h. */
26747 $ac_includes_default
26751 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26758 rm -f conftest.$ac_objext
26759 if { (ac_try="$ac_compile"
26760 case "(($ac_try" in
26761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762 *) ac_try_echo=$ac_try;;
26764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26765 $as_echo "$ac_try_echo") >&5
26766 (eval "$ac_compile") 2>conftest.er1
26768 grep -v '^ *+' conftest.er1 >conftest.err
26770 cat conftest.err >&5
26771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772 (exit $ac_status); } && {
26773 test -z "$ac_c_werror_flag" ||
26774 test ! -s conftest.err
26775 } && test -s conftest.$ac_objext; then
26776 ac_hi=$ac_mid; break
26778 $as_echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26781 ac_lo=`expr $ac_mid + 1`
26782 if test $ac_lo -le $ac_mid; then
26786 ac_mid=`expr 2 '*' $ac_mid + 1`
26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26792 $as_echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26795 cat >conftest.$ac_ext <<_ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26801 $ac_includes_default
26805 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26812 rm -f conftest.$ac_objext
26813 if { (ac_try="$ac_compile"
26814 case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26819 $as_echo "$ac_try_echo") >&5
26820 (eval "$ac_compile") 2>conftest.er1
26822 grep -v '^ *+' conftest.er1 >conftest.err
26824 cat conftest.err >&5
26825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } && {
26827 test -z "$ac_c_werror_flag" ||
26828 test ! -s conftest.err
26829 } && test -s conftest.$ac_objext; then
26832 cat >conftest.$ac_ext <<_ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h. */
26838 $ac_includes_default
26842 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
26849 rm -f conftest.$ac_objext
26850 if { (ac_try="$ac_compile"
26851 case "(($ac_try" in
26852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853 *) ac_try_echo=$ac_try;;
26855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26856 $as_echo "$ac_try_echo") >&5
26857 (eval "$ac_compile") 2>conftest.er1
26859 grep -v '^ *+' conftest.er1 >conftest.err
26861 cat conftest.err >&5
26862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); } && {
26864 test -z "$ac_c_werror_flag" ||
26865 test ! -s conftest.err
26866 } && test -s conftest.$ac_objext; then
26867 ac_lo=$ac_mid; break
26869 $as_echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26872 ac_hi=`expr '(' $ac_mid ')' - 1`
26873 if test $ac_mid -le $ac_hi; then
26877 ac_mid=`expr 2 '*' $ac_mid`
26880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26883 $as_echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893 # Binary search between lo and hi bounds.
26894 while test "x$ac_lo" != "x$ac_hi"; do
26895 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26896 cat >conftest.$ac_ext <<_ACEOF
26899 cat confdefs.h >>conftest.$ac_ext
26900 cat >>conftest.$ac_ext <<_ACEOF
26901 /* end confdefs.h. */
26902 $ac_includes_default
26906 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26913 rm -f conftest.$ac_objext
26914 if { (ac_try="$ac_compile"
26915 case "(($ac_try" in
26916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917 *) ac_try_echo=$ac_try;;
26919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26920 $as_echo "$ac_try_echo") >&5
26921 (eval "$ac_compile") 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } && {
26928 test -z "$ac_c_werror_flag" ||
26929 test ! -s conftest.err
26930 } && test -s conftest.$ac_objext; then
26933 $as_echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26936 ac_lo=`expr '(' $ac_mid ')' + 1`
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26942 ?*) ac_cv_sizeof_off_t=$ac_lo;;
26943 '') if test "$ac_cv_type_off_t" = yes; then
26944 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26946 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26947 See \`config.log' for more details." >&5
26948 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26949 See \`config.log' for more details." >&2;}
26950 { (exit 77); exit 77; }; }; }
26952 ac_cv_sizeof_off_t=0
26956 cat >conftest.$ac_ext <<_ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h. */
26962 $ac_includes_default
26963 static long int longval () { return (long int) (sizeof (off_t)); }
26964 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
26966 #include <stdlib.h>
26971 FILE *f = fopen ("conftest.val", "w");
26974 if (((long int) (sizeof (off_t))) < 0)
26976 long int i = longval ();
26977 if (i != ((long int) (sizeof (off_t))))
26979 fprintf (f, "%ld", i);
26983 unsigned long int i = ulongval ();
26984 if (i != ((long int) (sizeof (off_t))))
26986 fprintf (f, "%lu", i);
26988 /* Do not output a trailing newline, as this causes \r\n confusion
26989 on some platforms. */
26990 return ferror (f) || fclose (f) != 0;
26996 rm -f conftest$ac_exeext
26997 if { (ac_try="$ac_link"
26998 case "(($ac_try" in
26999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27000 *) ac_try_echo=$ac_try;;
27002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27003 $as_echo "$ac_try_echo") >&5
27004 (eval "$ac_link") 2>&5
27006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27008 { (case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27013 $as_echo "$ac_try_echo") >&5
27014 (eval "$ac_try") 2>&5
27016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); }; }; then
27018 ac_cv_sizeof_off_t=`cat conftest.val`
27020 $as_echo "$as_me: program exited with status $ac_status" >&5
27021 $as_echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27024 ( exit $ac_status )
27025 if test "$ac_cv_type_off_t" = yes; then
27026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27028 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27029 See \`config.log' for more details." >&5
27030 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27031 See \`config.log' for more details." >&2;}
27032 { (exit 77); exit 77; }; }; }
27034 ac_cv_sizeof_off_t=0
27037 rm -rf conftest.dSYM
27038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27042 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27043 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27047 cat >>confdefs.h <<_ACEOF
27048 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27053 # If we don't have largefile support, can't handle segsize >= 2GB.
27054 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
27055 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
27056 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27057 { (exit 1); exit 1; }; }
27060 # SunOS doesn't handle negative byte comparisons properly with +/- return
27061 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27062 $as_echo_n "checking for working memcmp... " >&6; }
27063 if test "${ac_cv_func_memcmp_working+set}" = set; then
27064 $as_echo_n "(cached) " >&6
27066 if test "$cross_compiling" = yes; then
27067 ac_cv_func_memcmp_working=no
27069 cat >conftest.$ac_ext <<_ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27075 $ac_includes_default
27080 /* Some versions of memcmp are not 8-bit clean. */
27081 char c0 = '\100', c1 = '\200', c2 = '\201';
27082 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27085 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27086 or more and with at least one buffer not starting on a 4-byte boundary.
27087 William Lewis provided this test program. */
27092 for (i = 0; i < 4; i++)
27096 strcpy (a, "--------01111111");
27097 strcpy (b, "--------10000000");
27098 if (memcmp (a, b, 16) >= 0)
27108 rm -f conftest$ac_exeext
27109 if { (ac_try="$ac_link"
27110 case "(($ac_try" in
27111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27115 $as_echo "$ac_try_echo") >&5
27116 (eval "$ac_link") 2>&5
27118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27120 { (case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27125 $as_echo "$ac_try_echo") >&5
27126 (eval "$ac_try") 2>&5
27128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; }; then
27130 ac_cv_func_memcmp_working=yes
27132 $as_echo "$as_me: program exited with status $ac_status" >&5
27133 $as_echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27136 ( exit $ac_status )
27137 ac_cv_func_memcmp_working=no
27139 rm -rf conftest.dSYM
27140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27145 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27146 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27147 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27148 *" memcmp.$ac_objext "* ) ;;
27149 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27156 # Select semaphore implementation type.
27157 if test "$PORTNAME" != "win32"; then
27158 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27160 cat >>confdefs.h <<\_ACEOF
27161 #define USE_NAMED_POSIX_SEMAPHORES 1
27164 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27166 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27168 cat >>confdefs.h <<\_ACEOF
27169 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27172 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27175 cat >>confdefs.h <<\_ACEOF
27176 #define USE_SYSV_SEMAPHORES 1
27179 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27184 cat >>confdefs.h <<\_ACEOF
27185 #define USE_WIN32_SEMAPHORES 1
27188 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27192 # Select shared-memory implementation type.
27193 if test "$PORTNAME" != "win32"; then
27195 cat >>confdefs.h <<\_ACEOF
27196 #define USE_SYSV_SHARED_MEMORY 1
27199 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27202 cat >>confdefs.h <<\_ACEOF
27203 #define USE_WIN32_SHARED_MEMORY 1
27206 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27209 # If not set in template file, set bytes to use libc memset()
27210 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27211 MEMSET_LOOP_LIMIT=1024
27214 cat >>confdefs.h <<_ACEOF
27215 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27220 if test "$enable_nls" = yes ; then
27222 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27223 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27224 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27225 $as_echo_n "(cached) " >&6
27227 ac_func_search_save_LIBS=$LIBS
27228 cat >conftest.$ac_ext <<_ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27235 /* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27241 char bind_textdomain_codeset ();
27245 return bind_textdomain_codeset ();
27250 for ac_lib in '' intl; do
27251 if test -z "$ac_lib"; then
27252 ac_res="none required"
27255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27257 rm -f conftest.$ac_objext conftest$ac_exeext
27258 if { (ac_try="$ac_link"
27259 case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27264 $as_echo "$ac_try_echo") >&5
27265 (eval "$ac_link") 2>conftest.er1
27267 grep -v '^ *+' conftest.er1 >conftest.err
27269 cat conftest.err >&5
27270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } && {
27272 test -z "$ac_c_werror_flag" ||
27273 test ! -s conftest.err
27274 } && test -s conftest$ac_exeext && {
27275 test "$cross_compiling" = yes ||
27276 $as_test_x conftest$ac_exeext
27278 ac_cv_search_bind_textdomain_codeset=$ac_res
27280 $as_echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27286 rm -rf conftest.dSYM
27287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27289 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27293 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27296 ac_cv_search_bind_textdomain_codeset=no
27298 rm conftest.$ac_ext
27299 LIBS=$ac_func_search_save_LIBS
27301 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27302 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27303 ac_res=$ac_cv_search_bind_textdomain_codeset
27304 if test "$ac_res" != no; then
27305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27308 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27309 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27310 { (exit 1); exit 1; }; }
27313 if test "${ac_cv_header_libintl_h+set}" = set; then
27314 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27315 $as_echo_n "checking for libintl.h... " >&6; }
27316 if test "${ac_cv_header_libintl_h+set}" = set; then
27317 $as_echo_n "(cached) " >&6
27319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27320 $as_echo "$ac_cv_header_libintl_h" >&6; }
27322 # Is the header compilable?
27323 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27324 $as_echo_n "checking libintl.h usability... " >&6; }
27325 cat >conftest.$ac_ext <<_ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27331 $ac_includes_default
27332 #include <libintl.h>
27334 rm -f conftest.$ac_objext
27335 if { (ac_try="$ac_compile"
27336 case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27341 $as_echo "$ac_try_echo") >&5
27342 (eval "$ac_compile") 2>conftest.er1
27344 grep -v '^ *+' conftest.er1 >conftest.err
27346 cat conftest.err >&5
27347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } && {
27349 test -z "$ac_c_werror_flag" ||
27350 test ! -s conftest.err
27351 } && test -s conftest.$ac_objext; then
27352 ac_header_compiler=yes
27354 $as_echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27357 ac_header_compiler=no
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27362 $as_echo "$ac_header_compiler" >&6; }
27364 # Is the header present?
27365 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27366 $as_echo_n "checking libintl.h presence... " >&6; }
27367 cat >conftest.$ac_ext <<_ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27373 #include <libintl.h>
27375 if { (ac_try="$ac_cpp conftest.$ac_ext"
27376 case "(($ac_try" in
27377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27378 *) ac_try_echo=$ac_try;;
27380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27381 $as_echo "$ac_try_echo") >&5
27382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27384 grep -v '^ *+' conftest.er1 >conftest.err
27386 cat conftest.err >&5
27387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); } >/dev/null && {
27389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27390 test ! -s conftest.err
27392 ac_header_preproc=yes
27394 $as_echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27397 ac_header_preproc=no
27400 rm -f conftest.err conftest.$ac_ext
27401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27402 $as_echo "$ac_header_preproc" >&6; }
27404 # So? What about this header?
27405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27407 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27408 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27409 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27410 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27411 ac_header_preproc=yes
27414 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27415 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27416 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27417 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27418 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27419 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27420 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27421 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27422 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27423 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27424 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27425 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27427 ## ---------------------------------------- ##
27428 ## Report this to pgsql-bugs@postgresql.org ##
27429 ## ---------------------------------------- ##
27431 ) | sed "s/^/$as_me: WARNING: /" >&2
27434 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27435 $as_echo_n "checking for libintl.h... " >&6; }
27436 if test "${ac_cv_header_libintl_h+set}" = set; then
27437 $as_echo_n "(cached) " >&6
27439 ac_cv_header_libintl_h=$ac_header_preproc
27441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27442 $as_echo "$ac_cv_header_libintl_h" >&6; }
27445 if test "x$ac_cv_header_libintl_h" = x""yes; then
27448 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27449 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27450 { (exit 1); exit 1; }; }
27454 for ac_prog in msgfmt
27456 # Extract the first word of "$ac_prog", so it can be a program name with args.
27457 set dummy $ac_prog; ac_word=$2
27458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27459 $as_echo_n "checking for $ac_word... " >&6; }
27460 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27461 $as_echo_n "(cached) " >&6
27463 if test -n "$MSGFMT"; then
27464 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27467 for as_dir in $PATH
27470 test -z "$as_dir" && as_dir=.
27471 for ac_exec_ext in '' $ac_executable_extensions; do
27472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27473 ac_cv_prog_MSGFMT="$ac_prog"
27474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27483 MSGFMT=$ac_cv_prog_MSGFMT
27484 if test -n "$MSGFMT"; then
27485 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27486 $as_echo "$MSGFMT" >&6; }
27488 { $as_echo "$as_me:$LINENO: result: no" >&5
27489 $as_echo "no" >&6; }
27493 test -n "$MSGFMT" && break
27496 if test -z "$MSGFMT"; then
27497 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27498 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27499 { (exit 1); exit 1; }; }
27501 for ac_prog in msgmerge
27503 # Extract the first word of "$ac_prog", so it can be a program name with args.
27504 set dummy $ac_prog; ac_word=$2
27505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27506 $as_echo_n "checking for $ac_word... " >&6; }
27507 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27508 $as_echo_n "(cached) " >&6
27510 if test -n "$MSGMERGE"; then
27511 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27514 for as_dir in $PATH
27517 test -z "$as_dir" && as_dir=.
27518 for ac_exec_ext in '' $ac_executable_extensions; do
27519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27520 ac_cv_prog_MSGMERGE="$ac_prog"
27521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27530 MSGMERGE=$ac_cv_prog_MSGMERGE
27531 if test -n "$MSGMERGE"; then
27532 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27533 $as_echo "$MSGMERGE" >&6; }
27535 { $as_echo "$as_me:$LINENO: result: no" >&5
27536 $as_echo "no" >&6; }
27540 test -n "$MSGMERGE" && break
27543 for ac_prog in xgettext
27545 # Extract the first word of "$ac_prog", so it can be a program name with args.
27546 set dummy $ac_prog; ac_word=$2
27547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27548 $as_echo_n "checking for $ac_word... " >&6; }
27549 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27550 $as_echo_n "(cached) " >&6
27552 if test -n "$XGETTEXT"; then
27553 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27556 for as_dir in $PATH
27559 test -z "$as_dir" && as_dir=.
27560 for ac_exec_ext in '' $ac_executable_extensions; do
27561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27562 ac_cv_prog_XGETTEXT="$ac_prog"
27563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27572 XGETTEXT=$ac_cv_prog_XGETTEXT
27573 if test -n "$XGETTEXT"; then
27574 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27575 $as_echo "$XGETTEXT" >&6; }
27577 { $as_echo "$as_me:$LINENO: result: no" >&5
27578 $as_echo "no" >&6; }
27582 test -n "$XGETTEXT" && break
27588 # Check for Tcl configuration script tclConfig.sh
27589 if test "$with_tcl" = yes; then
27590 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27592 # Extract the first word of "$ac_prog", so it can be a program name with args.
27593 set dummy $ac_prog; ac_word=$2
27594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27595 $as_echo_n "checking for $ac_word... " >&6; }
27596 if test "${ac_cv_path_TCLSH+set}" = set; then
27597 $as_echo_n "(cached) " >&6
27601 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27605 for as_dir in $PATH
27608 test -z "$as_dir" && as_dir=.
27609 for ac_exec_ext in '' $ac_executable_extensions; do
27610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27611 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27622 TCLSH=$ac_cv_path_TCLSH
27623 if test -n "$TCLSH"; then
27624 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27625 $as_echo "$TCLSH" >&6; }
27627 { $as_echo "$as_me:$LINENO: result: no" >&5
27628 $as_echo "no" >&6; }
27632 test -n "$TCLSH" && break
27635 if test x"$TCLSH" = x""; then
27636 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27637 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27638 { (exit 1); exit 1; }; }
27641 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27642 $as_echo_n "checking for tclConfig.sh... " >&6; }
27643 # Let user override test
27644 if test -z "$TCL_CONFIG_SH"; then
27645 pgac_test_dirs="$with_tclconfig"
27647 set X $pgac_test_dirs; shift
27648 if test $# -eq 0; then
27649 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27650 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27651 { (exit 1); exit 1; }; }
27652 set X `echo 'puts $auto_path' | $TCLSH`; shift
27656 if test -r "$pgac_dir/tclConfig.sh"; then
27657 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27663 if test -z "$TCL_CONFIG_SH"; then
27664 { $as_echo "$as_me:$LINENO: result: no" >&5
27665 $as_echo "no" >&6; }
27666 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27667 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27668 { (exit 1); exit 1; }; }
27670 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27671 $as_echo "$TCL_CONFIG_SH" >&6; }
27677 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27678 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27679 eval TCL_LIBS=\"$TCL_LIBS\"
27680 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27681 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27683 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27684 ac_save_CPPFLAGS=$CPPFLAGS
27685 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27686 if test "${ac_cv_header_tcl_h+set}" = set; then
27687 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27688 $as_echo_n "checking for tcl.h... " >&6; }
27689 if test "${ac_cv_header_tcl_h+set}" = set; then
27690 $as_echo_n "(cached) " >&6
27692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27693 $as_echo "$ac_cv_header_tcl_h" >&6; }
27695 # Is the header compilable?
27696 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27697 $as_echo_n "checking tcl.h usability... " >&6; }
27698 cat >conftest.$ac_ext <<_ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h. */
27704 $ac_includes_default
27707 rm -f conftest.$ac_objext
27708 if { (ac_try="$ac_compile"
27709 case "(($ac_try" in
27710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27711 *) ac_try_echo=$ac_try;;
27713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27714 $as_echo "$ac_try_echo") >&5
27715 (eval "$ac_compile") 2>conftest.er1
27717 grep -v '^ *+' conftest.er1 >conftest.err
27719 cat conftest.err >&5
27720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } && {
27722 test -z "$ac_c_werror_flag" ||
27723 test ! -s conftest.err
27724 } && test -s conftest.$ac_objext; then
27725 ac_header_compiler=yes
27727 $as_echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27730 ac_header_compiler=no
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27735 $as_echo "$ac_header_compiler" >&6; }
27737 # Is the header present?
27738 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
27739 $as_echo_n "checking tcl.h presence... " >&6; }
27740 cat >conftest.$ac_ext <<_ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27748 if { (ac_try="$ac_cpp conftest.$ac_ext"
27749 case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754 $as_echo "$ac_try_echo") >&5
27755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } >/dev/null && {
27762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27763 test ! -s conftest.err
27765 ac_header_preproc=yes
27767 $as_echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27770 ac_header_preproc=no
27773 rm -f conftest.err conftest.$ac_ext
27774 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27775 $as_echo "$ac_header_preproc" >&6; }
27777 # So? What about this header?
27778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27780 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27781 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27782 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
27783 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
27784 ac_header_preproc=yes
27787 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
27788 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
27789 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
27790 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
27791 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
27792 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
27793 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
27794 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27795 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
27796 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
27797 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
27798 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
27800 ## ---------------------------------------- ##
27801 ## Report this to pgsql-bugs@postgresql.org ##
27802 ## ---------------------------------------- ##
27804 ) | sed "s/^/$as_me: WARNING: /" >&2
27807 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27808 $as_echo_n "checking for tcl.h... " >&6; }
27809 if test "${ac_cv_header_tcl_h+set}" = set; then
27810 $as_echo_n "(cached) " >&6
27812 ac_cv_header_tcl_h=$ac_header_preproc
27814 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27815 $as_echo "$ac_cv_header_tcl_h" >&6; }
27818 if test "x$ac_cv_header_tcl_h" = x""yes; then
27821 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
27822 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
27823 { (exit 1); exit 1; }; }
27827 CPPFLAGS=$ac_save_CPPFLAGS
27831 # Check for DocBook and tools
27833 for ac_prog in onsgmls nsgmls
27835 # Extract the first word of "$ac_prog", so it can be a program name with args.
27836 set dummy $ac_prog; ac_word=$2
27837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27838 $as_echo_n "checking for $ac_word... " >&6; }
27839 if test "${ac_cv_prog_NSGMLS+set}" = set; then
27840 $as_echo_n "(cached) " >&6
27842 if test -n "$NSGMLS"; then
27843 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
27845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27846 for as_dir in $PATH
27849 test -z "$as_dir" && as_dir=.
27850 for ac_exec_ext in '' $ac_executable_extensions; do
27851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27852 ac_cv_prog_NSGMLS="$ac_prog"
27853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27862 NSGMLS=$ac_cv_prog_NSGMLS
27863 if test -n "$NSGMLS"; then
27864 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
27865 $as_echo "$NSGMLS" >&6; }
27867 { $as_echo "$as_me:$LINENO: result: no" >&5
27868 $as_echo "no" >&6; }
27872 test -n "$NSGMLS" && break
27875 for ac_prog in openjade jade
27877 # Extract the first word of "$ac_prog", so it can be a program name with args.
27878 set dummy $ac_prog; ac_word=$2
27879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27880 $as_echo_n "checking for $ac_word... " >&6; }
27881 if test "${ac_cv_prog_JADE+set}" = set; then
27882 $as_echo_n "(cached) " >&6
27884 if test -n "$JADE"; then
27885 ac_cv_prog_JADE="$JADE" # Let the user override the test.
27887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27888 for as_dir in $PATH
27891 test -z "$as_dir" && as_dir=.
27892 for ac_exec_ext in '' $ac_executable_extensions; do
27893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27894 ac_cv_prog_JADE="$ac_prog"
27895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27904 JADE=$ac_cv_prog_JADE
27905 if test -n "$JADE"; then
27906 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
27907 $as_echo "$JADE" >&6; }
27909 { $as_echo "$as_me:$LINENO: result: no" >&5
27910 $as_echo "no" >&6; }
27914 test -n "$JADE" && break
27918 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
27919 $as_echo_n "checking for DocBook V4.2... " >&6; }
27920 if test "${pgac_cv_check_docbook+set}" = set; then
27921 $as_echo_n "(cached) " >&6
27923 cat >conftest.sgml <<EOF
27924 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
27926 <title>test</title>
27928 <title>random</title>
27930 <title>testsect</title>
27937 pgac_cv_check_docbook=no
27939 if test -n "$NSGMLS"; then
27940 $NSGMLS -s conftest.sgml 1>&5 2>&1
27941 if test $? -eq 0; then
27942 pgac_cv_check_docbook=yes
27945 rm -f conftest.sgml
27947 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
27948 $as_echo "$pgac_cv_check_docbook" >&6; }
27950 have_docbook=$pgac_cv_check_docbook
27953 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
27954 $as_echo_n "checking for DocBook stylesheets... " >&6; }
27955 if test "${pgac_cv_path_stylesheets+set}" = set; then
27956 $as_echo_n "(cached) " >&6
27958 if test -n "$DOCBOOKSTYLE"; then
27959 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
27961 for pgac_prefix in /usr /usr/local /opt /sw; do
27962 for pgac_infix in share lib; do
27963 for pgac_postfix in \
27964 sgml/stylesheets/nwalsh-modular \
27965 sgml/stylesheets/docbook \
27966 sgml/stylesheets/dsssl/docbook \
27967 sgml/docbook-dsssl \
27968 sgml/docbook/dsssl/modular \
27969 sgml/docbook/stylesheet/dsssl/modular \
27970 sgml/docbook/dsssl-stylesheets \
27971 sgml/dsssl/docbook-dsssl-nwalsh
27973 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
27974 if test -r "$pgac_candidate/html/docbook.dsl" \
27975 && test -r "$pgac_candidate/print/docbook.dsl"
27977 pgac_cv_path_stylesheets=$pgac_candidate
27986 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
27988 if test -n "$DOCBOOKSTYLE"; then
27989 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
27990 $as_echo "$DOCBOOKSTYLE" >&6; }
27992 { $as_echo "$as_me:$LINENO: result: no" >&5
27993 $as_echo "no" >&6; }
27995 if test -n "$DOCBOOKSTYLE"; then
27996 for ac_prog in collateindex.pl
27998 # Extract the first word of "$ac_prog", so it can be a program name with args.
27999 set dummy $ac_prog; ac_word=$2
28000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28001 $as_echo_n "checking for $ac_word... " >&6; }
28002 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28003 $as_echo_n "(cached) " >&6
28005 case $COLLATEINDEX in
28007 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28011 for as_dir in $DOCBOOKSTYLE/bin $PATH
28014 test -z "$as_dir" && as_dir=.
28015 for ac_exec_ext in '' $ac_executable_extensions; do
28016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28017 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28028 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28029 if test -n "$COLLATEINDEX"; then
28030 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28031 $as_echo "$COLLATEINDEX" >&6; }
28033 { $as_echo "$as_me:$LINENO: result: no" >&5
28034 $as_echo "no" >&6; }
28038 test -n "$COLLATEINDEX" && break
28042 for ac_prog in collateindex.pl
28044 # Extract the first word of "$ac_prog", so it can be a program name with args.
28045 set dummy $ac_prog; ac_word=$2
28046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28047 $as_echo_n "checking for $ac_word... " >&6; }
28048 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28049 $as_echo_n "(cached) " >&6
28051 case $COLLATEINDEX in
28053 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28057 for as_dir in $PATH
28060 test -z "$as_dir" && as_dir=.
28061 for ac_exec_ext in '' $ac_executable_extensions; do
28062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28063 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28074 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28075 if test -n "$COLLATEINDEX"; then
28076 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28077 $as_echo "$COLLATEINDEX" >&6; }
28079 { $as_echo "$as_me:$LINENO: result: no" >&5
28080 $as_echo "no" >&6; }
28084 test -n "$COLLATEINDEX" && break
28088 for ac_prog in xsltproc
28090 # Extract the first word of "$ac_prog", so it can be a program name with args.
28091 set dummy $ac_prog; ac_word=$2
28092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28093 $as_echo_n "checking for $ac_word... " >&6; }
28094 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28095 $as_echo_n "(cached) " >&6
28097 if test -n "$XSLTPROC"; then
28098 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28101 for as_dir in $PATH
28104 test -z "$as_dir" && as_dir=.
28105 for ac_exec_ext in '' $ac_executable_extensions; do
28106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28107 ac_cv_prog_XSLTPROC="$ac_prog"
28108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28117 XSLTPROC=$ac_cv_prog_XSLTPROC
28118 if test -n "$XSLTPROC"; then
28119 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28120 $as_echo "$XSLTPROC" >&6; }
28122 { $as_echo "$as_me:$LINENO: result: no" >&5
28123 $as_echo "no" >&6; }
28127 test -n "$XSLTPROC" && break
28130 for ac_prog in osx sgml2xml sx
28132 # Extract the first word of "$ac_prog", so it can be a program name with args.
28133 set dummy $ac_prog; ac_word=$2
28134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28135 $as_echo_n "checking for $ac_word... " >&6; }
28136 if test "${ac_cv_prog_OSX+set}" = set; then
28137 $as_echo_n "(cached) " >&6
28139 if test -n "$OSX"; then
28140 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28143 for as_dir in $PATH
28146 test -z "$as_dir" && as_dir=.
28147 for ac_exec_ext in '' $ac_executable_extensions; do
28148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28149 ac_cv_prog_OSX="$ac_prog"
28150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28159 OSX=$ac_cv_prog_OSX
28160 if test -n "$OSX"; then
28161 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28162 $as_echo "$OSX" >&6; }
28164 { $as_echo "$as_me:$LINENO: result: no" >&5
28165 $as_echo "no" >&6; }
28169 test -n "$OSX" && break
28175 # We have to run the thread test near the end so we have all our symbols
28176 # defined. Cross compiling throws a warning.
28178 if test "$enable_thread_safety" = yes; then
28179 if test "$PORTNAME" != "win32"
28181 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28182 $as_echo_n "checking thread safety of required library functions... " >&6; }
28186 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28187 LIBS="$LIBS $PTHREAD_LIBS"
28188 if test "$cross_compiling" = yes; then
28189 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28190 $as_echo "maybe" >&6; }
28191 { $as_echo "$as_me:$LINENO: WARNING:
28192 *** Skipping thread test program because of cross-compile build.
28193 *** Run the program in src/test/thread on the target machine.
28195 $as_echo "$as_me: WARNING:
28196 *** Skipping thread test program because of cross-compile build.
28197 *** Run the program in src/test/thread on the target machine.
28200 cat >conftest.$ac_ext <<_ACEOF
28203 cat confdefs.h >>conftest.$ac_ext
28204 cat >>conftest.$ac_ext <<_ACEOF
28205 /* end confdefs.h. */
28206 #include "$srcdir/src/test/thread/thread_test.c"
28208 rm -f conftest$ac_exeext
28209 if { (ac_try="$ac_link"
28210 case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28215 $as_echo "$ac_try_echo") >&5
28216 (eval "$ac_link") 2>&5
28218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28220 { (case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28225 $as_echo "$ac_try_echo") >&5
28226 (eval "$ac_try") 2>&5
28228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); }; }; then
28230 { $as_echo "$as_me:$LINENO: result: yes" >&5
28231 $as_echo "yes" >&6; }
28233 $as_echo "$as_me: program exited with status $ac_status" >&5
28234 $as_echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28237 ( exit $ac_status )
28238 { $as_echo "$as_me:$LINENO: result: no" >&5
28239 $as_echo "no" >&6; }
28240 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28241 This platform is not thread-safe. Check the file 'config.log' or compile
28242 and run src/test/thread/thread_test for the exact reason.
28243 Use --disable-thread-safety to disable thread safety." >&5
28244 $as_echo "$as_me: error: thread test program failed
28245 This platform is not thread-safe. Check the file 'config.log' or compile
28246 and run src/test/thread/thread_test for the exact reason.
28247 Use --disable-thread-safety to disable thread safety." >&2;}
28248 { (exit 1); exit 1; }; }
28250 rm -rf conftest.dSYM
28251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28258 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28259 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28263 # If compiler will take -Wl,--as-needed (or various platform-specific
28264 # spellings thereof) then add that to LDFLAGS. This is much easier than
28265 # trying to filter LIBS to the minimum for each executable.
28266 # (Note that shared library links won't use this switch, though.)
28267 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28268 # libreadline; therefore we postpone testing it until we know what library
28269 # dependencies readline has. The test code will try to link with $LIBS.
28270 if test "$with_readline" = yes; then
28271 link_test_func=readline
28273 link_test_func=exit
28276 if test "$PORTNAME" = "darwin"; then
28277 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28278 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28279 pgac_save_LDFLAGS=$LDFLAGS
28280 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28281 if test "$cross_compiling" = yes; then
28282 LDFLAGS="$pgac_save_LDFLAGS"
28283 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28284 $as_echo "assuming no" >&6; }
28286 cat >conftest.$ac_ext <<_ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28292 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28301 rm -f conftest$ac_exeext
28302 if { (ac_try="$ac_link"
28303 case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28308 $as_echo "$ac_try_echo") >&5
28309 (eval "$ac_link") 2>&5
28311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28318 $as_echo "$ac_try_echo") >&5
28319 (eval "$ac_try") 2>&5
28321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 { $as_echo "$as_me:$LINENO: result: yes" >&5
28324 $as_echo "yes" >&6; }
28326 $as_echo "$as_me: program exited with status $ac_status" >&5
28327 $as_echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28330 ( exit $ac_status )
28331 LDFLAGS="$pgac_save_LDFLAGS"
28332 { $as_echo "$as_me:$LINENO: result: no" >&5
28333 $as_echo "no" >&6; }
28335 rm -rf conftest.dSYM
28336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28341 elif test "$PORTNAME" = "openbsd"; then
28342 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28343 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28344 pgac_save_LDFLAGS=$LDFLAGS
28345 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28346 if test "$cross_compiling" = yes; then
28347 LDFLAGS="$pgac_save_LDFLAGS"
28348 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28349 $as_echo "assuming no" >&6; }
28351 cat >conftest.$ac_ext <<_ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28357 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28366 rm -f conftest$ac_exeext
28367 if { (ac_try="$ac_link"
28368 case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28373 $as_echo "$ac_try_echo") >&5
28374 (eval "$ac_link") 2>&5
28376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28378 { (case "(($ac_try" in
28379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28380 *) ac_try_echo=$ac_try;;
28382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28383 $as_echo "$ac_try_echo") >&5
28384 (eval "$ac_try") 2>&5
28386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
28388 { $as_echo "$as_me:$LINENO: result: yes" >&5
28389 $as_echo "yes" >&6; }
28391 $as_echo "$as_me: program exited with status $ac_status" >&5
28392 $as_echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28395 ( exit $ac_status )
28396 LDFLAGS="$pgac_save_LDFLAGS"
28397 { $as_echo "$as_me:$LINENO: result: no" >&5
28398 $as_echo "no" >&6; }
28400 rm -rf conftest.dSYM
28401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28407 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28408 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28409 pgac_save_LDFLAGS=$LDFLAGS
28410 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28411 if test "$cross_compiling" = yes; then
28412 LDFLAGS="$pgac_save_LDFLAGS"
28413 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28414 $as_echo "assuming no" >&6; }
28416 cat >conftest.$ac_ext <<_ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h. */
28422 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28431 rm -f conftest$ac_exeext
28432 if { (ac_try="$ac_link"
28433 case "(($ac_try" in
28434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435 *) ac_try_echo=$ac_try;;
28437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28438 $as_echo "$ac_try_echo") >&5
28439 (eval "$ac_link") 2>&5
28441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28443 { (case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28448 $as_echo "$ac_try_echo") >&5
28449 (eval "$ac_try") 2>&5
28451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; }; then
28453 { $as_echo "$as_me:$LINENO: result: yes" >&5
28454 $as_echo "yes" >&6; }
28456 $as_echo "$as_me: program exited with status $ac_status" >&5
28457 $as_echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28460 ( exit $ac_status )
28461 LDFLAGS="$pgac_save_LDFLAGS"
28462 { $as_echo "$as_me:$LINENO: result: no" >&5
28463 $as_echo "no" >&6; }
28465 rm -rf conftest.dSYM
28466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28474 # Begin output steps
28476 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28477 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28478 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28479 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28480 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28481 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28483 # Create compiler version string
28484 if test x"$GCC" = x"yes" ; then
28485 cc_string="GCC `${CC} --version | sed q`"
28486 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28487 cc_string=`${CC} -V 2>&1 | sed q`
28493 cat >>confdefs.h <<_ACEOF
28494 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28498 # Supply a numeric version string for use by 3rd party add-ons
28499 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28500 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28502 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28504 cat >>confdefs.h <<_ACEOF
28505 #define PG_VERSION_NUM $PG_VERSION_NUM
28510 # prepare build tree if outside source tree
28511 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28512 # Note 2: /bin/pwd might be better than shell's built-in at getting
28513 # a symlink-free name.
28514 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28518 if test "$no_create" != yes; then
28519 $as_echo_n "preparing build tree... " >&6
28520 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28521 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28522 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28523 $as_echo "$as_me: error: failed" >&2;}
28524 { (exit 1); exit 1; }; }
28525 { $as_echo "$as_me:$LINENO: result: done" >&5
28526 $as_echo "done" >&6; }
28532 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28535 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}"
28538 if test "$PORTNAME" = "win32"; then
28539 ac_config_commands="$ac_config_commands check_win32_symlinks"
28543 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28546 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28549 cat >confcache <<\_ACEOF
28550 # This file is a shell script that caches the results of configure
28551 # tests run on this system so they can be shared between configure
28552 # scripts and configure runs, see configure's option --config-cache.
28553 # It is not useful on other systems. If it contains results you don't
28554 # want to keep, you may remove or edit it.
28556 # config.status only pays attention to the cache file if you give it
28557 # the --recheck option to rerun configure.
28559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28561 # following values.
28565 # The following way of writing the cache mishandles newlines in values,
28566 # but we know of no workaround that is simple, portable, and efficient.
28567 # So, we kill variables containing newlines.
28568 # Ultrix sh set writes to stderr and can't be redirected directly,
28569 # and sets the high bit in the cache file unless we assign to the vars.
28571 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28572 eval ac_val=\$$ac_var
28576 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28580 _ | IFS | as_nl) ;; #(
28581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28582 *) $as_unset $ac_var ;;
28588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28589 *${as_nl}ac_space=\ *)
28590 # `set' does not quote correctly, so add quotes (double-quote
28591 # substitution turns \\\\ into \\, and sed turns \\ into \).
28594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28597 # `set' quotes correctly as required by POSIX, so do not add quotes.
28598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28612 if test -w "$cache_file"; then
28613 test "x$cache_file" != "x/dev/null" &&
28614 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28615 $as_echo "$as_me: updating cache $cache_file" >&6;}
28616 cat confcache >$cache_file
28618 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28619 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28625 # Let make expand exec_prefix.
28626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28628 DEFS=-DHAVE_CONFIG_H
28632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28633 # 1. Remove the extension, and $U if already installed.
28634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28637 # will be set to the directory where LIBOBJS objects are built.
28638 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28639 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28641 LIBOBJS=$ac_libobjs
28643 LTLIBOBJS=$ac_ltlibobjs
28648 : ${CONFIG_STATUS=./config.status}
28650 ac_clean_files_save=$ac_clean_files
28651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28652 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28654 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28656 # Generated by $as_me.
28657 # Run this file to recreate the current configuration.
28658 # Compiler output produced by configure, useful for debugging
28659 # configure, is in config.log if it exists.
28662 ac_cs_recheck=false
28664 SHELL=\${CONFIG_SHELL-$SHELL}
28667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28668 ## --------------------- ##
28669 ## M4sh Initialization. ##
28670 ## --------------------- ##
28672 # Be more Bourne compatible
28673 DUALCASE=1; export DUALCASE # for MKS sh
28674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28678 # is contrary to our usage. Disable this feature.
28679 alias -g '${1+"$@"}'='"$@"'
28680 setopt NO_GLOB_SUBST
28682 case `(set -o) 2>/dev/null` in
28683 *posix*) set -o posix ;;
28692 # Avoid depending upon Character Ranges.
28693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28696 as_cr_digits='0123456789'
28697 as_cr_alnum=$as_cr_Letters$as_cr_digits
28702 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28703 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28706 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28707 as_echo='printf %s\n'
28708 as_echo_n='printf %s'
28710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28712 as_echo_n='/usr/ucb/echo -n'
28714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28715 as_echo_n_body='eval
28719 expr "X$arg" : "X\\(.*\\)$as_nl";
28720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28724 export as_echo_n_body
28725 as_echo_n='sh -c $as_echo_n_body as_echo'
28727 export as_echo_body
28728 as_echo='sh -c $as_echo_body as_echo'
28731 # The user is always right.
28732 if test "${PATH_SEPARATOR+set}" != set; then
28734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28740 # Support unset when possible.
28741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28749 # We need space, tab and new line, in precisely that order. Quoting is
28750 # there to prevent editors from complaining about space-tab.
28751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28752 # splitting by setting IFS to empty value.)
28755 # Find who we are. Look in the path if we contain no directory separator.
28757 *[\\/]* ) as_myself=$0 ;;
28758 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28759 for as_dir in $PATH
28762 test -z "$as_dir" && as_dir=.
28763 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28769 # We did not find ourselves, most probably we were run as `sh COMMAND'
28770 # in which case we are not to be found in the path.
28771 if test "x$as_myself" = x; then
28774 if test ! -f "$as_myself"; then
28775 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28776 { (exit 1); exit 1; }
28779 # Work around bugs in pre-3.0 UWIN ksh.
28780 for as_var in ENV MAIL MAILPATH
28781 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28793 # Required to use basename.
28794 if expr a : '\(a\)' >/dev/null 2>&1 &&
28795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28802 as_basename=basename
28808 # Name of the executable.
28809 as_me=`$as_basename -- "$0" ||
28810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28811 X"$0" : 'X\(//\)$' \| \
28812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28814 sed '/^.*\/\([^/][^/]*\)\/*$/{
28833 as_lineno_1=$LINENO
28834 as_lineno_2=$LINENO
28835 test "x$as_lineno_1" != "x$as_lineno_2" &&
28836 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28838 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28839 # uniformly replaced by the line number. The first 'sed' inserts a
28840 # line-number line after each line using $LINENO; the second 'sed'
28841 # does the real work. The second script uses 'N' to pair each
28842 # line-number line with the line containing $LINENO, and appends
28843 # trailing '-' during substitution so that $LINENO is not a special
28844 # case at line end.
28845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28846 # scripts with optimization help from Paolo Bonzini. Blame Lee
28847 # E. McMahon (1931-1989) for sed's syntax. :-)
28859 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28862 ' >$as_me.lineno &&
28863 chmod +x "$as_me.lineno" ||
28864 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28865 { (exit 1); exit 1; }; }
28867 # Don't try to exec as it changes $[0], causing all sort of problems
28868 # (the dirname of $[0] is not the place where we might find the
28869 # original and so on. Autoconf is especially sensitive to this).
28870 . "./$as_me.lineno"
28871 # Exit status is that of the last command.
28876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28882 ECHO_C= ECHO_N= ECHO_T=
28883 case `echo -n x` in
28885 case `echo 'x\c'` in
28886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28892 if expr a : '\(a\)' >/dev/null 2>&1 &&
28893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28899 rm -f conf$$ conf$$.exe conf$$.file
28900 if test -d conf$$.dir; then
28901 rm -f conf$$.dir/conf$$.file
28904 mkdir conf$$.dir 2>/dev/null
28906 if (echo >conf$$.file) 2>/dev/null; then
28907 if ln -s conf$$.file conf$$ 2>/dev/null; then
28909 # ... but there are two gotchas:
28910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28912 # In both cases, we have to default to `cp -p'.
28913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28915 elif ln conf$$.file conf$$ 2>/dev/null; then
28923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28924 rmdir conf$$.dir 2>/dev/null
28926 if mkdir -p . 2>/dev/null; then
28929 test -d ./-p && rmdir ./-p
28933 if test -x / >/dev/null 2>&1; then
28934 as_test_x='test -x'
28936 if ls -dL / >/dev/null 2>&1; then
28943 if test -d "$1"; then
28949 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28950 ???[sx]*):;;*)false;;esac;fi
28954 as_executable_p=$as_test_x
28956 # Sed expression to map a string onto a valid CPP name.
28957 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28959 # Sed expression to map a string onto a valid variable name.
28960 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28965 # Save the log message, to keep $[0] and so on meaningful, and to
28966 # report actual input values of CONFIG_FILES etc. instead of their
28967 # values after options handling.
28969 This file was extended by PostgreSQL $as_me 8.5devel, which was
28970 generated by GNU Autoconf 2.63. Invocation command line was
28972 CONFIG_FILES = $CONFIG_FILES
28973 CONFIG_HEADERS = $CONFIG_HEADERS
28974 CONFIG_LINKS = $CONFIG_LINKS
28975 CONFIG_COMMANDS = $CONFIG_COMMANDS
28978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28983 case $ac_config_files in *"
28984 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28987 case $ac_config_headers in *"
28988 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28993 # Files that config.status was made for.
28994 config_files="$ac_config_files"
28995 config_headers="$ac_config_headers"
28996 config_links="$ac_config_links"
28997 config_commands="$ac_config_commands"
29001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29003 \`$as_me' instantiates files from templates according to the
29004 current configuration.
29006 Usage: $0 [OPTION]... [FILE]...
29008 -h, --help print this help, then exit
29009 -V, --version print version number and configuration settings, then exit
29010 -q, --quiet, --silent
29011 do not print progress messages
29012 -d, --debug don't remove temporary files
29013 --recheck update $as_me by reconfiguring in the same conditions
29014 --file=FILE[:TEMPLATE]
29015 instantiate the configuration file FILE
29016 --header=FILE[:TEMPLATE]
29017 instantiate the configuration header FILE
29019 Configuration files:
29022 Configuration headers:
29025 Configuration links:
29028 Configuration commands:
29031 Report bugs to <bug-autoconf@gnu.org>."
29034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29036 PostgreSQL config.status 8.5devel
29037 configured by $0, generated by GNU Autoconf 2.63,
29038 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29040 Copyright (C) 2008 Free Software Foundation, Inc.
29041 This config.status script is free software; the Free Software Foundation
29042 gives unlimited permission to copy, distribute and modify it."
29048 test -n "\$AWK" || AWK=awk
29051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29052 # The default lists apply if the user does not specify any file.
29058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29070 # Handling of the options.
29071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29074 $as_echo "$ac_cs_version"; exit ;;
29075 --debug | --debu | --deb | --de | --d | -d )
29077 --file | --fil | --fi | --f )
29080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29082 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29083 ac_need_defaults=false;;
29084 --header | --heade | --head | --hea )
29087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29089 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29090 ac_need_defaults=false;;
29092 # Conflict between --help and --header
29093 { $as_echo "$as_me: error: ambiguous option: $1
29094 Try \`$0 --help' for more information." >&2
29095 { (exit 1); exit 1; }; };;
29096 --help | --hel | -h )
29097 $as_echo "$ac_cs_usage"; exit ;;
29098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29102 # This is an error.
29103 -*) { $as_echo "$as_me: error: unrecognized option: $1
29104 Try \`$0 --help' for more information." >&2
29105 { (exit 1); exit 1; }; } ;;
29107 *) ac_config_targets="$ac_config_targets $1"
29108 ac_need_defaults=false ;;
29114 ac_configure_extra_args=
29116 if $ac_cs_silent; then
29118 ac_configure_extra_args="$ac_configure_extra_args --silent"
29122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29123 if \$ac_cs_recheck; then
29124 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29127 CONFIG_SHELL='$SHELL'
29128 export CONFIG_SHELL
29133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29138 ## Running $as_me. ##
29144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29149 # Handling of arguments.
29150 for ac_config_target in $ac_config_targets
29152 case $ac_config_target in
29153 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29154 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29155 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29156 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29157 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29158 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29159 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29160 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29161 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29162 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29163 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29164 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29166 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29167 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29168 { (exit 1); exit 1; }; };;
29173 # If the user did not use the arguments to specify the items to instantiate,
29174 # then the envvar interface is used. Set only those that are not.
29175 # We use the long form for the default assignment because of an extremely
29176 # bizarre bug on SunOS 4.1.3.
29177 if $ac_need_defaults; then
29178 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29179 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29180 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29181 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29184 # Have a temporary directory for convenience. Make it in the build tree
29185 # simply because there is no reason against having it here, and in addition,
29186 # creating and moving files from /tmp can sometimes cause problems.
29187 # Hook for its removal unless debugging.
29188 # Note that there is a small window in which the directory will not be cleaned:
29189 # after its creation but before its name has been assigned to `$tmp'.
29193 trap 'exit_status=$?
29194 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29196 trap '{ (exit 1); exit 1; }' 1 2 13 15
29198 # Create a (secure) tmp directory for tmp files.
29201 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29202 test -n "$tmp" && test -d "$tmp"
29205 tmp=./conf$$-$RANDOM
29206 (umask 077 && mkdir "$tmp")
29209 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29210 { (exit 1); exit 1; }
29213 # Set up the scripts for CONFIG_FILES section.
29214 # No need to generate them if there are no CONFIG_FILES.
29215 # This happens for instance with `./config.status config.h'.
29216 if test -n "$CONFIG_FILES"; then
29220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29224 ac_cs_awk_cr=$ac_cr
29227 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29232 echo "cat >conf$$subs.awk <<_ACEOF" &&
29233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29235 } >conf$$subs.sh ||
29236 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29237 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29238 { (exit 1); exit 1; }; }
29239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29241 for ac_last_try in false false false false false :; do
29242 . ./conf$$subs.sh ||
29243 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29244 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29245 { (exit 1); exit 1; }; }
29247 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29248 if test $ac_delim_n = $ac_delim_num; then
29250 elif $ac_last_try; then
29251 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29252 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29253 { (exit 1); exit 1; }; }
29255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29258 rm -f conf$$subs.sh
29260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29261 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29265 s/^/S["/; s/!.*/"]=/
29275 s/\(.\{148\}\).*/\1/
29277 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29289 s/\(.\{148\}\).*/\1/
29291 s/["\\]/\\&/g; s/^/"/; s/$/"/
29295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29300 ' <conf$$subs.awk | sed '
29305 ' >>$CONFIG_STATUS || ac_write_fail=1
29306 rm -f conf$$subs.awk
29307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29309 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29310 for (key in S) S_is_set[key] = 1
29316 nfields = split(line, field, "@")
29318 len = length(field[1])
29319 for (i = 2; i < nfields; i++) {
29321 keylen = length(key)
29322 if (S_is_set[key]) {
29324 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29325 len += length(value) + length(field[++i])
29336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29337 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29338 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29341 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29342 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29343 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29344 { (exit 1); exit 1; }; }
29347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29349 # trailing colons and then remove the whole line if VPATH becomes empty
29350 # (actually we leave an empty line to preserve line numbers).
29351 if test "x$srcdir" = x.; then
29352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29353 s/:*\$(srcdir):*/:/
29354 s/:*\${srcdir}:*/:/
29356 s/^\([^=]*=[ ]*\):*/\1/
29362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29363 fi # test -n "$CONFIG_FILES"
29365 # Set up the scripts for CONFIG_HEADERS section.
29366 # No need to generate them if there are no CONFIG_HEADERS.
29367 # This happens for instance with `./config.status Makefile'.
29368 if test -n "$CONFIG_HEADERS"; then
29369 cat >"$tmp/defines.awk" <<\_ACAWK ||
29373 # Transform confdefs.h into an awk script `defines.awk', embedded as
29374 # here-document in config.status, that substitutes the proper values into
29375 # config.h.in to produce config.h.
29377 # Create a delimiter string that does not exist in confdefs.h, to ease
29378 # handling of long lines.
29380 for ac_last_try in false false :; do
29381 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29382 if test -z "$ac_t"; then
29384 elif $ac_last_try; then
29385 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29386 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29387 { (exit 1); exit 1; }; }
29389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29393 # For the awk script, D is an array of macro values keyed by name,
29394 # likewise P contains macro parameters if any. Preserve backslash
29395 # newline sequences.
29397 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29399 s/.\{148\}/&'"$ac_delim"'/g
29402 s/^[ ]*#[ ]*define[ ][ ]*/ /
29409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29411 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29415 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29416 D["\1"]=" \3\\\\\\n"\\/p
29418 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29423 s/.\{148\}/&'"$ac_delim"'/g
29428 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29431 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29433 ' <confdefs.h | sed '
29434 s/'"$ac_delim"'/"\\\
29435 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29438 for (key in D) D_is_set[key] = 1
29441 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29443 split(line, arg, " ")
29444 if (arg[1] == "#") {
29448 defundef = substr(arg[1], 2)
29451 split(mac1, mac2, "(") #)
29453 prefix = substr(line, 1, index(line, defundef) - 1)
29454 if (D_is_set[macro]) {
29455 # Preserve the white space surrounding the "#".
29456 print prefix "define", macro P[macro] D[macro]
29459 # Replace #undef with comments. This is necessary, for example,
29460 # in the case of _POSIX_SOURCE, which is predefined and required
29461 # on some systems where configure will not decide to define it.
29462 if (defundef == "undef") {
29463 print "/*", prefix defundef, macro, "*/"
29471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29472 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29473 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29474 { (exit 1); exit 1; }; }
29475 fi # test -n "$CONFIG_HEADERS"
29478 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29483 :[FHLC]) ac_mode=$ac_tag; continue;;
29485 case $ac_mode$ac_tag in
29487 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29488 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29489 { (exit 1); exit 1; }; };;
29490 :[FH]-) ac_tag=-:-;;
29491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29508 -) ac_f="$tmp/stdin";;
29509 *) # Look for the file first in the build tree, then in the source tree
29510 # (if the path is not absolute). The absolute path cannot be DOS-style,
29511 # because $ac_f cannot contain `:'.
29515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29517 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29518 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29519 { (exit 1); exit 1; }; };;
29521 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29522 ac_file_inputs="$ac_file_inputs '$ac_f'"
29525 # Let's still pretend it is `configure' which instantiates (i.e., don't
29526 # use $as_me), people would be surprised to read:
29527 # /* config.h. Generated by config.status. */
29528 configure_input='Generated from '`
29529 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29531 if test x"$ac_file" != x-; then
29532 configure_input="$ac_file. $configure_input"
29533 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29534 $as_echo "$as_me: creating $ac_file" >&6;}
29536 # Neutralize special characters interpreted by sed in replacement strings.
29537 case $configure_input in #(
29538 *\&* | *\|* | *\\* )
29539 ac_sed_conf_input=`$as_echo "$configure_input" |
29540 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29541 *) ac_sed_conf_input=$configure_input;;
29545 *:-:* | *:-) cat >"$tmp/stdin" \
29546 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29547 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29548 { (exit 1); exit 1; }; } ;;
29553 ac_dir=`$as_dirname -- "$ac_file" ||
29554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29555 X"$ac_file" : 'X\(//\)[^/]' \| \
29556 X"$ac_file" : 'X\(//\)$' \| \
29557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29558 $as_echo X"$ac_file" |
29559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29563 /^X\(\/\/\)[^/].*/{
29578 -*) as_dir=./$as_dir;;
29580 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29584 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29585 *) as_qdir=$as_dir;;
29587 as_dirs="'$as_qdir' $as_dirs"
29588 as_dir=`$as_dirname -- "$as_dir" ||
29589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29590 X"$as_dir" : 'X\(//\)[^/]' \| \
29591 X"$as_dir" : 'X\(//\)$' \| \
29592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29593 $as_echo X"$as_dir" |
29594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29598 /^X\(\/\/\)[^/].*/{
29611 test -d "$as_dir" && break
29613 test -z "$as_dirs" || eval "mkdir $as_dirs"
29614 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29615 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29616 { (exit 1); exit 1; }; }; }
29620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29623 # A ".." for each directory in $ac_dir_suffix.
29624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29625 case $ac_top_builddir_sub in
29626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29630 ac_abs_top_builddir=$ac_pwd
29631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29632 # for backward compatibility:
29633 ac_top_builddir=$ac_top_build_prefix
29636 .) # We are building in place.
29638 ac_top_srcdir=$ac_top_builddir_sub
29639 ac_abs_top_srcdir=$ac_pwd ;;
29640 [\\/]* | ?:[\\/]* ) # Absolute name.
29641 ac_srcdir=$srcdir$ac_dir_suffix;
29642 ac_top_srcdir=$srcdir
29643 ac_abs_top_srcdir=$srcdir ;;
29644 *) # Relative name.
29645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29646 ac_top_srcdir=$ac_top_build_prefix$srcdir
29647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29658 ac_MKDIR_P=$MKDIR_P
29660 [\\/$]* | ?:[\\/]* ) ;;
29661 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29666 # If the template does not know about datarootdir, expand it.
29667 # FIXME: This hack should be removed a few years after 2.60.
29668 ac_datarootdir_hack=; ac_datarootdir_seen=
29681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29682 *datarootdir*) ac_datarootdir_seen=yes;;
29683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29684 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29688 ac_datarootdir_hack='
29689 s&@datadir@&$datadir&g
29690 s&@docdir@&$docdir&g
29691 s&@infodir@&$infodir&g
29692 s&@localedir@&$localedir&g
29693 s&@mandir@&$mandir&g
29694 s&\\\${datarootdir}&$datarootdir&g' ;;
29698 # Neutralize VPATH when `$srcdir' = `.'.
29699 # Shell code in configure.ac might set extrasub.
29700 # FIXME: do we really want to maintain this feature?
29701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29702 ac_sed_extra="$ac_vpsub
29705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29708 s|@configure_input@|$ac_sed_conf_input|;t t
29709 s&@top_builddir@&$ac_top_builddir_sub&;t t
29710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29711 s&@srcdir@&$ac_srcdir&;t t
29712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29713 s&@top_srcdir@&$ac_top_srcdir&;t t
29714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29715 s&@builddir@&$ac_builddir&;t t
29716 s&@abs_builddir@&$ac_abs_builddir&;t t
29717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29718 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29719 $ac_datarootdir_hack
29721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29722 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29723 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29724 { (exit 1); exit 1; }; }
29726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29727 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29729 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29730 which seems to be undefined. Please make sure it is defined." >&5
29731 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29732 which seems to be undefined. Please make sure it is defined." >&2;}
29736 -) cat "$tmp/out" && rm -f "$tmp/out";;
29737 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29739 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29740 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29741 { (exit 1); exit 1; }; }
29747 if test x"$ac_file" != x-; then
29749 $as_echo "/* $configure_input */" \
29750 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29751 } >"$tmp/config.h" \
29752 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29753 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29754 { (exit 1); exit 1; }; }
29755 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29756 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29757 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29760 mv "$tmp/config.h" "$ac_file" \
29761 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29762 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29763 { (exit 1); exit 1; }; }
29766 $as_echo "/* $configure_input */" \
29767 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29768 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29769 $as_echo "$as_me: error: could not create -" >&2;}
29770 { (exit 1); exit 1; }; }
29778 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29781 # Prefer the file from the source tree if names are identical.
29782 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29783 ac_source=$srcdir/$ac_source
29786 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
29787 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29789 if test ! -r "$ac_source"; then
29790 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
29791 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
29792 { (exit 1); exit 1; }; }
29796 # Try a relative symlink, then a hard link, then a copy.
29798 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29799 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29801 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29802 ln "$ac_source" "$ac_file" 2>/dev/null ||
29803 cp -p "$ac_source" "$ac_file" ||
29804 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
29805 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
29806 { (exit 1); exit 1; }; }
29809 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29810 $as_echo "$as_me: executing $ac_file commands" >&6;}
29815 case $ac_file$ac_mode in
29816 "check_win32_symlinks":C)
29817 # Links sometimes fail undetected on Mingw -
29818 # so here we detect it and warn the user
29819 for FILE in $CONFIG_LINKS
29821 # test -e works for symlinks in the MinGW console
29822 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
29823 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
29826 "src/include/pg_config.h":H)
29827 # Update timestamp for pg_config.h (see Makefile.global)
29828 echo >src/include/stamp-h
29830 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
29836 { (exit 0); exit 0; }
29838 chmod +x $CONFIG_STATUS
29839 ac_clean_files=$ac_clean_files_save
29841 test $ac_write_fail = 0 ||
29842 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29843 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29844 { (exit 1); exit 1; }; }
29847 # configure is writing to config.log, and then calls config.status.
29848 # config.status does its own redirection, appending to config.log.
29849 # Unfortunately, on DOS this fails, as config.log is still kept open
29850 # by configure, so config.status won't be able to write to it; its
29851 # output is simply discarded. So we exec the FD to /dev/null,
29852 # effectively closing config.log, so it can be properly (re)opened and
29853 # appended to by config.status. When coming back to configure, we
29854 # need to make the FD available again.
29855 if test "$no_create" != yes; then
29857 ac_config_status_args=
29858 test "$silent" = yes &&
29859 ac_config_status_args="$ac_config_status_args --quiet"
29861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29864 # would make configure fail if this is the last instruction.
29865 $ac_cs_success || { (exit 1); exit 1; }
29867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29868 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}