2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.0.4.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2010, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.0.4'
602 PACKAGE_STRING='PostgreSQL 9.0.4'
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
793 program_transform_name
805 enable_option_checking
810 enable_integer_datetimes
840 with_libedit_preferred
851 ac_precious_vars='build_alias
865 # Initialize some variables set by options.
867 ac_init_version=false
868 ac_unrecognized_opts=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name=s,x,x,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999 { (exit 1); exit 1; }; }
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1231 eval with_$ac_useropt=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286 { (exit 1); exit 1; }; } ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures PostgreSQL 9.0.4 to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of PostgreSQL 9.0.4:";;
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-integer-datetimes
1489 disable 64-bit integer date/time support
1490 --enable-nls[=LANGUAGES]
1491 enable Native Language Support
1492 --disable-shared do not build shared libraries
1493 --disable-rpath do not embed shared library search path in
1495 --disable-spinlocks do not use spinlocks
1496 --enable-debug build with debugging symbols (-g)
1497 --enable-profiling build with profiling enabled
1498 --enable-coverage build with coverage testing instrumentation
1499 --enable-dtrace build with DTrace support
1500 --enable-depend turn on automatic dependency tracking
1501 --enable-cassert enable assertion checks (for debugging)
1502 --disable-thread-safety disable thread-safety in client libraries
1503 --disable-largefile omit support for large files
1504 --disable-float4-byval disable float4 passed by value
1505 --disable-float8-byval disable float8 passed by value
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-template=NAME override operating system template
1511 --with-includes=DIRS look for additional header files in DIRS
1512 --with-libraries=DIRS look for additional libraries in DIRS
1513 --with-libs=DIRS alternative spelling of --with-libraries
1514 --with-pgport=PORTNUM set default port number [5432]
1515 --with-blocksize=BLOCKSIZE
1516 set table block size in kB [8]
1517 --with-segsize=SEGSIZE set table segment size in GB [1]
1518 --with-wal-blocksize=BLOCKSIZE
1519 set WAL block size in kB [8]
1520 --with-wal-segsize=SEGSIZE
1521 set WAL segment size in MB [16]
1522 --with-CC=CMD set compiler (deprecated)
1523 --with-tcl build Tcl modules (PL/Tcl)
1524 --with-tclconfig=DIR tclConfig.sh is in DIR
1525 --with-perl build Perl modules (PL/Perl)
1526 --with-python build Python modules (PL/Python)
1527 --with-gssapi build with GSSAPI support
1528 --with-krb5 build with Kerberos 5 support
1529 --with-krb-srvnam=NAME default service principal name in Kerberos
1531 --with-pam build with PAM support
1532 --with-ldap build with LDAP support
1533 --with-bonjour build with Bonjour support
1534 --with-openssl build with OpenSSL support
1535 --without-readline do not use GNU Readline nor BSD Libedit for editing
1536 --with-libedit-preferred
1537 prefer BSD Libedit over GNU Readline
1538 --with-ossp-uuid use OSSP UUID library when building
1540 --with-libxml build with XML support
1541 --with-libxslt use XSLT support when building contrib/xml2
1542 --with-system-tzdata=DIR
1543 use system time zone data in DIR
1544 --without-zlib do not use Zlib
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 LDFLAGS_EX extra linker flags for linking executables only
1557 LDFLAGS_SL extra linker flags for linking shared libraries only
1559 location of DocBook stylesheets
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 PostgreSQL configure 9.0.4
1628 generated by GNU Autoconf 2.63
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1643 It was created by PostgreSQL $as_me 9.0.4, which was
1644 generated by GNU Autoconf 2.63. Invocation command line was
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1665 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1666 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1669 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1670 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1671 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 $as_echo "PATH: $as_dir"
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_must_keep_next=false
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1715 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 -* ) ac_must_keep_next=true ;;
1736 ac_configure_args="$ac_configure_args '$ac_arg'"
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Save into config.log some information that might help in debugging.
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1760 # The following way of writing the cache mishandles newlines in values,
1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763 eval ac_val=\$$ac_var
1767 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1771 _ | IFS | as_nl) ;; #(
1772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773 *) $as_unset $ac_var ;;
1778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1798 for ac_var in $ac_subst_vars
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 $as_echo "$ac_var='\''$ac_val'\''"
1808 if test -n "$ac_subst_files"; then
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1815 for ac_var in $ac_subst_files
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 $as_echo "$ac_var='\''$ac_val'\''"
1826 if test -s confdefs.h; then
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 # Predefined preprocessor variables.
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886 ac_site_file1=$prefix/share/config.site
1887 ac_site_file2=$prefix/etc/config.site
1889 ac_site_file1=$ac_default_prefix/share/config.site
1890 ac_site_file2=$ac_default_prefix/etc/config.site
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894 test "x$ac_site_file" = xNONE && continue
1895 if test -r "$ac_site_file"; then
1896 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920 # Check that the precious variables saved in the cache have kept the same
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 # differences in whitespace do not lead to failure.
1941 ac_old_val_w=`echo x $ac_old_val`
1942 ac_new_val_w=`echo x $ac_new_val`
1943 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946 ac_cache_corrupted=:
1948 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950 eval $ac_var=\$ac_old_val
1952 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1953 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1954 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1961 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 if $ac_cache_corrupted; then
1971 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977 { (exit 1); exit 1; }; }
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 for ac_dir in config "$srcdir"/config; do
2017 if test -f "$ac_dir/install-sh"; then
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 elif test -f "$ac_dir/install.sh"; then
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 elif test -f "$ac_dir/shtool"; then
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 if test -z "$ac_aux_dir"; then
2032 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047 configure_args=$ac_configure_args
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2074 ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093 { (exit 1); exit 1; }; };;
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 $as_echo_n "(cached) " >&6
2114 if test "x$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130 { (exit 1); exit 1; }; };;
2133 ac_save_IFS=$IFS; IFS='-'
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156 withval=$with_template;
2159 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166 { (exit 1); exit 1; }; }
2171 list) echo; ls "$srcdir/src/template"; exit;;
2172 *) if test -f "$srcdir/src/template/$with_template" ; then
2175 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177 { (exit 1); exit 1; }; }
2186 # --with-template not given
2189 aix*) template=aix ;;
2190 bsdi*) template=bsdi ;;
2191 cygwin*) template=cygwin ;;
2192 darwin*) template=darwin ;;
2193 dgux*) template=dgux ;;
2194 freebsd*) template=freebsd ;;
2195 hpux*) template=hpux ;;
2196 irix*) template=irix ;;
2197 linux*|gnu*|k*bsd*-gnu)
2199 mingw*) template=win32 ;;
2200 netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202 openbsd*) template=openbsd ;;
2203 osf*) template=osf ;;
2204 sco*) template=sco ;;
2205 solaris*) template=solaris ;;
2206 sunos*) template=sunos4 ;;
2208 case $host_vendor in
2209 univel) template=univel ;;
2211 sysv4*) template=svr4 ;;
2212 sysv5*) template=unixware ;;
2213 ultrix*) template=ultrix4 ;;
2216 if test x"$template" = x"" ; then
2217 { { $as_echo "$as_me:$LINENO: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this. Include the above 'checking host system type...'
2226 *******************************************************************
2228 $as_echo "$as_me: error:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration, look into the src/template directory
2232 for a similar platform and use the '--with-template=' option.
2234 Please also contact <pgsql-bugs@postgresql.org> to see about
2235 rectifying this. Include the above 'checking host system type...'
2237 *******************************************************************
2239 { (exit 1); exit 1; }; }
2247 { $as_echo "$as_me:$LINENO: result: $template" >&5
2248 $as_echo "$template" >&6; }
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set). This can be overridden by the template file
2255 # when it's executed.
2262 ## Command line options
2266 # Add non-standard directories to the include path
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273 withval=$with_includes;
2276 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2277 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2278 { (exit 1); exit 1; }; }
2281 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283 { (exit 1); exit 1; }; }
2296 # Add non-standard directories to the library search path
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303 withval=$with_libraries;
2306 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2307 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313 { (exit 1); exit 1; }; }
2316 LIBRARY_DIRS=$withval
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2332 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2333 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2334 { (exit 1); exit 1; }; }
2337 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339 { (exit 1); exit 1; }; }
2342 LIBRARY_DIRS=$withval
2352 # 64-bit integer date/time storage: enabled by default.
2354 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2355 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360 enableval=$enable_integer_datetimes;
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2373 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2374 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2375 { (exit 1); exit 1; }; }
2380 enable_integer_datetimes=yes
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2389 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2397 $as_echo_n "checking whether NLS is wanted... " >&6; }
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402 enableval=$enable_nls;
2412 WANTED_LANGUAGES=$enableval
2422 if test "$enable_nls" = yes; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2430 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2436 # Default port number (--with-pgport), default 5432
2438 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2439 $as_echo_n "checking for default port number... " >&6; }
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445 withval=$with_pgport;
2448 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2449 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2450 { (exit 1); exit 1; }; }
2453 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455 { (exit 1); exit 1; }; }
2458 default_port=$withval
2467 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2483 # Option to disable shared libraries
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489 enableval=$enable_shared;
2498 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2499 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2500 { (exit 1); exit 1; }; }
2513 # '-rpath'-like feature can be disabled
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519 enableval=$enable_rpath;
2528 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2529 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2530 { (exit 1); exit 1; }; }
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549 enableval=$enable_spinlocks;
2558 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2559 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2560 { (exit 1); exit 1; }; }
2565 enable_spinlocks=yes
2572 # --enable-debug adds -g to compiler flags
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578 enableval=$enable_debug;
2587 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2588 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2589 { (exit 1); exit 1; }; }
2602 # --enable-profiling enables gcc profiling
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608 enableval=$enable_profiling;
2617 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2618 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2619 { (exit 1); exit 1; }; }
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638 enableval=$enable_coverage;
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$GCOV"; then
2651 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_GCOV="$ac_prog"
2661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2675 { $as_echo "$as_me:$LINENO: result: no" >&5
2676 $as_echo "no" >&6; }
2680 test -n "$GCOV" && break
2683 if test -z "$GCOV"; then
2684 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2685 $as_echo "$as_me: error: gcov not found" >&2;}
2686 { (exit 1); exit 1; }; }
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$LCOV"; then
2698 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_LCOV="$ac_prog"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$LCOV" && break
2730 if test -z "$LCOV"; then
2731 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2732 $as_echo "$as_me: error: lcov not found" >&2;}
2733 { (exit 1); exit 1; }; }
2735 for ac_prog in genhtml
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$GENHTML"; then
2745 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_GENHTML="$ac_prog"
2755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2769 { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2774 test -n "$GENHTML" && break
2777 if test -z "$GENHTML"; then
2778 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2779 $as_echo "$as_me: error: genhtml not found" >&2;}
2780 { (exit 1); exit 1; }; }
2787 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2788 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2789 { (exit 1); exit 1; }; }
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808 enableval=$enable_dtrace;
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2816 for ac_prog in dtrace
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$DTRACE"; then
2826 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_DTRACE="$ac_prog"
2836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$DTRACE" && break
2858 if test -z "$DTRACE"; then
2859 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2860 $as_echo "$as_me: error: dtrace not found" >&2;}
2861 { (exit 1); exit 1; }; }
2869 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2870 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2871 { (exit 1); exit 1; }; }
2886 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2887 $as_echo_n "checking for block size... " >&6; }
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893 withval=$with_blocksize;
2896 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2897 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2898 { (exit 1); exit 1; }; }
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903 { (exit 1); exit 1; }; }
2915 case ${blocksize} in
2922 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2923 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2924 { (exit 1); exit 1; }; }
2926 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2927 $as_echo "${blocksize}kB" >&6; }
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2936 # Relation segment size
2938 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2939 $as_echo_n "checking for segment size... " >&6; }
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945 withval=$with_segsize;
2948 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2950 { (exit 1); exit 1; }; }
2953 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955 { (exit 1); exit 1; }; }
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2972 $as_echo "${segsize}GB" >&6; }
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2983 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2984 $as_echo_n "checking for WAL block size... " >&6; }
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990 withval=$with_wal_blocksize;
2993 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2994 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2995 { (exit 1); exit 1; }; }
2998 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000 { (exit 1); exit 1; }; }
3003 wal_blocksize=$withval
3012 case ${wal_blocksize} in
3013 1) XLOG_BLCKSZ=1024;;
3014 2) XLOG_BLCKSZ=2048;;
3015 4) XLOG_BLCKSZ=4096;;
3016 8) XLOG_BLCKSZ=8192;;
3017 16) XLOG_BLCKSZ=16384;;
3018 32) XLOG_BLCKSZ=32768;;
3019 64) XLOG_BLCKSZ=65536;;
3020 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3021 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3022 { (exit 1); exit 1; }; }
3024 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3025 $as_echo "${wal_blocksize}kB" >&6; }
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3036 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3037 $as_echo_n "checking for WAL segment size... " >&6; }
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043 withval=$with_wal_segsize;
3046 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3047 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3048 { (exit 1); exit 1; }; }
3051 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053 { (exit 1); exit 1; }; }
3056 wal_segsize=$withval
3065 case ${wal_segsize} in
3073 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3074 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3075 { (exit 1); exit 1; }; }
3077 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3078 $as_echo "${wal_segsize}MB" >&6; }
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3101 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3102 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3103 { (exit 1); exit 1; }; }
3106 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108 { (exit 1); exit 1; }; }
3120 aix) pgac_cc_list="gcc xlc";;
3121 irix) pgac_cc_list="cc";; # no gcc
3122 *) pgac_cc_list="gcc cc";;
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in $pgac_cc_list
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$CC" && break
3173 if test -z "$CC"; then
3175 for ac_prog in $pgac_cc_list
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3214 test -n "$ac_ct_CC" && break
3217 if test "x$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }; }
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3243 { (ac_try="$ac_compiler --version >&5"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compiler --version >&5") 2>&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compiler -v >&5") 2>&5
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compiler -V >&5") 2>&5
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305 for ac_file in $ac_files
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 if { (ac_try="$ac_link_default"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_link_default") 2>&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373 { (exit 77); exit 77; }; }; }
3376 ac_exeext=$ac_cv_exeext
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_try") 2>&5
3394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 if test "$cross_compiling" = maybe; then
3401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }; }
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link") 2>&5
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }; }
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_compile") 2>&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; then
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }; }
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3738 if test "$GCC" = yes; then
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 ac_cv_prog_cc_c89=no
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3775 s = g (p, va_arg (v,int));
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 rm -f conftest.$ac_ext
3846 case "x$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own. We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3881 #ifndef __INTEL_COMPILER
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && {
3950 test -z "$ac_c_werror_flag" ||
3951 test ! -s conftest.err
3952 } && test -s conftest.$ac_objext; then
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 . "$srcdir/src/template/$template" || exit
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else: If the template file set something, that is used.
3975 # else: If coverage was enabled, don't set anything.
3976 # else: If the compiler is GCC, then we use -O2.
3977 # else: If the compiler is something else, then we use -O, unless debugging.
3979 if test "$ac_env_CFLAGS_set" = set; then
3980 CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982 : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984 : # no optimization by default
3985 elif test "$GCC" = yes; then
3988 # if the user selected debug mode, don't use -O
3989 if test "$enable_debug" != yes; then
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own. Also check other compiler-specific flags here.
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001 # These work in some but not all gcc versions
4002 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4004 pgac_save_CFLAGS=$CFLAGS
4005 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.$ac_objext; then
4039 { $as_echo "$as_me:$LINENO: result: yes" >&5
4040 $as_echo "yes" >&6; }
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 CFLAGS="$pgac_save_CFLAGS"
4046 { $as_echo "$as_me:$LINENO: result: no" >&5
4047 $as_echo "no" >&6; }
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4053 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4054 pgac_save_CFLAGS=$CFLAGS
4055 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4089 { $as_echo "$as_me:$LINENO: result: yes" >&5
4090 $as_echo "yes" >&6; }
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 CFLAGS="$pgac_save_CFLAGS"
4096 { $as_echo "$as_me:$LINENO: result: no" >&5
4097 $as_echo "no" >&6; }
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 # Disable strict-aliasing rules; needed for gcc 3.3+
4103 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4104 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4105 pgac_save_CFLAGS=$CFLAGS
4106 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4129 $as_echo "$ac_try_echo") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } && {
4137 test -z "$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4139 } && test -s conftest.$ac_objext; then
4140 { $as_echo "$as_me:$LINENO: result: yes" >&5
4141 $as_echo "yes" >&6; }
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 CFLAGS="$pgac_save_CFLAGS"
4147 { $as_echo "$as_me:$LINENO: result: no" >&5
4148 $as_echo "no" >&6; }
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4154 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4155 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4156 pgac_save_CFLAGS=$CFLAGS
4157 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4158 cat >conftest.$ac_ext <<_ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && {
4188 test -z "$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 } && test -s conftest.$ac_objext; then
4191 { $as_echo "$as_me:$LINENO: result: yes" >&5
4192 $as_echo "yes" >&6; }
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 CFLAGS="$pgac_save_CFLAGS"
4198 { $as_echo "$as_me:$LINENO: result: no" >&5
4199 $as_echo "no" >&6; }
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 elif test "$ICC" = yes; then
4205 # Intel's compiler has a bug/misoptimization in checking for
4206 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4207 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4208 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4209 pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -mp1"
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4236 grep -v '^ *+' conftest.er1 >conftest.err
4238 cat conftest.err >&5
4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.$ac_objext; then
4244 { $as_echo "$as_me:$LINENO: result: yes" >&5
4245 $as_echo "yes" >&6; }
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 CFLAGS="$pgac_save_CFLAGS"
4251 { $as_echo "$as_me:$LINENO: result: no" >&5
4252 $as_echo "no" >&6; }
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 # Make sure strict aliasing is off (though this is said to be the default)
4258 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4259 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4260 pgac_save_CFLAGS=$CFLAGS
4261 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285 (eval "$ac_compile") 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && {
4292 test -z "$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 } && test -s conftest.$ac_objext; then
4295 { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 CFLAGS="$pgac_save_CFLAGS"
4302 { $as_echo "$as_me:$LINENO: result: no" >&5
4303 $as_echo "no" >&6; }
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 elif test "$PORTNAME" = "aix"; then
4309 # AIX's xlc has to have strict aliasing turned off too
4310 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4311 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4312 pgac_save_CFLAGS=$CFLAGS
4313 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest.$ac_objext; then
4347 { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 CFLAGS="$pgac_save_CFLAGS"
4354 { $as_echo "$as_me:$LINENO: result: no" >&5
4355 $as_echo "no" >&6; }
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 # supply -g if --enable-debug
4363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4367 # enable code coverage if --enable-coverage
4368 if test "$enable_coverage" = yes; then
4369 if test "$GCC" = yes; then
4370 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4372 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4373 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4374 { (exit 1); exit 1; }; }
4378 # enable profiling if --enable-profiling
4379 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4380 if test "$GCC" = yes; then
4382 cat >>confdefs.h <<\_ACEOF
4383 #define PROFILE_PID_DIR 1
4386 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4388 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4389 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4390 { (exit 1); exit 1; }; }
4394 # We already have this in Makefile.win32, but configure needs it too
4395 if test "$PORTNAME" = "win32"; then
4396 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4399 # Check if the compiler still works with the template settings
4400 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4401 $as_echo_n "checking whether the C compiler still works... " >&6; }
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425 (eval "$ac_link") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest$ac_exeext && {
4435 test "$cross_compiling" = yes ||
4436 $as_test_x conftest$ac_exeext
4438 { $as_echo "$as_me:$LINENO: result: yes" >&5
4439 $as_echo "yes" >&6; }
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4446 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4447 $as_echo "$as_me: error: cannot proceed" >&2;}
4448 { (exit 1); exit 1; }; }
4451 rm -rf conftest.dSYM
4452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4453 conftest$ac_exeext conftest.$ac_ext
4455 # Defend against gcc -ffast-math
4456 if test "$GCC" = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4467 #ifdef __FAST_MATH__
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4481 $as_echo "$ac_try_echo") >&5
4482 (eval "$ac_compile") 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && {
4489 test -z "$ac_c_werror_flag" ||
4490 test ! -s conftest.err
4491 } && test -s conftest.$ac_objext; then
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4498 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4499 { (exit 1); exit 1; }; }
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cpp='$CPP $CPPFLAGS'
4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4512 # On Suns, sometimes $CPP names a directory.
4513 if test -n "$CPP" && test -d "$CPP"; then
4516 if test -z "$CPP"; then
4517 if test "${ac_cv_prog_CPP+set}" = set; then
4518 $as_echo_n "(cached) " >&6
4520 # Double quotes because CPP needs to be expanded
4521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4524 for ac_c_preproc_warn_flag in '' yes
4526 # Use a header file that comes with gcc, so configuring glibc
4527 # with a fresh cross-compiler works.
4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529 # <limits.h> exists even on freestanding compilers.
4530 # On the NeXT, cc -E runs the code through the compiler's parser,
4531 # not just through cpp. "Syntax error" is here to catch this case.
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4539 # include <limits.h>
4541 # include <assert.h>
4545 if { (ac_try="$ac_cpp conftest.$ac_ext"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null && {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 # Broken: fails on valid input.
4571 rm -f conftest.err conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null && {
4597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4600 # Broken: success on invalid input.
4603 $as_echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 # Passes both tests.
4611 rm -f conftest.err conftest.$ac_ext
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.$ac_ext
4616 if $ac_preproc_ok; then
4628 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4629 $as_echo "$CPP" >&6; }
4631 for ac_c_preproc_warn_flag in '' yes
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 # include <limits.h>
4648 # include <assert.h>
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } >/dev/null && {
4666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 # Broken: fails on valid input.
4678 rm -f conftest.err conftest.$ac_ext
4680 # OK, works on sane cases. Now check whether nonexistent headers
4681 # can be detected and how.
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <ac_nonexistent.h>
4690 if { (ac_try="$ac_cpp conftest.$ac_ext"
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null && {
4704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4707 # Broken: success on invalid input.
4710 $as_echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 # Passes both tests.
4718 rm -f conftest.err conftest.$ac_ext
4721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722 rm -f conftest.err conftest.$ac_ext
4723 if $ac_preproc_ok; then
4726 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4728 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&5
4730 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }; }
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 # Set up TAS assembly code if needed; the template file has now had its
4746 # chance to request this.
4748 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4751 if test "$need_tas" = yes ; then
4760 # Automatic dependency tracking
4764 # Check whether --enable-depend was given.
4765 if test "${enable_depend+set}" = set; then
4766 enableval=$enable_depend;
4775 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4776 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4777 { (exit 1); exit 1; }; }
4791 # Enable assert checks
4795 # Check whether --enable-cassert was given.
4796 if test "${enable_cassert+set}" = set; then
4797 enableval=$enable_cassert;
4801 cat >>confdefs.h <<\_ACEOF
4802 #define USE_ASSERT_CHECKING 1
4810 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4811 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4812 { (exit 1); exit 1; }; }
4825 # Include directories
4828 IFS="${IFS}${PATH_SEPARATOR}"
4829 # SRCH_INC comes from the template file
4830 for dir in $with_includes $SRCH_INC; do
4831 if test -d "$dir"; then
4832 INCLUDES="$INCLUDES -I$dir"
4834 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4835 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4843 # Library directories
4846 IFS="${IFS}${PATH_SEPARATOR}"
4847 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4848 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4849 if test -d "$dir"; then
4850 LIBDIRS="$LIBDIRS -L$dir"
4852 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4853 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4859 # Enable thread-safe client libraries
4861 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4862 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4865 # Check whether --enable-thread-safety was given.
4866 if test "${enable_thread_safety+set}" = set; then
4867 enableval=$enable_thread_safety;
4876 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4877 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4878 { (exit 1); exit 1; }; }
4883 enable_thread_safety=yes
4888 if test "$enable_thread_safety" = yes; then
4890 cat >>confdefs.h <<\_ACEOF
4891 #define ENABLE_THREAD_SAFETY 1
4895 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4896 $as_echo "$enable_thread_safety" >&6; }
4900 # Optionally build Tcl modules (PL/Tcl)
4902 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4903 $as_echo_n "checking whether to build with Tcl... " >&6; }
4907 # Check whether --with-tcl was given.
4908 if test "${with_tcl+set}" = set; then
4918 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4919 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4920 { (exit 1); exit 1; }; }
4930 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4931 $as_echo "$with_tcl" >&6; }
4934 # We see if the path to the Tcl/Tk configuration scripts is specified.
4935 # This will override the use of tclsh to find the paths to search.
4940 # Check whether --with-tclconfig was given.
4941 if test "${with_tclconfig+set}" = set; then
4942 withval=$with_tclconfig;
4945 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4946 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4947 { (exit 1); exit 1; }; }
4950 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4951 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4952 { (exit 1); exit 1; }; }
4964 # Optionally build Perl modules (PL/Perl)
4966 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4967 $as_echo_n "checking whether to build Perl modules... " >&6; }
4971 # Check whether --with-perl was given.
4972 if test "${with_perl+set}" = set; then
4982 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4983 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4984 { (exit 1); exit 1; }; }
4994 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4995 $as_echo "$with_perl" >&6; }
4999 # Optionally build Python modules (PL/Python)
5001 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5002 $as_echo_n "checking whether to build Python modules... " >&6; }
5006 # Check whether --with-python was given.
5007 if test "${with_python+set}" = set; then
5008 withval=$with_python;
5017 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5018 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5019 { (exit 1); exit 1; }; }
5029 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5030 $as_echo "$with_python" >&6; }
5036 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5037 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5041 # Check whether --with-gssapi was given.
5042 if test "${with_gssapi+set}" = set; then
5043 withval=$with_gssapi;
5048 cat >>confdefs.h <<\_ACEOF
5049 #define ENABLE_GSS 1
5052 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5059 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5060 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5061 { (exit 1); exit 1; }; }
5071 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5072 $as_echo "$with_gssapi" >&6; }
5078 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5079 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5083 # Check whether --with-krb5 was given.
5084 if test "${with_krb5+set}" = set; then
5090 cat >>confdefs.h <<\_ACEOF
5094 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5101 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5102 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5103 { (exit 1); exit 1; }; }
5113 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5114 $as_echo "$with_krb5" >&6; }
5122 # Kerberos configuration parameters
5127 # Check whether --with-krb-srvnam was given.
5128 if test "${with_krb_srvnam+set}" = set; then
5129 withval=$with_krb_srvnam;
5132 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5133 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5134 { (exit 1); exit 1; }; }
5137 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5138 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5139 { (exit 1); exit 1; }; }
5147 with_krb_srvnam="postgres"
5152 cat >>confdefs.h <<_ACEOF
5153 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5161 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5162 $as_echo_n "checking whether to build with PAM support... " >&6; }
5166 # Check whether --with-pam was given.
5167 if test "${with_pam+set}" = set; then
5172 cat >>confdefs.h <<\_ACEOF
5181 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5182 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5183 { (exit 1); exit 1; }; }
5193 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5194 $as_echo "$with_pam" >&6; }
5201 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5202 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5206 # Check whether --with-ldap was given.
5207 if test "${with_ldap+set}" = set; then
5212 cat >>confdefs.h <<\_ACEOF
5221 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5222 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5223 { (exit 1); exit 1; }; }
5233 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5234 $as_echo "$with_ldap" >&6; }
5241 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5242 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5246 # Check whether --with-bonjour was given.
5247 if test "${with_bonjour+set}" = set; then
5248 withval=$with_bonjour;
5252 cat >>confdefs.h <<\_ACEOF
5253 #define USE_BONJOUR 1
5261 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5262 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5263 { (exit 1); exit 1; }; }
5273 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5274 $as_echo "$with_bonjour" >&6; }
5281 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5282 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5286 # Check whether --with-openssl was given.
5287 if test "${with_openssl+set}" = set; then
5288 withval=$with_openssl;
5292 cat >>confdefs.h <<\_ACEOF
5301 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5303 { (exit 1); exit 1; }; }
5313 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5314 $as_echo "$with_openssl" >&6; }
5324 # Check whether --with-readline was given.
5325 if test "${with_readline+set}" = set; then
5326 withval=$with_readline;
5335 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5336 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5337 { (exit 1); exit 1; }; }
5347 # readline on MinGW has problems with backslashes in psql and other bugs.
5348 # This is particularly a problem with non-US code pages.
5349 # Therefore disable its use until we understand the cause. 2004-07-20
5350 if test "$PORTNAME" = "win32"; then
5351 if test "$with_readline" = yes; then
5352 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5353 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5365 # Check whether --with-libedit-preferred was given.
5366 if test "${with_libedit_preferred+set}" = set; then
5367 withval=$with_libedit_preferred;
5376 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5377 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5378 { (exit 1); exit 1; }; }
5383 with_libedit_preferred=no
5396 # Check whether --with-ossp-uuid was given.
5397 if test "${with_ossp_uuid+set}" = set; then
5398 withval=$with_ossp_uuid;
5407 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5408 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5409 { (exit 1); exit 1; }; }
5428 # Check whether --with-libxml was given.
5429 if test "${with_libxml+set}" = set; then
5430 withval=$with_libxml;
5434 cat >>confdefs.h <<\_ACEOF
5435 #define USE_LIBXML 1
5443 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5444 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5445 { (exit 1); exit 1; }; }
5456 if test "$with_libxml" = yes ; then
5457 for ac_prog in xml2-config
5459 # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 if test -n "$XML2_CONFIG"; then
5467 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_prog_XML2_CONFIG="$ac_prog"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5487 if test -n "$XML2_CONFIG"; then
5488 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5489 $as_echo "$XML2_CONFIG" >&6; }
5491 { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5496 test -n "$XML2_CONFIG" && break
5499 if test -n "$XML2_CONFIG"; then
5500 for pgac_option in `$XML2_CONFIG --cflags`; do
5501 case $pgac_option in
5502 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5505 for pgac_option in `$XML2_CONFIG --libs`; do
5506 case $pgac_option in
5507 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5521 # Check whether --with-libxslt was given.
5522 if test "${with_libxslt+set}" = set; then
5523 withval=$with_libxslt;
5527 cat >>confdefs.h <<\_ACEOF
5528 #define USE_LIBXSLT 1
5536 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5537 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5538 { (exit 1); exit 1; }; }
5558 # Check whether --with-system-tzdata was given.
5559 if test "${with_system_tzdata+set}" = set; then
5560 withval=$with_system_tzdata;
5563 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5564 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5565 { (exit 1); exit 1; }; }
5568 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5569 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5570 { (exit 1); exit 1; }; }
5588 # Check whether --with-zlib was given.
5589 if test "${with_zlib+set}" = set; then
5599 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5601 { (exit 1); exit 1; }; }
5617 # Assume system is ELF if it predefines __ELF__ as 1,
5618 # otherwise believe host_os based default.
5620 freebsd1*|freebsd2*) elf=no;;
5621 freebsd3*|freebsd4*) elf=yes;;
5625 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5630 if test -z "$GREP"; then
5631 ac_path_GREP_found=false
5632 # Loop through the user's path and test for each of PROGNAME-LIST
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5637 test -z "$as_dir" && as_dir=.
5638 for ac_prog in grep ggrep; do
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5642 # Check for GNU ac_path_GREP and select it if it is found.
5643 # Check for GNU $ac_path_GREP
5644 case `"$ac_path_GREP" --version 2>&1` in
5646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5649 $as_echo_n 0123456789 >"conftest.in"
5652 cat "conftest.in" "conftest.in" >"conftest.tmp"
5653 mv "conftest.tmp" "conftest.in"
5654 cp "conftest.in" "conftest.nl"
5655 $as_echo 'GREP' >> "conftest.nl"
5656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658 ac_count=`expr $ac_count + 1`
5659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5660 # Best one so far, save it but keep looking for a better one
5661 ac_cv_path_GREP="$ac_path_GREP"
5662 ac_path_GREP_max=$ac_count
5664 # 10*(2^10) chars as input seems more than enough
5665 test $ac_count -gt 10 && break
5667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5670 $ac_path_GREP_found && break 3
5675 if test -z "$ac_cv_path_GREP"; then
5676 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5677 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5678 { (exit 1); exit 1; }; }
5681 ac_cv_path_GREP=$GREP
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5686 $as_echo "$ac_cv_path_GREP" >&6; }
5687 GREP="$ac_cv_path_GREP"
5690 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5691 $as_echo_n "checking for egrep... " >&6; }
5692 if test "${ac_cv_path_EGREP+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5696 then ac_cv_path_EGREP="$GREP -E"
5698 if test -z "$EGREP"; then
5699 ac_path_EGREP_found=false
5700 # Loop through the user's path and test for each of PROGNAME-LIST
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5705 test -z "$as_dir" && as_dir=.
5706 for ac_prog in egrep; do
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5709 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5710 # Check for GNU ac_path_EGREP and select it if it is found.
5711 # Check for GNU $ac_path_EGREP
5712 case `"$ac_path_EGREP" --version 2>&1` in
5714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5717 $as_echo_n 0123456789 >"conftest.in"
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 $as_echo 'EGREP' >> "conftest.nl"
5724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726 ac_count=`expr $ac_count + 1`
5727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_EGREP="$ac_path_EGREP"
5730 ac_path_EGREP_max=$ac_count
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5738 $ac_path_EGREP_found && break 3
5743 if test -z "$ac_cv_path_EGREP"; then
5744 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5745 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5746 { (exit 1); exit 1; }; }
5749 ac_cv_path_EGREP=$EGREP
5754 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5755 $as_echo "$ac_cv_path_EGREP" >&6; }
5756 EGREP="$ac_cv_path_EGREP"
5759 cat >conftest.$ac_ext <<_ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771 $EGREP "yes" >/dev/null 2>&1; then
5774 if test "X$elf" = "Xyes" ; then
5788 CPPFLAGS="$CPPFLAGS $INCLUDES"
5789 LDFLAGS="$LDFLAGS $LIBDIRS"
5795 # Check whether --with-gnu-ld was given.
5796 if test "${with_gnu_ld+set}" = set; then
5797 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5803 if test "$GCC" = yes; then
5804 # Check if gcc -print-prog-name=ld gives a path.
5805 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5806 $as_echo_n "checking for ld used by GCC... " >&6; }
5809 # gcc leaves a trailing carriage return which upsets mingw
5810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5815 # Accept absolute paths.
5816 [\\/]* | [A-Za-z]:[\\/]*)
5817 re_direlt='/[^/][^/]*/\.\./'
5818 # Canonicalize the path of ld
5819 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5820 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5821 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5823 test -z "$LD" && LD="$ac_prog"
5826 # If it fails, then pretend we aren't using GCC.
5830 # If it is relative, then search for the first ld in PATH.
5834 elif test "$with_gnu_ld" = yes; then
5835 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5836 $as_echo_n "checking for GNU ld... " >&6; }
5838 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5839 $as_echo_n "checking for non-GNU ld... " >&6; }
5841 if test "${ac_cv_path_LD+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5844 if test -z "$LD"; then
5845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5846 for ac_dir in $PATH; do
5847 test -z "$ac_dir" && ac_dir=.
5848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5849 ac_cv_path_LD="$ac_dir/$ac_prog"
5850 # Check to see if the program is GNU ld. I'd rather use --version,
5851 # but apparently some GNU ld's only accept -v.
5852 # Break only if it was the GNU/non-GNU ld that we prefer.
5853 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5854 test "$with_gnu_ld" != no && break
5856 test "$with_gnu_ld" != yes && break
5862 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5867 if test -n "$LD"; then
5868 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5869 $as_echo "$LD" >&6; }
5871 { $as_echo "$as_me:$LINENO: result: no" >&5
5872 $as_echo "no" >&6; }
5874 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5875 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5876 { (exit 1); exit 1; }; }
5877 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5879 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5882 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5883 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5884 ac_cv_prog_gnu_ld=yes
5886 ac_cv_prog_gnu_ld=no
5889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5890 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5891 with_gnu_ld=$ac_cv_prog_gnu_ld
5896 case $host_os in sysv5*)
5897 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5898 $as_echo_n "checking whether ld -R works... " >&6; }
5899 if test "${pgac_cv_prog_ld_R+set}" = set; then
5900 $as_echo_n "(cached) " >&6
5903 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_link") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest$ac_exeext && {
5937 test "$cross_compiling" = yes ||
5938 $as_test_x conftest$ac_exeext
5940 pgac_cv_prog_ld_R=yes
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 pgac_cv_prog_ld_R=no
5948 rm -rf conftest.dSYM
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LDFLAGS=$pgac_save_LDFLAGS
5954 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5955 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5956 ld_R_works=$pgac_cv_prog_ld_R
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5992 { $as_echo "$as_me:$LINENO: result: no" >&5
5993 $as_echo "no" >&6; }
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6005 $as_echo_n "(cached) " >&6
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6032 { $as_echo "$as_me:$LINENO: result: no" >&5
6033 $as_echo "no" >&6; }
6036 if test "x$ac_ct_RANLIB" = x; then
6039 case $cross_compiling:$ac_tool_warned in
6041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6045 RANLIB=$ac_ct_RANLIB
6048 RANLIB="$ac_cv_prog_RANLIB"
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}strip; ac_word=$2
6055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_STRIP+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$STRIP"; then
6061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 STRIP=$ac_cv_prog_STRIP
6081 if test -n "$STRIP"; then
6082 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6083 $as_echo "$STRIP" >&6; }
6085 { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6091 if test -z "$ac_cv_prog_STRIP"; then
6093 # Extract the first word of "strip", so it can be a program name with args.
6094 set dummy strip; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6100 if test -n "$ac_ct_STRIP"; then
6101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_ac_ct_STRIP="strip"
6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6121 if test -n "$ac_ct_STRIP"; then
6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6123 $as_echo "$ac_ct_STRIP" >&6; }
6125 { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6129 if test "x$ac_ct_STRIP" = x; then
6132 case $cross_compiling:$ac_tool_warned in
6134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6141 STRIP="$ac_cv_prog_STRIP"
6145 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6146 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6147 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6148 STRIP_STATIC_LIB="$STRIP -x"
6149 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6150 { $as_echo "$as_me:$LINENO: result: yes" >&5
6151 $as_echo "yes" >&6; }
6155 { $as_echo "$as_me:$LINENO: result: no" >&5
6156 $as_echo "no" >&6; }
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_AR="${ac_tool_prefix}ar"
6180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 if test -n "$AR"; then
6191 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6194 { $as_echo "$as_me:$LINENO: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207 $as_echo_n "(cached) " >&6
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_AR="ar"
6220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6234 { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_AR" = x; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6253 if test "$PORTNAME" = "win32"; then
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6260 $as_echo_n "(cached) " >&6
6262 if test -n "$DLLTOOL"; then
6263 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285 $as_echo "$DLLTOOL" >&6; }
6287 { $as_echo "$as_me:$LINENO: result: no" >&5
6288 $as_echo "no" >&6; }
6293 if test -z "$ac_cv_prog_DLLTOOL"; then
6294 ac_ct_DLLTOOL=$DLLTOOL
6295 # Extract the first word of "dlltool", so it can be a program name with args.
6296 set dummy dlltool; ac_word=$2
6297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6302 if test -n "$ac_ct_DLLTOOL"; then
6303 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6323 if test -n "$ac_ct_DLLTOOL"; then
6324 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6325 $as_echo "$ac_ct_DLLTOOL" >&6; }
6327 { $as_echo "$as_me:$LINENO: result: no" >&5
6328 $as_echo "no" >&6; }
6331 if test "x$ac_ct_DLLTOOL" = x; then
6334 case $cross_compiling:$ac_tool_warned in
6336 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6340 DLLTOOL=$ac_ct_DLLTOOL
6343 DLLTOOL="$ac_cv_prog_DLLTOOL"
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$DLLWRAP"; then
6355 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 DLLWRAP=$ac_cv_prog_DLLWRAP
6375 if test -n "$DLLWRAP"; then
6376 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6377 $as_echo "$DLLWRAP" >&6; }
6379 { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_DLLWRAP"; then
6386 ac_ct_DLLWRAP=$DLLWRAP
6387 # Extract the first word of "dllwrap", so it can be a program name with args.
6388 set dummy dllwrap; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$ac_ct_DLLWRAP"; then
6395 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6415 if test -n "$ac_ct_DLLWRAP"; then
6416 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6417 $as_echo "$ac_ct_DLLWRAP" >&6; }
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_DLLWRAP" = x; then
6426 case $cross_compiling:$ac_tool_warned in
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6432 DLLWRAP=$ac_ct_DLLWRAP
6435 DLLWRAP="$ac_cv_prog_DLLWRAP"
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}windres; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_WINDRES+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$WINDRES"; then
6447 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 WINDRES=$ac_cv_prog_WINDRES
6467 if test -n "$WINDRES"; then
6468 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6469 $as_echo "$WINDRES" >&6; }
6471 { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_WINDRES"; then
6478 ac_ct_WINDRES=$WINDRES
6479 # Extract the first word of "windres", so it can be a program name with args.
6480 set dummy windres; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$ac_ct_WINDRES"; then
6487 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_WINDRES="windres"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6507 if test -n "$ac_ct_WINDRES"; then
6508 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6509 $as_echo "$ac_ct_WINDRES" >&6; }
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_WINDRES" = x; then
6518 case $cross_compiling:$ac_tool_warned in
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6524 WINDRES=$ac_ct_WINDRES
6527 WINDRES="$ac_cv_prog_WINDRES"
6532 # Extract the first word of "tar", so it can be a program name with args.
6533 set dummy tar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_path_TAR+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6541 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 if test -n "$TAR"; then
6564 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6565 $as_echo "$TAR" >&6; }
6567 { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6572 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6573 $as_echo_n "checking whether ln -s works... " >&6; }
6575 if test "$LN_S" = "ln -s"; then
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6579 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6580 $as_echo "no, using $LN_S" >&6; }
6583 for ac_prog in gawk mawk nawk awk
6585 # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_AWK+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$AWK"; then
6593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_AWK="$ac_prog"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$AWK"; then
6614 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6615 $as_echo "$AWK" >&6; }
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6622 test -n "$AWK" && break
6625 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6627 if test -z "$MKDIR_P"; then
6628 if test "${ac_cv_path_mkdir+set}" = set; then
6629 $as_echo_n "(cached) " >&6
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6635 test -z "$as_dir" && as_dir=.
6636 for ac_prog in mkdir gmkdir; do
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6640 'mkdir (GNU coreutils) '* | \
6641 'mkdir (coreutils) '* | \
6642 'mkdir (fileutils) '4.1*)
6643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6653 if test "${ac_cv_path_mkdir+set}" = set; then
6654 MKDIR_P="$ac_cv_path_mkdir -p"
6656 # As a last resort, use the slow shell script. Don't cache a
6657 # value for MKDIR_P within a source directory, because that will
6658 # break other packages using the cache if that directory is
6659 # removed, or if the value is a relative name.
6660 test -d ./--version && rmdir ./--version
6661 MKDIR_P="$ac_install_sh -d"
6664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6665 $as_echo "$MKDIR_P" >&6; }
6667 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6668 # a relative path to it in each makefile where it subsitutes it. This clashes
6669 # with our Makefile.global concept. This workaround helps.
6671 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6674 # Let the user override the search
6675 if test -z "$BISON"; then
6676 for ac_prog in bison
6678 # Extract the first word of "$ac_prog", so it can be a program name with args.
6679 set dummy $ac_prog; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_path_BISON+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6687 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 BISON=$ac_cv_path_BISON
6709 if test -n "$BISON"; then
6710 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6711 $as_echo "$BISON" >&6; }
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6718 test -n "$BISON" && break
6723 if test "$BISON"; then
6724 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6725 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6726 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6727 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6729 { $as_echo "$as_me:$LINENO: WARNING:
6730 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6731 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6732 $as_echo "$as_me: WARNING:
6733 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6734 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6739 if test -z "$BISON"; then
6740 { $as_echo "$as_me:$LINENO: WARNING:
6741 *** Without Bison you will not be able to build PostgreSQL from Git nor
6742 *** change any of the parser definition files. You can obtain Bison from
6743 *** a GNU mirror site. (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this, because the Bison
6745 *** output is pre-generated.)" >&5
6746 $as_echo "$as_me: WARNING:
6747 *** Without Bison you will not be able to build PostgreSQL from Git nor
6748 *** change any of the parser definition files. You can obtain Bison from
6749 *** a GNU mirror site. (If you are using the official distribution of
6750 *** PostgreSQL then you do not need to worry about this, because the Bison
6751 *** output is pre-generated.)" >&2;}
6753 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6756 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6757 $as_echo_n "checking for flex... " >&6; }
6758 if test "${pgac_cv_path_flex+set}" = set; then
6759 $as_echo_n "(cached) " >&6
6761 # Let the user override the test
6762 if test -n "$FLEX"; then
6763 pgac_cv_path_flex=$FLEX
6767 for pgac_dir in $PATH; do
6769 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6772 for pgac_prog in flex lex; do
6773 pgac_candidate="$pgac_dir/$pgac_prog"
6774 if test -f "$pgac_candidate" \
6775 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6777 echo '%%' > conftest.l
6778 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6779 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6780 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6782 pgac_cv_path_flex=$pgac_candidate
6785 { $as_echo "$as_me:$LINENO: WARNING:
6786 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6787 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6788 $as_echo "$as_me: WARNING:
6789 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6790 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6796 rm -f conftest.l lex.yy.c
6797 : ${pgac_cv_path_flex=no}
6801 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6802 $as_echo "$pgac_cv_path_flex" >&6; }
6803 if test x"$pgac_cv_path_flex" = x"no"; then
6804 { $as_echo "$as_me:$LINENO: WARNING:
6805 *** Without Flex you will not be able to build PostgreSQL from Git nor
6806 *** change any of the scanner definition files. You can obtain Flex from
6807 *** a GNU mirror site. (If you are using the official distribution of
6808 *** PostgreSQL then you do not need to worry about this because the Flex
6809 *** output is pre-generated.)" >&5
6810 $as_echo "$as_me: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from Git nor
6812 *** change any of the scanner definition files. You can obtain Flex from
6813 *** a GNU mirror site. (If you are using the official distribution of
6814 *** PostgreSQL then you do not need to worry about this because the Flex
6815 *** output is pre-generated.)" >&2;}
6819 FLEX=$pgac_cv_path_flex
6820 pgac_flex_version=`$FLEX --version 2>/dev/null`
6821 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6822 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6829 # Let the user override the search
6830 if test -z "$PERL"; then
6831 # Extract the first word of "perl", so it can be a program name with args.
6832 set dummy perl; ac_word=$2
6833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_path_PERL+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6840 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 PERL=$ac_cv_path_PERL
6862 if test -n "$PERL"; then
6863 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6864 $as_echo "$PERL" >&6; }
6866 { $as_echo "$as_me:$LINENO: result: no" >&5
6867 $as_echo "no" >&6; }
6873 if test "$PERL"; then
6874 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
6875 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6876 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6877 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6878 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6880 { $as_echo "$as_me:$LINENO: WARNING:
6881 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6882 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6883 $as_echo "$as_me: WARNING:
6884 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6885 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6890 if test -z "$PERL"; then
6891 { $as_echo "$as_me:$LINENO: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from Git.
6893 *** You can obtain Perl from any CPAN mirror site.
6894 *** (If you are using the official distribution of PostgreSQL then you do not
6895 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6896 $as_echo "$as_me: WARNING:
6897 *** Without Perl you will not be able to build PostgreSQL from Git.
6898 *** You can obtain Perl from any CPAN mirror site.
6899 *** (If you are using the official distribution of PostgreSQL then you do not
6900 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6903 if test "$with_perl" = yes; then
6904 if test -z "$PERL"; then
6905 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6906 $as_echo "$as_me: error: Perl not found" >&2;}
6907 { (exit 1); exit 1; }; }
6910 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6911 $as_echo_n "checking for Perl archlibexp... " >&6; }
6912 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6914 $as_echo "$perl_archlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6916 $as_echo_n "checking for Perl privlibexp... " >&6; }
6917 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6919 $as_echo "$perl_privlibexp" >&6; }
6920 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6921 $as_echo_n "checking for Perl useshrplib... " >&6; }
6922 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6923 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6924 $as_echo "$perl_useshrplib" >&6; }
6926 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6927 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6928 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6929 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6930 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6931 if test -z "$perl_embed_ldflags" ; then
6932 { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6935 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6937 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6938 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6940 { (exit 1); exit 1; }; }
6942 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6943 $as_echo "$perl_embed_ldflags" >&6; }
6948 if test "$with_python" = yes; then
6949 # Extract the first word of "python", so it can be a program name with args.
6950 set dummy python; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_path_PYTHON+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6958 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 PYTHON=$ac_cv_path_PYTHON
6980 if test -n "$PYTHON"; then
6981 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6982 $as_echo "$PYTHON" >&6; }
6984 { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6989 if test x"$PYTHON" = x""; then
6990 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6991 $as_echo "$as_me: error: Python not found" >&2;}
6992 { (exit 1); exit 1; }; }
6996 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6997 $as_echo_n "checking for Python distutils module... " >&6; }
6998 if "${PYTHON}" -c 'import distutils' 2>&5
7000 { $as_echo "$as_me:$LINENO: result: yes" >&5
7001 $as_echo "yes" >&6; }
7003 { $as_echo "$as_me:$LINENO: result: no" >&5
7004 $as_echo "no" >&6; }
7005 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7006 $as_echo "$as_me: error: distutils module not found" >&2;}
7007 { (exit 1); exit 1; }; }
7009 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7010 $as_echo_n "checking Python configuration directory... " >&6; }
7011 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7012 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7013 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'))"`
7014 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7016 # This should be enough of a message.
7017 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7018 $as_echo "$python_configdir" >&6; }
7021 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7022 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7024 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7025 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7026 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7027 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7029 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7031 # New way: use the official shared library
7032 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7033 python_libspec="-L${python_libdir} -l${ldlibrary}"
7035 # Old way: use libpython from python_configdir
7036 python_libdir="${python_configdir}"
7037 python_libspec="-L${python_libdir} -lpython${python_version}"
7040 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7042 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7043 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7046 # threaded python is not supported on bsd's
7047 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7048 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7049 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7050 if test "$pythreads" = "1"; then
7051 { $as_echo "$as_me:$LINENO: result: yes" >&5
7052 $as_echo "yes" >&6; }
7055 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7056 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7057 { (exit 1); exit 1; }; }
7061 { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7068 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7069 # Extract the first word of "zic", so it can be a program name with args.
7070 set dummy zic; ac_word=$2
7071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_path_ZIC+set}" = set; then
7074 $as_echo_n "(cached) " >&6
7078 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 if test -n "$ZIC"; then
7101 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7102 $as_echo "$ZIC" >&6; }
7104 { $as_echo "$as_me:$LINENO: result: no" >&5
7105 $as_echo "no" >&6; }
7109 if test -z "$ZIC"; then
7110 { { $as_echo "$as_me:$LINENO: error:
7111 When cross-compiling, either use the option --with-system-tzdata to use
7112 existing time-zone data, or set the environment variable ZIC to a zic
7113 program to use during the build." >&5
7114 $as_echo "$as_me: error:
7115 When cross-compiling, either use the option --with-system-tzdata to use
7116 existing time-zone data, or set the environment variable ZIC to a zic
7117 program to use during the build." >&2;}
7118 { (exit 1); exit 1; }; }
7126 ## Most libraries are included only if they demonstrably provide a function
7127 ## we need, but libm is an exception: always include it, because there are
7128 ## too many compilers that play cute optimization games that will break
7129 ## probes for standard functions such as pow().
7133 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7134 $as_echo_n "checking for main in -lm... " >&6; }
7135 if test "${ac_cv_lib_m_main+set}" = set; then
7136 $as_echo_n "(cached) " >&6
7138 ac_check_lib_save_LIBS=$LIBS
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_link") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1 >conftest.err
7168 cat conftest.err >&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest$ac_exeext && {
7174 test "$cross_compiling" = yes ||
7175 $as_test_x conftest$ac_exeext
7177 ac_cv_lib_m_main=yes
7179 $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7185 rm -rf conftest.dSYM
7186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7191 $as_echo "$ac_cv_lib_m_main" >&6; }
7192 if test "x$ac_cv_lib_m_main" = x""yes; then
7193 cat >>confdefs.h <<_ACEOF
7201 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7202 $as_echo_n "checking for library containing setproctitle... " >&6; }
7203 if test "${ac_cv_search_setproctitle+set}" = set; then
7204 $as_echo_n "(cached) " >&6
7206 ac_func_search_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7220 char setproctitle ();
7224 return setproctitle ();
7229 for ac_lib in '' util; do
7230 if test -z "$ac_lib"; then
7231 ac_res="none required"
7234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_link") 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest$ac_exeext && {
7254 test "$cross_compiling" = yes ||
7255 $as_test_x conftest$ac_exeext
7257 ac_cv_search_setproctitle=$ac_res
7259 $as_echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7265 rm -rf conftest.dSYM
7266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7268 if test "${ac_cv_search_setproctitle+set}" = set; then
7272 if test "${ac_cv_search_setproctitle+set}" = set; then
7275 ac_cv_search_setproctitle=no
7278 LIBS=$ac_func_search_save_LIBS
7280 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7281 $as_echo "$ac_cv_search_setproctitle" >&6; }
7282 ac_res=$ac_cv_search_setproctitle
7283 if test "$ac_res" != no; then
7284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7288 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7289 $as_echo_n "checking for library containing dlopen... " >&6; }
7290 if test "${ac_cv_search_dlopen+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7293 ac_func_search_save_LIBS=$LIBS
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7301 /* Override any GCC internal prototype to avoid an error.
7302 Use char because int might match the return type of a GCC
7303 builtin and then its argument prototype would still apply. */
7316 for ac_lib in '' dl; do
7317 if test -z "$ac_lib"; then
7318 ac_res="none required"
7321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (ac_try="$ac_link"
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331 (eval "$ac_link") 2>conftest.er1
7333 grep -v '^ *+' conftest.er1 >conftest.err
7335 cat conftest.err >&5
7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest$ac_exeext && {
7341 test "$cross_compiling" = yes ||
7342 $as_test_x conftest$ac_exeext
7344 ac_cv_search_dlopen=$ac_res
7346 $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7352 rm -rf conftest.dSYM
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355 if test "${ac_cv_search_dlopen+set}" = set; then
7359 if test "${ac_cv_search_dlopen+set}" = set; then
7362 ac_cv_search_dlopen=no
7365 LIBS=$ac_func_search_save_LIBS
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res=$ac_cv_search_dlopen
7370 if test "$ac_res" != no; then
7371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7375 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7376 $as_echo_n "checking for library containing socket... " >&6; }
7377 if test "${ac_cv_search_socket+set}" = set; then
7378 $as_echo_n "(cached) " >&6
7380 ac_func_search_save_LIBS=$LIBS
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7403 for ac_lib in '' socket wsock32; do
7404 if test -z "$ac_lib"; then
7405 ac_res="none required"
7408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7410 rm -f conftest.$ac_objext conftest$ac_exeext
7411 if { (ac_try="$ac_link"
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418 (eval "$ac_link") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest$ac_exeext && {
7428 test "$cross_compiling" = yes ||
7429 $as_test_x conftest$ac_exeext
7431 ac_cv_search_socket=$ac_res
7433 $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -rf conftest.dSYM
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7442 if test "${ac_cv_search_socket+set}" = set; then
7446 if test "${ac_cv_search_socket+set}" = set; then
7449 ac_cv_search_socket=no
7452 LIBS=$ac_func_search_save_LIBS
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7455 $as_echo "$ac_cv_search_socket" >&6; }
7456 ac_res=$ac_cv_search_socket
7457 if test "$ac_res" != no; then
7458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7462 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7463 $as_echo_n "checking for library containing shl_load... " >&6; }
7464 if test "${ac_cv_search_shl_load+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7467 ac_func_search_save_LIBS=$LIBS
7468 cat >conftest.$ac_ext <<_ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7490 for ac_lib in '' dld; do
7491 if test -z "$ac_lib"; then
7492 ac_res="none required"
7495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_link") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest$ac_exeext && {
7515 test "$cross_compiling" = yes ||
7516 $as_test_x conftest$ac_exeext
7518 ac_cv_search_shl_load=$ac_res
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7529 if test "${ac_cv_search_shl_load+set}" = set; then
7533 if test "${ac_cv_search_shl_load+set}" = set; then
7536 ac_cv_search_shl_load=no
7539 LIBS=$ac_func_search_save_LIBS
7541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7542 $as_echo "$ac_cv_search_shl_load" >&6; }
7543 ac_res=$ac_cv_search_shl_load
7544 if test "$ac_res" != no; then
7545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7549 # We only use libld in port/dynloader/aix.c
7552 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7553 $as_echo_n "checking for library containing ldopen... " >&6; }
7554 if test "${ac_cv_search_ldopen+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 ac_func_search_save_LIBS=$LIBS
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 /* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7580 for ac_lib in '' ld; do
7581 if test -z "$ac_lib"; then
7582 ac_res="none required"
7585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7594 $as_echo "$ac_try_echo") >&5
7595 (eval "$ac_link") 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest$ac_exeext && {
7605 test "$cross_compiling" = yes ||
7606 $as_test_x conftest$ac_exeext
7608 ac_cv_search_ldopen=$ac_res
7610 $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7616 rm -rf conftest.dSYM
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 if test "${ac_cv_search_ldopen+set}" = set; then
7623 if test "${ac_cv_search_ldopen+set}" = set; then
7626 ac_cv_search_ldopen=no
7629 LIBS=$ac_func_search_save_LIBS
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7632 $as_echo "$ac_cv_search_ldopen" >&6; }
7633 ac_res=$ac_cv_search_ldopen
7634 if test "$ac_res" != no; then
7635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7641 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7642 $as_echo_n "checking for library containing getopt_long... " >&6; }
7643 if test "${ac_cv_search_getopt_long+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7646 ac_func_search_save_LIBS=$LIBS
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7660 char getopt_long ();
7664 return getopt_long ();
7669 for ac_lib in '' getopt gnugetopt; do
7670 if test -z "$ac_lib"; then
7671 ac_res="none required"
7674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7683 $as_echo "$ac_try_echo") >&5
7684 (eval "$ac_link") 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest$ac_exeext && {
7694 test "$cross_compiling" = yes ||
7695 $as_test_x conftest$ac_exeext
7697 ac_cv_search_getopt_long=$ac_res
7699 $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7705 rm -rf conftest.dSYM
7706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7708 if test "${ac_cv_search_getopt_long+set}" = set; then
7712 if test "${ac_cv_search_getopt_long+set}" = set; then
7715 ac_cv_search_getopt_long=no
7718 LIBS=$ac_func_search_save_LIBS
7720 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7721 $as_echo "$ac_cv_search_getopt_long" >&6; }
7722 ac_res=$ac_cv_search_getopt_long
7723 if test "$ac_res" != no; then
7724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7728 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7729 $as_echo_n "checking for library containing crypt... " >&6; }
7730 if test "${ac_cv_search_crypt+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7733 ac_func_search_save_LIBS=$LIBS
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7741 /* Override any GCC internal prototype to avoid an error.
7742 Use char because int might match the return type of a GCC
7743 builtin and then its argument prototype would still apply. */
7756 for ac_lib in '' crypt; do
7757 if test -z "$ac_lib"; then
7758 ac_res="none required"
7761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771 (eval "$ac_link") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest$ac_exeext && {
7781 test "$cross_compiling" = yes ||
7782 $as_test_x conftest$ac_exeext
7784 ac_cv_search_crypt=$ac_res
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795 if test "${ac_cv_search_crypt+set}" = set; then
7799 if test "${ac_cv_search_crypt+set}" = set; then
7802 ac_cv_search_crypt=no
7805 LIBS=$ac_func_search_save_LIBS
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7808 $as_echo "$ac_cv_search_crypt" >&6; }
7809 ac_res=$ac_cv_search_crypt
7810 if test "$ac_res" != no; then
7811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7816 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7817 $as_echo_n "checking for library containing fdatasync... " >&6; }
7818 if test "${ac_cv_search_fdatasync+set}" = set; then
7819 $as_echo_n "(cached) " >&6
7821 ac_func_search_save_LIBS=$LIBS
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7829 /* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply. */
7839 return fdatasync ();
7844 for ac_lib in '' rt posix4; do
7845 if test -z "$ac_lib"; then
7846 ac_res="none required"
7849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858 $as_echo "$ac_try_echo") >&5
7859 (eval "$ac_link") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest$ac_exeext && {
7869 test "$cross_compiling" = yes ||
7870 $as_test_x conftest$ac_exeext
7872 ac_cv_search_fdatasync=$ac_res
7874 $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7880 rm -rf conftest.dSYM
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7883 if test "${ac_cv_search_fdatasync+set}" = set; then
7887 if test "${ac_cv_search_fdatasync+set}" = set; then
7890 ac_cv_search_fdatasync=no
7893 LIBS=$ac_func_search_save_LIBS
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7896 $as_echo "$ac_cv_search_fdatasync" >&6; }
7897 ac_res=$ac_cv_search_fdatasync
7898 if test "$ac_res" != no; then
7899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7903 # Required for thread_test.c on Solaris 2.5:
7904 # Other ports use it too (HP-UX) so test unconditionally
7905 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7906 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7907 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7910 ac_func_search_save_LIBS=$LIBS
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7918 /* Override any GCC internal prototype to avoid an error.
7919 Use char because int might match the return type of a GCC
7920 builtin and then its argument prototype would still apply. */
7924 char gethostbyname_r ();
7928 return gethostbyname_r ();
7933 for ac_lib in '' nsl; do
7934 if test -z "$ac_lib"; then
7935 ac_res="none required"
7938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_link") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext && {
7958 test "$cross_compiling" = yes ||
7959 $as_test_x conftest$ac_exeext
7961 ac_cv_search_gethostbyname_r=$ac_res
7963 $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7969 rm -rf conftest.dSYM
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7972 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7976 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7979 ac_cv_search_gethostbyname_r=no
7982 LIBS=$ac_func_search_save_LIBS
7984 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7985 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7986 ac_res=$ac_cv_search_gethostbyname_r
7987 if test "$ac_res" != no; then
7988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7993 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7994 $as_echo_n "checking for library containing shmget... " >&6; }
7995 if test "${ac_cv_search_shmget+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7998 ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8021 for ac_lib in '' cygipc; do
8022 if test -z "$ac_lib"; then
8023 ac_res="none required"
8026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036 (eval "$ac_link") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext && {
8046 test "$cross_compiling" = yes ||
8047 $as_test_x conftest$ac_exeext
8049 ac_cv_search_shmget=$ac_res
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060 if test "${ac_cv_search_shmget+set}" = set; then
8064 if test "${ac_cv_search_shmget+set}" = set; then
8067 ac_cv_search_shmget=no
8070 LIBS=$ac_func_search_save_LIBS
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8073 $as_echo "$ac_cv_search_shmget" >&6; }
8074 ac_res=$ac_cv_search_shmget
8075 if test "$ac_res" != no; then
8076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8081 if test "$with_readline" = yes; then
8084 if test "${pgac_cv_check_readline+set}" = set; then
8085 $as_echo_n "(cached) " >&6
8087 pgac_cv_check_readline=no
8088 pgac_save_LIBS=$LIBS
8089 if test x"$with_libedit_preferred" != x"yes"
8090 then READLINE_ORDER="-lreadline -ledit"
8091 else READLINE_ORDER="-ledit -lreadline"
8093 for pgac_rllib in $READLINE_ORDER ; do
8094 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8095 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8096 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8097 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8105 /* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_link") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8142 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8143 # recognize dependent libraries; assume curses is needed if we didn't
8144 # find any dependency.
8146 netbsd* | openbsd* | irix*)
8147 if test x"$pgac_lib" = x"" ; then
8148 pgac_lib=" -lcurses"
8152 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8156 $as_echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8162 rm -rf conftest.dSYM
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164 conftest$ac_exeext conftest.$ac_ext
8166 if test "$pgac_cv_check_readline" != no ; then
8167 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8168 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8171 { $as_echo "$as_me:$LINENO: result: no" >&5
8172 $as_echo "no" >&6; }
8175 LIBS=$pgac_save_LIBS
8179 if test "$pgac_cv_check_readline" != no ; then
8180 LIBS="$pgac_cv_check_readline $LIBS"
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_LIBREADLINE 1
8189 if test x"$pgac_cv_check_readline" = x"no"; then
8190 { { $as_echo "$as_me:$LINENO: error: readline library not found
8191 If you have readline already installed, see config.log for details on the
8192 failure. It is possible the compiler isn't looking in the proper directory.
8193 Use --without-readline to disable readline support." >&5
8194 $as_echo "$as_me: error: readline library not found
8195 If you have readline already installed, see config.log for details on the
8196 failure. It is possible the compiler isn't looking in the proper directory.
8197 Use --without-readline to disable readline support." >&2;}
8198 { (exit 1); exit 1; }; }
8202 if test "$with_zlib" = yes; then
8204 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8205 $as_echo_n "checking for inflate in -lz... " >&6; }
8206 if test "${ac_cv_lib_z_inflate+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8209 ac_check_lib_save_LIBS=$LIBS
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8240 $as_echo "$ac_try_echo") >&5
8241 (eval "$ac_link") 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest$ac_exeext && {
8251 test "$cross_compiling" = yes ||
8252 $as_test_x conftest$ac_exeext
8254 ac_cv_lib_z_inflate=yes
8256 $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8259 ac_cv_lib_z_inflate=no
8262 rm -rf conftest.dSYM
8263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8264 conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8268 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8269 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8270 cat >>confdefs.h <<_ACEOF
8277 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure. It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&5
8281 $as_echo "$as_me: error: zlib library not found
8282 If you have zlib already installed, see config.log for details on the
8283 failure. It is possible the compiler isn't looking in the proper directory.
8284 Use --without-zlib to disable zlib support." >&2;}
8285 { (exit 1); exit 1; }; }
8290 if test "$enable_spinlocks" = yes; then
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_SPINLOCKS 1
8297 { $as_echo "$as_me:$LINENO: WARNING:
8298 *** Not using spinlocks will cause poor performance." >&5
8299 $as_echo "$as_me: WARNING:
8300 *** Not using spinlocks will cause poor performance." >&2;}
8303 if test "$with_gssapi" = yes ; then
8304 if test "$PORTNAME" != "win32"; then
8305 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8306 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8307 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8310 ac_func_search_save_LIBS=$LIBS
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8324 char gss_init_sec_context ();
8328 return gss_init_sec_context ();
8333 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8334 if test -z "$ac_lib"; then
8335 ac_res="none required"
8338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347 $as_echo "$ac_try_echo") >&5
8348 (eval "$ac_link") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest$ac_exeext && {
8358 test "$cross_compiling" = yes ||
8359 $as_test_x conftest$ac_exeext
8361 ac_cv_search_gss_init_sec_context=$ac_res
8363 $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8369 rm -rf conftest.dSYM
8370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8372 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8376 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8379 ac_cv_search_gss_init_sec_context=no
8382 LIBS=$ac_func_search_save_LIBS
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8385 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8386 ac_res=$ac_cv_search_gss_init_sec_context
8387 if test "$ac_res" != no; then
8388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8391 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8392 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8393 { (exit 1); exit 1; }; }
8397 LIBS="$LIBS -lgssapi32"
8401 if test "$with_krb5" = yes ; then
8402 if test "$PORTNAME" != "win32"; then
8403 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 $as_echo_n "checking for library containing com_err... " >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8408 ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8431 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445 $as_echo "$ac_try_echo") >&5
8446 (eval "$ac_link") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest$ac_exeext && {
8456 test "$cross_compiling" = yes ||
8457 $as_test_x conftest$ac_exeext
8459 ac_cv_search_com_err=$ac_res
8461 $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8467 rm -rf conftest.dSYM
8468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8470 if test "${ac_cv_search_com_err+set}" = set; then
8474 if test "${ac_cv_search_com_err+set}" = set; then
8477 ac_cv_search_com_err=no
8480 LIBS=$ac_func_search_save_LIBS
8482 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8483 $as_echo "$ac_cv_search_com_err" >&6; }
8484 ac_res=$ac_cv_search_com_err
8485 if test "$ac_res" != no; then
8486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8489 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8490 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8491 { (exit 1); exit 1; }; }
8494 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8495 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8496 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8499 ac_func_search_save_LIBS=$LIBS
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8507 /* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
8513 char krb5_sendauth ();
8517 return krb5_sendauth ();
8522 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8523 if test -z "$ac_lib"; then
8524 ac_res="none required"
8527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (ac_try="$ac_link"
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537 (eval "$ac_link") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest$ac_exeext && {
8547 test "$cross_compiling" = yes ||
8548 $as_test_x conftest$ac_exeext
8550 ac_cv_search_krb5_sendauth=$ac_res
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8558 rm -rf conftest.dSYM
8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8561 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8565 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8568 ac_cv_search_krb5_sendauth=no
8571 LIBS=$ac_func_search_save_LIBS
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8574 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8575 ac_res=$ac_cv_search_krb5_sendauth
8576 if test "$ac_res" != no; then
8577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8580 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8581 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8582 { (exit 1); exit 1; }; }
8586 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8587 $as_echo_n "checking for library containing com_err... " >&6; }
8588 if test "${ac_cv_search_com_err+set}" = set; then
8589 $as_echo_n "(cached) " >&6
8591 ac_func_search_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8614 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8615 if test -z "$ac_lib"; then
8616 ac_res="none required"
8619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629 (eval "$ac_link") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest$ac_exeext && {
8639 test "$cross_compiling" = yes ||
8640 $as_test_x conftest$ac_exeext
8642 ac_cv_search_com_err=$ac_res
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8650 rm -rf conftest.dSYM
8651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653 if test "${ac_cv_search_com_err+set}" = set; then
8657 if test "${ac_cv_search_com_err+set}" = set; then
8660 ac_cv_search_com_err=no
8663 LIBS=$ac_func_search_save_LIBS
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8666 $as_echo "$ac_cv_search_com_err" >&6; }
8667 ac_res=$ac_cv_search_com_err
8668 if test "$ac_res" != no; then
8669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8672 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8673 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8674 { (exit 1); exit 1; }; }
8680 if test "$with_openssl" = yes ; then
8681 if test "$PORTNAME" != "win32"; then
8683 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8684 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8685 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8686 $as_echo_n "(cached) " >&6
8688 ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lcrypto $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8703 char CRYPTO_new_ex_data ();
8707 return CRYPTO_new_ex_data ();
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720 (eval "$ac_link") 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest$ac_exeext && {
8730 test "$cross_compiling" = yes ||
8731 $as_test_x conftest$ac_exeext
8733 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8741 rm -rf conftest.dSYM
8742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8747 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8748 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_LIBCRYPTO 1
8753 LIBS="-lcrypto $LIBS"
8756 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8757 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8758 { (exit 1); exit 1; }; }
8762 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8763 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8764 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8767 ac_check_lib_save_LIBS=$LIBS
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8776 /* Override any GCC internal prototype to avoid an error.
8777 Use char because int might match the return type of a GCC
8778 builtin and then its argument prototype would still apply. */
8782 char SSL_library_init ();
8786 return SSL_library_init ();
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_link") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest$ac_exeext && {
8809 test "$cross_compiling" = yes ||
8810 $as_test_x conftest$ac_exeext
8812 ac_cv_lib_ssl_SSL_library_init=yes
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_lib_ssl_SSL_library_init=no
8820 rm -rf conftest.dSYM
8821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8822 conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8826 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8827 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8828 cat >>confdefs.h <<_ACEOF
8829 #define HAVE_LIBSSL 1
8835 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8836 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8837 { (exit 1); exit 1; }; }
8842 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8843 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8844 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 ac_check_lib_save_LIBS=$LIBS
8848 LIBS="-leay32 $LIBS"
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8862 char CRYPTO_new_ex_data ();
8866 return CRYPTO_new_ex_data ();
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8892 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8906 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8907 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBEAY32 1
8912 LIBS="-leay32 $LIBS"
8915 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8916 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8917 { (exit 1); exit 1; }; }
8921 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8922 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8923 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8924 $as_echo_n "(cached) " >&6
8926 ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lssleay32 $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8941 char SSL_library_init ();
8945 return SSL_library_init ();
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958 (eval "$ac_link") 2>conftest.er1
8960 grep -v '^ *+' conftest.er1 >conftest.err
8962 cat conftest.err >&5
8963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_c_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest$ac_exeext && {
8968 test "$cross_compiling" = yes ||
8969 $as_test_x conftest$ac_exeext
8971 ac_cv_lib_ssleay32_SSL_library_init=yes
8973 $as_echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_cv_lib_ssleay32_SSL_library_init=no
8979 rm -rf conftest.dSYM
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8985 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8986 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBSSLEAY32 1
8991 LIBS="-lssleay32 $LIBS"
8994 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8995 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8996 { (exit 1); exit 1; }; }
9002 if test "$with_pam" = yes ; then
9004 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9005 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9006 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9007 $as_echo_n "(cached) " >&6
9009 ac_check_lib_save_LIBS=$LIBS
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9028 return pam_start ();
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest$ac_exeext
9054 ac_cv_lib_pam_pam_start=yes
9056 $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_lib_pam_pam_start=no
9062 rm -rf conftest.dSYM
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9068 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9069 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_LIBPAM 1
9077 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9078 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9079 { (exit 1); exit 1; }; }
9084 if test "$with_libxml" = yes ; then
9086 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9087 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9088 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9089 $as_echo_n "(cached) " >&6
9091 ac_check_lib_save_LIBS=$LIBS
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9106 char xmlSaveToBuffer ();
9110 return xmlSaveToBuffer ();
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119 *) ac_try_echo=$ac_try;;
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_link") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest$ac_exeext && {
9133 test "$cross_compiling" = yes ||
9134 $as_test_x conftest$ac_exeext
9136 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9138 $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_cv_lib_xml2_xmlSaveToBuffer=no
9144 rm -rf conftest.dSYM
9145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9150 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9151 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_LIBXML2 1
9159 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9160 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9161 { (exit 1); exit 1; }; }
9166 if test "$with_libxslt" = yes ; then
9168 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9169 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9170 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9171 $as_echo_n "(cached) " >&6
9173 ac_check_lib_save_LIBS=$LIBS
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9188 char xsltCleanupGlobals ();
9192 return xsltCleanupGlobals ();
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205 (eval "$ac_link") 2>conftest.er1
9207 grep -v '^ *+' conftest.er1 >conftest.err
9209 cat conftest.err >&5
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && {
9212 test -z "$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9214 } && test -s conftest$ac_exeext && {
9215 test "$cross_compiling" = yes ||
9216 $as_test_x conftest$ac_exeext
9218 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_cv_lib_xslt_xsltCleanupGlobals=no
9226 rm -rf conftest.dSYM
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9232 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9233 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_LIBXSLT 1
9241 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9242 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9243 { (exit 1); exit 1; }; }
9248 # for contrib/uuid-ossp
9249 if test "$with_ossp_uuid" = yes ; then
9250 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9251 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9252 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9253 $as_echo_n "(cached) " >&6
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lossp-uuid $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9270 char uuid_export ();
9274 return uuid_export ();
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9286 $as_echo "$ac_try_echo") >&5
9287 (eval "$ac_link") 2>conftest.er1
9289 grep -v '^ *+' conftest.er1 >conftest.err
9291 cat conftest.err >&5
9292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest$ac_exeext && {
9297 test "$cross_compiling" = yes ||
9298 $as_test_x conftest$ac_exeext
9300 ac_cv_lib_ossp_uuid_uuid_export=yes
9302 $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9305 ac_cv_lib_ossp_uuid_uuid_export=no
9308 rm -rf conftest.dSYM
9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9314 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9315 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9316 OSSP_UUID_LIBS="-lossp-uuid"
9318 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9319 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9320 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9321 $as_echo_n "(cached) " >&6
9323 ac_check_lib_save_LIBS=$LIBS
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9338 char uuid_export ();
9342 return uuid_export ();
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (ac_try="$ac_link"
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_link") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext && {
9365 test "$cross_compiling" = yes ||
9366 $as_test_x conftest$ac_exeext
9368 ac_cv_lib_uuid_uuid_export=yes
9370 $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_cv_lib_uuid_uuid_export=no
9376 rm -rf conftest.dSYM
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9381 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9382 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9383 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9384 OSSP_UUID_LIBS="-luuid"
9386 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9387 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9388 { (exit 1); exit 1; }; }
9401 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9402 $as_echo_n "checking for ANSI C header files... " >&6; }
9403 if test "${ac_cv_header_stdc+set}" = set; then
9404 $as_echo_n "(cached) " >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9425 rm -f conftest.$ac_objext
9426 if { (ac_try="$ac_compile"
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_compile") 2>conftest.er1
9435 grep -v '^ *+' conftest.er1 >conftest.err
9437 cat conftest.err >&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest.$ac_objext; then
9443 ac_cv_header_stdc=yes
9445 $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9448 ac_cv_header_stdc=no
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 if test $ac_cv_header_stdc = yes; then
9454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465 $EGREP "memchr" >/dev/null 2>&1; then
9468 ac_cv_header_stdc=no
9474 if test $ac_cv_header_stdc = yes; then
9475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9486 $EGREP "free" >/dev/null 2>&1; then
9489 ac_cv_header_stdc=no
9495 if test $ac_cv_header_stdc = yes; then
9496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9497 if test "$cross_compiling" = yes; then
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9508 #if ((' ' & 0x0FF) == 0x020)
9509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9512 # define ISLOWER(c) \
9513 (('a' <= (c) && (c) <= 'i') \
9514 || ('j' <= (c) && (c) <= 'r') \
9515 || ('s' <= (c) && (c) <= 'z'))
9516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9524 for (i = 0; i < 256; i++)
9525 if (XOR (islower (i), ISLOWER (i))
9526 || toupper (i) != TOUPPER (i))
9531 rm -f conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539 (eval "$ac_link") 2>&5
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549 (eval "$ac_try") 2>&5
9551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9555 $as_echo "$as_me: program exited with status $ac_status" >&5
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_header_stdc=no
9562 rm -rf conftest.dSYM
9563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9570 $as_echo "$ac_cv_header_stdc" >&6; }
9571 if test $ac_cv_header_stdc = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define STDC_HEADERS 1
9579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9590 inttypes.h stdint.h unistd.h
9592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 $as_echo_n "checking for $ac_header... " >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596 $as_echo_n "(cached) " >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9606 #include <$ac_header>
9608 rm -f conftest.$ac_objext
9609 if { (ac_try="$ac_compile"
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616 (eval "$ac_compile") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest.$ac_objext; then
9626 eval "$as_ac_Header=yes"
9628 $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 eval "$as_ac_Header=no"
9634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9636 ac_res=`eval 'as_val=${'$as_ac_Header'}
9637 $as_echo "$as_val"'`
9638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9639 $as_echo "$ac_res" >&6; }
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641 $as_echo "$as_val"'`
9642 if test "x$as_val" = x""yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682 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
9684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 $as_echo_n "(cached) " >&6
9691 ac_res=`eval 'as_val=${'$as_ac_Header'}
9692 $as_echo "$as_val"'`
9693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9696 # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9708 rm -f conftest.$ac_objext
9709 if { (ac_try="$ac_compile"
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_header_compiler=yes
9728 $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_compiler=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.$ac_ext <<_ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <$ac_header>
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9766 ac_header_preproc=yes
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9774 rm -f conftest.err conftest.$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc=yes
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9805 ) | sed "s/^/$as_me: WARNING: /" >&2
9808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 $as_echo_n "checking for $ac_header... " >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811 $as_echo_n "(cached) " >&6
9813 eval "$as_ac_Header=\$ac_header_preproc"
9815 ac_res=`eval 'as_val=${'$as_ac_Header'}
9816 $as_echo "$as_val"'`
9817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9818 $as_echo "$ac_res" >&6; }
9821 as_val=`eval 'as_val=${'$as_ac_Header'}
9822 $as_echo "$as_val"'`
9823 if test "x$as_val" = x""yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9833 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9834 # is included first.
9836 for ac_header in net/if.h
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 $as_echo_n "checking for $ac_header... " >&6; }
9841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9842 $as_echo_n "(cached) " >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #ifdef HAVE_SYS_SOCKET_H
9852 #include <sys/socket.h>
9856 #include <$ac_header>
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
9876 eval "$as_ac_Header=yes"
9878 $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 eval "$as_ac_Header=no"
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 ac_res=`eval 'as_val=${'$as_ac_Header'}
9887 $as_echo "$as_val"'`
9888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889 $as_echo "$ac_res" >&6; }
9890 as_val=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 if test "x$as_val" = x""yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9903 # netinet/in.h is included first.
9905 for ac_header in netinet/in.h
9907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 $as_echo_n "checking for $ac_header... " >&6; }
9911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912 $as_echo_n "(cached) " >&6
9914 ac_res=`eval 'as_val=${'$as_ac_Header'}
9915 $as_echo "$as_val"'`
9916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9917 $as_echo "$ac_res" >&6; }
9919 # Is the header compilable?
9920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9921 $as_echo_n "checking $ac_header usability... " >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 $ac_includes_default
9929 #include <$ac_header>
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9938 $as_echo "$ac_try_echo") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_header_compiler=yes
9951 $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_header_compiler=no
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9959 $as_echo "$ac_header_compiler" >&6; }
9961 # Is the header present?
9962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9963 $as_echo_n "checking $ac_header presence... " >&6; }
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 #include <$ac_header>
9972 if { (ac_try="$ac_cpp conftest.$ac_ext"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1 >conftest.err
9983 cat conftest.err >&5
9984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } >/dev/null && {
9986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9989 ac_header_preproc=yes
9991 $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_header_preproc=no
9997 rm -f conftest.err conftest.$ac_ext
9998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 $as_echo "$ac_header_preproc" >&6; }
10001 # So? What about this header?
10002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10008 ac_header_preproc=yes
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10024 ## ---------------------------------------- ##
10025 ## Report this to pgsql-bugs@postgresql.org ##
10026 ## ---------------------------------------- ##
10028 ) | sed "s/^/$as_me: WARNING: /" >&2
10031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034 $as_echo_n "(cached) " >&6
10036 eval "$as_ac_Header=\$ac_header_preproc"
10038 ac_res=`eval 'as_val=${'$as_ac_Header'}
10039 $as_echo "$as_val"'`
10040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10041 $as_echo "$ac_res" >&6; }
10044 as_val=`eval 'as_val=${'$as_ac_Header'}
10045 $as_echo "$as_val"'`
10046 if test "x$as_val" = x""yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056 for ac_header in netinet/tcp.h
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10060 $as_echo_n "checking for $ac_header... " >&6; }
10061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10062 $as_echo_n "(cached) " >&6
10064 cat >conftest.$ac_ext <<_ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 $ac_includes_default
10071 #ifdef HAVE_NETINET_IN_H
10072 #include <netinet/in.h>
10076 #include <$ac_header>
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10085 $as_echo "$ac_try_echo") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10088 grep -v '^ *+' conftest.er1 >conftest.err
10090 cat conftest.err >&5
10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 eval "$as_ac_Header=yes"
10098 $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 eval "$as_ac_Header=no"
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 ac_res=`eval 'as_val=${'$as_ac_Header'}
10107 $as_echo "$as_val"'`
10108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10109 $as_echo "$ac_res" >&6; }
10110 as_val=`eval 'as_val=${'$as_ac_Header'}
10111 $as_echo "$as_val"'`
10112 if test "x$as_val" = x""yes; then
10113 cat >>confdefs.h <<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10122 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10124 for ac_header in readline/readline.h
10126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 $as_echo_n "checking for $ac_header... " >&6; }
10130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131 $as_echo_n "(cached) " >&6
10133 ac_res=`eval 'as_val=${'$as_ac_Header'}
10134 $as_echo "$as_val"'`
10135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10136 $as_echo "$ac_res" >&6; }
10138 # Is the header compilable?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 $as_echo_n "checking $ac_header usability... " >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 $ac_includes_default
10148 #include <$ac_header>
10150 rm -f conftest.$ac_objext
10151 if { (ac_try="$ac_compile"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158 (eval "$ac_compile") 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest.$ac_objext; then
10168 ac_header_compiler=yes
10170 $as_echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_header_compiler=no
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178 $as_echo "$ac_header_compiler" >&6; }
10180 # Is the header present?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182 $as_echo_n "checking $ac_header presence... " >&6; }
10183 cat >conftest.$ac_ext <<_ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <$ac_header>
10191 if { (ac_try="$ac_cpp conftest.$ac_ext"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } >/dev/null && {
10205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10208 ac_header_preproc=yes
10210 $as_echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_header_preproc=no
10216 rm -f conftest.err conftest.$ac_ext
10217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10218 $as_echo "$ac_header_preproc" >&6; }
10220 # So? What about this header?
10221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10227 ac_header_preproc=yes
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10243 ## ---------------------------------------- ##
10244 ## Report this to pgsql-bugs@postgresql.org ##
10245 ## ---------------------------------------- ##
10247 ) | sed "s/^/$as_me: WARNING: /" >&2
10250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 $as_echo_n "checking for $ac_header... " >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 $as_echo_n "(cached) " >&6
10255 eval "$as_ac_Header=\$ac_header_preproc"
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10263 as_val=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 if test "x$as_val" = x""yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10272 for ac_header in readline.h
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 $as_echo_n "checking for $ac_header... " >&6; }
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279 $as_echo_n "(cached) " >&6
10281 ac_res=`eval 'as_val=${'$as_ac_Header'}
10282 $as_echo "$as_val"'`
10283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10284 $as_echo "$ac_res" >&6; }
10286 # Is the header compilable?
10287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288 $as_echo_n "checking $ac_header usability... " >&6; }
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 $ac_includes_default
10296 #include <$ac_header>
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305 $as_echo "$ac_try_echo") >&5
10306 (eval "$ac_compile") 2>conftest.er1
10308 grep -v '^ *+' conftest.er1 >conftest.err
10310 cat conftest.err >&5
10311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest.$ac_objext; then
10316 ac_header_compiler=yes
10318 $as_echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_header_compiler=no
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 $as_echo "$ac_header_compiler" >&6; }
10328 # Is the header present?
10329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 $as_echo_n "checking $ac_header presence... " >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <$ac_header>
10339 if { (ac_try="$ac_cpp conftest.$ac_ext"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10345 $as_echo "$ac_try_echo") >&5
10346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10348 grep -v '^ *+' conftest.er1 >conftest.err
10350 cat conftest.err >&5
10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null && {
10353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10356 ac_header_preproc=yes
10358 $as_echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_header_preproc=no
10364 rm -f conftest.err conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 $as_echo "$ac_header_preproc" >&6; }
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10391 ## ---------------------------------------- ##
10392 ## Report this to pgsql-bugs@postgresql.org ##
10393 ## ---------------------------------------- ##
10395 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
10405 ac_res=`eval 'as_val=${'$as_ac_Header'}
10406 $as_echo "$as_val"'`
10407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10411 as_val=`eval 'as_val=${'$as_ac_Header'}
10412 $as_echo "$as_val"'`
10413 if test "x$as_val" = x""yes; then
10414 cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10419 { { $as_echo "$as_me:$LINENO: error: readline header not found
10420 If you have readline already installed, see config.log for details on the
10421 failure. It is possible the compiler isn't looking in the proper directory.
10422 Use --without-readline to disable readline support." >&5
10423 $as_echo "$as_me: error: readline header not found
10424 If you have readline already installed, see config.log for details on the
10425 failure. It is possible the compiler isn't looking in the proper directory.
10426 Use --without-readline to disable readline support." >&2;}
10427 { (exit 1); exit 1; }; }
10437 for ac_header in readline/history.h
10439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444 $as_echo_n "(cached) " >&6
10446 ac_res=`eval 'as_val=${'$as_ac_Header'}
10447 $as_echo "$as_val"'`
10448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10449 $as_echo "$ac_res" >&6; }
10451 # Is the header compilable?
10452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10453 $as_echo_n "checking $ac_header usability... " >&6; }
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 $ac_includes_default
10461 #include <$ac_header>
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_compile") 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest.$ac_objext; then
10481 ac_header_compiler=yes
10483 $as_echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 ac_header_compiler=no
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 $as_echo "$ac_header_compiler" >&6; }
10493 # Is the header present?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 $as_echo_n "checking $ac_header presence... " >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #include <$ac_header>
10504 if { (ac_try="$ac_cpp conftest.$ac_ext"
10505 case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10510 $as_echo "$ac_try_echo") >&5
10511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null && {
10518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10521 ac_header_preproc=yes
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_header_preproc=no
10529 rm -f conftest.err conftest.$ac_ext
10530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 $as_echo "$ac_header_preproc" >&6; }
10533 # So? What about this header?
10534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10540 ac_header_preproc=yes
10543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10546 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10556 ## ---------------------------------------- ##
10557 ## Report this to pgsql-bugs@postgresql.org ##
10558 ## ---------------------------------------- ##
10560 ) | sed "s/^/$as_me: WARNING: /" >&2
10563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 $as_echo_n "checking for $ac_header... " >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 $as_echo_n "(cached) " >&6
10568 eval "$as_ac_Header=\$ac_header_preproc"
10570 ac_res=`eval 'as_val=${'$as_ac_Header'}
10571 $as_echo "$as_val"'`
10572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10573 $as_echo "$ac_res" >&6; }
10576 as_val=`eval 'as_val=${'$as_ac_Header'}
10577 $as_echo "$as_val"'`
10578 if test "x$as_val" = x""yes; then
10579 cat >>confdefs.h <<_ACEOF
10580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10585 for ac_header in history.h
10587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 $as_echo_n "checking for $ac_header... " >&6; }
10591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10592 $as_echo_n "(cached) " >&6
10594 ac_res=`eval 'as_val=${'$as_ac_Header'}
10595 $as_echo "$as_val"'`
10596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10597 $as_echo "$ac_res" >&6; }
10599 # Is the header compilable?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10601 $as_echo_n "checking $ac_header usability... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 $ac_includes_default
10609 #include <$ac_header>
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_compile") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1 >conftest.err
10623 cat conftest.err >&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest.$ac_objext; then
10629 ac_header_compiler=yes
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_header_compiler=no
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 $as_echo "$ac_header_compiler" >&6; }
10641 # Is the header present?
10642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643 $as_echo_n "checking $ac_header presence... " >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <$ac_header>
10652 if { (ac_try="$ac_cpp conftest.$ac_ext"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null && {
10666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10669 ac_header_preproc=yes
10671 $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_header_preproc=no
10677 rm -f conftest.err conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10679 $as_echo "$ac_header_preproc" >&6; }
10681 # So? What about this header?
10682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10688 ac_header_preproc=yes
10691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10704 ## ---------------------------------------- ##
10705 ## Report this to pgsql-bugs@postgresql.org ##
10706 ## ---------------------------------------- ##
10708 ) | sed "s/^/$as_me: WARNING: /" >&2
10711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10712 $as_echo_n "checking for $ac_header... " >&6; }
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714 $as_echo_n "(cached) " >&6
10716 eval "$as_ac_Header=\$ac_header_preproc"
10718 ac_res=`eval 'as_val=${'$as_ac_Header'}
10719 $as_echo "$as_val"'`
10720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10721 $as_echo "$ac_res" >&6; }
10724 as_val=`eval 'as_val=${'$as_ac_Header'}
10725 $as_echo "$as_val"'`
10726 if test "x$as_val" = x""yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10732 { { $as_echo "$as_me:$LINENO: error: history header not found
10733 If you have readline already installed, see config.log for details on the
10734 failure. It is possible the compiler isn't looking in the proper directory.
10735 Use --without-readline to disable readline support." >&5
10736 $as_echo "$as_me: error: history header not found
10737 If you have readline already installed, see config.log for details on the
10738 failure. It is possible the compiler isn't looking in the proper directory.
10739 Use --without-readline to disable readline support." >&2;}
10740 { (exit 1); exit 1; }; }
10751 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10752 # Some installations of libedit usurp /usr/include/readline/, which seems
10753 # bad practice, since in combined installations readline will have its headers
10754 # there. We might have to resort to AC_EGREP checks to make sure we found
10755 # the proper header...
10757 for ac_header in editline/readline.h
10759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 $as_echo_n "checking for $ac_header... " >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 $as_echo_n "(cached) " >&6
10766 ac_res=`eval 'as_val=${'$as_ac_Header'}
10767 $as_echo "$as_val"'`
10768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10769 $as_echo "$ac_res" >&6; }
10771 # Is the header compilable?
10772 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10773 $as_echo_n "checking $ac_header usability... " >&6; }
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 #include <$ac_header>
10783 rm -f conftest.$ac_objext
10784 if { (ac_try="$ac_compile"
10785 case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10790 $as_echo "$ac_try_echo") >&5
10791 (eval "$ac_compile") 2>conftest.er1
10793 grep -v '^ *+' conftest.er1 >conftest.err
10795 cat conftest.err >&5
10796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && {
10798 test -z "$ac_c_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest.$ac_objext; then
10801 ac_header_compiler=yes
10803 $as_echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_header_compiler=no
10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811 $as_echo "$ac_header_compiler" >&6; }
10813 # Is the header present?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10815 $as_echo_n "checking $ac_header presence... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <$ac_header>
10824 if { (ac_try="$ac_cpp conftest.$ac_ext"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830 $as_echo "$ac_try_echo") >&5
10831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } >/dev/null && {
10838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10841 ac_header_preproc=yes
10843 $as_echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_header_preproc=no
10849 rm -f conftest.err conftest.$ac_ext
10850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10851 $as_echo "$ac_header_preproc" >&6; }
10853 # So? What about this header?
10854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10857 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10860 ac_header_preproc=yes
10863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10866 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10868 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10870 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10874 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10876 ## ---------------------------------------- ##
10877 ## Report this to pgsql-bugs@postgresql.org ##
10878 ## ---------------------------------------- ##
10880 ) | sed "s/^/$as_me: WARNING: /" >&2
10883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 $as_echo_n "checking for $ac_header... " >&6; }
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886 $as_echo_n "(cached) " >&6
10888 eval "$as_ac_Header=\$ac_header_preproc"
10890 ac_res=`eval 'as_val=${'$as_ac_Header'}
10891 $as_echo "$as_val"'`
10892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10893 $as_echo "$ac_res" >&6; }
10896 as_val=`eval 'as_val=${'$as_ac_Header'}
10897 $as_echo "$as_val"'`
10898 if test "x$as_val" = x""yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10905 for ac_header in readline.h
10907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 $as_echo_n "checking for $ac_header... " >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 $as_echo_n "(cached) " >&6
10914 ac_res=`eval 'as_val=${'$as_ac_Header'}
10915 $as_echo "$as_val"'`
10916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10917 $as_echo "$ac_res" >&6; }
10919 # Is the header compilable?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 $as_echo_n "checking $ac_header usability... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 #include <$ac_header>
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1 >conftest.err
10943 cat conftest.err >&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest.$ac_objext; then
10949 ac_header_compiler=yes
10951 $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10954 ac_header_compiler=no
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10959 $as_echo "$ac_header_compiler" >&6; }
10961 # Is the header present?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10963 $as_echo_n "checking $ac_header presence... " >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <$ac_header>
10972 if { (ac_try="$ac_cpp conftest.$ac_ext"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } >/dev/null && {
10986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10989 ac_header_preproc=yes
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_header_preproc=no
10997 rm -f conftest.err conftest.$ac_ext
10998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999 $as_echo "$ac_header_preproc" >&6; }
11001 # So? What about this header?
11002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11008 ac_header_preproc=yes
11011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11024 ## ---------------------------------------- ##
11025 ## Report this to pgsql-bugs@postgresql.org ##
11026 ## ---------------------------------------- ##
11028 ) | sed "s/^/$as_me: WARNING: /" >&2
11031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11032 $as_echo_n "checking for $ac_header... " >&6; }
11033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034 $as_echo_n "(cached) " >&6
11036 eval "$as_ac_Header=\$ac_header_preproc"
11038 ac_res=`eval 'as_val=${'$as_ac_Header'}
11039 $as_echo "$as_val"'`
11040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11041 $as_echo "$ac_res" >&6; }
11044 as_val=`eval 'as_val=${'$as_ac_Header'}
11045 $as_echo "$as_val"'`
11046 if test "x$as_val" = x""yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11053 for ac_header in readline/readline.h
11055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 $as_echo_n "checking for $ac_header... " >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 $as_echo_n "(cached) " >&6
11062 ac_res=`eval 'as_val=${'$as_ac_Header'}
11063 $as_echo "$as_val"'`
11064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11065 $as_echo "$ac_res" >&6; }
11067 # Is the header compilable?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 $as_echo_n "checking $ac_header usability... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 #include <$ac_header>
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.$ac_objext; then
11097 ac_header_compiler=yes
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_header_compiler=no
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 $as_echo "$ac_header_compiler" >&6; }
11109 # Is the header present?
11110 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 $as_echo_n "checking $ac_header presence... " >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <$ac_header>
11120 if { (ac_try="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } >/dev/null && {
11134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11135 test ! -s conftest.err
11137 ac_header_preproc=yes
11139 $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_header_preproc=no
11145 rm -f conftest.err conftest.$ac_ext
11146 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11147 $as_echo "$ac_header_preproc" >&6; }
11149 # So? What about this header?
11150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11156 ac_header_preproc=yes
11159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11160 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11162 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11164 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11166 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11172 ## ---------------------------------------- ##
11173 ## Report this to pgsql-bugs@postgresql.org ##
11174 ## ---------------------------------------- ##
11176 ) | sed "s/^/$as_me: WARNING: /" >&2
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 $as_echo_n "(cached) " >&6
11184 eval "$as_ac_Header=\$ac_header_preproc"
11186 ac_res=`eval 'as_val=${'$as_ac_Header'}
11187 $as_echo "$as_val"'`
11188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11192 as_val=`eval 'as_val=${'$as_ac_Header'}
11193 $as_echo "$as_val"'`
11194 if test "x$as_val" = x""yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11200 { { $as_echo "$as_me:$LINENO: error: readline header not found
11201 If you have libedit already installed, see config.log for details on the
11202 failure. It is possible the compiler isn't looking in the proper directory.
11203 Use --without-readline to disable libedit support." >&5
11204 $as_echo "$as_me: error: readline header not found
11205 If you have libedit already installed, see config.log for details on the
11206 failure. It is possible the compiler isn't looking in the proper directory.
11207 Use --without-readline to disable libedit support." >&2;}
11208 { (exit 1); exit 1; }; }
11221 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11222 # not be there at all. Hence, don't complain if not found. We must check
11223 # though, since in yet other versions it is an independent header.
11225 for ac_header in editline/history.h
11227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 $as_echo_n "checking for $ac_header... " >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 $as_echo_n "(cached) " >&6
11234 ac_res=`eval 'as_val=${'$as_ac_Header'}
11235 $as_echo "$as_val"'`
11236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11237 $as_echo "$ac_res" >&6; }
11239 # Is the header compilable?
11240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 $as_echo_n "checking $ac_header usability... " >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11249 #include <$ac_header>
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11258 $as_echo "$ac_try_echo") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11269 ac_header_compiler=yes
11271 $as_echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_header_compiler=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 $as_echo "$ac_header_compiler" >&6; }
11281 # Is the header present?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11283 $as_echo_n "checking $ac_header presence... " >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 #include <$ac_header>
11292 if { (ac_try="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298 $as_echo "$ac_try_echo") >&5
11299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } >/dev/null && {
11306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11309 ac_header_preproc=yes
11311 $as_echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_preproc=no
11317 rm -f conftest.err conftest.$ac_ext
11318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 $as_echo "$ac_header_preproc" >&6; }
11321 # So? What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 ## ---------------------------------------- ##
11345 ## Report this to pgsql-bugs@postgresql.org ##
11346 ## ---------------------------------------- ##
11348 ) | sed "s/^/$as_me: WARNING: /" >&2
11351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 $as_echo_n "checking for $ac_header... " >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 $as_echo_n "(cached) " >&6
11356 eval "$as_ac_Header=\$ac_header_preproc"
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359 $as_echo "$as_val"'`
11360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11364 as_val=`eval 'as_val=${'$as_ac_Header'}
11365 $as_echo "$as_val"'`
11366 if test "x$as_val" = x""yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11373 for ac_header in history.h
11375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 $as_echo_n "checking for $ac_header... " >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 $as_echo_n "(cached) " >&6
11382 ac_res=`eval 'as_val=${'$as_ac_Header'}
11383 $as_echo "$as_val"'`
11384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11385 $as_echo "$ac_res" >&6; }
11387 # Is the header compilable?
11388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11389 $as_echo_n "checking $ac_header usability... " >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 $ac_includes_default
11397 #include <$ac_header>
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1 >conftest.err
11411 cat conftest.err >&5
11412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest.$ac_objext; then
11417 ac_header_compiler=yes
11419 $as_echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_header_compiler=no
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 $as_echo "$ac_header_compiler" >&6; }
11429 # Is the header present?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 $as_echo_n "checking $ac_header presence... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <$ac_header>
11440 if { (ac_try="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446 $as_echo "$ac_try_echo") >&5
11447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } >/dev/null && {
11454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11457 ac_header_preproc=yes
11459 $as_echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_header_preproc=no
11465 rm -f conftest.err conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11467 $as_echo "$ac_header_preproc" >&6; }
11469 # So? What about this header?
11470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11476 ac_header_preproc=yes
11479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11482 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11486 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11492 ## ---------------------------------------- ##
11493 ## Report this to pgsql-bugs@postgresql.org ##
11494 ## ---------------------------------------- ##
11496 ) | sed "s/^/$as_me: WARNING: /" >&2
11499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 $as_echo_n "checking for $ac_header... " >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 $as_echo_n "(cached) " >&6
11504 eval "$as_ac_Header=\$ac_header_preproc"
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507 $as_echo "$as_val"'`
11508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11512 as_val=`eval 'as_val=${'$as_ac_Header'}
11513 $as_echo "$as_val"'`
11514 if test "x$as_val" = x""yes; then
11515 cat >>confdefs.h <<_ACEOF
11516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521 for ac_header in readline/history.h
11523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11526 $as_echo_n "checking for $ac_header... " >&6; }
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528 $as_echo_n "(cached) " >&6
11530 ac_res=`eval 'as_val=${'$as_ac_Header'}
11531 $as_echo "$as_val"'`
11532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533 $as_echo "$ac_res" >&6; }
11535 # Is the header compilable?
11536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11537 $as_echo_n "checking $ac_header usability... " >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 $ac_includes_default
11545 #include <$ac_header>
11547 rm -f conftest.$ac_objext
11548 if { (ac_try="$ac_compile"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_compile") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest.$ac_objext; then
11565 ac_header_compiler=yes
11567 $as_echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_header_compiler=no
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 $as_echo "$ac_header_compiler" >&6; }
11577 # Is the header present?
11578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 $as_echo_n "checking $ac_header presence... " >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <$ac_header>
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } >/dev/null && {
11602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11605 ac_header_preproc=yes
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_header_preproc=no
11613 rm -f conftest.err conftest.$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 $as_echo "$ac_header_preproc" >&6; }
11617 # So? What about this header?
11618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11624 ac_header_preproc=yes
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11634 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11640 ## ---------------------------------------- ##
11641 ## Report this to pgsql-bugs@postgresql.org ##
11642 ## ---------------------------------------- ##
11644 ) | sed "s/^/$as_me: WARNING: /" >&2
11647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 $as_echo_n "checking for $ac_header... " >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 $as_echo_n "(cached) " >&6
11652 eval "$as_ac_Header=\$ac_header_preproc"
11654 ac_res=`eval 'as_val=${'$as_ac_Header'}
11655 $as_echo "$as_val"'`
11656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11660 as_val=`eval 'as_val=${'$as_ac_Header'}
11661 $as_echo "$as_val"'`
11662 if test "x$as_val" = x""yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11681 if test "$with_zlib" = yes; then
11682 if test "${ac_cv_header_zlib_h+set}" = set; then
11683 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11684 $as_echo_n "checking for zlib.h... " >&6; }
11685 if test "${ac_cv_header_zlib_h+set}" = set; then
11686 $as_echo_n "(cached) " >&6
11688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11689 $as_echo "$ac_cv_header_zlib_h" >&6; }
11691 # Is the header compilable?
11692 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11693 $as_echo_n "checking zlib.h usability... " >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1 >conftest.err
11715 cat conftest.err >&5
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest.$ac_objext; then
11721 ac_header_compiler=yes
11723 $as_echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 ac_header_compiler=no
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11731 $as_echo "$ac_header_compiler" >&6; }
11733 # Is the header present?
11734 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11735 $as_echo_n "checking zlib.h presence... " >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11744 if { (ac_try="$ac_cpp conftest.$ac_ext"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null && {
11758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11761 ac_header_preproc=yes
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_header_preproc=no
11769 rm -f conftest.err conftest.$ac_ext
11770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11771 $as_echo "$ac_header_preproc" >&6; }
11773 # So? What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11776 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11777 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11778 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11780 ac_header_preproc=yes
11783 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11784 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11786 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11788 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11789 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11790 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11791 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11792 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11793 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11794 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11796 ## ---------------------------------------- ##
11797 ## Report this to pgsql-bugs@postgresql.org ##
11798 ## ---------------------------------------- ##
11800 ) | sed "s/^/$as_me: WARNING: /" >&2
11803 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11804 $as_echo_n "checking for zlib.h... " >&6; }
11805 if test "${ac_cv_header_zlib_h+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11808 ac_cv_header_zlib_h=$ac_header_preproc
11810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11811 $as_echo "$ac_cv_header_zlib_h" >&6; }
11814 if test "x$ac_cv_header_zlib_h" = x""yes; then
11817 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11818 If you have zlib already installed, see config.log for details on the
11819 failure. It is possible the compiler isn't looking in the proper directory.
11820 Use --without-zlib to disable zlib support." >&5
11821 $as_echo "$as_me: error: zlib header not found
11822 If you have zlib already installed, see config.log for details on the
11823 failure. It is possible the compiler isn't looking in the proper directory.
11824 Use --without-zlib to disable zlib support." >&2;}
11825 { (exit 1); exit 1; }; }
11831 if test "$with_gssapi" = yes ; then
11833 for ac_header in gssapi/gssapi.h
11835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 $as_echo_n "(cached) " >&6
11842 ac_res=`eval 'as_val=${'$as_ac_Header'}
11843 $as_echo "$as_val"'`
11844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845 $as_echo "$ac_res" >&6; }
11847 # Is the header compilable?
11848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849 $as_echo_n "checking $ac_header usability... " >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <$ac_header>
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
11877 ac_header_compiler=yes
11879 $as_echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_header_compiler=no
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 $as_echo "$ac_header_compiler" >&6; }
11889 # Is the header present?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 $as_echo_n "checking $ac_header presence... " >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <$ac_header>
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } >/dev/null && {
11914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11917 ac_header_preproc=yes
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_header_preproc=no
11925 rm -f conftest.err conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 $as_echo "$ac_header_preproc" >&6; }
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11952 ## ---------------------------------------- ##
11953 ## Report this to pgsql-bugs@postgresql.org ##
11954 ## ---------------------------------------- ##
11956 ) | sed "s/^/$as_me: WARNING: /" >&2
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 $as_echo_n "(cached) " >&6
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11981 for ac_header in gssapi.h
11983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 $as_echo_n "checking for $ac_header... " >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 $as_echo_n "(cached) " >&6
11990 ac_res=`eval 'as_val=${'$as_ac_Header'}
11991 $as_echo "$as_val"'`
11992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11993 $as_echo "$ac_res" >&6; }
11995 # Is the header compilable?
11996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11997 $as_echo_n "checking $ac_header usability... " >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 #include <$ac_header>
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.$ac_objext; then
12025 ac_header_compiler=yes
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 ac_header_compiler=no
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 $as_echo "$ac_header_compiler" >&6; }
12037 # Is the header present?
12038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 $as_echo_n "checking $ac_header presence... " >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <$ac_header>
12048 if { (ac_try="$ac_cpp conftest.$ac_ext"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev/null && {
12062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12065 ac_header_preproc=yes
12067 $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ac_header_preproc=no
12073 rm -f conftest.err conftest.$ac_ext
12074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 $as_echo "$ac_header_preproc" >&6; }
12077 # So? What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12100 ## ---------------------------------------- ##
12101 ## Report this to pgsql-bugs@postgresql.org ##
12102 ## ---------------------------------------- ##
12104 ) | sed "s/^/$as_me: WARNING: /" >&2
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 $as_echo_n "checking for $ac_header... " >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12112 eval "$as_ac_Header=\$ac_header_preproc"
12114 ac_res=`eval 'as_val=${'$as_ac_Header'}
12115 $as_echo "$as_val"'`
12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117 $as_echo "$ac_res" >&6; }
12120 as_val=`eval 'as_val=${'$as_ac_Header'}
12121 $as_echo "$as_val"'`
12122 if test "x$as_val" = x""yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12128 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12129 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12130 { (exit 1); exit 1; }; }
12141 if test "$with_krb5" = yes ; then
12142 if test "${ac_cv_header_krb5_h+set}" = set; then
12143 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12144 $as_echo_n "checking for krb5.h... " >&6; }
12145 if test "${ac_cv_header_krb5_h+set}" = set; then
12146 $as_echo_n "(cached) " >&6
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12149 $as_echo "$ac_cv_header_krb5_h" >&6; }
12151 # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12153 $as_echo_n "checking krb5.h usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.$ac_objext; then
12181 ac_header_compiler=yes
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12186 ac_header_compiler=no
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12195 $as_echo_n "checking krb5.h presence... " >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null && {
12218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12221 ac_header_preproc=yes
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12245 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12247 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12249 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12253 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12263 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12264 $as_echo_n "checking for krb5.h... " >&6; }
12265 if test "${ac_cv_header_krb5_h+set}" = set; then
12266 $as_echo_n "(cached) " >&6
12268 ac_cv_header_krb5_h=$ac_header_preproc
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12271 $as_echo "$ac_cv_header_krb5_h" >&6; }
12274 if test "x$ac_cv_header_krb5_h" = x""yes; then
12277 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12278 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12279 { (exit 1); exit 1; }; }
12285 if test "$with_openssl" = yes ; then
12286 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12287 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12288 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12289 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12290 $as_echo_n "(cached) " >&6
12292 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12293 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12295 # Is the header compilable?
12296 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12297 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 $ac_includes_default
12305 #include <openssl/ssl.h>
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12314 $as_echo "$ac_try_echo") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12325 ac_header_compiler=yes
12327 $as_echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 ac_header_compiler=no
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 $as_echo "$ac_header_compiler" >&6; }
12337 # Is the header present?
12338 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12339 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <openssl/ssl.h>
12348 if { (ac_try="$ac_cpp conftest.$ac_ext"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } >/dev/null && {
12362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12365 ac_header_preproc=yes
12367 $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_header_preproc=no
12373 rm -f conftest.err conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375 $as_echo "$ac_header_preproc" >&6; }
12377 # So? What about this header?
12378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12380 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12381 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12384 ac_header_preproc=yes
12387 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12388 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12389 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12390 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12391 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12392 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12393 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12394 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12395 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12396 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12397 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12398 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12400 ## ---------------------------------------- ##
12401 ## Report this to pgsql-bugs@postgresql.org ##
12402 ## ---------------------------------------- ##
12404 ) | sed "s/^/$as_me: WARNING: /" >&2
12407 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12408 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12409 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12410 $as_echo_n "(cached) " >&6
12412 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12415 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12418 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12421 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12422 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12423 { (exit 1); exit 1; }; }
12427 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12428 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12429 $as_echo_n "checking for openssl/err.h... " >&6; }
12430 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12431 $as_echo_n "(cached) " >&6
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12434 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12436 # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12438 $as_echo_n "checking openssl/err.h usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 #include <openssl/err.h>
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456 (eval "$ac_compile") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1 >conftest.err
12460 cat conftest.err >&5
12461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } && {
12463 test -z "$ac_c_werror_flag" ||
12464 test ! -s conftest.err
12465 } && test -s conftest.$ac_objext; then
12466 ac_header_compiler=yes
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_header_compiler=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12480 $as_echo_n "checking openssl/err.h presence... " >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include <openssl/err.h>
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } >/dev/null && {
12503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12506 ac_header_preproc=yes
12508 $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_preproc=no
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12518 # So? What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12521 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12528 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12538 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12541 ## ---------------------------------------- ##
12542 ## Report this to pgsql-bugs@postgresql.org ##
12543 ## ---------------------------------------- ##
12545 ) | sed "s/^/$as_me: WARNING: /" >&2
12548 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12549 $as_echo_n "checking for openssl/err.h... " >&6; }
12550 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12551 $as_echo_n "(cached) " >&6
12553 ac_cv_header_openssl_err_h=$ac_header_preproc
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12556 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12559 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12562 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12563 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12564 { (exit 1); exit 1; }; }
12569 for ac_func in ERR_set_mark
12571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12573 $as_echo_n "checking for $ac_func... " >&6; }
12574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12575 $as_echo_n "(cached) " >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12585 #define $ac_func innocuous_$ac_func
12587 /* System header to define __stub macros and hopefully few prototypes,
12588 which can conflict with char $ac_func (); below.
12589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590 <limits.h> exists even on freestanding compilers. */
12593 # include <limits.h>
12595 # include <assert.h>
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined __stub_$ac_func || defined __stub___$ac_func
12617 return $ac_func ();
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630 (eval "$ac_link") 2>conftest.er1
12632 grep -v '^ *+' conftest.er1 >conftest.err
12634 cat conftest.err >&5
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest$ac_exeext && {
12640 test "$cross_compiling" = yes ||
12641 $as_test_x conftest$ac_exeext
12643 eval "$as_ac_var=yes"
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 eval "$as_ac_var=no"
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653 conftest$ac_exeext conftest.$ac_ext
12655 ac_res=`eval 'as_val=${'$as_ac_var'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12659 as_val=`eval 'as_val=${'$as_ac_var'}
12660 $as_echo "$as_val"'`
12661 if test "x$as_val" = x""yes; then
12662 cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 if test "$with_pam" = yes ; then
12673 for ac_header in security/pam_appl.h
12675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680 $as_echo_n "(cached) " >&6
12682 ac_res=`eval 'as_val=${'$as_ac_Header'}
12683 $as_echo "$as_val"'`
12684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12687 # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 #include <$ac_header>
12699 rm -f conftest.$ac_objext
12700 if { (ac_try="$ac_compile"
12701 case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12717 ac_header_compiler=yes
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_header_compiler=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 #include <$ac_header>
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null && {
12754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12757 ac_header_preproc=yes
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_header_preproc=no
12765 rm -f conftest.err conftest.$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12769 # So? What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776 ac_header_preproc=yes
12779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12792 ## ---------------------------------------- ##
12793 ## Report this to pgsql-bugs@postgresql.org ##
12794 ## ---------------------------------------- ##
12796 ) | sed "s/^/$as_me: WARNING: /" >&2
12799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 $as_echo_n "checking for $ac_header... " >&6; }
12801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802 $as_echo_n "(cached) " >&6
12804 eval "$as_ac_Header=\$ac_header_preproc"
12806 ac_res=`eval 'as_val=${'$as_ac_Header'}
12807 $as_echo "$as_val"'`
12808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12809 $as_echo "$ac_res" >&6; }
12812 as_val=`eval 'as_val=${'$as_ac_Header'}
12813 $as_echo "$as_val"'`
12814 if test "x$as_val" = x""yes; then
12815 cat >>confdefs.h <<_ACEOF
12816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12821 for ac_header in pam/pam_appl.h
12823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 $as_echo_n "checking for $ac_header... " >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828 $as_echo_n "(cached) " >&6
12830 ac_res=`eval 'as_val=${'$as_ac_Header'}
12831 $as_echo "$as_val"'`
12832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12835 # Is the header compilable?
12836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12837 $as_echo_n "checking $ac_header usability... " >&6; }
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 $ac_includes_default
12845 #include <$ac_header>
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 ac_header_compiler=yes
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_header_compiler=no
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12875 $as_echo "$ac_header_compiler" >&6; }
12877 # Is the header present?
12878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12879 $as_echo_n "checking $ac_header presence... " >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include <$ac_header>
12888 if { (ac_try="$ac_cpp conftest.$ac_ext"
12889 case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12897 grep -v '^ *+' conftest.er1 >conftest.err
12899 cat conftest.err >&5
12900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } >/dev/null && {
12902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12905 ac_header_preproc=yes
12907 $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_header_preproc=no
12913 rm -f conftest.err conftest.$ac_ext
12914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 $as_echo "$ac_header_preproc" >&6; }
12917 # So? What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12924 ac_header_preproc=yes
12927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12930 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12934 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12940 ## ---------------------------------------- ##
12941 ## Report this to pgsql-bugs@postgresql.org ##
12942 ## ---------------------------------------- ##
12944 ) | sed "s/^/$as_me: WARNING: /" >&2
12947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 $as_echo_n "checking for $ac_header... " >&6; }
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950 $as_echo_n "(cached) " >&6
12952 eval "$as_ac_Header=\$ac_header_preproc"
12954 ac_res=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12960 as_val=`eval 'as_val=${'$as_ac_Header'}
12961 $as_echo "$as_val"'`
12962 if test "x$as_val" = x""yes; then
12963 cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12968 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12969 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12970 { (exit 1); exit 1; }; }
12981 if test "$with_libxml" = yes ; then
12982 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12983 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12984 $as_echo_n "checking for libxml/parser.h... " >&6; }
12985 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12986 $as_echo_n "(cached) " >&6
12988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12989 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12991 # Is the header compilable?
12992 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12993 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 $ac_includes_default
13001 #include <libxml/parser.h>
13003 rm -f conftest.$ac_objext
13004 if { (ac_try="$ac_compile"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011 (eval "$ac_compile") 2>conftest.er1
13013 grep -v '^ *+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest.$ac_objext; then
13021 ac_header_compiler=yes
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_header_compiler=no
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 $as_echo "$ac_header_compiler" >&6; }
13033 # Is the header present?
13034 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13035 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <libxml/parser.h>
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev/null && {
13058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13059 test ! -s conftest.err
13061 ac_header_preproc=yes
13063 $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13066 ac_header_preproc=no
13069 rm -f conftest.err conftest.$ac_ext
13070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 $as_echo "$ac_header_preproc" >&6; }
13073 # So? What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13077 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13080 ac_header_preproc=yes
13083 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13084 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13085 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13086 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13087 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13088 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13089 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13090 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13091 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13092 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13093 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13094 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13096 ## ---------------------------------------- ##
13097 ## Report this to pgsql-bugs@postgresql.org ##
13098 ## ---------------------------------------- ##
13100 ) | sed "s/^/$as_me: WARNING: /" >&2
13103 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13104 $as_echo_n "checking for libxml/parser.h... " >&6; }
13105 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13106 $as_echo_n "(cached) " >&6
13108 ac_cv_header_libxml_parser_h=$ac_header_preproc
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13111 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13114 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13117 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13118 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13119 { (exit 1); exit 1; }; }
13125 if test "$with_libxslt" = yes ; then
13126 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13127 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13128 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13129 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13130 $as_echo_n "(cached) " >&6
13132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13133 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13135 # Is the header compilable?
13136 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13137 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 #include <libxslt/xslt.h>
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155 (eval "$ac_compile") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1 >conftest.err
13159 cat conftest.err >&5
13160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.$ac_objext; then
13165 ac_header_compiler=yes
13167 $as_echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_compiler=no
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13175 $as_echo "$ac_header_compiler" >&6; }
13177 # Is the header present?
13178 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13179 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13180 cat >conftest.$ac_ext <<_ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 #include <libxslt/xslt.h>
13188 if { (ac_try="$ac_cpp conftest.$ac_ext"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } >/dev/null && {
13202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13205 ac_header_preproc=yes
13207 $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_header_preproc=no
13213 rm -f conftest.err conftest.$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13215 $as_echo "$ac_header_preproc" >&6; }
13217 # So? What about this header?
13218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13220 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13221 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13224 ac_header_preproc=yes
13227 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13228 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13230 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13232 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13234 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13235 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13236 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13238 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13240 ## ---------------------------------------- ##
13241 ## Report this to pgsql-bugs@postgresql.org ##
13242 ## ---------------------------------------- ##
13244 ) | sed "s/^/$as_me: WARNING: /" >&2
13247 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13248 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13249 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13250 $as_echo_n "(cached) " >&6
13252 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13255 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13258 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13261 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13262 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13263 { (exit 1); exit 1; }; }
13269 if test "$with_ldap" = yes ; then
13270 if test "$PORTNAME" != "win32"; then
13272 for ac_header in ldap.h
13274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13277 $as_echo_n "checking for $ac_header... " >&6; }
13278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13279 $as_echo_n "(cached) " >&6
13281 ac_res=`eval 'as_val=${'$as_ac_Header'}
13282 $as_echo "$as_val"'`
13283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13286 # Is the header compilable?
13287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13288 $as_echo_n "checking $ac_header usability... " >&6; }
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 #include <$ac_header>
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest.$ac_objext; then
13316 ac_header_compiler=yes
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_header_compiler=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 $as_echo "$ac_header_compiler" >&6; }
13328 # Is the header present?
13329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 $as_echo_n "checking $ac_header presence... " >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 #include <$ac_header>
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev/null && {
13353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13356 ac_header_preproc=yes
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_preproc=no
13364 rm -f conftest.err conftest.$ac_ext
13365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 $as_echo "$ac_header_preproc" >&6; }
13368 # So? What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375 ac_header_preproc=yes
13378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13381 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13385 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13391 ## ---------------------------------------- ##
13392 ## Report this to pgsql-bugs@postgresql.org ##
13393 ## ---------------------------------------- ##
13395 ) | sed "s/^/$as_me: WARNING: /" >&2
13398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 $as_echo_n "checking for $ac_header... " >&6; }
13400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13401 $as_echo_n "(cached) " >&6
13403 eval "$as_ac_Header=\$ac_header_preproc"
13405 ac_res=`eval 'as_val=${'$as_ac_Header'}
13406 $as_echo "$as_val"'`
13407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13411 as_val=`eval 'as_val=${'$as_ac_Header'}
13412 $as_echo "$as_val"'`
13413 if test "x$as_val" = x""yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13419 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13420 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13421 { (exit 1); exit 1; }; }
13428 for ac_header in winldap.h
13430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 $as_echo_n "checking for $ac_header... " >&6; }
13433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13434 $as_echo_n "(cached) " >&6
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 #include <windows.h>
13446 #include <$ac_header>
13448 rm -f conftest.$ac_objext
13449 if { (ac_try="$ac_compile"
13450 case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456 (eval "$ac_compile") 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest.$ac_objext; then
13466 eval "$as_ac_Header=yes"
13468 $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 eval "$as_ac_Header=no"
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476 ac_res=`eval 'as_val=${'$as_ac_Header'}
13477 $as_echo "$as_val"'`
13478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13479 $as_echo "$ac_res" >&6; }
13480 as_val=`eval 'as_val=${'$as_ac_Header'}
13481 $as_echo "$as_val"'`
13482 if test "x$as_val" = x""yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13488 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13489 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13490 { (exit 1); exit 1; }; }
13498 if test "$with_bonjour" = yes ; then
13499 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13500 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13501 $as_echo_n "checking for dns_sd.h... " >&6; }
13502 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13503 $as_echo_n "(cached) " >&6
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13506 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13508 # Is the header compilable?
13509 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13510 $as_echo_n "checking dns_sd.h usability... " >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13518 #include <dns_sd.h>
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.$ac_objext; then
13538 ac_header_compiler=yes
13540 $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_header_compiler=no
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13548 $as_echo "$ac_header_compiler" >&6; }
13550 # Is the header present?
13551 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13552 $as_echo_n "checking dns_sd.h presence... " >&6; }
13553 cat >conftest.$ac_ext <<_ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <dns_sd.h>
13561 if { (ac_try="$ac_cpp conftest.$ac_ext"
13562 case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } >/dev/null && {
13575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13578 ac_header_preproc=yes
13580 $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_preproc=no
13586 rm -f conftest.err conftest.$ac_ext
13587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 $as_echo "$ac_header_preproc" >&6; }
13590 # So? What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13593 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13597 ac_header_preproc=yes
13600 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13601 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13603 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13605 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13606 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13607 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13608 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13609 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13610 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13611 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13613 ## ---------------------------------------- ##
13614 ## Report this to pgsql-bugs@postgresql.org ##
13615 ## ---------------------------------------- ##
13617 ) | sed "s/^/$as_me: WARNING: /" >&2
13620 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13621 $as_echo_n "checking for dns_sd.h... " >&6; }
13622 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13623 $as_echo_n "(cached) " >&6
13625 ac_cv_header_dns_sd_h=$ac_header_preproc
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13628 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13631 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13634 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13635 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13636 { (exit 1); exit 1; }; }
13642 # for contrib/uuid-ossp
13643 if test "$with_ossp_uuid" = yes ; then
13645 for ac_header in ossp/uuid.h
13647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650 $as_echo_n "checking for $ac_header... " >&6; }
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 $as_echo_n "(cached) " >&6
13654 ac_res=`eval 'as_val=${'$as_ac_Header'}
13655 $as_echo "$as_val"'`
13656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657 $as_echo "$ac_res" >&6; }
13659 # Is the header compilable?
13660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661 $as_echo_n "checking $ac_header usability... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 $ac_includes_default
13669 #include <$ac_header>
13671 rm -f conftest.$ac_objext
13672 if { (ac_try="$ac_compile"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13681 grep -v '^ *+' conftest.er1 >conftest.err
13683 cat conftest.err >&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } && {
13686 test -z "$ac_c_werror_flag" ||
13687 test ! -s conftest.err
13688 } && test -s conftest.$ac_objext; then
13689 ac_header_compiler=yes
13691 $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_header_compiler=no
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 $as_echo "$ac_header_compiler" >&6; }
13701 # Is the header present?
13702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 $as_echo_n "checking $ac_header presence... " >&6; }
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <$ac_header>
13712 if { (ac_try="$ac_cpp conftest.$ac_ext"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null && {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13729 ac_header_preproc=yes
13731 $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_header_preproc=no
13737 rm -f conftest.err conftest.$ac_ext
13738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 $as_echo "$ac_header_preproc" >&6; }
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13764 ## ---------------------------------------- ##
13765 ## Report this to pgsql-bugs@postgresql.org ##
13766 ## ---------------------------------------- ##
13768 ) | sed "s/^/$as_me: WARNING: /" >&2
13771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 $as_echo_n "checking for $ac_header... " >&6; }
13773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13774 $as_echo_n "(cached) " >&6
13776 eval "$as_ac_Header=\$ac_header_preproc"
13778 ac_res=`eval 'as_val=${'$as_ac_Header'}
13779 $as_echo "$as_val"'`
13780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13784 as_val=`eval 'as_val=${'$as_ac_Header'}
13785 $as_echo "$as_val"'`
13786 if test "x$as_val" = x""yes; then
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13794 for ac_header in uuid.h
13796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 $as_echo_n "checking for $ac_header... " >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801 $as_echo_n "(cached) " >&6
13803 ac_res=`eval 'as_val=${'$as_ac_Header'}
13804 $as_echo "$as_val"'`
13805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13806 $as_echo "$ac_res" >&6; }
13808 # Is the header compilable?
13809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13810 $as_echo_n "checking $ac_header usability... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 $ac_includes_default
13818 #include <$ac_header>
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13827 $as_echo "$ac_try_echo") >&5
13828 (eval "$ac_compile") 2>conftest.er1
13830 grep -v '^ *+' conftest.er1 >conftest.err
13832 cat conftest.err >&5
13833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } && {
13835 test -z "$ac_c_werror_flag" ||
13836 test ! -s conftest.err
13837 } && test -s conftest.$ac_objext; then
13838 ac_header_compiler=yes
13840 $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_header_compiler=no
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13848 $as_echo "$ac_header_compiler" >&6; }
13850 # Is the header present?
13851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13852 $as_echo_n "checking $ac_header presence... " >&6; }
13853 cat >conftest.$ac_ext <<_ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 #include <$ac_header>
13861 if { (ac_try="$ac_cpp conftest.$ac_ext"
13862 case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null && {
13875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13878 ac_header_preproc=yes
13880 $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_header_preproc=no
13886 rm -f conftest.err conftest.$ac_ext
13887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 $as_echo "$ac_header_preproc" >&6; }
13890 # So? What about this header?
13891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897 ac_header_preproc=yes
13900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13903 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13907 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13913 ## ---------------------------------------- ##
13914 ## Report this to pgsql-bugs@postgresql.org ##
13915 ## ---------------------------------------- ##
13917 ) | sed "s/^/$as_me: WARNING: /" >&2
13920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13921 $as_echo_n "checking for $ac_header... " >&6; }
13922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13923 $as_echo_n "(cached) " >&6
13925 eval "$as_ac_Header=\$ac_header_preproc"
13927 ac_res=`eval 'as_val=${'$as_ac_Header'}
13928 $as_echo "$as_val"'`
13929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13930 $as_echo "$ac_res" >&6; }
13933 as_val=`eval 'as_val=${'$as_ac_Header'}
13934 $as_echo "$as_val"'`
13935 if test "x$as_val" = x""yes; then
13936 cat >>confdefs.h <<_ACEOF
13937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13941 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13942 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13943 { (exit 1); exit 1; }; }
13956 ## Types, structures, compiler characteristics
13960 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13961 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13962 if test "${ac_cv_c_bigendian+set}" = set; then
13963 $as_echo_n "(cached) " >&6
13965 ac_cv_c_bigendian=unknown
13966 # See if we're dealing with a universal compiler.
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #ifndef __APPLE_CC__
13974 not a universal capable compiler
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987 (eval "$ac_compile") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest.$ac_objext; then
13998 # Check for potential -arch flags. It is not universal unless
13999 # there are some -arch flags. Note that *ppc* also matches
14000 # ppc64. This check is also rather less than ideal.
14001 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14002 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 if test $ac_cv_c_bigendian = unknown; then
14013 # See if sys/param.h defines the BYTE_ORDER macro.
14014 cat >conftest.$ac_ext <<_ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 #include <sys/types.h>
14021 #include <sys/param.h>
14026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14027 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14029 bogus endian macros
14036 rm -f conftest.$ac_objext
14037 if { (ac_try="$ac_compile"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14043 $as_echo "$ac_try_echo") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 # It does; now see whether it defined to BIG_ENDIAN or not.
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <sys/types.h>
14062 #include <sys/param.h>
14067 #if BYTE_ORDER != BIG_ENDIAN
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14082 $as_echo "$ac_try_echo") >&5
14083 (eval "$ac_compile") 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } && {
14090 test -z "$ac_c_werror_flag" ||
14091 test ! -s conftest.err
14092 } && test -s conftest.$ac_objext; then
14093 ac_cv_c_bigendian=yes
14095 $as_echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_cv_c_bigendian=no
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 $as_echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 if test $ac_cv_c_bigendian = unknown; then
14112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 #include <limits.h>
14124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14125 bogus endian macros
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
14150 # It does; now see whether it defined to _BIG_ENDIAN or not.
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <limits.h>
14162 #ifndef _BIG_ENDIAN
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_compile") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest.$ac_objext; then
14188 ac_cv_c_bigendian=yes
14190 $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_c_bigendian=no
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198 $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 if test $ac_cv_c_bigendian = unknown; then
14207 # Compile a test program.
14208 if test "$cross_compiling" = yes; then
14209 # Try to guess by grepping values from an object file.
14210 cat >conftest.$ac_ext <<_ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 short int ascii_mm[] =
14217 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14218 short int ascii_ii[] =
14219 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14220 int use_ascii (int i) {
14221 return ascii_mm[i] + ascii_ii[i];
14223 short int ebcdic_ii[] =
14224 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14225 short int ebcdic_mm[] =
14226 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14227 int use_ebcdic (int i) {
14228 return ebcdic_mm[i] + ebcdic_ii[i];
14235 return use_ascii (foo) == use_ebcdic (foo);
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_compile") 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest.$ac_objext; then
14258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14259 ac_cv_c_bigendian=yes
14261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14262 if test "$ac_cv_c_bigendian" = unknown; then
14263 ac_cv_c_bigendian=no
14265 # finding both strings is unlikely to happen, but who knows?
14266 ac_cv_c_bigendian=unknown
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 $ac_includes_default
14289 /* Are we little or big endian? From Harbison&Steele. */
14293 char c[sizeof (long int)];
14296 return u.c[sizeof (long int) - 1] == 1;
14302 rm -f conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310 (eval "$ac_link") 2>&5
14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14314 { (case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320 (eval "$ac_try") 2>&5
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_cv_c_bigendian=no
14326 $as_echo "$as_me: program exited with status $ac_status" >&5
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ( exit $ac_status )
14331 ac_cv_c_bigendian=yes
14333 rm -rf conftest.dSYM
14334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14341 $as_echo "$ac_cv_c_bigendian" >&6; }
14342 case $ac_cv_c_bigendian in #(
14344 cat >>confdefs.h <<\_ACEOF
14345 #define WORDS_BIGENDIAN 1
14352 cat >>confdefs.h <<\_ACEOF
14353 #define AC_APPLE_UNIVERSAL_BUILD 1
14358 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14359 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14360 $as_echo "$as_me: error: unknown endianness
14361 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14362 { (exit 1); exit 1; }; } ;;
14365 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14367 if test "${ac_cv_c_const+set}" = set; then
14368 $as_echo_n "(cached) " >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14380 /* FIXME: Include the comments suggested by Paul. */
14381 #ifndef __cplusplus
14382 /* Ultrix mips cc rejects this. */
14383 typedef int charset[2];
14385 /* SunOS 4.1.1 cc rejects this. */
14386 char const *const *pcpcc;
14388 /* NEC SVR4.0.2 mips cc rejects this. */
14389 struct point {int x, y;};
14390 static struct point const zero = {0,0};
14391 /* AIX XL C 1.02.0.0 rejects this.
14392 It does not let you subtract one const X* pointer from another in
14393 an arm of an if-expression whose if-part is not a constant
14395 const char *g = "string";
14396 pcpcc = &g + (g ? g-g : 0);
14397 /* HPUX 7.0 cc rejects these. */
14399 ppc = (char**) pcpcc;
14400 pcpcc = (char const *const *) ppc;
14401 { /* SCO 3.2v4 cc rejects this. */
14403 char const *s = 0 ? (char *) 0 : (char const *) 0;
14408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14409 int x[] = {25, 17};
14410 const int *foo = &x[0];
14413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14414 typedef const int *iptr;
14418 { /* AIX XL C 1.02.0.0 rejects this saying
14419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14420 struct s { int j; const int *ap[3]; };
14421 struct s *b; b->j = 5;
14423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14424 const int foo = 10;
14425 if (!foo) return 0;
14427 return !cs[0] && !zero.x;
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442 (eval "$ac_compile") 2>conftest.er1
14444 grep -v '^ *+' conftest.er1 >conftest.err
14446 cat conftest.err >&5
14447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && {
14449 test -z "$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 } && test -s conftest.$ac_objext; then
14454 $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14463 $as_echo "$ac_cv_c_const" >&6; }
14464 if test $ac_cv_c_const = no; then
14466 cat >>confdefs.h <<\_ACEOF
14472 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14473 $as_echo_n "checking for inline... " >&6; }
14474 if test "${ac_cv_c_inline+set}" = set; then
14475 $as_echo_n "(cached) " >&6
14478 for ac_kw in inline __inline__ __inline; do
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #ifndef __cplusplus
14487 static $ac_kw foo_t static_foo () {return 0; }
14488 $ac_kw foo_t foo () {return 0; }
14492 rm -f conftest.$ac_objext
14493 if { (ac_try="$ac_compile"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14499 $as_echo "$ac_try_echo") >&5
14500 (eval "$ac_compile") 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest.$ac_objext; then
14510 ac_cv_c_inline=$ac_kw
14512 $as_echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 test "$ac_cv_c_inline" != no && break
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14524 $as_echo "$ac_cv_c_inline" >&6; }
14527 case $ac_cv_c_inline in
14530 case $ac_cv_c_inline in
14532 *) ac_val=$ac_cv_c_inline;;
14534 cat >>confdefs.h <<_ACEOF
14535 #ifndef __cplusplus
14536 #define inline $ac_val
14542 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14543 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14544 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14547 pgac_cv_c_inline_quietly=no
14548 if test "$ac_cv_c_inline" != no; then
14549 pgac_c_inline_save_werror=$ac_c_werror_flag
14550 ac_c_werror_flag=yes
14551 cat >conftest.$ac_ext <<_ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 static inline int fun () {return 0;}
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14573 $as_echo "$ac_try_echo") >&5
14574 (eval "$ac_link") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest$ac_exeext && {
14584 test "$cross_compiling" = yes ||
14585 $as_test_x conftest$ac_exeext
14587 pgac_cv_c_inline_quietly=yes
14589 $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14595 rm -rf conftest.dSYM
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598 ac_c_werror_flag=$pgac_c_inline_save_werror
14601 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14602 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14603 if test "$pgac_cv_c_inline_quietly" != no; then
14605 cat >>confdefs.h <<_ACEOF
14606 #define USE_INLINE 1
14611 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14612 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14613 if test "${ac_cv_c_stringize+set}" = set; then
14614 $as_echo_n "(cached) " >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14624 char *s = x(teststring);
14626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14627 $EGREP "#teststring" >/dev/null 2>&1; then
14628 ac_cv_c_stringize=no
14630 ac_cv_c_stringize=yes
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14636 $as_echo "$ac_cv_c_stringize" >&6; }
14637 if test $ac_cv_c_stringize = yes; then
14639 cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_STRINGIZE 1
14645 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14646 $as_echo_n "checking for signed types... " >&6; }
14647 if test "${pgac_cv_c_signed+set}" = set; then
14648 $as_echo_n "(cached) " >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14660 signed char c; signed short s; signed int i;
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 pgac_cv_c_signed=yes
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 pgac_cv_c_signed=no
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14694 $as_echo "$pgac_cv_c_signed" >&6; }
14695 if test x"$pgac_cv_c_signed" = xno ; then
14697 cat >>confdefs.h <<\_ACEOF
14698 #define signed /**/
14702 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14703 $as_echo_n "checking for working volatile... " >&6; }
14704 if test "${ac_cv_c_volatile+set}" = set; then
14705 $as_echo_n "(cached) " >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14719 int * volatile y = (int *) 0;
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest.$ac_objext; then
14743 ac_cv_c_volatile=yes
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_cv_c_volatile=no
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14754 $as_echo "$ac_cv_c_volatile" >&6; }
14755 if test $ac_cv_c_volatile = no; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define volatile /**/
14763 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14764 $as_echo_n "checking for __func__... " >&6; }
14765 if test "${pgac_cv_funcname_func_support+set}" = set; then
14766 $as_echo_n "(cached) " >&6
14768 cat >conftest.$ac_ext <<_ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14778 printf("%s\n", __func__);
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791 (eval "$ac_compile") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest.$ac_objext; then
14801 pgac_cv_funcname_func_support=yes
14803 $as_echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 pgac_cv_funcname_func_support=no
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14812 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14813 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_FUNCNAME__FUNC 1
14820 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14821 $as_echo_n "checking for __FUNCTION__... " >&6; }
14822 if test "${pgac_cv_funcname_function_support+set}" = set; then
14823 $as_echo_n "(cached) " >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14835 printf("%s\n", __FUNCTION__);
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } && {
14855 test -z "$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 } && test -s conftest.$ac_objext; then
14858 pgac_cv_funcname_function_support=yes
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 pgac_cv_funcname_function_support=no
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14869 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14870 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_FUNCNAME__FUNCTION 1
14878 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14879 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14880 if test "${ac_cv_struct_tm+set}" = set; then
14881 $as_echo_n "(cached) " >&6
14883 cat >conftest.$ac_ext <<_ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 #include <sys/types.h>
14896 int *p = &tm.tm_sec;
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.$ac_objext; then
14920 ac_cv_struct_tm=time.h
14922 $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_struct_tm=sys/time.h
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14931 $as_echo "$ac_cv_struct_tm" >&6; }
14932 if test $ac_cv_struct_tm = sys/time.h; then
14934 cat >>confdefs.h <<\_ACEOF
14935 #define TM_IN_SYS_TIME 1
14940 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14941 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14942 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14943 $as_echo_n "(cached) " >&6
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <sys/types.h>
14952 #include <$ac_cv_struct_tm>
14958 static struct tm ac_aggr;
14959 if (ac_aggr.tm_zone)
14965 rm -f conftest.$ac_objext
14966 if { (ac_try="$ac_compile"
14967 case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest.$ac_objext; then
14983 ac_cv_member_struct_tm_tm_zone=yes
14985 $as_echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 cat >conftest.$ac_ext <<_ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 #include <sys/types.h>
14995 #include <$ac_cv_struct_tm>
15001 static struct tm ac_aggr;
15002 if (sizeof ac_aggr.tm_zone)
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016 (eval "$ac_compile") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } && {
15023 test -z "$ac_c_werror_flag" ||
15024 test ! -s conftest.err
15025 } && test -s conftest.$ac_objext; then
15026 ac_cv_member_struct_tm_tm_zone=yes
15028 $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_member_struct_tm_tm_zone=no
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15040 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15041 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_STRUCT_TM_TM_ZONE 1
15050 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15052 cat >>confdefs.h <<\_ACEOF
15053 #define HAVE_TM_ZONE 1
15057 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15058 $as_echo_n "checking for tzname... " >&6; }
15059 if test "${ac_cv_var_tzname+set}" = set; then
15060 $as_echo_n "(cached) " >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15069 #ifndef tzname /* For SGI. */
15070 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089 (eval "$ac_link") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest$ac_exeext && {
15099 test "$cross_compiling" = yes ||
15100 $as_test_x conftest$ac_exeext
15102 ac_cv_var_tzname=yes
15104 $as_echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_var_tzname=no
15110 rm -rf conftest.dSYM
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112 conftest$ac_exeext conftest.$ac_ext
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15115 $as_echo "$ac_cv_var_tzname" >&6; }
15116 if test $ac_cv_var_tzname = yes; then
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_TZNAME 1
15124 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15125 $as_echo_n "checking for union semun... " >&6; }
15126 if test "${ac_cv_type_union_semun+set}" = set; then
15127 $as_echo_n "(cached) " >&6
15129 ac_cv_type_union_semun=no
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <sys/types.h>
15137 #include <sys/ipc.h>
15138 #include <sys/sem.h>
15143 if (sizeof (union semun))
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156 $as_echo "$ac_try_echo") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15159 grep -v '^ *+' conftest.er1 >conftest.err
15161 cat conftest.err >&5
15162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest.$ac_objext; then
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <sys/types.h>
15174 #include <sys/ipc.h>
15175 #include <sys/sem.h>
15180 if (sizeof ((union semun)))
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194 (eval "$ac_compile") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && {
15201 test -z "$ac_c_werror_flag" ||
15202 test ! -s conftest.err
15203 } && test -s conftest.$ac_objext; then
15206 $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_cv_type_union_semun=yes
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15214 $as_echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15223 $as_echo "$ac_cv_type_union_semun" >&6; }
15224 if test "x$ac_cv_type_union_semun" = x""yes; then
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_UNION_SEMUN 1
15233 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15234 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15235 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15236 $as_echo_n "(cached) " >&6
15238 ac_cv_type_struct_sockaddr_un=no
15239 cat >conftest.$ac_ext <<_ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 #include <sys/types.h>
15246 #ifdef HAVE_SYS_UN_H
15247 #include <sys/un.h>
15254 if (sizeof (struct sockaddr_un))
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <sys/types.h>
15285 #ifdef HAVE_SYS_UN_H
15286 #include <sys/un.h>
15293 if (sizeof ((struct sockaddr_un)))
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307 (eval "$ac_compile") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest.$ac_objext; then
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_type_struct_sockaddr_un=yes
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 $as_echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15336 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15337 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define HAVE_STRUCT_SOCKADDR_UN 1
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_UNIX_SOCKETS 1
15350 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15351 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15352 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15353 $as_echo_n "(cached) " >&6
15355 ac_cv_type_struct_sockaddr_storage=no
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 if (sizeof (struct sockaddr_storage))
15377 rm -f conftest.$ac_objext
15378 if { (ac_try="$ac_compile"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15384 $as_echo "$ac_try_echo") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest.$ac_objext; then
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 #include <sys/types.h>
15402 #ifdef HAVE_SYS_SOCKET_H
15403 #include <sys/socket.h>
15410 if (sizeof ((struct sockaddr_storage)))
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15423 $as_echo "$ac_try_echo") >&5
15424 (eval "$ac_compile") 2>conftest.er1
15426 grep -v '^ *+' conftest.er1 >conftest.err
15428 cat conftest.err >&5
15429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } && {
15431 test -z "$ac_c_werror_flag" ||
15432 test ! -s conftest.err
15433 } && test -s conftest.$ac_objext; then
15436 $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 ac_cv_type_struct_sockaddr_storage=yes
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15453 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15454 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15463 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15464 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15465 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15466 $as_echo_n "(cached) " >&6
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #include <sys/types.h>
15475 #ifdef HAVE_SYS_SOCKET_H
15476 #include <sys/socket.h>
15483 static struct sockaddr_storage ac_aggr;
15484 if (ac_aggr.ss_family)
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15528 static struct sockaddr_storage ac_aggr;
15529 if (sizeof ac_aggr.ss_family)
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } && {
15550 test -z "$ac_c_werror_flag" ||
15551 test ! -s conftest.err
15552 } && test -s conftest.$ac_objext; then
15553 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15555 $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_cv_member_struct_sockaddr_storage_ss_family=no
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15567 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15568 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15576 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15577 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15578 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15579 $as_echo_n "(cached) " >&6
15581 cat >conftest.$ac_ext <<_ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 #include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 #include <sys/socket.h>
15596 static struct sockaddr_storage ac_aggr;
15597 if (ac_aggr.__ss_family)
15603 rm -f conftest.$ac_objext
15604 if { (ac_try="$ac_compile"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15621 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15623 $as_echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15641 static struct sockaddr_storage ac_aggr;
15642 if (sizeof ac_aggr.__ss_family)
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15658 grep -v '^ *+' conftest.er1 >conftest.err
15660 cat conftest.err >&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest.$ac_objext; then
15666 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15668 $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_cv_member_struct_sockaddr_storage___ss_family=no
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15680 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15681 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15689 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15690 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15691 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15694 cat >conftest.$ac_ext <<_ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <sys/types.h>
15701 #ifdef HAVE_SYS_SOCKET_H
15702 #include <sys/socket.h>
15709 static struct sockaddr_storage ac_aggr;
15710 if (ac_aggr.ss_len)
15716 rm -f conftest.$ac_objext
15717 if { (ac_try="$ac_compile"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest.$ac_objext; then
15734 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15736 $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15754 static struct sockaddr_storage ac_aggr;
15755 if (sizeof ac_aggr.ss_len)
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769 (eval "$ac_compile") 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest.$ac_objext; then
15779 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15781 $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_member_struct_sockaddr_storage_ss_len=no
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15793 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15794 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15803 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15804 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15805 $as_echo_n "(cached) " >&6
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 #include <sys/types.h>
15814 #ifdef HAVE_SYS_SOCKET_H
15815 #include <sys/socket.h>
15822 static struct sockaddr_storage ac_aggr;
15823 if (ac_aggr.__ss_len)
15829 rm -f conftest.$ac_objext
15830 if { (ac_try="$ac_compile"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836 $as_echo "$ac_try_echo") >&5
15837 (eval "$ac_compile") 2>conftest.er1
15839 grep -v '^ *+' conftest.er1 >conftest.err
15841 cat conftest.err >&5
15842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } && {
15844 test -z "$ac_c_werror_flag" ||
15845 test ! -s conftest.err
15846 } && test -s conftest.$ac_objext; then
15847 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15867 static struct sockaddr_storage ac_aggr;
15868 if (sizeof ac_aggr.__ss_len)
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882 (eval "$ac_compile") 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest.$ac_objext; then
15892 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15894 $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_cv_member_struct_sockaddr_storage___ss_len=no
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15906 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15907 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15909 cat >>confdefs.h <<_ACEOF
15910 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15915 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15916 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15917 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15918 $as_echo_n "(cached) " >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <sys/types.h>
15927 #ifdef HAVE_SYS_SOCKET_H
15928 #include <sys/socket.h>
15935 static struct sockaddr ac_aggr;
15936 if (ac_aggr.sa_len)
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 ac_cv_member_struct_sockaddr_sa_len=yes
15962 $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15980 static struct sockaddr ac_aggr;
15981 if (sizeof ac_aggr.sa_len)
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest.$ac_objext; then
16005 ac_cv_member_struct_sockaddr_sa_len=yes
16007 $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_cv_member_struct_sockaddr_sa_len=no
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16019 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16020 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16029 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16030 $as_echo_n "checking for struct addrinfo... " >&6; }
16031 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16034 ac_cv_type_struct_addrinfo=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/types.h>
16042 #include <sys/socket.h>
16049 if (sizeof (struct addrinfo))
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/types.h>
16080 #include <sys/socket.h>
16087 if (sizeof ((struct addrinfo)))
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_addrinfo=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_addrinfo" >&5
16130 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16131 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_ADDRINFO 1
16141 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16142 $as_echo_n "checking for intptr_t... " >&6; }
16143 if test "${ac_cv_type_intptr_t+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16146 ac_cv_type_intptr_t=no
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 $ac_includes_default
16157 if (sizeof (intptr_t))
16163 rm -f conftest.$ac_objext
16164 if { (ac_try="$ac_compile"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16170 $as_echo "$ac_try_echo") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } && {
16178 test -z "$ac_c_werror_flag" ||
16179 test ! -s conftest.err
16180 } && test -s conftest.$ac_objext; then
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 $ac_includes_default
16191 if (sizeof ((intptr_t)))
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_type_intptr_t=yes
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 $as_echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16234 $as_echo "$ac_cv_type_intptr_t" >&6; }
16235 if test "x$ac_cv_type_intptr_t" = x""yes; then
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_INTPTR_T 1
16242 for ac_type in 'int' 'long int' 'long long int'; do
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268 (eval "$ac_compile") 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest.$ac_objext; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define intptr_t $ac_type
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 test -z "$ac_type" && break
16298 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16299 $as_echo_n "checking for uintptr_t... " >&6; }
16300 if test "${ac_cv_type_uintptr_t+set}" = set; then
16301 $as_echo_n "(cached) " >&6
16303 ac_cv_type_uintptr_t=no
16304 cat >conftest.$ac_ext <<_ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16314 if (sizeof (uintptr_t))
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328 (eval "$ac_compile") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && {
16335 test -z "$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 } && test -s conftest.$ac_objext; then
16338 cat >conftest.$ac_ext <<_ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16348 if (sizeof ((uintptr_t)))
16354 rm -f conftest.$ac_objext
16355 if { (ac_try="$ac_compile"
16356 case "(($ac_try" in
16357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16361 $as_echo "$ac_try_echo") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16374 $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_type_uintptr_t=yes
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16391 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16392 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_UINTPTR_T 1
16399 for ac_type in 'unsigned int' 'unsigned long int' \
16400 'unsigned long long int'; do
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 $ac_includes_default
16411 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16425 $as_echo "$ac_try_echo") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1 >conftest.err
16430 cat conftest.err >&5
16431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && {
16433 test -z "$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16435 } && test -s conftest.$ac_objext; then
16437 cat >>confdefs.h <<_ACEOF
16438 #define uintptr_t $ac_type
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 test -z "$ac_type" && break
16456 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16457 $as_echo_n "checking for long long int... " >&6; }
16458 if test "${ac_cv_type_long_long_int+set}" = set; then
16459 $as_echo_n "(cached) " >&6
16461 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 /* For now, do not test the preprocessor; as of 2007 there are too many
16469 implementations with broken preprocessors. Perhaps this can
16470 be revisited in 2012. In the meantime, code should not expect
16471 #if to work with literals wider than 32 bits. */
16472 /* Test literals. */
16473 long long int ll = 9223372036854775807ll;
16474 long long int nll = -9223372036854775807LL;
16475 unsigned long long int ull = 18446744073709551615ULL;
16476 /* Test constant expressions. */
16477 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16479 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16485 /* Test availability of runtime routines for shift and division. */
16486 long long int llmax = 9223372036854775807ll;
16487 unsigned long long int ullmax = 18446744073709551615ull;
16488 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16489 | (llmax / ll) | (llmax % ll)
16490 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16491 | (ullmax / ull) | (ullmax % ull));
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16504 $as_echo "$ac_try_echo") >&5
16505 (eval "$ac_link") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext && {
16515 test "$cross_compiling" = yes ||
16516 $as_test_x conftest$ac_exeext
16518 if test "$cross_compiling" = yes; then
16519 ac_cv_type_long_long_int=yes
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <limits.h>
16530 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16531 # define LLONG_MAX (HALF - 1 + HALF)
16536 long long int n = 1;
16540 long long int m = n << i;
16543 if (LLONG_MAX / 2 < m)
16551 rm -f conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559 (eval "$ac_link") 2>&5
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16568 $as_echo "$ac_try_echo") >&5
16569 (eval "$ac_try") 2>&5
16571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_long_long_int=yes
16575 $as_echo "$as_me: program exited with status $ac_status" >&5
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ( exit $ac_status )
16580 ac_cv_type_long_long_int=no
16582 rm -rf conftest.dSYM
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16588 $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_type_long_long_int=no
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596 conftest$ac_exeext conftest.$ac_ext
16598 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16599 $as_echo "$ac_cv_type_long_long_int" >&6; }
16600 if test $ac_cv_type_long_long_int = yes; then
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_LONG_LONG_INT 1
16609 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16610 $as_echo_n "checking for struct cmsgcred... " >&6; }
16611 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16612 $as_echo_n "(cached) " >&6
16614 ac_cv_type_struct_cmsgcred=no
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 #include <sys/param.h>
16622 #include <sys/types.h>
16623 #include <sys/socket.h>
16624 #include <sys/ucred.h>
16629 if (sizeof (struct cmsgcred))
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_compile") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest.$ac_objext; then
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 #include <sys/param.h>
16660 #include <sys/types.h>
16661 #include <sys/socket.h>
16662 #include <sys/ucred.h>
16667 if (sizeof ((struct cmsgcred)))
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681 (eval "$ac_compile") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1 >conftest.err
16685 cat conftest.err >&5
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest.$ac_objext; then
16693 $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 ac_cv_type_struct_cmsgcred=yes
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 $as_echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16710 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16711 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_STRUCT_CMSGCRED 1
16719 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16720 $as_echo_n "checking for struct fcred... " >&6; }
16721 if test "${ac_cv_type_struct_fcred+set}" = set; then
16722 $as_echo_n "(cached) " >&6
16724 ac_cv_type_struct_fcred=no
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 #include <sys/param.h>
16732 #include <sys/types.h>
16733 #include <sys/socket.h>
16734 #include <sys/ucred.h>
16739 if (sizeof (struct fcred))
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.$ac_objext; then
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <sys/param.h>
16770 #include <sys/types.h>
16771 #include <sys/socket.h>
16772 #include <sys/ucred.h>
16777 if (sizeof ((struct fcred)))
16783 rm -f conftest.$ac_objext
16784 if { (ac_try="$ac_compile"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16790 $as_echo "$ac_try_echo") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.$ac_objext; then
16803 $as_echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_type_struct_fcred=yes
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 $as_echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16820 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16821 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_STRUCT_FCRED 1
16829 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16830 $as_echo_n "checking for struct sockcred... " >&6; }
16831 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16832 $as_echo_n "(cached) " >&6
16834 ac_cv_type_struct_sockcred=no
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #include <sys/param.h>
16842 #include <sys/types.h>
16843 #include <sys/socket.h>
16844 #include <sys/ucred.h>
16849 if (sizeof (struct sockcred))
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest.$ac_objext; then
16873 cat >conftest.$ac_ext <<_ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <sys/param.h>
16880 #include <sys/types.h>
16881 #include <sys/socket.h>
16882 #include <sys/ucred.h>
16887 if (sizeof ((struct sockcred)))
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16913 $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_type_struct_sockcred=yes
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 $as_echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16930 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16931 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STRUCT_SOCKCRED 1
16941 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16942 $as_echo_n "checking for struct option... " >&6; }
16943 if test "${ac_cv_type_struct_option+set}" = set; then
16944 $as_echo_n "(cached) " >&6
16946 ac_cv_type_struct_option=no
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #ifdef HAVE_GETOPT_H
16954 #include <getopt.h>
16960 if (sizeof (struct option))
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1 >conftest.err
16978 cat conftest.err >&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 #ifdef HAVE_GETOPT_H
16991 #include <getopt.h>
16997 if (sizeof ((struct option)))
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17023 $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_type_struct_option=yes
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 $as_echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17040 $as_echo "$ac_cv_type_struct_option" >&6; }
17041 if test "x$ac_cv_type_struct_option" = x""yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_STRUCT_OPTION 1
17051 if test "$with_zlib" = yes; then
17052 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17053 # did not). While we could work around the lack of z_streamp, it
17054 # seems unwise to encourage people to use such old zlib versions...
17055 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17056 $as_echo_n "checking for z_streamp... " >&6; }
17057 if test "${ac_cv_type_z_streamp+set}" = set; then
17058 $as_echo_n "(cached) " >&6
17060 ac_cv_type_z_streamp=no
17061 cat >conftest.$ac_ext <<_ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17072 if (sizeof (z_streamp))
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086 (eval "$ac_compile") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1 >conftest.err
17090 cat conftest.err >&5
17091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && {
17093 test -z "$ac_c_werror_flag" ||
17094 test ! -s conftest.err
17095 } && test -s conftest.$ac_objext; then
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17107 if (sizeof ((z_streamp)))
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121 (eval "$ac_compile") 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_c_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest.$ac_objext; then
17133 $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_cv_type_z_streamp=yes
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 $as_echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17150 $as_echo "$ac_cv_type_z_streamp" >&6; }
17151 if test "x$ac_cv_type_z_streamp" = x""yes; then
17154 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17155 Use --without-zlib to disable zlib support." >&5
17156 $as_echo "$as_me: error: zlib version is too old
17157 Use --without-zlib to disable zlib support." >&2;}
17158 { (exit 1); exit 1; }; }
17163 if test "$with_krb5" = yes; then
17164 # Check for differences between MIT and Heimdal (KTH) releases
17165 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17166 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17167 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17168 $as_echo_n "(cached) " >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17181 static krb5_ticket ac_aggr;
17182 if (ac_aggr.enc_part2)
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17206 ac_cv_member_krb5_ticket_enc_part2=yes
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17222 static krb5_ticket ac_aggr;
17223 if (sizeof ac_aggr.enc_part2)
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest.$ac_objext; then
17247 ac_cv_member_krb5_ticket_enc_part2=yes
17249 $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_cv_member_krb5_ticket_enc_part2=no
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17261 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17262 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_KRB5_TICKET_ENC_PART2 1
17270 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17271 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17272 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17273 $as_echo_n "(cached) " >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17286 static krb5_ticket ac_aggr;
17287 if (ac_aggr.client)
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17300 $as_echo "$ac_try_echo") >&5
17301 (eval "$ac_compile") 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && {
17308 test -z "$ac_c_werror_flag" ||
17309 test ! -s conftest.err
17310 } && test -s conftest.$ac_objext; then
17311 ac_cv_member_krb5_ticket_client=yes
17313 $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17327 static krb5_ticket ac_aggr;
17328 if (sizeof ac_aggr.client)
17334 rm -f conftest.$ac_objext
17335 if { (ac_try="$ac_compile"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17341 $as_echo "$ac_try_echo") >&5
17342 (eval "$ac_compile") 2>conftest.er1
17344 grep -v '^ *+' conftest.er1 >conftest.err
17346 cat conftest.err >&5
17347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } && {
17349 test -z "$ac_c_werror_flag" ||
17350 test ! -s conftest.err
17351 } && test -s conftest.$ac_objext; then
17352 ac_cv_member_krb5_ticket_client=yes
17354 $as_echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ac_cv_member_krb5_ticket_client=no
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17366 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17367 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_KRB5_TICKET_CLIENT 1
17375 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17376 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17377 { (exit 1); exit 1; }; }
17382 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17383 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17384 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17385 $as_echo_n "(cached) " >&6
17387 cat >conftest.$ac_ext <<_ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17398 static krb5_error ac_aggr;
17399 if (ac_aggr.text.data)
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest.$ac_objext; then
17423 ac_cv_member_krb5_error_text_data=yes
17425 $as_echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17439 static krb5_error ac_aggr;
17440 if (sizeof ac_aggr.text.data)
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } && {
17461 test -z "$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 } && test -s conftest.$ac_objext; then
17464 ac_cv_member_krb5_error_text_data=yes
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_member_krb5_error_text_data=no
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17478 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17479 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17487 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17488 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17489 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17490 $as_echo_n "(cached) " >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17503 static krb5_error ac_aggr;
17504 if (ac_aggr.e_data)
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 ac_cv_member_krb5_error_e_data=yes
17530 $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17544 static krb5_error ac_aggr;
17545 if (sizeof ac_aggr.e_data)
17551 rm -f conftest.$ac_objext
17552 if { (ac_try="$ac_compile"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17558 $as_echo "$ac_try_echo") >&5
17559 (eval "$ac_compile") 2>conftest.er1
17561 grep -v '^ *+' conftest.er1 >conftest.err
17563 cat conftest.err >&5
17564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest.$ac_objext; then
17569 ac_cv_member_krb5_error_e_data=yes
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_member_krb5_error_e_data=no
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17583 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17584 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_KRB5_ERROR_E_DATA 1
17592 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17593 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17594 { (exit 1); exit 1; }; }
17600 # Win32 requires headers to be loaded for __stdcall, so can't use
17601 # AC_CHECK_FUNCS here.
17602 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17603 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17614 krb5_free_unparsed_name(NULL,NULL);
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627 (eval "$ac_link") 2>conftest.er1
17629 grep -v '^ *+' conftest.er1 >conftest.err
17631 cat conftest.err >&5
17632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && {
17634 test -z "$ac_c_werror_flag" ||
17635 test ! -s conftest.err
17636 } && test -s conftest$ac_exeext && {
17637 test "$cross_compiling" = yes ||
17638 $as_test_x conftest$ac_exeext
17641 cat >>confdefs.h <<\_ACEOF
17642 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17648 $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 { $as_echo "$as_me:$LINENO: result: no" >&5
17652 $as_echo "no" >&6; }
17655 rm -rf conftest.dSYM
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657 conftest$ac_exeext conftest.$ac_ext
17660 # Check largefile support. You might think this is a system service not a
17661 # compiler characteristic, but you'd be wrong. We must check this before
17662 # probing existence of related functions such as fseeko, since the largefile
17663 # defines can affect what is generated for that.
17664 # Check whether --enable-largefile was given.
17665 if test "${enable_largefile+set}" = set; then
17666 enableval=$enable_largefile;
17669 if test "$enable_largefile" != no; then
17671 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17673 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17674 $as_echo_n "(cached) " >&6
17676 ac_cv_sys_largefile_CC=no
17677 if test "$GCC" != yes; then
17680 # IRIX 6.2 and later do not support large files by default,
17681 # so use the C compiler's -n32 option if that helps.
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 #include <sys/types.h>
17689 /* Check that off_t can represent 2**63 - 1 correctly.
17690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17691 since some C++ compilers masquerading as C compilers
17692 incorrectly reject 9223372036854775807. */
17693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17695 && LARGE_OFF_T % 2147483647 == 1)
17705 rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713 (eval "$ac_compile") 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && {
17720 test -z "$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17722 } && test -s conftest.$ac_objext; then
17725 $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17731 rm -f core conftest.err conftest.$ac_objext
17733 rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741 (eval "$ac_compile") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && {
17748 test -z "$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17750 } && test -s conftest.$ac_objext; then
17751 ac_cv_sys_largefile_CC=' -n32'; break
17753 $as_echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17759 rm -f core conftest.err conftest.$ac_objext
17763 rm -f conftest.$ac_ext
17766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17767 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17768 if test "$ac_cv_sys_largefile_CC" != no; then
17769 CC=$CC$ac_cv_sys_largefile_CC
17772 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17773 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17774 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17775 $as_echo_n "(cached) " >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 #include <sys/types.h>
17785 /* Check that off_t can represent 2**63 - 1 correctly.
17786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17787 since some C++ compilers masquerading as C compilers
17788 incorrectly reject 9223372036854775807. */
17789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17791 && LARGE_OFF_T % 2147483647 == 1)
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.$ac_objext; then
17819 ac_cv_sys_file_offset_bits=no; break
17821 $as_echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 #define _FILE_OFFSET_BITS 64
17835 #include <sys/types.h>
17836 /* Check that off_t can represent 2**63 - 1 correctly.
17837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17838 since some C++ compilers masquerading as C compilers
17839 incorrectly reject 9223372036854775807. */
17840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17842 && LARGE_OFF_T % 2147483647 == 1)
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17859 $as_echo "$ac_try_echo") >&5
17860 (eval "$ac_compile") 2>conftest.er1
17862 grep -v '^ *+' conftest.er1 >conftest.err
17864 cat conftest.err >&5
17865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && {
17867 test -z "$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 } && test -s conftest.$ac_objext; then
17870 ac_cv_sys_file_offset_bits=64; break
17872 $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 ac_cv_sys_file_offset_bits=unknown
17883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17885 case $ac_cv_sys_file_offset_bits in #(
17888 cat >>confdefs.h <<_ACEOF
17889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17894 if test $ac_cv_sys_file_offset_bits = unknown; then
17895 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17897 if test "${ac_cv_sys_large_files+set}" = set; then
17898 $as_echo_n "(cached) " >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 #include <sys/types.h>
17908 /* Check that off_t can represent 2**63 - 1 correctly.
17909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17910 since some C++ compilers masquerading as C compilers
17911 incorrectly reject 9223372036854775807. */
17912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17914 && LARGE_OFF_T % 2147483647 == 1)
17924 rm -f conftest.$ac_objext
17925 if { (ac_try="$ac_compile"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932 (eval "$ac_compile") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } && {
17939 test -z "$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17941 } && test -s conftest.$ac_objext; then
17942 ac_cv_sys_large_files=no; break
17944 $as_echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #define _LARGE_FILES 1
17958 #include <sys/types.h>
17959 /* Check that off_t can represent 2**63 - 1 correctly.
17960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17961 since some C++ compilers masquerading as C compilers
17962 incorrectly reject 9223372036854775807. */
17963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17965 && LARGE_OFF_T % 2147483647 == 1)
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17982 $as_echo "$ac_try_echo") >&5
17983 (eval "$ac_compile") 2>conftest.er1
17985 grep -v '^ *+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest.$ac_objext; then
17993 ac_cv_sys_large_files=1; break
17995 $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
18001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002 ac_cv_sys_large_files=unknown
18006 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18007 $as_echo "$ac_cv_sys_large_files" >&6; }
18008 case $ac_cv_sys_large_files in #(
18011 cat >>confdefs.h <<_ACEOF
18012 #define _LARGE_FILES $ac_cv_sys_large_files
18021 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18022 # The cast to long int works around a bug in the HP C Compiler
18023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18025 # This bug is HP SR number 8606223364.
18026 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18027 $as_echo_n "checking size of off_t... " >&6; }
18028 if test "${ac_cv_sizeof_off_t+set}" = set; then
18029 $as_echo_n "(cached) " >&6
18031 if test "$cross_compiling" = yes; then
18032 # Depending upon the size, compute the lo and hi bounds.
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 $ac_includes_default
18043 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057 $as_echo "$ac_try_echo") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 $ac_includes_default
18080 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18094 $as_echo "$ac_try_echo") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest.$ac_objext; then
18105 ac_hi=$ac_mid; break
18107 $as_echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_lo=`expr $ac_mid + 1`
18111 if test $ac_lo -le $ac_mid; then
18115 ac_mid=`expr 2 '*' $ac_mid + 1`
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 $ac_includes_default
18134 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148 $as_echo "$ac_try_echo") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 $ac_includes_default
18171 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186 (eval "$ac_compile") 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest.$ac_objext; then
18196 ac_lo=$ac_mid; break
18198 $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_hi=`expr '(' $ac_mid ')' - 1`
18202 if test $ac_mid -le $ac_hi; then
18206 ac_mid=`expr 2 '*' $ac_mid`
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212 $as_echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 # Binary search between lo and hi bounds.
18223 while test "x$ac_lo" != "x$ac_hi"; do
18224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18235 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18242 rm -f conftest.$ac_objext
18243 if { (ac_try="$ac_compile"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18249 $as_echo "$ac_try_echo") >&5
18250 (eval "$ac_compile") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } && {
18257 test -z "$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18259 } && test -s conftest.$ac_objext; then
18262 $as_echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_lo=`expr '(' $ac_mid ')' + 1`
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18272 '') if test "$ac_cv_type_off_t" = yes; then
18273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18275 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18276 See \`config.log' for more details." >&5
18277 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18278 See \`config.log' for more details." >&2;}
18279 { (exit 77); exit 77; }; }; }
18281 ac_cv_sizeof_off_t=0
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 $ac_includes_default
18292 static long int longval () { return (long int) (sizeof (off_t)); }
18293 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18295 #include <stdlib.h>
18300 FILE *f = fopen ("conftest.val", "w");
18303 if (((long int) (sizeof (off_t))) < 0)
18305 long int i = longval ();
18306 if (i != ((long int) (sizeof (off_t))))
18308 fprintf (f, "%ld", i);
18312 unsigned long int i = ulongval ();
18313 if (i != ((long int) (sizeof (off_t))))
18315 fprintf (f, "%lu", i);
18317 /* Do not output a trailing newline, as this causes \r\n confusion
18318 on some platforms. */
18319 return ferror (f) || fclose (f) != 0;
18325 rm -f conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>&5
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343 (eval "$ac_try") 2>&5
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_sizeof_off_t=`cat conftest.val`
18349 $as_echo "$as_me: program exited with status $ac_status" >&5
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ( exit $ac_status )
18354 if test "$ac_cv_type_off_t" = yes; then
18355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18358 See \`config.log' for more details." >&5
18359 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18360 See \`config.log' for more details." >&2;}
18361 { (exit 77); exit 77; }; }; }
18363 ac_cv_sizeof_off_t=0
18366 rm -rf conftest.dSYM
18367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18372 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18376 cat >>confdefs.h <<_ACEOF
18377 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18382 # If we don't have largefile support, can't handle segsize >= 2GB.
18383 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18384 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18385 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18386 { (exit 1); exit 1; }; }
18391 ## Functions, global variables
18394 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18395 $as_echo_n "checking for int timezone... " >&6; }
18396 if test "${pgac_cv_var_int_timezone+set}" = set; then
18397 $as_echo_n "(cached) " >&6
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18411 res = timezone / 60;
18413 res = _timezone / 60;
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427 (eval "$ac_link") 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } && {
18434 test -z "$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18436 } && test -s conftest$ac_exeext && {
18437 test "$cross_compiling" = yes ||
18438 $as_test_x conftest$ac_exeext
18440 pgac_cv_var_int_timezone=yes
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 pgac_cv_var_int_timezone=no
18448 rm -rf conftest.dSYM
18449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450 conftest$ac_exeext conftest.$ac_ext
18452 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18453 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18454 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_INT_TIMEZONE /**/
18461 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18462 $as_echo_n "checking types of arguments for accept()... " >&6; }
18463 if test "${ac_cv_func_accept_return+set}" = set; then
18464 $as_echo_n "(cached) " >&6
18466 if test "${ac_cv_func_accept_arg1+set}" = set; then
18467 $as_echo_n "(cached) " >&6
18469 if test "${ac_cv_func_accept_arg2+set}" = set; then
18470 $as_echo_n "(cached) " >&6
18472 if test "${ac_cv_func_accept_arg3+set}" = set; then
18473 $as_echo_n "(cached) " >&6
18475 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18476 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18477 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18478 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 #ifdef HAVE_SYS_TYPES_H
18486 #include <sys/types.h>
18488 #ifdef HAVE_SYS_SOCKET_H
18489 #include <sys/socket.h>
18491 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18500 rm -f conftest.$ac_objext
18501 if { (ac_try="$ac_compile"
18502 case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_not_found=no; break 4
18520 $as_echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 if test "$ac_not_found" = yes; then
18532 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18533 $as_echo "$as_me: error: could not determine argument types" >&2;}
18534 { (exit 1); exit 1; }; }
18536 if test "$ac_cv_func_accept_arg3" = "void"; then
18537 ac_cv_func_accept_arg3=int
18547 { $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
18548 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18550 cat >>confdefs.h <<_ACEOF
18551 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18555 cat >>confdefs.h <<_ACEOF
18556 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18560 cat >>confdefs.h <<_ACEOF
18561 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18565 cat >>confdefs.h <<_ACEOF
18566 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18570 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18571 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18572 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18573 $as_echo_n "(cached) " >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <sys/time.h>
18585 struct timeval *tp;
18586 struct timezone *tzp;
18587 gettimeofday(tp,tzp);
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18599 $as_echo "$ac_try_echo") >&5
18600 (eval "$ac_compile") 2>conftest.er1
18602 grep -v '^ *+' conftest.er1 >conftest.err
18604 cat conftest.err >&5
18605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest.$ac_objext; then
18610 pgac_cv_func_gettimeofday_1arg=no
18612 $as_echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 pgac_cv_func_gettimeofday_1arg=yes
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18621 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18622 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18624 cat >>confdefs.h <<\_ACEOF
18625 #define GETTIMEOFDAY_1ARG /**/
18655 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 $as_echo_n "checking for $ac_func... " >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18661 $as_echo_n "(cached) " >&6
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18671 #define $ac_func innocuous_$ac_func
18673 /* System header to define __stub macros and hopefully few prototypes,
18674 which can conflict with char $ac_func (); below.
18675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676 <limits.h> exists even on freestanding compilers. */
18679 # include <limits.h>
18681 # include <assert.h>
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18703 return $ac_func ();
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716 (eval "$ac_link") 2>conftest.er1
18718 grep -v '^ *+' conftest.er1 >conftest.err
18720 cat conftest.err >&5
18721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } && {
18723 test -z "$ac_c_werror_flag" ||
18724 test ! -s conftest.err
18725 } && test -s conftest$ac_exeext && {
18726 test "$cross_compiling" = yes ||
18727 $as_test_x conftest$ac_exeext
18729 eval "$as_ac_var=yes"
18731 $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 eval "$as_ac_var=no"
18737 rm -rf conftest.dSYM
18738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18739 conftest$ac_exeext conftest.$ac_ext
18741 ac_res=`eval 'as_val=${'$as_ac_var'}
18742 $as_echo "$as_val"'`
18743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 as_val=`eval 'as_val=${'$as_ac_var'}
18746 $as_echo "$as_val"'`
18747 if test "x$as_val" = x""yes; then
18748 cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18757 for ac_func in fseeko
18759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 $as_echo_n "checking for $ac_func... " >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763 $as_echo_n "(cached) " >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773 #define $ac_func innocuous_$ac_func
18775 /* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18781 # include <limits.h>
18783 # include <assert.h>
18788 /* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18795 /* The GNU C library defines this for functions which it implements
18796 to always fail with ENOSYS. Some functions are actually named
18797 something starting with __ and the normal name is an alias. */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18805 return $ac_func ();
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818 (eval "$ac_link") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest$ac_exeext && {
18828 test "$cross_compiling" = yes ||
18829 $as_test_x conftest$ac_exeext
18831 eval "$as_ac_var=yes"
18833 $as_echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 eval "$as_ac_var=no"
18839 rm -rf conftest.dSYM
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841 conftest$ac_exeext conftest.$ac_ext
18843 ac_res=`eval 'as_val=${'$as_ac_var'}
18844 $as_echo "$as_val"'`
18845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18846 $as_echo "$ac_res" >&6; }
18847 as_val=`eval 'as_val=${'$as_ac_var'}
18848 $as_echo "$as_val"'`
18849 if test "x$as_val" = x""yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18855 case " $LIBOBJS " in
18856 *" $ac_func.$ac_objext "* ) ;;
18857 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18866 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18867 # Mingw uses macros to access Win32 API calls
18868 bsdi*|netbsd*|mingw*)
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_FSEEKO 1
18874 ac_cv_func_fseeko=yes;;
18876 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18877 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18878 if test "${ac_cv_sys_largefile_source+set}" = set; then
18879 $as_echo_n "(cached) " >&6
18882 cat >conftest.$ac_ext <<_ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <sys/types.h> /* for off_t */
18893 int (*fp) (FILE *, off_t, int) = fseeko;
18894 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18906 $as_echo "$ac_try_echo") >&5
18907 (eval "$ac_link") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest$ac_exeext && {
18917 test "$cross_compiling" = yes ||
18918 $as_test_x conftest$ac_exeext
18920 ac_cv_sys_largefile_source=no; break
18922 $as_echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18928 rm -rf conftest.dSYM
18929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18930 conftest$ac_exeext conftest.$ac_ext
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #define _LARGEFILE_SOURCE 1
18938 #include <sys/types.h> /* for off_t */
18943 int (*fp) (FILE *, off_t, int) = fseeko;
18944 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext && {
18967 test "$cross_compiling" = yes ||
18968 $as_test_x conftest$ac_exeext
18970 ac_cv_sys_largefile_source=1; break
18972 $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18978 rm -rf conftest.dSYM
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980 conftest$ac_exeext conftest.$ac_ext
18981 ac_cv_sys_largefile_source=unknown
18985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18986 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18987 case $ac_cv_sys_largefile_source in #(
18990 cat >>confdefs.h <<_ACEOF
18991 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18997 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18998 # in glibc 2.1.3, but that breaks too many other things.
18999 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19000 if test $ac_cv_sys_largefile_source != unknown; then
19002 cat >>confdefs.h <<\_ACEOF
19003 #define HAVE_FSEEKO 1
19010 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19011 # by calling it, 2009-04-02
19012 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19013 if test "$PORTNAME" != "solaris"; then
19015 for ac_func in posix_fadvise
19017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19018 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19019 $as_echo_n "checking for $ac_func... " >&6; }
19020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19021 $as_echo_n "(cached) " >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19031 #define $ac_func innocuous_$ac_func
19033 /* System header to define __stub macros and hopefully few prototypes,
19034 which can conflict with char $ac_func (); below.
19035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19036 <limits.h> exists even on freestanding compilers. */
19039 # include <limits.h>
19041 # include <assert.h>
19046 /* Override any GCC internal prototype to avoid an error.
19047 Use char because int might match the return type of a GCC
19048 builtin and then its argument prototype would still apply. */
19053 /* The GNU C library defines this for functions which it implements
19054 to always fail with ENOSYS. Some functions are actually named
19055 something starting with __ and the normal name is an alias. */
19056 #if defined __stub_$ac_func || defined __stub___$ac_func
19063 return $ac_func ();
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19075 $as_echo "$ac_try_echo") >&5
19076 (eval "$ac_link") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext && {
19086 test "$cross_compiling" = yes ||
19087 $as_test_x conftest$ac_exeext
19089 eval "$as_ac_var=yes"
19091 $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 eval "$as_ac_var=no"
19097 rm -rf conftest.dSYM
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099 conftest$ac_exeext conftest.$ac_ext
19101 ac_res=`eval 'as_val=${'$as_ac_var'}
19102 $as_echo "$as_val"'`
19103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19104 $as_echo "$ac_res" >&6; }
19105 as_val=`eval 'as_val=${'$as_ac_var'}
19106 $as_echo "$as_val"'`
19107 if test "x$as_val" = x""yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19115 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19116 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19117 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19118 $as_echo_n "(cached) " >&6
19120 cat >conftest.$ac_ext <<_ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19131 #ifndef posix_fadvise
19132 (void) posix_fadvise;
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19146 $as_echo "$ac_try_echo") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19157 ac_cv_have_decl_posix_fadvise=yes
19159 $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_have_decl_posix_fadvise=no
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19168 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19169 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_DECL_POSIX_FADVISE 1
19177 cat >>confdefs.h <<_ACEOF
19178 #define HAVE_DECL_POSIX_FADVISE 0
19187 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19188 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19189 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19190 $as_echo_n "(cached) " >&6
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 #include <unistd.h>
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_compile") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } && {
19226 test -z "$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 } && test -s conftest.$ac_objext; then
19229 ac_cv_have_decl_fdatasync=yes
19231 $as_echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_have_decl_fdatasync=no
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19240 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19241 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_DECL_FDATASYNC 1
19249 cat >>confdefs.h <<_ACEOF
19250 #define HAVE_DECL_FDATASYNC 0
19257 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19258 $as_echo_n "checking whether strlcat is declared... " >&6; }
19259 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19260 $as_echo_n "(cached) " >&6
19262 cat >conftest.$ac_ext <<_ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 $ac_includes_default
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288 (eval "$ac_compile") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest.$ac_objext; then
19298 ac_cv_have_decl_strlcat=yes
19300 $as_echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_have_decl_strlcat=no
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19309 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19310 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_DECL_STRLCAT 1
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRLCAT 0
19324 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19325 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19326 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19327 $as_echo_n "(cached) " >&6
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335 $ac_includes_default
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19354 $as_echo "$ac_try_echo") >&5
19355 (eval "$ac_compile") 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_c_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest.$ac_objext; then
19365 ac_cv_have_decl_strlcpy=yes
19367 $as_echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_cv_have_decl_strlcpy=no
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19376 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19377 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_DECL_STRLCPY 1
19385 cat >>confdefs.h <<_ACEOF
19386 #define HAVE_DECL_STRLCPY 0
19393 # This is probably only present on Darwin, but may as well check always
19394 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19395 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19396 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19397 $as_echo_n "(cached) " >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19410 #ifndef F_FULLFSYNC
19411 (void) F_FULLFSYNC;
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19425 $as_echo "$ac_try_echo") >&5
19426 (eval "$ac_compile") 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest.$ac_objext; then
19436 ac_cv_have_decl_F_FULLFSYNC=yes
19438 $as_echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_have_decl_F_FULLFSYNC=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19447 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19448 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_DECL_F_FULLFSYNC 1
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_DECL_F_FULLFSYNC 0
19466 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19467 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19468 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19469 $as_echo_n "(cached) " >&6
19471 ac_cv_type_struct_sockaddr_in6=no
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 $ac_includes_default
19479 #include <netinet/in.h>
19484 if (sizeof (struct sockaddr_in6))
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest.$ac_objext; then
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 $ac_includes_default
19515 #include <netinet/in.h>
19520 if (sizeof ((struct sockaddr_in6)))
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19533 $as_echo "$ac_try_echo") >&5
19534 (eval "$ac_compile") 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } && {
19541 test -z "$ac_c_werror_flag" ||
19542 test ! -s conftest.err
19543 } && test -s conftest.$ac_objext; then
19546 $as_echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_type_struct_sockaddr_in6=yes
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19563 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19564 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_IPV6 1
19575 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19576 $as_echo_n "checking for PS_STRINGS... " >&6; }
19577 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19578 $as_echo_n "(cached) " >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <machine/vmparam.h>
19587 #include <sys/exec.h>
19592 PS_STRINGS->ps_nargvstr = 1;
19593 PS_STRINGS->ps_argvstr = "foo";
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606 (eval "$ac_link") 2>conftest.er1
19608 grep -v '^ *+' conftest.er1 >conftest.err
19610 cat conftest.err >&5
19611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext && {
19616 test "$cross_compiling" = yes ||
19617 $as_test_x conftest$ac_exeext
19619 pgac_cv_var_PS_STRINGS=yes
19621 $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 pgac_cv_var_PS_STRINGS=no
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19631 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19632 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19633 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19635 cat >>confdefs.h <<\_ACEOF
19636 #define HAVE_PS_STRINGS /**/
19642 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19643 # is missing. Yes, there are machines that have only one. We may
19644 # also decide to use snprintf.c if snprintf() is present but does not
19645 # have all the features we need --- see below.
19647 if test "$PORTNAME" = "win32"; then
19648 # Win32 gets snprintf.c built unconditionally.
19650 # To properly translate all NLS languages strings, we must support the
19651 # *printf() %$ format, which allows *printf() arguments to be selected
19652 # by position in the translated string.
19654 # libintl versions < 0.13 use the native *printf() functions, and Win32
19655 # *printf() doesn't understand %$, so we must use our /port versions,
19656 # which do understand %$. libintl versions >= 0.13 include their own
19657 # *printf versions on Win32. The libintl 0.13 release note text is:
19659 # C format strings with positions, as they arise when a translator
19660 # needs to reorder a sentence, are now supported on all platforms.
19661 # On those few platforms (NetBSD and Woe32) for which the native
19662 # printf()/fprintf()/... functions don't support such format
19663 # strings, replacements are provided through <libintl.h>.
19665 # We could use libintl >= 0.13's *printf() if we were sure that we had
19666 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19667 # to guarantee that, it is best to just use our own, so we are sure to
19668 # get %$ support. In include/port.h we disable the *printf() macros
19669 # that might have been defined by libintl.
19671 # We do this unconditionally whether NLS is used or not so we are sure
19672 # that all Win32 libraries and binaries behave the same.
19673 pgac_need_repl_snprintf=yes
19675 pgac_need_repl_snprintf=no
19677 for ac_func in snprintf
19679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19681 $as_echo_n "checking for $ac_func... " >&6; }
19682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19683 $as_echo_n "(cached) " >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19693 #define $ac_func innocuous_$ac_func
19695 /* System header to define __stub macros and hopefully few prototypes,
19696 which can conflict with char $ac_func (); below.
19697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698 <limits.h> exists even on freestanding compilers. */
19701 # include <limits.h>
19703 # include <assert.h>
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19715 /* The GNU C library defines this for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined __stub_$ac_func || defined __stub___$ac_func
19725 return $ac_func ();
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext && {
19748 test "$cross_compiling" = yes ||
19749 $as_test_x conftest$ac_exeext
19751 eval "$as_ac_var=yes"
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 eval "$as_ac_var=no"
19759 rm -rf conftest.dSYM
19760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19761 conftest$ac_exeext conftest.$ac_ext
19763 ac_res=`eval 'as_val=${'$as_ac_var'}
19764 $as_echo "$as_val"'`
19765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19766 $as_echo "$ac_res" >&6; }
19767 as_val=`eval 'as_val=${'$as_ac_var'}
19768 $as_echo "$as_val"'`
19769 if test "x$as_val" = x""yes; then
19770 cat >>confdefs.h <<_ACEOF
19771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19775 pgac_need_repl_snprintf=yes
19780 for ac_func in vsnprintf
19782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 $as_echo_n "checking for $ac_func... " >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19786 $as_echo_n "(cached) " >&6
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19796 #define $ac_func innocuous_$ac_func
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func (); below.
19800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801 <limits.h> exists even on freestanding compilers. */
19804 # include <limits.h>
19806 # include <assert.h>
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19818 /* The GNU C library defines this for functions which it implements
19819 to always fail with ENOSYS. Some functions are actually named
19820 something starting with __ and the normal name is an alias. */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19828 return $ac_func ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_link") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext && {
19851 test "$cross_compiling" = yes ||
19852 $as_test_x conftest$ac_exeext
19854 eval "$as_ac_var=yes"
19856 $as_echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19862 rm -rf conftest.dSYM
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 ac_res=`eval 'as_val=${'$as_ac_var'}
19867 $as_echo "$as_val"'`
19868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19870 as_val=`eval 'as_val=${'$as_ac_var'}
19871 $as_echo "$as_val"'`
19872 if test "x$as_val" = x""yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19878 pgac_need_repl_snprintf=yes
19885 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19886 # include/c.h will provide declarations. Note this is a separate test
19887 # from whether the functions exist in the C library --- there are
19888 # systems that have the functions but don't bother to declare them :-(
19890 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19891 $as_echo_n "checking whether snprintf is declared... " >&6; }
19892 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19893 $as_echo_n "(cached) " >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_have_decl_snprintf=yes
19933 $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_have_decl_snprintf=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19942 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19943 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_DECL_SNPRINTF 1
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_DECL_SNPRINTF 0
19957 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19958 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19959 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19960 $as_echo_n "(cached) " >&6
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_compile") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest.$ac_objext; then
19998 ac_cv_have_decl_vsnprintf=yes
20000 $as_echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_have_decl_vsnprintf=no
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20009 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20010 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_VSNPRINTF 1
20018 cat >>confdefs.h <<_ACEOF
20019 #define HAVE_DECL_VSNPRINTF 0
20028 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20029 $as_echo_n "checking for isinf... " >&6; }
20030 if test "${ac_cv_func_isinf+set}" = set; then
20031 $as_echo_n "(cached) " >&6
20033 cat >conftest.$ac_ext <<_ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20041 double glob_double;
20046 return isinf(glob_double) ? 0 : 1;
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059 (eval "$ac_link") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest$ac_exeext && {
20069 test "$cross_compiling" = yes ||
20070 $as_test_x conftest$ac_exeext
20072 ac_cv_func_isinf=yes
20074 $as_echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_func_isinf=no
20080 rm -rf conftest.dSYM
20081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20082 conftest$ac_exeext conftest.$ac_ext
20084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20085 $as_echo "$ac_cv_func_isinf" >&6; }
20087 if test $ac_cv_func_isinf = yes ; then
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_ISINF 1
20094 case " $LIBOBJS " in
20095 *" isinf.$ac_objext "* ) ;;
20096 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20100 # Look for a way to implement a substitute for isinf()
20105 for ac_func in fpclass fp_class fp_class_d class
20107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20108 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20109 $as_echo_n "checking for $ac_func... " >&6; }
20110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20111 $as_echo_n "(cached) " >&6
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20121 #define $ac_func innocuous_$ac_func
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20129 # include <limits.h>
20131 # include <assert.h>
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20143 /* The GNU C library defines this for functions which it implements
20144 to always fail with ENOSYS. Some functions are actually named
20145 something starting with __ and the normal name is an alias. */
20146 #if defined __stub_$ac_func || defined __stub___$ac_func
20153 return $ac_func ();
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20165 $as_echo "$ac_try_echo") >&5
20166 (eval "$ac_link") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest$ac_exeext && {
20176 test "$cross_compiling" = yes ||
20177 $as_test_x conftest$ac_exeext
20179 eval "$as_ac_var=yes"
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 eval "$as_ac_var=no"
20187 rm -rf conftest.dSYM
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20191 ac_res=`eval 'as_val=${'$as_ac_var'}
20192 $as_echo "$as_val"'`
20193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20194 $as_echo "$ac_res" >&6; }
20195 as_val=`eval 'as_val=${'$as_ac_var'}
20196 $as_echo "$as_val"'`
20197 if test "x$as_val" = x""yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20207 # Some versions of libedit contain strlcpy(); so disregard that library while
20208 # checking for these standard libc functions.
20209 pgac_save_LIBS="$LIBS"
20210 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20226 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20229 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20230 $as_echo_n "checking for $ac_func... " >&6; }
20231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20232 $as_echo_n "(cached) " >&6
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20242 #define $ac_func innocuous_$ac_func
20244 /* System header to define __stub macros and hopefully few prototypes,
20245 which can conflict with char $ac_func (); below.
20246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247 <limits.h> exists even on freestanding compilers. */
20250 # include <limits.h>
20252 # include <assert.h>
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20264 /* The GNU C library defines this for functions which it implements
20265 to always fail with ENOSYS. Some functions are actually named
20266 something starting with __ and the normal name is an alias. */
20267 #if defined __stub_$ac_func || defined __stub___$ac_func
20274 return $ac_func ();
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287 (eval "$ac_link") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest$ac_exeext && {
20297 test "$cross_compiling" = yes ||
20298 $as_test_x conftest$ac_exeext
20300 eval "$as_ac_var=yes"
20302 $as_echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 eval "$as_ac_var=no"
20308 rm -rf conftest.dSYM
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310 conftest$ac_exeext conftest.$ac_ext
20312 ac_res=`eval 'as_val=${'$as_ac_var'}
20313 $as_echo "$as_val"'`
20314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20315 $as_echo "$ac_res" >&6; }
20316 as_val=`eval 'as_val=${'$as_ac_var'}
20317 $as_echo "$as_val"'`
20318 if test "x$as_val" = x""yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20324 case " $LIBOBJS " in
20325 *" $ac_func.$ac_objext "* ) ;;
20326 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20337 # Windows uses a specialised env handler
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_UNSETENV 1
20344 ac_cv_func_unsetenv=yes;;
20347 for ac_func in unsetenv
20349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20351 $as_echo_n "checking for $ac_func... " >&6; }
20352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20353 $as_echo_n "(cached) " >&6
20355 cat >conftest.$ac_ext <<_ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20363 #define $ac_func innocuous_$ac_func
20365 /* System header to define __stub macros and hopefully few prototypes,
20366 which can conflict with char $ac_func (); below.
20367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20368 <limits.h> exists even on freestanding compilers. */
20371 # include <limits.h>
20373 # include <assert.h>
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20385 /* The GNU C library defines this for functions which it implements
20386 to always fail with ENOSYS. Some functions are actually named
20387 something starting with __ and the normal name is an alias. */
20388 #if defined __stub_$ac_func || defined __stub___$ac_func
20395 return $ac_func ();
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20407 $as_echo "$ac_try_echo") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext && {
20418 test "$cross_compiling" = yes ||
20419 $as_test_x conftest$ac_exeext
20421 eval "$as_ac_var=yes"
20423 $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 eval "$as_ac_var=no"
20429 rm -rf conftest.dSYM
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20433 ac_res=`eval 'as_val=${'$as_ac_var'}
20434 $as_echo "$as_val"'`
20435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20436 $as_echo "$ac_res" >&6; }
20437 as_val=`eval 'as_val=${'$as_ac_var'}
20438 $as_echo "$as_val"'`
20439 if test "x$as_val" = x""yes; then
20440 cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20445 case " $LIBOBJS " in
20446 *" $ac_func.$ac_objext "* ) ;;
20447 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20459 LIBS="$pgac_save_LIBS"
20461 # System's version of getaddrinfo(), if any, may be used only if we found
20462 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20463 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20464 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20465 # because we want to use our own getaddrinfo.c on Windows anyway.)
20466 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20468 for ac_func in getaddrinfo
20470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20472 $as_echo_n "checking for $ac_func... " >&6; }
20473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20474 $as_echo_n "(cached) " >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20484 #define $ac_func innocuous_$ac_func
20486 /* System header to define __stub macros and hopefully few prototypes,
20487 which can conflict with char $ac_func (); below.
20488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20489 <limits.h> exists even on freestanding compilers. */
20492 # include <limits.h>
20494 # include <assert.h>
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20506 /* The GNU C library defines this for functions which it implements
20507 to always fail with ENOSYS. Some functions are actually named
20508 something starting with __ and the normal name is an alias. */
20509 #if defined __stub_$ac_func || defined __stub___$ac_func
20516 return $ac_func ();
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529 (eval "$ac_link") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest$ac_exeext && {
20539 test "$cross_compiling" = yes ||
20540 $as_test_x conftest$ac_exeext
20542 eval "$as_ac_var=yes"
20544 $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 eval "$as_ac_var=no"
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20554 ac_res=`eval 'as_val=${'$as_ac_var'}
20555 $as_echo "$as_val"'`
20556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20557 $as_echo "$ac_res" >&6; }
20558 as_val=`eval 'as_val=${'$as_ac_var'}
20559 $as_echo "$as_val"'`
20560 if test "x$as_val" = x""yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20566 case " $LIBOBJS " in
20567 *" $ac_func.$ac_objext "* ) ;;
20568 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20577 case " $LIBOBJS " in
20578 *" getaddrinfo.$ac_objext "* ) ;;
20579 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20585 # Similarly, use system's getopt_long() only if system provides struct option.
20586 if test x"$ac_cv_type_struct_option" = xyes ; then
20588 for ac_func in getopt_long
20590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20592 $as_echo_n "checking for $ac_func... " >&6; }
20593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594 $as_echo_n "(cached) " >&6
20596 cat >conftest.$ac_ext <<_ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604 #define $ac_func innocuous_$ac_func
20606 /* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
20612 # include <limits.h>
20614 # include <assert.h>
20619 /* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20626 /* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20636 return $ac_func ();
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20648 $as_echo "$ac_try_echo") >&5
20649 (eval "$ac_link") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest$ac_exeext && {
20659 test "$cross_compiling" = yes ||
20660 $as_test_x conftest$ac_exeext
20662 eval "$as_ac_var=yes"
20664 $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 eval "$as_ac_var=no"
20670 rm -rf conftest.dSYM
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20674 ac_res=`eval 'as_val=${'$as_ac_var'}
20675 $as_echo "$as_val"'`
20676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20677 $as_echo "$ac_res" >&6; }
20678 as_val=`eval 'as_val=${'$as_ac_var'}
20679 $as_echo "$as_val"'`
20680 if test "x$as_val" = x""yes; then
20681 cat >>confdefs.h <<_ACEOF
20682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20686 case " $LIBOBJS " in
20687 *" $ac_func.$ac_objext "* ) ;;
20688 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20697 case " $LIBOBJS " in
20698 *" getopt_long.$ac_objext "* ) ;;
20699 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20705 # Solaris' getopt() doesn't do what we want for long options, so always use
20706 # our version on that platform.
20707 if test "$PORTNAME" = "solaris"; then
20708 case " $LIBOBJS " in
20709 *" getopt.$ac_objext "* ) ;;
20710 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20716 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20717 # so always use our version on Windows.
20718 if test "$PORTNAME" = "win32"; then
20719 case " $LIBOBJS " in
20720 *" getopt.$ac_objext "* ) ;;
20721 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20725 case " $LIBOBJS " in
20726 *" getopt_long.$ac_objext "* ) ;;
20727 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20733 # Cygwin's erand48() is broken (always returns zero) in some releases,
20734 # so force use of ours.
20735 if test "$PORTNAME" = "cygwin"; then
20736 case " $LIBOBJS " in
20737 *" erand48.$ac_objext "* ) ;;
20738 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20745 if test "$PORTNAME" = "win32"; then
20747 for ac_func in gettimeofday
20749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20750 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20751 $as_echo_n "checking for $ac_func... " >&6; }
20752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20753 $as_echo_n "(cached) " >&6
20755 cat >conftest.$ac_ext <<_ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20763 #define $ac_func innocuous_$ac_func
20765 /* System header to define __stub macros and hopefully few prototypes,
20766 which can conflict with char $ac_func (); below.
20767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20768 <limits.h> exists even on freestanding compilers. */
20771 # include <limits.h>
20773 # include <assert.h>
20778 /* Override any GCC internal prototype to avoid an error.
20779 Use char because int might match the return type of a GCC
20780 builtin and then its argument prototype would still apply. */
20785 /* The GNU C library defines this for functions which it implements
20786 to always fail with ENOSYS. Some functions are actually named
20787 something starting with __ and the normal name is an alias. */
20788 #if defined __stub_$ac_func || defined __stub___$ac_func
20795 return $ac_func ();
20800 rm -f conftest.$ac_objext conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20807 $as_echo "$ac_try_echo") >&5
20808 (eval "$ac_link") 2>conftest.er1
20810 grep -v '^ *+' conftest.er1 >conftest.err
20812 cat conftest.err >&5
20813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } && {
20815 test -z "$ac_c_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest$ac_exeext && {
20818 test "$cross_compiling" = yes ||
20819 $as_test_x conftest$ac_exeext
20821 eval "$as_ac_var=yes"
20823 $as_echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 eval "$as_ac_var=no"
20829 rm -rf conftest.dSYM
20830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20831 conftest$ac_exeext conftest.$ac_ext
20833 ac_res=`eval 'as_val=${'$as_ac_var'}
20834 $as_echo "$as_val"'`
20835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20836 $as_echo "$ac_res" >&6; }
20837 as_val=`eval 'as_val=${'$as_ac_var'}
20838 $as_echo "$as_val"'`
20839 if test "x$as_val" = x""yes; then
20840 cat >>confdefs.h <<_ACEOF
20841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20845 case " $LIBOBJS " in
20846 *" $ac_func.$ac_objext "* ) ;;
20847 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20855 case " $LIBOBJS " in
20856 *" kill.$ac_objext "* ) ;;
20857 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20861 case " $LIBOBJS " in
20862 *" open.$ac_objext "* ) ;;
20863 *) LIBOBJS="$LIBOBJS open.$ac_objext"
20867 case " $LIBOBJS " in
20868 *" win32env.$ac_objext "* ) ;;
20869 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20873 case " $LIBOBJS " in
20874 *" win32error.$ac_objext "* ) ;;
20875 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20880 cat >>confdefs.h <<\_ACEOF
20881 #define HAVE_SYMLINK 1
20886 if test "$with_readline" = yes; then
20887 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20888 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20896 #ifdef HAVE_READLINE_READLINE_H
20897 # include <readline/readline.h>
20898 #elif defined(HAVE_READLINE_H)
20899 # include <readline.h>
20905 rl_completion_append_character = 'x';
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (ac_try="$ac_link"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20917 $as_echo "$ac_try_echo") >&5
20918 (eval "$ac_link") 2>conftest.er1
20920 grep -v '^ *+' conftest.er1 >conftest.err
20922 cat conftest.err >&5
20923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest$ac_exeext && {
20928 test "$cross_compiling" = yes ||
20929 $as_test_x conftest$ac_exeext
20931 { $as_echo "$as_me:$LINENO: result: yes" >&5
20932 $as_echo "yes" >&6; }
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20939 $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 { $as_echo "$as_me:$LINENO: result: no" >&5
20943 $as_echo "no" >&6; }
20946 rm -rf conftest.dSYM
20947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20948 conftest$ac_exeext conftest.$ac_ext
20951 for ac_func in rl_completion_matches rl_filename_completion_function
20953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20955 $as_echo_n "checking for $ac_func... " >&6; }
20956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20957 $as_echo_n "(cached) " >&6
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20967 #define $ac_func innocuous_$ac_func
20969 /* System header to define __stub macros and hopefully few prototypes,
20970 which can conflict with char $ac_func (); below.
20971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20972 <limits.h> exists even on freestanding compilers. */
20975 # include <limits.h>
20977 # include <assert.h>
20982 /* Override any GCC internal prototype to avoid an error.
20983 Use char because int might match the return type of a GCC
20984 builtin and then its argument prototype would still apply. */
20989 /* The GNU C library defines this for functions which it implements
20990 to always fail with ENOSYS. Some functions are actually named
20991 something starting with __ and the normal name is an alias. */
20992 #if defined __stub_$ac_func || defined __stub___$ac_func
20999 return $ac_func ();
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21011 $as_echo "$ac_try_echo") >&5
21012 (eval "$ac_link") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest$ac_exeext && {
21022 test "$cross_compiling" = yes ||
21023 $as_test_x conftest$ac_exeext
21025 eval "$as_ac_var=yes"
21027 $as_echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 eval "$as_ac_var=no"
21033 rm -rf conftest.dSYM
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035 conftest$ac_exeext conftest.$ac_ext
21037 ac_res=`eval 'as_val=${'$as_ac_var'}
21038 $as_echo "$as_val"'`
21039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21040 $as_echo "$ac_res" >&6; }
21041 as_val=`eval 'as_val=${'$as_ac_var'}
21042 $as_echo "$as_val"'`
21043 if test "x$as_val" = x""yes; then
21044 cat >>confdefs.h <<_ACEOF
21045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21053 for ac_func in append_history history_truncate_file
21055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21056 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21057 $as_echo_n "checking for $ac_func... " >&6; }
21058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21059 $as_echo_n "(cached) " >&6
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21069 #define $ac_func innocuous_$ac_func
21071 /* System header to define __stub macros and hopefully few prototypes,
21072 which can conflict with char $ac_func (); below.
21073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21074 <limits.h> exists even on freestanding compilers. */
21077 # include <limits.h>
21079 # include <assert.h>
21084 /* Override any GCC internal prototype to avoid an error.
21085 Use char because int might match the return type of a GCC
21086 builtin and then its argument prototype would still apply. */
21091 /* The GNU C library defines this for functions which it implements
21092 to always fail with ENOSYS. Some functions are actually named
21093 something starting with __ and the normal name is an alias. */
21094 #if defined __stub_$ac_func || defined __stub___$ac_func
21101 return $ac_func ();
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113 $as_echo "$ac_try_echo") >&5
21114 (eval "$ac_link") 2>conftest.er1
21116 grep -v '^ *+' conftest.er1 >conftest.err
21118 cat conftest.err >&5
21119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && {
21121 test -z "$ac_c_werror_flag" ||
21122 test ! -s conftest.err
21123 } && test -s conftest$ac_exeext && {
21124 test "$cross_compiling" = yes ||
21125 $as_test_x conftest$ac_exeext
21127 eval "$as_ac_var=yes"
21129 $as_echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 eval "$as_ac_var=no"
21135 rm -rf conftest.dSYM
21136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21137 conftest$ac_exeext conftest.$ac_ext
21139 ac_res=`eval 'as_val=${'$as_ac_var'}
21140 $as_echo "$as_val"'`
21141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21142 $as_echo "$ac_res" >&6; }
21143 as_val=`eval 'as_val=${'$as_ac_var'}
21144 $as_echo "$as_val"'`
21145 if test "x$as_val" = x""yes; then
21146 cat >>confdefs.h <<_ACEOF
21147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21156 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21157 $as_echo_n "checking for sigsetjmp... " >&6; }
21158 cat >conftest.$ac_ext <<_ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 #include <setjmp.h>
21168 sigjmp_buf x; sigsetjmp(x, 1);
21173 rm -f conftest.$ac_objext conftest$ac_exeext
21174 if { (ac_try="$ac_link"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21180 $as_echo "$ac_try_echo") >&5
21181 (eval "$ac_link") 2>conftest.er1
21183 grep -v '^ *+' conftest.er1 >conftest.err
21185 cat conftest.err >&5
21186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && {
21188 test -z "$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 } && test -s conftest$ac_exeext && {
21191 test "$cross_compiling" = yes ||
21192 $as_test_x conftest$ac_exeext
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_SIGSETJMP 1
21199 { $as_echo "$as_me:$LINENO: result: yes" >&5
21200 $as_echo "yes" >&6; }
21202 $as_echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 { $as_echo "$as_me:$LINENO: result: no" >&5
21206 $as_echo "no" >&6; }
21209 rm -rf conftest.dSYM
21210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21211 conftest$ac_exeext conftest.$ac_ext
21213 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21214 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21215 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21216 $as_echo_n "(cached) " >&6
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <signal.h>
21225 /* NetBSD declares sys_siglist in unistd.h. */
21226 #ifdef HAVE_UNISTD_H
21227 # include <unistd.h>
21234 #ifndef sys_siglist
21235 (void) sys_siglist;
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21249 $as_echo "$ac_try_echo") >&5
21250 (eval "$ac_compile") 2>conftest.er1
21252 grep -v '^ *+' conftest.er1 >conftest.err
21254 cat conftest.err >&5
21255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } && {
21257 test -z "$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 } && test -s conftest.$ac_objext; then
21260 ac_cv_have_decl_sys_siglist=yes
21262 $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 ac_cv_have_decl_sys_siglist=no
21268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21271 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21272 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21274 cat >>confdefs.h <<_ACEOF
21275 #define HAVE_DECL_SYS_SIGLIST 1
21280 cat >>confdefs.h <<_ACEOF
21281 #define HAVE_DECL_SYS_SIGLIST 0
21290 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21291 $as_echo_n "checking for syslog... " >&6; }
21292 if test "${ac_cv_func_syslog+set}" = set; then
21293 $as_echo_n "(cached) " >&6
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21303 #define syslog innocuous_syslog
21305 /* System header to define __stub macros and hopefully few prototypes,
21306 which can conflict with char syslog (); below.
21307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308 <limits.h> exists even on freestanding compilers. */
21311 # include <limits.h>
21313 # include <assert.h>
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21325 /* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328 #if defined __stub_syslog || defined __stub___syslog
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21347 $as_echo "$ac_try_echo") >&5
21348 (eval "$ac_link") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest$ac_exeext && {
21358 test "$cross_compiling" = yes ||
21359 $as_test_x conftest$ac_exeext
21361 ac_cv_func_syslog=yes
21363 $as_echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 ac_cv_func_syslog=no
21369 rm -rf conftest.dSYM
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371 conftest$ac_exeext conftest.$ac_ext
21373 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21374 $as_echo "$ac_cv_func_syslog" >&6; }
21375 if test "x$ac_cv_func_syslog" = x""yes; then
21376 if test "${ac_cv_header_syslog_h+set}" = set; then
21377 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21378 $as_echo_n "checking for syslog.h... " >&6; }
21379 if test "${ac_cv_header_syslog_h+set}" = set; then
21380 $as_echo_n "(cached) " >&6
21382 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21383 $as_echo "$ac_cv_header_syslog_h" >&6; }
21385 # Is the header compilable?
21386 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21387 $as_echo_n "checking syslog.h usability... " >&6; }
21388 cat >conftest.$ac_ext <<_ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 $ac_includes_default
21395 #include <syslog.h>
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21404 $as_echo "$ac_try_echo") >&5
21405 (eval "$ac_compile") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest.$ac_objext; then
21415 ac_header_compiler=yes
21417 $as_echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_header_compiler=no
21423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21424 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21425 $as_echo "$ac_header_compiler" >&6; }
21427 # Is the header present?
21428 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21429 $as_echo_n "checking syslog.h presence... " >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 #include <syslog.h>
21438 if { (ac_try="$ac_cpp conftest.$ac_ext"
21439 case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21444 $as_echo "$ac_try_echo") >&5
21445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21447 grep -v '^ *+' conftest.er1 >conftest.err
21449 cat conftest.err >&5
21450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } >/dev/null && {
21452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21455 ac_header_preproc=yes
21457 $as_echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 ac_header_preproc=no
21463 rm -f conftest.err conftest.$ac_ext
21464 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21465 $as_echo "$ac_header_preproc" >&6; }
21467 # So? What about this header?
21468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21470 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21471 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21472 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21473 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21474 ac_header_preproc=yes
21477 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21478 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21479 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21480 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21481 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21482 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21483 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21484 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21485 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21486 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21487 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21488 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21490 ## ---------------------------------------- ##
21491 ## Report this to pgsql-bugs@postgresql.org ##
21492 ## ---------------------------------------- ##
21494 ) | sed "s/^/$as_me: WARNING: /" >&2
21497 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21498 $as_echo_n "checking for syslog.h... " >&6; }
21499 if test "${ac_cv_header_syslog_h+set}" = set; then
21500 $as_echo_n "(cached) " >&6
21502 ac_cv_header_syslog_h=$ac_header_preproc
21504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21505 $as_echo "$ac_cv_header_syslog_h" >&6; }
21508 if test "x$ac_cv_header_syslog_h" = x""yes; then
21510 cat >>confdefs.h <<\_ACEOF
21511 #define HAVE_SYSLOG 1
21520 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21521 $as_echo_n "checking for opterr... " >&6; }
21522 if test "${pgac_cv_var_int_opterr+set}" = set; then
21523 $as_echo_n "(cached) " >&6
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 #include <unistd.h>
21535 extern int opterr; opterr = 1;
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21547 $as_echo "$ac_try_echo") >&5
21548 (eval "$ac_link") 2>conftest.er1
21550 grep -v '^ *+' conftest.er1 >conftest.err
21552 cat conftest.err >&5
21553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } && {
21555 test -z "$ac_c_werror_flag" ||
21556 test ! -s conftest.err
21557 } && test -s conftest$ac_exeext && {
21558 test "$cross_compiling" = yes ||
21559 $as_test_x conftest$ac_exeext
21561 pgac_cv_var_int_opterr=yes
21563 $as_echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 pgac_cv_var_int_opterr=no
21569 rm -rf conftest.dSYM
21570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21571 conftest$ac_exeext conftest.$ac_ext
21573 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21574 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21575 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21577 cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_INT_OPTERR 1
21583 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21584 $as_echo_n "checking for optreset... " >&6; }
21585 if test "${pgac_cv_var_int_optreset+set}" = set; then
21586 $as_echo_n "(cached) " >&6
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <unistd.h>
21598 extern int optreset; optreset = 1;
21603 rm -f conftest.$ac_objext conftest$ac_exeext
21604 if { (ac_try="$ac_link"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21610 $as_echo "$ac_try_echo") >&5
21611 (eval "$ac_link") 2>conftest.er1
21613 grep -v '^ *+' conftest.er1 >conftest.err
21615 cat conftest.err >&5
21616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } && {
21618 test -z "$ac_c_werror_flag" ||
21619 test ! -s conftest.err
21620 } && test -s conftest$ac_exeext && {
21621 test "$cross_compiling" = yes ||
21622 $as_test_x conftest$ac_exeext
21624 pgac_cv_var_int_optreset=yes
21626 $as_echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 pgac_cv_var_int_optreset=no
21632 rm -rf conftest.dSYM
21633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21634 conftest$ac_exeext conftest.$ac_ext
21636 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21637 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21638 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21640 cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_INT_OPTRESET 1
21648 for ac_func in strtoll strtoq
21650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21652 $as_echo_n "checking for $ac_func... " >&6; }
21653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21654 $as_echo_n "(cached) " >&6
21656 cat >conftest.$ac_ext <<_ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21664 #define $ac_func innocuous_$ac_func
21666 /* System header to define __stub macros and hopefully few prototypes,
21667 which can conflict with char $ac_func (); below.
21668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21669 <limits.h> exists even on freestanding compilers. */
21672 # include <limits.h>
21674 # include <assert.h>
21679 /* Override any GCC internal prototype to avoid an error.
21680 Use char because int might match the return type of a GCC
21681 builtin and then its argument prototype would still apply. */
21686 /* The GNU C library defines this for functions which it implements
21687 to always fail with ENOSYS. Some functions are actually named
21688 something starting with __ and the normal name is an alias. */
21689 #if defined __stub_$ac_func || defined __stub___$ac_func
21696 return $ac_func ();
21701 rm -f conftest.$ac_objext conftest$ac_exeext
21702 if { (ac_try="$ac_link"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21708 $as_echo "$ac_try_echo") >&5
21709 (eval "$ac_link") 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && {
21716 test -z "$ac_c_werror_flag" ||
21717 test ! -s conftest.err
21718 } && test -s conftest$ac_exeext && {
21719 test "$cross_compiling" = yes ||
21720 $as_test_x conftest$ac_exeext
21722 eval "$as_ac_var=yes"
21724 $as_echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 eval "$as_ac_var=no"
21730 rm -rf conftest.dSYM
21731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21732 conftest$ac_exeext conftest.$ac_ext
21734 ac_res=`eval 'as_val=${'$as_ac_var'}
21735 $as_echo "$as_val"'`
21736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21737 $as_echo "$ac_res" >&6; }
21738 as_val=`eval 'as_val=${'$as_ac_var'}
21739 $as_echo "$as_val"'`
21740 if test "x$as_val" = x""yes; then
21741 cat >>confdefs.h <<_ACEOF
21742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21750 for ac_func in strtoull strtouq
21752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21754 $as_echo_n "checking for $ac_func... " >&6; }
21755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21756 $as_echo_n "(cached) " >&6
21758 cat >conftest.$ac_ext <<_ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21766 #define $ac_func innocuous_$ac_func
21768 /* System header to define __stub macros and hopefully few prototypes,
21769 which can conflict with char $ac_func (); below.
21770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771 <limits.h> exists even on freestanding compilers. */
21774 # include <limits.h>
21776 # include <assert.h>
21781 /* Override any GCC internal prototype to avoid an error.
21782 Use char because int might match the return type of a GCC
21783 builtin and then its argument prototype would still apply. */
21788 /* The GNU C library defines this for functions which it implements
21789 to always fail with ENOSYS. Some functions are actually named
21790 something starting with __ and the normal name is an alias. */
21791 #if defined __stub_$ac_func || defined __stub___$ac_func
21798 return $ac_func ();
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21810 $as_echo "$ac_try_echo") >&5
21811 (eval "$ac_link") 2>conftest.er1
21813 grep -v '^ *+' conftest.er1 >conftest.err
21815 cat conftest.err >&5
21816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && {
21818 test -z "$ac_c_werror_flag" ||
21819 test ! -s conftest.err
21820 } && test -s conftest$ac_exeext && {
21821 test "$cross_compiling" = yes ||
21822 $as_test_x conftest$ac_exeext
21824 eval "$as_ac_var=yes"
21826 $as_echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 eval "$as_ac_var=no"
21832 rm -rf conftest.dSYM
21833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21834 conftest$ac_exeext conftest.$ac_ext
21836 ac_res=`eval 'as_val=${'$as_ac_var'}
21837 $as_echo "$as_val"'`
21838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21839 $as_echo "$ac_res" >&6; }
21840 as_val=`eval 'as_val=${'$as_ac_var'}
21841 $as_echo "$as_val"'`
21842 if test "x$as_val" = x""yes; then
21843 cat >>confdefs.h <<_ACEOF
21844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21851 # Check for one of atexit() or on_exit()
21853 for ac_func in atexit
21855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21857 $as_echo_n "checking for $ac_func... " >&6; }
21858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21859 $as_echo_n "(cached) " >&6
21861 cat >conftest.$ac_ext <<_ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21869 #define $ac_func innocuous_$ac_func
21871 /* System header to define __stub macros and hopefully few prototypes,
21872 which can conflict with char $ac_func (); below.
21873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21874 <limits.h> exists even on freestanding compilers. */
21877 # include <limits.h>
21879 # include <assert.h>
21884 /* Override any GCC internal prototype to avoid an error.
21885 Use char because int might match the return type of a GCC
21886 builtin and then its argument prototype would still apply. */
21891 /* The GNU C library defines this for functions which it implements
21892 to always fail with ENOSYS. Some functions are actually named
21893 something starting with __ and the normal name is an alias. */
21894 #if defined __stub_$ac_func || defined __stub___$ac_func
21901 return $ac_func ();
21906 rm -f conftest.$ac_objext conftest$ac_exeext
21907 if { (ac_try="$ac_link"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21913 $as_echo "$ac_try_echo") >&5
21914 (eval "$ac_link") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest$ac_exeext && {
21924 test "$cross_compiling" = yes ||
21925 $as_test_x conftest$ac_exeext
21927 eval "$as_ac_var=yes"
21929 $as_echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21932 eval "$as_ac_var=no"
21935 rm -rf conftest.dSYM
21936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21937 conftest$ac_exeext conftest.$ac_ext
21939 ac_res=`eval 'as_val=${'$as_ac_var'}
21940 $as_echo "$as_val"'`
21941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21942 $as_echo "$ac_res" >&6; }
21943 as_val=`eval 'as_val=${'$as_ac_var'}
21944 $as_echo "$as_val"'`
21945 if test "x$as_val" = x""yes; then
21946 cat >>confdefs.h <<_ACEOF
21947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21952 for ac_func in on_exit
21954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21955 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21956 $as_echo_n "checking for $ac_func... " >&6; }
21957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21958 $as_echo_n "(cached) " >&6
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21968 #define $ac_func innocuous_$ac_func
21970 /* System header to define __stub macros and hopefully few prototypes,
21971 which can conflict with char $ac_func (); below.
21972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973 <limits.h> exists even on freestanding compilers. */
21976 # include <limits.h>
21978 # include <assert.h>
21983 /* Override any GCC internal prototype to avoid an error.
21984 Use char because int might match the return type of a GCC
21985 builtin and then its argument prototype would still apply. */
21990 /* The GNU C library defines this for functions which it implements
21991 to always fail with ENOSYS. Some functions are actually named
21992 something starting with __ and the normal name is an alias. */
21993 #if defined __stub_$ac_func || defined __stub___$ac_func
22000 return $ac_func ();
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22012 $as_echo "$ac_try_echo") >&5
22013 (eval "$ac_link") 2>conftest.er1
22015 grep -v '^ *+' conftest.er1 >conftest.err
22017 cat conftest.err >&5
22018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest$ac_exeext && {
22023 test "$cross_compiling" = yes ||
22024 $as_test_x conftest$ac_exeext
22026 eval "$as_ac_var=yes"
22028 $as_echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 eval "$as_ac_var=no"
22034 rm -rf conftest.dSYM
22035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22036 conftest$ac_exeext conftest.$ac_ext
22038 ac_res=`eval 'as_val=${'$as_ac_var'}
22039 $as_echo "$as_val"'`
22040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22041 $as_echo "$ac_res" >&6; }
22042 as_val=`eval 'as_val=${'$as_ac_var'}
22043 $as_echo "$as_val"'`
22044 if test "x$as_val" = x""yes; then
22045 cat >>confdefs.h <<_ACEOF
22046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22050 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22051 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22052 { (exit 1); exit 1; }; }
22064 # For each platform, we need to know about any special compile and link
22065 # libraries, and whether the normal C function names are thread-safe.
22066 # See the comment at the top of src/port/thread.c for more information.
22067 # WIN32 doesn't need the pthread tests; it always uses threads
22068 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22073 ac_cpp='$CPP $CPPFLAGS'
22074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22080 # We used to check for pthread.h first, but this fails if pthread.h
22081 # requires special compiler flags (e.g. on True64 or Sequent).
22082 # It gets checked for in the link test anyway.
22084 # First of all, check if the user has set any of the PTHREAD_LIBS,
22085 # etcetera environment variables, and if threads linking works using
22087 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22088 save_CFLAGS="$CFLAGS"
22089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22091 LIBS="$PTHREAD_LIBS $LIBS"
22092 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22093 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22094 cat >conftest.$ac_ext <<_ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h. */
22101 /* Override any GCC internal prototype to avoid an error.
22102 Use char because int might match the return type of a GCC
22103 builtin and then its argument prototype would still apply. */
22107 char pthread_join ();
22111 return pthread_join ();
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123 $as_echo "$ac_try_echo") >&5
22124 (eval "$ac_link") 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } && {
22131 test -z "$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 } && test -s conftest$ac_exeext && {
22134 test "$cross_compiling" = yes ||
22135 $as_test_x conftest$ac_exeext
22139 $as_echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22145 rm -rf conftest.dSYM
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22148 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22149 $as_echo "$acx_pthread_ok" >&6; }
22150 if test x"$acx_pthread_ok" = xno; then
22155 CFLAGS="$save_CFLAGS"
22158 # We must check for the threads library under a number of different
22159 # names; the ordering is very important because some systems
22160 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22161 # libraries is broken (non-POSIX).
22163 # Create a list of thread flags to try. Items starting with a "-" are
22164 # C compiler flags, and other items are library names, except for "none"
22165 # which indicates that we try without any flags at all, and "pthread-config"
22166 # which is a program returning the flags for the Pth emulation library.
22168 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22170 # The ordering *is* (sometimes) important. Some notes on the
22171 # individual items follow:
22173 # pthreads: AIX (must check this before -lpthread)
22174 # none: in case threads are in libc; should be tried before -Kthread and
22175 # other compiler flags to prevent continual compiler warnings
22176 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22177 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22178 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22179 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22180 # -pthreads: Solaris/gcc
22181 # -mthreads: Mingw32/gcc, Lynx/gcc
22182 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22183 # doesn't hurt to check since this sometimes defines pthreads too;
22184 # also defines -D_REENTRANT)
22185 # pthread: Linux, etcetera
22186 # --thread-safe: KAI C++
22187 # pthread-config: use pthread-config program (for GNU Pth library)
22189 case "${host_cpu}-${host_os}" in
22192 # On Solaris (at least, for some versions), libc contains stubbed
22193 # (non-functional) versions of the pthreads routines, so link-based
22194 # tests will erroneously succeed. (We need to link with -pthread or
22195 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22196 # a function called by this macro, so we could check for that, but
22197 # who knows whether they'll stub that too in a future libc.) So,
22198 # we'll just look for -pthreads and -lpthread first:
22200 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22204 if test x"$acx_pthread_ok" = xno; then
22205 for flag in $acx_pthread_flags; do
22207 tryPTHREAD_CFLAGS=""
22211 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22212 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22216 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22217 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22218 tryPTHREAD_CFLAGS="$flag"
22222 # skip this if we already have flags defined, for PostgreSQL
22223 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22224 # Extract the first word of "pthread-config", so it can be a program name with args.
22225 set dummy pthread-config; ac_word=$2
22226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22227 $as_echo_n "checking for $ac_word... " >&6; }
22228 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22229 $as_echo_n "(cached) " >&6
22231 if test -n "$acx_pthread_config"; then
22232 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22235 for as_dir in $PATH
22238 test -z "$as_dir" && as_dir=.
22239 for ac_exec_ext in '' $ac_executable_extensions; do
22240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22241 ac_cv_prog_acx_pthread_config="yes"
22242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22249 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22252 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22253 if test -n "$acx_pthread_config"; then
22254 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22255 $as_echo "$acx_pthread_config" >&6; }
22257 { $as_echo "$as_me:$LINENO: result: no" >&5
22258 $as_echo "no" >&6; }
22262 if test x"$acx_pthread_config" = xno; then continue; fi
22263 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22264 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22268 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22269 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22270 tryPTHREAD_LIBS="-l$flag"
22275 save_CFLAGS="$CFLAGS"
22276 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22277 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22279 # Check for various functions. We must include pthread.h,
22280 # since some functions may be macros. (On the Sequent, we
22281 # need a special flag -Kthread to make this header compile.)
22282 # We check for pthread_join because it is in -lpthread on IRIX
22283 # while pthread_create is in libc. We check for pthread_attr_init
22284 # due to DEC craziness with -lpthreads. We check for
22285 # pthread_cleanup_push because it is one of the few pthread
22286 # functions on Solaris that doesn't have a non-functional libc stub.
22287 # We try pthread_create on general principles.
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <pthread.h>
22298 pthread_t th; pthread_join(th, 0);
22299 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22300 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22305 rm -f conftest.$ac_objext conftest$ac_exeext
22306 if { (ac_try="$ac_link"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22312 $as_echo "$ac_try_echo") >&5
22313 (eval "$ac_link") 2>conftest.er1
22315 grep -v '^ *+' conftest.er1 >conftest.err
22317 cat conftest.err >&5
22318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } && {
22320 test -z "$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22322 } && test -s conftest$ac_exeext && {
22323 test "$cross_compiling" = yes ||
22324 $as_test_x conftest$ac_exeext
22328 $as_echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22334 rm -rf conftest.dSYM
22335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22336 conftest$ac_exeext conftest.$ac_ext
22338 if test "x$acx_pthread_ok" = xyes; then
22339 # Don't use options that are ignored by the compiler.
22340 # We find them by checking stderror.
22341 cat >conftest.$ac_ext <<_ACEOF
22343 main (int argc, char **argv)
22350 rm -f conftest.$ac_objext conftest$ac_exeext
22351 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22352 # we continue with more flags because Linux needs -lpthread
22353 # for libpq builds on PostgreSQL. The test above only
22354 # tests for building binaries, not shared libraries.
22355 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22356 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22357 else acx_pthread_ok=no
22362 CFLAGS="$save_CFLAGS"
22364 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22365 $as_echo "$acx_pthread_ok" >&6; }
22369 # Various other checks:
22370 if test "x$acx_pthread_ok" = xyes; then
22372 LIBS="$PTHREAD_LIBS $LIBS"
22373 save_CFLAGS="$CFLAGS"
22374 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22376 # Detect AIX lossage: threads are created detached by default
22377 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22378 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22379 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 #include <pthread.h>
22390 int attr=PTHREAD_CREATE_JOINABLE;
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22402 $as_echo "$ac_try_echo") >&5
22403 (eval "$ac_link") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1 >conftest.err
22407 cat conftest.err >&5
22408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest$ac_exeext && {
22413 test "$cross_compiling" = yes ||
22414 $as_test_x conftest$ac_exeext
22416 ok=PTHREAD_CREATE_JOINABLE
22418 $as_echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22424 rm -rf conftest.dSYM
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 if test x"$ok" = xunknown; then
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 #include <pthread.h>
22438 int attr=PTHREAD_CREATE_UNDETACHED;
22443 rm -f conftest.$ac_objext conftest$ac_exeext
22444 if { (ac_try="$ac_link"
22445 case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22450 $as_echo "$ac_try_echo") >&5
22451 (eval "$ac_link") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest$ac_exeext && {
22461 test "$cross_compiling" = yes ||
22462 $as_test_x conftest$ac_exeext
22464 ok=PTHREAD_CREATE_UNDETACHED
22466 $as_echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22472 rm -rf conftest.dSYM
22473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22474 conftest$ac_exeext conftest.$ac_ext
22476 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22478 cat >>confdefs.h <<\_ACEOF
22479 #define PTHREAD_CREATE_JOINABLE $ok
22483 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22484 $as_echo "${ok}" >&6; }
22485 if test x"$ok" = xunknown; then
22486 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22487 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22490 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22491 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22493 # We always add these in PostgreSQL
22494 # case "${host_cpu}-${host_os}" in
22495 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22496 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22498 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22499 $as_echo "${flag}" >&6; }
22500 if test "x$flag" != xno; then
22501 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22505 CFLAGS="$save_CFLAGS"
22507 # Supporting cc_r would require a special CC in all places that
22508 # use libpq, and that is ugly, so we don't do it. Users can still
22509 # define their compiler as cc_r to do thread builds of everything.
22510 # More AIX lossage: must compile with cc_r
22511 # Extract the first word of "cc_r", so it can be a program name with args.
22512 set dummy cc_r; ac_word=$2
22513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22514 $as_echo_n "checking for $ac_word... " >&6; }
22515 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22516 $as_echo_n "(cached) " >&6
22518 if test -n "$PTHREAD_CC"; then
22519 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22522 for as_dir in $PATH
22525 test -z "$as_dir" && as_dir=.
22526 for ac_exec_ext in '' $ac_executable_extensions; do
22527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22528 ac_cv_prog_PTHREAD_CC="cc_r"
22529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22536 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22539 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22540 if test -n "$PTHREAD_CC"; then
22541 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22542 $as_echo "$PTHREAD_CC" >&6; }
22544 { $as_echo "$as_me:$LINENO: result: no" >&5
22545 $as_echo "no" >&6; }
22557 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22558 if test x"$acx_pthread_ok" = xyes; then
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_PTHREAD 1
22570 ac_cpp='$CPP $CPPFLAGS'
22571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22577 # Some platforms use these, so just define them. They can't hurt if they
22578 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22579 # enables 5-arg getpwuid_r, among other things.
22580 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22583 # At this point, we don't want to muck with the compiler name for threading.
22584 # Let's see who fails, perhaps AIX. 2004-04-23
22585 if test "$PTHREAD_CC" != "$CC"; then
22586 { { $as_echo "$as_me:$LINENO: error:
22587 PostgreSQL does not support platforms that require a special compiler
22588 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22589 $as_echo "$as_me: error:
22590 PostgreSQL does not support platforms that require a special compiler
22591 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22592 { (exit 1); exit 1; }; }
22595 # Check for *_r functions
22598 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22599 LIBS="$LIBS $PTHREAD_LIBS"
22601 if test "$PORTNAME" != "win32"; then
22602 if test "${ac_cv_header_pthread_h+set}" = set; then
22603 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22604 $as_echo_n "checking for pthread.h... " >&6; }
22605 if test "${ac_cv_header_pthread_h+set}" = set; then
22606 $as_echo_n "(cached) " >&6
22608 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22609 $as_echo "$ac_cv_header_pthread_h" >&6; }
22611 # Is the header compilable?
22612 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22613 $as_echo_n "checking pthread.h usability... " >&6; }
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 $ac_includes_default
22621 #include <pthread.h>
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22630 $as_echo "$ac_try_echo") >&5
22631 (eval "$ac_compile") 2>conftest.er1
22633 grep -v '^ *+' conftest.er1 >conftest.err
22635 cat conftest.err >&5
22636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } && {
22638 test -z "$ac_c_werror_flag" ||
22639 test ! -s conftest.err
22640 } && test -s conftest.$ac_objext; then
22641 ac_header_compiler=yes
22643 $as_echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22646 ac_header_compiler=no
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22651 $as_echo "$ac_header_compiler" >&6; }
22653 # Is the header present?
22654 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22655 $as_echo_n "checking pthread.h presence... " >&6; }
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 #include <pthread.h>
22664 if { (ac_try="$ac_cpp conftest.$ac_ext"
22665 case "(($ac_try" in
22666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22670 $as_echo "$ac_try_echo") >&5
22671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22673 grep -v '^ *+' conftest.er1 >conftest.err
22675 cat conftest.err >&5
22676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } >/dev/null && {
22678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22679 test ! -s conftest.err
22681 ac_header_preproc=yes
22683 $as_echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22686 ac_header_preproc=no
22689 rm -f conftest.err conftest.$ac_ext
22690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22691 $as_echo "$ac_header_preproc" >&6; }
22693 # So? What about this header?
22694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22696 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22697 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22698 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22699 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22700 ac_header_preproc=yes
22703 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22704 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22705 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22706 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22707 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22708 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22710 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22711 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22712 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22713 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22714 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22716 ## ---------------------------------------- ##
22717 ## Report this to pgsql-bugs@postgresql.org ##
22718 ## ---------------------------------------- ##
22720 ) | sed "s/^/$as_me: WARNING: /" >&2
22723 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22724 $as_echo_n "checking for pthread.h... " >&6; }
22725 if test "${ac_cv_header_pthread_h+set}" = set; then
22726 $as_echo_n "(cached) " >&6
22728 ac_cv_header_pthread_h=$ac_header_preproc
22730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22731 $as_echo "$ac_cv_header_pthread_h" >&6; }
22734 if test "x$ac_cv_header_pthread_h" = x""yes; then
22737 { { $as_echo "$as_me:$LINENO: error:
22738 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
22739 $as_echo "$as_me: error:
22740 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
22741 { (exit 1); exit 1; }; }
22750 for ac_func in strerror_r getpwuid_r gethostbyname_r
22752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22754 $as_echo_n "checking for $ac_func... " >&6; }
22755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22756 $as_echo_n "(cached) " >&6
22758 cat >conftest.$ac_ext <<_ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22766 #define $ac_func innocuous_$ac_func
22768 /* System header to define __stub macros and hopefully few prototypes,
22769 which can conflict with char $ac_func (); below.
22770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22771 <limits.h> exists even on freestanding compilers. */
22774 # include <limits.h>
22776 # include <assert.h>
22781 /* Override any GCC internal prototype to avoid an error.
22782 Use char because int might match the return type of a GCC
22783 builtin and then its argument prototype would still apply. */
22788 /* The GNU C library defines this for functions which it implements
22789 to always fail with ENOSYS. Some functions are actually named
22790 something starting with __ and the normal name is an alias. */
22791 #if defined __stub_$ac_func || defined __stub___$ac_func
22798 return $ac_func ();
22803 rm -f conftest.$ac_objext conftest$ac_exeext
22804 if { (ac_try="$ac_link"
22805 case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22810 $as_echo "$ac_try_echo") >&5
22811 (eval "$ac_link") 2>conftest.er1
22813 grep -v '^ *+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest$ac_exeext && {
22821 test "$cross_compiling" = yes ||
22822 $as_test_x conftest$ac_exeext
22824 eval "$as_ac_var=yes"
22826 $as_echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22829 eval "$as_ac_var=no"
22832 rm -rf conftest.dSYM
22833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22834 conftest$ac_exeext conftest.$ac_ext
22836 ac_res=`eval 'as_val=${'$as_ac_var'}
22837 $as_echo "$as_val"'`
22838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22839 $as_echo "$ac_res" >&6; }
22840 as_val=`eval 'as_val=${'$as_ac_var'}
22841 $as_echo "$as_val"'`
22842 if test "x$as_val" = x""yes; then
22843 cat >>confdefs.h <<_ACEOF
22844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22851 # Do test here with the proper thread flags
22852 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22853 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22854 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22855 $as_echo_n "(cached) " >&6
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 #include <sys/types.h>
22869 struct passwd *space;
22872 struct passwd **result;
22873 getpwuid_r(uid, space, buf, bufsize, result);
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22885 $as_echo "$ac_try_echo") >&5
22886 (eval "$ac_compile") 2>conftest.er1
22888 grep -v '^ *+' conftest.er1 >conftest.err
22890 cat conftest.err >&5
22891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest.$ac_objext; then
22896 pgac_cv_func_getpwuid_r_5arg=yes
22898 $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22901 pgac_cv_func_getpwuid_r_5arg=no
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22907 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22908 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22910 cat >>confdefs.h <<\_ACEOF
22911 #define GETPWUID_R_5ARG /**/
22916 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22917 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22918 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22919 $as_echo_n "(cached) " >&6
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22927 #include <string.h>
22932 int strerror_r(int, char *, size_t);
22934 /* Older AIX has 'int' for the third argument so we don't test the args. */
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22948 $as_echo "$ac_try_echo") >&5
22949 (eval "$ac_compile") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest.$ac_objext; then
22959 pgac_cv_func_strerror_r_int=yes
22961 $as_echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 pgac_cv_func_strerror_r_int=no
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22970 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22971 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22973 cat >>confdefs.h <<\_ACEOF
22974 #define STRERROR_R_INT /**/
22984 # do not use values from template file
22993 # We can test for libldap_r only after we know PTHREAD_LIBS
22994 if test "$with_ldap" = yes ; then
22996 if test "$PORTNAME" != "win32"; then
22998 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22999 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23000 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23001 $as_echo_n "(cached) " >&6
23003 ac_check_lib_save_LIBS=$LIBS
23004 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23005 cat >conftest.$ac_ext <<_ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23012 /* Override any GCC internal prototype to avoid an error.
23013 Use char because int might match the return type of a GCC
23014 builtin and then its argument prototype would still apply. */
23022 return ldap_bind ();
23027 rm -f conftest.$ac_objext conftest$ac_exeext
23028 if { (ac_try="$ac_link"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23034 $as_echo "$ac_try_echo") >&5
23035 (eval "$ac_link") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && {
23042 test -z "$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23044 } && test -s conftest$ac_exeext && {
23045 test "$cross_compiling" = yes ||
23046 $as_test_x conftest$ac_exeext
23048 ac_cv_lib_ldap_ldap_bind=yes
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23053 ac_cv_lib_ldap_ldap_bind=no
23056 rm -rf conftest.dSYM
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058 conftest$ac_exeext conftest.$ac_ext
23059 LIBS=$ac_check_lib_save_LIBS
23061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23062 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23063 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23064 cat >>confdefs.h <<_ACEOF
23065 #define HAVE_LIBLDAP 1
23068 LIBS="-lldap $LIBS"
23071 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23072 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23073 { (exit 1); exit 1; }; }
23076 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23077 if test "$enable_thread_safety" = yes; then
23078 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23080 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23081 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23082 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23083 $as_echo_n "(cached) " >&6
23085 ac_check_lib_save_LIBS=$LIBS
23086 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23094 /* Override any GCC internal prototype to avoid an error.
23095 Use char because int might match the return type of a GCC
23096 builtin and then its argument prototype would still apply. */
23100 char ldap_simple_bind ();
23104 return ldap_simple_bind ();
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (ac_try="$ac_link"
23111 case "(($ac_try" in
23112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23113 *) ac_try_echo=$ac_try;;
23115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23116 $as_echo "$ac_try_echo") >&5
23117 (eval "$ac_link") 2>conftest.er1
23119 grep -v '^ *+' conftest.er1 >conftest.err
23121 cat conftest.err >&5
23122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } && {
23124 test -z "$ac_c_werror_flag" ||
23125 test ! -s conftest.err
23126 } && test -s conftest$ac_exeext && {
23127 test "$cross_compiling" = yes ||
23128 $as_test_x conftest$ac_exeext
23130 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23132 $as_echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23135 ac_cv_lib_ldap_r_ldap_simple_bind=no
23138 rm -rf conftest.dSYM
23139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23140 conftest$ac_exeext conftest.$ac_ext
23141 LIBS=$ac_check_lib_save_LIBS
23143 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23144 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23145 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23146 cat >>confdefs.h <<_ACEOF
23147 #define HAVE_LIBLDAP_R 1
23150 LIBS="-lldap_r $LIBS"
23153 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23154 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23155 { (exit 1); exit 1; }; }
23158 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23160 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23164 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23165 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23166 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23167 $as_echo_n "(cached) " >&6
23169 ac_check_lib_save_LIBS=$LIBS
23170 LIBS="-lwldap32 $LIBS"
23171 cat >conftest.$ac_ext <<_ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23178 /* Override any GCC internal prototype to avoid an error.
23179 Use char because int might match the return type of a GCC
23180 builtin and then its argument prototype would still apply. */
23188 return ldap_bind ();
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (ac_try="$ac_link"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201 (eval "$ac_link") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest$ac_exeext && {
23211 test "$cross_compiling" = yes ||
23212 $as_test_x conftest$ac_exeext
23214 ac_cv_lib_wldap32_ldap_bind=yes
23216 $as_echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 ac_cv_lib_wldap32_ldap_bind=no
23222 rm -rf conftest.dSYM
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224 conftest$ac_exeext conftest.$ac_ext
23225 LIBS=$ac_check_lib_save_LIBS
23227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23228 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23229 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_LIBWLDAP32 1
23234 LIBS="-lwldap32 $LIBS"
23237 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23238 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23239 { (exit 1); exit 1; }; }
23242 LDAP_LIBS_FE="-lwldap32"
23243 LDAP_LIBS_BE="-lwldap32"
23251 # This test makes sure that run tests work at all. Sometimes a shared
23252 # library is found by the linker, but the runtime linker can't find it.
23253 # This check should come after all modifications of compiler or linker
23254 # variables, and before any other run tests.
23255 { $as_echo "$as_me:$LINENO: checking test program" >&5
23256 $as_echo_n "checking test program... " >&6; }
23257 if test "$cross_compiling" = yes; then
23258 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23259 $as_echo "cross-compiling" >&6; }
23261 cat >conftest.$ac_ext <<_ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23267 int main() { return 0; }
23269 rm -f conftest$ac_exeext
23270 if { (ac_try="$ac_link"
23271 case "(($ac_try" in
23272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273 *) ac_try_echo=$ac_try;;
23275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23276 $as_echo "$ac_try_echo") >&5
23277 (eval "$ac_link") 2>&5
23279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23281 { (case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23286 $as_echo "$ac_try_echo") >&5
23287 (eval "$ac_try") 2>&5
23289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 { $as_echo "$as_me:$LINENO: result: ok" >&5
23292 $as_echo "ok" >&6; }
23294 $as_echo "$as_me: program exited with status $ac_status" >&5
23295 $as_echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ( exit $ac_status )
23299 { $as_echo "$as_me:$LINENO: result: failed" >&5
23300 $as_echo "failed" >&6; }
23301 { { $as_echo "$as_me:$LINENO: error:
23302 Could not execute a simple test program. This may be a problem
23303 related to locating shared libraries. Check the file 'config.log'
23304 for the exact reason." >&5
23305 $as_echo "$as_me: error:
23306 Could not execute a simple test program. This may be a problem
23307 related to locating shared libraries. Check the file 'config.log'
23308 for the exact reason." >&2;}
23309 { (exit 1); exit 1; }; }
23311 rm -rf conftest.dSYM
23312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23317 # --------------------
23318 # Run tests below here
23319 # --------------------
23321 # Force use of our snprintf if system's doesn't do arg control
23322 # See comment above at snprintf test for details.
23323 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23324 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23325 $as_echo_n "checking whether printf supports argument control... " >&6; }
23326 if test "${pgac_cv_printf_arg_control+set}" = set; then
23327 $as_echo_n "(cached) " >&6
23329 if test "$cross_compiling" = yes; then
23330 pgac_cv_printf_arg_control=cross
23332 cat >conftest.$ac_ext <<_ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h. */
23339 #include <string.h>
23345 /* can it swap arguments? */
23346 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23347 if (strcmp(buf, "4 3") != 0)
23352 rm -f conftest$ac_exeext
23353 if { (ac_try="$ac_link"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23359 $as_echo "$ac_try_echo") >&5
23360 (eval "$ac_link") 2>&5
23362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23364 { (case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23369 $as_echo "$ac_try_echo") >&5
23370 (eval "$ac_try") 2>&5
23372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23374 pgac_cv_printf_arg_control=yes
23376 $as_echo "$as_me: program exited with status $ac_status" >&5
23377 $as_echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ( exit $ac_status )
23381 pgac_cv_printf_arg_control=no
23383 rm -rf conftest.dSYM
23384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23390 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23391 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23393 if test $pgac_cv_printf_arg_control != yes ; then
23394 pgac_need_repl_snprintf=yes
23401 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23402 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23403 if test "${pgac_cv_type_long_int_64+set}" = set; then
23404 $as_echo_n "(cached) " >&6
23406 if test "$cross_compiling" = yes; then
23407 # If cross-compiling, check the size reported by the compiler and
23408 # trust that the arithmetic works.
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23419 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23426 rm -f conftest.$ac_objext
23427 if { (ac_try="$ac_compile"
23428 case "(($ac_try" in
23429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430 *) ac_try_echo=$ac_try;;
23432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23433 $as_echo "$ac_try_echo") >&5
23434 (eval "$ac_compile") 2>conftest.er1
23436 grep -v '^ *+' conftest.er1 >conftest.err
23438 cat conftest.err >&5
23439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && {
23441 test -z "$ac_c_werror_flag" ||
23442 test ! -s conftest.err
23443 } && test -s conftest.$ac_objext; then
23444 pgac_cv_type_long_int_64=yes
23446 $as_echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23449 pgac_cv_type_long_int_64=no
23452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 cat >conftest.$ac_ext <<_ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23460 typedef long int ac_int64;
23463 * These are globals to discourage the compiler from folding all the
23464 * arithmetic tests down to compile-time constants.
23466 ac_int64 a = 20000001;
23467 ac_int64 b = 40000005;
23469 int does_int64_work()
23473 if (sizeof(ac_int64) != 8)
23474 return 0; /* definitely not the right size */
23476 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23484 exit(! does_int64_work());
23487 rm -f conftest$ac_exeext
23488 if { (ac_try="$ac_link"
23489 case "(($ac_try" in
23490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491 *) ac_try_echo=$ac_try;;
23493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23494 $as_echo "$ac_try_echo") >&5
23495 (eval "$ac_link") 2>&5
23497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23499 { (case "(($ac_try" in
23500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23501 *) ac_try_echo=$ac_try;;
23503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23504 $as_echo "$ac_try_echo") >&5
23505 (eval "$ac_try") 2>&5
23507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; }; then
23509 pgac_cv_type_long_int_64=yes
23511 $as_echo "$as_me: program exited with status $ac_status" >&5
23512 $as_echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 ( exit $ac_status )
23516 pgac_cv_type_long_int_64=no
23518 rm -rf conftest.dSYM
23519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23524 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23525 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23527 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23528 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23530 cat >>confdefs.h <<\_ACEOF
23531 #define HAVE_LONG_INT_64 1
23537 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23538 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23539 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23540 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23541 $as_echo_n "(cached) " >&6
23543 if test "$cross_compiling" = yes; then
23544 # If cross-compiling, check the size reported by the compiler and
23545 # trust that the arithmetic works.
23546 cat >conftest.$ac_ext <<_ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23556 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23563 rm -f conftest.$ac_objext
23564 if { (ac_try="$ac_compile"
23565 case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23570 $as_echo "$ac_try_echo") >&5
23571 (eval "$ac_compile") 2>conftest.er1
23573 grep -v '^ *+' conftest.er1 >conftest.err
23575 cat conftest.err >&5
23576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && {
23578 test -z "$ac_c_werror_flag" ||
23579 test ! -s conftest.err
23580 } && test -s conftest.$ac_objext; then
23581 pgac_cv_type_long_long_int_64=yes
23583 $as_echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 pgac_cv_type_long_long_int_64=no
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 typedef long long int ac_int64;
23600 * These are globals to discourage the compiler from folding all the
23601 * arithmetic tests down to compile-time constants.
23603 ac_int64 a = 20000001;
23604 ac_int64 b = 40000005;
23606 int does_int64_work()
23610 if (sizeof(ac_int64) != 8)
23611 return 0; /* definitely not the right size */
23613 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23621 exit(! does_int64_work());
23624 rm -f conftest$ac_exeext
23625 if { (ac_try="$ac_link"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23631 $as_echo "$ac_try_echo") >&5
23632 (eval "$ac_link") 2>&5
23634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23636 { (case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642 (eval "$ac_try") 2>&5
23644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 pgac_cv_type_long_long_int_64=yes
23648 $as_echo "$as_me: program exited with status $ac_status" >&5
23649 $as_echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 ( exit $ac_status )
23653 pgac_cv_type_long_long_int_64=no
23655 rm -rf conftest.dSYM
23656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23661 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23662 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23664 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23665 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23667 cat >>confdefs.h <<\_ACEOF
23668 #define HAVE_LONG_LONG_INT_64 1
23673 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23674 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23675 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23676 { (exit 1); exit 1; }; }
23682 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23690 #define INT64CONST(x) x##LL
23691 long long int foo = INT64CONST(0x1234567890123456);
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705 *) ac_try_echo=$ac_try;;
23707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709 (eval "$ac_compile") 2>conftest.er1
23711 grep -v '^ *+' conftest.er1 >conftest.err
23713 cat conftest.err >&5
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } && {
23716 test -z "$ac_c_werror_flag" ||
23717 test ! -s conftest.err
23718 } && test -s conftest.$ac_objext; then
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_LL_CONSTANTS 1
23725 $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23735 # If we found "long int" is 64 bits, assume snprintf handles it. If
23736 # we found we need to use "long long int", better check. We cope with
23737 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23738 # work, fall back to our own snprintf emulation (which we know uses %lld).
23740 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23741 if test $pgac_need_repl_snprintf = no; then
23742 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23743 $as_echo_n "checking snprintf format for long long int... " >&6; }
23744 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23745 $as_echo_n "(cached) " >&6
23747 for pgac_format in '%lld' '%qd' '%I64d'; do
23748 if test "$cross_compiling" = yes; then
23749 pgac_cv_snprintf_long_long_int_format=cross; break
23751 cat >conftest.$ac_ext <<_ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23758 typedef long long int ac_int64;
23759 #define INT64_FORMAT "$pgac_format"
23761 ac_int64 a = 20000001;
23762 ac_int64 b = 40000005;
23764 int does_int64_snprintf_work()
23769 if (sizeof(ac_int64) != 8)
23770 return 0; /* doesn't look like the right size */
23773 snprintf(buf, 100, INT64_FORMAT, c);
23774 if (strcmp(buf, "800000140000005") != 0)
23775 return 0; /* either multiply or snprintf is busted */
23779 exit(! does_int64_snprintf_work());
23782 rm -f conftest$ac_exeext
23783 if { (ac_try="$ac_link"
23784 case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23789 $as_echo "$ac_try_echo") >&5
23790 (eval "$ac_link") 2>&5
23792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23794 { (case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799 $as_echo "$ac_try_echo") >&5
23800 (eval "$ac_try") 2>&5
23802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23806 $as_echo "$as_me: program exited with status $ac_status" >&5
23807 $as_echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23811 rm -rf conftest.dSYM
23812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23819 LONG_LONG_INT_FORMAT=''
23821 case $pgac_cv_snprintf_long_long_int_format in
23822 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23823 $as_echo "cannot test (not on host machine)" >&6; };;
23824 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23825 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23826 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23827 *) { $as_echo "$as_me:$LINENO: result: none" >&5
23828 $as_echo "none" >&6; };;
23830 if test "$LONG_LONG_INT_FORMAT" = ""; then
23831 # Force usage of our own snprintf, since system snprintf is broken
23832 pgac_need_repl_snprintf=yes
23833 LONG_LONG_INT_FORMAT='%lld'
23836 # Here if we previously decided we needed to use our own snprintf
23837 LONG_LONG_INT_FORMAT='%lld'
23839 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23840 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23841 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23843 # Here if we are not using 'long long int' at all
23844 INT64_FORMAT='"%ld"'
23845 UINT64_FORMAT='"%lu"'
23849 cat >>confdefs.h <<_ACEOF
23850 #define INT64_FORMAT $INT64_FORMAT
23855 cat >>confdefs.h <<_ACEOF
23856 #define UINT64_FORMAT $UINT64_FORMAT
23860 # Now we have checked all the reasons to replace snprintf
23861 if test $pgac_need_repl_snprintf = yes; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define USE_REPL_SNPRINTF 1
23867 case " $LIBOBJS " in
23868 *" snprintf.$ac_objext "* ) ;;
23869 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23875 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23876 # The cast to long int works around a bug in the HP C Compiler
23877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23879 # This bug is HP SR number 8606223364.
23880 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23881 $as_echo_n "checking size of void *... " >&6; }
23882 if test "${ac_cv_sizeof_void_p+set}" = set; then
23883 $as_echo_n "(cached) " >&6
23885 if test "$cross_compiling" = yes; then
23886 # Depending upon the size, compute the lo and hi bounds.
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 $ac_includes_default
23897 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23904 rm -f conftest.$ac_objext
23905 if { (ac_try="$ac_compile"
23906 case "(($ac_try" in
23907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908 *) ac_try_echo=$ac_try;;
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912 (eval "$ac_compile") 2>conftest.er1
23914 grep -v '^ *+' conftest.er1 >conftest.err
23916 cat conftest.err >&5
23917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } && {
23919 test -z "$ac_c_werror_flag" ||
23920 test ! -s conftest.err
23921 } && test -s conftest.$ac_objext; then
23924 cat >conftest.$ac_ext <<_ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23930 $ac_includes_default
23934 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23948 $as_echo "$ac_try_echo") >&5
23949 (eval "$ac_compile") 2>conftest.er1
23951 grep -v '^ *+' conftest.er1 >conftest.err
23953 cat conftest.err >&5
23954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } && {
23956 test -z "$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 } && test -s conftest.$ac_objext; then
23959 ac_hi=$ac_mid; break
23961 $as_echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ac_lo=`expr $ac_mid + 1`
23965 if test $ac_lo -le $ac_mid; then
23969 ac_mid=`expr 2 '*' $ac_mid + 1`
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975 $as_echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 $ac_includes_default
23988 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23995 rm -f conftest.$ac_objext
23996 if { (ac_try="$ac_compile"
23997 case "(($ac_try" in
23998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999 *) ac_try_echo=$ac_try;;
24001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24002 $as_echo "$ac_try_echo") >&5
24003 (eval "$ac_compile") 2>conftest.er1
24005 grep -v '^ *+' conftest.er1 >conftest.err
24007 cat conftest.err >&5
24008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } && {
24010 test -z "$ac_c_werror_flag" ||
24011 test ! -s conftest.err
24012 } && test -s conftest.$ac_objext; then
24015 cat >conftest.$ac_ext <<_ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 $ac_includes_default
24025 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24039 $as_echo "$ac_try_echo") >&5
24040 (eval "$ac_compile") 2>conftest.er1
24042 grep -v '^ *+' conftest.er1 >conftest.err
24044 cat conftest.err >&5
24045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } && {
24047 test -z "$ac_c_werror_flag" ||
24048 test ! -s conftest.err
24049 } && test -s conftest.$ac_objext; then
24050 ac_lo=$ac_mid; break
24052 $as_echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ac_hi=`expr '(' $ac_mid ')' - 1`
24056 if test $ac_mid -le $ac_hi; then
24060 ac_mid=`expr 2 '*' $ac_mid`
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066 $as_echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24076 # Binary search between lo and hi bounds.
24077 while test "x$ac_lo" != "x$ac_hi"; do
24078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24079 cat >conftest.$ac_ext <<_ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 $ac_includes_default
24089 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24103 $as_echo "$ac_try_echo") >&5
24104 (eval "$ac_compile") 2>conftest.er1
24106 grep -v '^ *+' conftest.er1 >conftest.err
24108 cat conftest.err >&5
24109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } && {
24111 test -z "$ac_c_werror_flag" ||
24112 test ! -s conftest.err
24113 } && test -s conftest.$ac_objext; then
24116 $as_echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24119 ac_lo=`expr '(' $ac_mid ')' + 1`
24122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24126 '') if test "$ac_cv_type_void_p" = yes; then
24127 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24129 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24130 See \`config.log' for more details." >&5
24131 $as_echo "$as_me: error: cannot compute sizeof (void *)
24132 See \`config.log' for more details." >&2;}
24133 { (exit 77); exit 77; }; }; }
24135 ac_cv_sizeof_void_p=0
24139 cat >conftest.$ac_ext <<_ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 static long int longval () { return (long int) (sizeof (void *)); }
24147 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24149 #include <stdlib.h>
24154 FILE *f = fopen ("conftest.val", "w");
24157 if (((long int) (sizeof (void *))) < 0)
24159 long int i = longval ();
24160 if (i != ((long int) (sizeof (void *))))
24162 fprintf (f, "%ld", i);
24166 unsigned long int i = ulongval ();
24167 if (i != ((long int) (sizeof (void *))))
24169 fprintf (f, "%lu", i);
24171 /* Do not output a trailing newline, as this causes \r\n confusion
24172 on some platforms. */
24173 return ferror (f) || fclose (f) != 0;
24179 rm -f conftest$ac_exeext
24180 if { (ac_try="$ac_link"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187 (eval "$ac_link") 2>&5
24189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24191 { (case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196 $as_echo "$ac_try_echo") >&5
24197 (eval "$ac_try") 2>&5
24199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; }; then
24201 ac_cv_sizeof_void_p=`cat conftest.val`
24203 $as_echo "$as_me: program exited with status $ac_status" >&5
24204 $as_echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24207 ( exit $ac_status )
24208 if test "$ac_cv_type_void_p" = yes; then
24209 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24211 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24212 See \`config.log' for more details." >&5
24213 $as_echo "$as_me: error: cannot compute sizeof (void *)
24214 See \`config.log' for more details." >&2;}
24215 { (exit 77); exit 77; }; }; }
24217 ac_cv_sizeof_void_p=0
24220 rm -rf conftest.dSYM
24221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24225 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24226 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24230 cat >>confdefs.h <<_ACEOF
24231 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24235 # The cast to long int works around a bug in the HP C Compiler
24236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24238 # This bug is HP SR number 8606223364.
24239 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24240 $as_echo_n "checking size of size_t... " >&6; }
24241 if test "${ac_cv_sizeof_size_t+set}" = set; then
24242 $as_echo_n "(cached) " >&6
24244 if test "$cross_compiling" = yes; then
24245 # Depending upon the size, compute the lo and hi bounds.
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 $ac_includes_default
24256 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 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
24293 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24300 rm -f conftest.$ac_objext
24301 if { (ac_try="$ac_compile"
24302 case "(($ac_try" in
24303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304 *) ac_try_echo=$ac_try;;
24306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24307 $as_echo "$ac_try_echo") >&5
24308 (eval "$ac_compile") 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } && {
24315 test -z "$ac_c_werror_flag" ||
24316 test ! -s conftest.err
24317 } && test -s conftest.$ac_objext; then
24318 ac_hi=$ac_mid; break
24320 $as_echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24323 ac_lo=`expr $ac_mid + 1`
24324 if test $ac_lo -le $ac_mid; then
24328 ac_mid=`expr 2 '*' $ac_mid + 1`
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24334 $as_echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 cat >conftest.$ac_ext <<_ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24343 $ac_includes_default
24347 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24354 rm -f conftest.$ac_objext
24355 if { (ac_try="$ac_compile"
24356 case "(($ac_try" in
24357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24361 $as_echo "$ac_try_echo") >&5
24362 (eval "$ac_compile") 2>conftest.er1
24364 grep -v '^ *+' conftest.er1 >conftest.err
24366 cat conftest.err >&5
24367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); } && {
24369 test -z "$ac_c_werror_flag" ||
24370 test ! -s conftest.err
24371 } && test -s conftest.$ac_objext; then
24374 cat >conftest.$ac_ext <<_ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h. */
24380 $ac_includes_default
24384 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24391 rm -f conftest.$ac_objext
24392 if { (ac_try="$ac_compile"
24393 case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24398 $as_echo "$ac_try_echo") >&5
24399 (eval "$ac_compile") 2>conftest.er1
24401 grep -v '^ *+' conftest.er1 >conftest.err
24403 cat conftest.err >&5
24404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); } && {
24406 test -z "$ac_c_werror_flag" ||
24407 test ! -s conftest.err
24408 } && test -s conftest.$ac_objext; then
24409 ac_lo=$ac_mid; break
24411 $as_echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 ac_hi=`expr '(' $ac_mid ')' - 1`
24415 if test $ac_mid -le $ac_hi; then
24419 ac_mid=`expr 2 '*' $ac_mid`
24422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24425 $as_echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435 # Binary search between lo and hi bounds.
24436 while test "x$ac_lo" != "x$ac_hi"; do
24437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24444 $ac_includes_default
24448 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24455 rm -f conftest.$ac_objext
24456 if { (ac_try="$ac_compile"
24457 case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24462 $as_echo "$ac_try_echo") >&5
24463 (eval "$ac_compile") 2>conftest.er1
24465 grep -v '^ *+' conftest.er1 >conftest.err
24467 cat conftest.err >&5
24468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } && {
24470 test -z "$ac_c_werror_flag" ||
24471 test ! -s conftest.err
24472 } && test -s conftest.$ac_objext; then
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ac_lo=`expr '(' $ac_mid ')' + 1`
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24484 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24485 '') if test "$ac_cv_type_size_t" = yes; then
24486 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24488 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24489 See \`config.log' for more details." >&5
24490 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24491 See \`config.log' for more details." >&2;}
24492 { (exit 77); exit 77; }; }; }
24494 ac_cv_sizeof_size_t=0
24498 cat >conftest.$ac_ext <<_ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 $ac_includes_default
24505 static long int longval () { return (long int) (sizeof (size_t)); }
24506 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24508 #include <stdlib.h>
24513 FILE *f = fopen ("conftest.val", "w");
24516 if (((long int) (sizeof (size_t))) < 0)
24518 long int i = longval ();
24519 if (i != ((long int) (sizeof (size_t))))
24521 fprintf (f, "%ld", i);
24525 unsigned long int i = ulongval ();
24526 if (i != ((long int) (sizeof (size_t))))
24528 fprintf (f, "%lu", i);
24530 /* Do not output a trailing newline, as this causes \r\n confusion
24531 on some platforms. */
24532 return ferror (f) || fclose (f) != 0;
24538 rm -f conftest$ac_exeext
24539 if { (ac_try="$ac_link"
24540 case "(($ac_try" in
24541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542 *) ac_try_echo=$ac_try;;
24544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24545 $as_echo "$ac_try_echo") >&5
24546 (eval "$ac_link") 2>&5
24548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24550 { (case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24555 $as_echo "$ac_try_echo") >&5
24556 (eval "$ac_try") 2>&5
24558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559 (exit $ac_status); }; }; then
24560 ac_cv_sizeof_size_t=`cat conftest.val`
24562 $as_echo "$as_me: program exited with status $ac_status" >&5
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ( exit $ac_status )
24567 if test "$ac_cv_type_size_t" = yes; then
24568 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24570 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24571 See \`config.log' for more details." >&5
24572 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24573 See \`config.log' for more details." >&2;}
24574 { (exit 77); exit 77; }; }; }
24576 ac_cv_sizeof_size_t=0
24579 rm -rf conftest.dSYM
24580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24584 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24585 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24589 cat >>confdefs.h <<_ACEOF
24590 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24594 # The cast to long int works around a bug in the HP C Compiler
24595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24597 # This bug is HP SR number 8606223364.
24598 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24599 $as_echo_n "checking size of long... " >&6; }
24600 if test "${ac_cv_sizeof_long+set}" = set; then
24601 $as_echo_n "(cached) " >&6
24603 if test "$cross_compiling" = yes; then
24604 # Depending upon the size, compute the lo and hi bounds.
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 $ac_includes_default
24615 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626 *) ac_try_echo=$ac_try;;
24628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24629 $as_echo "$ac_try_echo") >&5
24630 (eval "$ac_compile") 2>conftest.er1
24632 grep -v '^ *+' conftest.er1 >conftest.err
24634 cat conftest.err >&5
24635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); } && {
24637 test -z "$ac_c_werror_flag" ||
24638 test ! -s conftest.err
24639 } && test -s conftest.$ac_objext; then
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24648 $ac_includes_default
24652 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24666 $as_echo "$ac_try_echo") >&5
24667 (eval "$ac_compile") 2>conftest.er1
24669 grep -v '^ *+' conftest.er1 >conftest.err
24671 cat conftest.err >&5
24672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } && {
24674 test -z "$ac_c_werror_flag" ||
24675 test ! -s conftest.err
24676 } && test -s conftest.$ac_objext; then
24677 ac_hi=$ac_mid; break
24679 $as_echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24682 ac_lo=`expr $ac_mid + 1`
24683 if test $ac_lo -le $ac_mid; then
24687 ac_mid=`expr 2 '*' $ac_mid + 1`
24690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24693 $as_echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24696 cat >conftest.$ac_ext <<_ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h. */
24702 $ac_includes_default
24706 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24713 rm -f conftest.$ac_objext
24714 if { (ac_try="$ac_compile"
24715 case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24720 $as_echo "$ac_try_echo") >&5
24721 (eval "$ac_compile") 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } && {
24728 test -z "$ac_c_werror_flag" ||
24729 test ! -s conftest.err
24730 } && test -s conftest.$ac_objext; then
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 $ac_includes_default
24743 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758 (eval "$ac_compile") 2>conftest.er1
24760 grep -v '^ *+' conftest.er1 >conftest.err
24762 cat conftest.err >&5
24763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest.$ac_objext; then
24768 ac_lo=$ac_mid; break
24770 $as_echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24773 ac_hi=`expr '(' $ac_mid ')' - 1`
24774 if test $ac_mid -le $ac_hi; then
24778 ac_mid=`expr 2 '*' $ac_mid`
24781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784 $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24794 # Binary search between lo and hi bounds.
24795 while test "x$ac_lo" != "x$ac_hi"; do
24796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24797 cat >conftest.$ac_ext <<_ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 $ac_includes_default
24807 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24814 rm -f conftest.$ac_objext
24815 if { (ac_try="$ac_compile"
24816 case "(($ac_try" in
24817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24818 *) ac_try_echo=$ac_try;;
24820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24821 $as_echo "$ac_try_echo") >&5
24822 (eval "$ac_compile") 2>conftest.er1
24824 grep -v '^ *+' conftest.er1 >conftest.err
24826 cat conftest.err >&5
24827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } && {
24829 test -z "$ac_c_werror_flag" ||
24830 test ! -s conftest.err
24831 } && test -s conftest.$ac_objext; then
24834 $as_echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24837 ac_lo=`expr '(' $ac_mid ')' + 1`
24840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24843 ?*) ac_cv_sizeof_long=$ac_lo;;
24844 '') if test "$ac_cv_type_long" = yes; then
24845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24847 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24848 See \`config.log' for more details." >&5
24849 $as_echo "$as_me: error: cannot compute sizeof (long)
24850 See \`config.log' for more details." >&2;}
24851 { (exit 77); exit 77; }; }; }
24853 ac_cv_sizeof_long=0
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 $ac_includes_default
24864 static long int longval () { return (long int) (sizeof (long)); }
24865 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24867 #include <stdlib.h>
24872 FILE *f = fopen ("conftest.val", "w");
24875 if (((long int) (sizeof (long))) < 0)
24877 long int i = longval ();
24878 if (i != ((long int) (sizeof (long))))
24880 fprintf (f, "%ld", i);
24884 unsigned long int i = ulongval ();
24885 if (i != ((long int) (sizeof (long))))
24887 fprintf (f, "%lu", i);
24889 /* Do not output a trailing newline, as this causes \r\n confusion
24890 on some platforms. */
24891 return ferror (f) || fclose (f) != 0;
24897 rm -f conftest$ac_exeext
24898 if { (ac_try="$ac_link"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_link") 2>&5
24907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909 { (case "(($ac_try" in
24910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911 *) ac_try_echo=$ac_try;;
24913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24914 $as_echo "$ac_try_echo") >&5
24915 (eval "$ac_try") 2>&5
24917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; }; then
24919 ac_cv_sizeof_long=`cat conftest.val`
24921 $as_echo "$as_me: program exited with status $ac_status" >&5
24922 $as_echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ( exit $ac_status )
24926 if test "$ac_cv_type_long" = yes; then
24927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24929 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24930 See \`config.log' for more details." >&5
24931 $as_echo "$as_me: error: cannot compute sizeof (long)
24932 See \`config.log' for more details." >&2;}
24933 { (exit 77); exit 77; }; }; }
24935 ac_cv_sizeof_long=0
24938 rm -rf conftest.dSYM
24939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24943 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24944 $as_echo "$ac_cv_sizeof_long" >&6; }
24948 cat >>confdefs.h <<_ACEOF
24949 #define SIZEOF_LONG $ac_cv_sizeof_long
24954 # Decide whether float4 is passed by value: user-selectable, enabled by default
24955 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24956 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24959 # Check whether --enable-float4-byval was given.
24960 if test "${enable_float4_byval+set}" = set; then
24961 enableval=$enable_float4_byval;
24965 cat >>confdefs.h <<\_ACEOF
24966 #define USE_FLOAT4_BYVAL 1
24969 float4passbyval=true
24972 float4passbyval=false
24975 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24976 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24977 { (exit 1); exit 1; }; }
24982 enable_float4_byval=yes
24984 cat >>confdefs.h <<\_ACEOF
24985 #define USE_FLOAT4_BYVAL 1
24988 float4passbyval=true
24992 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24993 $as_echo "$enable_float4_byval" >&6; }
24995 cat >>confdefs.h <<_ACEOF
24996 #define FLOAT4PASSBYVAL $float4passbyval
25000 # Decide whether float8 is passed by value.
25001 # Note: this setting also controls int8 and related types such as timestamp.
25002 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25003 # If not, trying to select it is an error.
25004 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25005 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25006 if test $ac_cv_sizeof_void_p -ge 8 ; then
25009 # Check whether --enable-float8-byval was given.
25010 if test "${enable_float8_byval+set}" = set; then
25011 enableval=$enable_float8_byval;
25020 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25021 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25022 { (exit 1); exit 1; }; }
25027 enable_float8_byval=yes
25035 # Check whether --enable-float8-byval was given.
25036 if test "${enable_float8_byval+set}" = set; then
25037 enableval=$enable_float8_byval;
25046 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25047 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25048 { (exit 1); exit 1; }; }
25053 enable_float8_byval=no
25058 if test "$enable_float8_byval" = yes ; then
25059 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25060 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25061 { (exit 1); exit 1; }; }
25064 if test "$enable_float8_byval" = yes ; then
25066 cat >>confdefs.h <<\_ACEOF
25067 #define USE_FLOAT8_BYVAL 1
25070 float8passbyval=true
25072 float8passbyval=false
25074 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25075 $as_echo "$enable_float8_byval" >&6; }
25077 cat >>confdefs.h <<_ACEOF
25078 #define FLOAT8PASSBYVAL $float8passbyval
25082 # Determine memory alignment requirements for the basic C data types.
25084 # The cast to long int works around a bug in the HP C Compiler,
25085 # see AC_CHECK_SIZEOF for more information.
25086 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25087 $as_echo_n "checking alignment of short... " >&6; }
25088 if test "${ac_cv_alignof_short+set}" = set; then
25089 $as_echo_n "(cached) " >&6
25091 if test "$cross_compiling" = yes; then
25092 # Depending upon the size, compute the lo and hi bounds.
25093 cat >conftest.$ac_ext <<_ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 $ac_includes_default
25101 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25103 typedef struct { char x; short y; } ac__type_alignof_;
25107 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25114 rm -f conftest.$ac_objext
25115 if { (ac_try="$ac_compile"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25121 $as_echo "$ac_try_echo") >&5
25122 (eval "$ac_compile") 2>conftest.er1
25124 grep -v '^ *+' conftest.er1 >conftest.err
25126 cat conftest.err >&5
25127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } && {
25129 test -z "$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25131 } && test -s conftest.$ac_objext; then
25134 cat >conftest.$ac_ext <<_ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25140 $ac_includes_default
25142 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25144 typedef struct { char x; short y; } ac__type_alignof_;
25148 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25162 $as_echo "$ac_try_echo") >&5
25163 (eval "$ac_compile") 2>conftest.er1
25165 grep -v '^ *+' conftest.er1 >conftest.err
25167 cat conftest.err >&5
25168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } && {
25170 test -z "$ac_c_werror_flag" ||
25171 test ! -s conftest.err
25172 } && test -s conftest.$ac_objext; then
25173 ac_hi=$ac_mid; break
25175 $as_echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_lo=`expr $ac_mid + 1`
25179 if test $ac_lo -le $ac_mid; then
25183 ac_mid=`expr 2 '*' $ac_mid + 1`
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25198 $ac_includes_default
25200 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25202 typedef struct { char x; short y; } ac__type_alignof_;
25206 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25213 rm -f conftest.$ac_objext
25214 if { (ac_try="$ac_compile"
25215 case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25220 $as_echo "$ac_try_echo") >&5
25221 (eval "$ac_compile") 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } && {
25228 test -z "$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25230 } && test -s conftest.$ac_objext; then
25233 cat >conftest.$ac_ext <<_ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h. */
25239 $ac_includes_default
25241 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25243 typedef struct { char x; short y; } ac__type_alignof_;
25247 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25254 rm -f conftest.$ac_objext
25255 if { (ac_try="$ac_compile"
25256 case "(($ac_try" in
25257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25258 *) ac_try_echo=$ac_try;;
25260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25261 $as_echo "$ac_try_echo") >&5
25262 (eval "$ac_compile") 2>conftest.er1
25264 grep -v '^ *+' conftest.er1 >conftest.err
25266 cat conftest.err >&5
25267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } && {
25269 test -z "$ac_c_werror_flag" ||
25270 test ! -s conftest.err
25271 } && test -s conftest.$ac_objext; then
25272 ac_lo=$ac_mid; break
25274 $as_echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25277 ac_hi=`expr '(' $ac_mid ')' - 1`
25278 if test $ac_mid -le $ac_hi; then
25282 ac_mid=`expr 2 '*' $ac_mid`
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25288 $as_echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 # Binary search between lo and hi bounds.
25299 while test "x$ac_lo" != "x$ac_hi"; do
25300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25301 cat >conftest.$ac_ext <<_ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h. */
25307 $ac_includes_default
25309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25311 typedef struct { char x; short y; } ac__type_alignof_;
25315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25322 rm -f conftest.$ac_objext
25323 if { (ac_try="$ac_compile"
25324 case "(($ac_try" in
25325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326 *) ac_try_echo=$ac_try;;
25328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25329 $as_echo "$ac_try_echo") >&5
25330 (eval "$ac_compile") 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } && {
25337 test -z "$ac_c_werror_flag" ||
25338 test ! -s conftest.err
25339 } && test -s conftest.$ac_objext; then
25342 $as_echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_lo=`expr '(' $ac_mid ')' + 1`
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25351 ?*) ac_cv_alignof_short=$ac_lo;;
25352 '') if test "$ac_cv_type_short" = yes; then
25353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25355 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25356 See \`config.log' for more details." >&5
25357 $as_echo "$as_me: error: cannot compute alignment of short
25358 See \`config.log' for more details." >&2;}
25359 { (exit 77); exit 77; }; }; }
25361 ac_cv_alignof_short=0
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25375 typedef struct { char x; short y; } ac__type_alignof_;
25376 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25377 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25379 #include <stdlib.h>
25384 FILE *f = fopen ("conftest.val", "w");
25387 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25389 long int i = longval ();
25390 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25392 fprintf (f, "%ld", i);
25396 unsigned long int i = ulongval ();
25397 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25399 fprintf (f, "%lu", i);
25401 /* Do not output a trailing newline, as this causes \r\n confusion
25402 on some platforms. */
25403 return ferror (f) || fclose (f) != 0;
25409 rm -f conftest$ac_exeext
25410 if { (ac_try="$ac_link"
25411 case "(($ac_try" in
25412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413 *) ac_try_echo=$ac_try;;
25415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25416 $as_echo "$ac_try_echo") >&5
25417 (eval "$ac_link") 2>&5
25419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25421 { (case "(($ac_try" in
25422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423 *) ac_try_echo=$ac_try;;
25425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25426 $as_echo "$ac_try_echo") >&5
25427 (eval "$ac_try") 2>&5
25429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); }; }; then
25431 ac_cv_alignof_short=`cat conftest.val`
25433 $as_echo "$as_me: program exited with status $ac_status" >&5
25434 $as_echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25437 ( exit $ac_status )
25438 if test "$ac_cv_type_short" = yes; then
25439 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25441 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25442 See \`config.log' for more details." >&5
25443 $as_echo "$as_me: error: cannot compute alignment of short
25444 See \`config.log' for more details." >&2;}
25445 { (exit 77); exit 77; }; }; }
25447 ac_cv_alignof_short=0
25450 rm -rf conftest.dSYM
25451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25455 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25456 $as_echo "$ac_cv_alignof_short" >&6; }
25460 cat >>confdefs.h <<_ACEOF
25461 #define ALIGNOF_SHORT $ac_cv_alignof_short
25465 # The cast to long int works around a bug in the HP C Compiler,
25466 # see AC_CHECK_SIZEOF for more information.
25467 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25468 $as_echo_n "checking alignment of int... " >&6; }
25469 if test "${ac_cv_alignof_int+set}" = set; then
25470 $as_echo_n "(cached) " >&6
25472 if test "$cross_compiling" = yes; then
25473 # Depending upon the size, compute the lo and hi bounds.
25474 cat >conftest.$ac_ext <<_ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 $ac_includes_default
25482 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25484 typedef struct { char x; int y; } ac__type_alignof_;
25488 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25495 rm -f conftest.$ac_objext
25496 if { (ac_try="$ac_compile"
25497 case "(($ac_try" in
25498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25502 $as_echo "$ac_try_echo") >&5
25503 (eval "$ac_compile") 2>conftest.er1
25505 grep -v '^ *+' conftest.er1 >conftest.err
25507 cat conftest.err >&5
25508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } && {
25510 test -z "$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 } && test -s conftest.$ac_objext; then
25515 cat >conftest.$ac_ext <<_ACEOF
25518 cat confdefs.h >>conftest.$ac_ext
25519 cat >>conftest.$ac_ext <<_ACEOF
25520 /* end confdefs.h. */
25521 $ac_includes_default
25523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25525 typedef struct { char x; int y; } ac__type_alignof_;
25529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25536 rm -f conftest.$ac_objext
25537 if { (ac_try="$ac_compile"
25538 case "(($ac_try" in
25539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540 *) ac_try_echo=$ac_try;;
25542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25543 $as_echo "$ac_try_echo") >&5
25544 (eval "$ac_compile") 2>conftest.er1
25546 grep -v '^ *+' conftest.er1 >conftest.err
25548 cat conftest.err >&5
25549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } && {
25551 test -z "$ac_c_werror_flag" ||
25552 test ! -s conftest.err
25553 } && test -s conftest.$ac_objext; then
25554 ac_hi=$ac_mid; break
25556 $as_echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25559 ac_lo=`expr $ac_mid + 1`
25560 if test $ac_lo -le $ac_mid; then
25564 ac_mid=`expr 2 '*' $ac_mid + 1`
25567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25570 $as_echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 cat >conftest.$ac_ext <<_ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h. */
25579 $ac_includes_default
25581 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25583 typedef struct { char x; int y; } ac__type_alignof_;
25587 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25594 rm -f conftest.$ac_objext
25595 if { (ac_try="$ac_compile"
25596 case "(($ac_try" in
25597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598 *) ac_try_echo=$ac_try;;
25600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25601 $as_echo "$ac_try_echo") >&5
25602 (eval "$ac_compile") 2>conftest.er1
25604 grep -v '^ *+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); } && {
25609 test -z "$ac_c_werror_flag" ||
25610 test ! -s conftest.err
25611 } && test -s conftest.$ac_objext; then
25614 cat >conftest.$ac_ext <<_ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 $ac_includes_default
25622 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25624 typedef struct { char x; int y; } ac__type_alignof_;
25628 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
25637 case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25642 $as_echo "$ac_try_echo") >&5
25643 (eval "$ac_compile") 2>conftest.er1
25645 grep -v '^ *+' conftest.er1 >conftest.err
25647 cat conftest.err >&5
25648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } && {
25650 test -z "$ac_c_werror_flag" ||
25651 test ! -s conftest.err
25652 } && test -s conftest.$ac_objext; then
25653 ac_lo=$ac_mid; break
25655 $as_echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25658 ac_hi=`expr '(' $ac_mid ')' - 1`
25659 if test $ac_mid -le $ac_hi; then
25663 ac_mid=`expr 2 '*' $ac_mid`
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25669 $as_echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 # Binary search between lo and hi bounds.
25680 while test "x$ac_lo" != "x$ac_hi"; do
25681 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25682 cat >conftest.$ac_ext <<_ACEOF
25685 cat confdefs.h >>conftest.$ac_ext
25686 cat >>conftest.$ac_ext <<_ACEOF
25687 /* end confdefs.h. */
25688 $ac_includes_default
25690 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25692 typedef struct { char x; int y; } ac__type_alignof_;
25696 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25703 rm -f conftest.$ac_objext
25704 if { (ac_try="$ac_compile"
25705 case "(($ac_try" in
25706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707 *) ac_try_echo=$ac_try;;
25709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25710 $as_echo "$ac_try_echo") >&5
25711 (eval "$ac_compile") 2>conftest.er1
25713 grep -v '^ *+' conftest.er1 >conftest.err
25715 cat conftest.err >&5
25716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } && {
25718 test -z "$ac_c_werror_flag" ||
25719 test ! -s conftest.err
25720 } && test -s conftest.$ac_objext; then
25723 $as_echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 ac_lo=`expr '(' $ac_mid ')' + 1`
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 ?*) ac_cv_alignof_int=$ac_lo;;
25733 '') if test "$ac_cv_type_int" = yes; then
25734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25736 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25737 See \`config.log' for more details." >&5
25738 $as_echo "$as_me: error: cannot compute alignment of int
25739 See \`config.log' for more details." >&2;}
25740 { (exit 77); exit 77; }; }; }
25742 ac_cv_alignof_int=0
25746 cat >conftest.$ac_ext <<_ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h. */
25752 $ac_includes_default
25754 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25756 typedef struct { char x; int y; } ac__type_alignof_;
25757 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25758 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25760 #include <stdlib.h>
25765 FILE *f = fopen ("conftest.val", "w");
25768 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25770 long int i = longval ();
25771 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25773 fprintf (f, "%ld", i);
25777 unsigned long int i = ulongval ();
25778 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25780 fprintf (f, "%lu", i);
25782 /* Do not output a trailing newline, as this causes \r\n confusion
25783 on some platforms. */
25784 return ferror (f) || fclose (f) != 0;
25790 rm -f conftest$ac_exeext
25791 if { (ac_try="$ac_link"
25792 case "(($ac_try" in
25793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794 *) ac_try_echo=$ac_try;;
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798 (eval "$ac_link") 2>&5
25800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25802 { (case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807 $as_echo "$ac_try_echo") >&5
25808 (eval "$ac_try") 2>&5
25810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_cv_alignof_int=`cat conftest.val`
25814 $as_echo "$as_me: program exited with status $ac_status" >&5
25815 $as_echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ( exit $ac_status )
25819 if test "$ac_cv_type_int" = yes; then
25820 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25822 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25823 See \`config.log' for more details." >&5
25824 $as_echo "$as_me: error: cannot compute alignment of int
25825 See \`config.log' for more details." >&2;}
25826 { (exit 77); exit 77; }; }; }
25828 ac_cv_alignof_int=0
25831 rm -rf conftest.dSYM
25832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25836 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25837 $as_echo "$ac_cv_alignof_int" >&6; }
25841 cat >>confdefs.h <<_ACEOF
25842 #define ALIGNOF_INT $ac_cv_alignof_int
25846 # The cast to long int works around a bug in the HP C Compiler,
25847 # see AC_CHECK_SIZEOF for more information.
25848 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25849 $as_echo_n "checking alignment of long... " >&6; }
25850 if test "${ac_cv_alignof_long+set}" = set; then
25851 $as_echo_n "(cached) " >&6
25853 if test "$cross_compiling" = yes; then
25854 # Depending upon the size, compute the lo and hi bounds.
25855 cat >conftest.$ac_ext <<_ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h. */
25861 $ac_includes_default
25863 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25865 typedef struct { char x; long y; } ac__type_alignof_;
25869 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880 *) ac_try_echo=$ac_try;;
25882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25883 $as_echo "$ac_try_echo") >&5
25884 (eval "$ac_compile") 2>conftest.er1
25886 grep -v '^ *+' conftest.er1 >conftest.err
25888 cat conftest.err >&5
25889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890 (exit $ac_status); } && {
25891 test -z "$ac_c_werror_flag" ||
25892 test ! -s conftest.err
25893 } && test -s conftest.$ac_objext; then
25896 cat >conftest.$ac_ext <<_ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902 $ac_includes_default
25904 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25906 typedef struct { char x; long y; } ac__type_alignof_;
25910 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25917 rm -f conftest.$ac_objext
25918 if { (ac_try="$ac_compile"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25924 $as_echo "$ac_try_echo") >&5
25925 (eval "$ac_compile") 2>conftest.er1
25927 grep -v '^ *+' conftest.er1 >conftest.err
25929 cat conftest.err >&5
25930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } && {
25932 test -z "$ac_c_werror_flag" ||
25933 test ! -s conftest.err
25934 } && test -s conftest.$ac_objext; then
25935 ac_hi=$ac_mid; break
25937 $as_echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 ac_lo=`expr $ac_mid + 1`
25941 if test $ac_lo -le $ac_mid; then
25945 ac_mid=`expr 2 '*' $ac_mid + 1`
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25951 $as_echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 $ac_includes_default
25962 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25964 typedef struct { char x; long y; } ac__type_alignof_;
25968 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25975 rm -f conftest.$ac_objext
25976 if { (ac_try="$ac_compile"
25977 case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983 (eval "$ac_compile") 2>conftest.er1
25985 grep -v '^ *+' conftest.er1 >conftest.err
25987 cat conftest.err >&5
25988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } && {
25990 test -z "$ac_c_werror_flag" ||
25991 test ! -s conftest.err
25992 } && test -s conftest.$ac_objext; then
25995 cat >conftest.$ac_ext <<_ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h. */
26001 $ac_includes_default
26003 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26005 typedef struct { char x; long y; } ac__type_alignof_;
26009 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26016 rm -f conftest.$ac_objext
26017 if { (ac_try="$ac_compile"
26018 case "(($ac_try" in
26019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020 *) ac_try_echo=$ac_try;;
26022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26023 $as_echo "$ac_try_echo") >&5
26024 (eval "$ac_compile") 2>conftest.er1
26026 grep -v '^ *+' conftest.er1 >conftest.err
26028 cat conftest.err >&5
26029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); } && {
26031 test -z "$ac_c_werror_flag" ||
26032 test ! -s conftest.err
26033 } && test -s conftest.$ac_objext; then
26034 ac_lo=$ac_mid; break
26036 $as_echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26039 ac_hi=`expr '(' $ac_mid ')' - 1`
26040 if test $ac_mid -le $ac_hi; then
26044 ac_mid=`expr 2 '*' $ac_mid`
26047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26050 $as_echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26060 # Binary search between lo and hi bounds.
26061 while test "x$ac_lo" != "x$ac_hi"; do
26062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26063 cat >conftest.$ac_ext <<_ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 $ac_includes_default
26071 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26073 typedef struct { char x; long y; } ac__type_alignof_;
26077 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26084 rm -f conftest.$ac_objext
26085 if { (ac_try="$ac_compile"
26086 case "(($ac_try" in
26087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088 *) ac_try_echo=$ac_try;;
26090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26091 $as_echo "$ac_try_echo") >&5
26092 (eval "$ac_compile") 2>conftest.er1
26094 grep -v '^ *+' conftest.er1 >conftest.err
26096 cat conftest.err >&5
26097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } && {
26099 test -z "$ac_c_werror_flag" ||
26100 test ! -s conftest.err
26101 } && test -s conftest.$ac_objext; then
26104 $as_echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26107 ac_lo=`expr '(' $ac_mid ')' + 1`
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 ?*) ac_cv_alignof_long=$ac_lo;;
26114 '') if test "$ac_cv_type_long" = yes; then
26115 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26117 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26118 See \`config.log' for more details." >&5
26119 $as_echo "$as_me: error: cannot compute alignment of long
26120 See \`config.log' for more details." >&2;}
26121 { (exit 77); exit 77; }; }; }
26123 ac_cv_alignof_long=0
26127 cat >conftest.$ac_ext <<_ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 $ac_includes_default
26135 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26137 typedef struct { char x; long y; } ac__type_alignof_;
26138 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26139 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26141 #include <stdlib.h>
26146 FILE *f = fopen ("conftest.val", "w");
26149 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26151 long int i = longval ();
26152 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26154 fprintf (f, "%ld", i);
26158 unsigned long int i = ulongval ();
26159 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26161 fprintf (f, "%lu", i);
26163 /* Do not output a trailing newline, as this causes \r\n confusion
26164 on some platforms. */
26165 return ferror (f) || fclose (f) != 0;
26171 rm -f conftest$ac_exeext
26172 if { (ac_try="$ac_link"
26173 case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179 (eval "$ac_link") 2>&5
26181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26183 { (case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188 $as_echo "$ac_try_echo") >&5
26189 (eval "$ac_try") 2>&5
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); }; }; then
26193 ac_cv_alignof_long=`cat conftest.val`
26195 $as_echo "$as_me: program exited with status $ac_status" >&5
26196 $as_echo "$as_me: failed program was:" >&5
26197 sed 's/^/| /' conftest.$ac_ext >&5
26199 ( exit $ac_status )
26200 if test "$ac_cv_type_long" = yes; then
26201 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26203 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26204 See \`config.log' for more details." >&5
26205 $as_echo "$as_me: error: cannot compute alignment of long
26206 See \`config.log' for more details." >&2;}
26207 { (exit 77); exit 77; }; }; }
26209 ac_cv_alignof_long=0
26212 rm -rf conftest.dSYM
26213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26217 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26218 $as_echo "$ac_cv_alignof_long" >&6; }
26222 cat >>confdefs.h <<_ACEOF
26223 #define ALIGNOF_LONG $ac_cv_alignof_long
26227 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26228 # The cast to long int works around a bug in the HP C Compiler,
26229 # see AC_CHECK_SIZEOF for more information.
26230 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26231 $as_echo_n "checking alignment of long long int... " >&6; }
26232 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26233 $as_echo_n "(cached) " >&6
26235 if test "$cross_compiling" = yes; then
26236 # Depending upon the size, compute the lo and hi bounds.
26237 cat >conftest.$ac_ext <<_ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h. */
26243 $ac_includes_default
26245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26247 typedef struct { char x; long long int y; } ac__type_alignof_;
26251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262 *) ac_try_echo=$ac_try;;
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266 (eval "$ac_compile") 2>conftest.er1
26268 grep -v '^ *+' conftest.er1 >conftest.err
26270 cat conftest.err >&5
26271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } && {
26273 test -z "$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26275 } && test -s conftest.$ac_objext; then
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 $ac_includes_default
26286 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26288 typedef struct { char x; long long int y; } ac__type_alignof_;
26292 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26306 $as_echo "$ac_try_echo") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26309 grep -v '^ *+' conftest.er1 >conftest.err
26311 cat conftest.err >&5
26312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_c_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.$ac_objext; then
26317 ac_hi=$ac_mid; break
26319 $as_echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ac_lo=`expr $ac_mid + 1`
26323 if test $ac_lo -le $ac_mid; then
26327 ac_mid=`expr 2 '*' $ac_mid + 1`
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 $as_echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26336 cat >conftest.$ac_ext <<_ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h. */
26342 $ac_includes_default
26344 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26346 typedef struct { char x; long long int y; } ac__type_alignof_;
26350 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26357 rm -f conftest.$ac_objext
26358 if { (ac_try="$ac_compile"
26359 case "(($ac_try" in
26360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361 *) ac_try_echo=$ac_try;;
26363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26364 $as_echo "$ac_try_echo") >&5
26365 (eval "$ac_compile") 2>conftest.er1
26367 grep -v '^ *+' conftest.er1 >conftest.err
26369 cat conftest.err >&5
26370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); } && {
26372 test -z "$ac_c_werror_flag" ||
26373 test ! -s conftest.err
26374 } && test -s conftest.$ac_objext; then
26377 cat >conftest.$ac_ext <<_ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h. */
26383 $ac_includes_default
26385 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26387 typedef struct { char x; long long int y; } ac__type_alignof_;
26391 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26398 rm -f conftest.$ac_objext
26399 if { (ac_try="$ac_compile"
26400 case "(($ac_try" in
26401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26402 *) ac_try_echo=$ac_try;;
26404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26405 $as_echo "$ac_try_echo") >&5
26406 (eval "$ac_compile") 2>conftest.er1
26408 grep -v '^ *+' conftest.er1 >conftest.err
26410 cat conftest.err >&5
26411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } && {
26413 test -z "$ac_c_werror_flag" ||
26414 test ! -s conftest.err
26415 } && test -s conftest.$ac_objext; then
26416 ac_lo=$ac_mid; break
26418 $as_echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26421 ac_hi=`expr '(' $ac_mid ')' - 1`
26422 if test $ac_mid -le $ac_hi; then
26426 ac_mid=`expr 2 '*' $ac_mid`
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 $as_echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 # Binary search between lo and hi bounds.
26443 while test "x$ac_lo" != "x$ac_hi"; do
26444 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26445 cat >conftest.$ac_ext <<_ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26451 $ac_includes_default
26453 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26455 typedef struct { char x; long long int y; } ac__type_alignof_;
26459 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26466 rm -f conftest.$ac_objext
26467 if { (ac_try="$ac_compile"
26468 case "(($ac_try" in
26469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470 *) ac_try_echo=$ac_try;;
26472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26473 $as_echo "$ac_try_echo") >&5
26474 (eval "$ac_compile") 2>conftest.er1
26476 grep -v '^ *+' conftest.er1 >conftest.err
26478 cat conftest.err >&5
26479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } && {
26481 test -z "$ac_c_werror_flag" ||
26482 test ! -s conftest.err
26483 } && test -s conftest.$ac_objext; then
26486 $as_echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26489 ac_lo=`expr '(' $ac_mid ')' + 1`
26492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26495 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26496 '') if test "$ac_cv_type_long_long_int" = yes; then
26497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26499 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26500 See \`config.log' for more details." >&5
26501 $as_echo "$as_me: error: cannot compute alignment of long long int
26502 See \`config.log' for more details." >&2;}
26503 { (exit 77); exit 77; }; }; }
26505 ac_cv_alignof_long_long_int=0
26509 cat >conftest.$ac_ext <<_ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h. */
26515 $ac_includes_default
26517 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26519 typedef struct { char x; long long int y; } ac__type_alignof_;
26520 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26521 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26523 #include <stdlib.h>
26528 FILE *f = fopen ("conftest.val", "w");
26531 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26533 long int i = longval ();
26534 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26536 fprintf (f, "%ld", i);
26540 unsigned long int i = ulongval ();
26541 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26543 fprintf (f, "%lu", i);
26545 /* Do not output a trailing newline, as this causes \r\n confusion
26546 on some platforms. */
26547 return ferror (f) || fclose (f) != 0;
26553 rm -f conftest$ac_exeext
26554 if { (ac_try="$ac_link"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26560 $as_echo "$ac_try_echo") >&5
26561 (eval "$ac_link") 2>&5
26563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26565 { (case "(($ac_try" in
26566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567 *) ac_try_echo=$ac_try;;
26569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26570 $as_echo "$ac_try_echo") >&5
26571 (eval "$ac_try") 2>&5
26573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; }; then
26575 ac_cv_alignof_long_long_int=`cat conftest.val`
26577 $as_echo "$as_me: program exited with status $ac_status" >&5
26578 $as_echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ( exit $ac_status )
26582 if test "$ac_cv_type_long_long_int" = yes; then
26583 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26585 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26586 See \`config.log' for more details." >&5
26587 $as_echo "$as_me: error: cannot compute alignment of long long int
26588 See \`config.log' for more details." >&2;}
26589 { (exit 77); exit 77; }; }; }
26591 ac_cv_alignof_long_long_int=0
26594 rm -rf conftest.dSYM
26595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26599 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26600 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26604 cat >>confdefs.h <<_ACEOF
26605 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26610 # The cast to long int works around a bug in the HP C Compiler,
26611 # see AC_CHECK_SIZEOF for more information.
26612 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26613 $as_echo_n "checking alignment of double... " >&6; }
26614 if test "${ac_cv_alignof_double+set}" = set; then
26615 $as_echo_n "(cached) " >&6
26617 if test "$cross_compiling" = yes; then
26618 # Depending upon the size, compute the lo and hi bounds.
26619 cat >conftest.$ac_ext <<_ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h. */
26625 $ac_includes_default
26627 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26629 typedef struct { char x; double y; } ac__type_alignof_;
26633 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26640 rm -f conftest.$ac_objext
26641 if { (ac_try="$ac_compile"
26642 case "(($ac_try" in
26643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644 *) ac_try_echo=$ac_try;;
26646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26647 $as_echo "$ac_try_echo") >&5
26648 (eval "$ac_compile") 2>conftest.er1
26650 grep -v '^ *+' conftest.er1 >conftest.err
26652 cat conftest.err >&5
26653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_c_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 $ac_includes_default
26668 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26670 typedef struct { char x; double y; } ac__type_alignof_;
26674 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26681 rm -f conftest.$ac_objext
26682 if { (ac_try="$ac_compile"
26683 case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26688 $as_echo "$ac_try_echo") >&5
26689 (eval "$ac_compile") 2>conftest.er1
26691 grep -v '^ *+' conftest.er1 >conftest.err
26693 cat conftest.err >&5
26694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } && {
26696 test -z "$ac_c_werror_flag" ||
26697 test ! -s conftest.err
26698 } && test -s conftest.$ac_objext; then
26699 ac_hi=$ac_mid; break
26701 $as_echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26704 ac_lo=`expr $ac_mid + 1`
26705 if test $ac_lo -le $ac_mid; then
26709 ac_mid=`expr 2 '*' $ac_mid + 1`
26712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715 $as_echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 cat >conftest.$ac_ext <<_ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h. */
26724 $ac_includes_default
26726 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26728 typedef struct { char x; double y; } ac__type_alignof_;
26732 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26739 rm -f conftest.$ac_objext
26740 if { (ac_try="$ac_compile"
26741 case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26746 $as_echo "$ac_try_echo") >&5
26747 (eval "$ac_compile") 2>conftest.er1
26749 grep -v '^ *+' conftest.er1 >conftest.err
26751 cat conftest.err >&5
26752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); } && {
26754 test -z "$ac_c_werror_flag" ||
26755 test ! -s conftest.err
26756 } && test -s conftest.$ac_objext; then
26759 cat >conftest.$ac_ext <<_ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h. */
26765 $ac_includes_default
26767 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26769 typedef struct { char x; double y; } ac__type_alignof_;
26773 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26780 rm -f conftest.$ac_objext
26781 if { (ac_try="$ac_compile"
26782 case "(($ac_try" in
26783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784 *) ac_try_echo=$ac_try;;
26786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26787 $as_echo "$ac_try_echo") >&5
26788 (eval "$ac_compile") 2>conftest.er1
26790 grep -v '^ *+' conftest.er1 >conftest.err
26792 cat conftest.err >&5
26793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); } && {
26795 test -z "$ac_c_werror_flag" ||
26796 test ! -s conftest.err
26797 } && test -s conftest.$ac_objext; then
26798 ac_lo=$ac_mid; break
26800 $as_echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26803 ac_hi=`expr '(' $ac_mid ')' - 1`
26804 if test $ac_mid -le $ac_hi; then
26808 ac_mid=`expr 2 '*' $ac_mid`
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814 $as_echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.$ac_ext >&5
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824 # Binary search between lo and hi bounds.
26825 while test "x$ac_lo" != "x$ac_hi"; do
26826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26827 cat >conftest.$ac_ext <<_ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h. */
26833 $ac_includes_default
26835 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26837 typedef struct { char x; double y; } ac__type_alignof_;
26841 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26848 rm -f conftest.$ac_objext
26849 if { (ac_try="$ac_compile"
26850 case "(($ac_try" in
26851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26852 *) ac_try_echo=$ac_try;;
26854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26855 $as_echo "$ac_try_echo") >&5
26856 (eval "$ac_compile") 2>conftest.er1
26858 grep -v '^ *+' conftest.er1 >conftest.err
26860 cat conftest.err >&5
26861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); } && {
26863 test -z "$ac_c_werror_flag" ||
26864 test ! -s conftest.err
26865 } && test -s conftest.$ac_objext; then
26868 $as_echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 ac_lo=`expr '(' $ac_mid ')' + 1`
26874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26877 ?*) ac_cv_alignof_double=$ac_lo;;
26878 '') if test "$ac_cv_type_double" = yes; then
26879 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26881 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26882 See \`config.log' for more details." >&5
26883 $as_echo "$as_me: error: cannot compute alignment of double
26884 See \`config.log' for more details." >&2;}
26885 { (exit 77); exit 77; }; }; }
26887 ac_cv_alignof_double=0
26891 cat >conftest.$ac_ext <<_ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h. */
26897 $ac_includes_default
26899 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26901 typedef struct { char x; double y; } ac__type_alignof_;
26902 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26903 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26905 #include <stdlib.h>
26910 FILE *f = fopen ("conftest.val", "w");
26913 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26915 long int i = longval ();
26916 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26918 fprintf (f, "%ld", i);
26922 unsigned long int i = ulongval ();
26923 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26925 fprintf (f, "%lu", i);
26927 /* Do not output a trailing newline, as this causes \r\n confusion
26928 on some platforms. */
26929 return ferror (f) || fclose (f) != 0;
26935 rm -f conftest$ac_exeext
26936 if { (ac_try="$ac_link"
26937 case "(($ac_try" in
26938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939 *) ac_try_echo=$ac_try;;
26941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26942 $as_echo "$ac_try_echo") >&5
26943 (eval "$ac_link") 2>&5
26945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26947 { (case "(($ac_try" in
26948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949 *) ac_try_echo=$ac_try;;
26951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26952 $as_echo "$ac_try_echo") >&5
26953 (eval "$ac_try") 2>&5
26955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; }; then
26957 ac_cv_alignof_double=`cat conftest.val`
26959 $as_echo "$as_me: program exited with status $ac_status" >&5
26960 $as_echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ( exit $ac_status )
26964 if test "$ac_cv_type_double" = yes; then
26965 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26967 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26968 See \`config.log' for more details." >&5
26969 $as_echo "$as_me: error: cannot compute alignment of double
26970 See \`config.log' for more details." >&2;}
26971 { (exit 77); exit 77; }; }; }
26973 ac_cv_alignof_double=0
26976 rm -rf conftest.dSYM
26977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26981 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26982 $as_echo "$ac_cv_alignof_double" >&6; }
26986 cat >>confdefs.h <<_ACEOF
26987 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26992 # Compute maximum alignment of any basic type.
26993 # We assume long's alignment is at least as strong as char, short, or int;
26994 # but we must check long long (if it exists) and double.
26996 MAX_ALIGNOF=$ac_cv_alignof_long
26997 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26998 MAX_ALIGNOF=$ac_cv_alignof_double
27000 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27001 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27004 cat >>confdefs.h <<_ACEOF
27005 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27010 # Some platforms predefine the types int8, int16, etc. Only check
27011 # a (hopefully) representative subset.
27012 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27013 $as_echo_n "checking for int8... " >&6; }
27014 if test "${ac_cv_type_int8+set}" = set; then
27015 $as_echo_n "(cached) " >&6
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27025 #ifdef HAVE_SUPPORTDEFS_H
27026 #include <SupportDefs.h>
27038 rm -f conftest.$ac_objext
27039 if { (ac_try="$ac_compile"
27040 case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27045 $as_echo "$ac_try_echo") >&5
27046 (eval "$ac_compile") 2>conftest.er1
27048 grep -v '^ *+' conftest.er1 >conftest.err
27050 cat conftest.err >&5
27051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } && {
27053 test -z "$ac_c_werror_flag" ||
27054 test ! -s conftest.err
27055 } && test -s conftest.$ac_objext; then
27056 cat >conftest.$ac_ext <<_ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h. */
27063 #ifdef HAVE_SUPPORTDEFS_H
27064 #include <SupportDefs.h>
27070 if (sizeof ((int8)))
27076 rm -f conftest.$ac_objext
27077 if { (ac_try="$ac_compile"
27078 case "(($ac_try" in
27079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080 *) ac_try_echo=$ac_try;;
27082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27083 $as_echo "$ac_try_echo") >&5
27084 (eval "$ac_compile") 2>conftest.er1
27086 grep -v '^ *+' conftest.er1 >conftest.err
27088 cat conftest.err >&5
27089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } && {
27091 test -z "$ac_c_werror_flag" ||
27092 test ! -s conftest.err
27093 } && test -s conftest.$ac_objext; then
27096 $as_echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27099 ac_cv_type_int8=yes
27102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104 $as_echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27112 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27113 $as_echo "$ac_cv_type_int8" >&6; }
27114 if test "x$ac_cv_type_int8" = x""yes; then
27116 cat >>confdefs.h <<_ACEOF
27117 #define HAVE_INT8 1
27122 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27123 $as_echo_n "checking for uint8... " >&6; }
27124 if test "${ac_cv_type_uint8+set}" = set; then
27125 $as_echo_n "(cached) " >&6
27127 ac_cv_type_uint8=no
27128 cat >conftest.$ac_ext <<_ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h. */
27135 #ifdef HAVE_SUPPORTDEFS_H
27136 #include <SupportDefs.h>
27142 if (sizeof (uint8))
27148 rm -f conftest.$ac_objext
27149 if { (ac_try="$ac_compile"
27150 case "(($ac_try" in
27151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27152 *) ac_try_echo=$ac_try;;
27154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27155 $as_echo "$ac_try_echo") >&5
27156 (eval "$ac_compile") 2>conftest.er1
27158 grep -v '^ *+' conftest.er1 >conftest.err
27160 cat conftest.err >&5
27161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 (exit $ac_status); } && {
27163 test -z "$ac_c_werror_flag" ||
27164 test ! -s conftest.err
27165 } && test -s conftest.$ac_objext; then
27166 cat >conftest.$ac_ext <<_ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27173 #ifdef HAVE_SUPPORTDEFS_H
27174 #include <SupportDefs.h>
27180 if (sizeof ((uint8)))
27186 rm -f conftest.$ac_objext
27187 if { (ac_try="$ac_compile"
27188 case "(($ac_try" in
27189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190 *) ac_try_echo=$ac_try;;
27192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27193 $as_echo "$ac_try_echo") >&5
27194 (eval "$ac_compile") 2>conftest.er1
27196 grep -v '^ *+' conftest.er1 >conftest.err
27198 cat conftest.err >&5
27199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } && {
27201 test -z "$ac_c_werror_flag" ||
27202 test ! -s conftest.err
27203 } && test -s conftest.$ac_objext; then
27206 $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27209 ac_cv_type_uint8=yes
27212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27214 $as_echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27223 $as_echo "$ac_cv_type_uint8" >&6; }
27224 if test "x$ac_cv_type_uint8" = x""yes; then
27226 cat >>confdefs.h <<_ACEOF
27227 #define HAVE_UINT8 1
27232 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27233 $as_echo_n "checking for int64... " >&6; }
27234 if test "${ac_cv_type_int64+set}" = set; then
27235 $as_echo_n "(cached) " >&6
27237 ac_cv_type_int64=no
27238 cat >conftest.$ac_ext <<_ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h. */
27245 #ifdef HAVE_SUPPORTDEFS_H
27246 #include <SupportDefs.h>
27252 if (sizeof (int64))
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27265 $as_echo "$ac_try_echo") >&5
27266 (eval "$ac_compile") 2>conftest.er1
27268 grep -v '^ *+' conftest.er1 >conftest.err
27270 cat conftest.err >&5
27271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } && {
27273 test -z "$ac_c_werror_flag" ||
27274 test ! -s conftest.err
27275 } && test -s conftest.$ac_objext; then
27276 cat >conftest.$ac_ext <<_ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27283 #ifdef HAVE_SUPPORTDEFS_H
27284 #include <SupportDefs.h>
27290 if (sizeof ((int64)))
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304 (eval "$ac_compile") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest.$ac_objext; then
27316 $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_cv_type_int64=yes
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 $as_echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27333 $as_echo "$ac_cv_type_int64" >&6; }
27334 if test "x$ac_cv_type_int64" = x""yes; then
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_INT64 1
27342 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27343 $as_echo_n "checking for uint64... " >&6; }
27344 if test "${ac_cv_type_uint64+set}" = set; then
27345 $as_echo_n "(cached) " >&6
27347 ac_cv_type_uint64=no
27348 cat >conftest.$ac_ext <<_ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h. */
27355 #ifdef HAVE_SUPPORTDEFS_H
27356 #include <SupportDefs.h>
27362 if (sizeof (uint64))
27368 rm -f conftest.$ac_objext
27369 if { (ac_try="$ac_compile"
27370 case "(($ac_try" in
27371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372 *) ac_try_echo=$ac_try;;
27374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27375 $as_echo "$ac_try_echo") >&5
27376 (eval "$ac_compile") 2>conftest.er1
27378 grep -v '^ *+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } && {
27383 test -z "$ac_c_werror_flag" ||
27384 test ! -s conftest.err
27385 } && test -s conftest.$ac_objext; then
27386 cat >conftest.$ac_ext <<_ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h. */
27393 #ifdef HAVE_SUPPORTDEFS_H
27394 #include <SupportDefs.h>
27400 if (sizeof ((uint64)))
27406 rm -f conftest.$ac_objext
27407 if { (ac_try="$ac_compile"
27408 case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27413 $as_echo "$ac_try_echo") >&5
27414 (eval "$ac_compile") 2>conftest.er1
27416 grep -v '^ *+' conftest.er1 >conftest.err
27418 cat conftest.err >&5
27419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); } && {
27421 test -z "$ac_c_werror_flag" ||
27422 test ! -s conftest.err
27423 } && test -s conftest.$ac_objext; then
27426 $as_echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27429 ac_cv_type_uint64=yes
27432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27434 $as_echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27442 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27443 $as_echo "$ac_cv_type_uint64" >&6; }
27444 if test "x$ac_cv_type_uint64" = x""yes; then
27446 cat >>confdefs.h <<_ACEOF
27447 #define HAVE_UINT64 1
27454 # We also check for sig_atomic_t, which *should* be defined per ANSI
27455 # C, but is missing on some old platforms.
27456 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27457 $as_echo_n "checking for sig_atomic_t... " >&6; }
27458 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27459 $as_echo_n "(cached) " >&6
27461 ac_cv_type_sig_atomic_t=no
27462 cat >conftest.$ac_ext <<_ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27468 #include <signal.h>
27473 if (sizeof (sig_atomic_t))
27479 rm -f conftest.$ac_objext
27480 if { (ac_try="$ac_compile"
27481 case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27486 $as_echo "$ac_try_echo") >&5
27487 (eval "$ac_compile") 2>conftest.er1
27489 grep -v '^ *+' conftest.er1 >conftest.err
27491 cat conftest.err >&5
27492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); } && {
27494 test -z "$ac_c_werror_flag" ||
27495 test ! -s conftest.err
27496 } && test -s conftest.$ac_objext; then
27497 cat >conftest.$ac_ext <<_ACEOF
27500 cat confdefs.h >>conftest.$ac_ext
27501 cat >>conftest.$ac_ext <<_ACEOF
27502 /* end confdefs.h. */
27503 #include <signal.h>
27508 if (sizeof ((sig_atomic_t)))
27514 rm -f conftest.$ac_objext
27515 if { (ac_try="$ac_compile"
27516 case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27521 $as_echo "$ac_try_echo") >&5
27522 (eval "$ac_compile") 2>conftest.er1
27524 grep -v '^ *+' conftest.er1 >conftest.err
27526 cat conftest.err >&5
27527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); } && {
27529 test -z "$ac_c_werror_flag" ||
27530 test ! -s conftest.err
27531 } && test -s conftest.$ac_objext; then
27534 $as_echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27537 ac_cv_type_sig_atomic_t=yes
27540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27542 $as_echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27550 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27551 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27552 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27554 cat >>confdefs.h <<_ACEOF
27555 #define HAVE_SIG_ATOMIC_T 1
27563 if test "$PORTNAME" != "win32"
27565 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27566 $as_echo_n "checking for POSIX signal interface... " >&6; }
27567 if test "${pgac_cv_func_posix_signals+set}" = set; then
27568 $as_echo_n "(cached) " >&6
27570 cat >conftest.$ac_ext <<_ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h. */
27576 #include <signal.h>
27581 struct sigaction act, oact;
27582 sigemptyset(&act.sa_mask);
27583 act.sa_flags = SA_RESTART;
27584 sigaction(0, &act, &oact);
27589 rm -f conftest.$ac_objext conftest$ac_exeext
27590 if { (ac_try="$ac_link"
27591 case "(($ac_try" in
27592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593 *) ac_try_echo=$ac_try;;
27595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27596 $as_echo "$ac_try_echo") >&5
27597 (eval "$ac_link") 2>conftest.er1
27599 grep -v '^ *+' conftest.er1 >conftest.err
27601 cat conftest.err >&5
27602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } && {
27604 test -z "$ac_c_werror_flag" ||
27605 test ! -s conftest.err
27606 } && test -s conftest$ac_exeext && {
27607 test "$cross_compiling" = yes ||
27608 $as_test_x conftest$ac_exeext
27610 pgac_cv_func_posix_signals=yes
27612 $as_echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27615 pgac_cv_func_posix_signals=no
27618 rm -rf conftest.dSYM
27619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27620 conftest$ac_exeext conftest.$ac_ext
27622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27623 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27624 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27626 cat >>confdefs.h <<\_ACEOF
27627 #define HAVE_POSIX_SIGNALS /**/
27631 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27633 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27634 { { $as_echo "$as_me:$LINENO: error:
27635 Thread-safety requires POSIX signals, which are not supported by this
27636 operating system; use --disable-thread-safety to disable thread safety." >&5
27637 $as_echo "$as_me: error:
27638 Thread-safety requires POSIX signals, which are not supported by this
27639 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27640 { (exit 1); exit 1; }; }
27644 # SunOS doesn't handle negative byte comparisons properly with +/- return
27645 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27646 $as_echo_n "checking for working memcmp... " >&6; }
27647 if test "${ac_cv_func_memcmp_working+set}" = set; then
27648 $as_echo_n "(cached) " >&6
27650 if test "$cross_compiling" = yes; then
27651 ac_cv_func_memcmp_working=no
27653 cat >conftest.$ac_ext <<_ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27659 $ac_includes_default
27664 /* Some versions of memcmp are not 8-bit clean. */
27665 char c0 = '\100', c1 = '\200', c2 = '\201';
27666 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27669 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27670 or more and with at least one buffer not starting on a 4-byte boundary.
27671 William Lewis provided this test program. */
27676 for (i = 0; i < 4; i++)
27680 strcpy (a, "--------01111111");
27681 strcpy (b, "--------10000000");
27682 if (memcmp (a, b, 16) >= 0)
27692 rm -f conftest$ac_exeext
27693 if { (ac_try="$ac_link"
27694 case "(($ac_try" in
27695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27696 *) ac_try_echo=$ac_try;;
27698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27699 $as_echo "$ac_try_echo") >&5
27700 (eval "$ac_link") 2>&5
27702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27704 { (case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27709 $as_echo "$ac_try_echo") >&5
27710 (eval "$ac_try") 2>&5
27712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); }; }; then
27714 ac_cv_func_memcmp_working=yes
27716 $as_echo "$as_me: program exited with status $ac_status" >&5
27717 $as_echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27720 ( exit $ac_status )
27721 ac_cv_func_memcmp_working=no
27723 rm -rf conftest.dSYM
27724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27729 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27730 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27731 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27732 *" memcmp.$ac_objext "* ) ;;
27733 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27740 # Select semaphore implementation type.
27741 if test "$PORTNAME" != "win32"; then
27742 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27744 cat >>confdefs.h <<\_ACEOF
27745 #define USE_NAMED_POSIX_SEMAPHORES 1
27748 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27750 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27752 cat >>confdefs.h <<\_ACEOF
27753 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27756 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27759 cat >>confdefs.h <<\_ACEOF
27760 #define USE_SYSV_SEMAPHORES 1
27763 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27768 cat >>confdefs.h <<\_ACEOF
27769 #define USE_WIN32_SEMAPHORES 1
27772 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27776 # Select shared-memory implementation type.
27777 if test "$PORTNAME" != "win32"; then
27779 cat >>confdefs.h <<\_ACEOF
27780 #define USE_SYSV_SHARED_MEMORY 1
27783 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27786 cat >>confdefs.h <<\_ACEOF
27787 #define USE_WIN32_SHARED_MEMORY 1
27790 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27793 # Select latch implementation type.
27794 if test "$PORTNAME" != "win32"; then
27795 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
27797 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
27800 # If not set in template file, set bytes to use libc memset()
27801 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27802 MEMSET_LOOP_LIMIT=1024
27805 cat >>confdefs.h <<_ACEOF
27806 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27811 if test "$enable_nls" = yes ; then
27813 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27814 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27815 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27816 $as_echo_n "(cached) " >&6
27818 ac_func_search_save_LIBS=$LIBS
27819 cat >conftest.$ac_ext <<_ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h. */
27826 /* Override any GCC internal prototype to avoid an error.
27827 Use char because int might match the return type of a GCC
27828 builtin and then its argument prototype would still apply. */
27832 char bind_textdomain_codeset ();
27836 return bind_textdomain_codeset ();
27841 for ac_lib in '' intl; do
27842 if test -z "$ac_lib"; then
27843 ac_res="none required"
27846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27848 rm -f conftest.$ac_objext conftest$ac_exeext
27849 if { (ac_try="$ac_link"
27850 case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27855 $as_echo "$ac_try_echo") >&5
27856 (eval "$ac_link") 2>conftest.er1
27858 grep -v '^ *+' conftest.er1 >conftest.err
27860 cat conftest.err >&5
27861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); } && {
27863 test -z "$ac_c_werror_flag" ||
27864 test ! -s conftest.err
27865 } && test -s conftest$ac_exeext && {
27866 test "$cross_compiling" = yes ||
27867 $as_test_x conftest$ac_exeext
27869 ac_cv_search_bind_textdomain_codeset=$ac_res
27871 $as_echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27877 rm -rf conftest.dSYM
27878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27880 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27884 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27887 ac_cv_search_bind_textdomain_codeset=no
27889 rm conftest.$ac_ext
27890 LIBS=$ac_func_search_save_LIBS
27892 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27893 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27894 ac_res=$ac_cv_search_bind_textdomain_codeset
27895 if test "$ac_res" != no; then
27896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27899 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27900 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27901 { (exit 1); exit 1; }; }
27904 if test "${ac_cv_header_libintl_h+set}" = set; then
27905 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27906 $as_echo_n "checking for libintl.h... " >&6; }
27907 if test "${ac_cv_header_libintl_h+set}" = set; then
27908 $as_echo_n "(cached) " >&6
27910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27911 $as_echo "$ac_cv_header_libintl_h" >&6; }
27913 # Is the header compilable?
27914 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27915 $as_echo_n "checking libintl.h usability... " >&6; }
27916 cat >conftest.$ac_ext <<_ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h. */
27922 $ac_includes_default
27923 #include <libintl.h>
27925 rm -f conftest.$ac_objext
27926 if { (ac_try="$ac_compile"
27927 case "(($ac_try" in
27928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27929 *) ac_try_echo=$ac_try;;
27931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27932 $as_echo "$ac_try_echo") >&5
27933 (eval "$ac_compile") 2>conftest.er1
27935 grep -v '^ *+' conftest.er1 >conftest.err
27937 cat conftest.err >&5
27938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); } && {
27940 test -z "$ac_c_werror_flag" ||
27941 test ! -s conftest.err
27942 } && test -s conftest.$ac_objext; then
27943 ac_header_compiler=yes
27945 $as_echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27948 ac_header_compiler=no
27951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27953 $as_echo "$ac_header_compiler" >&6; }
27955 # Is the header present?
27956 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27957 $as_echo_n "checking libintl.h presence... " >&6; }
27958 cat >conftest.$ac_ext <<_ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h. */
27964 #include <libintl.h>
27966 if { (ac_try="$ac_cpp conftest.$ac_ext"
27967 case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27972 $as_echo "$ac_try_echo") >&5
27973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27975 grep -v '^ *+' conftest.er1 >conftest.err
27977 cat conftest.err >&5
27978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); } >/dev/null && {
27980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27981 test ! -s conftest.err
27983 ac_header_preproc=yes
27985 $as_echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27988 ac_header_preproc=no
27991 rm -f conftest.err conftest.$ac_ext
27992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27993 $as_echo "$ac_header_preproc" >&6; }
27995 # So? What about this header?
27996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27998 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27999 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28000 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28001 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28002 ac_header_preproc=yes
28005 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28006 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28007 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28008 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28009 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28010 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28011 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28012 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28013 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28014 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28015 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28016 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28018 ## ---------------------------------------- ##
28019 ## Report this to pgsql-bugs@postgresql.org ##
28020 ## ---------------------------------------- ##
28022 ) | sed "s/^/$as_me: WARNING: /" >&2
28025 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28026 $as_echo_n "checking for libintl.h... " >&6; }
28027 if test "${ac_cv_header_libintl_h+set}" = set; then
28028 $as_echo_n "(cached) " >&6
28030 ac_cv_header_libintl_h=$ac_header_preproc
28032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28033 $as_echo "$ac_cv_header_libintl_h" >&6; }
28036 if test "x$ac_cv_header_libintl_h" = x""yes; then
28039 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28040 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28041 { (exit 1); exit 1; }; }
28045 for ac_prog in msgfmt
28047 # Extract the first word of "$ac_prog", so it can be a program name with args.
28048 set dummy $ac_prog; ac_word=$2
28049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28050 $as_echo_n "checking for $ac_word... " >&6; }
28051 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28052 $as_echo_n "(cached) " >&6
28054 if test -n "$MSGFMT"; then
28055 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28058 for as_dir in $PATH
28061 test -z "$as_dir" && as_dir=.
28062 for ac_exec_ext in '' $ac_executable_extensions; do
28063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28064 ac_cv_prog_MSGFMT="$ac_prog"
28065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28074 MSGFMT=$ac_cv_prog_MSGFMT
28075 if test -n "$MSGFMT"; then
28076 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28077 $as_echo "$MSGFMT" >&6; }
28079 { $as_echo "$as_me:$LINENO: result: no" >&5
28080 $as_echo "no" >&6; }
28084 test -n "$MSGFMT" && break
28087 if test -z "$MSGFMT"; then
28088 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28089 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28090 { (exit 1); exit 1; }; }
28092 for ac_prog in msgmerge
28094 # Extract the first word of "$ac_prog", so it can be a program name with args.
28095 set dummy $ac_prog; ac_word=$2
28096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28097 $as_echo_n "checking for $ac_word... " >&6; }
28098 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28099 $as_echo_n "(cached) " >&6
28101 if test -n "$MSGMERGE"; then
28102 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28105 for as_dir in $PATH
28108 test -z "$as_dir" && as_dir=.
28109 for ac_exec_ext in '' $ac_executable_extensions; do
28110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28111 ac_cv_prog_MSGMERGE="$ac_prog"
28112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28121 MSGMERGE=$ac_cv_prog_MSGMERGE
28122 if test -n "$MSGMERGE"; then
28123 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28124 $as_echo "$MSGMERGE" >&6; }
28126 { $as_echo "$as_me:$LINENO: result: no" >&5
28127 $as_echo "no" >&6; }
28131 test -n "$MSGMERGE" && break
28134 for ac_prog in xgettext
28136 # Extract the first word of "$ac_prog", so it can be a program name with args.
28137 set dummy $ac_prog; ac_word=$2
28138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28139 $as_echo_n "checking for $ac_word... " >&6; }
28140 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28141 $as_echo_n "(cached) " >&6
28143 if test -n "$XGETTEXT"; then
28144 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28147 for as_dir in $PATH
28150 test -z "$as_dir" && as_dir=.
28151 for ac_exec_ext in '' $ac_executable_extensions; do
28152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28153 ac_cv_prog_XGETTEXT="$ac_prog"
28154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28163 XGETTEXT=$ac_cv_prog_XGETTEXT
28164 if test -n "$XGETTEXT"; then
28165 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28166 $as_echo "$XGETTEXT" >&6; }
28168 { $as_echo "$as_me:$LINENO: result: no" >&5
28169 $as_echo "no" >&6; }
28173 test -n "$XGETTEXT" && break
28179 # Check for Tcl configuration script tclConfig.sh
28180 if test "$with_tcl" = yes; then
28181 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28183 # Extract the first word of "$ac_prog", so it can be a program name with args.
28184 set dummy $ac_prog; ac_word=$2
28185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28186 $as_echo_n "checking for $ac_word... " >&6; }
28187 if test "${ac_cv_path_TCLSH+set}" = set; then
28188 $as_echo_n "(cached) " >&6
28192 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28196 for as_dir in $PATH
28199 test -z "$as_dir" && as_dir=.
28200 for ac_exec_ext in '' $ac_executable_extensions; do
28201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28202 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28213 TCLSH=$ac_cv_path_TCLSH
28214 if test -n "$TCLSH"; then
28215 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28216 $as_echo "$TCLSH" >&6; }
28218 { $as_echo "$as_me:$LINENO: result: no" >&5
28219 $as_echo "no" >&6; }
28223 test -n "$TCLSH" && break
28226 if test x"$TCLSH" = x""; then
28227 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28228 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28229 { (exit 1); exit 1; }; }
28232 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28233 $as_echo_n "checking for tclConfig.sh... " >&6; }
28234 # Let user override test
28235 if test -z "$TCL_CONFIG_SH"; then
28236 pgac_test_dirs="$with_tclconfig"
28238 set X $pgac_test_dirs; shift
28239 if test $# -eq 0; then
28240 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28241 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28242 { (exit 1); exit 1; }; }
28243 set X `echo 'puts $auto_path' | $TCLSH`; shift
28247 if test -r "$pgac_dir/tclConfig.sh"; then
28248 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28254 if test -z "$TCL_CONFIG_SH"; then
28255 { $as_echo "$as_me:$LINENO: result: no" >&5
28256 $as_echo "no" >&6; }
28257 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28258 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28259 { (exit 1); exit 1; }; }
28261 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28262 $as_echo "$TCL_CONFIG_SH" >&6; }
28268 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28269 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28270 eval TCL_LIBS=\"$TCL_LIBS\"
28271 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28272 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28274 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28275 ac_save_CPPFLAGS=$CPPFLAGS
28276 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28277 if test "${ac_cv_header_tcl_h+set}" = set; then
28278 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28279 $as_echo_n "checking for tcl.h... " >&6; }
28280 if test "${ac_cv_header_tcl_h+set}" = set; then
28281 $as_echo_n "(cached) " >&6
28283 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28284 $as_echo "$ac_cv_header_tcl_h" >&6; }
28286 # Is the header compilable?
28287 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28288 $as_echo_n "checking tcl.h usability... " >&6; }
28289 cat >conftest.$ac_ext <<_ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h. */
28295 $ac_includes_default
28298 rm -f conftest.$ac_objext
28299 if { (ac_try="$ac_compile"
28300 case "(($ac_try" in
28301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28305 $as_echo "$ac_try_echo") >&5
28306 (eval "$ac_compile") 2>conftest.er1
28308 grep -v '^ *+' conftest.er1 >conftest.err
28310 cat conftest.err >&5
28311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); } && {
28313 test -z "$ac_c_werror_flag" ||
28314 test ! -s conftest.err
28315 } && test -s conftest.$ac_objext; then
28316 ac_header_compiler=yes
28318 $as_echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 ac_header_compiler=no
28324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28326 $as_echo "$ac_header_compiler" >&6; }
28328 # Is the header present?
28329 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28330 $as_echo_n "checking tcl.h presence... " >&6; }
28331 cat >conftest.$ac_ext <<_ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h. */
28339 if { (ac_try="$ac_cpp conftest.$ac_ext"
28340 case "(($ac_try" in
28341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 *) ac_try_echo=$ac_try;;
28344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28345 $as_echo "$ac_try_echo") >&5
28346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28348 grep -v '^ *+' conftest.er1 >conftest.err
28350 cat conftest.err >&5
28351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } >/dev/null && {
28353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28354 test ! -s conftest.err
28356 ac_header_preproc=yes
28358 $as_echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28361 ac_header_preproc=no
28364 rm -f conftest.err conftest.$ac_ext
28365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28366 $as_echo "$ac_header_preproc" >&6; }
28368 # So? What about this header?
28369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28371 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28372 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28373 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28374 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28375 ac_header_preproc=yes
28378 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28379 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28380 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28381 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28382 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28383 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28384 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28385 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28386 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28387 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28388 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28389 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28391 ## ---------------------------------------- ##
28392 ## Report this to pgsql-bugs@postgresql.org ##
28393 ## ---------------------------------------- ##
28395 ) | sed "s/^/$as_me: WARNING: /" >&2
28398 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28399 $as_echo_n "checking for tcl.h... " >&6; }
28400 if test "${ac_cv_header_tcl_h+set}" = set; then
28401 $as_echo_n "(cached) " >&6
28403 ac_cv_header_tcl_h=$ac_header_preproc
28405 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28406 $as_echo "$ac_cv_header_tcl_h" >&6; }
28409 if test "x$ac_cv_header_tcl_h" = x""yes; then
28412 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28413 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28414 { (exit 1); exit 1; }; }
28418 CPPFLAGS=$ac_save_CPPFLAGS
28422 # Check for DocBook and tools
28424 for ac_prog in onsgmls nsgmls
28426 # Extract the first word of "$ac_prog", so it can be a program name with args.
28427 set dummy $ac_prog; ac_word=$2
28428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28429 $as_echo_n "checking for $ac_word... " >&6; }
28430 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28431 $as_echo_n "(cached) " >&6
28433 if test -n "$NSGMLS"; then
28434 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28437 for as_dir in $PATH
28440 test -z "$as_dir" && as_dir=.
28441 for ac_exec_ext in '' $ac_executable_extensions; do
28442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28443 ac_cv_prog_NSGMLS="$ac_prog"
28444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28453 NSGMLS=$ac_cv_prog_NSGMLS
28454 if test -n "$NSGMLS"; then
28455 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28456 $as_echo "$NSGMLS" >&6; }
28458 { $as_echo "$as_me:$LINENO: result: no" >&5
28459 $as_echo "no" >&6; }
28463 test -n "$NSGMLS" && break
28466 for ac_prog in openjade jade
28468 # Extract the first word of "$ac_prog", so it can be a program name with args.
28469 set dummy $ac_prog; ac_word=$2
28470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28471 $as_echo_n "checking for $ac_word... " >&6; }
28472 if test "${ac_cv_prog_JADE+set}" = set; then
28473 $as_echo_n "(cached) " >&6
28475 if test -n "$JADE"; then
28476 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28479 for as_dir in $PATH
28482 test -z "$as_dir" && as_dir=.
28483 for ac_exec_ext in '' $ac_executable_extensions; do
28484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28485 ac_cv_prog_JADE="$ac_prog"
28486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28495 JADE=$ac_cv_prog_JADE
28496 if test -n "$JADE"; then
28497 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28498 $as_echo "$JADE" >&6; }
28500 { $as_echo "$as_me:$LINENO: result: no" >&5
28501 $as_echo "no" >&6; }
28505 test -n "$JADE" && break
28509 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28510 $as_echo_n "checking for DocBook V4.2... " >&6; }
28511 if test "${pgac_cv_check_docbook+set}" = set; then
28512 $as_echo_n "(cached) " >&6
28514 cat >conftest.sgml <<EOF
28515 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28517 <title>test</title>
28519 <title>random</title>
28521 <title>testsect</title>
28528 pgac_cv_check_docbook=no
28530 if test -n "$NSGMLS"; then
28531 $NSGMLS -s conftest.sgml 1>&5 2>&1
28532 if test $? -eq 0; then
28533 pgac_cv_check_docbook=yes
28536 rm -f conftest.sgml
28538 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28539 $as_echo "$pgac_cv_check_docbook" >&6; }
28541 have_docbook=$pgac_cv_check_docbook
28544 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28545 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28546 if test "${pgac_cv_path_stylesheets+set}" = set; then
28547 $as_echo_n "(cached) " >&6
28549 if test -n "$DOCBOOKSTYLE"; then
28550 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28552 for pgac_prefix in /usr /usr/local /opt /sw; do
28553 for pgac_infix in share lib; do
28554 for pgac_postfix in \
28555 sgml/stylesheets/nwalsh-modular \
28556 sgml/stylesheets/docbook \
28557 sgml/stylesheets/dsssl/docbook \
28558 sgml/docbook-dsssl \
28559 sgml/docbook/dsssl/modular \
28560 sgml/docbook/stylesheet/dsssl/modular \
28561 sgml/docbook/dsssl-stylesheets \
28562 sgml/dsssl/docbook-dsssl-nwalsh
28564 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28565 if test -r "$pgac_candidate/html/docbook.dsl" \
28566 && test -r "$pgac_candidate/print/docbook.dsl"
28568 pgac_cv_path_stylesheets=$pgac_candidate
28577 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28579 if test -n "$DOCBOOKSTYLE"; then
28580 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28581 $as_echo "$DOCBOOKSTYLE" >&6; }
28583 { $as_echo "$as_me:$LINENO: result: no" >&5
28584 $as_echo "no" >&6; }
28586 if test -n "$DOCBOOKSTYLE"; then
28587 for ac_prog in collateindex.pl
28589 # Extract the first word of "$ac_prog", so it can be a program name with args.
28590 set dummy $ac_prog; ac_word=$2
28591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28592 $as_echo_n "checking for $ac_word... " >&6; }
28593 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28594 $as_echo_n "(cached) " >&6
28596 case $COLLATEINDEX in
28598 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28602 for as_dir in $DOCBOOKSTYLE/bin $PATH
28605 test -z "$as_dir" && as_dir=.
28606 for ac_exec_ext in '' $ac_executable_extensions; do
28607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28608 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28619 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28620 if test -n "$COLLATEINDEX"; then
28621 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28622 $as_echo "$COLLATEINDEX" >&6; }
28624 { $as_echo "$as_me:$LINENO: result: no" >&5
28625 $as_echo "no" >&6; }
28629 test -n "$COLLATEINDEX" && break
28633 for ac_prog in collateindex.pl
28635 # Extract the first word of "$ac_prog", so it can be a program name with args.
28636 set dummy $ac_prog; ac_word=$2
28637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28638 $as_echo_n "checking for $ac_word... " >&6; }
28639 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28640 $as_echo_n "(cached) " >&6
28642 case $COLLATEINDEX in
28644 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28648 for as_dir in $PATH
28651 test -z "$as_dir" && as_dir=.
28652 for ac_exec_ext in '' $ac_executable_extensions; do
28653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28654 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28665 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28666 if test -n "$COLLATEINDEX"; then
28667 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28668 $as_echo "$COLLATEINDEX" >&6; }
28670 { $as_echo "$as_me:$LINENO: result: no" >&5
28671 $as_echo "no" >&6; }
28675 test -n "$COLLATEINDEX" && break
28679 for ac_prog in xsltproc
28681 # Extract the first word of "$ac_prog", so it can be a program name with args.
28682 set dummy $ac_prog; ac_word=$2
28683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28684 $as_echo_n "checking for $ac_word... " >&6; }
28685 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28686 $as_echo_n "(cached) " >&6
28688 if test -n "$XSLTPROC"; then
28689 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28692 for as_dir in $PATH
28695 test -z "$as_dir" && as_dir=.
28696 for ac_exec_ext in '' $ac_executable_extensions; do
28697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28698 ac_cv_prog_XSLTPROC="$ac_prog"
28699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28708 XSLTPROC=$ac_cv_prog_XSLTPROC
28709 if test -n "$XSLTPROC"; then
28710 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28711 $as_echo "$XSLTPROC" >&6; }
28713 { $as_echo "$as_me:$LINENO: result: no" >&5
28714 $as_echo "no" >&6; }
28718 test -n "$XSLTPROC" && break
28721 for ac_prog in osx sgml2xml sx
28723 # Extract the first word of "$ac_prog", so it can be a program name with args.
28724 set dummy $ac_prog; ac_word=$2
28725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28726 $as_echo_n "checking for $ac_word... " >&6; }
28727 if test "${ac_cv_prog_OSX+set}" = set; then
28728 $as_echo_n "(cached) " >&6
28730 if test -n "$OSX"; then
28731 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28734 for as_dir in $PATH
28737 test -z "$as_dir" && as_dir=.
28738 for ac_exec_ext in '' $ac_executable_extensions; do
28739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28740 ac_cv_prog_OSX="$ac_prog"
28741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28750 OSX=$ac_cv_prog_OSX
28751 if test -n "$OSX"; then
28752 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28753 $as_echo "$OSX" >&6; }
28755 { $as_echo "$as_me:$LINENO: result: no" >&5
28756 $as_echo "no" >&6; }
28760 test -n "$OSX" && break
28766 # We have to run the thread test near the end so we have all our symbols
28767 # defined. Cross compiling throws a warning.
28769 if test "$enable_thread_safety" = yes; then
28770 if test "$PORTNAME" != "win32"
28772 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28773 $as_echo_n "checking thread safety of required library functions... " >&6; }
28777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28778 LIBS="$LIBS $PTHREAD_LIBS"
28779 if test "$cross_compiling" = yes; then
28780 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28781 $as_echo "maybe" >&6; }
28782 { $as_echo "$as_me:$LINENO: WARNING:
28783 *** Skipping thread test program because of cross-compile build.
28784 *** Run the program in src/test/thread on the target machine.
28786 $as_echo "$as_me: WARNING:
28787 *** Skipping thread test program because of cross-compile build.
28788 *** Run the program in src/test/thread on the target machine.
28791 cat >conftest.$ac_ext <<_ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h. */
28797 #include "$srcdir/src/test/thread/thread_test.c"
28799 rm -f conftest$ac_exeext
28800 if { (ac_try="$ac_link"
28801 case "(($ac_try" in
28802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803 *) ac_try_echo=$ac_try;;
28805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28806 $as_echo "$ac_try_echo") >&5
28807 (eval "$ac_link") 2>&5
28809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28811 { (case "(($ac_try" in
28812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813 *) ac_try_echo=$ac_try;;
28815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28816 $as_echo "$ac_try_echo") >&5
28817 (eval "$ac_try") 2>&5
28819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
28821 { $as_echo "$as_me:$LINENO: result: yes" >&5
28822 $as_echo "yes" >&6; }
28824 $as_echo "$as_me: program exited with status $ac_status" >&5
28825 $as_echo "$as_me: failed program was:" >&5
28826 sed 's/^/| /' conftest.$ac_ext >&5
28828 ( exit $ac_status )
28829 { $as_echo "$as_me:$LINENO: result: no" >&5
28830 $as_echo "no" >&6; }
28831 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28832 This platform is not thread-safe. Check the file 'config.log' or compile
28833 and run src/test/thread/thread_test for the exact reason.
28834 Use --disable-thread-safety to disable thread safety." >&5
28835 $as_echo "$as_me: error: thread test program failed
28836 This platform is not thread-safe. Check the file 'config.log' or compile
28837 and run src/test/thread/thread_test for the exact reason.
28838 Use --disable-thread-safety to disable thread safety." >&2;}
28839 { (exit 1); exit 1; }; }
28841 rm -rf conftest.dSYM
28842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28849 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28850 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28854 # If compiler will take -Wl,--as-needed (or various platform-specific
28855 # spellings thereof) then add that to LDFLAGS. This is much easier than
28856 # trying to filter LIBS to the minimum for each executable.
28857 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28858 # libreadline; therefore we postpone testing it until we know what library
28859 # dependencies readline has. The test code will try to link with $LIBS.
28860 if test "$with_readline" = yes; then
28861 link_test_func=readline
28863 link_test_func=exit
28866 if test "$PORTNAME" = "darwin"; then
28867 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28868 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28869 pgac_save_LDFLAGS=$LDFLAGS
28870 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28871 if test "$cross_compiling" = yes; then
28872 LDFLAGS="$pgac_save_LDFLAGS"
28873 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28874 $as_echo "assuming no" >&6; }
28876 cat >conftest.$ac_ext <<_ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28891 rm -f conftest$ac_exeext
28892 if { (ac_try="$ac_link"
28893 case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28898 $as_echo "$ac_try_echo") >&5
28899 (eval "$ac_link") 2>&5
28901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28903 { (case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28908 $as_echo "$ac_try_echo") >&5
28909 (eval "$ac_try") 2>&5
28911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; }; then
28913 { $as_echo "$as_me:$LINENO: result: yes" >&5
28914 $as_echo "yes" >&6; }
28916 $as_echo "$as_me: program exited with status $ac_status" >&5
28917 $as_echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28920 ( exit $ac_status )
28921 LDFLAGS="$pgac_save_LDFLAGS"
28922 { $as_echo "$as_me:$LINENO: result: no" >&5
28923 $as_echo "no" >&6; }
28925 rm -rf conftest.dSYM
28926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28931 elif test "$PORTNAME" = "openbsd"; then
28932 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28933 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28934 pgac_save_LDFLAGS=$LDFLAGS
28935 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28936 if test "$cross_compiling" = yes; then
28937 LDFLAGS="$pgac_save_LDFLAGS"
28938 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28939 $as_echo "assuming no" >&6; }
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28956 rm -f conftest$ac_exeext
28957 if { (ac_try="$ac_link"
28958 case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28963 $as_echo "$ac_try_echo") >&5
28964 (eval "$ac_link") 2>&5
28966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28968 { (case "(($ac_try" in
28969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970 *) ac_try_echo=$ac_try;;
28972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28973 $as_echo "$ac_try_echo") >&5
28974 (eval "$ac_try") 2>&5
28976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28978 { $as_echo "$as_me:$LINENO: result: yes" >&5
28979 $as_echo "yes" >&6; }
28981 $as_echo "$as_me: program exited with status $ac_status" >&5
28982 $as_echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ( exit $ac_status )
28986 LDFLAGS="$pgac_save_LDFLAGS"
28987 { $as_echo "$as_me:$LINENO: result: no" >&5
28988 $as_echo "no" >&6; }
28990 rm -rf conftest.dSYM
28991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28997 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28998 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28999 pgac_save_LDFLAGS=$LDFLAGS
29000 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29001 if test "$cross_compiling" = yes; then
29002 LDFLAGS="$pgac_save_LDFLAGS"
29003 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
29004 $as_echo "assuming no" >&6; }
29006 cat >conftest.$ac_ext <<_ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h. */
29012 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29021 rm -f conftest$ac_exeext
29022 if { (ac_try="$ac_link"
29023 case "(($ac_try" in
29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025 *) ac_try_echo=$ac_try;;
29027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29028 $as_echo "$ac_try_echo") >&5
29029 (eval "$ac_link") 2>&5
29031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29033 { (case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29038 $as_echo "$ac_try_echo") >&5
29039 (eval "$ac_try") 2>&5
29041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); }; }; then
29043 { $as_echo "$as_me:$LINENO: result: yes" >&5
29044 $as_echo "yes" >&6; }
29046 $as_echo "$as_me: program exited with status $ac_status" >&5
29047 $as_echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29050 ( exit $ac_status )
29051 LDFLAGS="$pgac_save_LDFLAGS"
29052 { $as_echo "$as_me:$LINENO: result: no" >&5
29053 $as_echo "no" >&6; }
29055 rm -rf conftest.dSYM
29056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29064 # Begin output steps
29066 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29067 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29068 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29069 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29070 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29071 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29073 # Create compiler version string
29074 if test x"$GCC" = x"yes" ; then
29075 cc_string="GCC `${CC} --version | sed q`"
29076 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29077 cc_string=`${CC} -V 2>&1 | sed q`
29083 cat >>confdefs.h <<_ACEOF
29084 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29088 # Supply a numeric version string for use by 3rd party add-ons
29089 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29090 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29092 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29094 cat >>confdefs.h <<_ACEOF
29095 #define PG_VERSION_NUM $PG_VERSION_NUM
29100 # prepare build tree if outside source tree
29101 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29102 # Note 2: /bin/pwd might be better than shell's built-in at getting
29103 # a symlink-free name.
29104 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29108 if test "$no_create" != yes; then
29109 $as_echo_n "preparing build tree... " >&6
29110 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29111 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29112 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29113 $as_echo "$as_me: error: failed" >&2;}
29114 { (exit 1); exit 1; }; }
29115 { $as_echo "$as_me:$LINENO: result: done" >&5
29116 $as_echo "done" >&6; }
29122 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29125 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
29128 if test "$PORTNAME" = "win32"; then
29129 ac_config_commands="$ac_config_commands check_win32_symlinks"
29133 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29136 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29139 cat >confcache <<\_ACEOF
29140 # This file is a shell script that caches the results of configure
29141 # tests run on this system so they can be shared between configure
29142 # scripts and configure runs, see configure's option --config-cache.
29143 # It is not useful on other systems. If it contains results you don't
29144 # want to keep, you may remove or edit it.
29146 # config.status only pays attention to the cache file if you give it
29147 # the --recheck option to rerun configure.
29149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29151 # following values.
29155 # The following way of writing the cache mishandles newlines in values,
29156 # but we know of no workaround that is simple, portable, and efficient.
29157 # So, we kill variables containing newlines.
29158 # Ultrix sh set writes to stderr and can't be redirected directly,
29159 # and sets the high bit in the cache file unless we assign to the vars.
29161 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29162 eval ac_val=\$$ac_var
29166 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29170 _ | IFS | as_nl) ;; #(
29171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29172 *) $as_unset $ac_var ;;
29178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29179 *${as_nl}ac_space=\ *)
29180 # `set' does not quote correctly, so add quotes (double-quote
29181 # substitution turns \\\\ into \\, and sed turns \\ into \).
29184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29187 # `set' quotes correctly as required by POSIX, so do not add quotes.
29188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29202 if test -w "$cache_file"; then
29203 test "x$cache_file" != "x/dev/null" &&
29204 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29205 $as_echo "$as_me: updating cache $cache_file" >&6;}
29206 cat confcache >$cache_file
29208 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29209 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29215 # Let make expand exec_prefix.
29216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29218 DEFS=-DHAVE_CONFIG_H
29222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29223 # 1. Remove the extension, and $U if already installed.
29224 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29225 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29226 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29227 # will be set to the directory where LIBOBJS objects are built.
29228 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29229 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29231 LIBOBJS=$ac_libobjs
29233 LTLIBOBJS=$ac_ltlibobjs
29238 : ${CONFIG_STATUS=./config.status}
29240 ac_clean_files_save=$ac_clean_files
29241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29242 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29243 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29244 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29246 # Generated by $as_me.
29247 # Run this file to recreate the current configuration.
29248 # Compiler output produced by configure, useful for debugging
29249 # configure, is in config.log if it exists.
29252 ac_cs_recheck=false
29254 SHELL=\${CONFIG_SHELL-$SHELL}
29257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29258 ## --------------------- ##
29259 ## M4sh Initialization. ##
29260 ## --------------------- ##
29262 # Be more Bourne compatible
29263 DUALCASE=1; export DUALCASE # for MKS sh
29264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29268 # is contrary to our usage. Disable this feature.
29269 alias -g '${1+"$@"}'='"$@"'
29270 setopt NO_GLOB_SUBST
29272 case `(set -o) 2>/dev/null` in
29273 *posix*) set -o posix ;;
29282 # Avoid depending upon Character Ranges.
29283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29286 as_cr_digits='0123456789'
29287 as_cr_alnum=$as_cr_Letters$as_cr_digits
29292 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29293 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29296 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29297 as_echo='printf %s\n'
29298 as_echo_n='printf %s'
29300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29302 as_echo_n='/usr/ucb/echo -n'
29304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29305 as_echo_n_body='eval
29309 expr "X$arg" : "X\\(.*\\)$as_nl";
29310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29314 export as_echo_n_body
29315 as_echo_n='sh -c $as_echo_n_body as_echo'
29317 export as_echo_body
29318 as_echo='sh -c $as_echo_body as_echo'
29321 # The user is always right.
29322 if test "${PATH_SEPARATOR+set}" != set; then
29324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29325 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29330 # Support unset when possible.
29331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29339 # We need space, tab and new line, in precisely that order. Quoting is
29340 # there to prevent editors from complaining about space-tab.
29341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29342 # splitting by setting IFS to empty value.)
29345 # Find who we are. Look in the path if we contain no directory separator.
29347 *[\\/]* ) as_myself=$0 ;;
29348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29349 for as_dir in $PATH
29352 test -z "$as_dir" && as_dir=.
29353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29359 # We did not find ourselves, most probably we were run as `sh COMMAND'
29360 # in which case we are not to be found in the path.
29361 if test "x$as_myself" = x; then
29364 if test ! -f "$as_myself"; then
29365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29366 { (exit 1); exit 1; }
29369 # Work around bugs in pre-3.0 UWIN ksh.
29370 for as_var in ENV MAIL MAILPATH
29371 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29383 # Required to use basename.
29384 if expr a : '\(a\)' >/dev/null 2>&1 &&
29385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29392 as_basename=basename
29398 # Name of the executable.
29399 as_me=`$as_basename -- "$0" ||
29400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29401 X"$0" : 'X\(//\)$' \| \
29402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29404 sed '/^.*\/\([^/][^/]*\)\/*$/{
29423 as_lineno_1=$LINENO
29424 as_lineno_2=$LINENO
29425 test "x$as_lineno_1" != "x$as_lineno_2" &&
29426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29429 # uniformly replaced by the line number. The first 'sed' inserts a
29430 # line-number line after each line using $LINENO; the second 'sed'
29431 # does the real work. The second script uses 'N' to pair each
29432 # line-number line with the line containing $LINENO, and appends
29433 # trailing '-' during substitution so that $LINENO is not a special
29434 # case at line end.
29435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29436 # scripts with optimization help from Paolo Bonzini. Blame Lee
29437 # E. McMahon (1931-1989) for sed's syntax. :-)
29449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29452 ' >$as_me.lineno &&
29453 chmod +x "$as_me.lineno" ||
29454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29455 { (exit 1); exit 1; }; }
29457 # Don't try to exec as it changes $[0], causing all sort of problems
29458 # (the dirname of $[0] is not the place where we might find the
29459 # original and so on. Autoconf is especially sensitive to this).
29460 . "./$as_me.lineno"
29461 # Exit status is that of the last command.
29466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29472 ECHO_C= ECHO_N= ECHO_T=
29473 case `echo -n x` in
29475 case `echo 'x\c'` in
29476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29482 if expr a : '\(a\)' >/dev/null 2>&1 &&
29483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29489 rm -f conf$$ conf$$.exe conf$$.file
29490 if test -d conf$$.dir; then
29491 rm -f conf$$.dir/conf$$.file
29494 mkdir conf$$.dir 2>/dev/null
29496 if (echo >conf$$.file) 2>/dev/null; then
29497 if ln -s conf$$.file conf$$ 2>/dev/null; then
29499 # ... but there are two gotchas:
29500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29502 # In both cases, we have to default to `cp -p'.
29503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29505 elif ln conf$$.file conf$$ 2>/dev/null; then
29513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29514 rmdir conf$$.dir 2>/dev/null
29516 if mkdir -p . 2>/dev/null; then
29519 test -d ./-p && rmdir ./-p
29523 if test -x / >/dev/null 2>&1; then
29524 as_test_x='test -x'
29526 if ls -dL / >/dev/null 2>&1; then
29533 if test -d "$1"; then
29539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29540 ???[sx]*):;;*)false;;esac;fi
29544 as_executable_p=$as_test_x
29546 # Sed expression to map a string onto a valid CPP name.
29547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29549 # Sed expression to map a string onto a valid variable name.
29550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29555 # Save the log message, to keep $[0] and so on meaningful, and to
29556 # report actual input values of CONFIG_FILES etc. instead of their
29557 # values after options handling.
29559 This file was extended by PostgreSQL $as_me 9.0.4, which was
29560 generated by GNU Autoconf 2.63. Invocation command line was
29562 CONFIG_FILES = $CONFIG_FILES
29563 CONFIG_HEADERS = $CONFIG_HEADERS
29564 CONFIG_LINKS = $CONFIG_LINKS
29565 CONFIG_COMMANDS = $CONFIG_COMMANDS
29568 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29573 case $ac_config_files in *"
29574 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29577 case $ac_config_headers in *"
29578 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29583 # Files that config.status was made for.
29584 config_files="$ac_config_files"
29585 config_headers="$ac_config_headers"
29586 config_links="$ac_config_links"
29587 config_commands="$ac_config_commands"
29591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29593 \`$as_me' instantiates files from templates according to the
29594 current configuration.
29596 Usage: $0 [OPTION]... [FILE]...
29598 -h, --help print this help, then exit
29599 -V, --version print version number and configuration settings, then exit
29600 -q, --quiet, --silent
29601 do not print progress messages
29602 -d, --debug don't remove temporary files
29603 --recheck update $as_me by reconfiguring in the same conditions
29604 --file=FILE[:TEMPLATE]
29605 instantiate the configuration file FILE
29606 --header=FILE[:TEMPLATE]
29607 instantiate the configuration header FILE
29609 Configuration files:
29612 Configuration headers:
29615 Configuration links:
29618 Configuration commands:
29621 Report bugs to <bug-autoconf@gnu.org>."
29624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29626 PostgreSQL config.status 9.0.4
29627 configured by $0, generated by GNU Autoconf 2.63,
29628 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29630 Copyright (C) 2008 Free Software Foundation, Inc.
29631 This config.status script is free software; the Free Software Foundation
29632 gives unlimited permission to copy, distribute and modify it."
29638 test -n "\$AWK" || AWK=awk
29641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29642 # The default lists apply if the user does not specify any file.
29648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29660 # Handling of the options.
29661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29664 $as_echo "$ac_cs_version"; exit ;;
29665 --debug | --debu | --deb | --de | --d | -d )
29667 --file | --fil | --fi | --f )
29670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29672 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29673 ac_need_defaults=false;;
29674 --header | --heade | --head | --hea )
29677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29679 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29680 ac_need_defaults=false;;
29682 # Conflict between --help and --header
29683 { $as_echo "$as_me: error: ambiguous option: $1
29684 Try \`$0 --help' for more information." >&2
29685 { (exit 1); exit 1; }; };;
29686 --help | --hel | -h )
29687 $as_echo "$ac_cs_usage"; exit ;;
29688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29692 # This is an error.
29693 -*) { $as_echo "$as_me: error: unrecognized option: $1
29694 Try \`$0 --help' for more information." >&2
29695 { (exit 1); exit 1; }; } ;;
29697 *) ac_config_targets="$ac_config_targets $1"
29698 ac_need_defaults=false ;;
29704 ac_configure_extra_args=
29706 if $ac_cs_silent; then
29708 ac_configure_extra_args="$ac_configure_extra_args --silent"
29712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29713 if \$ac_cs_recheck; then
29714 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29717 CONFIG_SHELL='$SHELL'
29718 export CONFIG_SHELL
29723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29728 ## Running $as_me. ##
29734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29739 # Handling of arguments.
29740 for ac_config_target in $ac_config_targets
29742 case $ac_config_target in
29743 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29744 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29745 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29746 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29747 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29748 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29749 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
29750 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29751 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29752 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29753 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29754 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29755 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29757 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29758 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29759 { (exit 1); exit 1; }; };;
29764 # If the user did not use the arguments to specify the items to instantiate,
29765 # then the envvar interface is used. Set only those that are not.
29766 # We use the long form for the default assignment because of an extremely
29767 # bizarre bug on SunOS 4.1.3.
29768 if $ac_need_defaults; then
29769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29771 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29772 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29775 # Have a temporary directory for convenience. Make it in the build tree
29776 # simply because there is no reason against having it here, and in addition,
29777 # creating and moving files from /tmp can sometimes cause problems.
29778 # Hook for its removal unless debugging.
29779 # Note that there is a small window in which the directory will not be cleaned:
29780 # after its creation but before its name has been assigned to `$tmp'.
29784 trap 'exit_status=$?
29785 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29787 trap '{ (exit 1); exit 1; }' 1 2 13 15
29789 # Create a (secure) tmp directory for tmp files.
29792 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29793 test -n "$tmp" && test -d "$tmp"
29796 tmp=./conf$$-$RANDOM
29797 (umask 077 && mkdir "$tmp")
29800 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29801 { (exit 1); exit 1; }
29804 # Set up the scripts for CONFIG_FILES section.
29805 # No need to generate them if there are no CONFIG_FILES.
29806 # This happens for instance with `./config.status config.h'.
29807 if test -n "$CONFIG_FILES"; then
29811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29815 ac_cs_awk_cr=$ac_cr
29818 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29823 echo "cat >conf$$subs.awk <<_ACEOF" &&
29824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29826 } >conf$$subs.sh ||
29827 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29828 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29829 { (exit 1); exit 1; }; }
29830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29832 for ac_last_try in false false false false false :; do
29833 . ./conf$$subs.sh ||
29834 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29835 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29836 { (exit 1); exit 1; }; }
29838 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29839 if test $ac_delim_n = $ac_delim_num; then
29841 elif $ac_last_try; then
29842 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29843 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29844 { (exit 1); exit 1; }; }
29846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29849 rm -f conf$$subs.sh
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29856 s/^/S["/; s/!.*/"]=/
29866 s/\(.\{148\}\).*/\1/
29868 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29880 s/\(.\{148\}\).*/\1/
29882 s/["\\]/\\&/g; s/^/"/; s/$/"/
29886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29891 ' <conf$$subs.awk | sed '
29896 ' >>$CONFIG_STATUS || ac_write_fail=1
29897 rm -f conf$$subs.awk
29898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29900 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29901 for (key in S) S_is_set[key] = 1
29907 nfields = split(line, field, "@")
29909 len = length(field[1])
29910 for (i = 2; i < nfields; i++) {
29912 keylen = length(key)
29913 if (S_is_set[key]) {
29915 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29916 len += length(value) + length(field[++i])
29927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29928 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29929 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29932 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29933 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29934 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29935 { (exit 1); exit 1; }; }
29938 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29939 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29940 # trailing colons and then remove the whole line if VPATH becomes empty
29941 # (actually we leave an empty line to preserve line numbers).
29942 if test "x$srcdir" = x.; then
29943 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29944 s/:*\$(srcdir):*/:/
29945 s/:*\${srcdir}:*/:/
29947 s/^\([^=]*=[ ]*\):*/\1/
29953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29954 fi # test -n "$CONFIG_FILES"
29956 # Set up the scripts for CONFIG_HEADERS section.
29957 # No need to generate them if there are no CONFIG_HEADERS.
29958 # This happens for instance with `./config.status Makefile'.
29959 if test -n "$CONFIG_HEADERS"; then
29960 cat >"$tmp/defines.awk" <<\_ACAWK ||
29964 # Transform confdefs.h into an awk script `defines.awk', embedded as
29965 # here-document in config.status, that substitutes the proper values into
29966 # config.h.in to produce config.h.
29968 # Create a delimiter string that does not exist in confdefs.h, to ease
29969 # handling of long lines.
29971 for ac_last_try in false false :; do
29972 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29973 if test -z "$ac_t"; then
29975 elif $ac_last_try; then
29976 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29977 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29978 { (exit 1); exit 1; }; }
29980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29984 # For the awk script, D is an array of macro values keyed by name,
29985 # likewise P contains macro parameters if any. Preserve backslash
29986 # newline sequences.
29988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29990 s/.\{148\}/&'"$ac_delim"'/g
29993 s/^[ ]*#[ ]*define[ ][ ]*/ /
30000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30007 D["\1"]=" \3\\\\\\n"\\/p
30009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30014 s/.\{148\}/&'"$ac_delim"'/g
30019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30024 ' <confdefs.h | sed '
30025 s/'"$ac_delim"'/"\\\
30026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30029 for (key in D) D_is_set[key] = 1
30032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30034 split(line, arg, " ")
30035 if (arg[1] == "#") {
30039 defundef = substr(arg[1], 2)
30042 split(mac1, mac2, "(") #)
30044 prefix = substr(line, 1, index(line, defundef) - 1)
30045 if (D_is_set[macro]) {
30046 # Preserve the white space surrounding the "#".
30047 print prefix "define", macro P[macro] D[macro]
30050 # Replace #undef with comments. This is necessary, for example,
30051 # in the case of _POSIX_SOURCE, which is predefined and required
30052 # on some systems where configure will not decide to define it.
30053 if (defundef == "undef") {
30054 print "/*", prefix defundef, macro, "*/"
30062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30063 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30064 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30065 { (exit 1); exit 1; }; }
30066 fi # test -n "$CONFIG_HEADERS"
30069 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30074 :[FHLC]) ac_mode=$ac_tag; continue;;
30076 case $ac_mode$ac_tag in
30078 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30079 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30080 { (exit 1); exit 1; }; };;
30081 :[FH]-) ac_tag=-:-;;
30082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30099 -) ac_f="$tmp/stdin";;
30100 *) # Look for the file first in the build tree, then in the source tree
30101 # (if the path is not absolute). The absolute path cannot be DOS-style,
30102 # because $ac_f cannot contain `:'.
30106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30108 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30109 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30110 { (exit 1); exit 1; }; };;
30112 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30113 ac_file_inputs="$ac_file_inputs '$ac_f'"
30116 # Let's still pretend it is `configure' which instantiates (i.e., don't
30117 # use $as_me), people would be surprised to read:
30118 # /* config.h. Generated by config.status. */
30119 configure_input='Generated from '`
30120 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30122 if test x"$ac_file" != x-; then
30123 configure_input="$ac_file. $configure_input"
30124 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30125 $as_echo "$as_me: creating $ac_file" >&6;}
30127 # Neutralize special characters interpreted by sed in replacement strings.
30128 case $configure_input in #(
30129 *\&* | *\|* | *\\* )
30130 ac_sed_conf_input=`$as_echo "$configure_input" |
30131 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30132 *) ac_sed_conf_input=$configure_input;;
30136 *:-:* | *:-) cat >"$tmp/stdin" \
30137 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30138 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30139 { (exit 1); exit 1; }; } ;;
30144 ac_dir=`$as_dirname -- "$ac_file" ||
30145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30146 X"$ac_file" : 'X\(//\)[^/]' \| \
30147 X"$ac_file" : 'X\(//\)$' \| \
30148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30149 $as_echo X"$ac_file" |
30150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30154 /^X\(\/\/\)[^/].*/{
30169 -*) as_dir=./$as_dir;;
30171 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30176 *) as_qdir=$as_dir;;
30178 as_dirs="'$as_qdir' $as_dirs"
30179 as_dir=`$as_dirname -- "$as_dir" ||
30180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30181 X"$as_dir" : 'X\(//\)[^/]' \| \
30182 X"$as_dir" : 'X\(//\)$' \| \
30183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30184 $as_echo X"$as_dir" |
30185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30189 /^X\(\/\/\)[^/].*/{
30202 test -d "$as_dir" && break
30204 test -z "$as_dirs" || eval "mkdir $as_dirs"
30205 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30206 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30207 { (exit 1); exit 1; }; }; }
30211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30213 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30214 # A ".." for each directory in $ac_dir_suffix.
30215 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30216 case $ac_top_builddir_sub in
30217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30221 ac_abs_top_builddir=$ac_pwd
30222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30223 # for backward compatibility:
30224 ac_top_builddir=$ac_top_build_prefix
30227 .) # We are building in place.
30229 ac_top_srcdir=$ac_top_builddir_sub
30230 ac_abs_top_srcdir=$ac_pwd ;;
30231 [\\/]* | ?:[\\/]* ) # Absolute name.
30232 ac_srcdir=$srcdir$ac_dir_suffix;
30233 ac_top_srcdir=$srcdir
30234 ac_abs_top_srcdir=$srcdir ;;
30235 *) # Relative name.
30236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30237 ac_top_srcdir=$ac_top_build_prefix$srcdir
30238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30249 ac_MKDIR_P=$MKDIR_P
30251 [\\/$]* | ?:[\\/]* ) ;;
30252 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30257 # If the template does not know about datarootdir, expand it.
30258 # FIXME: This hack should be removed a few years after 2.60.
30259 ac_datarootdir_hack=; ac_datarootdir_seen=
30272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30273 *datarootdir*) ac_datarootdir_seen=yes;;
30274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30275 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30279 ac_datarootdir_hack='
30280 s&@datadir@&$datadir&g
30281 s&@docdir@&$docdir&g
30282 s&@infodir@&$infodir&g
30283 s&@localedir@&$localedir&g
30284 s&@mandir@&$mandir&g
30285 s&\\\${datarootdir}&$datarootdir&g' ;;
30289 # Neutralize VPATH when `$srcdir' = `.'.
30290 # Shell code in configure.ac might set extrasub.
30291 # FIXME: do we really want to maintain this feature?
30292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30293 ac_sed_extra="$ac_vpsub
30296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30299 s|@configure_input@|$ac_sed_conf_input|;t t
30300 s&@top_builddir@&$ac_top_builddir_sub&;t t
30301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30302 s&@srcdir@&$ac_srcdir&;t t
30303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30304 s&@top_srcdir@&$ac_top_srcdir&;t t
30305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30306 s&@builddir@&$ac_builddir&;t t
30307 s&@abs_builddir@&$ac_abs_builddir&;t t
30308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30309 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30310 $ac_datarootdir_hack
30312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30315 { (exit 1); exit 1; }; }
30317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30318 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30320 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30321 which seems to be undefined. Please make sure it is defined." >&5
30322 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30323 which seems to be undefined. Please make sure it is defined." >&2;}
30327 -) cat "$tmp/out" && rm -f "$tmp/out";;
30328 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30330 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30331 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30332 { (exit 1); exit 1; }; }
30338 if test x"$ac_file" != x-; then
30340 $as_echo "/* $configure_input */" \
30341 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30342 } >"$tmp/config.h" \
30343 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30344 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30345 { (exit 1); exit 1; }; }
30346 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30347 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30351 mv "$tmp/config.h" "$ac_file" \
30352 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30353 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30354 { (exit 1); exit 1; }; }
30357 $as_echo "/* $configure_input */" \
30358 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30359 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30360 $as_echo "$as_me: error: could not create -" >&2;}
30361 { (exit 1); exit 1; }; }
30369 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30372 # Prefer the file from the source tree if names are identical.
30373 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30374 ac_source=$srcdir/$ac_source
30377 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30378 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30380 if test ! -r "$ac_source"; then
30381 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30382 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30383 { (exit 1); exit 1; }; }
30387 # Try a relative symlink, then a hard link, then a copy.
30389 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30390 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30392 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30393 ln "$ac_source" "$ac_file" 2>/dev/null ||
30394 cp -p "$ac_source" "$ac_file" ||
30395 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30396 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30397 { (exit 1); exit 1; }; }
30400 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30401 $as_echo "$as_me: executing $ac_file commands" >&6;}
30406 case $ac_file$ac_mode in
30407 "check_win32_symlinks":C)
30408 # Links sometimes fail undetected on Mingw -
30409 # so here we detect it and warn the user
30410 for FILE in $CONFIG_LINKS
30412 # test -e works for symlinks in the MinGW console
30413 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30414 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30417 "src/include/pg_config.h":H)
30418 # Update timestamp for pg_config.h (see Makefile.global)
30419 echo >src/include/stamp-h
30421 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30427 { (exit 0); exit 0; }
30429 chmod +x $CONFIG_STATUS
30430 ac_clean_files=$ac_clean_files_save
30432 test $ac_write_fail = 0 ||
30433 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30434 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30435 { (exit 1); exit 1; }; }
30438 # configure is writing to config.log, and then calls config.status.
30439 # config.status does its own redirection, appending to config.log.
30440 # Unfortunately, on DOS this fails, as config.log is still kept open
30441 # by configure, so config.status won't be able to write to it; its
30442 # output is simply discarded. So we exec the FD to /dev/null,
30443 # effectively closing config.log, so it can be properly (re)opened and
30444 # appended to by config.status. When coming back to configure, we
30445 # need to make the FD available again.
30446 if test "$no_create" != yes; then
30448 ac_config_status_args=
30449 test "$silent" = yes &&
30450 ac_config_status_args="$ac_config_status_args --quiet"
30452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30455 # would make configure fail if this is the last instruction.
30456 $ac_cs_success || { (exit 1); exit 1; }
30458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30459 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}