2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.2devel.
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-2012, 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.2devel'
602 PACKAGE_STRING='PostgreSQL 9.2devel'
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
675 python_additional_libs
795 program_transform_name
807 enable_option_checking
812 enable_integer_datetimes
843 with_libedit_preferred
854 ac_precious_vars='build_alias
868 # Initialize some variables set by options.
870 ac_init_version=false
871 ac_unrecognized_opts=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1176 -site=* | --site=* | --sit=*)
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1234 eval with_$ac_useropt=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1289 { (exit 1); exit 1; }; } ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1307 # Be sure to have absolute directory names.
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures PostgreSQL 9.2devel to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of PostgreSQL 9.2devel:";;
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-integer-datetimes
1492 disable 64-bit integer date/time support
1493 --enable-nls[=LANGUAGES]
1494 enable Native Language Support
1495 --disable-shared do not build shared libraries
1496 --disable-rpath do not embed shared library search path in
1498 --disable-spinlocks do not use spinlocks
1499 --enable-debug build with debugging symbols (-g)
1500 --enable-profiling build with profiling enabled
1501 --enable-coverage build with coverage testing instrumentation
1502 --enable-dtrace build with DTrace support
1503 --enable-depend turn on automatic dependency tracking
1504 --enable-cassert enable assertion checks (for debugging)
1505 --disable-thread-safety disable thread-safety in client libraries
1506 --disable-largefile omit support for large files
1507 --disable-float4-byval disable float4 passed by value
1508 --disable-float8-byval disable float8 passed by value
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-template=NAME override operating system template
1514 --with-includes=DIRS look for additional header files in DIRS
1515 --with-libraries=DIRS look for additional libraries in DIRS
1516 --with-libs=DIRS alternative spelling of --with-libraries
1517 --with-pgport=PORTNUM set default port number [5432]
1518 --with-blocksize=BLOCKSIZE
1519 set table block size in kB [8]
1520 --with-segsize=SEGSIZE set table segment size in GB [1]
1521 --with-wal-blocksize=BLOCKSIZE
1522 set WAL block size in kB [8]
1523 --with-wal-segsize=SEGSIZE
1524 set WAL segment size in MB [16]
1525 --with-CC=CMD set compiler (deprecated)
1526 --with-tcl build Tcl modules (PL/Tcl)
1527 --with-tclconfig=DIR tclConfig.sh is in DIR
1528 --with-perl build Perl modules (PL/Perl)
1529 --with-python build Python modules (PL/Python)
1530 --with-gssapi build with GSSAPI support
1531 --with-krb5 build with Kerberos 5 support
1532 --with-krb-srvnam=NAME default service principal name in Kerberos
1534 --with-pam build with PAM support
1535 --with-ldap build with LDAP support
1536 --with-bonjour build with Bonjour support
1537 --with-openssl build with OpenSSL support
1538 --with-selinux build with SELinux support
1539 --without-readline do not use GNU Readline nor BSD Libedit for editing
1540 --with-libedit-preferred
1541 prefer BSD Libedit over GNU Readline
1542 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1543 --with-libxml build with XML support
1544 --with-libxslt use XSLT support when building contrib/xml2
1545 --with-system-tzdata=DIR
1546 use system time zone data in DIR
1547 --without-zlib do not use Zlib
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 LDFLAGS_EX extra linker flags for linking executables only
1560 LDFLAGS_SL extra linker flags for linking shared libraries only
1562 location of DocBook stylesheets
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1567 Report bugs to <pgsql-bugs@postgresql.org>.
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1597 .) # We are building in place.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1630 PostgreSQL configure 9.2devel
1631 generated by GNU Autoconf 2.63
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1638 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1646 It was created by PostgreSQL $as_me 9.2devel, which was
1647 generated by GNU Autoconf 2.63. Invocation command line was
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1669 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1672 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1673 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1674 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 test -z "$as_dir" && as_dir=.
1683 $as_echo "PATH: $as_dir"
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1707 ac_must_keep_next=false
1713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1718 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724 if test $ac_must_keep_next = true; then
1725 ac_must_keep_next=false # Got value, back to normal.
1728 *=* | --config-cache | -C | -disable-* | --disable-* \
1729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731 | -with-* | --with-* | -without-* | --without-* | --x)
1732 case "$ac_configure_args0 " in
1733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1736 -* ) ac_must_keep_next=true ;;
1739 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log. We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753 # Save into config.log some information that might help in debugging.
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1763 # The following way of writing the cache mishandles newlines in values,
1765 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766 eval ac_val=\$$ac_var
1770 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1774 _ | IFS | as_nl) ;; #(
1775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1776 *) $as_unset $ac_var ;;
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1801 for ac_var in $ac_subst_vars
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 $as_echo "$ac_var='\''$ac_val'\''"
1811 if test -n "$ac_subst_files"; then
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1818 for ac_var in $ac_subst_files
1820 eval ac_val=\$$ac_var
1822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1824 $as_echo "$ac_var='\''$ac_val'\''"
1829 if test -s confdefs.h; then
1839 test "$ac_signal" != 0 &&
1840 $as_echo "$as_me: caught signal $ac_signal"
1841 $as_echo "$as_me: exit $exit_status"
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1855 # Predefined preprocessor variables.
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer an explicitly selected file to automatically selected ones.
1886 if test -n "$CONFIG_SITE"; then
1887 ac_site_file1=$CONFIG_SITE
1888 elif test "x$prefix" != xNONE; then
1889 ac_site_file1=$prefix/share/config.site
1890 ac_site_file2=$prefix/etc/config.site
1892 ac_site_file1=$ac_default_prefix/share/config.site
1893 ac_site_file2=$ac_default_prefix/etc/config.site
1895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1897 test "x$ac_site_file" = xNONE && continue
1898 if test -r "$ac_site_file"; then
1899 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 $as_echo "$as_me: loading cache $cache_file" >&6;}
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1918 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 $as_echo "$as_me: creating cache $cache_file" >&6;}
1923 # Check that the precious variables saved in the cache have kept the same
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 # differences in whitespace do not lead to failure.
1944 ac_old_val_w=`echo x $ac_old_val`
1945 ac_new_val_w=`echo x $ac_new_val`
1946 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949 ac_cache_corrupted=:
1951 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1953 eval $ac_var=\$ac_old_val
1955 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1956 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1957 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1958 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 *) ac_arg=$ac_var=$ac_new_val ;;
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973 if $ac_cache_corrupted; then
1974 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1978 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1979 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1980 { (exit 1); exit 1; }; }
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 for ac_dir in config "$srcdir"/config; do
2020 if test -f "$ac_dir/install-sh"; then
2022 ac_install_sh="$ac_aux_dir/install-sh -c"
2024 elif test -f "$ac_dir/install.sh"; then
2026 ac_install_sh="$ac_aux_dir/install.sh -c"
2028 elif test -f "$ac_dir/shtool"; then
2030 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 if test -z "$ac_aux_dir"; then
2035 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2036 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2037 { (exit 1); exit 1; }; }
2040 # These three variables are undocumented and unsupported,
2041 # and are intended to be withdrawn in a future Autoconf release.
2042 # They can cause serious problems if a builder's source tree is in a directory
2043 # whose full name contains unusual characters.
2044 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2045 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2046 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050 configure_args=$ac_configure_args
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_VERSION "$PACKAGE_VERSION"
2058 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2061 cat >>confdefs.h <<_ACEOF
2062 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070 { (exit 1); exit 1; }; }
2072 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2073 $as_echo_n "checking build system type... " >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075 $as_echo_n "(cached) " >&6
2077 ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083 { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 $as_echo "$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2094 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2096 { (exit 1); exit 1; }; };;
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2113 $as_echo_n "checking host system type... " >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115 $as_echo_n "(cached) " >&6
2117 if test "x$host_alias" = x; then
2118 ac_cv_host=$ac_cv_build
2120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123 { (exit 1); exit 1; }; }
2127 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 $as_echo "$ac_cv_host" >&6; }
2131 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2133 { (exit 1); exit 1; }; };;
2136 ac_save_IFS=$IFS; IFS='-'
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2151 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2152 $as_echo_n "checking which template to use... " >&6; }
2157 # Check whether --with-template was given.
2158 if test "${with_template+set}" = set; then
2159 withval=$with_template;
2162 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2168 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2169 { (exit 1); exit 1; }; }
2174 list) echo; ls "$srcdir/src/template"; exit;;
2175 *) if test -f "$srcdir/src/template/$with_template" ; then
2178 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2179 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2180 { (exit 1); exit 1; }; }
2189 # --with-template not given
2192 aix*) template=aix ;;
2193 bsdi*) template=bsdi ;;
2194 cygwin*) template=cygwin ;;
2195 darwin*) template=darwin ;;
2196 dragonfly*) template=netbsd ;;
2197 dgux*) template=dgux ;;
2198 freebsd*) template=freebsd ;;
2199 hpux*) template=hpux ;;
2200 irix*) template=irix ;;
2201 linux*|gnu*|k*bsd*-gnu)
2203 mingw*) template=win32 ;;
2204 netbsd*) template=netbsd ;;
2205 nextstep*) template=nextstep ;;
2206 openbsd*) template=openbsd ;;
2207 osf*) template=osf ;;
2208 sco*) template=sco ;;
2209 solaris*) template=solaris ;;
2210 sunos*) template=sunos4 ;;
2212 case $host_vendor in
2213 univel) template=univel ;;
2215 sysv4*) template=svr4 ;;
2216 sysv5*) template=unixware ;;
2217 ultrix*) template=ultrix4 ;;
2220 if test x"$template" = x"" ; then
2221 { { $as_echo "$as_me:$LINENO: error:
2222 *******************************************************************
2223 PostgreSQL has apparently not been ported to your platform yet.
2224 To try a manual configuration, look into the src/template directory
2225 for a similar platform and use the '--with-template=' option.
2227 Please also contact <pgsql-bugs@postgresql.org> to see about
2228 rectifying this. Include the above 'checking host system type...'
2230 *******************************************************************
2232 $as_echo "$as_me: error:
2233 *******************************************************************
2234 PostgreSQL has apparently not been ported to your platform yet.
2235 To try a manual configuration, look into the src/template directory
2236 for a similar platform and use the '--with-template=' option.
2238 Please also contact <pgsql-bugs@postgresql.org> to see about
2239 rectifying this. Include the above 'checking host system type...'
2241 *******************************************************************
2243 { (exit 1); exit 1; }; }
2251 { $as_echo "$as_me:$LINENO: result: $template" >&5
2252 $as_echo "$template" >&6; }
2257 # Initialize default assumption that we do not need separate assembly code
2258 # for TAS (test-and-set). This can be overridden by the template file
2259 # when it's executed.
2266 ## Command line options
2270 # Add non-standard directories to the include path
2275 # Check whether --with-includes was given.
2276 if test "${with_includes+set}" = set; then
2277 withval=$with_includes;
2280 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282 { (exit 1); exit 1; }; }
2285 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2286 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2287 { (exit 1); exit 1; }; }
2300 # Add non-standard directories to the library search path
2305 # Check whether --with-libraries was given.
2306 if test "${with_libraries+set}" = set; then
2307 withval=$with_libraries;
2310 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312 { (exit 1); exit 1; }; }
2315 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2316 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 LIBRARY_DIRS=$withval
2331 # Check whether --with-libs was given.
2332 if test "${with_libs+set}" = set; then
2336 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338 { (exit 1); exit 1; }; }
2341 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2342 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2343 { (exit 1); exit 1; }; }
2346 LIBRARY_DIRS=$withval
2356 # 64-bit integer date/time storage: enabled by default.
2358 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2359 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2362 # Check whether --enable-integer-datetimes was given.
2363 if test "${enable_integer_datetimes+set}" = set; then
2364 enableval=$enable_integer_datetimes;
2368 cat >>confdefs.h <<\_ACEOF
2369 #define USE_INTEGER_DATETIMES 1
2377 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2378 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2379 { (exit 1); exit 1; }; }
2384 enable_integer_datetimes=yes
2386 cat >>confdefs.h <<\_ACEOF
2387 #define USE_INTEGER_DATETIMES 1
2393 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2394 $as_echo "$enable_integer_datetimes" >&6; }
2400 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2401 $as_echo_n "checking whether NLS is wanted... " >&6; }
2404 # Check whether --enable-nls was given.
2405 if test "${enable_nls+set}" = set; then
2406 enableval=$enable_nls;
2416 WANTED_LANGUAGES=$enableval
2426 if test "$enable_nls" = yes; then
2428 cat >>confdefs.h <<\_ACEOF
2429 #define ENABLE_NLS 1
2434 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2435 $as_echo "$enable_nls" >&6; }
2440 # Default port number (--with-pgport), default 5432
2442 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2443 $as_echo_n "checking for default port number... " >&6; }
2447 # Check whether --with-pgport was given.
2448 if test "${with_pgport+set}" = set; then
2449 withval=$with_pgport;
2452 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454 { (exit 1); exit 1; }; }
2457 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2458 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2459 { (exit 1); exit 1; }; }
2462 default_port=$withval
2471 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2472 $as_echo "$default_port" >&6; }
2473 # Need both of these because some places want an integer and some a string
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT ${default_port}
2480 cat >>confdefs.h <<_ACEOF
2481 #define DEF_PGPORT_STR "${default_port}"
2487 # Option to disable shared libraries
2491 # Check whether --enable-shared was given.
2492 if test "${enable_shared+set}" = set; then
2493 enableval=$enable_shared;
2502 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2503 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2504 { (exit 1); exit 1; }; }
2517 # '-rpath'-like feature can be disabled
2521 # Check whether --enable-rpath was given.
2522 if test "${enable_rpath+set}" = set; then
2523 enableval=$enable_rpath;
2532 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2533 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2534 { (exit 1); exit 1; }; }
2551 # Check whether --enable-spinlocks was given.
2552 if test "${enable_spinlocks+set}" = set; then
2553 enableval=$enable_spinlocks;
2562 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2563 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2564 { (exit 1); exit 1; }; }
2569 enable_spinlocks=yes
2576 # --enable-debug adds -g to compiler flags
2580 # Check whether --enable-debug was given.
2581 if test "${enable_debug+set}" = set; then
2582 enableval=$enable_debug;
2591 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2592 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2593 { (exit 1); exit 1; }; }
2606 # --enable-profiling enables gcc profiling
2610 # Check whether --enable-profiling was given.
2611 if test "${enable_profiling+set}" = set; then
2612 enableval=$enable_profiling;
2621 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2622 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2623 { (exit 1); exit 1; }; }
2636 # --enable-coverage enables generation of code coverage metrics with gcov
2640 # Check whether --enable-coverage was given.
2641 if test "${enable_coverage+set}" = set; then
2642 enableval=$enable_coverage;
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_GCOV+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$GCOV"; then
2655 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_GCOV="$ac_prog"
2665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 GCOV=$ac_cv_prog_GCOV
2675 if test -n "$GCOV"; then
2676 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2677 $as_echo "$GCOV" >&6; }
2679 { $as_echo "$as_me:$LINENO: result: no" >&5
2680 $as_echo "no" >&6; }
2684 test -n "$GCOV" && break
2687 if test -z "$GCOV"; then
2688 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2689 $as_echo "$as_me: error: gcov not found" >&2;}
2690 { (exit 1); exit 1; }; }
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_LCOV+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$LCOV"; then
2702 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_LCOV="$ac_prog"
2712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 LCOV=$ac_cv_prog_LCOV
2722 if test -n "$LCOV"; then
2723 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2724 $as_echo "$LCOV" >&6; }
2726 { $as_echo "$as_me:$LINENO: result: no" >&5
2727 $as_echo "no" >&6; }
2731 test -n "$LCOV" && break
2734 if test -z "$LCOV"; then
2735 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2736 $as_echo "$as_me: error: lcov not found" >&2;}
2737 { (exit 1); exit 1; }; }
2739 for ac_prog in genhtml
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy $ac_prog; ac_word=$2
2743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_GENHTML+set}" = set; then
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$GENHTML"; then
2749 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_GENHTML="$ac_prog"
2759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 GENHTML=$ac_cv_prog_GENHTML
2769 if test -n "$GENHTML"; then
2770 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2771 $as_echo "$GENHTML" >&6; }
2773 { $as_echo "$as_me:$LINENO: result: no" >&5
2774 $as_echo "no" >&6; }
2778 test -n "$GENHTML" && break
2781 if test -z "$GENHTML"; then
2782 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2783 $as_echo "$as_me: error: genhtml not found" >&2;}
2784 { (exit 1); exit 1; }; }
2791 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2792 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2793 { (exit 1); exit 1; }; }
2810 # Check whether --enable-dtrace was given.
2811 if test "${enable_dtrace+set}" = set; then
2812 enableval=$enable_dtrace;
2816 cat >>confdefs.h <<\_ACEOF
2817 #define ENABLE_DTRACE 1
2820 for ac_prog in dtrace
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_DTRACE+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$DTRACE"; then
2830 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_DTRACE="$ac_prog"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 DTRACE=$ac_cv_prog_DTRACE
2850 if test -n "$DTRACE"; then
2851 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2852 $as_echo "$DTRACE" >&6; }
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2859 test -n "$DTRACE" && break
2862 if test -z "$DTRACE"; then
2863 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2864 $as_echo "$as_me: error: dtrace not found" >&2;}
2865 { (exit 1); exit 1; }; }
2873 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2874 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2875 { (exit 1); exit 1; }; }
2890 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2891 $as_echo_n "checking for block size... " >&6; }
2895 # Check whether --with-blocksize was given.
2896 if test "${with_blocksize+set}" = set; then
2897 withval=$with_blocksize;
2900 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902 { (exit 1); exit 1; }; }
2905 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2906 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2907 { (exit 1); exit 1; }; }
2919 case ${blocksize} in
2926 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2927 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2928 { (exit 1); exit 1; }; }
2930 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2931 $as_echo "${blocksize}kB" >&6; }
2934 cat >>confdefs.h <<_ACEOF
2935 #define BLCKSZ ${BLCKSZ}
2940 # Relation segment size
2942 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2943 $as_echo_n "checking for segment size... " >&6; }
2947 # Check whether --with-segsize was given.
2948 if test "${with_segsize+set}" = set; then
2949 withval=$with_segsize;
2952 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954 { (exit 1); exit 1; }; }
2957 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2958 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2959 { (exit 1); exit 1; }; }
2971 # this expression is set up to avoid unnecessary integer overflow
2972 # blocksize is already guaranteed to be a factor of 1024
2973 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2974 test $? -eq 0 || exit 1
2975 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2976 $as_echo "${segsize}GB" >&6; }
2979 cat >>confdefs.h <<_ACEOF
2980 #define RELSEG_SIZE ${RELSEG_SIZE}
2987 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2988 $as_echo_n "checking for WAL block size... " >&6; }
2992 # Check whether --with-wal-blocksize was given.
2993 if test "${with_wal_blocksize+set}" = set; then
2994 withval=$with_wal_blocksize;
2997 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999 { (exit 1); exit 1; }; }
3002 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3003 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3004 { (exit 1); exit 1; }; }
3007 wal_blocksize=$withval
3016 case ${wal_blocksize} in
3017 1) XLOG_BLCKSZ=1024;;
3018 2) XLOG_BLCKSZ=2048;;
3019 4) XLOG_BLCKSZ=4096;;
3020 8) XLOG_BLCKSZ=8192;;
3021 16) XLOG_BLCKSZ=16384;;
3022 32) XLOG_BLCKSZ=32768;;
3023 64) XLOG_BLCKSZ=65536;;
3024 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3025 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3026 { (exit 1); exit 1; }; }
3028 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3029 $as_echo "${wal_blocksize}kB" >&6; }
3032 cat >>confdefs.h <<_ACEOF
3033 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3040 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3041 $as_echo_n "checking for WAL segment size... " >&6; }
3045 # Check whether --with-wal-segsize was given.
3046 if test "${with_wal_segsize+set}" = set; then
3047 withval=$with_wal_segsize;
3050 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052 { (exit 1); exit 1; }; }
3055 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3056 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3057 { (exit 1); exit 1; }; }
3060 wal_segsize=$withval
3069 case ${wal_segsize} in
3077 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3078 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3079 { (exit 1); exit 1; }; }
3081 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3082 $as_echo "${wal_segsize}MB" >&6; }
3085 cat >>confdefs.h <<_ACEOF
3086 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3094 # For historical reasons you can also use --with-CC to specify the C compiler
3095 # to use, although the standard way to do this is to set the CC environment
3100 # Check whether --with-CC was given.
3101 if test "${with_CC+set}" = set; then
3105 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107 { (exit 1); exit 1; }; }
3110 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3111 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3112 { (exit 1); exit 1; }; }
3124 aix) pgac_cc_list="gcc xlc";;
3125 irix) pgac_cc_list="cc";; # no gcc
3126 *) pgac_cc_list="gcc cc";;
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in $pgac_cc_list
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CC" && break
3177 if test -z "$CC"; then
3179 for ac_prog in $pgac_cc_list
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3221 if test "x$ac_ct_CC" = x; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3235 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3238 See \`config.log' for more details." >&5
3239 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }; }
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3247 { (ac_try="$ac_compiler --version >&5"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compiler --version >&5") 2>&5
3256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258 { (ac_try="$ac_compiler -v >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compiler -v >&5") 2>&5
3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276 (eval "$ac_compiler -V >&5") 2>&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3301 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 for ac_file in $ac_files
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 if { (ac_try="$ac_link_default"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_link_default") 2>&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; then
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3365 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3374 See \`config.log' for more details." >&5
3375 $as_echo "$as_me: error: C compiler cannot create executables
3376 See \`config.log' for more details." >&2;}
3377 { (exit 77); exit 77; }; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3387 # If not cross compiling, check that we can run a simple program.
3388 if test "$cross_compiling" != yes; then
3389 if { ac_try='./$ac_file'
3390 { (case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3395 $as_echo "$ac_try_echo") >&5
3396 (eval "$ac_try") 2>&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 if test "$cross_compiling" = maybe; then
3405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }; }
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3421 ac_clean_files=$ac_clean_files_save
3422 # Check that the compiler produces executables we can run. If not, either
3423 # the compiler is broken, or we cross compile.
3424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3425 $as_echo_n "checking whether we are cross compiling... " >&6; }
3426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3430 $as_echo_n "checking for suffix of executables... " >&6; }
3431 if { (ac_try="$ac_link"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3437 $as_echo "$ac_try_echo") >&5
3438 (eval "$ac_link") 2>&5
3440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
3442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3444 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 for ac_file in conftest.exe conftest conftest.*; do
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&2;}
3462 { (exit 1); exit 1; }; }; }
3465 rm -f conftest$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3473 $as_echo_n "checking for suffix of object files... " >&6; }
3474 if test "${ac_cv_objext+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3492 rm -f conftest.o conftest.obj
3493 if { (ac_try="$ac_compile"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3499 $as_echo "$ac_try_echo") >&5
3500 (eval "$ac_compile") 2>&5
3502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; then
3504 for ac_file in conftest.o conftest.obj conftest.*; do
3505 test -f "$ac_file" || continue;
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3598 ac_save_c_werror_flag=$ac_c_werror_flag
3599 ac_c_werror_flag=yes
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest.$ac_objext; then
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3732 $as_echo "$ac_cv_prog_cc_g" >&6; }
3733 if test "$ac_test_CFLAGS" = set; then
3734 CFLAGS=$ac_save_CFLAGS
3735 elif test $ac_cv_prog_cc_g = yes; then
3736 if test "$GCC" = yes; then
3742 if test "$GCC" = yes; then
3748 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3749 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3750 if test "${ac_cv_prog_cc_c89+set}" = set; then
3751 $as_echo_n "(cached) " >&6
3753 ac_cv_prog_cc_c89=no
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3779 s = g (p, va_arg (v,int));
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3785 function prototypes and stuff, but not '\xHH' hex character constants.
3786 These don't provoke an error unfortunately, instead are silently treated
3787 as 'x'. The following induces an error, until -std is added to get
3788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3789 array size at least. It's necessary to write '\x00'==0 to get something
3790 that's true only with -std. */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794 inside strings and character constants. */
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815 CC="$ac_save_CC $ac_arg"
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 ac_cv_prog_cc_c89=$ac_arg
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3842 rm -f core conftest.err conftest.$ac_objext
3843 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 rm -f conftest.$ac_ext
3850 case "x$ac_cv_prog_cc_c89" in
3852 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3855 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3858 CC="$CC $ac_cv_prog_cc_c89"
3859 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3872 # but has idiosyncrasies of its own. We assume icc will define
3873 # __INTEL_COMPILER regardless of CFLAGS.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3885 #ifndef __INTEL_COMPILER
3892 rm -f conftest.$ac_objext
3893 if { (ac_try="$ac_compile"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899 $as_echo "$ac_try_echo") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 # Check if it's Sun Studio compiler. We assume that
3921 # __SUNPRO_C will be defined for Sun Studio compilers
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3946 $as_echo "$ac_try_echo") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3959 $as_echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 . "$srcdir/src/template/$template" || exit
3976 # CFLAGS are selected so:
3977 # If the user specifies something in the environment, that is used.
3978 # else: If the template file set something, that is used.
3979 # else: If coverage was enabled, don't set anything.
3980 # else: If the compiler is GCC, then we use -O2.
3981 # else: If the compiler is something else, then we use -O, unless debugging.
3983 if test "$ac_env_CFLAGS_set" = set; then
3984 CFLAGS=$ac_env_CFLAGS_value
3985 elif test "${CFLAGS+set}" = set; then
3986 : # (keep what template set)
3987 elif test "$enable_coverage" = yes; then
3988 : # no optimization by default
3989 elif test "$GCC" = yes; then
3992 # if the user selected debug mode, don't use -O
3993 if test "$enable_debug" != yes; then
3998 # Some versions of GCC support some additional useful warning flags.
3999 # Check whether they are supported, and add them to CFLAGS if so.
4000 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4001 # but has its own. Also check other compiler-specific flags here.
4003 if test "$GCC" = yes -a "$ICC" = no; then
4004 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4005 # These work in some but not all gcc versions
4006 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4007 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4008 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4009 $as_echo_n "(cached) " >&6
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4030 rm -f conftest.$ac_objext
4031 if { (ac_try="$ac_compile"
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4037 $as_echo "$ac_try_echo") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4048 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4050 $as_echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="$pgac_save_CFLAGS"
4060 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4061 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4062 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4063 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4066 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4067 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4068 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4069 $as_echo_n "(cached) " >&6
4071 pgac_save_CFLAGS=$CFLAGS
4072 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4090 rm -f conftest.$ac_objext
4091 if { (ac_try="$ac_compile"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 pgac_cv_prog_cc_cflags__Wendif_labels=no
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="$pgac_save_CFLAGS"
4120 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4121 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4122 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4123 CFLAGS="$CFLAGS -Wendif-labels"
4126 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4127 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4128 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4129 $as_echo_n "(cached) " >&6
4131 pgac_save_CFLAGS=$CFLAGS
4132 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4168 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178 CFLAGS="$pgac_save_CFLAGS"
4180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4181 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4182 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4183 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4186 # This was included in -Wall/-Wformat in older GCC versions
4187 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4188 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4189 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4190 $as_echo_n "(cached) " >&6
4192 pgac_save_CFLAGS=$CFLAGS
4193 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4194 ac_save_c_werror_flag=$ac_c_werror_flag
4195 ac_c_werror_flag=yes
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 pgac_cv_prog_cc_cflags__Wformat_security=yes
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 pgac_cv_prog_cc_cflags__Wformat_security=no
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="$pgac_save_CFLAGS"
4241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4242 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4243 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4244 CFLAGS="$CFLAGS -Wformat-security"
4247 # Disable strict-aliasing rules; needed for gcc 3.3+
4248 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4249 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4250 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4253 pgac_save_CFLAGS=$CFLAGS
4254 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="$pgac_save_CFLAGS"
4302 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4303 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4304 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4305 CFLAGS="$CFLAGS -fno-strict-aliasing"
4308 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4309 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4310 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4311 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4314 pgac_save_CFLAGS=$CFLAGS
4315 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4316 ac_save_c_werror_flag=$ac_c_werror_flag
4317 ac_c_werror_flag=yes
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest.$ac_objext; then
4351 pgac_cv_prog_cc_cflags__fwrapv=yes
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 pgac_cv_prog_cc_cflags__fwrapv=no
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_c_werror_flag=$ac_save_c_werror_flag
4361 CFLAGS="$pgac_save_CFLAGS"
4363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4364 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4365 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4366 CFLAGS="$CFLAGS -fwrapv"
4369 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4370 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4371 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4372 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4375 pgac_save_CFLAGS=$CFLAGS
4376 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4401 $as_echo "$ac_try_echo") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4414 $as_echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422 CFLAGS="$pgac_save_CFLAGS"
4424 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4425 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4426 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4427 CFLAGS="$CFLAGS -fexcess-precision=standard"
4430 elif test "$ICC" = yes; then
4431 # Intel's compiler has a bug/misoptimization in checking for
4432 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4433 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4434 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4435 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 pgac_save_CFLAGS=$CFLAGS
4439 CFLAGS="$pgac_save_CFLAGS -mp1"
4440 ac_save_c_werror_flag=$ac_c_werror_flag
4441 ac_c_werror_flag=yes
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 pgac_cv_prog_cc_cflags__mp1=yes
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 pgac_cv_prog_cc_cflags__mp1=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4485 CFLAGS="$pgac_save_CFLAGS"
4487 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4488 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4489 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4490 CFLAGS="$CFLAGS -mp1"
4493 # Make sure strict aliasing is off (though this is said to be the default)
4494 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4495 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4496 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4497 $as_echo_n "(cached) " >&6
4499 pgac_save_CFLAGS=$CFLAGS
4500 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4501 ac_save_c_werror_flag=$ac_c_werror_flag
4502 ac_c_werror_flag=yes
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4525 $as_echo "$ac_try_echo") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } && {
4533 test -z "$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 } && test -s conftest.$ac_objext; then
4536 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4538 $as_echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4546 CFLAGS="$pgac_save_CFLAGS"
4548 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4549 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4550 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4551 CFLAGS="$CFLAGS -fno-strict-aliasing"
4554 elif test "$PORTNAME" = "aix"; then
4555 # AIX's xlc has to have strict aliasing turned off too
4556 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4557 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4558 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4559 $as_echo_n "(cached) " >&6
4561 pgac_save_CFLAGS=$CFLAGS
4562 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4563 ac_save_c_werror_flag=$ac_c_werror_flag
4564 ac_c_werror_flag=yes
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588 (eval "$ac_compile") 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && {
4595 test -z "$ac_c_werror_flag" ||
4596 test ! -s conftest.err
4597 } && test -s conftest.$ac_objext; then
4598 pgac_cv_prog_cc_cflags__qnoansialias=yes
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 pgac_cv_prog_cc_cflags__qnoansialias=no
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="$pgac_save_CFLAGS"
4610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4611 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4612 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4613 CFLAGS="$CFLAGS -qnoansialias"
4616 elif test "$PORTNAME" = "hpux"; then
4617 # On some versions of HP-UX, libm functions do not set errno by default.
4618 # Fix that by using +Olibmerrno if the compiler recognizes it.
4619 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4620 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4621 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4622 $as_echo_n "(cached) " >&6
4624 pgac_save_CFLAGS=$CFLAGS
4625 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651 (eval "$ac_compile") 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest.$ac_objext; then
4661 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 CFLAGS="$pgac_save_CFLAGS"
4673 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4674 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4675 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4676 CFLAGS="$CFLAGS +Olibmerrno"
4681 # supply -g if --enable-debug
4682 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4686 # enable code coverage if --enable-coverage
4687 if test "$enable_coverage" = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4691 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4692 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4693 { (exit 1); exit 1; }; }
4697 # enable profiling if --enable-profiling
4698 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4699 if test "$GCC" = yes; then
4701 cat >>confdefs.h <<\_ACEOF
4702 #define PROFILE_PID_DIR 1
4705 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4707 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4708 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4709 { (exit 1); exit 1; }; }
4713 # We already have this in Makefile.win32, but configure needs it too
4714 if test "$PORTNAME" = "win32"; then
4715 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4718 # Check if the compiler still works with the template settings
4719 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4720 $as_echo_n "checking whether the C compiler still works... " >&6; }
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (ac_try="$ac_link"
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744 (eval "$ac_link") 2>conftest.er1
4746 grep -v '^ *+' conftest.er1 >conftest.err
4748 cat conftest.err >&5
4749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } && {
4751 test -z "$ac_c_werror_flag" ||
4752 test ! -s conftest.err
4753 } && test -s conftest$ac_exeext && {
4754 test "$cross_compiling" = yes ||
4755 $as_test_x conftest$ac_exeext
4757 { $as_echo "$as_me:$LINENO: result: yes" >&5
4758 $as_echo "yes" >&6; }
4760 $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 { $as_echo "$as_me:$LINENO: result: no" >&5
4764 $as_echo "no" >&6; }
4765 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4766 $as_echo "$as_me: error: cannot proceed" >&2;}
4767 { (exit 1); exit 1; }; }
4770 rm -rf conftest.dSYM
4771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4772 conftest$ac_exeext conftest.$ac_ext
4774 # Defend against gcc -ffast-math
4775 if test "$GCC" = yes; then
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4786 #ifdef __FAST_MATH__
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1 >conftest.err
4805 cat conftest.err >&5
4806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4813 $as_echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4817 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4818 { (exit 1); exit 1; }; }
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4831 # On Suns, sometimes $CPP names a directory.
4832 if test -n "$CPP" && test -d "$CPP"; then
4835 if test -z "$CPP"; then
4836 if test "${ac_cv_prog_CPP+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4839 # Double quotes because CPP needs to be expanded
4840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4843 for ac_c_preproc_warn_flag in '' yes
4845 # Use a header file that comes with gcc, so configuring glibc
4846 # with a fresh cross-compiler works.
4847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4848 # <limits.h> exists even on freestanding compilers.
4849 # On the NeXT, cc -E runs the code through the compiler's parser,
4850 # not just through cpp. "Syntax error" is here to catch this case.
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4858 # include <limits.h>
4860 # include <assert.h>
4864 if { (ac_try="$ac_cpp conftest.$ac_ext"
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null && {
4878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 # Broken: fails on valid input.
4890 rm -f conftest.err conftest.$ac_ext
4892 # OK, works on sane cases. Now check whether nonexistent headers
4893 # can be detected and how.
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <ac_nonexistent.h>
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4908 $as_echo "$ac_try_echo") >&5
4909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } >/dev/null && {
4916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4919 # Broken: success on invalid input.
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 # Passes both tests.
4930 rm -f conftest.err conftest.$ac_ext
4933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4934 rm -f conftest.err conftest.$ac_ext
4935 if $ac_preproc_ok; then
4947 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4948 $as_echo "$CPP" >&6; }
4950 for ac_c_preproc_warn_flag in '' yes
4952 # Use a header file that comes with gcc, so configuring glibc
4953 # with a fresh cross-compiler works.
4954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4955 # <limits.h> exists even on freestanding compilers.
4956 # On the NeXT, cc -E runs the code through the compiler's parser,
4957 # not just through cpp. "Syntax error" is here to catch this case.
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 # include <limits.h>
4967 # include <assert.h>
4971 if { (ac_try="$ac_cpp conftest.$ac_ext"
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4977 $as_echo "$ac_try_echo") >&5
4978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null && {
4985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4986 test ! -s conftest.err
4990 $as_echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 # Broken: fails on valid input.
4997 rm -f conftest.err conftest.$ac_ext
4999 # OK, works on sane cases. Now check whether nonexistent headers
5000 # can be detected and how.
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <ac_nonexistent.h>
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5015 $as_echo "$ac_try_echo") >&5
5016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5018 grep -v '^ *+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null && {
5023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5024 test ! -s conftest.err
5026 # Broken: success on invalid input.
5029 $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 # Passes both tests.
5037 rm -f conftest.err conftest.$ac_ext
5040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5041 rm -f conftest.err conftest.$ac_ext
5042 if $ac_preproc_ok; then
5045 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5047 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5048 See \`config.log' for more details." >&5
5049 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5050 See \`config.log' for more details." >&2;}
5051 { (exit 1); exit 1; }; }; }
5055 ac_cpp='$CPP $CPPFLAGS'
5056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 # Set up TAS assembly code if needed; the template file has now had its
5065 # chance to request this.
5067 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5070 if test "$need_tas" = yes ; then
5079 # Automatic dependency tracking
5083 # Check whether --enable-depend was given.
5084 if test "${enable_depend+set}" = set; then
5085 enableval=$enable_depend;
5094 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5095 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5096 { (exit 1); exit 1; }; }
5110 # Enable assert checks
5114 # Check whether --enable-cassert was given.
5115 if test "${enable_cassert+set}" = set; then
5116 enableval=$enable_cassert;
5120 cat >>confdefs.h <<\_ACEOF
5121 #define USE_ASSERT_CHECKING 1
5129 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5130 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5131 { (exit 1); exit 1; }; }
5144 # Include directories
5147 IFS="${IFS}${PATH_SEPARATOR}"
5148 # SRCH_INC comes from the template file
5149 for dir in $with_includes $SRCH_INC; do
5150 if test -d "$dir"; then
5151 INCLUDES="$INCLUDES -I$dir"
5153 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5154 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5162 # Library directories
5165 IFS="${IFS}${PATH_SEPARATOR}"
5166 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5167 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5168 if test -d "$dir"; then
5169 LIBDIRS="$LIBDIRS -L$dir"
5171 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5172 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5178 # Enable thread-safe client libraries
5180 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5181 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5184 # Check whether --enable-thread-safety was given.
5185 if test "${enable_thread_safety+set}" = set; then
5186 enableval=$enable_thread_safety;
5195 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5196 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5197 { (exit 1); exit 1; }; }
5202 enable_thread_safety=yes
5207 if test "$enable_thread_safety" = yes; then
5209 cat >>confdefs.h <<\_ACEOF
5210 #define ENABLE_THREAD_SAFETY 1
5214 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5215 $as_echo "$enable_thread_safety" >&6; }
5219 # Optionally build Tcl modules (PL/Tcl)
5221 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5222 $as_echo_n "checking whether to build with Tcl... " >&6; }
5226 # Check whether --with-tcl was given.
5227 if test "${with_tcl+set}" = set; then
5237 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5238 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5239 { (exit 1); exit 1; }; }
5249 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5250 $as_echo "$with_tcl" >&6; }
5253 # We see if the path to the Tcl/Tk configuration scripts is specified.
5254 # This will override the use of tclsh to find the paths to search.
5259 # Check whether --with-tclconfig was given.
5260 if test "${with_tclconfig+set}" = set; then
5261 withval=$with_tclconfig;
5264 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5265 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5266 { (exit 1); exit 1; }; }
5269 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5270 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5271 { (exit 1); exit 1; }; }
5283 # Optionally build Perl modules (PL/Perl)
5285 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5286 $as_echo_n "checking whether to build Perl modules... " >&6; }
5290 # Check whether --with-perl was given.
5291 if test "${with_perl+set}" = set; then
5301 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5303 { (exit 1); exit 1; }; }
5313 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5314 $as_echo "$with_perl" >&6; }
5318 # Optionally build Python modules (PL/Python)
5320 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5321 $as_echo_n "checking whether to build Python modules... " >&6; }
5325 # Check whether --with-python was given.
5326 if test "${with_python+set}" = set; then
5327 withval=$with_python;
5336 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5337 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5338 { (exit 1); exit 1; }; }
5348 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5349 $as_echo "$with_python" >&6; }
5355 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5356 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5360 # Check whether --with-gssapi was given.
5361 if test "${with_gssapi+set}" = set; then
5362 withval=$with_gssapi;
5367 cat >>confdefs.h <<\_ACEOF
5368 #define ENABLE_GSS 1
5371 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5378 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5379 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5380 { (exit 1); exit 1; }; }
5390 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5391 $as_echo "$with_gssapi" >&6; }
5397 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5398 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5402 # Check whether --with-krb5 was given.
5403 if test "${with_krb5+set}" = set; then
5409 cat >>confdefs.h <<\_ACEOF
5413 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5420 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5421 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5422 { (exit 1); exit 1; }; }
5432 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5433 $as_echo "$with_krb5" >&6; }
5441 # Kerberos configuration parameters
5446 # Check whether --with-krb-srvnam was given.
5447 if test "${with_krb_srvnam+set}" = set; then
5448 withval=$with_krb_srvnam;
5451 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5452 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5453 { (exit 1); exit 1; }; }
5456 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5457 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5458 { (exit 1); exit 1; }; }
5466 with_krb_srvnam="postgres"
5471 cat >>confdefs.h <<_ACEOF
5472 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5480 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5481 $as_echo_n "checking whether to build with PAM support... " >&6; }
5485 # Check whether --with-pam was given.
5486 if test "${with_pam+set}" = set; then
5491 cat >>confdefs.h <<\_ACEOF
5500 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5501 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5502 { (exit 1); exit 1; }; }
5512 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5513 $as_echo "$with_pam" >&6; }
5520 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5521 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5525 # Check whether --with-ldap was given.
5526 if test "${with_ldap+set}" = set; then
5531 cat >>confdefs.h <<\_ACEOF
5540 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5541 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5542 { (exit 1); exit 1; }; }
5552 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5553 $as_echo "$with_ldap" >&6; }
5560 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5561 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5565 # Check whether --with-bonjour was given.
5566 if test "${with_bonjour+set}" = set; then
5567 withval=$with_bonjour;
5571 cat >>confdefs.h <<\_ACEOF
5572 #define USE_BONJOUR 1
5580 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5581 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5582 { (exit 1); exit 1; }; }
5592 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5593 $as_echo "$with_bonjour" >&6; }
5600 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5601 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5605 # Check whether --with-openssl was given.
5606 if test "${with_openssl+set}" = set; then
5607 withval=$with_openssl;
5611 cat >>confdefs.h <<\_ACEOF
5620 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5621 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5622 { (exit 1); exit 1; }; }
5632 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5633 $as_echo "$with_openssl" >&6; }
5639 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5640 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5644 # Check whether --with-selinux was given.
5645 if test "${with_selinux+set}" = set; then
5646 withval=$with_selinux;
5655 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5657 { (exit 1); exit 1; }; }
5668 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5669 $as_echo "$with_selinux" >&6; }
5677 # Check whether --with-readline was given.
5678 if test "${with_readline+set}" = set; then
5679 withval=$with_readline;
5688 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5689 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5690 { (exit 1); exit 1; }; }
5700 # readline on MinGW has problems with backslashes in psql and other bugs.
5701 # This is particularly a problem with non-US code pages.
5702 # Therefore disable its use until we understand the cause. 2004-07-20
5703 if test "$PORTNAME" = "win32"; then
5704 if test "$with_readline" = yes; then
5705 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5706 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5718 # Check whether --with-libedit-preferred was given.
5719 if test "${with_libedit_preferred+set}" = set; then
5720 withval=$with_libedit_preferred;
5729 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5730 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5731 { (exit 1); exit 1; }; }
5736 with_libedit_preferred=no
5749 # Check whether --with-ossp-uuid was given.
5750 if test "${with_ossp_uuid+set}" = set; then
5751 withval=$with_ossp_uuid;
5760 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5761 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5762 { (exit 1); exit 1; }; }
5781 # Check whether --with-libxml was given.
5782 if test "${with_libxml+set}" = set; then
5783 withval=$with_libxml;
5787 cat >>confdefs.h <<\_ACEOF
5788 #define USE_LIBXML 1
5796 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5797 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5798 { (exit 1); exit 1; }; }
5809 if test "$with_libxml" = yes ; then
5810 for ac_prog in xml2-config
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5817 $as_echo_n "(cached) " >&6
5819 if test -n "$XML2_CONFIG"; then
5820 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_XML2_CONFIG="$ac_prog"
5830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5840 if test -n "$XML2_CONFIG"; then
5841 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5842 $as_echo "$XML2_CONFIG" >&6; }
5844 { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5849 test -n "$XML2_CONFIG" && break
5852 if test -n "$XML2_CONFIG"; then
5853 for pgac_option in `$XML2_CONFIG --cflags`; do
5854 case $pgac_option in
5855 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5858 for pgac_option in `$XML2_CONFIG --libs`; do
5859 case $pgac_option in
5860 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5874 # Check whether --with-libxslt was given.
5875 if test "${with_libxslt+set}" = set; then
5876 withval=$with_libxslt;
5880 cat >>confdefs.h <<\_ACEOF
5881 #define USE_LIBXSLT 1
5889 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5890 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5891 { (exit 1); exit 1; }; }
5911 # Check whether --with-system-tzdata was given.
5912 if test "${with_system_tzdata+set}" = set; then
5913 withval=$with_system_tzdata;
5916 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5917 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5918 { (exit 1); exit 1; }; }
5921 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5922 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5923 { (exit 1); exit 1; }; }
5941 # Check whether --with-zlib was given.
5942 if test "${with_zlib+set}" = set; then
5952 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5953 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5954 { (exit 1); exit 1; }; }
5970 # Assume system is ELF if it predefines __ELF__ as 1,
5971 # otherwise believe host_os based default.
5973 freebsd1*|freebsd2*) elf=no;;
5974 freebsd3*|freebsd4*) elf=yes;;
5978 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5980 if test "${ac_cv_path_GREP+set}" = set; then
5981 $as_echo_n "(cached) " >&6
5983 if test -z "$GREP"; then
5984 ac_path_GREP_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in grep ggrep; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5995 # Check for GNU ac_path_GREP and select it if it is found.
5996 # Check for GNU $ac_path_GREP
5997 case `"$ac_path_GREP" --version 2>&1` in
5999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6002 $as_echo_n 0123456789 >"conftest.in"
6005 cat "conftest.in" "conftest.in" >"conftest.tmp"
6006 mv "conftest.tmp" "conftest.in"
6007 cp "conftest.in" "conftest.nl"
6008 $as_echo 'GREP' >> "conftest.nl"
6009 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011 ac_count=`expr $ac_count + 1`
6012 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6013 # Best one so far, save it but keep looking for a better one
6014 ac_cv_path_GREP="$ac_path_GREP"
6015 ac_path_GREP_max=$ac_count
6017 # 10*(2^10) chars as input seems more than enough
6018 test $ac_count -gt 10 && break
6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6023 $ac_path_GREP_found && break 3
6028 if test -z "$ac_cv_path_GREP"; then
6029 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6030 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6031 { (exit 1); exit 1; }; }
6034 ac_cv_path_GREP=$GREP
6038 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6039 $as_echo "$ac_cv_path_GREP" >&6; }
6040 GREP="$ac_cv_path_GREP"
6043 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6044 $as_echo_n "checking for egrep... " >&6; }
6045 if test "${ac_cv_path_EGREP+set}" = set; then
6046 $as_echo_n "(cached) " >&6
6048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6049 then ac_cv_path_EGREP="$GREP -E"
6051 if test -z "$EGREP"; then
6052 ac_path_EGREP_found=false
6053 # Loop through the user's path and test for each of PROGNAME-LIST
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6058 test -z "$as_dir" && as_dir=.
6059 for ac_prog in egrep; do
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6063 # Check for GNU ac_path_EGREP and select it if it is found.
6064 # Check for GNU $ac_path_EGREP
6065 case `"$ac_path_EGREP" --version 2>&1` in
6067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6070 $as_echo_n 0123456789 >"conftest.in"
6073 cat "conftest.in" "conftest.in" >"conftest.tmp"
6074 mv "conftest.tmp" "conftest.in"
6075 cp "conftest.in" "conftest.nl"
6076 $as_echo 'EGREP' >> "conftest.nl"
6077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6079 ac_count=`expr $ac_count + 1`
6080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6081 # Best one so far, save it but keep looking for a better one
6082 ac_cv_path_EGREP="$ac_path_EGREP"
6083 ac_path_EGREP_max=$ac_count
6085 # 10*(2^10) chars as input seems more than enough
6086 test $ac_count -gt 10 && break
6088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6091 $ac_path_EGREP_found && break 3
6096 if test -z "$ac_cv_path_EGREP"; then
6097 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6098 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6099 { (exit 1); exit 1; }; }
6102 ac_cv_path_EGREP=$EGREP
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6108 $as_echo "$ac_cv_path_EGREP" >&6; }
6109 EGREP="$ac_cv_path_EGREP"
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124 $EGREP "yes" >/dev/null 2>&1; then
6127 if test "X$elf" = "Xyes" ; then
6141 CPPFLAGS="$CPPFLAGS $INCLUDES"
6142 LDFLAGS="$LDFLAGS $LIBDIRS"
6148 # Check whether --with-gnu-ld was given.
6149 if test "${with_gnu_ld+set}" = set; then
6150 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6156 if test "$GCC" = yes; then
6157 # Check if gcc -print-prog-name=ld gives a path.
6158 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 $as_echo_n "checking for ld used by GCC... " >&6; }
6162 # gcc leaves a trailing carriage return which upsets mingw
6163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6168 # Accept absolute paths.
6169 [\\/]* | [A-Za-z]:[\\/]*)
6170 re_direlt='/[^/][^/]*/\.\./'
6171 # Canonicalize the path of ld
6172 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6176 test -z "$LD" && LD="$ac_prog"
6179 # If it fails, then pretend we aren't using GCC.
6183 # If it is relative, then search for the first ld in PATH.
6187 elif test "$with_gnu_ld" = yes; then
6188 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 $as_echo_n "checking for GNU ld... " >&6; }
6191 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 $as_echo_n "checking for non-GNU ld... " >&6; }
6194 if test "${ac_cv_path_LD+set}" = set; then
6195 $as_echo_n "(cached) " >&6
6197 if test -z "$LD"; then
6198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199 for ac_dir in $PATH; do
6200 test -z "$ac_dir" && ac_dir=.
6201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202 ac_cv_path_LD="$ac_dir/$ac_prog"
6203 # Check to see if the program is GNU ld. I'd rather use --version,
6204 # but apparently some GNU ld's only accept -v.
6205 # Break only if it was the GNU/non-GNU ld that we prefer.
6206 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6207 test "$with_gnu_ld" != no && break
6209 test "$with_gnu_ld" != yes && break
6215 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6220 if test -n "$LD"; then
6221 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6222 $as_echo "$LD" >&6; }
6224 { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6227 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6228 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6229 { (exit 1); exit 1; }; }
6230 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6232 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6233 $as_echo_n "(cached) " >&6
6235 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6236 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6237 ac_cv_prog_gnu_ld=yes
6239 ac_cv_prog_gnu_ld=no
6242 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6243 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6244 with_gnu_ld=$ac_cv_prog_gnu_ld
6249 case $host_os in sysv5*)
6250 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6251 $as_echo_n "checking whether ld -R works... " >&6; }
6252 if test "${pgac_cv_prog_ld_R+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6256 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (ac_try="$ac_link"
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_link") 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest$ac_exeext && {
6290 test "$cross_compiling" = yes ||
6291 $as_test_x conftest$ac_exeext
6293 pgac_cv_prog_ld_R=yes
6295 $as_echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 pgac_cv_prog_ld_R=no
6301 rm -rf conftest.dSYM
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LDFLAGS=$pgac_save_LDFLAGS
6307 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6308 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6309 ld_R_works=$pgac_cv_prog_ld_R
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_RANLIB+set}" = set; then
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$RANLIB"; then
6321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 RANLIB=$ac_cv_prog_RANLIB
6341 if test -n "$RANLIB"; then
6342 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6343 $as_echo "$RANLIB" >&6; }
6345 { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6351 if test -z "$ac_cv_prog_RANLIB"; then
6352 ac_ct_RANLIB=$RANLIB
6353 # Extract the first word of "ranlib", so it can be a program name with args.
6354 set dummy ranlib; ac_word=$2
6355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$ac_ct_RANLIB"; then
6361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_ac_ct_RANLIB="ranlib"
6371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6381 if test -n "$ac_ct_RANLIB"; then
6382 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6383 $as_echo "$ac_ct_RANLIB" >&6; }
6385 { $as_echo "$as_me:$LINENO: result: no" >&5
6386 $as_echo "no" >&6; }
6389 if test "x$ac_ct_RANLIB" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6398 RANLIB=$ac_ct_RANLIB
6401 RANLIB="$ac_cv_prog_RANLIB"
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}strip; ac_word=$2
6408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_STRIP+set}" = set; then
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$STRIP"; then
6414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 STRIP=$ac_cv_prog_STRIP
6434 if test -n "$STRIP"; then
6435 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6436 $as_echo "$STRIP" >&6; }
6438 { $as_echo "$as_me:$LINENO: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_STRIP"; then
6446 # Extract the first word of "strip", so it can be a program name with args.
6447 set dummy strip; ac_word=$2
6448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$ac_ct_STRIP"; then
6454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_ac_ct_STRIP="strip"
6464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474 if test -n "$ac_ct_STRIP"; then
6475 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6476 $as_echo "$ac_ct_STRIP" >&6; }
6478 { $as_echo "$as_me:$LINENO: result: no" >&5
6479 $as_echo "no" >&6; }
6482 if test "x$ac_ct_STRIP" = x; then
6485 case $cross_compiling:$ac_tool_warned in
6487 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6494 STRIP="$ac_cv_prog_STRIP"
6498 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6499 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6500 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6501 STRIP_STATIC_LIB="$STRIP -x"
6502 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6503 { $as_echo "$as_me:$LINENO: result: yes" >&5
6504 $as_echo "yes" >&6; }
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$AR"; then
6523 ac_cv_prog_AR="$AR" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_AR="${ac_tool_prefix}ar"
6533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 if test -n "$AR"; then
6544 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6545 $as_echo "$AR" >&6; }
6547 { $as_echo "$as_me:$LINENO: result: no" >&5
6548 $as_echo "no" >&6; }
6553 if test -z "$ac_cv_prog_AR"; then
6555 # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$ac_ct_AR"; then
6563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_AR="ar"
6573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 $as_echo "$ac_ct_AR" >&6; }
6587 { $as_echo "$as_me:$LINENO: result: no" >&5
6588 $as_echo "no" >&6; }
6591 if test "x$ac_ct_AR" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6606 if test "$PORTNAME" = "win32"; then
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$DLLTOOL"; then
6616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 DLLTOOL=$ac_cv_prog_DLLTOOL
6636 if test -n "$DLLTOOL"; then
6637 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6638 $as_echo "$DLLTOOL" >&6; }
6640 { $as_echo "$as_me:$LINENO: result: no" >&5
6641 $as_echo "no" >&6; }
6646 if test -z "$ac_cv_prog_DLLTOOL"; then
6647 ac_ct_DLLTOOL=$DLLTOOL
6648 # Extract the first word of "dlltool", so it can be a program name with args.
6649 set dummy dlltool; ac_word=$2
6650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$ac_ct_DLLTOOL"; then
6656 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6676 if test -n "$ac_ct_DLLTOOL"; then
6677 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6678 $as_echo "$ac_ct_DLLTOOL" >&6; }
6680 { $as_echo "$as_me:$LINENO: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_ct_DLLTOOL" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6693 DLLTOOL=$ac_ct_DLLTOOL
6696 DLLTOOL="$ac_cv_prog_DLLTOOL"
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6705 $as_echo_n "(cached) " >&6
6707 if test -n "$DLLWRAP"; then
6708 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 DLLWRAP=$ac_cv_prog_DLLWRAP
6728 if test -n "$DLLWRAP"; then
6729 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6730 $as_echo "$DLLWRAP" >&6; }
6732 { $as_echo "$as_me:$LINENO: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_DLLWRAP"; then
6739 ac_ct_DLLWRAP=$DLLWRAP
6740 # Extract the first word of "dllwrap", so it can be a program name with args.
6741 set dummy dllwrap; ac_word=$2
6742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$ac_ct_DLLWRAP"; then
6748 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6768 if test -n "$ac_ct_DLLWRAP"; then
6769 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6770 $as_echo "$ac_ct_DLLWRAP" >&6; }
6772 { $as_echo "$as_me:$LINENO: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_DLLWRAP" = x; then
6779 case $cross_compiling:$ac_tool_warned in
6781 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6785 DLLWRAP=$ac_ct_DLLWRAP
6788 DLLWRAP="$ac_cv_prog_DLLWRAP"
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}windres; ac_word=$2
6794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if test "${ac_cv_prog_WINDRES+set}" = set; then
6797 $as_echo_n "(cached) " >&6
6799 if test -n "$WINDRES"; then
6800 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 WINDRES=$ac_cv_prog_WINDRES
6820 if test -n "$WINDRES"; then
6821 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6822 $as_echo "$WINDRES" >&6; }
6824 { $as_echo "$as_me:$LINENO: result: no" >&5
6825 $as_echo "no" >&6; }
6830 if test -z "$ac_cv_prog_WINDRES"; then
6831 ac_ct_WINDRES=$WINDRES
6832 # Extract the first word of "windres", so it can be a program name with args.
6833 set dummy windres; ac_word=$2
6834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6837 $as_echo_n "(cached) " >&6
6839 if test -n "$ac_ct_WINDRES"; then
6840 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_ac_ct_WINDRES="windres"
6850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6860 if test -n "$ac_ct_WINDRES"; then
6861 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6862 $as_echo "$ac_ct_WINDRES" >&6; }
6864 { $as_echo "$as_me:$LINENO: result: no" >&5
6865 $as_echo "no" >&6; }
6868 if test "x$ac_ct_WINDRES" = x; then
6871 case $cross_compiling:$ac_tool_warned in
6873 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6877 WINDRES=$ac_ct_WINDRES
6880 WINDRES="$ac_cv_prog_WINDRES"
6885 # Extract the first word of "tar", so it can be a program name with args.
6886 set dummy tar; ac_word=$2
6887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_path_TAR+set}" = set; then
6890 $as_echo_n "(cached) " >&6
6894 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 if test -n "$TAR"; then
6917 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6918 $as_echo "$TAR" >&6; }
6920 { $as_echo "$as_me:$LINENO: result: no" >&5
6921 $as_echo "no" >&6; }
6925 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6926 $as_echo_n "checking whether ln -s works... " >&6; }
6928 if test "$LN_S" = "ln -s"; then
6929 { $as_echo "$as_me:$LINENO: result: yes" >&5
6930 $as_echo "yes" >&6; }
6932 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6933 $as_echo "no, using $LN_S" >&6; }
6936 for ac_prog in gawk mawk nawk awk
6938 # Extract the first word of "$ac_prog", so it can be a program name with args.
6939 set dummy $ac_prog; ac_word=$2
6940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_AWK+set}" = set; then
6943 $as_echo_n "(cached) " >&6
6945 if test -n "$AWK"; then
6946 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_prog_AWK="$ac_prog"
6956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 if test -n "$AWK"; then
6967 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6968 $as_echo "$AWK" >&6; }
6970 { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6975 test -n "$AWK" && break
6978 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6980 if test -z "$MKDIR_P"; then
6981 if test "${ac_cv_path_mkdir+set}" = set; then
6982 $as_echo_n "(cached) " >&6
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6988 test -z "$as_dir" && as_dir=.
6989 for ac_prog in mkdir gmkdir; do
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6993 'mkdir (GNU coreutils) '* | \
6994 'mkdir (coreutils) '* | \
6995 'mkdir (fileutils) '4.1*)
6996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7006 if test "${ac_cv_path_mkdir+set}" = set; then
7007 MKDIR_P="$ac_cv_path_mkdir -p"
7009 # As a last resort, use the slow shell script. Don't cache a
7010 # value for MKDIR_P within a source directory, because that will
7011 # break other packages using the cache if that directory is
7012 # removed, or if the value is a relative name.
7013 test -d ./--version && rmdir ./--version
7014 MKDIR_P="$ac_install_sh -d"
7017 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7018 $as_echo "$MKDIR_P" >&6; }
7020 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7021 # a relative path to it in each makefile where it subsitutes it. This clashes
7022 # with our Makefile.global concept. This workaround helps.
7024 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7027 # Let the user override the search
7028 if test -z "$BISON"; then
7029 for ac_prog in bison
7031 # Extract the first word of "$ac_prog", so it can be a program name with args.
7032 set dummy $ac_prog; ac_word=$2
7033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_path_BISON+set}" = set; then
7036 $as_echo_n "(cached) " >&6
7040 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 BISON=$ac_cv_path_BISON
7062 if test -n "$BISON"; then
7063 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7064 $as_echo "$BISON" >&6; }
7066 { $as_echo "$as_me:$LINENO: result: no" >&5
7067 $as_echo "no" >&6; }
7071 test -n "$BISON" && break
7076 if test "$BISON"; then
7077 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7078 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7079 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7080 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7082 { $as_echo "$as_me:$LINENO: WARNING:
7083 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7084 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7085 $as_echo "$as_me: WARNING:
7086 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7087 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7092 if test -z "$BISON"; then
7093 { $as_echo "$as_me:$LINENO: WARNING:
7094 *** Without Bison you will not be able to build PostgreSQL from Git nor
7095 *** change any of the parser definition files. You can obtain Bison from
7096 *** a GNU mirror site. (If you are using the official distribution of
7097 *** PostgreSQL then you do not need to worry about this, because the Bison
7098 *** output is pre-generated.)" >&5
7099 $as_echo "$as_me: WARNING:
7100 *** Without Bison you will not be able to build PostgreSQL from Git nor
7101 *** change any of the parser definition files. You can obtain Bison from
7102 *** a GNU mirror site. (If you are using the official distribution of
7103 *** PostgreSQL then you do not need to worry about this, because the Bison
7104 *** output is pre-generated.)" >&2;}
7106 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7109 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7110 $as_echo_n "checking for flex... " >&6; }
7111 if test "${pgac_cv_path_flex+set}" = set; then
7112 $as_echo_n "(cached) " >&6
7114 # Let the user override the test
7115 if test -n "$FLEX"; then
7116 pgac_cv_path_flex=$FLEX
7120 for pgac_dir in $PATH; do
7122 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7125 for pgac_prog in flex lex; do
7126 pgac_candidate="$pgac_dir/$pgac_prog"
7127 if test -f "$pgac_candidate" \
7128 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7130 echo '%%' > conftest.l
7131 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7132 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7133 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7135 pgac_cv_path_flex=$pgac_candidate
7138 { $as_echo "$as_me:$LINENO: WARNING:
7139 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7140 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7141 $as_echo "$as_me: WARNING:
7142 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7143 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7149 rm -f conftest.l lex.yy.c
7150 : ${pgac_cv_path_flex=no}
7154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7155 $as_echo "$pgac_cv_path_flex" >&6; }
7156 if test x"$pgac_cv_path_flex" = x"no"; then
7157 { $as_echo "$as_me:$LINENO: WARNING:
7158 *** Without Flex you will not be able to build PostgreSQL from Git nor
7159 *** change any of the scanner definition files. You can obtain Flex from
7160 *** a GNU mirror site. (If you are using the official distribution of
7161 *** PostgreSQL then you do not need to worry about this because the Flex
7162 *** output is pre-generated.)" >&5
7163 $as_echo "$as_me: WARNING:
7164 *** Without Flex you will not be able to build PostgreSQL from Git nor
7165 *** change any of the scanner definition files. You can obtain Flex from
7166 *** a GNU mirror site. (If you are using the official distribution of
7167 *** PostgreSQL then you do not need to worry about this because the Flex
7168 *** output is pre-generated.)" >&2;}
7172 FLEX=$pgac_cv_path_flex
7173 pgac_flex_version=`$FLEX --version 2>/dev/null`
7174 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7175 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7182 # Let the user override the search
7183 if test -z "$PERL"; then
7184 # Extract the first word of "perl", so it can be a program name with args.
7185 set dummy perl; ac_word=$2
7186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_path_PERL+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7193 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 PERL=$ac_cv_path_PERL
7215 if test -n "$PERL"; then
7216 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7217 $as_echo "$PERL" >&6; }
7219 { $as_echo "$as_me:$LINENO: result: no" >&5
7220 $as_echo "no" >&6; }
7226 if test "$PERL"; then
7227 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'`
7228 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7229 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7230 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7231 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7233 { $as_echo "$as_me:$LINENO: WARNING:
7234 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7235 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7236 $as_echo "$as_me: WARNING:
7237 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7238 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7243 if test -z "$PERL"; then
7244 { $as_echo "$as_me:$LINENO: WARNING:
7245 *** Without Perl you will not be able to build PostgreSQL from Git.
7246 *** You can obtain Perl from any CPAN mirror site.
7247 *** (If you are using the official distribution of PostgreSQL then you do not
7248 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7249 $as_echo "$as_me: WARNING:
7250 *** Without Perl you will not be able to build PostgreSQL from Git.
7251 *** You can obtain Perl from any CPAN mirror site.
7252 *** (If you are using the official distribution of PostgreSQL then you do not
7253 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7256 if test "$with_perl" = yes; then
7257 if test -z "$PERL"; then
7258 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7259 $as_echo "$as_me: error: Perl not found" >&2;}
7260 { (exit 1); exit 1; }; }
7263 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7264 $as_echo_n "checking for Perl archlibexp... " >&6; }
7265 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7266 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7267 $as_echo "$perl_archlibexp" >&6; }
7268 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7269 $as_echo_n "checking for Perl privlibexp... " >&6; }
7270 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7271 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7272 $as_echo "$perl_privlibexp" >&6; }
7273 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7274 $as_echo_n "checking for Perl useshrplib... " >&6; }
7275 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7276 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7277 $as_echo "$perl_useshrplib" >&6; }
7279 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7280 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7281 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7282 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7283 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7284 if test -z "$perl_embed_ldflags" ; then
7285 { $as_echo "$as_me:$LINENO: result: no" >&5
7286 $as_echo "no" >&6; }
7287 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7288 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7290 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7291 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7293 { (exit 1); exit 1; }; }
7295 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7296 $as_echo "$perl_embed_ldflags" >&6; }
7301 if test "$with_python" = yes; then
7302 # Extract the first word of "python", so it can be a program name with args.
7303 set dummy python; ac_word=$2
7304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_PYTHON+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7311 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 PYTHON=$ac_cv_path_PYTHON
7333 if test -n "$PYTHON"; then
7334 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7335 $as_echo "$PYTHON" >&6; }
7337 { $as_echo "$as_me:$LINENO: result: no" >&5
7338 $as_echo "no" >&6; }
7342 if test x"$PYTHON" = x""; then
7343 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7344 $as_echo "$as_me: error: Python not found" >&2;}
7345 { (exit 1); exit 1; }; }
7349 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7350 $as_echo_n "checking for Python distutils module... " >&6; }
7351 if "${PYTHON}" -c 'import distutils' 2>&5
7353 { $as_echo "$as_me:$LINENO: result: yes" >&5
7354 $as_echo "yes" >&6; }
7356 { $as_echo "$as_me:$LINENO: result: no" >&5
7357 $as_echo "no" >&6; }
7358 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7359 $as_echo "$as_me: error: distutils module not found" >&2;}
7360 { (exit 1); exit 1; }; }
7362 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7363 $as_echo_n "checking Python configuration directory... " >&6; }
7364 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7365 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7366 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7367 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7369 # This should be enough of a message.
7370 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7371 $as_echo "$python_configdir" >&6; }
7374 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7375 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7377 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7378 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7379 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7380 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7382 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7384 # New way: use the official shared library
7385 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7386 python_libspec="-L${python_libdir} -l${ldlibrary}"
7388 # Old way: use libpython from python_configdir
7389 python_libdir="${python_configdir}"
7390 # LDVERSION was introduced in Python 3.2.
7391 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7392 if test x"${python_ldversion}" = x""; then
7393 python_ldversion=$python_version
7395 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7400 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7401 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7404 # threaded python is not supported on bsd's
7405 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7406 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7407 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7408 if test "$pythreads" = "1"; then
7409 { $as_echo "$as_me:$LINENO: result: yes" >&5
7410 $as_echo "yes" >&6; }
7413 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7414 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7415 { (exit 1); exit 1; }; }
7419 { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7426 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7427 # Extract the first word of "zic", so it can be a program name with args.
7428 set dummy zic; ac_word=$2
7429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if test "${ac_cv_path_ZIC+set}" = set; then
7432 $as_echo_n "(cached) " >&6
7436 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 if test -n "$ZIC"; then
7459 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7460 $as_echo "$ZIC" >&6; }
7462 { $as_echo "$as_me:$LINENO: result: no" >&5
7463 $as_echo "no" >&6; }
7467 if test -z "$ZIC"; then
7468 { { $as_echo "$as_me:$LINENO: error:
7469 When cross-compiling, either use the option --with-system-tzdata to use
7470 existing time-zone data, or set the environment variable ZIC to a zic
7471 program to use during the build." >&5
7472 $as_echo "$as_me: error:
7473 When cross-compiling, either use the option --with-system-tzdata to use
7474 existing time-zone data, or set the environment variable ZIC to a zic
7475 program to use during the build." >&2;}
7476 { (exit 1); exit 1; }; }
7484 ## Most libraries are included only if they demonstrably provide a function
7485 ## we need, but libm is an exception: always include it, because there are
7486 ## too many compilers that play cute optimization games that will break
7487 ## probes for standard functions such as pow().
7491 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7492 $as_echo_n "checking for main in -lm... " >&6; }
7493 if test "${ac_cv_lib_m_main+set}" = set; then
7494 $as_echo_n "(cached) " >&6
7496 ac_check_lib_save_LIBS=$LIBS
7498 cat >conftest.$ac_ext <<_ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522 (eval "$ac_link") 2>conftest.er1
7524 grep -v '^ *+' conftest.er1 >conftest.err
7526 cat conftest.err >&5
7527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } && {
7529 test -z "$ac_c_werror_flag" ||
7530 test ! -s conftest.err
7531 } && test -s conftest$ac_exeext && {
7532 test "$cross_compiling" = yes ||
7533 $as_test_x conftest$ac_exeext
7535 ac_cv_lib_m_main=yes
7537 $as_echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7543 rm -rf conftest.dSYM
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545 conftest$ac_exeext conftest.$ac_ext
7546 LIBS=$ac_check_lib_save_LIBS
7548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7549 $as_echo "$ac_cv_lib_m_main" >&6; }
7550 if test "x$ac_cv_lib_m_main" = x""yes; then
7551 cat >>confdefs.h <<_ACEOF
7559 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7560 $as_echo_n "checking for library containing setproctitle... " >&6; }
7561 if test "${ac_cv_search_setproctitle+set}" = set; then
7562 $as_echo_n "(cached) " >&6
7564 ac_func_search_save_LIBS=$LIBS
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7572 /* Override any GCC internal prototype to avoid an error.
7573 Use char because int might match the return type of a GCC
7574 builtin and then its argument prototype would still apply. */
7578 char setproctitle ();
7582 return setproctitle ();
7587 for ac_lib in '' util; do
7588 if test -z "$ac_lib"; then
7589 ac_res="none required"
7592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_link") 2>conftest.er1
7604 grep -v '^ *+' conftest.er1 >conftest.err
7606 cat conftest.err >&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest$ac_exeext && {
7612 test "$cross_compiling" = yes ||
7613 $as_test_x conftest$ac_exeext
7615 ac_cv_search_setproctitle=$ac_res
7617 $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7623 rm -rf conftest.dSYM
7624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626 if test "${ac_cv_search_setproctitle+set}" = set; then
7630 if test "${ac_cv_search_setproctitle+set}" = set; then
7633 ac_cv_search_setproctitle=no
7636 LIBS=$ac_func_search_save_LIBS
7638 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7639 $as_echo "$ac_cv_search_setproctitle" >&6; }
7640 ac_res=$ac_cv_search_setproctitle
7641 if test "$ac_res" != no; then
7642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7646 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7647 $as_echo_n "checking for library containing dlopen... " >&6; }
7648 if test "${ac_cv_search_dlopen+set}" = set; then
7649 $as_echo_n "(cached) " >&6
7651 ac_func_search_save_LIBS=$LIBS
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7659 /* Override any GCC internal prototype to avoid an error.
7660 Use char because int might match the return type of a GCC
7661 builtin and then its argument prototype would still apply. */
7674 for ac_lib in '' dl; do
7675 if test -z "$ac_lib"; then
7676 ac_res="none required"
7679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (ac_try="$ac_link"
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_link") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest$ac_exeext && {
7699 test "$cross_compiling" = yes ||
7700 $as_test_x conftest$ac_exeext
7702 ac_cv_search_dlopen=$ac_res
7704 $as_echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -rf conftest.dSYM
7711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7713 if test "${ac_cv_search_dlopen+set}" = set; then
7717 if test "${ac_cv_search_dlopen+set}" = set; then
7720 ac_cv_search_dlopen=no
7723 LIBS=$ac_func_search_save_LIBS
7725 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7726 $as_echo "$ac_cv_search_dlopen" >&6; }
7727 ac_res=$ac_cv_search_dlopen
7728 if test "$ac_res" != no; then
7729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7733 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7734 $as_echo_n "checking for library containing socket... " >&6; }
7735 if test "${ac_cv_search_socket+set}" = set; then
7736 $as_echo_n "(cached) " >&6
7738 ac_func_search_save_LIBS=$LIBS
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7746 /* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7761 for ac_lib in '' socket wsock32; do
7762 if test -z "$ac_lib"; then
7763 ac_res="none required"
7766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7768 rm -f conftest.$ac_objext conftest$ac_exeext
7769 if { (ac_try="$ac_link"
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_link") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1 >conftest.err
7780 cat conftest.err >&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest$ac_exeext && {
7786 test "$cross_compiling" = yes ||
7787 $as_test_x conftest$ac_exeext
7789 ac_cv_search_socket=$ac_res
7791 $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7797 rm -rf conftest.dSYM
7798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800 if test "${ac_cv_search_socket+set}" = set; then
7804 if test "${ac_cv_search_socket+set}" = set; then
7807 ac_cv_search_socket=no
7810 LIBS=$ac_func_search_save_LIBS
7812 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7813 $as_echo "$ac_cv_search_socket" >&6; }
7814 ac_res=$ac_cv_search_socket
7815 if test "$ac_res" != no; then
7816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7820 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7821 $as_echo_n "checking for library containing shl_load... " >&6; }
7822 if test "${ac_cv_search_shl_load+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7825 ac_func_search_save_LIBS=$LIBS
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7833 /* Override any GCC internal prototype to avoid an error.
7834 Use char because int might match the return type of a GCC
7835 builtin and then its argument prototype would still apply. */
7848 for ac_lib in '' dld; do
7849 if test -z "$ac_lib"; then
7850 ac_res="none required"
7853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_link") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest$ac_exeext && {
7873 test "$cross_compiling" = yes ||
7874 $as_test_x conftest$ac_exeext
7876 ac_cv_search_shl_load=$ac_res
7878 $as_echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7884 rm -rf conftest.dSYM
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7887 if test "${ac_cv_search_shl_load+set}" = set; then
7891 if test "${ac_cv_search_shl_load+set}" = set; then
7894 ac_cv_search_shl_load=no
7897 LIBS=$ac_func_search_save_LIBS
7899 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7900 $as_echo "$ac_cv_search_shl_load" >&6; }
7901 ac_res=$ac_cv_search_shl_load
7902 if test "$ac_res" != no; then
7903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7907 # We only use libld in port/dynloader/aix.c
7910 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7911 $as_echo_n "checking for library containing ldopen... " >&6; }
7912 if test "${ac_cv_search_ldopen+set}" = set; then
7913 $as_echo_n "(cached) " >&6
7915 ac_func_search_save_LIBS=$LIBS
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7923 /* Override any GCC internal prototype to avoid an error.
7924 Use char because int might match the return type of a GCC
7925 builtin and then its argument prototype would still apply. */
7938 for ac_lib in '' ld; do
7939 if test -z "$ac_lib"; then
7940 ac_res="none required"
7943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext && {
7963 test "$cross_compiling" = yes ||
7964 $as_test_x conftest$ac_exeext
7966 ac_cv_search_ldopen=$ac_res
7968 $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7977 if test "${ac_cv_search_ldopen+set}" = set; then
7981 if test "${ac_cv_search_ldopen+set}" = set; then
7984 ac_cv_search_ldopen=no
7987 LIBS=$ac_func_search_save_LIBS
7989 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7990 $as_echo "$ac_cv_search_ldopen" >&6; }
7991 ac_res=$ac_cv_search_ldopen
7992 if test "$ac_res" != no; then
7993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7999 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8000 $as_echo_n "checking for library containing getopt_long... " >&6; }
8001 if test "${ac_cv_search_getopt_long+set}" = set; then
8002 $as_echo_n "(cached) " >&6
8004 ac_func_search_save_LIBS=$LIBS
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8012 /* Override any GCC internal prototype to avoid an error.
8013 Use char because int might match the return type of a GCC
8014 builtin and then its argument prototype would still apply. */
8018 char getopt_long ();
8022 return getopt_long ();
8027 for ac_lib in '' getopt gnugetopt; do
8028 if test -z "$ac_lib"; then
8029 ac_res="none required"
8032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext && {
8052 test "$cross_compiling" = yes ||
8053 $as_test_x conftest$ac_exeext
8055 ac_cv_search_getopt_long=$ac_res
8057 $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -rf conftest.dSYM
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8066 if test "${ac_cv_search_getopt_long+set}" = set; then
8070 if test "${ac_cv_search_getopt_long+set}" = set; then
8073 ac_cv_search_getopt_long=no
8076 LIBS=$ac_func_search_save_LIBS
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8079 $as_echo "$ac_cv_search_getopt_long" >&6; }
8080 ac_res=$ac_cv_search_getopt_long
8081 if test "$ac_res" != no; then
8082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8086 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8087 $as_echo_n "checking for library containing crypt... " >&6; }
8088 if test "${ac_cv_search_crypt+set}" = set; then
8089 $as_echo_n "(cached) " >&6
8091 ac_func_search_save_LIBS=$LIBS
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8099 /* Override any GCC internal prototype to avoid an error.
8100 Use char because int might match the return type of a GCC
8101 builtin and then its argument prototype would still apply. */
8114 for ac_lib in '' crypt; do
8115 if test -z "$ac_lib"; then
8116 ac_res="none required"
8119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (ac_try="$ac_link"
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8128 $as_echo "$ac_try_echo") >&5
8129 (eval "$ac_link") 2>conftest.er1
8131 grep -v '^ *+' conftest.er1 >conftest.err
8133 cat conftest.err >&5
8134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest$ac_exeext && {
8139 test "$cross_compiling" = yes ||
8140 $as_test_x conftest$ac_exeext
8142 ac_cv_search_crypt=$ac_res
8144 $as_echo "$as_me: failed program was:" >&5
8145 sed 's/^/| /' conftest.$ac_ext >&5
8150 rm -rf conftest.dSYM
8151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8153 if test "${ac_cv_search_crypt+set}" = set; then
8157 if test "${ac_cv_search_crypt+set}" = set; then
8160 ac_cv_search_crypt=no
8163 LIBS=$ac_func_search_save_LIBS
8165 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8166 $as_echo "$ac_cv_search_crypt" >&6; }
8167 ac_res=$ac_cv_search_crypt
8168 if test "$ac_res" != no; then
8169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8174 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8175 $as_echo_n "checking for library containing fdatasync... " >&6; }
8176 if test "${ac_cv_search_fdatasync+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8179 ac_func_search_save_LIBS=$LIBS
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8197 return fdatasync ();
8202 for ac_lib in '' rt posix4; do
8203 if test -z "$ac_lib"; then
8204 ac_res="none required"
8207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_link") 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } && {
8224 test -z "$ac_c_werror_flag" ||
8225 test ! -s conftest.err
8226 } && test -s conftest$ac_exeext && {
8227 test "$cross_compiling" = yes ||
8228 $as_test_x conftest$ac_exeext
8230 ac_cv_search_fdatasync=$ac_res
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8241 if test "${ac_cv_search_fdatasync+set}" = set; then
8245 if test "${ac_cv_search_fdatasync+set}" = set; then
8248 ac_cv_search_fdatasync=no
8251 LIBS=$ac_func_search_save_LIBS
8253 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8254 $as_echo "$ac_cv_search_fdatasync" >&6; }
8255 ac_res=$ac_cv_search_fdatasync
8256 if test "$ac_res" != no; then
8257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8261 # Required for thread_test.c on Solaris 2.5:
8262 # Other ports use it too (HP-UX) so test unconditionally
8263 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8264 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8265 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8266 $as_echo_n "(cached) " >&6
8268 ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8276 /* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8282 char gethostbyname_r ();
8286 return gethostbyname_r ();
8291 for ac_lib in '' nsl; do
8292 if test -z "$ac_lib"; then
8293 ac_res="none required"
8296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306 (eval "$ac_link") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest$ac_exeext && {
8316 test "$cross_compiling" = yes ||
8317 $as_test_x conftest$ac_exeext
8319 ac_cv_search_gethostbyname_r=$ac_res
8321 $as_echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -rf conftest.dSYM
8328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8330 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8334 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8337 ac_cv_search_gethostbyname_r=no
8340 LIBS=$ac_func_search_save_LIBS
8342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8343 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8344 ac_res=$ac_cv_search_gethostbyname_r
8345 if test "$ac_res" != no; then
8346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8351 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8352 $as_echo_n "checking for library containing shmget... " >&6; }
8353 if test "${ac_cv_search_shmget+set}" = set; then
8354 $as_echo_n "(cached) " >&6
8356 ac_func_search_save_LIBS=$LIBS
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8364 /* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8379 for ac_lib in '' cygipc; do
8380 if test -z "$ac_lib"; then
8381 ac_res="none required"
8384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8393 $as_echo "$ac_try_echo") >&5
8394 (eval "$ac_link") 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && {
8401 test -z "$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8403 } && test -s conftest$ac_exeext && {
8404 test "$cross_compiling" = yes ||
8405 $as_test_x conftest$ac_exeext
8407 ac_cv_search_shmget=$ac_res
8409 $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -rf conftest.dSYM
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8418 if test "${ac_cv_search_shmget+set}" = set; then
8422 if test "${ac_cv_search_shmget+set}" = set; then
8425 ac_cv_search_shmget=no
8428 LIBS=$ac_func_search_save_LIBS
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8431 $as_echo "$ac_cv_search_shmget" >&6; }
8432 ac_res=$ac_cv_search_shmget
8433 if test "$ac_res" != no; then
8434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8439 if test "$with_readline" = yes; then
8442 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8443 $as_echo_n "checking for library containing readline... " >&6; }
8444 if test "${pgac_cv_check_readline+set}" = set; then
8445 $as_echo_n "(cached) " >&6
8447 pgac_cv_check_readline=no
8448 pgac_save_LIBS=$LIBS
8449 if test x"$with_libedit_preferred" != x"yes"
8450 then READLINE_ORDER="-lreadline -ledit"
8451 else READLINE_ORDER="-ledit -lreadline"
8453 for pgac_rllib in $READLINE_ORDER ; do
8454 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8455 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8463 /* Override any GCC internal prototype to avoid an error.
8464 Use char because int might match the return type of a GCC
8465 builtin and then its argument prototype would still apply. */
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_link") 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest$ac_exeext && {
8496 test "$cross_compiling" = yes ||
8497 $as_test_x conftest$ac_exeext
8500 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8501 # recognize dependent libraries; assume curses is needed if we didn't
8502 # find any dependency.
8504 netbsd* | openbsd* | irix*)
8505 if test x"$pgac_lib" = x"" ; then
8506 pgac_lib=" -lcurses"
8510 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8514 $as_echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8520 rm -rf conftest.dSYM
8521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8522 conftest$ac_exeext conftest.$ac_ext
8524 if test "$pgac_cv_check_readline" != no ; then
8528 LIBS=$pgac_save_LIBS
8531 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8532 $as_echo "$pgac_cv_check_readline" >&6; }
8533 if test "$pgac_cv_check_readline" != no ; then
8534 LIBS="$pgac_cv_check_readline $LIBS"
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_LIBREADLINE 1
8543 if test x"$pgac_cv_check_readline" = x"no"; then
8544 { { $as_echo "$as_me:$LINENO: error: readline library not found
8545 If you have readline already installed, see config.log for details on the
8546 failure. It is possible the compiler isn't looking in the proper directory.
8547 Use --without-readline to disable readline support." >&5
8548 $as_echo "$as_me: error: readline library not found
8549 If you have readline already installed, see config.log for details on the
8550 failure. It is possible the compiler isn't looking in the proper directory.
8551 Use --without-readline to disable readline support." >&2;}
8552 { (exit 1); exit 1; }; }
8556 if test "$with_zlib" = yes; then
8558 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8559 $as_echo_n "checking for inflate in -lz... " >&6; }
8560 if test "${ac_cv_lib_z_inflate+set}" = set; then
8561 $as_echo_n "(cached) " >&6
8563 ac_check_lib_save_LIBS=$LIBS
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8572 /* Override any GCC internal prototype to avoid an error.
8573 Use char because int might match the return type of a GCC
8574 builtin and then its argument prototype would still apply. */
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_link") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest$ac_exeext && {
8605 test "$cross_compiling" = yes ||
8606 $as_test_x conftest$ac_exeext
8608 ac_cv_lib_z_inflate=yes
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_cv_lib_z_inflate=no
8616 rm -rf conftest.dSYM
8617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8621 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8622 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8623 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8624 cat >>confdefs.h <<_ACEOF
8631 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8632 If you have zlib already installed, see config.log for details on the
8633 failure. It is possible the compiler isn't looking in the proper directory.
8634 Use --without-zlib to disable zlib support." >&5
8635 $as_echo "$as_me: error: zlib library not found
8636 If you have zlib already installed, see config.log for details on the
8637 failure. It is possible the compiler isn't looking in the proper directory.
8638 Use --without-zlib to disable zlib support." >&2;}
8639 { (exit 1); exit 1; }; }
8644 if test "$enable_spinlocks" = yes; then
8646 cat >>confdefs.h <<\_ACEOF
8647 #define HAVE_SPINLOCKS 1
8651 { $as_echo "$as_me:$LINENO: WARNING:
8652 *** Not using spinlocks will cause poor performance." >&5
8653 $as_echo "$as_me: WARNING:
8654 *** Not using spinlocks will cause poor performance." >&2;}
8657 if test "$with_gssapi" = yes ; then
8658 if test "$PORTNAME" != "win32"; then
8659 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8660 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8661 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8662 $as_echo_n "(cached) " >&6
8664 ac_func_search_save_LIBS=$LIBS
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8672 /* Override any GCC internal prototype to avoid an error.
8673 Use char because int might match the return type of a GCC
8674 builtin and then its argument prototype would still apply. */
8678 char gss_init_sec_context ();
8682 return gss_init_sec_context ();
8687 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8688 if test -z "$ac_lib"; then
8689 ac_res="none required"
8692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (ac_try="$ac_link"
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8701 $as_echo "$ac_try_echo") >&5
8702 (eval "$ac_link") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest$ac_exeext && {
8712 test "$cross_compiling" = yes ||
8713 $as_test_x conftest$ac_exeext
8715 ac_cv_search_gss_init_sec_context=$ac_res
8717 $as_echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -rf conftest.dSYM
8724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8726 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8730 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8733 ac_cv_search_gss_init_sec_context=no
8736 LIBS=$ac_func_search_save_LIBS
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8739 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8740 ac_res=$ac_cv_search_gss_init_sec_context
8741 if test "$ac_res" != no; then
8742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8745 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8746 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8747 { (exit 1); exit 1; }; }
8751 LIBS="$LIBS -lgssapi32"
8755 if test "$with_krb5" = yes ; then
8756 if test "$PORTNAME" != "win32"; then
8757 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8758 $as_echo_n "checking for library containing com_err... " >&6; }
8759 if test "${ac_cv_search_com_err+set}" = set; then
8760 $as_echo_n "(cached) " >&6
8762 ac_func_search_save_LIBS=$LIBS
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8770 /* Override any GCC internal prototype to avoid an error.
8771 Use char because int might match the return type of a GCC
8772 builtin and then its argument prototype would still apply. */
8785 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8786 if test -z "$ac_lib"; then
8787 ac_res="none required"
8790 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (ac_try="$ac_link"
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_link") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest$ac_exeext && {
8810 test "$cross_compiling" = yes ||
8811 $as_test_x conftest$ac_exeext
8813 ac_cv_search_com_err=$ac_res
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8821 rm -rf conftest.dSYM
8822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8824 if test "${ac_cv_search_com_err+set}" = set; then
8828 if test "${ac_cv_search_com_err+set}" = set; then
8831 ac_cv_search_com_err=no
8834 LIBS=$ac_func_search_save_LIBS
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8837 $as_echo "$ac_cv_search_com_err" >&6; }
8838 ac_res=$ac_cv_search_com_err
8839 if test "$ac_res" != no; then
8840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8843 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8844 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8845 { (exit 1); exit 1; }; }
8848 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8849 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8850 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8851 $as_echo_n "(cached) " >&6
8853 ac_func_search_save_LIBS=$LIBS
8854 cat >conftest.$ac_ext <<_ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8861 /* Override any GCC internal prototype to avoid an error.
8862 Use char because int might match the return type of a GCC
8863 builtin and then its argument prototype would still apply. */
8867 char krb5_sendauth ();
8871 return krb5_sendauth ();
8876 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8877 if test -z "$ac_lib"; then
8878 ac_res="none required"
8881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8883 rm -f conftest.$ac_objext conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_link") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext && {
8901 test "$cross_compiling" = yes ||
8902 $as_test_x conftest$ac_exeext
8904 ac_cv_search_krb5_sendauth=$ac_res
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8912 rm -rf conftest.dSYM
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8915 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8919 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8922 ac_cv_search_krb5_sendauth=no
8925 LIBS=$ac_func_search_save_LIBS
8927 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8928 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8929 ac_res=$ac_cv_search_krb5_sendauth
8930 if test "$ac_res" != no; then
8931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8934 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8935 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8936 { (exit 1); exit 1; }; }
8940 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8941 $as_echo_n "checking for library containing com_err... " >&6; }
8942 if test "${ac_cv_search_com_err+set}" = set; then
8943 $as_echo_n "(cached) " >&6
8945 ac_func_search_save_LIBS=$LIBS
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8953 /* Override any GCC internal prototype to avoid an error.
8954 Use char because int might match the return type of a GCC
8955 builtin and then its argument prototype would still apply. */
8968 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8969 if test -z "$ac_lib"; then
8970 ac_res="none required"
8973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_link") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest$ac_exeext && {
8993 test "$cross_compiling" = yes ||
8994 $as_test_x conftest$ac_exeext
8996 ac_cv_search_com_err=$ac_res
8998 $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9004 rm -rf conftest.dSYM
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 if test "${ac_cv_search_com_err+set}" = set; then
9011 if test "${ac_cv_search_com_err+set}" = set; then
9014 ac_cv_search_com_err=no
9017 LIBS=$ac_func_search_save_LIBS
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9020 $as_echo "$ac_cv_search_com_err" >&6; }
9021 ac_res=$ac_cv_search_com_err
9022 if test "$ac_res" != no; then
9023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9026 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9027 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9028 { (exit 1); exit 1; }; }
9034 if test "$with_openssl" = yes ; then
9035 if test "$PORTNAME" != "win32"; then
9037 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9038 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9039 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9040 $as_echo_n "(cached) " >&6
9042 ac_check_lib_save_LIBS=$LIBS
9043 LIBS="-lcrypto $LIBS"
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9057 char CRYPTO_new_ex_data ();
9061 return CRYPTO_new_ex_data ();
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (ac_try="$ac_link"
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9073 $as_echo "$ac_try_echo") >&5
9074 (eval "$ac_link") 2>conftest.er1
9076 grep -v '^ *+' conftest.er1 >conftest.err
9078 cat conftest.err >&5
9079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest$ac_exeext && {
9084 test "$cross_compiling" = yes ||
9085 $as_test_x conftest$ac_exeext
9087 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9089 $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9095 rm -rf conftest.dSYM
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097 conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9101 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9102 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9103 cat >>confdefs.h <<_ACEOF
9104 #define HAVE_LIBCRYPTO 1
9107 LIBS="-lcrypto $LIBS"
9110 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9111 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9112 { (exit 1); exit 1; }; }
9116 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9117 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9118 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9119 $as_echo_n "(cached) " >&6
9121 ac_check_lib_save_LIBS=$LIBS
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9136 char SSL_library_init ();
9140 return SSL_library_init ();
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153 (eval "$ac_link") 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } && {
9160 test -z "$ac_c_werror_flag" ||
9161 test ! -s conftest.err
9162 } && test -s conftest$ac_exeext && {
9163 test "$cross_compiling" = yes ||
9164 $as_test_x conftest$ac_exeext
9166 ac_cv_lib_ssl_SSL_library_init=yes
9168 $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_lib_ssl_SSL_library_init=no
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9180 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9181 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LIBSSL 1
9189 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9190 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9191 { (exit 1); exit 1; }; }
9196 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9197 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9198 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9199 $as_echo_n "(cached) " >&6
9201 ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-leay32 $LIBS"
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9216 char CRYPTO_new_ex_data ();
9220 return CRYPTO_new_ex_data ();
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (ac_try="$ac_link"
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9232 $as_echo "$ac_try_echo") >&5
9233 (eval "$ac_link") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext && {
9243 test "$cross_compiling" = yes ||
9244 $as_test_x conftest$ac_exeext
9246 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9248 $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9254 rm -rf conftest.dSYM
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9260 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9261 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9262 cat >>confdefs.h <<_ACEOF
9263 #define HAVE_LIBEAY32 1
9266 LIBS="-leay32 $LIBS"
9269 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9270 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9271 { (exit 1); exit 1; }; }
9275 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9276 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9277 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9278 $as_echo_n "(cached) " >&6
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lssleay32 $LIBS"
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9295 char SSL_library_init ();
9299 return SSL_library_init ();
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (ac_try="$ac_link"
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311 $as_echo "$ac_try_echo") >&5
9312 (eval "$ac_link") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest$ac_exeext && {
9322 test "$cross_compiling" = yes ||
9323 $as_test_x conftest$ac_exeext
9325 ac_cv_lib_ssleay32_SSL_library_init=yes
9327 $as_echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_lib_ssleay32_SSL_library_init=no
9333 rm -rf conftest.dSYM
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9339 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9340 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_LIBSSLEAY32 1
9345 LIBS="-lssleay32 $LIBS"
9348 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9349 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9350 { (exit 1); exit 1; }; }
9356 if test "$with_pam" = yes ; then
9358 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9359 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9360 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9361 $as_echo_n "(cached) " >&6
9363 ac_check_lib_save_LIBS=$LIBS
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9382 return pam_start ();
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395 (eval "$ac_link") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_c_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest$ac_exeext && {
9405 test "$cross_compiling" = yes ||
9406 $as_test_x conftest$ac_exeext
9408 ac_cv_lib_pam_pam_start=yes
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ac_cv_lib_pam_pam_start=no
9416 rm -rf conftest.dSYM
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9422 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9423 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define HAVE_LIBPAM 1
9431 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9432 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9433 { (exit 1); exit 1; }; }
9438 if test "$with_libxml" = yes ; then
9440 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9441 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9442 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9443 $as_echo_n "(cached) " >&6
9445 ac_check_lib_save_LIBS=$LIBS
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9454 /* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9460 char xmlSaveToBuffer ();
9464 return xmlSaveToBuffer ();
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext && {
9487 test "$cross_compiling" = yes ||
9488 $as_test_x conftest$ac_exeext
9490 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9492 $as_echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_lib_xml2_xmlSaveToBuffer=no
9498 rm -rf conftest.dSYM
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9503 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9504 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9505 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_LIBXML2 1
9513 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9514 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9515 { (exit 1); exit 1; }; }
9520 if test "$with_libxslt" = yes ; then
9522 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9523 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9524 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9525 $as_echo_n "(cached) " >&6
9527 ac_check_lib_save_LIBS=$LIBS
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9536 /* Override any GCC internal prototype to avoid an error.
9537 Use char because int might match the return type of a GCC
9538 builtin and then its argument prototype would still apply. */
9542 char xsltCleanupGlobals ();
9546 return xsltCleanupGlobals ();
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest$ac_exeext && {
9569 test "$cross_compiling" = yes ||
9570 $as_test_x conftest$ac_exeext
9572 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9574 $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_xslt_xsltCleanupGlobals=no
9580 rm -rf conftest.dSYM
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_lib_save_LIBS
9585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9586 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9587 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LIBXSLT 1
9595 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9596 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9597 { (exit 1); exit 1; }; }
9602 # for contrib/sepgsql
9603 if test "$with_selinux" = yes; then
9605 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9606 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9607 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9608 $as_echo_n "(cached) " >&6
9610 ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lselinux $LIBS"
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9625 char selinux_status_open ();
9629 return selinux_status_open ();
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642 (eval "$ac_link") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1 >conftest.err
9646 cat conftest.err >&5
9647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest$ac_exeext && {
9652 test "$cross_compiling" = yes ||
9653 $as_test_x conftest$ac_exeext
9655 ac_cv_lib_selinux_selinux_status_open=yes
9657 $as_echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_cv_lib_selinux_selinux_status_open=no
9663 rm -rf conftest.dSYM
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9669 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9670 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_LIBSELINUX 1
9675 LIBS="-lselinux $LIBS"
9678 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9679 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9680 { (exit 1); exit 1; }; }
9685 # for contrib/uuid-ossp
9686 if test "$with_ossp_uuid" = yes ; then
9687 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9688 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9689 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9690 $as_echo_n "(cached) " >&6
9692 ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-lossp-uuid $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9701 /* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9707 char uuid_export ();
9711 return uuid_export ();
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 $as_echo "$ac_try_echo") >&5
9724 (eval "$ac_link") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest$ac_exeext && {
9734 test "$cross_compiling" = yes ||
9735 $as_test_x conftest$ac_exeext
9737 ac_cv_lib_ossp_uuid_uuid_export=yes
9739 $as_echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_lib_ossp_uuid_uuid_export=no
9745 rm -rf conftest.dSYM
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9751 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9752 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9753 OSSP_UUID_LIBS="-lossp-uuid"
9755 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9756 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9757 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9758 $as_echo_n "(cached) " >&6
9760 ac_check_lib_save_LIBS=$LIBS
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9775 char uuid_export ();
9779 return uuid_export ();
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest$ac_exeext
9805 ac_cv_lib_uuid_uuid_export=yes
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_cv_lib_uuid_uuid_export=no
9813 rm -rf conftest.dSYM
9814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9818 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9819 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9820 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9821 OSSP_UUID_LIBS="-luuid"
9823 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9824 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9825 { (exit 1); exit 1; }; }
9838 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9839 $as_echo_n "checking for ANSI C header files... " >&6; }
9840 if test "${ac_cv_header_stdc+set}" = set; then
9841 $as_echo_n "(cached) " >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9862 rm -f conftest.$ac_objext
9863 if { (ac_try="$ac_compile"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870 (eval "$ac_compile") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest.$ac_objext; then
9880 ac_cv_header_stdc=yes
9882 $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_cv_header_stdc=no
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 if test $ac_cv_header_stdc = yes; then
9891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9902 $EGREP "memchr" >/dev/null 2>&1; then
9905 ac_cv_header_stdc=no
9911 if test $ac_cv_header_stdc = yes; then
9912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923 $EGREP "free" >/dev/null 2>&1; then
9926 ac_cv_header_stdc=no
9932 if test $ac_cv_header_stdc = yes; then
9933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9934 if test "$cross_compiling" = yes; then
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9945 #if ((' ' & 0x0FF) == 0x020)
9946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9949 # define ISLOWER(c) \
9950 (('a' <= (c) && (c) <= 'i') \
9951 || ('j' <= (c) && (c) <= 'r') \
9952 || ('s' <= (c) && (c) <= 'z'))
9953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9961 for (i = 0; i < 256; i++)
9962 if (XOR (islower (i), ISLOWER (i))
9963 || toupper (i) != TOUPPER (i))
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_link") 2>&5
9978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9980 { (case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985 $as_echo "$ac_try_echo") >&5
9986 (eval "$ac_try") 2>&5
9988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9992 $as_echo "$as_me: program exited with status $ac_status" >&5
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_header_stdc=no
9999 rm -rf conftest.dSYM
10000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10007 $as_echo "$ac_cv_header_stdc" >&6; }
10008 if test $ac_cv_header_stdc = yes; then
10010 cat >>confdefs.h <<\_ACEOF
10011 #define STDC_HEADERS 1
10016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10027 inttypes.h stdint.h unistd.h
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10031 $as_echo_n "checking for $ac_header... " >&6; }
10032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10033 $as_echo_n "(cached) " >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10043 #include <$ac_header>
10045 rm -f conftest.$ac_objext
10046 if { (ac_try="$ac_compile"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10052 $as_echo "$ac_try_echo") >&5
10053 (eval "$ac_compile") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && {
10060 test -z "$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 } && test -s conftest.$ac_objext; then
10063 eval "$as_ac_Header=yes"
10065 $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 eval "$as_ac_Header=no"
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 ac_res=`eval 'as_val=${'$as_ac_Header'}
10074 $as_echo "$as_val"'`
10075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10076 $as_echo "$ac_res" >&6; }
10077 as_val=`eval 'as_val=${'$as_ac_Header'}
10078 $as_echo "$as_val"'`
10079 if test "x$as_val" = x""yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10120 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/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 $as_echo_n "checking for $ac_header... " >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127 $as_echo_n "(cached) " >&6
10129 ac_res=`eval 'as_val=${'$as_ac_Header'}
10130 $as_echo "$as_val"'`
10131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10132 $as_echo "$ac_res" >&6; }
10134 # Is the header compilable?
10135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10136 $as_echo_n "checking $ac_header usability... " >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 $ac_includes_default
10144 #include <$ac_header>
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154 (eval "$ac_compile") 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } && {
10161 test -z "$ac_c_werror_flag" ||
10162 test ! -s conftest.err
10163 } && test -s conftest.$ac_objext; then
10164 ac_header_compiler=yes
10166 $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_header_compiler=no
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10174 $as_echo "$ac_header_compiler" >&6; }
10176 # Is the header present?
10177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10178 $as_echo_n "checking $ac_header presence... " >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 #include <$ac_header>
10187 if { (ac_try="$ac_cpp conftest.$ac_ext"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } >/dev/null && {
10201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10204 ac_header_preproc=yes
10206 $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_preproc=no
10212 rm -f conftest.err conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214 $as_echo "$ac_header_preproc" >&6; }
10216 # So? What about this header?
10217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10223 ac_header_preproc=yes
10226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10243 ) | sed "s/^/$as_me: WARNING: /" >&2
10246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 $as_echo_n "checking for $ac_header... " >&6; }
10248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10249 $as_echo_n "(cached) " >&6
10251 eval "$as_ac_Header=\$ac_header_preproc"
10253 ac_res=`eval 'as_val=${'$as_ac_Header'}
10254 $as_echo "$as_val"'`
10255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10256 $as_echo "$ac_res" >&6; }
10259 as_val=`eval 'as_val=${'$as_ac_Header'}
10260 $as_echo "$as_val"'`
10261 if test "x$as_val" = x""yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10271 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10272 # is included first.
10274 for ac_header in net/if.h
10276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10278 $as_echo_n "checking for $ac_header... " >&6; }
10279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10280 $as_echo_n "(cached) " >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10289 #ifdef HAVE_SYS_SOCKET_H
10290 #include <sys/socket.h>
10294 #include <$ac_header>
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304 (eval "$ac_compile") 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest.$ac_objext; then
10314 eval "$as_ac_Header=yes"
10316 $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 eval "$as_ac_Header=no"
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 ac_res=`eval 'as_val=${'$as_ac_Header'}
10325 $as_echo "$as_val"'`
10326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10327 $as_echo "$ac_res" >&6; }
10328 as_val=`eval 'as_val=${'$as_ac_Header'}
10329 $as_echo "$as_val"'`
10330 if test "x$as_val" = x""yes; then
10331 cat >>confdefs.h <<_ACEOF
10332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10340 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10341 # netinet/in.h is included first.
10343 for ac_header in netinet/in.h
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348 $as_echo_n "checking for $ac_header... " >&6; }
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 $as_echo_n "(cached) " >&6
10352 ac_res=`eval 'as_val=${'$as_ac_Header'}
10353 $as_echo "$as_val"'`
10354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355 $as_echo "$ac_res" >&6; }
10357 # Is the header compilable?
10358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 $as_echo_n "checking $ac_header usability... " >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 #include <$ac_header>
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10389 $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_header_compiler=no
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 $as_echo "$ac_header_compiler" >&6; }
10399 # Is the header present?
10400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 $as_echo_n "checking $ac_header presence... " >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <$ac_header>
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10427 ac_header_preproc=yes
10429 $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_header_preproc=no
10435 rm -f conftest.err conftest.$ac_ext
10436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 $as_echo "$ac_header_preproc" >&6; }
10439 # So? What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10466 ) | sed "s/^/$as_me: WARNING: /" >&2
10469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 $as_echo_n "checking for $ac_header... " >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 $as_echo_n "(cached) " >&6
10474 eval "$as_ac_Header=\$ac_header_preproc"
10476 ac_res=`eval 'as_val=${'$as_ac_Header'}
10477 $as_echo "$as_val"'`
10478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10479 $as_echo "$ac_res" >&6; }
10482 as_val=`eval 'as_val=${'$as_ac_Header'}
10483 $as_echo "$as_val"'`
10484 if test "x$as_val" = x""yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10494 for ac_header in netinet/tcp.h
10496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10498 $as_echo_n "checking for $ac_header... " >&6; }
10499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10500 $as_echo_n "(cached) " >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 #ifdef HAVE_NETINET_IN_H
10510 #include <netinet/in.h>
10514 #include <$ac_header>
10516 rm -f conftest.$ac_objext
10517 if { (ac_try="$ac_compile"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523 $as_echo "$ac_try_echo") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest.$ac_objext; then
10534 eval "$as_ac_Header=yes"
10536 $as_echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 eval "$as_ac_Header=no"
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 ac_res=`eval 'as_val=${'$as_ac_Header'}
10545 $as_echo "$as_val"'`
10546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547 $as_echo "$ac_res" >&6; }
10548 as_val=`eval 'as_val=${'$as_ac_Header'}
10549 $as_echo "$as_val"'`
10550 if test "x$as_val" = x""yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10560 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10562 for ac_header in readline/readline.h
10564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10567 $as_echo_n "checking for $ac_header... " >&6; }
10568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10569 $as_echo_n "(cached) " >&6
10571 ac_res=`eval 'as_val=${'$as_ac_Header'}
10572 $as_echo "$as_val"'`
10573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10574 $as_echo "$ac_res" >&6; }
10576 # Is the header compilable?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10578 $as_echo_n "checking $ac_header usability... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 $ac_includes_default
10586 #include <$ac_header>
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596 (eval "$ac_compile") 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest.$ac_objext; then
10606 ac_header_compiler=yes
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_header_compiler=no
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10616 $as_echo "$ac_header_compiler" >&6; }
10618 # Is the header present?
10619 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10620 $as_echo_n "checking $ac_header presence... " >&6; }
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 #include <$ac_header>
10629 if { (ac_try="$ac_cpp conftest.$ac_ext"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } >/dev/null && {
10643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10646 ac_header_preproc=yes
10648 $as_echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_header_preproc=no
10654 rm -f conftest.err conftest.$ac_ext
10655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10656 $as_echo "$ac_header_preproc" >&6; }
10658 # So? What about this header?
10659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10665 ac_header_preproc=yes
10668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10669 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10671 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10675 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10679 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10681 ## ---------------------------------------- ##
10682 ## Report this to pgsql-bugs@postgresql.org ##
10683 ## ---------------------------------------- ##
10685 ) | sed "s/^/$as_me: WARNING: /" >&2
10688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10689 $as_echo_n "checking for $ac_header... " >&6; }
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691 $as_echo_n "(cached) " >&6
10693 eval "$as_ac_Header=\$ac_header_preproc"
10695 ac_res=`eval 'as_val=${'$as_ac_Header'}
10696 $as_echo "$as_val"'`
10697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10698 $as_echo "$ac_res" >&6; }
10701 as_val=`eval 'as_val=${'$as_ac_Header'}
10702 $as_echo "$as_val"'`
10703 if test "x$as_val" = x""yes; then
10704 cat >>confdefs.h <<_ACEOF
10705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10710 for ac_header in readline.h
10712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 $as_echo_n "checking for $ac_header... " >&6; }
10716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10717 $as_echo_n "(cached) " >&6
10719 ac_res=`eval 'as_val=${'$as_ac_Header'}
10720 $as_echo "$as_val"'`
10721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10722 $as_echo "$ac_res" >&6; }
10724 # Is the header compilable?
10725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10726 $as_echo_n "checking $ac_header usability... " >&6; }
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10734 #include <$ac_header>
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10743 $as_echo "$ac_try_echo") >&5
10744 (eval "$ac_compile") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10748 cat conftest.err >&5
10749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest.$ac_objext; then
10754 ac_header_compiler=yes
10756 $as_echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_header_compiler=no
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10764 $as_echo "$ac_header_compiler" >&6; }
10766 # Is the header present?
10767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10768 $as_echo_n "checking $ac_header presence... " >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <$ac_header>
10777 if { (ac_try="$ac_cpp conftest.$ac_ext"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10783 $as_echo "$ac_try_echo") >&5
10784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } >/dev/null && {
10791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10794 ac_header_preproc=yes
10796 $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_header_preproc=no
10802 rm -f conftest.err conftest.$ac_ext
10803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10804 $as_echo "$ac_header_preproc" >&6; }
10806 # So? What about this header?
10807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10813 ac_header_preproc=yes
10816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829 ## ---------------------------------------- ##
10830 ## Report this to pgsql-bugs@postgresql.org ##
10831 ## ---------------------------------------- ##
10833 ) | sed "s/^/$as_me: WARNING: /" >&2
10836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10837 $as_echo_n "checking for $ac_header... " >&6; }
10838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10839 $as_echo_n "(cached) " >&6
10841 eval "$as_ac_Header=\$ac_header_preproc"
10843 ac_res=`eval 'as_val=${'$as_ac_Header'}
10844 $as_echo "$as_val"'`
10845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10846 $as_echo "$ac_res" >&6; }
10849 as_val=`eval 'as_val=${'$as_ac_Header'}
10850 $as_echo "$as_val"'`
10851 if test "x$as_val" = x""yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857 { { $as_echo "$as_me:$LINENO: error: readline header not found
10858 If you have readline already installed, see config.log for details on the
10859 failure. It is possible the compiler isn't looking in the proper directory.
10860 Use --without-readline to disable readline support." >&5
10861 $as_echo "$as_me: error: readline header not found
10862 If you have readline already installed, see config.log for details on the
10863 failure. It is possible the compiler isn't looking in the proper directory.
10864 Use --without-readline to disable readline support." >&2;}
10865 { (exit 1); exit 1; }; }
10875 for ac_header in readline/history.h
10877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 $as_echo_n "checking for $ac_header... " >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882 $as_echo_n "(cached) " >&6
10884 ac_res=`eval 'as_val=${'$as_ac_Header'}
10885 $as_echo "$as_val"'`
10886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10887 $as_echo "$ac_res" >&6; }
10889 # Is the header compilable?
10890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10891 $as_echo_n "checking $ac_header usability... " >&6; }
10892 cat >conftest.$ac_ext <<_ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10898 $ac_includes_default
10899 #include <$ac_header>
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_compile") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest.$ac_objext; then
10919 ac_header_compiler=yes
10921 $as_echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_header_compiler=no
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10929 $as_echo "$ac_header_compiler" >&6; }
10931 # Is the header present?
10932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10933 $as_echo_n "checking $ac_header presence... " >&6; }
10934 cat >conftest.$ac_ext <<_ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 #include <$ac_header>
10942 if { (ac_try="$ac_cpp conftest.$ac_ext"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } >/dev/null && {
10956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10959 ac_header_preproc=yes
10961 $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_header_preproc=no
10967 rm -f conftest.err conftest.$ac_ext
10968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 $as_echo "$ac_header_preproc" >&6; }
10971 # So? What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978 ac_header_preproc=yes
10981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10984 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10988 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10994 ## ---------------------------------------- ##
10995 ## Report this to pgsql-bugs@postgresql.org ##
10996 ## ---------------------------------------- ##
10998 ) | sed "s/^/$as_me: WARNING: /" >&2
11001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 $as_echo_n "checking for $ac_header... " >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 $as_echo_n "(cached) " >&6
11006 eval "$as_ac_Header=\$ac_header_preproc"
11008 ac_res=`eval 'as_val=${'$as_ac_Header'}
11009 $as_echo "$as_val"'`
11010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11011 $as_echo "$ac_res" >&6; }
11014 as_val=`eval 'as_val=${'$as_ac_Header'}
11015 $as_echo "$as_val"'`
11016 if test "x$as_val" = x""yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 for ac_header in history.h
11025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 $as_echo_n "checking for $ac_header... " >&6; }
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 $as_echo_n "(cached) " >&6
11032 ac_res=`eval 'as_val=${'$as_ac_Header'}
11033 $as_echo "$as_val"'`
11034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11035 $as_echo "$ac_res" >&6; }
11037 # Is the header compilable?
11038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11039 $as_echo_n "checking $ac_header usability... " >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 $ac_includes_default
11047 #include <$ac_header>
11049 rm -f conftest.$ac_objext
11050 if { (ac_try="$ac_compile"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11056 $as_echo "$ac_try_echo") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } && {
11064 test -z "$ac_c_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest.$ac_objext; then
11067 ac_header_compiler=yes
11069 $as_echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11072 ac_header_compiler=no
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11077 $as_echo "$ac_header_compiler" >&6; }
11079 # Is the header present?
11080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11081 $as_echo_n "checking $ac_header presence... " >&6; }
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 #include <$ac_header>
11090 if { (ac_try="$ac_cpp conftest.$ac_ext"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } >/dev/null && {
11104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11107 ac_header_preproc=yes
11109 $as_echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 ac_header_preproc=no
11115 rm -f conftest.err conftest.$ac_ext
11116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11117 $as_echo "$ac_header_preproc" >&6; }
11119 # So? What about this header?
11120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11126 ac_header_preproc=yes
11129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11132 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11136 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11142 ## ---------------------------------------- ##
11143 ## Report this to pgsql-bugs@postgresql.org ##
11144 ## ---------------------------------------- ##
11146 ) | sed "s/^/$as_me: WARNING: /" >&2
11149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 $as_echo_n "checking for $ac_header... " >&6; }
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 $as_echo_n "(cached) " >&6
11154 eval "$as_ac_Header=\$ac_header_preproc"
11156 ac_res=`eval 'as_val=${'$as_ac_Header'}
11157 $as_echo "$as_val"'`
11158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11159 $as_echo "$ac_res" >&6; }
11162 as_val=`eval 'as_val=${'$as_ac_Header'}
11163 $as_echo "$as_val"'`
11164 if test "x$as_val" = x""yes; then
11165 cat >>confdefs.h <<_ACEOF
11166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11170 { { $as_echo "$as_me:$LINENO: error: history header not found
11171 If you have readline already installed, see config.log for details on the
11172 failure. It is possible the compiler isn't looking in the proper directory.
11173 Use --without-readline to disable readline support." >&5
11174 $as_echo "$as_me: error: history header not found
11175 If you have readline already installed, see config.log for details on the
11176 failure. It is possible the compiler isn't looking in the proper directory.
11177 Use --without-readline to disable readline support." >&2;}
11178 { (exit 1); exit 1; }; }
11189 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11190 # Some installations of libedit usurp /usr/include/readline/, which seems
11191 # bad practice, since in combined installations readline will have its headers
11192 # there. We might have to resort to AC_EGREP checks to make sure we found
11193 # the proper header...
11195 for ac_header in editline/readline.h
11197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 $as_echo_n "checking for $ac_header... " >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202 $as_echo_n "(cached) " >&6
11204 ac_res=`eval 'as_val=${'$as_ac_Header'}
11205 $as_echo "$as_val"'`
11206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11207 $as_echo "$ac_res" >&6; }
11209 # Is the header compilable?
11210 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11211 $as_echo_n "checking $ac_header usability... " >&6; }
11212 cat >conftest.$ac_ext <<_ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 #include <$ac_header>
11221 rm -f conftest.$ac_objext
11222 if { (ac_try="$ac_compile"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11228 $as_echo "$ac_try_echo") >&5
11229 (eval "$ac_compile") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1 >conftest.err
11233 cat conftest.err >&5
11234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest.$ac_objext; then
11239 ac_header_compiler=yes
11241 $as_echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_header_compiler=no
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 $as_echo "$ac_header_compiler" >&6; }
11251 # Is the header present?
11252 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 $as_echo_n "checking $ac_header presence... " >&6; }
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <$ac_header>
11262 if { (ac_try="$ac_cpp conftest.$ac_ext"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } >/dev/null && {
11276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11279 ac_header_preproc=yes
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_preproc=no
11287 rm -f conftest.err conftest.$ac_ext
11288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 $as_echo "$ac_header_preproc" >&6; }
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 ## ---------------------------------------- ##
11315 ## Report this to pgsql-bugs@postgresql.org ##
11316 ## ---------------------------------------- ##
11318 ) | sed "s/^/$as_me: WARNING: /" >&2
11321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 $as_echo_n "checking for $ac_header... " >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 $as_echo_n "(cached) " >&6
11326 eval "$as_ac_Header=\$ac_header_preproc"
11328 ac_res=`eval 'as_val=${'$as_ac_Header'}
11329 $as_echo "$as_val"'`
11330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331 $as_echo "$ac_res" >&6; }
11334 as_val=`eval 'as_val=${'$as_ac_Header'}
11335 $as_echo "$as_val"'`
11336 if test "x$as_val" = x""yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 for ac_header in readline.h
11345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 $as_echo_n "(cached) " >&6
11352 ac_res=`eval 'as_val=${'$as_ac_Header'}
11353 $as_echo "$as_val"'`
11354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11355 $as_echo "$ac_res" >&6; }
11357 # Is the header compilable?
11358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11359 $as_echo_n "checking $ac_header usability... " >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 #include <$ac_header>
11369 rm -f conftest.$ac_objext
11370 if { (ac_try="$ac_compile"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest.$ac_objext; then
11387 ac_header_compiler=yes
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 ac_header_compiler=no
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 $as_echo "$ac_header_compiler" >&6; }
11399 # Is the header present?
11400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 $as_echo_n "checking $ac_header presence... " >&6; }
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #include <$ac_header>
11410 if { (ac_try="$ac_cpp conftest.$ac_ext"
11411 case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11416 $as_echo "$ac_try_echo") >&5
11417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null && {
11424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11427 ac_header_preproc=yes
11429 $as_echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 $as_echo "$ac_header_preproc" >&6; }
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462 ## ---------------------------------------- ##
11463 ## Report this to pgsql-bugs@postgresql.org ##
11464 ## ---------------------------------------- ##
11466 ) | sed "s/^/$as_me: WARNING: /" >&2
11469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 $as_echo_n "checking for $ac_header... " >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 $as_echo_n "(cached) " >&6
11474 eval "$as_ac_Header=\$ac_header_preproc"
11476 ac_res=`eval 'as_val=${'$as_ac_Header'}
11477 $as_echo "$as_val"'`
11478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11479 $as_echo "$ac_res" >&6; }
11482 as_val=`eval 'as_val=${'$as_ac_Header'}
11483 $as_echo "$as_val"'`
11484 if test "x$as_val" = x""yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11491 for ac_header in readline/readline.h
11493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 $as_echo_n "checking for $ac_header... " >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 $as_echo_n "(cached) " >&6
11500 ac_res=`eval 'as_val=${'$as_ac_Header'}
11501 $as_echo "$as_val"'`
11502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11503 $as_echo "$ac_res" >&6; }
11505 # Is the header compilable?
11506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11507 $as_echo_n "checking $ac_header usability... " >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 $ac_includes_default
11515 #include <$ac_header>
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11524 $as_echo "$ac_try_echo") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.$ac_objext; then
11535 ac_header_compiler=yes
11537 $as_echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_header_compiler=no
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 $as_echo "$ac_header_compiler" >&6; }
11547 # Is the header present?
11548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 $as_echo_n "checking $ac_header presence... " >&6; }
11550 cat >conftest.$ac_ext <<_ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <$ac_header>
11558 if { (ac_try="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11564 $as_echo "$ac_try_echo") >&5
11565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11567 grep -v '^ *+' conftest.er1 >conftest.err
11569 cat conftest.err >&5
11570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } >/dev/null && {
11572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11573 test ! -s conftest.err
11575 ac_header_preproc=yes
11577 $as_echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_header_preproc=no
11583 rm -f conftest.err conftest.$ac_ext
11584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11585 $as_echo "$ac_header_preproc" >&6; }
11587 # So? What about this header?
11588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11594 ac_header_preproc=yes
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11600 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11610 ## ---------------------------------------- ##
11611 ## Report this to pgsql-bugs@postgresql.org ##
11612 ## ---------------------------------------- ##
11614 ) | sed "s/^/$as_me: WARNING: /" >&2
11617 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11618 $as_echo_n "checking for $ac_header... " >&6; }
11619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620 $as_echo_n "(cached) " >&6
11622 eval "$as_ac_Header=\$ac_header_preproc"
11624 ac_res=`eval 'as_val=${'$as_ac_Header'}
11625 $as_echo "$as_val"'`
11626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11627 $as_echo "$ac_res" >&6; }
11630 as_val=`eval 'as_val=${'$as_ac_Header'}
11631 $as_echo "$as_val"'`
11632 if test "x$as_val" = x""yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 { { $as_echo "$as_me:$LINENO: error: readline header not found
11639 If you have libedit already installed, see config.log for details on the
11640 failure. It is possible the compiler isn't looking in the proper directory.
11641 Use --without-readline to disable libedit support." >&5
11642 $as_echo "$as_me: error: readline header not found
11643 If you have libedit already installed, see config.log for details on the
11644 failure. It is possible the compiler isn't looking in the proper directory.
11645 Use --without-readline to disable libedit support." >&2;}
11646 { (exit 1); exit 1; }; }
11659 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11660 # not be there at all. Hence, don't complain if not found. We must check
11661 # though, since in yet other versions it is an independent header.
11663 for ac_header in editline/history.h
11665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 $as_echo_n "checking for $ac_header... " >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670 $as_echo_n "(cached) " >&6
11672 ac_res=`eval 'as_val=${'$as_ac_Header'}
11673 $as_echo "$as_val"'`
11674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11675 $as_echo "$ac_res" >&6; }
11677 # Is the header compilable?
11678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679 $as_echo_n "checking $ac_header usability... " >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 #include <$ac_header>
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_header_compiler=yes
11709 $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_compiler=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717 $as_echo "$ac_header_compiler" >&6; }
11719 # Is the header present?
11720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721 $as_echo_n "checking $ac_header presence... " >&6; }
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <$ac_header>
11730 if { (ac_try="$ac_cpp conftest.$ac_ext"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736 $as_echo "$ac_try_echo") >&5
11737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } >/dev/null && {
11744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11747 ac_header_preproc=yes
11749 $as_echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11752 ac_header_preproc=no
11755 rm -f conftest.err conftest.$ac_ext
11756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11757 $as_echo "$ac_header_preproc" >&6; }
11759 # So? What about this header?
11760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11766 ac_header_preproc=yes
11769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11772 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11776 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 ## ---------------------------------------- ##
11783 ## Report this to pgsql-bugs@postgresql.org ##
11784 ## ---------------------------------------- ##
11786 ) | sed "s/^/$as_me: WARNING: /" >&2
11789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 $as_echo_n "checking for $ac_header... " >&6; }
11791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792 $as_echo_n "(cached) " >&6
11794 eval "$as_ac_Header=\$ac_header_preproc"
11796 ac_res=`eval 'as_val=${'$as_ac_Header'}
11797 $as_echo "$as_val"'`
11798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11799 $as_echo "$ac_res" >&6; }
11802 as_val=`eval 'as_val=${'$as_ac_Header'}
11803 $as_echo "$as_val"'`
11804 if test "x$as_val" = x""yes; then
11805 cat >>confdefs.h <<_ACEOF
11806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11811 for ac_header in history.h
11813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11816 $as_echo_n "checking for $ac_header... " >&6; }
11817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11818 $as_echo_n "(cached) " >&6
11820 ac_res=`eval 'as_val=${'$as_ac_Header'}
11821 $as_echo "$as_val"'`
11822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11823 $as_echo "$ac_res" >&6; }
11825 # Is the header compilable?
11826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11827 $as_echo_n "checking $ac_header usability... " >&6; }
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 #include <$ac_header>
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844 $as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11855 ac_header_compiler=yes
11857 $as_echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_compiler=no
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 $as_echo "$ac_header_compiler" >&6; }
11867 # Is the header present?
11868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 $as_echo_n "checking $ac_header presence... " >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <$ac_header>
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11884 $as_echo "$ac_try_echo") >&5
11885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } >/dev/null && {
11892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11893 test ! -s conftest.err
11895 ac_header_preproc=yes
11897 $as_echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_header_preproc=no
11903 rm -f conftest.err conftest.$ac_ext
11904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11905 $as_echo "$ac_header_preproc" >&6; }
11907 # So? What about this header?
11908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11914 ac_header_preproc=yes
11917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11920 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11924 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11930 ## ---------------------------------------- ##
11931 ## Report this to pgsql-bugs@postgresql.org ##
11932 ## ---------------------------------------- ##
11934 ) | sed "s/^/$as_me: WARNING: /" >&2
11937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11938 $as_echo_n "checking for $ac_header... " >&6; }
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 $as_echo_n "(cached) " >&6
11942 eval "$as_ac_Header=\$ac_header_preproc"
11944 ac_res=`eval 'as_val=${'$as_ac_Header'}
11945 $as_echo "$as_val"'`
11946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11947 $as_echo "$ac_res" >&6; }
11950 as_val=`eval 'as_val=${'$as_ac_Header'}
11951 $as_echo "$as_val"'`
11952 if test "x$as_val" = x""yes; then
11953 cat >>confdefs.h <<_ACEOF
11954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 for ac_header in readline/history.h
11961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11964 $as_echo_n "checking for $ac_header... " >&6; }
11965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11966 $as_echo_n "(cached) " >&6
11968 ac_res=`eval 'as_val=${'$as_ac_Header'}
11969 $as_echo "$as_val"'`
11970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11971 $as_echo "$ac_res" >&6; }
11973 # Is the header compilable?
11974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11975 $as_echo_n "checking $ac_header usability... " >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <$ac_header>
11985 rm -f conftest.$ac_objext
11986 if { (ac_try="$ac_compile"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992 $as_echo "$ac_try_echo") >&5
11993 (eval "$ac_compile") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_c_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest.$ac_objext; then
12003 ac_header_compiler=yes
12005 $as_echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_header_compiler=no
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12013 $as_echo "$ac_header_compiler" >&6; }
12015 # Is the header present?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12017 $as_echo_n "checking $ac_header presence... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 #include <$ac_header>
12026 if { (ac_try="$ac_cpp conftest.$ac_ext"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } >/dev/null && {
12040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12043 ac_header_preproc=yes
12045 $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 ac_header_preproc=no
12051 rm -f conftest.err conftest.$ac_ext
12052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12053 $as_echo "$ac_header_preproc" >&6; }
12055 # So? What about this header?
12056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12062 ac_header_preproc=yes
12065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12078 ## ---------------------------------------- ##
12079 ## Report this to pgsql-bugs@postgresql.org ##
12080 ## ---------------------------------------- ##
12082 ) | sed "s/^/$as_me: WARNING: /" >&2
12085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12086 $as_echo_n "checking for $ac_header... " >&6; }
12087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12088 $as_echo_n "(cached) " >&6
12090 eval "$as_ac_Header=\$ac_header_preproc"
12092 ac_res=`eval 'as_val=${'$as_ac_Header'}
12093 $as_echo "$as_val"'`
12094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12095 $as_echo "$ac_res" >&6; }
12098 as_val=`eval 'as_val=${'$as_ac_Header'}
12099 $as_echo "$as_val"'`
12100 if test "x$as_val" = x""yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12119 if test "$with_zlib" = yes; then
12120 if test "${ac_cv_header_zlib_h+set}" = set; then
12121 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12122 $as_echo_n "checking for zlib.h... " >&6; }
12123 if test "${ac_cv_header_zlib_h+set}" = set; then
12124 $as_echo_n "(cached) " >&6
12126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12127 $as_echo "$ac_cv_header_zlib_h" >&6; }
12129 # Is the header compilable?
12130 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12131 $as_echo_n "checking zlib.h usability... " >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148 $as_echo "$ac_try_echo") >&5
12149 (eval "$ac_compile") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1 >conftest.err
12153 cat conftest.err >&5
12154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && {
12156 test -z "$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest.$ac_objext; then
12159 ac_header_compiler=yes
12161 $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12164 ac_header_compiler=no
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12169 $as_echo "$ac_header_compiler" >&6; }
12171 # Is the header present?
12172 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12173 $as_echo_n "checking zlib.h presence... " >&6; }
12174 cat >conftest.$ac_ext <<_ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12182 if { (ac_try="$ac_cpp conftest.$ac_ext"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev/null && {
12196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12199 ac_header_preproc=yes
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_header_preproc=no
12207 rm -f conftest.err conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12209 $as_echo "$ac_header_preproc" >&6; }
12211 # So? What about this header?
12212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12215 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12216 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12217 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12218 ac_header_preproc=yes
12221 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12222 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12223 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12224 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12225 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12226 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12227 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12228 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12229 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12230 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12231 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12232 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12234 ## ---------------------------------------- ##
12235 ## Report this to pgsql-bugs@postgresql.org ##
12236 ## ---------------------------------------- ##
12238 ) | sed "s/^/$as_me: WARNING: /" >&2
12241 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12242 $as_echo_n "checking for zlib.h... " >&6; }
12243 if test "${ac_cv_header_zlib_h+set}" = set; then
12244 $as_echo_n "(cached) " >&6
12246 ac_cv_header_zlib_h=$ac_header_preproc
12248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12249 $as_echo "$ac_cv_header_zlib_h" >&6; }
12252 if test "x$ac_cv_header_zlib_h" = x""yes; then
12255 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12256 If you have zlib already installed, see config.log for details on the
12257 failure. It is possible the compiler isn't looking in the proper directory.
12258 Use --without-zlib to disable zlib support." >&5
12259 $as_echo "$as_me: error: zlib header not found
12260 If you have zlib already installed, see config.log for details on the
12261 failure. It is possible the compiler isn't looking in the proper directory.
12262 Use --without-zlib to disable zlib support." >&2;}
12263 { (exit 1); exit 1; }; }
12269 if test "$with_gssapi" = yes ; then
12271 for ac_header in gssapi/gssapi.h
12273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 $as_echo_n "checking for $ac_header... " >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12280 ac_res=`eval 'as_val=${'$as_ac_Header'}
12281 $as_echo "$as_val"'`
12282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12283 $as_echo "$ac_res" >&6; }
12285 # Is the header compilable?
12286 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 $as_echo_n "checking $ac_header usability... " >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 $ac_includes_default
12295 #include <$ac_header>
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12304 $as_echo "$ac_try_echo") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
12315 ac_header_compiler=yes
12317 $as_echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_header_compiler=no
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12325 $as_echo "$ac_header_compiler" >&6; }
12327 # Is the header present?
12328 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12329 $as_echo_n "checking $ac_header presence... " >&6; }
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 #include <$ac_header>
12338 if { (ac_try="$ac_cpp conftest.$ac_ext"
12339 case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12344 $as_echo "$ac_try_echo") >&5
12345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } >/dev/null && {
12352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12355 ac_header_preproc=yes
12357 $as_echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_header_preproc=no
12363 rm -f conftest.err conftest.$ac_ext
12364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12365 $as_echo "$ac_header_preproc" >&6; }
12367 # So? What about this header?
12368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12371 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12374 ac_header_preproc=yes
12377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12378 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12380 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12382 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12384 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12388 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12390 ## ---------------------------------------- ##
12391 ## Report this to pgsql-bugs@postgresql.org ##
12392 ## ---------------------------------------- ##
12394 ) | sed "s/^/$as_me: WARNING: /" >&2
12397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12398 $as_echo_n "checking for $ac_header... " >&6; }
12399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12400 $as_echo_n "(cached) " >&6
12402 eval "$as_ac_Header=\$ac_header_preproc"
12404 ac_res=`eval 'as_val=${'$as_ac_Header'}
12405 $as_echo "$as_val"'`
12406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12407 $as_echo "$ac_res" >&6; }
12410 as_val=`eval 'as_val=${'$as_ac_Header'}
12411 $as_echo "$as_val"'`
12412 if test "x$as_val" = x""yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12419 for ac_header in gssapi.h
12421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12423 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12424 $as_echo_n "checking for $ac_header... " >&6; }
12425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12426 $as_echo_n "(cached) " >&6
12428 ac_res=`eval 'as_val=${'$as_ac_Header'}
12429 $as_echo "$as_val"'`
12430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12431 $as_echo "$ac_res" >&6; }
12433 # Is the header compilable?
12434 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12435 $as_echo_n "checking $ac_header usability... " >&6; }
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 $ac_includes_default
12443 #include <$ac_header>
12445 rm -f conftest.$ac_objext
12446 if { (ac_try="$ac_compile"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452 $as_echo "$ac_try_echo") >&5
12453 (eval "$ac_compile") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest.$ac_objext; then
12463 ac_header_compiler=yes
12465 $as_echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_header_compiler=no
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12473 $as_echo "$ac_header_compiler" >&6; }
12475 # Is the header present?
12476 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12477 $as_echo_n "checking $ac_header presence... " >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 #include <$ac_header>
12486 if { (ac_try="$ac_cpp conftest.$ac_ext"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12492 $as_echo "$ac_try_echo") >&5
12493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } >/dev/null && {
12500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12503 ac_header_preproc=yes
12505 $as_echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_header_preproc=no
12511 rm -f conftest.err conftest.$ac_ext
12512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 $as_echo "$ac_header_preproc" >&6; }
12515 # So? What about this header?
12516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12519 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12521 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12522 ac_header_preproc=yes
12525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12526 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12528 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12530 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12532 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12536 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12538 ## ---------------------------------------- ##
12539 ## Report this to pgsql-bugs@postgresql.org ##
12540 ## ---------------------------------------- ##
12542 ) | sed "s/^/$as_me: WARNING: /" >&2
12545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12546 $as_echo_n "checking for $ac_header... " >&6; }
12547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12548 $as_echo_n "(cached) " >&6
12550 eval "$as_ac_Header=\$ac_header_preproc"
12552 ac_res=`eval 'as_val=${'$as_ac_Header'}
12553 $as_echo "$as_val"'`
12554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12555 $as_echo "$ac_res" >&6; }
12558 as_val=`eval 'as_val=${'$as_ac_Header'}
12559 $as_echo "$as_val"'`
12560 if test "x$as_val" = x""yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12566 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12567 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12568 { (exit 1); exit 1; }; }
12579 if test "$with_krb5" = yes ; then
12580 if test "${ac_cv_header_krb5_h+set}" = set; then
12581 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12582 $as_echo_n "checking for krb5.h... " >&6; }
12583 if test "${ac_cv_header_krb5_h+set}" = set; then
12584 $as_echo_n "(cached) " >&6
12586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12587 $as_echo "$ac_cv_header_krb5_h" >&6; }
12589 # Is the header compilable?
12590 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12591 $as_echo_n "checking krb5.h usability... " >&6; }
12592 cat >conftest.$ac_ext <<_ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12601 rm -f conftest.$ac_objext
12602 if { (ac_try="$ac_compile"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608 $as_echo "$ac_try_echo") >&5
12609 (eval "$ac_compile") 2>conftest.er1
12611 grep -v '^ *+' conftest.er1 >conftest.err
12613 cat conftest.err >&5
12614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
12618 } && test -s conftest.$ac_objext; then
12619 ac_header_compiler=yes
12621 $as_echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12624 ac_header_compiler=no
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12629 $as_echo "$ac_header_compiler" >&6; }
12631 # Is the header present?
12632 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12633 $as_echo_n "checking krb5.h presence... " >&6; }
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12642 if { (ac_try="$ac_cpp conftest.$ac_ext"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12648 $as_echo "$ac_try_echo") >&5
12649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } >/dev/null && {
12656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12659 ac_header_preproc=yes
12661 $as_echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_header_preproc=no
12667 rm -f conftest.err conftest.$ac_ext
12668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12669 $as_echo "$ac_header_preproc" >&6; }
12671 # So? What about this header?
12672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12674 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12675 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12676 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12677 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12678 ac_header_preproc=yes
12681 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12682 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12683 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12684 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12685 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12686 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12687 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12688 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12689 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12690 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12691 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12692 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12694 ## ---------------------------------------- ##
12695 ## Report this to pgsql-bugs@postgresql.org ##
12696 ## ---------------------------------------- ##
12698 ) | sed "s/^/$as_me: WARNING: /" >&2
12701 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12702 $as_echo_n "checking for krb5.h... " >&6; }
12703 if test "${ac_cv_header_krb5_h+set}" = set; then
12704 $as_echo_n "(cached) " >&6
12706 ac_cv_header_krb5_h=$ac_header_preproc
12708 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12709 $as_echo "$ac_cv_header_krb5_h" >&6; }
12712 if test "x$ac_cv_header_krb5_h" = x""yes; then
12715 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12716 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12717 { (exit 1); exit 1; }; }
12723 if test "$with_openssl" = yes ; then
12724 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12725 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12726 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12727 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12728 $as_echo_n "(cached) " >&6
12730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12731 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12733 # Is the header compilable?
12734 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12735 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12743 #include <openssl/ssl.h>
12745 rm -f conftest.$ac_objext
12746 if { (ac_try="$ac_compile"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753 (eval "$ac_compile") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest.$ac_objext; then
12763 ac_header_compiler=yes
12765 $as_echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_header_compiler=no
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 $as_echo "$ac_header_compiler" >&6; }
12775 # Is the header present?
12776 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12777 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 #include <openssl/ssl.h>
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792 $as_echo "$ac_try_echo") >&5
12793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1 >conftest.err
12797 cat conftest.err >&5
12798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } >/dev/null && {
12800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12803 ac_header_preproc=yes
12805 $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_header_preproc=no
12811 rm -f conftest.err conftest.$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 $as_echo "$ac_header_preproc" >&6; }
12815 # So? What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12818 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12819 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12821 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12822 ac_header_preproc=yes
12825 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12826 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12827 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12828 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12829 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12830 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12831 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12832 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12833 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12834 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12835 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12836 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12842 ) | sed "s/^/$as_me: WARNING: /" >&2
12845 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12846 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12847 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12848 $as_echo_n "(cached) " >&6
12850 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12853 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12856 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12859 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12860 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12861 { (exit 1); exit 1; }; }
12865 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12866 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12867 $as_echo_n "checking for openssl/err.h... " >&6; }
12868 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12869 $as_echo_n "(cached) " >&6
12871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12872 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12874 # Is the header compilable?
12875 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12876 $as_echo_n "checking openssl/err.h usability... " >&6; }
12877 cat >conftest.$ac_ext <<_ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12883 $ac_includes_default
12884 #include <openssl/err.h>
12886 rm -f conftest.$ac_objext
12887 if { (ac_try="$ac_compile"
12888 case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_compile") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && {
12901 test -z "$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12903 } && test -s conftest.$ac_objext; then
12904 ac_header_compiler=yes
12906 $as_echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_header_compiler=no
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 $as_echo "$ac_header_compiler" >&6; }
12916 # Is the header present?
12917 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12918 $as_echo_n "checking openssl/err.h presence... " >&6; }
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 #include <openssl/err.h>
12927 if { (ac_try="$ac_cpp conftest.$ac_ext"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933 $as_echo "$ac_try_echo") >&5
12934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null && {
12941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12944 ac_header_preproc=yes
12946 $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_header_preproc=no
12952 rm -f conftest.err conftest.$ac_ext
12953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 $as_echo "$ac_header_preproc" >&6; }
12956 # So? What about this header?
12957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12959 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12960 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12962 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12963 ac_header_preproc=yes
12966 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12967 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12968 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12969 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12970 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12971 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12972 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12973 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12974 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12975 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12976 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12977 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12979 ## ---------------------------------------- ##
12980 ## Report this to pgsql-bugs@postgresql.org ##
12981 ## ---------------------------------------- ##
12983 ) | sed "s/^/$as_me: WARNING: /" >&2
12986 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12987 $as_echo_n "checking for openssl/err.h... " >&6; }
12988 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12989 $as_echo_n "(cached) " >&6
12991 ac_cv_header_openssl_err_h=$ac_header_preproc
12993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12994 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12997 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13000 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13001 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13002 { (exit 1); exit 1; }; }
13007 for ac_func in ERR_set_mark
13009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13011 $as_echo_n "checking for $ac_func... " >&6; }
13012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13013 $as_echo_n "(cached) " >&6
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13023 #define $ac_func innocuous_$ac_func
13025 /* System header to define __stub macros and hopefully few prototypes,
13026 which can conflict with char $ac_func (); below.
13027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13028 <limits.h> exists even on freestanding compilers. */
13031 # include <limits.h>
13033 # include <assert.h>
13038 /* Override any GCC internal prototype to avoid an error.
13039 Use char because int might match the return type of a GCC
13040 builtin and then its argument prototype would still apply. */
13045 /* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048 #if defined __stub_$ac_func || defined __stub___$ac_func
13055 return $ac_func ();
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068 (eval "$ac_link") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } && {
13075 test -z "$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 } && test -s conftest$ac_exeext && {
13078 test "$cross_compiling" = yes ||
13079 $as_test_x conftest$ac_exeext
13081 eval "$as_ac_var=yes"
13083 $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 eval "$as_ac_var=no"
13089 rm -rf conftest.dSYM
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13093 ac_res=`eval 'as_val=${'$as_ac_var'}
13094 $as_echo "$as_val"'`
13095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13096 $as_echo "$ac_res" >&6; }
13097 as_val=`eval 'as_val=${'$as_ac_var'}
13098 $as_echo "$as_val"'`
13099 if test "x$as_val" = x""yes; then
13100 cat >>confdefs.h <<_ACEOF
13101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13109 if test "$with_pam" = yes ; then
13111 for ac_header in security/pam_appl.h
13113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 $as_echo_n "checking for $ac_header... " >&6; }
13117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13118 $as_echo_n "(cached) " >&6
13120 ac_res=`eval 'as_val=${'$as_ac_Header'}
13121 $as_echo "$as_val"'`
13122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13123 $as_echo "$ac_res" >&6; }
13125 # Is the header compilable?
13126 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13127 $as_echo_n "checking $ac_header usability... " >&6; }
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 $ac_includes_default
13135 #include <$ac_header>
13137 rm -f conftest.$ac_objext
13138 if { (ac_try="$ac_compile"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13155 ac_header_compiler=yes
13157 $as_echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_header_compiler=no
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13165 $as_echo "$ac_header_compiler" >&6; }
13167 # Is the header present?
13168 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13169 $as_echo_n "checking $ac_header presence... " >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13176 #include <$ac_header>
13178 if { (ac_try="$ac_cpp conftest.$ac_ext"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13184 $as_echo "$ac_try_echo") >&5
13185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 grep -v '^ *+' conftest.er1 >conftest.err
13189 cat conftest.err >&5
13190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } >/dev/null && {
13192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13193 test ! -s conftest.err
13195 ac_header_preproc=yes
13197 $as_echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13200 ac_header_preproc=no
13203 rm -f conftest.err conftest.$ac_ext
13204 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13205 $as_echo "$ac_header_preproc" >&6; }
13207 # So? What about this header?
13208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13211 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13214 ac_header_preproc=yes
13217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13218 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13220 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13222 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13224 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13228 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13230 ## ---------------------------------------- ##
13231 ## Report this to pgsql-bugs@postgresql.org ##
13232 ## ---------------------------------------- ##
13234 ) | sed "s/^/$as_me: WARNING: /" >&2
13237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 $as_echo_n "checking for $ac_header... " >&6; }
13239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13240 $as_echo_n "(cached) " >&6
13242 eval "$as_ac_Header=\$ac_header_preproc"
13244 ac_res=`eval 'as_val=${'$as_ac_Header'}
13245 $as_echo "$as_val"'`
13246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13247 $as_echo "$ac_res" >&6; }
13250 as_val=`eval 'as_val=${'$as_ac_Header'}
13251 $as_echo "$as_val"'`
13252 if test "x$as_val" = x""yes; then
13253 cat >>confdefs.h <<_ACEOF
13254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13259 for ac_header in pam/pam_appl.h
13261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13263 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13264 $as_echo_n "checking for $ac_header... " >&6; }
13265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266 $as_echo_n "(cached) " >&6
13268 ac_res=`eval 'as_val=${'$as_ac_Header'}
13269 $as_echo "$as_val"'`
13270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13271 $as_echo "$ac_res" >&6; }
13273 # Is the header compilable?
13274 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275 $as_echo_n "checking $ac_header usability... " >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 $ac_includes_default
13283 #include <$ac_header>
13285 rm -f conftest.$ac_objext
13286 if { (ac_try="$ac_compile"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293 (eval "$ac_compile") 2>conftest.er1
13295 grep -v '^ *+' conftest.er1 >conftest.err
13297 cat conftest.err >&5
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && {
13300 test -z "$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13302 } && test -s conftest.$ac_objext; then
13303 ac_header_compiler=yes
13305 $as_echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ac_header_compiler=no
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13313 $as_echo "$ac_header_compiler" >&6; }
13315 # Is the header present?
13316 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13317 $as_echo_n "checking $ac_header presence... " >&6; }
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <$ac_header>
13326 if { (ac_try="$ac_cpp conftest.$ac_ext"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13332 $as_echo "$ac_try_echo") >&5
13333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } >/dev/null && {
13340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13343 ac_header_preproc=yes
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_header_preproc=no
13351 rm -f conftest.err conftest.$ac_ext
13352 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13353 $as_echo "$ac_header_preproc" >&6; }
13355 # So? What about this header?
13356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13359 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13362 ac_header_preproc=yes
13365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13366 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13368 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13378 ## ---------------------------------------- ##
13379 ## Report this to pgsql-bugs@postgresql.org ##
13380 ## ---------------------------------------- ##
13382 ) | sed "s/^/$as_me: WARNING: /" >&2
13385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13386 $as_echo_n "checking for $ac_header... " >&6; }
13387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13388 $as_echo_n "(cached) " >&6
13390 eval "$as_ac_Header=\$ac_header_preproc"
13392 ac_res=`eval 'as_val=${'$as_ac_Header'}
13393 $as_echo "$as_val"'`
13394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13395 $as_echo "$ac_res" >&6; }
13398 as_val=`eval 'as_val=${'$as_ac_Header'}
13399 $as_echo "$as_val"'`
13400 if test "x$as_val" = x""yes; then
13401 cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13406 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13407 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13408 { (exit 1); exit 1; }; }
13419 if test "$with_libxml" = yes ; then
13420 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13421 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13422 $as_echo_n "checking for libxml/parser.h... " >&6; }
13423 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13424 $as_echo_n "(cached) " >&6
13426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13427 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13429 # Is the header compilable?
13430 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13431 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 #include <libxml/parser.h>
13441 rm -f conftest.$ac_objext
13442 if { (ac_try="$ac_compile"
13443 case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13448 $as_echo "$ac_try_echo") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && {
13456 test -z "$ac_c_werror_flag" ||
13457 test ! -s conftest.err
13458 } && test -s conftest.$ac_objext; then
13459 ac_header_compiler=yes
13461 $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_header_compiler=no
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 $as_echo "$ac_header_compiler" >&6; }
13471 # Is the header present?
13472 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13473 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #include <libxml/parser.h>
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13488 $as_echo "$ac_try_echo") >&5
13489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } >/dev/null && {
13496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13499 ac_header_preproc=yes
13501 $as_echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_header_preproc=no
13507 rm -f conftest.err conftest.$ac_ext
13508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13509 $as_echo "$ac_header_preproc" >&6; }
13511 # So? What about this header?
13512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13514 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13515 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13516 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13517 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13518 ac_header_preproc=yes
13521 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13522 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13523 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13524 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13525 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13526 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13527 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13528 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13529 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13530 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13531 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13532 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13534 ## ---------------------------------------- ##
13535 ## Report this to pgsql-bugs@postgresql.org ##
13536 ## ---------------------------------------- ##
13538 ) | sed "s/^/$as_me: WARNING: /" >&2
13541 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13542 $as_echo_n "checking for libxml/parser.h... " >&6; }
13543 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13544 $as_echo_n "(cached) " >&6
13546 ac_cv_header_libxml_parser_h=$ac_header_preproc
13548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13549 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13552 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13555 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13556 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13557 { (exit 1); exit 1; }; }
13563 if test "$with_libxslt" = yes ; then
13564 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13565 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13566 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13567 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13568 $as_echo_n "(cached) " >&6
13570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13571 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13573 # Is the header compilable?
13574 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13575 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 $ac_includes_default
13583 #include <libxslt/xslt.h>
13585 rm -f conftest.$ac_objext
13586 if { (ac_try="$ac_compile"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13592 $as_echo "$ac_try_echo") >&5
13593 (eval "$ac_compile") 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest.$ac_objext; then
13603 ac_header_compiler=yes
13605 $as_echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_header_compiler=no
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613 $as_echo "$ac_header_compiler" >&6; }
13615 # Is the header present?
13616 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13617 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include <libxslt/xslt.h>
13626 if { (ac_try="$ac_cpp conftest.$ac_ext"
13627 case "(($ac_try" in
13628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629 *) ac_try_echo=$ac_try;;
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } >/dev/null && {
13640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13643 ac_header_preproc=yes
13645 $as_echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_header_preproc=no
13651 rm -f conftest.err conftest.$ac_ext
13652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 $as_echo "$ac_header_preproc" >&6; }
13655 # So? What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13658 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13661 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13662 ac_header_preproc=yes
13665 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13666 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13667 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13668 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13669 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13670 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13671 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13672 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13673 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13674 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13675 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13676 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13678 ## ---------------------------------------- ##
13679 ## Report this to pgsql-bugs@postgresql.org ##
13680 ## ---------------------------------------- ##
13682 ) | sed "s/^/$as_me: WARNING: /" >&2
13685 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13686 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13687 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13688 $as_echo_n "(cached) " >&6
13690 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13693 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13696 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13699 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13700 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13701 { (exit 1); exit 1; }; }
13707 if test "$with_ldap" = yes ; then
13708 if test "$PORTNAME" != "win32"; then
13710 for ac_header in ldap.h
13712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 $as_echo_n "checking for $ac_header... " >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717 $as_echo_n "(cached) " >&6
13719 ac_res=`eval 'as_val=${'$as_ac_Header'}
13720 $as_echo "$as_val"'`
13721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13722 $as_echo "$ac_res" >&6; }
13724 # Is the header compilable?
13725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13726 $as_echo_n "checking $ac_header usability... " >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 $ac_includes_default
13734 #include <$ac_header>
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13743 $as_echo "$ac_try_echo") >&5
13744 (eval "$ac_compile") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } && {
13751 test -z "$ac_c_werror_flag" ||
13752 test ! -s conftest.err
13753 } && test -s conftest.$ac_objext; then
13754 ac_header_compiler=yes
13756 $as_echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 ac_header_compiler=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13764 $as_echo "$ac_header_compiler" >&6; }
13766 # Is the header present?
13767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13768 $as_echo_n "checking $ac_header presence... " >&6; }
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #include <$ac_header>
13777 if { (ac_try="$ac_cpp conftest.$ac_ext"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } >/dev/null && {
13791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13794 ac_header_preproc=yes
13796 $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_header_preproc=no
13802 rm -f conftest.err conftest.$ac_ext
13803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13804 $as_echo "$ac_header_preproc" >&6; }
13806 # So? What about this header?
13807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13813 ac_header_preproc=yes
13816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13829 ## ---------------------------------------- ##
13830 ## Report this to pgsql-bugs@postgresql.org ##
13831 ## ---------------------------------------- ##
13833 ) | sed "s/^/$as_me: WARNING: /" >&2
13836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13837 $as_echo_n "checking for $ac_header... " >&6; }
13838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13839 $as_echo_n "(cached) " >&6
13841 eval "$as_ac_Header=\$ac_header_preproc"
13843 ac_res=`eval 'as_val=${'$as_ac_Header'}
13844 $as_echo "$as_val"'`
13845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13846 $as_echo "$ac_res" >&6; }
13849 as_val=`eval 'as_val=${'$as_ac_Header'}
13850 $as_echo "$as_val"'`
13851 if test "x$as_val" = x""yes; then
13852 cat >>confdefs.h <<_ACEOF
13853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13857 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13858 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13859 { (exit 1); exit 1; }; }
13866 for ac_header in winldap.h
13868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 $as_echo_n "checking for $ac_header... " >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872 $as_echo_n "(cached) " >&6
13874 cat >conftest.$ac_ext <<_ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13881 #include <windows.h>
13884 #include <$ac_header>
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13893 $as_echo "$ac_try_echo") >&5
13894 (eval "$ac_compile") 2>conftest.er1
13896 grep -v '^ *+' conftest.er1 >conftest.err
13898 cat conftest.err >&5
13899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } && {
13901 test -z "$ac_c_werror_flag" ||
13902 test ! -s conftest.err
13903 } && test -s conftest.$ac_objext; then
13904 eval "$as_ac_Header=yes"
13906 $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 eval "$as_ac_Header=no"
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 ac_res=`eval 'as_val=${'$as_ac_Header'}
13915 $as_echo "$as_val"'`
13916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917 $as_echo "$ac_res" >&6; }
13918 as_val=`eval 'as_val=${'$as_ac_Header'}
13919 $as_echo "$as_val"'`
13920 if test "x$as_val" = x""yes; then
13921 cat >>confdefs.h <<_ACEOF
13922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13926 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13927 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13928 { (exit 1); exit 1; }; }
13936 if test "$with_bonjour" = yes ; then
13937 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13938 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13939 $as_echo_n "checking for dns_sd.h... " >&6; }
13940 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13941 $as_echo_n "(cached) " >&6
13943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13944 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13946 # Is the header compilable?
13947 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13948 $as_echo_n "checking dns_sd.h usability... " >&6; }
13949 cat >conftest.$ac_ext <<_ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 $ac_includes_default
13956 #include <dns_sd.h>
13958 rm -f conftest.$ac_objext
13959 if { (ac_try="$ac_compile"
13960 case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13965 $as_echo "$ac_try_echo") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.$ac_objext; then
13976 ac_header_compiler=yes
13978 $as_echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_header_compiler=no
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 $as_echo "$ac_header_compiler" >&6; }
13988 # Is the header present?
13989 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13990 $as_echo_n "checking dns_sd.h presence... " >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <dns_sd.h>
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14005 $as_echo "$ac_try_echo") >&5
14006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } >/dev/null && {
14013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14014 test ! -s conftest.err
14016 ac_header_preproc=yes
14018 $as_echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_header_preproc=no
14024 rm -f conftest.err conftest.$ac_ext
14025 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14026 $as_echo "$ac_header_preproc" >&6; }
14028 # So? What about this header?
14029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14031 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14032 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14033 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14034 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14035 ac_header_preproc=yes
14038 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14039 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14040 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14041 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14042 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14043 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14044 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14045 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14046 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14047 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14048 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14049 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14051 ## ---------------------------------------- ##
14052 ## Report this to pgsql-bugs@postgresql.org ##
14053 ## ---------------------------------------- ##
14055 ) | sed "s/^/$as_me: WARNING: /" >&2
14058 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14059 $as_echo_n "checking for dns_sd.h... " >&6; }
14060 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14061 $as_echo_n "(cached) " >&6
14063 ac_cv_header_dns_sd_h=$ac_header_preproc
14065 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14066 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14069 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14072 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14073 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14074 { (exit 1); exit 1; }; }
14080 # for contrib/uuid-ossp
14081 if test "$with_ossp_uuid" = yes ; then
14083 for ac_header in ossp/uuid.h
14085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14088 $as_echo_n "checking for $ac_header... " >&6; }
14089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14090 $as_echo_n "(cached) " >&6
14092 ac_res=`eval 'as_val=${'$as_ac_Header'}
14093 $as_echo "$as_val"'`
14094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14095 $as_echo "$ac_res" >&6; }
14097 # Is the header compilable?
14098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 $as_echo_n "checking $ac_header usability... " >&6; }
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 $ac_includes_default
14107 #include <$ac_header>
14109 rm -f conftest.$ac_objext
14110 if { (ac_try="$ac_compile"
14111 case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_compile") 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && {
14124 test -z "$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 } && test -s conftest.$ac_objext; then
14127 ac_header_compiler=yes
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 ac_header_compiler=no
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14137 $as_echo "$ac_header_compiler" >&6; }
14139 # Is the header present?
14140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14141 $as_echo_n "checking $ac_header presence... " >&6; }
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 #include <$ac_header>
14150 if { (ac_try="$ac_cpp conftest.$ac_ext"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } >/dev/null && {
14164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14167 ac_header_preproc=yes
14169 $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_header_preproc=no
14175 rm -f conftest.err conftest.$ac_ext
14176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14177 $as_echo "$ac_header_preproc" >&6; }
14179 # So? What about this header?
14180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14186 ac_header_preproc=yes
14189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14192 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14196 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14202 ## ---------------------------------------- ##
14203 ## Report this to pgsql-bugs@postgresql.org ##
14204 ## ---------------------------------------- ##
14206 ) | sed "s/^/$as_me: WARNING: /" >&2
14209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 $as_echo_n "checking for $ac_header... " >&6; }
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212 $as_echo_n "(cached) " >&6
14214 eval "$as_ac_Header=\$ac_header_preproc"
14216 ac_res=`eval 'as_val=${'$as_ac_Header'}
14217 $as_echo "$as_val"'`
14218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14219 $as_echo "$ac_res" >&6; }
14222 as_val=`eval 'as_val=${'$as_ac_Header'}
14223 $as_echo "$as_val"'`
14224 if test "x$as_val" = x""yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 for ac_header in uuid.h
14234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14237 $as_echo_n "checking for $ac_header... " >&6; }
14238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14239 $as_echo_n "(cached) " >&6
14241 ac_res=`eval 'as_val=${'$as_ac_Header'}
14242 $as_echo "$as_val"'`
14243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14246 # Is the header compilable?
14247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14248 $as_echo_n "checking $ac_header usability... " >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 #include <$ac_header>
14258 rm -f conftest.$ac_objext
14259 if { (ac_try="$ac_compile"
14260 case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14265 $as_echo "$ac_try_echo") >&5
14266 (eval "$ac_compile") 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest.$ac_objext; then
14276 ac_header_compiler=yes
14278 $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ac_header_compiler=no
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14286 $as_echo "$ac_header_compiler" >&6; }
14288 # Is the header present?
14289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14290 $as_echo_n "checking $ac_header presence... " >&6; }
14291 cat >conftest.$ac_ext <<_ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <$ac_header>
14299 if { (ac_try="$ac_cpp conftest.$ac_ext"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14305 $as_echo "$ac_try_echo") >&5
14306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } >/dev/null && {
14313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14314 test ! -s conftest.err
14316 ac_header_preproc=yes
14318 $as_echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 ac_header_preproc=no
14324 rm -f conftest.err conftest.$ac_ext
14325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14326 $as_echo "$ac_header_preproc" >&6; }
14328 # So? What about this header?
14329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14335 ac_header_preproc=yes
14338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14341 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14345 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14351 ## ---------------------------------------- ##
14352 ## Report this to pgsql-bugs@postgresql.org ##
14353 ## ---------------------------------------- ##
14355 ) | sed "s/^/$as_me: WARNING: /" >&2
14358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14359 $as_echo_n "checking for $ac_header... " >&6; }
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 $as_echo_n "(cached) " >&6
14363 eval "$as_ac_Header=\$ac_header_preproc"
14365 ac_res=`eval 'as_val=${'$as_ac_Header'}
14366 $as_echo "$as_val"'`
14367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14368 $as_echo "$ac_res" >&6; }
14371 as_val=`eval 'as_val=${'$as_ac_Header'}
14372 $as_echo "$as_val"'`
14373 if test "x$as_val" = x""yes; then
14374 cat >>confdefs.h <<_ACEOF
14375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14379 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14380 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14381 { (exit 1); exit 1; }; }
14392 if test "$PORTNAME" = "win32" ; then
14394 for ac_header in crtdefs.h
14396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14399 $as_echo_n "checking for $ac_header... " >&6; }
14400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14401 $as_echo_n "(cached) " >&6
14403 ac_res=`eval 'as_val=${'$as_ac_Header'}
14404 $as_echo "$as_val"'`
14405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14406 $as_echo "$ac_res" >&6; }
14408 # Is the header compilable?
14409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 $as_echo_n "checking $ac_header usability... " >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h. */
14417 $ac_includes_default
14418 #include <$ac_header>
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_compile") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } && {
14435 test -z "$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 } && test -s conftest.$ac_objext; then
14438 ac_header_compiler=yes
14440 $as_echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14443 ac_header_compiler=no
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14448 $as_echo "$ac_header_compiler" >&6; }
14450 # Is the header present?
14451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14452 $as_echo_n "checking $ac_header presence... " >&6; }
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 #include <$ac_header>
14461 if { (ac_try="$ac_cpp conftest.$ac_ext"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14467 $as_echo "$ac_try_echo") >&5
14468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } >/dev/null && {
14475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14478 ac_header_preproc=yes
14480 $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 ac_header_preproc=no
14486 rm -f conftest.err conftest.$ac_ext
14487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14488 $as_echo "$ac_header_preproc" >&6; }
14490 # So? What about this header?
14491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14497 ac_header_preproc=yes
14500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14513 ## ---------------------------------------- ##
14514 ## Report this to pgsql-bugs@postgresql.org ##
14515 ## ---------------------------------------- ##
14517 ) | sed "s/^/$as_me: WARNING: /" >&2
14520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14521 $as_echo_n "checking for $ac_header... " >&6; }
14522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523 $as_echo_n "(cached) " >&6
14525 eval "$as_ac_Header=\$ac_header_preproc"
14527 ac_res=`eval 'as_val=${'$as_ac_Header'}
14528 $as_echo "$as_val"'`
14529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14530 $as_echo "$ac_res" >&6; }
14533 as_val=`eval 'as_val=${'$as_ac_Header'}
14534 $as_echo "$as_val"'`
14535 if test "x$as_val" = x""yes; then
14536 cat >>confdefs.h <<_ACEOF
14537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14547 ## Types, structures, compiler characteristics
14551 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14553 if test "${ac_cv_c_bigendian+set}" = set; then
14554 $as_echo_n "(cached) " >&6
14556 ac_cv_c_bigendian=unknown
14557 # See if we're dealing with a universal compiler.
14558 cat >conftest.$ac_ext <<_ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #ifndef __APPLE_CC__
14565 not a universal capable compiler
14570 rm -f conftest.$ac_objext
14571 if { (ac_try="$ac_compile"
14572 case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578 (eval "$ac_compile") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest.$ac_objext; then
14589 # Check for potential -arch flags. It is not universal unless
14590 # there are some -arch flags. Note that *ppc* also matches
14591 # ppc64. This check is also rather less than ideal.
14592 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14593 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14596 $as_echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 if test $ac_cv_c_bigendian = unknown; then
14604 # See if sys/param.h defines the BYTE_ORDER macro.
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 #include <sys/types.h>
14612 #include <sys/param.h>
14617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14618 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14620 bogus endian macros
14627 rm -f conftest.$ac_objext
14628 if { (ac_try="$ac_compile"
14629 case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1 >conftest.err
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.$ac_objext; then
14645 # It does; now see whether it defined to BIG_ENDIAN or not.
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 #include <sys/types.h>
14653 #include <sys/param.h>
14658 #if BYTE_ORDER != BIG_ENDIAN
14666 rm -f conftest.$ac_objext
14667 if { (ac_try="$ac_compile"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14673 $as_echo "$ac_try_echo") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_cv_c_bigendian=yes
14686 $as_echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_c_bigendian=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 if test $ac_cv_c_bigendian = unknown; then
14703 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 #include <limits.h>
14715 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14716 bogus endian macros
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731 (eval "$ac_compile") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest.$ac_objext; then
14741 # It does; now see whether it defined to _BIG_ENDIAN or not.
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <limits.h>
14753 #ifndef _BIG_ENDIAN
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769 (eval "$ac_compile") 2>conftest.er1
14771 grep -v '^ *+' conftest.er1 >conftest.err
14773 cat conftest.err >&5
14774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && {
14776 test -z "$ac_c_werror_flag" ||
14777 test ! -s conftest.err
14778 } && test -s conftest.$ac_objext; then
14779 ac_cv_c_bigendian=yes
14781 $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_c_bigendian=no
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 $as_echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 if test $ac_cv_c_bigendian = unknown; then
14798 # Compile a test program.
14799 if test "$cross_compiling" = yes; then
14800 # Try to guess by grepping values from an object file.
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 short int ascii_mm[] =
14808 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14809 short int ascii_ii[] =
14810 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14811 int use_ascii (int i) {
14812 return ascii_mm[i] + ascii_ii[i];
14814 short int ebcdic_ii[] =
14815 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14816 short int ebcdic_mm[] =
14817 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14818 int use_ebcdic (int i) {
14819 return ebcdic_mm[i] + ebcdic_ii[i];
14826 return use_ascii (foo) == use_ebcdic (foo);
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_compile") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest.$ac_objext; then
14849 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14850 ac_cv_c_bigendian=yes
14852 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14853 if test "$ac_cv_c_bigendian" = unknown; then
14854 ac_cv_c_bigendian=no
14856 # finding both strings is unlikely to happen, but who knows?
14857 ac_cv_c_bigendian=unknown
14861 $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 $ac_includes_default
14880 /* Are we little or big endian? From Harbison&Steele. */
14884 char c[sizeof (long int)];
14887 return u.c[sizeof (long int) - 1] == 1;
14893 rm -f conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901 (eval "$ac_link") 2>&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911 (eval "$ac_try") 2>&5
14913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_c_bigendian=no
14917 $as_echo "$as_me: program exited with status $ac_status" >&5
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ( exit $ac_status )
14922 ac_cv_c_bigendian=yes
14924 rm -rf conftest.dSYM
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14931 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14932 $as_echo "$ac_cv_c_bigendian" >&6; }
14933 case $ac_cv_c_bigendian in #(
14935 cat >>confdefs.h <<\_ACEOF
14936 #define WORDS_BIGENDIAN 1
14943 cat >>confdefs.h <<\_ACEOF
14944 #define AC_APPLE_UNIVERSAL_BUILD 1
14949 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14950 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14951 $as_echo "$as_me: error: unknown endianness
14952 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14953 { (exit 1); exit 1; }; } ;;
14956 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14957 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14958 if test "${ac_cv_c_const+set}" = set; then
14959 $as_echo_n "(cached) " >&6
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14971 /* FIXME: Include the comments suggested by Paul. */
14972 #ifndef __cplusplus
14973 /* Ultrix mips cc rejects this. */
14974 typedef int charset[2];
14976 /* SunOS 4.1.1 cc rejects this. */
14977 char const *const *pcpcc;
14979 /* NEC SVR4.0.2 mips cc rejects this. */
14980 struct point {int x, y;};
14981 static struct point const zero = {0,0};
14982 /* AIX XL C 1.02.0.0 rejects this.
14983 It does not let you subtract one const X* pointer from another in
14984 an arm of an if-expression whose if-part is not a constant
14986 const char *g = "string";
14987 pcpcc = &g + (g ? g-g : 0);
14988 /* HPUX 7.0 cc rejects these. */
14990 ppc = (char**) pcpcc;
14991 pcpcc = (char const *const *) ppc;
14992 { /* SCO 3.2v4 cc rejects this. */
14994 char const *s = 0 ? (char *) 0 : (char const *) 0;
14999 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15000 int x[] = {25, 17};
15001 const int *foo = &x[0];
15004 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15005 typedef const int *iptr;
15009 { /* AIX XL C 1.02.0.0 rejects this saying
15010 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15011 struct s { int j; const int *ap[3]; };
15012 struct s *b; b->j = 5;
15014 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15015 const int foo = 10;
15016 if (!foo) return 0;
15018 return !cs[0] && !zero.x;
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15054 $as_echo "$ac_cv_c_const" >&6; }
15055 if test $ac_cv_c_const = no; then
15057 cat >>confdefs.h <<\_ACEOF
15063 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15064 $as_echo_n "checking for inline... " >&6; }
15065 if test "${ac_cv_c_inline+set}" = set; then
15066 $as_echo_n "(cached) " >&6
15069 for ac_kw in inline __inline__ __inline; do
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #ifndef __cplusplus
15078 static $ac_kw foo_t static_foo () {return 0; }
15079 $ac_kw foo_t foo () {return 0; }
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091 (eval "$ac_compile") 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest.$ac_objext; then
15101 ac_cv_c_inline=$ac_kw
15103 $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 test "$ac_cv_c_inline" != no && break
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15115 $as_echo "$ac_cv_c_inline" >&6; }
15118 case $ac_cv_c_inline in
15121 case $ac_cv_c_inline in
15123 *) ac_val=$ac_cv_c_inline;;
15125 cat >>confdefs.h <<_ACEOF
15126 #ifndef __cplusplus
15127 #define inline $ac_val
15133 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15134 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15135 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15136 $as_echo_n "(cached) " >&6
15138 pgac_cv_c_inline_quietly=no
15139 if test "$ac_cv_c_inline" != no; then
15140 pgac_c_inline_save_werror=$ac_c_werror_flag
15141 ac_c_werror_flag=yes
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 static inline int fun () {return 0;}
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15164 $as_echo "$ac_try_echo") >&5
15165 (eval "$ac_link") 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && {
15172 test -z "$ac_c_werror_flag" ||
15173 test ! -s conftest.err
15174 } && test -s conftest$ac_exeext && {
15175 test "$cross_compiling" = yes ||
15176 $as_test_x conftest$ac_exeext
15178 pgac_cv_c_inline_quietly=yes
15180 $as_echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15186 rm -rf conftest.dSYM
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188 conftest$ac_exeext conftest.$ac_ext
15189 ac_c_werror_flag=$pgac_c_inline_save_werror
15192 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15193 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15194 if test "$pgac_cv_c_inline_quietly" != no; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define USE_INLINE 1
15202 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15203 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15204 if test "${ac_cv_c_stringize+set}" = set; then
15205 $as_echo_n "(cached) " >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15215 char *s = x(teststring);
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218 $EGREP "#teststring" >/dev/null 2>&1; then
15219 ac_cv_c_stringize=no
15221 ac_cv_c_stringize=yes
15226 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15227 $as_echo "$ac_cv_c_stringize" >&6; }
15228 if test $ac_cv_c_stringize = yes; then
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_STRINGIZE 1
15237 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15238 $as_echo_n "checking for flexible array members... " >&6; }
15239 if test "${ac_cv_c_flexmember+set}" = set; then
15240 $as_echo_n "(cached) " >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <stdlib.h>
15250 #include <stddef.h>
15251 struct s { int n; double d[]; };
15255 int m = getchar ();
15256 struct s *p = malloc (offsetof (struct s, d)
15257 + m * sizeof (double));
15259 return p->d != (double *) NULL;
15264 rm -f conftest.$ac_objext
15265 if { (ac_try="$ac_compile"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15271 $as_echo "$ac_try_echo") >&5
15272 (eval "$ac_compile") 2>conftest.er1
15274 grep -v '^ *+' conftest.er1 >conftest.err
15276 cat conftest.err >&5
15277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && {
15279 test -z "$ac_c_werror_flag" ||
15280 test ! -s conftest.err
15281 } && test -s conftest.$ac_objext; then
15282 ac_cv_c_flexmember=yes
15284 $as_echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_cv_c_flexmember=no
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15293 $as_echo "$ac_cv_c_flexmember" >&6; }
15294 if test $ac_cv_c_flexmember = yes; then
15296 cat >>confdefs.h <<\_ACEOF
15297 #define FLEXIBLE_ARRAY_MEMBER /**/
15301 cat >>confdefs.h <<\_ACEOF
15302 #define FLEXIBLE_ARRAY_MEMBER 1
15307 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15308 $as_echo_n "checking for signed types... " >&6; }
15309 if test "${pgac_cv_c_signed+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15312 cat >conftest.$ac_ext <<_ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15322 signed char c; signed short s; signed int i;
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334 $as_echo "$ac_try_echo") >&5
15335 (eval "$ac_compile") 2>conftest.er1
15337 grep -v '^ *+' conftest.er1 >conftest.err
15339 cat conftest.err >&5
15340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest.$ac_objext; then
15345 pgac_cv_c_signed=yes
15347 $as_echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.$ac_ext >&5
15350 pgac_cv_c_signed=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15356 $as_echo "$pgac_cv_c_signed" >&6; }
15357 if test x"$pgac_cv_c_signed" = xno ; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define signed /**/
15364 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15365 $as_echo_n "checking for working volatile... " >&6; }
15366 if test "${ac_cv_c_volatile+set}" = set; then
15367 $as_echo_n "(cached) " >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15381 int * volatile y = (int *) 0;
15387 rm -f conftest.$ac_objext
15388 if { (ac_try="$ac_compile"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395 (eval "$ac_compile") 2>conftest.er1
15397 grep -v '^ *+' conftest.er1 >conftest.err
15399 cat conftest.err >&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); } && {
15402 test -z "$ac_c_werror_flag" ||
15403 test ! -s conftest.err
15404 } && test -s conftest.$ac_objext; then
15405 ac_cv_c_volatile=yes
15407 $as_echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15410 ac_cv_c_volatile=no
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15416 $as_echo "$ac_cv_c_volatile" >&6; }
15417 if test $ac_cv_c_volatile = no; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define volatile /**/
15425 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15426 $as_echo_n "checking for __func__... " >&6; }
15427 if test "${pgac_cv_funcname_func_support+set}" = set; then
15428 $as_echo_n "(cached) " >&6
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15440 printf("%s\n", __func__);
15445 rm -f conftest.$ac_objext
15446 if { (ac_try="$ac_compile"
15447 case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15452 $as_echo "$ac_try_echo") >&5
15453 (eval "$ac_compile") 2>conftest.er1
15455 grep -v '^ *+' conftest.er1 >conftest.err
15457 cat conftest.err >&5
15458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && {
15460 test -z "$ac_c_werror_flag" ||
15461 test ! -s conftest.err
15462 } && test -s conftest.$ac_objext; then
15463 pgac_cv_funcname_func_support=yes
15465 $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 pgac_cv_funcname_func_support=no
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15474 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15475 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_FUNCNAME__FUNC 1
15482 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15483 $as_echo_n "checking for __FUNCTION__... " >&6; }
15484 if test "${pgac_cv_funcname_function_support+set}" = set; then
15485 $as_echo_n "(cached) " >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15497 printf("%s\n", __FUNCTION__);
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15509 $as_echo "$ac_try_echo") >&5
15510 (eval "$ac_compile") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest.$ac_objext; then
15520 pgac_cv_funcname_function_support=yes
15522 $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 pgac_cv_funcname_function_support=no
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15531 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15532 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_FUNCNAME__FUNCTION 1
15540 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15541 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15542 if test "${ac_cv_struct_tm+set}" = set; then
15543 $as_echo_n "(cached) " >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 #include <sys/types.h>
15558 int *p = &tm.tm_sec;
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572 (eval "$ac_compile") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } && {
15579 test -z "$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 } && test -s conftest.$ac_objext; then
15582 ac_cv_struct_tm=time.h
15584 $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15587 ac_cv_struct_tm=sys/time.h
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15593 $as_echo "$ac_cv_struct_tm" >&6; }
15594 if test $ac_cv_struct_tm = sys/time.h; then
15596 cat >>confdefs.h <<\_ACEOF
15597 #define TM_IN_SYS_TIME 1
15602 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15603 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15604 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15605 $as_echo_n "(cached) " >&6
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <sys/types.h>
15614 #include <$ac_cv_struct_tm>
15620 static struct tm ac_aggr;
15621 if (ac_aggr.tm_zone)
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15634 $as_echo "$ac_try_echo") >&5
15635 (eval "$ac_compile") 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest.$ac_objext; then
15645 ac_cv_member_struct_tm_tm_zone=yes
15647 $as_echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 cat >conftest.$ac_ext <<_ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 #include <sys/types.h>
15657 #include <$ac_cv_struct_tm>
15663 static struct tm ac_aggr;
15664 if (sizeof ac_aggr.tm_zone)
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15677 $as_echo "$ac_try_echo") >&5
15678 (eval "$ac_compile") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest.$ac_objext; then
15688 ac_cv_member_struct_tm_tm_zone=yes
15690 $as_echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_cv_member_struct_tm_tm_zone=no
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15702 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15703 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_STRUCT_TM_TM_ZONE 1
15712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define HAVE_TM_ZONE 1
15719 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15720 $as_echo_n "checking for tzname... " >&6; }
15721 if test "${ac_cv_var_tzname+set}" = set; then
15722 $as_echo_n "(cached) " >&6
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15731 #ifndef tzname /* For SGI. */
15732 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751 (eval "$ac_link") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest$ac_exeext && {
15761 test "$cross_compiling" = yes ||
15762 $as_test_x conftest$ac_exeext
15764 ac_cv_var_tzname=yes
15766 $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_cv_var_tzname=no
15772 rm -rf conftest.dSYM
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774 conftest$ac_exeext conftest.$ac_ext
15776 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15777 $as_echo "$ac_cv_var_tzname" >&6; }
15778 if test $ac_cv_var_tzname = yes; then
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE_TZNAME 1
15786 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15787 $as_echo_n "checking for union semun... " >&6; }
15788 if test "${ac_cv_type_union_semun+set}" = set; then
15789 $as_echo_n "(cached) " >&6
15791 ac_cv_type_union_semun=no
15792 cat >conftest.$ac_ext <<_ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h. */
15798 #include <sys/types.h>
15799 #include <sys/ipc.h>
15800 #include <sys/sem.h>
15805 if (sizeof (union semun))
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15818 $as_echo "$ac_try_echo") >&5
15819 (eval "$ac_compile") 2>conftest.er1
15821 grep -v '^ *+' conftest.er1 >conftest.err
15823 cat conftest.err >&5
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } && {
15826 test -z "$ac_c_werror_flag" ||
15827 test ! -s conftest.err
15828 } && test -s conftest.$ac_objext; then
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 #include <sys/types.h>
15836 #include <sys/ipc.h>
15837 #include <sys/sem.h>
15842 if (sizeof ((union semun)))
15848 rm -f conftest.$ac_objext
15849 if { (ac_try="$ac_compile"
15850 case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15855 $as_echo "$ac_try_echo") >&5
15856 (eval "$ac_compile") 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest.$ac_objext; then
15868 $as_echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 ac_cv_type_union_semun=yes
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15885 $as_echo "$ac_cv_type_union_semun" >&6; }
15886 if test "x$ac_cv_type_union_semun" = x""yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_UNION_SEMUN 1
15895 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15896 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15897 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15898 $as_echo_n "(cached) " >&6
15900 ac_cv_type_struct_sockaddr_un=no
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 #include <sys/types.h>
15908 #ifdef HAVE_SYS_UN_H
15909 #include <sys/un.h>
15916 if (sizeof (struct sockaddr_un))
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930 (eval "$ac_compile") 2>conftest.er1
15932 grep -v '^ *+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && {
15937 test -z "$ac_c_werror_flag" ||
15938 test ! -s conftest.err
15939 } && test -s conftest.$ac_objext; then
15940 cat >conftest.$ac_ext <<_ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <sys/types.h>
15947 #ifdef HAVE_SYS_UN_H
15948 #include <sys/un.h>
15955 if (sizeof ((struct sockaddr_un)))
15961 rm -f conftest.$ac_objext
15962 if { (ac_try="$ac_compile"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15968 $as_echo "$ac_try_echo") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.$ac_objext; then
15981 $as_echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_cv_type_struct_sockaddr_un=yes
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15998 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15999 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16001 cat >>confdefs.h <<_ACEOF
16002 #define HAVE_STRUCT_SOCKADDR_UN 1
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_UNIX_SOCKETS 1
16012 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16013 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16014 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16015 $as_echo_n "(cached) " >&6
16017 ac_cv_type_struct_sockaddr_storage=no
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 #include <sys/types.h>
16025 #ifdef HAVE_SYS_SOCKET_H
16026 #include <sys/socket.h>
16033 if (sizeof (struct sockaddr_storage))
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16046 $as_echo "$ac_try_echo") >&5
16047 (eval "$ac_compile") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest.$ac_objext; then
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <sys/types.h>
16064 #ifdef HAVE_SYS_SOCKET_H
16065 #include <sys/socket.h>
16072 if (sizeof ((struct sockaddr_storage)))
16078 rm -f conftest.$ac_objext
16079 if { (ac_try="$ac_compile"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16085 $as_echo "$ac_try_echo") >&5
16086 (eval "$ac_compile") 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } && {
16093 test -z "$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 } && test -s conftest.$ac_objext; then
16098 $as_echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16101 ac_cv_type_struct_sockaddr_storage=yes
16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16114 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16115 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16116 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16125 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16126 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16127 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16136 #include <sys/types.h>
16137 #ifdef HAVE_SYS_SOCKET_H
16138 #include <sys/socket.h>
16145 static struct sockaddr_storage ac_aggr;
16146 if (ac_aggr.ss_family)
16152 rm -f conftest.$ac_objext
16153 if { (ac_try="$ac_compile"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16159 $as_echo "$ac_try_echo") >&5
16160 (eval "$ac_compile") 2>conftest.er1
16162 grep -v '^ *+' conftest.er1 >conftest.err
16164 cat conftest.err >&5
16165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } && {
16167 test -z "$ac_c_werror_flag" ||
16168 test ! -s conftest.err
16169 } && test -s conftest.$ac_objext; then
16170 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16172 $as_echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 #include <sys/socket.h>
16190 static struct sockaddr_storage ac_aggr;
16191 if (sizeof ac_aggr.ss_family)
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
16215 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_member_struct_sockaddr_storage_ss_family=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16229 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16230 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16239 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16240 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16241 $as_echo_n "(cached) " >&6
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <sys/types.h>
16250 #ifdef HAVE_SYS_SOCKET_H
16251 #include <sys/socket.h>
16258 static struct sockaddr_storage ac_aggr;
16259 if (ac_aggr.__ss_family)
16265 rm -f conftest.$ac_objext
16266 if { (ac_try="$ac_compile"
16267 case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16272 $as_echo "$ac_try_echo") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1 >conftest.err
16277 cat conftest.err >&5
16278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest.$ac_objext; then
16283 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <sys/types.h>
16295 #ifdef HAVE_SYS_SOCKET_H
16296 #include <sys/socket.h>
16303 static struct sockaddr_storage ac_aggr;
16304 if (sizeof ac_aggr.__ss_family)
16310 rm -f conftest.$ac_objext
16311 if { (ac_try="$ac_compile"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16317 $as_echo "$ac_try_echo") >&5
16318 (eval "$ac_compile") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest.$ac_objext; then
16328 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16330 $as_echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 ac_cv_member_struct_sockaddr_storage___ss_family=no
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16342 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16343 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16351 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16352 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16353 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16354 $as_echo_n "(cached) " >&6
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 #include <sys/types.h>
16363 #ifdef HAVE_SYS_SOCKET_H
16364 #include <sys/socket.h>
16371 static struct sockaddr_storage ac_aggr;
16372 if (ac_aggr.ss_len)
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16385 $as_echo "$ac_try_echo") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16388 grep -v '^ *+' conftest.er1 >conftest.err
16390 cat conftest.err >&5
16391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16398 $as_echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <sys/types.h>
16408 #ifdef HAVE_SYS_SOCKET_H
16409 #include <sys/socket.h>
16416 static struct sockaddr_storage ac_aggr;
16417 if (sizeof ac_aggr.ss_len)
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_compile") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest.$ac_objext; then
16441 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_cv_member_struct_sockaddr_storage_ss_len=no
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16454 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16455 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16456 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16464 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16465 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16466 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16467 $as_echo_n "(cached) " >&6
16469 cat >conftest.$ac_ext <<_ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 #include <sys/types.h>
16476 #ifdef HAVE_SYS_SOCKET_H
16477 #include <sys/socket.h>
16484 static struct sockaddr_storage ac_aggr;
16485 if (ac_aggr.__ss_len)
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16498 $as_echo "$ac_try_echo") >&5
16499 (eval "$ac_compile") 2>conftest.er1
16501 grep -v '^ *+' conftest.er1 >conftest.err
16503 cat conftest.err >&5
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } && {
16506 test -z "$ac_c_werror_flag" ||
16507 test ! -s conftest.err
16508 } && test -s conftest.$ac_objext; then
16509 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16511 $as_echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <sys/types.h>
16521 #ifdef HAVE_SYS_SOCKET_H
16522 #include <sys/socket.h>
16529 static struct sockaddr_storage ac_aggr;
16530 if (sizeof ac_aggr.__ss_len)
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16543 $as_echo "$ac_try_echo") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && {
16551 test -z "$ac_c_werror_flag" ||
16552 test ! -s conftest.err
16553 } && test -s conftest.$ac_objext; then
16554 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16556 $as_echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_member_struct_sockaddr_storage___ss_len=no
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16568 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16569 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16577 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16578 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16579 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16580 $as_echo_n "(cached) " >&6
16582 cat >conftest.$ac_ext <<_ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16588 #include <sys/types.h>
16589 #ifdef HAVE_SYS_SOCKET_H
16590 #include <sys/socket.h>
16597 static struct sockaddr ac_aggr;
16598 if (ac_aggr.sa_len)
16604 rm -f conftest.$ac_objext
16605 if { (ac_try="$ac_compile"
16606 case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16611 $as_echo "$ac_try_echo") >&5
16612 (eval "$ac_compile") 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && {
16619 test -z "$ac_c_werror_flag" ||
16620 test ! -s conftest.err
16621 } && test -s conftest.$ac_objext; then
16622 ac_cv_member_struct_sockaddr_sa_len=yes
16624 $as_echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 #include <sys/types.h>
16634 #ifdef HAVE_SYS_SOCKET_H
16635 #include <sys/socket.h>
16642 static struct sockaddr ac_aggr;
16643 if (sizeof ac_aggr.sa_len)
16649 rm -f conftest.$ac_objext
16650 if { (ac_try="$ac_compile"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_compile") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest.$ac_objext; then
16667 ac_cv_member_struct_sockaddr_sa_len=yes
16669 $as_echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_member_struct_sockaddr_sa_len=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16681 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16682 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16691 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16692 $as_echo_n "checking for struct addrinfo... " >&6; }
16693 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16694 $as_echo_n "(cached) " >&6
16696 ac_cv_type_struct_addrinfo=no
16697 cat >conftest.$ac_ext <<_ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703 #include <sys/types.h>
16704 #include <sys/socket.h>
16711 if (sizeof (struct addrinfo))
16717 rm -f conftest.$ac_objext
16718 if { (ac_try="$ac_compile"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.$ac_objext; then
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <sys/types.h>
16742 #include <sys/socket.h>
16749 if (sizeof ((struct addrinfo)))
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16762 $as_echo "$ac_try_echo") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } && {
16770 test -z "$ac_c_werror_flag" ||
16771 test ! -s conftest.err
16772 } && test -s conftest.$ac_objext; then
16775 $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_cv_type_struct_addrinfo=yes
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 $as_echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16792 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16793 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_STRUCT_ADDRINFO 1
16803 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16804 $as_echo_n "checking for intptr_t... " >&6; }
16805 if test "${ac_cv_type_intptr_t+set}" = set; then
16806 $as_echo_n "(cached) " >&6
16808 ac_cv_type_intptr_t=no
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16819 if (sizeof (intptr_t))
16825 rm -f conftest.$ac_objext
16826 if { (ac_try="$ac_compile"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest.$ac_objext; then
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 $ac_includes_default
16853 if (sizeof ((intptr_t)))
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866 $as_echo "$ac_try_echo") >&5
16867 (eval "$ac_compile") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } && {
16874 test -z "$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16876 } && test -s conftest.$ac_objext; then
16879 $as_echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_cv_type_intptr_t=yes
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887 $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16896 $as_echo "$ac_cv_type_intptr_t" >&6; }
16897 if test "x$ac_cv_type_intptr_t" = x""yes; then
16899 cat >>confdefs.h <<\_ACEOF
16900 #define HAVE_INTPTR_T 1
16904 for ac_type in 'int' 'long int' 'long long int'; do
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 $ac_includes_default
16915 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16929 $as_echo "$ac_try_echo") >&5
16930 (eval "$ac_compile") 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } && {
16937 test -z "$ac_c_werror_flag" ||
16938 test ! -s conftest.err
16939 } && test -s conftest.$ac_objext; then
16941 cat >>confdefs.h <<_ACEOF
16942 #define intptr_t $ac_type
16947 $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 test -z "$ac_type" && break
16960 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16961 $as_echo_n "checking for uintptr_t... " >&6; }
16962 if test "${ac_cv_type_uintptr_t+set}" = set; then
16963 $as_echo_n "(cached) " >&6
16965 ac_cv_type_uintptr_t=no
16966 cat >conftest.$ac_ext <<_ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 $ac_includes_default
16976 if (sizeof (uintptr_t))
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16989 $as_echo "$ac_try_echo") >&5
16990 (eval "$ac_compile") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest.$ac_objext; then
17000 cat >conftest.$ac_ext <<_ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 $ac_includes_default
17010 if (sizeof ((uintptr_t)))
17016 rm -f conftest.$ac_objext
17017 if { (ac_try="$ac_compile"
17018 case "(($ac_try" in
17019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17023 $as_echo "$ac_try_echo") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17026 grep -v '^ *+' conftest.er1 >conftest.err
17028 cat conftest.err >&5
17029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest.$ac_objext; then
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_type_uintptr_t=yes
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044 $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17053 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17054 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_UINTPTR_T 1
17061 for ac_type in 'unsigned int' 'unsigned long int' \
17062 'unsigned long long int'; do
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17087 $as_echo "$ac_try_echo") >&5
17088 (eval "$ac_compile") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && {
17095 test -z "$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 } && test -s conftest.$ac_objext; then
17099 cat >>confdefs.h <<_ACEOF
17100 #define uintptr_t $ac_type
17105 $as_echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 test -z "$ac_type" && break
17118 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17119 $as_echo_n "checking for long long int... " >&6; }
17120 if test "${ac_cv_type_long_long_int+set}" = set; then
17121 $as_echo_n "(cached) " >&6
17123 cat >conftest.$ac_ext <<_ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 /* For now, do not test the preprocessor; as of 2007 there are too many
17131 implementations with broken preprocessors. Perhaps this can
17132 be revisited in 2012. In the meantime, code should not expect
17133 #if to work with literals wider than 32 bits. */
17134 /* Test literals. */
17135 long long int ll = 9223372036854775807ll;
17136 long long int nll = -9223372036854775807LL;
17137 unsigned long long int ull = 18446744073709551615ULL;
17138 /* Test constant expressions. */
17139 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17141 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17147 /* Test availability of runtime routines for shift and division. */
17148 long long int llmax = 9223372036854775807ll;
17149 unsigned long long int ullmax = 18446744073709551615ull;
17150 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17151 | (llmax / ll) | (llmax % ll)
17152 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17153 | (ullmax / ull) | (ullmax % ull));
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17166 $as_echo "$ac_try_echo") >&5
17167 (eval "$ac_link") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext && {
17177 test "$cross_compiling" = yes ||
17178 $as_test_x conftest$ac_exeext
17180 if test "$cross_compiling" = yes; then
17181 ac_cv_type_long_long_int=yes
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 #include <limits.h>
17192 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17193 # define LLONG_MAX (HALF - 1 + HALF)
17198 long long int n = 1;
17202 long long int m = n << i;
17205 if (LLONG_MAX / 2 < m)
17213 rm -f conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221 (eval "$ac_link") 2>&5
17223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17230 $as_echo "$ac_try_echo") >&5
17231 (eval "$ac_try") 2>&5
17233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_type_long_long_int=yes
17237 $as_echo "$as_me: program exited with status $ac_status" >&5
17238 $as_echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ( exit $ac_status )
17242 ac_cv_type_long_long_int=no
17244 rm -rf conftest.dSYM
17245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17250 $as_echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_type_long_long_int=no
17256 rm -rf conftest.dSYM
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258 conftest$ac_exeext conftest.$ac_ext
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17261 $as_echo "$ac_cv_type_long_long_int" >&6; }
17262 if test $ac_cv_type_long_long_int = yes; then
17264 cat >>confdefs.h <<\_ACEOF
17265 #define HAVE_LONG_LONG_INT 1
17271 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17272 $as_echo_n "checking for locale_t... " >&6; }
17273 if test "${pgac_cv_type_locale_t+set}" = set; then
17274 $as_echo_n "(cached) " >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <locale.h>
17292 rm -f conftest.$ac_objext
17293 if { (ac_try="$ac_compile"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17299 $as_echo "$ac_try_echo") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.$ac_objext; then
17310 pgac_cv_type_locale_t=yes
17312 $as_echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 #include <xlocale.h>
17331 rm -f conftest.$ac_objext
17332 if { (ac_try="$ac_compile"
17333 case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338 $as_echo "$ac_try_echo") >&5
17339 (eval "$ac_compile") 2>conftest.er1
17341 grep -v '^ *+' conftest.er1 >conftest.err
17343 cat conftest.err >&5
17344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } && {
17346 test -z "$ac_c_werror_flag" ||
17347 test ! -s conftest.err
17348 } && test -s conftest.$ac_objext; then
17349 pgac_cv_type_locale_t='yes (in xlocale.h)'
17351 $as_echo "$as_me: failed program was:" >&5
17352 sed 's/^/| /' conftest.$ac_ext >&5
17354 pgac_cv_type_locale_t=no
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17363 $as_echo "$pgac_cv_type_locale_t" >&6; }
17364 if test "$pgac_cv_type_locale_t" != no; then
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_LOCALE_T 1
17371 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17373 cat >>confdefs.h <<\_ACEOF
17374 #define LOCALE_T_IN_XLOCALE 1
17379 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17380 $as_echo_n "checking for struct cmsgcred... " >&6; }
17381 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17382 $as_echo_n "(cached) " >&6
17384 ac_cv_type_struct_cmsgcred=no
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 #include <sys/socket.h>
17392 #ifdef HAVE_SYS_UCRED_H
17393 #include <sys/ucred.h>
17399 if (sizeof (struct cmsgcred))
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 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 #include <sys/socket.h>
17430 #ifdef HAVE_SYS_UCRED_H
17431 #include <sys/ucred.h>
17437 if (sizeof ((struct cmsgcred)))
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450 $as_echo "$ac_try_echo") >&5
17451 (eval "$ac_compile") 2>conftest.er1
17453 grep -v '^ *+' conftest.er1 >conftest.err
17455 cat conftest.err >&5
17456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } && {
17458 test -z "$ac_c_werror_flag" ||
17459 test ! -s conftest.err
17460 } && test -s conftest.$ac_objext; then
17463 $as_echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 ac_cv_type_struct_cmsgcred=yes
17469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17480 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17481 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_STRUCT_CMSGCRED 1
17491 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17492 $as_echo_n "checking for struct option... " >&6; }
17493 if test "${ac_cv_type_struct_option+set}" = set; then
17494 $as_echo_n "(cached) " >&6
17496 ac_cv_type_struct_option=no
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #ifdef HAVE_GETOPT_H
17504 #include <getopt.h>
17510 if (sizeof (struct option))
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17523 $as_echo "$ac_try_echo") >&5
17524 (eval "$ac_compile") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest.$ac_objext; then
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 #ifdef HAVE_GETOPT_H
17541 #include <getopt.h>
17547 if (sizeof ((struct option)))
17553 rm -f conftest.$ac_objext
17554 if { (ac_try="$ac_compile"
17555 case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17560 $as_echo "$ac_try_echo") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } && {
17568 test -z "$ac_c_werror_flag" ||
17569 test ! -s conftest.err
17570 } && test -s conftest.$ac_objext; then
17573 $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_type_struct_option=yes
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17590 $as_echo "$ac_cv_type_struct_option" >&6; }
17591 if test "x$ac_cv_type_struct_option" = x""yes; then
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_STRUCT_OPTION 1
17601 if test "$with_zlib" = yes; then
17602 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17603 # did not). While we could work around the lack of z_streamp, it
17604 # seems unwise to encourage people to use such old zlib versions...
17605 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17606 $as_echo_n "checking for z_streamp... " >&6; }
17607 if test "${ac_cv_type_z_streamp+set}" = set; then
17608 $as_echo_n "(cached) " >&6
17610 ac_cv_type_z_streamp=no
17611 cat >conftest.$ac_ext <<_ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17622 if (sizeof (z_streamp))
17628 rm -f conftest.$ac_objext
17629 if { (ac_try="$ac_compile"
17630 case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17635 $as_echo "$ac_try_echo") >&5
17636 (eval "$ac_compile") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && {
17643 test -z "$ac_c_werror_flag" ||
17644 test ! -s conftest.err
17645 } && test -s conftest.$ac_objext; then
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17657 if (sizeof ((z_streamp)))
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17670 $as_echo "$ac_try_echo") >&5
17671 (eval "$ac_compile") 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && {
17678 test -z "$ac_c_werror_flag" ||
17679 test ! -s conftest.err
17680 } && test -s conftest.$ac_objext; then
17683 $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 ac_cv_type_z_streamp=yes
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17700 $as_echo "$ac_cv_type_z_streamp" >&6; }
17701 if test "x$ac_cv_type_z_streamp" = x""yes; then
17704 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17705 Use --without-zlib to disable zlib support." >&5
17706 $as_echo "$as_me: error: zlib version is too old
17707 Use --without-zlib to disable zlib support." >&2;}
17708 { (exit 1); exit 1; }; }
17713 if test "$with_krb5" = yes; then
17714 # Check for differences between MIT and Heimdal (KTH) releases
17715 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17716 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17717 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17718 $as_echo_n "(cached) " >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17731 static krb5_ticket ac_aggr;
17732 if (ac_aggr.enc_part2)
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745 $as_echo "$ac_try_echo") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest.$ac_objext; then
17756 ac_cv_member_krb5_ticket_enc_part2=yes
17758 $as_echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17772 static krb5_ticket ac_aggr;
17773 if (sizeof ac_aggr.enc_part2)
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17786 $as_echo "$ac_try_echo") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } && {
17794 test -z "$ac_c_werror_flag" ||
17795 test ! -s conftest.err
17796 } && test -s conftest.$ac_objext; then
17797 ac_cv_member_krb5_ticket_enc_part2=yes
17799 $as_echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 ac_cv_member_krb5_ticket_enc_part2=no
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17811 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17812 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17814 cat >>confdefs.h <<_ACEOF
17815 #define HAVE_KRB5_TICKET_ENC_PART2 1
17820 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17821 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17822 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17823 $as_echo_n "(cached) " >&6
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17836 static krb5_ticket ac_aggr;
17837 if (ac_aggr.client)
17843 rm -f conftest.$ac_objext
17844 if { (ac_try="$ac_compile"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17850 $as_echo "$ac_try_echo") >&5
17851 (eval "$ac_compile") 2>conftest.er1
17853 grep -v '^ *+' conftest.er1 >conftest.err
17855 cat conftest.err >&5
17856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } && {
17858 test -z "$ac_c_werror_flag" ||
17859 test ! -s conftest.err
17860 } && test -s conftest.$ac_objext; then
17861 ac_cv_member_krb5_ticket_client=yes
17863 $as_echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17877 static krb5_ticket ac_aggr;
17878 if (sizeof ac_aggr.client)
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_cv_member_krb5_ticket_client=yes
17904 $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_member_krb5_ticket_client=no
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17916 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17917 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17919 cat >>confdefs.h <<_ACEOF
17920 #define HAVE_KRB5_TICKET_CLIENT 1
17925 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17926 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17927 { (exit 1); exit 1; }; }
17932 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17933 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17934 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17935 $as_echo_n "(cached) " >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17948 static krb5_error ac_aggr;
17949 if (ac_aggr.text.data)
17955 rm -f conftest.$ac_objext
17956 if { (ac_try="$ac_compile"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17962 $as_echo "$ac_try_echo") >&5
17963 (eval "$ac_compile") 2>conftest.er1
17965 grep -v '^ *+' conftest.er1 >conftest.err
17967 cat conftest.err >&5
17968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } && {
17970 test -z "$ac_c_werror_flag" ||
17971 test ! -s conftest.err
17972 } && test -s conftest.$ac_objext; then
17973 ac_cv_member_krb5_error_text_data=yes
17975 $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17989 static krb5_error ac_aggr;
17990 if (sizeof ac_aggr.text.data)
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest.$ac_objext; then
18014 ac_cv_member_krb5_error_text_data=yes
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_cv_member_krb5_error_text_data=no
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18028 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18029 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18037 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18038 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18039 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18040 $as_echo_n "(cached) " >&6
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18053 static krb5_error ac_aggr;
18054 if (ac_aggr.e_data)
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18067 $as_echo "$ac_try_echo") >&5
18068 (eval "$ac_compile") 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } && {
18075 test -z "$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18077 } && test -s conftest.$ac_objext; then
18078 ac_cv_member_krb5_error_e_data=yes
18080 $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18094 static krb5_error ac_aggr;
18095 if (sizeof ac_aggr.e_data)
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109 (eval "$ac_compile") 2>conftest.er1
18111 grep -v '^ *+' conftest.er1 >conftest.err
18113 cat conftest.err >&5
18114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && {
18116 test -z "$ac_c_werror_flag" ||
18117 test ! -s conftest.err
18118 } && test -s conftest.$ac_objext; then
18119 ac_cv_member_krb5_error_e_data=yes
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ac_cv_member_krb5_error_e_data=no
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18133 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18134 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18136 cat >>confdefs.h <<_ACEOF
18137 #define HAVE_KRB5_ERROR_E_DATA 1
18142 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18143 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18144 { (exit 1); exit 1; }; }
18150 # Win32 requires headers to be loaded for __stdcall, so can't use
18151 # AC_CHECK_FUNCS here.
18152 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18153 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18164 krb5_free_unparsed_name(NULL,NULL);
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18176 $as_echo "$ac_try_echo") >&5
18177 (eval "$ac_link") 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && {
18184 test -z "$ac_c_werror_flag" ||
18185 test ! -s conftest.err
18186 } && test -s conftest$ac_exeext && {
18187 test "$cross_compiling" = yes ||
18188 $as_test_x conftest$ac_exeext
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18195 { $as_echo "$as_me:$LINENO: result: yes" >&5
18196 $as_echo "yes" >&6; }
18198 $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 { $as_echo "$as_me:$LINENO: result: no" >&5
18202 $as_echo "no" >&6; }
18205 rm -rf conftest.dSYM
18206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18207 conftest$ac_exeext conftest.$ac_ext
18210 # Check largefile support. You might think this is a system service not a
18211 # compiler characteristic, but you'd be wrong. We must check this before
18212 # probing existence of related functions such as fseeko, since the largefile
18213 # defines can affect what is generated for that.
18214 if test "$PORTNAME" != "win32"; then
18215 # Check whether --enable-largefile was given.
18216 if test "${enable_largefile+set}" = set; then
18217 enableval=$enable_largefile;
18220 if test "$enable_largefile" != no; then
18222 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18223 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18224 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18225 $as_echo_n "(cached) " >&6
18227 ac_cv_sys_largefile_CC=no
18228 if test "$GCC" != yes; then
18231 # IRIX 6.2 and later do not support large files by default,
18232 # so use the C compiler's -n32 option if that helps.
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #include <sys/types.h>
18240 /* Check that off_t can represent 2**63 - 1 correctly.
18241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18242 since some C++ compilers masquerading as C compilers
18243 incorrectly reject 9223372036854775807. */
18244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18246 && LARGE_OFF_T % 2147483647 == 1)
18256 rm -f conftest.$ac_objext
18257 if { (ac_try="$ac_compile"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18263 $as_echo "$ac_try_echo") >&5
18264 (eval "$ac_compile") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } && {
18271 test -z "$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18273 } && test -s conftest.$ac_objext; then
18276 $as_echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18282 rm -f core conftest.err conftest.$ac_objext
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18291 $as_echo "$ac_try_echo") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.$ac_objext; then
18302 ac_cv_sys_largefile_CC=' -n32'; break
18304 $as_echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18310 rm -f core conftest.err conftest.$ac_objext
18314 rm -f conftest.$ac_ext
18317 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18318 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18319 if test "$ac_cv_sys_largefile_CC" != no; then
18320 CC=$CC$ac_cv_sys_largefile_CC
18323 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18324 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18325 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18326 $as_echo_n "(cached) " >&6
18329 cat >conftest.$ac_ext <<_ACEOF
18332 cat confdefs.h >>conftest.$ac_ext
18333 cat >>conftest.$ac_ext <<_ACEOF
18334 /* end confdefs.h. */
18335 #include <sys/types.h>
18336 /* Check that off_t can represent 2**63 - 1 correctly.
18337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18338 since some C++ compilers masquerading as C compilers
18339 incorrectly reject 9223372036854775807. */
18340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18342 && LARGE_OFF_T % 2147483647 == 1)
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18359 $as_echo "$ac_try_echo") >&5
18360 (eval "$ac_compile") 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } && {
18367 test -z "$ac_c_werror_flag" ||
18368 test ! -s conftest.err
18369 } && test -s conftest.$ac_objext; then
18370 ac_cv_sys_file_offset_bits=no; break
18372 $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 #define _FILE_OFFSET_BITS 64
18386 #include <sys/types.h>
18387 /* Check that off_t can represent 2**63 - 1 correctly.
18388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18389 since some C++ compilers masquerading as C compilers
18390 incorrectly reject 9223372036854775807. */
18391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18393 && LARGE_OFF_T % 2147483647 == 1)
18403 rm -f conftest.$ac_objext
18404 if { (ac_try="$ac_compile"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18410 $as_echo "$ac_try_echo") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18413 grep -v '^ *+' conftest.er1 >conftest.err
18415 cat conftest.err >&5
18416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_cv_sys_file_offset_bits=64; break
18423 $as_echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 ac_cv_sys_file_offset_bits=unknown
18434 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18435 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18436 case $ac_cv_sys_file_offset_bits in #(
18439 cat >>confdefs.h <<_ACEOF
18440 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18445 if test $ac_cv_sys_file_offset_bits = unknown; then
18446 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18447 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18448 if test "${ac_cv_sys_large_files+set}" = set; then
18449 $as_echo_n "(cached) " >&6
18452 cat >conftest.$ac_ext <<_ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <sys/types.h>
18459 /* Check that off_t can represent 2**63 - 1 correctly.
18460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18461 since some C++ compilers masquerading as C compilers
18462 incorrectly reject 9223372036854775807. */
18463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18465 && LARGE_OFF_T % 2147483647 == 1)
18475 rm -f conftest.$ac_objext
18476 if { (ac_try="$ac_compile"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18482 $as_echo "$ac_try_echo") >&5
18483 (eval "$ac_compile") 2>conftest.er1
18485 grep -v '^ *+' conftest.er1 >conftest.err
18487 cat conftest.err >&5
18488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } && {
18490 test -z "$ac_c_werror_flag" ||
18491 test ! -s conftest.err
18492 } && test -s conftest.$ac_objext; then
18493 ac_cv_sys_large_files=no; break
18495 $as_echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 #define _LARGE_FILES 1
18509 #include <sys/types.h>
18510 /* Check that off_t can represent 2**63 - 1 correctly.
18511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18512 since some C++ compilers masquerading as C compilers
18513 incorrectly reject 9223372036854775807. */
18514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18516 && LARGE_OFF_T % 2147483647 == 1)
18526 rm -f conftest.$ac_objext
18527 if { (ac_try="$ac_compile"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18533 $as_echo "$ac_try_echo") >&5
18534 (eval "$ac_compile") 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest.$ac_objext; then
18544 ac_cv_sys_large_files=1; break
18546 $as_echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 ac_cv_sys_large_files=unknown
18557 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18558 $as_echo "$ac_cv_sys_large_files" >&6; }
18559 case $ac_cv_sys_large_files in #(
18562 cat >>confdefs.h <<_ACEOF
18563 #define _LARGE_FILES $ac_cv_sys_large_files
18573 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18574 # The cast to long int works around a bug in the HP C Compiler
18575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18577 # This bug is HP SR number 8606223364.
18578 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18579 $as_echo_n "checking size of off_t... " >&6; }
18580 if test "${ac_cv_sizeof_off_t+set}" = set; then
18581 $as_echo_n "(cached) " >&6
18583 if test "$cross_compiling" = yes; then
18584 # Depending upon the size, compute the lo and hi bounds.
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 $ac_includes_default
18595 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18602 rm -f conftest.$ac_objext
18603 if { (ac_try="$ac_compile"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18609 $as_echo "$ac_try_echo") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 $ac_includes_default
18632 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18639 rm -f conftest.$ac_objext
18640 if { (ac_try="$ac_compile"
18641 case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18646 $as_echo "$ac_try_echo") >&5
18647 (eval "$ac_compile") 2>conftest.er1
18649 grep -v '^ *+' conftest.er1 >conftest.err
18651 cat conftest.err >&5
18652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && {
18654 test -z "$ac_c_werror_flag" ||
18655 test ! -s conftest.err
18656 } && test -s conftest.$ac_objext; then
18657 ac_hi=$ac_mid; break
18659 $as_echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 ac_lo=`expr $ac_mid + 1`
18663 if test $ac_lo -le $ac_mid; then
18667 ac_mid=`expr 2 '*' $ac_mid + 1`
18670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18673 $as_echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 $ac_includes_default
18686 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18700 $as_echo "$ac_try_echo") >&5
18701 (eval "$ac_compile") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest.$ac_objext; then
18713 cat >conftest.$ac_ext <<_ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18723 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738 (eval "$ac_compile") 2>conftest.er1
18740 grep -v '^ *+' conftest.er1 >conftest.err
18742 cat conftest.err >&5
18743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest.$ac_objext; then
18748 ac_lo=$ac_mid; break
18750 $as_echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_hi=`expr '(' $ac_mid ')' - 1`
18754 if test $ac_mid -le $ac_hi; then
18758 ac_mid=`expr 2 '*' $ac_mid`
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764 $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 # Binary search between lo and hi bounds.
18775 while test "x$ac_lo" != "x$ac_hi"; do
18776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 $ac_includes_default
18787 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18794 rm -f conftest.$ac_objext
18795 if { (ac_try="$ac_compile"
18796 case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18801 $as_echo "$ac_try_echo") >&5
18802 (eval "$ac_compile") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest.$ac_objext; then
18814 $as_echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 ac_lo=`expr '(' $ac_mid ')' + 1`
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18824 '') if test "$ac_cv_type_off_t" = yes; then
18825 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18827 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18828 See \`config.log' for more details." >&5
18829 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18830 See \`config.log' for more details." >&2;}
18831 { (exit 77); exit 77; }; }; }
18833 ac_cv_sizeof_off_t=0
18837 cat >conftest.$ac_ext <<_ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 $ac_includes_default
18844 static long int longval () { return (long int) (sizeof (off_t)); }
18845 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18847 #include <stdlib.h>
18852 FILE *f = fopen ("conftest.val", "w");
18855 if (((long int) (sizeof (off_t))) < 0)
18857 long int i = longval ();
18858 if (i != ((long int) (sizeof (off_t))))
18860 fprintf (f, "%ld", i);
18864 unsigned long int i = ulongval ();
18865 if (i != ((long int) (sizeof (off_t))))
18867 fprintf (f, "%lu", i);
18869 /* Do not output a trailing newline, as this causes \r\n confusion
18870 on some platforms. */
18871 return ferror (f) || fclose (f) != 0;
18877 rm -f conftest$ac_exeext
18878 if { (ac_try="$ac_link"
18879 case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18884 $as_echo "$ac_try_echo") >&5
18885 (eval "$ac_link") 2>&5
18887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895 (eval "$ac_try") 2>&5
18897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_sizeof_off_t=`cat conftest.val`
18901 $as_echo "$as_me: program exited with status $ac_status" >&5
18902 $as_echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ( exit $ac_status )
18906 if test "$ac_cv_type_off_t" = yes; then
18907 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18909 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18910 See \`config.log' for more details." >&5
18911 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18912 See \`config.log' for more details." >&2;}
18913 { (exit 77); exit 77; }; }; }
18915 ac_cv_sizeof_off_t=0
18918 rm -rf conftest.dSYM
18919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18923 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18924 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18928 cat >>confdefs.h <<_ACEOF
18929 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18934 # If we don't have largefile support, can't handle segsize >= 2GB.
18935 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18936 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18937 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18938 { (exit 1); exit 1; }; }
18943 ## Functions, global variables
18946 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18947 $as_echo_n "checking for int timezone... " >&6; }
18948 if test "${pgac_cv_var_int_timezone+set}" = set; then
18949 $as_echo_n "(cached) " >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18963 res = timezone / 60;
18965 res = _timezone / 60;
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (ac_try="$ac_link"
18973 case "(($ac_try" in
18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975 *) ac_try_echo=$ac_try;;
18977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18978 $as_echo "$ac_try_echo") >&5
18979 (eval "$ac_link") 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest$ac_exeext && {
18989 test "$cross_compiling" = yes ||
18990 $as_test_x conftest$ac_exeext
18992 pgac_cv_var_int_timezone=yes
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 pgac_cv_var_int_timezone=no
19000 rm -rf conftest.dSYM
19001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19002 conftest$ac_exeext conftest.$ac_ext
19004 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19005 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19006 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19008 cat >>confdefs.h <<\_ACEOF
19009 #define HAVE_INT_TIMEZONE /**/
19013 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19014 $as_echo_n "checking types of arguments for accept()... " >&6; }
19015 if test "${ac_cv_func_accept_return+set}" = set; then
19016 $as_echo_n "(cached) " >&6
19018 if test "${ac_cv_func_accept_arg1+set}" = set; then
19019 $as_echo_n "(cached) " >&6
19021 if test "${ac_cv_func_accept_arg2+set}" = set; then
19022 $as_echo_n "(cached) " >&6
19024 if test "${ac_cv_func_accept_arg3+set}" = set; then
19025 $as_echo_n "(cached) " >&6
19027 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19028 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19029 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19030 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #ifdef HAVE_SYS_TYPES_H
19038 #include <sys/types.h>
19040 #ifdef HAVE_SYS_SOCKET_H
19041 #include <sys/socket.h>
19043 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19052 rm -f conftest.$ac_objext
19053 if { (ac_try="$ac_compile"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060 (eval "$ac_compile") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest.$ac_objext; then
19070 ac_not_found=no; break 4
19072 $as_echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083 if test "$ac_not_found" = yes; then
19084 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19085 $as_echo "$as_me: error: could not determine argument types" >&2;}
19086 { (exit 1); exit 1; }; }
19088 if test "$ac_cv_func_accept_arg3" = "void"; then
19089 ac_cv_func_accept_arg3=int
19099 { $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
19100 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19102 cat >>confdefs.h <<_ACEOF
19103 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19107 cat >>confdefs.h <<_ACEOF
19108 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19112 cat >>confdefs.h <<_ACEOF
19113 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19117 cat >>confdefs.h <<_ACEOF
19118 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19122 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19123 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19124 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19125 $as_echo_n "(cached) " >&6
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <sys/time.h>
19137 struct timeval *tp;
19138 struct timezone *tzp;
19139 gettimeofday(tp,tzp);
19144 rm -f conftest.$ac_objext
19145 if { (ac_try="$ac_compile"
19146 case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19151 $as_echo "$ac_try_echo") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 pgac_cv_func_gettimeofday_1arg=no
19164 $as_echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 pgac_cv_func_gettimeofday_1arg=yes
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19173 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19174 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define GETTIMEOFDAY_1ARG /**/
19206 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l
19208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19209 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19210 $as_echo_n "checking for $ac_func... " >&6; }
19211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19212 $as_echo_n "(cached) " >&6
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19222 #define $ac_func innocuous_$ac_func
19224 /* System header to define __stub macros and hopefully few prototypes,
19225 which can conflict with char $ac_func (); below.
19226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227 <limits.h> exists even on freestanding compilers. */
19230 # include <limits.h>
19232 # include <assert.h>
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19244 /* The GNU C library defines this for functions which it implements
19245 to always fail with ENOSYS. Some functions are actually named
19246 something starting with __ and the normal name is an alias. */
19247 #if defined __stub_$ac_func || defined __stub___$ac_func
19254 return $ac_func ();
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19266 $as_echo "$ac_try_echo") >&5
19267 (eval "$ac_link") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } && {
19274 test -z "$ac_c_werror_flag" ||
19275 test ! -s conftest.err
19276 } && test -s conftest$ac_exeext && {
19277 test "$cross_compiling" = yes ||
19278 $as_test_x conftest$ac_exeext
19280 eval "$as_ac_var=yes"
19282 $as_echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 eval "$as_ac_var=no"
19288 rm -rf conftest.dSYM
19289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19290 conftest$ac_exeext conftest.$ac_ext
19292 ac_res=`eval 'as_val=${'$as_ac_var'}
19293 $as_echo "$as_val"'`
19294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19295 $as_echo "$ac_res" >&6; }
19296 as_val=`eval 'as_val=${'$as_ac_var'}
19297 $as_echo "$as_val"'`
19298 if test "x$as_val" = x""yes; then
19299 cat >>confdefs.h <<_ACEOF
19300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19308 for ac_func in fseeko
19310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19312 $as_echo_n "checking for $ac_func... " >&6; }
19313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19314 $as_echo_n "(cached) " >&6
19316 cat >conftest.$ac_ext <<_ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19324 #define $ac_func innocuous_$ac_func
19326 /* System header to define __stub macros and hopefully few prototypes,
19327 which can conflict with char $ac_func (); below.
19328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19329 <limits.h> exists even on freestanding compilers. */
19332 # include <limits.h>
19334 # include <assert.h>
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19346 /* The GNU C library defines this for functions which it implements
19347 to always fail with ENOSYS. Some functions are actually named
19348 something starting with __ and the normal name is an alias. */
19349 #if defined __stub_$ac_func || defined __stub___$ac_func
19356 return $ac_func ();
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19368 $as_echo "$ac_try_echo") >&5
19369 (eval "$ac_link") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_c_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest$ac_exeext && {
19379 test "$cross_compiling" = yes ||
19380 $as_test_x conftest$ac_exeext
19382 eval "$as_ac_var=yes"
19384 $as_echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 eval "$as_ac_var=no"
19390 rm -rf conftest.dSYM
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392 conftest$ac_exeext conftest.$ac_ext
19394 ac_res=`eval 'as_val=${'$as_ac_var'}
19395 $as_echo "$as_val"'`
19396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19397 $as_echo "$ac_res" >&6; }
19398 as_val=`eval 'as_val=${'$as_ac_var'}
19399 $as_echo "$as_val"'`
19400 if test "x$as_val" = x""yes; then
19401 cat >>confdefs.h <<_ACEOF
19402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19406 case " $LIBOBJS " in
19407 *" $ac_func.$ac_objext "* ) ;;
19408 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19417 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19418 # Mingw uses macros to access Win32 API calls
19419 bsdi*|netbsd*|mingw*)
19421 cat >>confdefs.h <<\_ACEOF
19422 #define HAVE_FSEEKO 1
19425 ac_cv_func_fseeko=yes;;
19427 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19428 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19429 if test "${ac_cv_sys_largefile_source+set}" = set; then
19430 $as_echo_n "(cached) " >&6
19433 cat >conftest.$ac_ext <<_ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 #include <sys/types.h> /* for off_t */
19444 int (*fp) (FILE *, off_t, int) = fseeko;
19445 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19457 $as_echo "$ac_try_echo") >&5
19458 (eval "$ac_link") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest$ac_exeext && {
19468 test "$cross_compiling" = yes ||
19469 $as_test_x conftest$ac_exeext
19471 ac_cv_sys_largefile_source=no; break
19473 $as_echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19479 rm -rf conftest.dSYM
19480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19481 conftest$ac_exeext conftest.$ac_ext
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488 #define _LARGEFILE_SOURCE 1
19489 #include <sys/types.h> /* for off_t */
19494 int (*fp) (FILE *, off_t, int) = fseeko;
19495 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19507 $as_echo "$ac_try_echo") >&5
19508 (eval "$ac_link") 2>conftest.er1
19510 grep -v '^ *+' conftest.er1 >conftest.err
19512 cat conftest.err >&5
19513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && {
19515 test -z "$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19517 } && test -s conftest$ac_exeext && {
19518 test "$cross_compiling" = yes ||
19519 $as_test_x conftest$ac_exeext
19521 ac_cv_sys_largefile_source=1; break
19523 $as_echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19529 rm -rf conftest.dSYM
19530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19531 conftest$ac_exeext conftest.$ac_ext
19532 ac_cv_sys_largefile_source=unknown
19536 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19537 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19538 case $ac_cv_sys_largefile_source in #(
19541 cat >>confdefs.h <<_ACEOF
19542 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19548 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19549 # in glibc 2.1.3, but that breaks too many other things.
19550 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19551 if test $ac_cv_sys_largefile_source != unknown; then
19553 cat >>confdefs.h <<\_ACEOF
19554 #define HAVE_FSEEKO 1
19561 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19562 # by calling it, 2009-04-02
19563 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19564 if test "$PORTNAME" != "solaris"; then
19566 for ac_func in posix_fadvise
19568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19569 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19570 $as_echo_n "checking for $ac_func... " >&6; }
19571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19572 $as_echo_n "(cached) " >&6
19574 cat >conftest.$ac_ext <<_ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19582 #define $ac_func innocuous_$ac_func
19584 /* System header to define __stub macros and hopefully few prototypes,
19585 which can conflict with char $ac_func (); below.
19586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19587 <limits.h> exists even on freestanding compilers. */
19590 # include <limits.h>
19592 # include <assert.h>
19597 /* Override any GCC internal prototype to avoid an error.
19598 Use char because int might match the return type of a GCC
19599 builtin and then its argument prototype would still apply. */
19604 /* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607 #if defined __stub_$ac_func || defined __stub___$ac_func
19614 return $ac_func ();
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19626 $as_echo "$ac_try_echo") >&5
19627 (eval "$ac_link") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext && {
19637 test "$cross_compiling" = yes ||
19638 $as_test_x conftest$ac_exeext
19640 eval "$as_ac_var=yes"
19642 $as_echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 eval "$as_ac_var=no"
19648 rm -rf conftest.dSYM
19649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650 conftest$ac_exeext conftest.$ac_ext
19652 ac_res=`eval 'as_val=${'$as_ac_var'}
19653 $as_echo "$as_val"'`
19654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19655 $as_echo "$ac_res" >&6; }
19656 as_val=`eval 'as_val=${'$as_ac_var'}
19657 $as_echo "$as_val"'`
19658 if test "x$as_val" = x""yes; then
19659 cat >>confdefs.h <<_ACEOF
19660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19666 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19667 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19668 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19669 $as_echo_n "(cached) " >&6
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19682 #ifndef posix_fadvise
19683 (void) posix_fadvise;
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19697 $as_echo "$ac_try_echo") >&5
19698 (eval "$ac_compile") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest.$ac_objext; then
19708 ac_cv_have_decl_posix_fadvise=yes
19710 $as_echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_cv_have_decl_posix_fadvise=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19718 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19719 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19720 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_DECL_POSIX_FADVISE 1
19728 cat >>confdefs.h <<_ACEOF
19729 #define HAVE_DECL_POSIX_FADVISE 0
19738 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19739 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19740 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19741 $as_echo_n "(cached) " >&6
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 #include <unistd.h>
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19769 $as_echo "$ac_try_echo") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest.$ac_objext; then
19780 ac_cv_have_decl_fdatasync=yes
19782 $as_echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_have_decl_fdatasync=no
19788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19791 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19792 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19794 cat >>confdefs.h <<_ACEOF
19795 #define HAVE_DECL_FDATASYNC 1
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_DECL_FDATASYNC 0
19808 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19809 $as_echo_n "checking whether strlcat is declared... " >&6; }
19810 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19811 $as_echo_n "(cached) " >&6
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 $ac_includes_default
19831 rm -f conftest.$ac_objext
19832 if { (ac_try="$ac_compile"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19838 $as_echo "$ac_try_echo") >&5
19839 (eval "$ac_compile") 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } && {
19846 test -z "$ac_c_werror_flag" ||
19847 test ! -s conftest.err
19848 } && test -s conftest.$ac_objext; then
19849 ac_cv_have_decl_strlcat=yes
19851 $as_echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_cv_have_decl_strlcat=no
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19859 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19860 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19861 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19863 cat >>confdefs.h <<_ACEOF
19864 #define HAVE_DECL_STRLCAT 1
19869 cat >>confdefs.h <<_ACEOF
19870 #define HAVE_DECL_STRLCAT 0
19875 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19876 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19877 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19878 $as_echo_n "(cached) " >&6
19880 cat >conftest.$ac_ext <<_ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19898 rm -f conftest.$ac_objext
19899 if { (ac_try="$ac_compile"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19905 $as_echo "$ac_try_echo") >&5
19906 (eval "$ac_compile") 2>conftest.er1
19908 grep -v '^ *+' conftest.er1 >conftest.err
19910 cat conftest.err >&5
19911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest.$ac_objext; then
19916 ac_cv_have_decl_strlcpy=yes
19918 $as_echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_have_decl_strlcpy=no
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19926 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19927 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19928 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19930 cat >>confdefs.h <<_ACEOF
19931 #define HAVE_DECL_STRLCPY 1
19936 cat >>confdefs.h <<_ACEOF
19937 #define HAVE_DECL_STRLCPY 0
19944 # This is probably only present on Darwin, but may as well check always
19945 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19946 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19947 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19948 $as_echo_n "(cached) " >&6
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19961 #ifndef F_FULLFSYNC
19962 (void) F_FULLFSYNC;
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976 $as_echo "$ac_try_echo") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19979 grep -v '^ *+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_cv_have_decl_F_FULLFSYNC=yes
19989 $as_echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.$ac_ext >&5
19992 ac_cv_have_decl_F_FULLFSYNC=no
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19997 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19998 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19999 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_DECL_F_FULLFSYNC 1
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_DECL_F_FULLFSYNC 0
20017 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20018 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20019 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20020 $as_echo_n "(cached) " >&6
20022 ac_cv_type_struct_sockaddr_in6=no
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 $ac_includes_default
20030 #include <netinet/in.h>
20035 if (sizeof (struct sockaddr_in6))
20041 rm -f conftest.$ac_objext
20042 if { (ac_try="$ac_compile"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20048 $as_echo "$ac_try_echo") >&5
20049 (eval "$ac_compile") 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } && {
20056 test -z "$ac_c_werror_flag" ||
20057 test ! -s conftest.err
20058 } && test -s conftest.$ac_objext; then
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 $ac_includes_default
20066 #include <netinet/in.h>
20071 if (sizeof ((struct sockaddr_in6)))
20077 rm -f conftest.$ac_objext
20078 if { (ac_try="$ac_compile"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20084 $as_echo "$ac_try_echo") >&5
20085 (eval "$ac_compile") 2>conftest.er1
20087 grep -v '^ *+' conftest.er1 >conftest.err
20089 cat conftest.err >&5
20090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); } && {
20092 test -z "$ac_c_werror_flag" ||
20093 test ! -s conftest.err
20094 } && test -s conftest.$ac_objext; then
20097 $as_echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_cv_type_struct_sockaddr_in6=yes
20103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20105 $as_echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20114 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20115 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20117 cat >>confdefs.h <<\_ACEOF
20118 #define HAVE_IPV6 1
20126 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20127 $as_echo_n "checking for PS_STRINGS... " >&6; }
20128 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20129 $as_echo_n "(cached) " >&6
20131 cat >conftest.$ac_ext <<_ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137 #include <machine/vmparam.h>
20138 #include <sys/exec.h>
20143 PS_STRINGS->ps_nargvstr = 1;
20144 PS_STRINGS->ps_argvstr = "foo";
20149 rm -f conftest.$ac_objext conftest$ac_exeext
20150 if { (ac_try="$ac_link"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20156 $as_echo "$ac_try_echo") >&5
20157 (eval "$ac_link") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest$ac_exeext && {
20167 test "$cross_compiling" = yes ||
20168 $as_test_x conftest$ac_exeext
20170 pgac_cv_var_PS_STRINGS=yes
20172 $as_echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20175 pgac_cv_var_PS_STRINGS=no
20178 rm -rf conftest.dSYM
20179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20180 conftest$ac_exeext conftest.$ac_ext
20182 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20183 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20184 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20186 cat >>confdefs.h <<\_ACEOF
20187 #define HAVE_PS_STRINGS /**/
20193 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20194 # is missing. Yes, there are machines that have only one. We may
20195 # also decide to use snprintf.c if snprintf() is present but does not
20196 # have all the features we need --- see below.
20198 if test "$PORTNAME" = "win32"; then
20199 # Win32 gets snprintf.c built unconditionally.
20201 # To properly translate all NLS languages strings, we must support the
20202 # *printf() %$ format, which allows *printf() arguments to be selected
20203 # by position in the translated string.
20205 # libintl versions < 0.13 use the native *printf() functions, and Win32
20206 # *printf() doesn't understand %$, so we must use our /port versions,
20207 # which do understand %$. libintl versions >= 0.13 include their own
20208 # *printf versions on Win32. The libintl 0.13 release note text is:
20210 # C format strings with positions, as they arise when a translator
20211 # needs to reorder a sentence, are now supported on all platforms.
20212 # On those few platforms (NetBSD and Woe32) for which the native
20213 # printf()/fprintf()/... functions don't support such format
20214 # strings, replacements are provided through <libintl.h>.
20216 # We could use libintl >= 0.13's *printf() if we were sure that we had
20217 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20218 # to guarantee that, it is best to just use our own, so we are sure to
20219 # get %$ support. In include/port.h we disable the *printf() macros
20220 # that might have been defined by libintl.
20222 # We do this unconditionally whether NLS is used or not so we are sure
20223 # that all Win32 libraries and binaries behave the same.
20224 pgac_need_repl_snprintf=yes
20226 pgac_need_repl_snprintf=no
20228 for ac_func in snprintf
20230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20232 $as_echo_n "checking for $ac_func... " >&6; }
20233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20234 $as_echo_n "(cached) " >&6
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20244 #define $ac_func innocuous_$ac_func
20246 /* System header to define __stub macros and hopefully few prototypes,
20247 which can conflict with char $ac_func (); below.
20248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249 <limits.h> exists even on freestanding compilers. */
20252 # include <limits.h>
20254 # include <assert.h>
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20266 /* The GNU C library defines this for functions which it implements
20267 to always fail with ENOSYS. Some functions are actually named
20268 something starting with __ and the normal name is an alias. */
20269 #if defined __stub_$ac_func || defined __stub___$ac_func
20276 return $ac_func ();
20281 rm -f conftest.$ac_objext conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20288 $as_echo "$ac_try_echo") >&5
20289 (eval "$ac_link") 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest$ac_exeext && {
20299 test "$cross_compiling" = yes ||
20300 $as_test_x conftest$ac_exeext
20302 eval "$as_ac_var=yes"
20304 $as_echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 eval "$as_ac_var=no"
20310 rm -rf conftest.dSYM
20311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20312 conftest$ac_exeext conftest.$ac_ext
20314 ac_res=`eval 'as_val=${'$as_ac_var'}
20315 $as_echo "$as_val"'`
20316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20317 $as_echo "$ac_res" >&6; }
20318 as_val=`eval 'as_val=${'$as_ac_var'}
20319 $as_echo "$as_val"'`
20320 if test "x$as_val" = x""yes; then
20321 cat >>confdefs.h <<_ACEOF
20322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20326 pgac_need_repl_snprintf=yes
20331 for ac_func in vsnprintf
20333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20334 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20335 $as_echo_n "checking for $ac_func... " >&6; }
20336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20337 $as_echo_n "(cached) " >&6
20339 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20347 #define $ac_func innocuous_$ac_func
20349 /* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char $ac_func (); below.
20351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20352 <limits.h> exists even on freestanding compilers. */
20355 # include <limits.h>
20357 # include <assert.h>
20362 /* Override any GCC internal prototype to avoid an error.
20363 Use char because int might match the return type of a GCC
20364 builtin and then its argument prototype would still apply. */
20369 /* The GNU C library defines this for functions which it implements
20370 to always fail with ENOSYS. Some functions are actually named
20371 something starting with __ and the normal name is an alias. */
20372 #if defined __stub_$ac_func || defined __stub___$ac_func
20379 return $ac_func ();
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20391 $as_echo "$ac_try_echo") >&5
20392 (eval "$ac_link") 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } && {
20399 test -z "$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 } && test -s conftest$ac_exeext && {
20402 test "$cross_compiling" = yes ||
20403 $as_test_x conftest$ac_exeext
20405 eval "$as_ac_var=yes"
20407 $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 eval "$as_ac_var=no"
20413 rm -rf conftest.dSYM
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20417 ac_res=`eval 'as_val=${'$as_ac_var'}
20418 $as_echo "$as_val"'`
20419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20420 $as_echo "$ac_res" >&6; }
20421 as_val=`eval 'as_val=${'$as_ac_var'}
20422 $as_echo "$as_val"'`
20423 if test "x$as_val" = x""yes; then
20424 cat >>confdefs.h <<_ACEOF
20425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20429 pgac_need_repl_snprintf=yes
20436 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20437 # include/c.h will provide declarations. Note this is a separate test
20438 # from whether the functions exist in the C library --- there are
20439 # systems that have the functions but don't bother to declare them :-(
20441 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20442 $as_echo_n "checking whether snprintf is declared... " >&6; }
20443 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20444 $as_echo_n "(cached) " >&6
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 $ac_includes_default
20464 rm -f conftest.$ac_objext
20465 if { (ac_try="$ac_compile"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20471 $as_echo "$ac_try_echo") >&5
20472 (eval "$ac_compile") 2>conftest.er1
20474 grep -v '^ *+' conftest.er1 >conftest.err
20476 cat conftest.err >&5
20477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } && {
20479 test -z "$ac_c_werror_flag" ||
20480 test ! -s conftest.err
20481 } && test -s conftest.$ac_objext; then
20482 ac_cv_have_decl_snprintf=yes
20484 $as_echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20487 ac_cv_have_decl_snprintf=no
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20492 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20493 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20494 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 #define HAVE_DECL_SNPRINTF 1
20502 cat >>confdefs.h <<_ACEOF
20503 #define HAVE_DECL_SNPRINTF 0
20508 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20509 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20510 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20511 $as_echo_n "(cached) " >&6
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 $ac_includes_default
20531 rm -f conftest.$ac_objext
20532 if { (ac_try="$ac_compile"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20538 $as_echo "$ac_try_echo") >&5
20539 (eval "$ac_compile") 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } && {
20546 test -z "$ac_c_werror_flag" ||
20547 test ! -s conftest.err
20548 } && test -s conftest.$ac_objext; then
20549 ac_cv_have_decl_vsnprintf=yes
20551 $as_echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 ac_cv_have_decl_vsnprintf=no
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20560 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20561 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_DECL_VSNPRINTF 1
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_DECL_VSNPRINTF 0
20579 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20580 $as_echo_n "checking for isinf... " >&6; }
20581 if test "${ac_cv_func_isinf+set}" = set; then
20582 $as_echo_n "(cached) " >&6
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20592 double glob_double;
20597 return isinf(glob_double) ? 0 : 1;
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610 (eval "$ac_link") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest$ac_exeext && {
20620 test "$cross_compiling" = yes ||
20621 $as_test_x conftest$ac_exeext
20623 ac_cv_func_isinf=yes
20625 $as_echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_func_isinf=no
20631 rm -rf conftest.dSYM
20632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20633 conftest$ac_exeext conftest.$ac_ext
20635 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20636 $as_echo "$ac_cv_func_isinf" >&6; }
20638 if test $ac_cv_func_isinf = yes ; then
20640 cat >>confdefs.h <<\_ACEOF
20641 #define HAVE_ISINF 1
20645 case " $LIBOBJS " in
20646 *" isinf.$ac_objext "* ) ;;
20647 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20651 # Look for a way to implement a substitute for isinf()
20656 for ac_func in fpclass fp_class fp_class_d class
20658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20659 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20660 $as_echo_n "checking for $ac_func... " >&6; }
20661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20662 $as_echo_n "(cached) " >&6
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20672 #define $ac_func innocuous_$ac_func
20674 /* System header to define __stub macros and hopefully few prototypes,
20675 which can conflict with char $ac_func (); below.
20676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20677 <limits.h> exists even on freestanding compilers. */
20680 # include <limits.h>
20682 # include <assert.h>
20687 /* Override any GCC internal prototype to avoid an error.
20688 Use char because int might match the return type of a GCC
20689 builtin and then its argument prototype would still apply. */
20694 /* The GNU C library defines this for functions which it implements
20695 to always fail with ENOSYS. Some functions are actually named
20696 something starting with __ and the normal name is an alias. */
20697 #if defined __stub_$ac_func || defined __stub___$ac_func
20704 return $ac_func ();
20709 rm -f conftest.$ac_objext conftest$ac_exeext
20710 if { (ac_try="$ac_link"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20716 $as_echo "$ac_try_echo") >&5
20717 (eval "$ac_link") 2>conftest.er1
20719 grep -v '^ *+' conftest.er1 >conftest.err
20721 cat conftest.err >&5
20722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } && {
20724 test -z "$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 } && test -s conftest$ac_exeext && {
20727 test "$cross_compiling" = yes ||
20728 $as_test_x conftest$ac_exeext
20730 eval "$as_ac_var=yes"
20732 $as_echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 eval "$as_ac_var=no"
20738 rm -rf conftest.dSYM
20739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20740 conftest$ac_exeext conftest.$ac_ext
20742 ac_res=`eval 'as_val=${'$as_ac_var'}
20743 $as_echo "$as_val"'`
20744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20745 $as_echo "$ac_res" >&6; }
20746 as_val=`eval 'as_val=${'$as_ac_var'}
20747 $as_echo "$as_val"'`
20748 if test "x$as_val" = x""yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20758 # Some versions of libedit contain strlcpy(); so disregard that library while
20759 # checking for these standard libc functions.
20760 pgac_save_LIBS="$LIBS"
20761 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20776 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20780 $as_echo_n "checking for $ac_func... " >&6; }
20781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20782 $as_echo_n "(cached) " >&6
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20792 #define $ac_func innocuous_$ac_func
20794 /* System header to define __stub macros and hopefully few prototypes,
20795 which can conflict with char $ac_func (); below.
20796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20797 <limits.h> exists even on freestanding compilers. */
20800 # include <limits.h>
20802 # include <assert.h>
20807 /* Override any GCC internal prototype to avoid an error.
20808 Use char because int might match the return type of a GCC
20809 builtin and then its argument prototype would still apply. */
20814 /* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817 #if defined __stub_$ac_func || defined __stub___$ac_func
20824 return $ac_func ();
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20836 $as_echo "$ac_try_echo") >&5
20837 (eval "$ac_link") 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest$ac_exeext && {
20847 test "$cross_compiling" = yes ||
20848 $as_test_x conftest$ac_exeext
20850 eval "$as_ac_var=yes"
20852 $as_echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 eval "$as_ac_var=no"
20858 rm -rf conftest.dSYM
20859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20860 conftest$ac_exeext conftest.$ac_ext
20862 ac_res=`eval 'as_val=${'$as_ac_var'}
20863 $as_echo "$as_val"'`
20864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20865 $as_echo "$ac_res" >&6; }
20866 as_val=`eval 'as_val=${'$as_ac_var'}
20867 $as_echo "$as_val"'`
20868 if test "x$as_val" = x""yes; then
20869 cat >>confdefs.h <<_ACEOF
20870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20874 case " $LIBOBJS " in
20875 *" $ac_func.$ac_objext "* ) ;;
20876 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20887 # Windows uses a specialised env handler
20888 # and doesn't need a replacement getpeereid because it doesn't use
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_UNSETENV 1
20897 cat >>confdefs.h <<\_ACEOF
20898 #define HAVE_GETPEEREID 1
20901 ac_cv_func_unsetenv=yes
20902 ac_cv_func_getpeereid=yes;;
20906 for ac_func in unsetenv getpeereid
20908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20910 $as_echo_n "checking for $ac_func... " >&6; }
20911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20912 $as_echo_n "(cached) " >&6
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20922 #define $ac_func innocuous_$ac_func
20924 /* System header to define __stub macros and hopefully few prototypes,
20925 which can conflict with char $ac_func (); below.
20926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20927 <limits.h> exists even on freestanding compilers. */
20930 # include <limits.h>
20932 # include <assert.h>
20937 /* Override any GCC internal prototype to avoid an error.
20938 Use char because int might match the return type of a GCC
20939 builtin and then its argument prototype would still apply. */
20944 /* The GNU C library defines this for functions which it implements
20945 to always fail with ENOSYS. Some functions are actually named
20946 something starting with __ and the normal name is an alias. */
20947 #if defined __stub_$ac_func || defined __stub___$ac_func
20954 return $ac_func ();
20959 rm -f conftest.$ac_objext conftest$ac_exeext
20960 if { (ac_try="$ac_link"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20966 $as_echo "$ac_try_echo") >&5
20967 (eval "$ac_link") 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } && {
20974 test -z "$ac_c_werror_flag" ||
20975 test ! -s conftest.err
20976 } && test -s conftest$ac_exeext && {
20977 test "$cross_compiling" = yes ||
20978 $as_test_x conftest$ac_exeext
20980 eval "$as_ac_var=yes"
20982 $as_echo "$as_me: failed program was:" >&5
20983 sed 's/^/| /' conftest.$ac_ext >&5
20985 eval "$as_ac_var=no"
20988 rm -rf conftest.dSYM
20989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20990 conftest$ac_exeext conftest.$ac_ext
20992 ac_res=`eval 'as_val=${'$as_ac_var'}
20993 $as_echo "$as_val"'`
20994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20995 $as_echo "$ac_res" >&6; }
20996 as_val=`eval 'as_val=${'$as_ac_var'}
20997 $as_echo "$as_val"'`
20998 if test "x$as_val" = x""yes; then
20999 cat >>confdefs.h <<_ACEOF
21000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21004 case " $LIBOBJS " in
21005 *" $ac_func.$ac_objext "* ) ;;
21006 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21018 LIBS="$pgac_save_LIBS"
21020 # System's version of getaddrinfo(), if any, may be used only if we found
21021 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21022 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21023 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21024 # because we want to use our own getaddrinfo.c on Windows anyway.)
21025 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21027 for ac_func in getaddrinfo
21029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21030 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21031 $as_echo_n "checking for $ac_func... " >&6; }
21032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21033 $as_echo_n "(cached) " >&6
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21043 #define $ac_func innocuous_$ac_func
21045 /* System header to define __stub macros and hopefully few prototypes,
21046 which can conflict with char $ac_func (); below.
21047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21048 <limits.h> exists even on freestanding compilers. */
21051 # include <limits.h>
21053 # include <assert.h>
21058 /* Override any GCC internal prototype to avoid an error.
21059 Use char because int might match the return type of a GCC
21060 builtin and then its argument prototype would still apply. */
21065 /* The GNU C library defines this for functions which it implements
21066 to always fail with ENOSYS. Some functions are actually named
21067 something starting with __ and the normal name is an alias. */
21068 #if defined __stub_$ac_func || defined __stub___$ac_func
21075 return $ac_func ();
21080 rm -f conftest.$ac_objext conftest$ac_exeext
21081 if { (ac_try="$ac_link"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21087 $as_echo "$ac_try_echo") >&5
21088 (eval "$ac_link") 2>conftest.er1
21090 grep -v '^ *+' conftest.er1 >conftest.err
21092 cat conftest.err >&5
21093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && {
21095 test -z "$ac_c_werror_flag" ||
21096 test ! -s conftest.err
21097 } && test -s conftest$ac_exeext && {
21098 test "$cross_compiling" = yes ||
21099 $as_test_x conftest$ac_exeext
21101 eval "$as_ac_var=yes"
21103 $as_echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 eval "$as_ac_var=no"
21109 rm -rf conftest.dSYM
21110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21111 conftest$ac_exeext conftest.$ac_ext
21113 ac_res=`eval 'as_val=${'$as_ac_var'}
21114 $as_echo "$as_val"'`
21115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21116 $as_echo "$ac_res" >&6; }
21117 as_val=`eval 'as_val=${'$as_ac_var'}
21118 $as_echo "$as_val"'`
21119 if test "x$as_val" = x""yes; then
21120 cat >>confdefs.h <<_ACEOF
21121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21125 case " $LIBOBJS " in
21126 *" $ac_func.$ac_objext "* ) ;;
21127 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21136 case " $LIBOBJS " in
21137 *" getaddrinfo.$ac_objext "* ) ;;
21138 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21144 # Similarly, use system's getopt_long() only if system provides struct option.
21145 if test x"$ac_cv_type_struct_option" = xyes ; then
21147 for ac_func in getopt_long
21149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21150 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21151 $as_echo_n "checking for $ac_func... " >&6; }
21152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21153 $as_echo_n "(cached) " >&6
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21163 #define $ac_func innocuous_$ac_func
21165 /* System header to define __stub macros and hopefully few prototypes,
21166 which can conflict with char $ac_func (); below.
21167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21168 <limits.h> exists even on freestanding compilers. */
21171 # include <limits.h>
21173 # include <assert.h>
21178 /* Override any GCC internal prototype to avoid an error.
21179 Use char because int might match the return type of a GCC
21180 builtin and then its argument prototype would still apply. */
21185 /* The GNU C library defines this for functions which it implements
21186 to always fail with ENOSYS. Some functions are actually named
21187 something starting with __ and the normal name is an alias. */
21188 #if defined __stub_$ac_func || defined __stub___$ac_func
21195 return $ac_func ();
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21207 $as_echo "$ac_try_echo") >&5
21208 (eval "$ac_link") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext && {
21218 test "$cross_compiling" = yes ||
21219 $as_test_x conftest$ac_exeext
21221 eval "$as_ac_var=yes"
21223 $as_echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 eval "$as_ac_var=no"
21229 rm -rf conftest.dSYM
21230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21231 conftest$ac_exeext conftest.$ac_ext
21233 ac_res=`eval 'as_val=${'$as_ac_var'}
21234 $as_echo "$as_val"'`
21235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21236 $as_echo "$ac_res" >&6; }
21237 as_val=`eval 'as_val=${'$as_ac_var'}
21238 $as_echo "$as_val"'`
21239 if test "x$as_val" = x""yes; then
21240 cat >>confdefs.h <<_ACEOF
21241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21245 case " $LIBOBJS " in
21246 *" $ac_func.$ac_objext "* ) ;;
21247 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21256 case " $LIBOBJS " in
21257 *" getopt_long.$ac_objext "* ) ;;
21258 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21264 # Solaris' getopt() doesn't do what we want for long options, so always use
21265 # our version on that platform.
21266 if test "$PORTNAME" = "solaris"; then
21267 case " $LIBOBJS " in
21268 *" getopt.$ac_objext "* ) ;;
21269 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21275 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21276 # so always use our version on Windows.
21277 if test "$PORTNAME" = "win32"; then
21278 case " $LIBOBJS " in
21279 *" getopt.$ac_objext "* ) ;;
21280 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21284 case " $LIBOBJS " in
21285 *" getopt_long.$ac_objext "* ) ;;
21286 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21293 if test "$PORTNAME" = "win32"; then
21295 for ac_func in gettimeofday
21297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21299 $as_echo_n "checking for $ac_func... " >&6; }
21300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21301 $as_echo_n "(cached) " >&6
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21311 #define $ac_func innocuous_$ac_func
21313 /* System header to define __stub macros and hopefully few prototypes,
21314 which can conflict with char $ac_func (); below.
21315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21316 <limits.h> exists even on freestanding compilers. */
21319 # include <limits.h>
21321 # include <assert.h>
21326 /* Override any GCC internal prototype to avoid an error.
21327 Use char because int might match the return type of a GCC
21328 builtin and then its argument prototype would still apply. */
21333 /* The GNU C library defines this for functions which it implements
21334 to always fail with ENOSYS. Some functions are actually named
21335 something starting with __ and the normal name is an alias. */
21336 #if defined __stub_$ac_func || defined __stub___$ac_func
21343 return $ac_func ();
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21355 $as_echo "$ac_try_echo") >&5
21356 (eval "$ac_link") 2>conftest.er1
21358 grep -v '^ *+' conftest.er1 >conftest.err
21360 cat conftest.err >&5
21361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && {
21363 test -z "$ac_c_werror_flag" ||
21364 test ! -s conftest.err
21365 } && test -s conftest$ac_exeext && {
21366 test "$cross_compiling" = yes ||
21367 $as_test_x conftest$ac_exeext
21369 eval "$as_ac_var=yes"
21371 $as_echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 eval "$as_ac_var=no"
21377 rm -rf conftest.dSYM
21378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21379 conftest$ac_exeext conftest.$ac_ext
21381 ac_res=`eval 'as_val=${'$as_ac_var'}
21382 $as_echo "$as_val"'`
21383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21384 $as_echo "$ac_res" >&6; }
21385 as_val=`eval 'as_val=${'$as_ac_var'}
21386 $as_echo "$as_val"'`
21387 if test "x$as_val" = x""yes; then
21388 cat >>confdefs.h <<_ACEOF
21389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21393 case " $LIBOBJS " in
21394 *" $ac_func.$ac_objext "* ) ;;
21395 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21403 case " $LIBOBJS " in
21404 *" kill.$ac_objext "* ) ;;
21405 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21409 case " $LIBOBJS " in
21410 *" open.$ac_objext "* ) ;;
21411 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21415 case " $LIBOBJS " in
21416 *" win32env.$ac_objext "* ) ;;
21417 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21421 case " $LIBOBJS " in
21422 *" win32error.$ac_objext "* ) ;;
21423 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21427 case " $LIBOBJS " in
21428 *" win32setlocale.$ac_objext "* ) ;;
21429 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21434 cat >>confdefs.h <<\_ACEOF
21435 #define HAVE_SYMLINK 1
21438 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21439 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21440 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21441 $as_echo_n "(cached) " >&6
21443 ac_cv_type_MINIDUMP_TYPE=no
21444 cat >conftest.$ac_ext <<_ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21451 #define WIN32_LEAN_AND_MEAN
21452 #include <windows.h>
21453 #include <string.h>
21454 #include <dbghelp.h>
21459 if (sizeof (MINIDUMP_TYPE))
21465 rm -f conftest.$ac_objext
21466 if { (ac_try="$ac_compile"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_compile") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest.$ac_objext; then
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21490 #define WIN32_LEAN_AND_MEAN
21491 #include <windows.h>
21492 #include <string.h>
21493 #include <dbghelp.h>
21498 if (sizeof ((MINIDUMP_TYPE)))
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512 (eval "$ac_compile") 2>conftest.er1
21514 grep -v '^ *+' conftest.er1 >conftest.err
21516 cat conftest.err >&5
21517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && {
21519 test -z "$ac_c_werror_flag" ||
21520 test ! -s conftest.err
21521 } && test -s conftest.$ac_objext; then
21524 $as_echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21527 ac_cv_type_MINIDUMP_TYPE=yes
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532 $as_echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21541 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21542 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21544 cat >>confdefs.h <<_ACEOF
21545 #define HAVE_MINIDUMP_TYPE 1
21548 pgac_minidump_type=yes
21550 pgac_minidump_type=no
21554 if test x"$pgac_minidump_type" = x"yes" ; then
21555 have_win32_dbghelp=yes
21558 have_win32_dbghelp=no
21562 if test "$with_readline" = yes; then
21563 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21564 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21565 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21566 $as_echo_n "(cached) " >&6
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21575 #ifdef HAVE_READLINE_READLINE_H
21576 # include <readline/readline.h>
21577 #elif defined(HAVE_READLINE_H)
21578 # include <readline.h>
21584 rl_completion_append_character = 'x';
21589 rm -f conftest.$ac_objext conftest$ac_exeext
21590 if { (ac_try="$ac_link"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21596 $as_echo "$ac_try_echo") >&5
21597 (eval "$ac_link") 2>conftest.er1
21599 grep -v '^ *+' conftest.er1 >conftest.err
21601 cat conftest.err >&5
21602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && {
21604 test -z "$ac_c_werror_flag" ||
21605 test ! -s conftest.err
21606 } && test -s conftest$ac_exeext && {
21607 test "$cross_compiling" = yes ||
21608 $as_test_x conftest$ac_exeext
21610 pgac_cv_var_rl_completion_append_character=yes
21612 $as_echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21615 pgac_cv_var_rl_completion_append_character=no
21618 rm -rf conftest.dSYM
21619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21620 conftest$ac_exeext conftest.$ac_ext
21622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21623 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21624 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21633 for ac_func in rl_completion_matches rl_filename_completion_function
21635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21637 $as_echo_n "checking for $ac_func... " >&6; }
21638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21639 $as_echo_n "(cached) " >&6
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21649 #define $ac_func innocuous_$ac_func
21651 /* System header to define __stub macros and hopefully few prototypes,
21652 which can conflict with char $ac_func (); below.
21653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21654 <limits.h> exists even on freestanding compilers. */
21657 # include <limits.h>
21659 # include <assert.h>
21664 /* Override any GCC internal prototype to avoid an error.
21665 Use char because int might match the return type of a GCC
21666 builtin and then its argument prototype would still apply. */
21671 /* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674 #if defined __stub_$ac_func || defined __stub___$ac_func
21681 return $ac_func ();
21686 rm -f conftest.$ac_objext conftest$ac_exeext
21687 if { (ac_try="$ac_link"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21693 $as_echo "$ac_try_echo") >&5
21694 (eval "$ac_link") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext && {
21704 test "$cross_compiling" = yes ||
21705 $as_test_x conftest$ac_exeext
21707 eval "$as_ac_var=yes"
21709 $as_echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 eval "$as_ac_var=no"
21715 rm -rf conftest.dSYM
21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21719 ac_res=`eval 'as_val=${'$as_ac_var'}
21720 $as_echo "$as_val"'`
21721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21722 $as_echo "$ac_res" >&6; }
21723 as_val=`eval 'as_val=${'$as_ac_var'}
21724 $as_echo "$as_val"'`
21725 if test "x$as_val" = x""yes; then
21726 cat >>confdefs.h <<_ACEOF
21727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21735 for ac_func in append_history history_truncate_file
21737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21739 $as_echo_n "checking for $ac_func... " >&6; }
21740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21741 $as_echo_n "(cached) " >&6
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21751 #define $ac_func innocuous_$ac_func
21753 /* System header to define __stub macros and hopefully few prototypes,
21754 which can conflict with char $ac_func (); below.
21755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21756 <limits.h> exists even on freestanding compilers. */
21759 # include <limits.h>
21761 # include <assert.h>
21766 /* Override any GCC internal prototype to avoid an error.
21767 Use char because int might match the return type of a GCC
21768 builtin and then its argument prototype would still apply. */
21773 /* The GNU C library defines this for functions which it implements
21774 to always fail with ENOSYS. Some functions are actually named
21775 something starting with __ and the normal name is an alias. */
21776 #if defined __stub_$ac_func || defined __stub___$ac_func
21783 return $ac_func ();
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (ac_try="$ac_link"
21790 case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21795 $as_echo "$ac_try_echo") >&5
21796 (eval "$ac_link") 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest$ac_exeext && {
21806 test "$cross_compiling" = yes ||
21807 $as_test_x conftest$ac_exeext
21809 eval "$as_ac_var=yes"
21811 $as_echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 eval "$as_ac_var=no"
21817 rm -rf conftest.dSYM
21818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21819 conftest$ac_exeext conftest.$ac_ext
21821 ac_res=`eval 'as_val=${'$as_ac_var'}
21822 $as_echo "$as_val"'`
21823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21824 $as_echo "$ac_res" >&6; }
21825 as_val=`eval 'as_val=${'$as_ac_var'}
21826 $as_echo "$as_val"'`
21827 if test "x$as_val" = x""yes; then
21828 cat >>confdefs.h <<_ACEOF
21829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21838 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21839 $as_echo_n "checking for sigsetjmp... " >&6; }
21840 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21841 $as_echo_n "(cached) " >&6
21843 cat >conftest.$ac_ext <<_ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21849 #include <setjmp.h>
21853 sigjmp_buf x; sigsetjmp(x, 1);
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866 (eval "$ac_link") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest$ac_exeext && {
21876 test "$cross_compiling" = yes ||
21877 $as_test_x conftest$ac_exeext
21879 pgac_cv_func_sigsetjmp=yes
21881 $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 pgac_cv_func_sigsetjmp=no
21887 rm -rf conftest.dSYM
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21891 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21892 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21893 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_SIGSETJMP 1
21901 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21902 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21903 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21904 $as_echo_n "(cached) " >&6
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21912 #include <signal.h>
21913 /* NetBSD declares sys_siglist in unistd.h. */
21914 #ifdef HAVE_UNISTD_H
21915 # include <unistd.h>
21922 #ifndef sys_siglist
21923 (void) sys_siglist;
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21937 $as_echo "$ac_try_echo") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 ac_cv_have_decl_sys_siglist=yes
21950 $as_echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_have_decl_sys_siglist=no
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21959 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21960 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define HAVE_DECL_SYS_SIGLIST 1
21968 cat >>confdefs.h <<_ACEOF
21969 #define HAVE_DECL_SYS_SIGLIST 0
21978 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21979 $as_echo_n "checking for syslog... " >&6; }
21980 if test "${ac_cv_func_syslog+set}" = set; then
21981 $as_echo_n "(cached) " >&6
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21991 #define syslog innocuous_syslog
21993 /* System header to define __stub macros and hopefully few prototypes,
21994 which can conflict with char syslog (); below.
21995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21996 <limits.h> exists even on freestanding compilers. */
21999 # include <limits.h>
22001 # include <assert.h>
22006 /* Override any GCC internal prototype to avoid an error.
22007 Use char because int might match the return type of a GCC
22008 builtin and then its argument prototype would still apply. */
22013 /* The GNU C library defines this for functions which it implements
22014 to always fail with ENOSYS. Some functions are actually named
22015 something starting with __ and the normal name is an alias. */
22016 #if defined __stub_syslog || defined __stub___syslog
22028 rm -f conftest.$ac_objext conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22035 $as_echo "$ac_try_echo") >&5
22036 (eval "$ac_link") 2>conftest.er1
22038 grep -v '^ *+' conftest.er1 >conftest.err
22040 cat conftest.err >&5
22041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } && {
22043 test -z "$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22045 } && test -s conftest$ac_exeext && {
22046 test "$cross_compiling" = yes ||
22047 $as_test_x conftest$ac_exeext
22049 ac_cv_func_syslog=yes
22051 $as_echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ac_cv_func_syslog=no
22057 rm -rf conftest.dSYM
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059 conftest$ac_exeext conftest.$ac_ext
22061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22062 $as_echo "$ac_cv_func_syslog" >&6; }
22063 if test "x$ac_cv_func_syslog" = x""yes; then
22064 if test "${ac_cv_header_syslog_h+set}" = set; then
22065 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22066 $as_echo_n "checking for syslog.h... " >&6; }
22067 if test "${ac_cv_header_syslog_h+set}" = set; then
22068 $as_echo_n "(cached) " >&6
22070 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22071 $as_echo "$ac_cv_header_syslog_h" >&6; }
22073 # Is the header compilable?
22074 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22075 $as_echo_n "checking syslog.h usability... " >&6; }
22076 cat >conftest.$ac_ext <<_ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 $ac_includes_default
22083 #include <syslog.h>
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22092 $as_echo "$ac_try_echo") >&5
22093 (eval "$ac_compile") 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } && {
22100 test -z "$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22102 } && test -s conftest.$ac_objext; then
22103 ac_header_compiler=yes
22105 $as_echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22108 ac_header_compiler=no
22111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22113 $as_echo "$ac_header_compiler" >&6; }
22115 # Is the header present?
22116 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22117 $as_echo_n "checking syslog.h presence... " >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 #include <syslog.h>
22126 if { (ac_try="$ac_cpp conftest.$ac_ext"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22132 $as_echo "$ac_try_echo") >&5
22133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } >/dev/null && {
22140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22143 ac_header_preproc=yes
22145 $as_echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_header_preproc=no
22151 rm -f conftest.err conftest.$ac_ext
22152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22153 $as_echo "$ac_header_preproc" >&6; }
22155 # So? What about this header?
22156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22158 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22159 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22160 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22161 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22162 ac_header_preproc=yes
22165 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22166 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22167 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22168 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22169 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22170 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22171 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22172 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22173 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22174 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22175 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22176 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22178 ## ---------------------------------------- ##
22179 ## Report this to pgsql-bugs@postgresql.org ##
22180 ## ---------------------------------------- ##
22182 ) | sed "s/^/$as_me: WARNING: /" >&2
22185 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22186 $as_echo_n "checking for syslog.h... " >&6; }
22187 if test "${ac_cv_header_syslog_h+set}" = set; then
22188 $as_echo_n "(cached) " >&6
22190 ac_cv_header_syslog_h=$ac_header_preproc
22192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22193 $as_echo "$ac_cv_header_syslog_h" >&6; }
22196 if test "x$ac_cv_header_syslog_h" = x""yes; then
22198 cat >>confdefs.h <<\_ACEOF
22199 #define HAVE_SYSLOG 1
22208 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22209 $as_echo_n "checking for opterr... " >&6; }
22210 if test "${pgac_cv_var_int_opterr+set}" = set; then
22211 $as_echo_n "(cached) " >&6
22213 cat >conftest.$ac_ext <<_ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h. */
22219 #include <unistd.h>
22223 extern int opterr; opterr = 1;
22228 rm -f conftest.$ac_objext conftest$ac_exeext
22229 if { (ac_try="$ac_link"
22230 case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236 (eval "$ac_link") 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest$ac_exeext && {
22246 test "$cross_compiling" = yes ||
22247 $as_test_x conftest$ac_exeext
22249 pgac_cv_var_int_opterr=yes
22251 $as_echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 pgac_cv_var_int_opterr=no
22257 rm -rf conftest.dSYM
22258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22259 conftest$ac_exeext conftest.$ac_ext
22261 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22262 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22263 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22265 cat >>confdefs.h <<\_ACEOF
22266 #define HAVE_INT_OPTERR 1
22271 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22272 $as_echo_n "checking for optreset... " >&6; }
22273 if test "${pgac_cv_var_int_optreset+set}" = set; then
22274 $as_echo_n "(cached) " >&6
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 #include <unistd.h>
22286 extern int optreset; optreset = 1;
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (ac_try="$ac_link"
22293 case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22298 $as_echo "$ac_try_echo") >&5
22299 (eval "$ac_link") 2>conftest.er1
22301 grep -v '^ *+' conftest.er1 >conftest.err
22303 cat conftest.err >&5
22304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest$ac_exeext && {
22309 test "$cross_compiling" = yes ||
22310 $as_test_x conftest$ac_exeext
22312 pgac_cv_var_int_optreset=yes
22314 $as_echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22317 pgac_cv_var_int_optreset=no
22320 rm -rf conftest.dSYM
22321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22322 conftest$ac_exeext conftest.$ac_ext
22324 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22325 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22326 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22328 cat >>confdefs.h <<\_ACEOF
22329 #define HAVE_INT_OPTRESET 1
22336 for ac_func in strtoll strtoq
22338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 $as_echo_n "checking for $ac_func... " >&6; }
22341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342 $as_echo_n "(cached) " >&6
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22352 #define $ac_func innocuous_$ac_func
22354 /* System header to define __stub macros and hopefully few prototypes,
22355 which can conflict with char $ac_func (); below.
22356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357 <limits.h> exists even on freestanding compilers. */
22360 # include <limits.h>
22362 # include <assert.h>
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22374 /* The GNU C library defines this for functions which it implements
22375 to always fail with ENOSYS. Some functions are actually named
22376 something starting with __ and the normal name is an alias. */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22384 return $ac_func ();
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397 (eval "$ac_link") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext && {
22407 test "$cross_compiling" = yes ||
22408 $as_test_x conftest$ac_exeext
22410 eval "$as_ac_var=yes"
22412 $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 eval "$as_ac_var=no"
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420 conftest$ac_exeext conftest.$ac_ext
22422 ac_res=`eval 'as_val=${'$as_ac_var'}
22423 $as_echo "$as_val"'`
22424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22425 $as_echo "$ac_res" >&6; }
22426 as_val=`eval 'as_val=${'$as_ac_var'}
22427 $as_echo "$as_val"'`
22428 if test "x$as_val" = x""yes; then
22429 cat >>confdefs.h <<_ACEOF
22430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22438 for ac_func in strtoull strtouq
22440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22441 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22442 $as_echo_n "checking for $ac_func... " >&6; }
22443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22444 $as_echo_n "(cached) " >&6
22446 cat >conftest.$ac_ext <<_ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22454 #define $ac_func innocuous_$ac_func
22456 /* System header to define __stub macros and hopefully few prototypes,
22457 which can conflict with char $ac_func (); below.
22458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22459 <limits.h> exists even on freestanding compilers. */
22462 # include <limits.h>
22464 # include <assert.h>
22469 /* Override any GCC internal prototype to avoid an error.
22470 Use char because int might match the return type of a GCC
22471 builtin and then its argument prototype would still apply. */
22476 /* The GNU C library defines this for functions which it implements
22477 to always fail with ENOSYS. Some functions are actually named
22478 something starting with __ and the normal name is an alias. */
22479 #if defined __stub_$ac_func || defined __stub___$ac_func
22486 return $ac_func ();
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22498 $as_echo "$ac_try_echo") >&5
22499 (eval "$ac_link") 2>conftest.er1
22501 grep -v '^ *+' conftest.er1 >conftest.err
22503 cat conftest.err >&5
22504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } && {
22506 test -z "$ac_c_werror_flag" ||
22507 test ! -s conftest.err
22508 } && test -s conftest$ac_exeext && {
22509 test "$cross_compiling" = yes ||
22510 $as_test_x conftest$ac_exeext
22512 eval "$as_ac_var=yes"
22514 $as_echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 eval "$as_ac_var=no"
22520 rm -rf conftest.dSYM
22521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22522 conftest$ac_exeext conftest.$ac_ext
22524 ac_res=`eval 'as_val=${'$as_ac_var'}
22525 $as_echo "$as_val"'`
22526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22527 $as_echo "$ac_res" >&6; }
22528 as_val=`eval 'as_val=${'$as_ac_var'}
22529 $as_echo "$as_val"'`
22530 if test "x$as_val" = x""yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22543 # For each platform, we need to know about any special compile and link
22544 # libraries, and whether the normal C function names are thread-safe.
22545 # See the comment at the top of src/port/thread.c for more information.
22546 # WIN32 doesn't need the pthread tests; it always uses threads
22547 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22552 ac_cpp='$CPP $CPPFLAGS'
22553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22559 # We used to check for pthread.h first, but this fails if pthread.h
22560 # requires special compiler flags (e.g. on True64 or Sequent).
22561 # It gets checked for in the link test anyway.
22563 # First of all, check if the user has set any of the PTHREAD_LIBS,
22564 # etcetera environment variables, and if threads linking works using
22566 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22567 save_CFLAGS="$CFLAGS"
22568 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22570 LIBS="$PTHREAD_LIBS $LIBS"
22571 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22572 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22580 /* Override any GCC internal prototype to avoid an error.
22581 Use char because int might match the return type of a GCC
22582 builtin and then its argument prototype would still apply. */
22586 char pthread_join ();
22590 return pthread_join ();
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22602 $as_echo "$ac_try_echo") >&5
22603 (eval "$ac_link") 2>conftest.er1
22605 grep -v '^ *+' conftest.er1 >conftest.err
22607 cat conftest.err >&5
22608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && {
22610 test -z "$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22612 } && test -s conftest$ac_exeext && {
22613 test "$cross_compiling" = yes ||
22614 $as_test_x conftest$ac_exeext
22618 $as_echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22624 rm -rf conftest.dSYM
22625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22626 conftest$ac_exeext conftest.$ac_ext
22627 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22628 $as_echo "$acx_pthread_ok" >&6; }
22629 if test x"$acx_pthread_ok" = xno; then
22634 CFLAGS="$save_CFLAGS"
22637 # We must check for the threads library under a number of different
22638 # names; the ordering is very important because some systems
22639 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22640 # libraries is broken (non-POSIX).
22642 # Create a list of thread flags to try. Items starting with a "-" are
22643 # C compiler flags, and other items are library names, except for "none"
22644 # which indicates that we try without any flags at all, and "pthread-config"
22645 # which is a program returning the flags for the Pth emulation library.
22647 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22649 # The ordering *is* (sometimes) important. Some notes on the
22650 # individual items follow:
22652 # pthreads: AIX (must check this before -lpthread)
22653 # none: in case threads are in libc; should be tried before -Kthread and
22654 # other compiler flags to prevent continual compiler warnings
22655 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22656 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22657 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22658 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22659 # -pthreads: Solaris/gcc
22660 # -mthreads: Mingw32/gcc, Lynx/gcc
22661 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22662 # doesn't hurt to check since this sometimes defines pthreads too;
22663 # also defines -D_REENTRANT)
22664 # pthread: Linux, etcetera
22665 # --thread-safe: KAI C++
22666 # pthread-config: use pthread-config program (for GNU Pth library)
22668 case "${host_cpu}-${host_os}" in
22671 # On Solaris (at least, for some versions), libc contains stubbed
22672 # (non-functional) versions of the pthreads routines, so link-based
22673 # tests will erroneously succeed. (We need to link with -pthread or
22674 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22675 # a function called by this macro, so we could check for that, but
22676 # who knows whether they'll stub that too in a future libc.) So,
22677 # we'll just look for -pthreads and -lpthread first:
22679 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22683 if test x"$acx_pthread_ok" = xno; then
22684 for flag in $acx_pthread_flags; do
22686 tryPTHREAD_CFLAGS=""
22690 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22691 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22695 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22696 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22697 tryPTHREAD_CFLAGS="$flag"
22701 # skip this if we already have flags defined, for PostgreSQL
22702 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22703 # Extract the first word of "pthread-config", so it can be a program name with args.
22704 set dummy pthread-config; ac_word=$2
22705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22706 $as_echo_n "checking for $ac_word... " >&6; }
22707 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22708 $as_echo_n "(cached) " >&6
22710 if test -n "$acx_pthread_config"; then
22711 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22714 for as_dir in $PATH
22717 test -z "$as_dir" && as_dir=.
22718 for ac_exec_ext in '' $ac_executable_extensions; do
22719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22720 ac_cv_prog_acx_pthread_config="yes"
22721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22728 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22731 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22732 if test -n "$acx_pthread_config"; then
22733 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22734 $as_echo "$acx_pthread_config" >&6; }
22736 { $as_echo "$as_me:$LINENO: result: no" >&5
22737 $as_echo "no" >&6; }
22741 if test x"$acx_pthread_config" = xno; then continue; fi
22742 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22743 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22747 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22748 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22749 tryPTHREAD_LIBS="-l$flag"
22754 save_CFLAGS="$CFLAGS"
22755 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22756 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22758 # Check for various functions. We must include pthread.h,
22759 # since some functions may be macros. (On the Sequent, we
22760 # need a special flag -Kthread to make this header compile.)
22761 # We check for pthread_join because it is in -lpthread on IRIX
22762 # while pthread_create is in libc. We check for pthread_attr_init
22763 # due to DEC craziness with -lpthreads. We check for
22764 # pthread_cleanup_push because it is one of the few pthread
22765 # functions on Solaris that doesn't have a non-functional libc stub.
22766 # We try pthread_create on general principles.
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 #include <pthread.h>
22777 pthread_t th; pthread_join(th, 0);
22778 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22779 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22784 rm -f conftest.$ac_objext conftest$ac_exeext
22785 if { (ac_try="$ac_link"
22786 case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22791 $as_echo "$ac_try_echo") >&5
22792 (eval "$ac_link") 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest$ac_exeext && {
22802 test "$cross_compiling" = yes ||
22803 $as_test_x conftest$ac_exeext
22807 $as_echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22813 rm -rf conftest.dSYM
22814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22815 conftest$ac_exeext conftest.$ac_ext
22817 if test "x$acx_pthread_ok" = xyes; then
22818 # Don't use options that are ignored by the compiler.
22819 # We find them by checking stderror.
22820 cat >conftest.$ac_ext <<_ACEOF
22822 main (int argc, char **argv)
22829 rm -f conftest.$ac_objext conftest$ac_exeext
22830 # Check both linking and compiling, because they might tolerate different options.
22831 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22832 # we continue with more flags because Linux needs -lpthread
22833 # for libpq builds on PostgreSQL. The test above only
22834 # tests for building binaries, not shared libraries.
22835 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22836 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22837 else acx_pthread_ok=no
22842 CFLAGS="$save_CFLAGS"
22844 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22845 $as_echo "$acx_pthread_ok" >&6; }
22849 # Various other checks:
22850 if test "x$acx_pthread_ok" = xyes; then
22852 LIBS="$PTHREAD_LIBS $LIBS"
22853 save_CFLAGS="$CFLAGS"
22854 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22856 # Detect AIX lossage: threads are created detached by default
22857 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22858 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22859 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 #include <pthread.h>
22870 int attr=PTHREAD_CREATE_JOINABLE;
22875 rm -f conftest.$ac_objext conftest$ac_exeext
22876 if { (ac_try="$ac_link"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883 (eval "$ac_link") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest$ac_exeext && {
22893 test "$cross_compiling" = yes ||
22894 $as_test_x conftest$ac_exeext
22896 ok=PTHREAD_CREATE_JOINABLE
22898 $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22904 rm -rf conftest.dSYM
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906 conftest$ac_exeext conftest.$ac_ext
22907 if test x"$ok" = xunknown; then
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 #include <pthread.h>
22918 int attr=PTHREAD_CREATE_UNDETACHED;
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22930 $as_echo "$ac_try_echo") >&5
22931 (eval "$ac_link") 2>conftest.er1
22933 grep -v '^ *+' conftest.er1 >conftest.err
22935 cat conftest.err >&5
22936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest$ac_exeext && {
22941 test "$cross_compiling" = yes ||
22942 $as_test_x conftest$ac_exeext
22944 ok=PTHREAD_CREATE_UNDETACHED
22946 $as_echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22952 rm -rf conftest.dSYM
22953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22954 conftest$ac_exeext conftest.$ac_ext
22956 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22958 cat >>confdefs.h <<\_ACEOF
22959 #define PTHREAD_CREATE_JOINABLE $ok
22963 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22964 $as_echo "${ok}" >&6; }
22965 if test x"$ok" = xunknown; then
22966 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22967 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22970 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22971 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22973 # We always add these in PostgreSQL
22974 # case "${host_cpu}-${host_os}" in
22975 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22976 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22978 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22979 $as_echo "${flag}" >&6; }
22980 if test "x$flag" != xno; then
22981 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22985 CFLAGS="$save_CFLAGS"
22987 # Supporting cc_r would require a special CC in all places that
22988 # use libpq, and that is ugly, so we don't do it. Users can still
22989 # define their compiler as cc_r to do thread builds of everything.
22990 # More AIX lossage: must compile with cc_r
22991 # Extract the first word of "cc_r", so it can be a program name with args.
22992 set dummy cc_r; ac_word=$2
22993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22994 $as_echo_n "checking for $ac_word... " >&6; }
22995 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22996 $as_echo_n "(cached) " >&6
22998 if test -n "$PTHREAD_CC"; then
22999 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23002 for as_dir in $PATH
23005 test -z "$as_dir" && as_dir=.
23006 for ac_exec_ext in '' $ac_executable_extensions; do
23007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23008 ac_cv_prog_PTHREAD_CC="cc_r"
23009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23016 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23019 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23020 if test -n "$PTHREAD_CC"; then
23021 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23022 $as_echo "$PTHREAD_CC" >&6; }
23024 { $as_echo "$as_me:$LINENO: result: no" >&5
23025 $as_echo "no" >&6; }
23037 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23038 if test x"$acx_pthread_ok" = xyes; then
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_PTHREAD 1
23050 ac_cpp='$CPP $CPPFLAGS'
23051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23057 # Some platforms use these, so just define them. They can't hurt if they
23058 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23059 # enables 5-arg getpwuid_r, among other things.
23060 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23063 # At this point, we don't want to muck with the compiler name for threading.
23064 # Let's see who fails, perhaps AIX. 2004-04-23
23065 if test "$PTHREAD_CC" != "$CC"; then
23066 { { $as_echo "$as_me:$LINENO: error:
23067 PostgreSQL does not support platforms that require a special compiler
23068 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23069 $as_echo "$as_me: error:
23070 PostgreSQL does not support platforms that require a special compiler
23071 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23072 { (exit 1); exit 1; }; }
23075 # Check for *_r functions
23078 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23079 LIBS="$LIBS $PTHREAD_LIBS"
23081 if test "$PORTNAME" != "win32"; then
23082 if test "${ac_cv_header_pthread_h+set}" = set; then
23083 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23084 $as_echo_n "checking for pthread.h... " >&6; }
23085 if test "${ac_cv_header_pthread_h+set}" = set; then
23086 $as_echo_n "(cached) " >&6
23088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23089 $as_echo "$ac_cv_header_pthread_h" >&6; }
23091 # Is the header compilable?
23092 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23093 $as_echo_n "checking pthread.h usability... " >&6; }
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 $ac_includes_default
23101 #include <pthread.h>
23103 rm -f conftest.$ac_objext
23104 if { (ac_try="$ac_compile"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23110 $as_echo "$ac_try_echo") >&5
23111 (eval "$ac_compile") 2>conftest.er1
23113 grep -v '^ *+' conftest.er1 >conftest.err
23115 cat conftest.err >&5
23116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } && {
23118 test -z "$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23120 } && test -s conftest.$ac_objext; then
23121 ac_header_compiler=yes
23123 $as_echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_header_compiler=no
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23131 $as_echo "$ac_header_compiler" >&6; }
23133 # Is the header present?
23134 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23135 $as_echo_n "checking pthread.h presence... " >&6; }
23136 cat >conftest.$ac_ext <<_ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23142 #include <pthread.h>
23144 if { (ac_try="$ac_cpp conftest.$ac_ext"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23150 $as_echo "$ac_try_echo") >&5
23151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23153 grep -v '^ *+' conftest.er1 >conftest.err
23155 cat conftest.err >&5
23156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } >/dev/null && {
23158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23159 test ! -s conftest.err
23161 ac_header_preproc=yes
23163 $as_echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 ac_header_preproc=no
23169 rm -f conftest.err conftest.$ac_ext
23170 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23171 $as_echo "$ac_header_preproc" >&6; }
23173 # So? What about this header?
23174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23176 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23177 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23179 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23180 ac_header_preproc=yes
23183 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23184 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23185 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23186 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23187 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23188 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23189 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23190 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23191 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23192 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23193 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23194 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23196 ## ---------------------------------------- ##
23197 ## Report this to pgsql-bugs@postgresql.org ##
23198 ## ---------------------------------------- ##
23200 ) | sed "s/^/$as_me: WARNING: /" >&2
23203 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23204 $as_echo_n "checking for pthread.h... " >&6; }
23205 if test "${ac_cv_header_pthread_h+set}" = set; then
23206 $as_echo_n "(cached) " >&6
23208 ac_cv_header_pthread_h=$ac_header_preproc
23210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23211 $as_echo "$ac_cv_header_pthread_h" >&6; }
23214 if test "x$ac_cv_header_pthread_h" = x""yes; then
23217 { { $as_echo "$as_me:$LINENO: error:
23218 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23219 $as_echo "$as_me: error:
23220 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23221 { (exit 1); exit 1; }; }
23230 for ac_func in strerror_r getpwuid_r gethostbyname_r
23232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23234 $as_echo_n "checking for $ac_func... " >&6; }
23235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23236 $as_echo_n "(cached) " >&6
23238 cat >conftest.$ac_ext <<_ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23246 #define $ac_func innocuous_$ac_func
23248 /* System header to define __stub macros and hopefully few prototypes,
23249 which can conflict with char $ac_func (); below.
23250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23251 <limits.h> exists even on freestanding compilers. */
23254 # include <limits.h>
23256 # include <assert.h>
23261 /* Override any GCC internal prototype to avoid an error.
23262 Use char because int might match the return type of a GCC
23263 builtin and then its argument prototype would still apply. */
23268 /* The GNU C library defines this for functions which it implements
23269 to always fail with ENOSYS. Some functions are actually named
23270 something starting with __ and the normal name is an alias. */
23271 #if defined __stub_$ac_func || defined __stub___$ac_func
23278 return $ac_func ();
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23290 $as_echo "$ac_try_echo") >&5
23291 (eval "$ac_link") 2>conftest.er1
23293 grep -v '^ *+' conftest.er1 >conftest.err
23295 cat conftest.err >&5
23296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } && {
23298 test -z "$ac_c_werror_flag" ||
23299 test ! -s conftest.err
23300 } && test -s conftest$ac_exeext && {
23301 test "$cross_compiling" = yes ||
23302 $as_test_x conftest$ac_exeext
23304 eval "$as_ac_var=yes"
23306 $as_echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 eval "$as_ac_var=no"
23312 rm -rf conftest.dSYM
23313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23314 conftest$ac_exeext conftest.$ac_ext
23316 ac_res=`eval 'as_val=${'$as_ac_var'}
23317 $as_echo "$as_val"'`
23318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23319 $as_echo "$ac_res" >&6; }
23320 as_val=`eval 'as_val=${'$as_ac_var'}
23321 $as_echo "$as_val"'`
23322 if test "x$as_val" = x""yes; then
23323 cat >>confdefs.h <<_ACEOF
23324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23331 # Do test here with the proper thread flags
23332 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23333 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23334 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23335 $as_echo_n "(cached) " >&6
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 #include <sys/types.h>
23349 struct passwd *space;
23352 struct passwd **result;
23353 getpwuid_r(uid, space, buf, bufsize, result);
23358 rm -f conftest.$ac_objext
23359 if { (ac_try="$ac_compile"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23365 $as_echo "$ac_try_echo") >&5
23366 (eval "$ac_compile") 2>conftest.er1
23368 grep -v '^ *+' conftest.er1 >conftest.err
23370 cat conftest.err >&5
23371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && {
23373 test -z "$ac_c_werror_flag" ||
23374 test ! -s conftest.err
23375 } && test -s conftest.$ac_objext; then
23376 pgac_cv_func_getpwuid_r_5arg=yes
23378 $as_echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23381 pgac_cv_func_getpwuid_r_5arg=no
23384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23387 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23388 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23390 cat >>confdefs.h <<\_ACEOF
23391 #define GETPWUID_R_5ARG /**/
23396 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23397 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23398 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23399 $as_echo_n "(cached) " >&6
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 #include <string.h>
23412 int strerror_r(int, char *, size_t);
23414 /* Older AIX has 'int' for the third argument so we don't test the args. */
23421 rm -f conftest.$ac_objext
23422 if { (ac_try="$ac_compile"
23423 case "(($ac_try" in
23424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23425 *) ac_try_echo=$ac_try;;
23427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23428 $as_echo "$ac_try_echo") >&5
23429 (eval "$ac_compile") 2>conftest.er1
23431 grep -v '^ *+' conftest.er1 >conftest.err
23433 cat conftest.err >&5
23434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && {
23436 test -z "$ac_c_werror_flag" ||
23437 test ! -s conftest.err
23438 } && test -s conftest.$ac_objext; then
23439 pgac_cv_func_strerror_r_int=yes
23441 $as_echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 pgac_cv_func_strerror_r_int=no
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23450 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23451 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23453 cat >>confdefs.h <<\_ACEOF
23454 #define STRERROR_R_INT /**/
23464 # do not use values from template file
23473 # We can test for libldap_r only after we know PTHREAD_LIBS
23474 if test "$with_ldap" = yes ; then
23476 if test "$PORTNAME" != "win32"; then
23478 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23479 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23480 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23481 $as_echo_n "(cached) " >&6
23483 ac_check_lib_save_LIBS=$LIBS
23484 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23485 cat >conftest.$ac_ext <<_ACEOF
23488 cat confdefs.h >>conftest.$ac_ext
23489 cat >>conftest.$ac_ext <<_ACEOF
23490 /* end confdefs.h. */
23492 /* Override any GCC internal prototype to avoid an error.
23493 Use char because int might match the return type of a GCC
23494 builtin and then its argument prototype would still apply. */
23502 return ldap_bind ();
23507 rm -f conftest.$ac_objext conftest$ac_exeext
23508 if { (ac_try="$ac_link"
23509 case "(($ac_try" in
23510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511 *) ac_try_echo=$ac_try;;
23513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23514 $as_echo "$ac_try_echo") >&5
23515 (eval "$ac_link") 2>conftest.er1
23517 grep -v '^ *+' conftest.er1 >conftest.err
23519 cat conftest.err >&5
23520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && {
23522 test -z "$ac_c_werror_flag" ||
23523 test ! -s conftest.err
23524 } && test -s conftest$ac_exeext && {
23525 test "$cross_compiling" = yes ||
23526 $as_test_x conftest$ac_exeext
23528 ac_cv_lib_ldap_ldap_bind=yes
23530 $as_echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23533 ac_cv_lib_ldap_ldap_bind=no
23536 rm -rf conftest.dSYM
23537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23538 conftest$ac_exeext conftest.$ac_ext
23539 LIBS=$ac_check_lib_save_LIBS
23541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23542 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23543 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23544 cat >>confdefs.h <<_ACEOF
23545 #define HAVE_LIBLDAP 1
23548 LIBS="-lldap $LIBS"
23551 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23552 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23553 { (exit 1); exit 1; }; }
23556 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23557 if test "$enable_thread_safety" = yes; then
23558 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23560 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23561 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23562 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23563 $as_echo_n "(cached) " >&6
23565 ac_check_lib_save_LIBS=$LIBS
23566 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23567 cat >conftest.$ac_ext <<_ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h. */
23574 /* Override any GCC internal prototype to avoid an error.
23575 Use char because int might match the return type of a GCC
23576 builtin and then its argument prototype would still apply. */
23580 char ldap_simple_bind ();
23584 return ldap_simple_bind ();
23589 rm -f conftest.$ac_objext conftest$ac_exeext
23590 if { (ac_try="$ac_link"
23591 case "(($ac_try" in
23592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593 *) ac_try_echo=$ac_try;;
23595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23596 $as_echo "$ac_try_echo") >&5
23597 (eval "$ac_link") 2>conftest.er1
23599 grep -v '^ *+' conftest.er1 >conftest.err
23601 cat conftest.err >&5
23602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } && {
23604 test -z "$ac_c_werror_flag" ||
23605 test ! -s conftest.err
23606 } && test -s conftest$ac_exeext && {
23607 test "$cross_compiling" = yes ||
23608 $as_test_x conftest$ac_exeext
23610 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23612 $as_echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_lib_ldap_r_ldap_simple_bind=no
23618 rm -rf conftest.dSYM
23619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23620 conftest$ac_exeext conftest.$ac_ext
23621 LIBS=$ac_check_lib_save_LIBS
23623 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23624 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23625 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23626 cat >>confdefs.h <<_ACEOF
23627 #define HAVE_LIBLDAP_R 1
23630 LIBS="-lldap_r $LIBS"
23633 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23634 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23635 { (exit 1); exit 1; }; }
23638 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23640 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23644 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23645 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23646 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23647 $as_echo_n "(cached) " >&6
23649 ac_check_lib_save_LIBS=$LIBS
23650 LIBS="-lwldap32 $LIBS"
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23658 /* Override any GCC internal prototype to avoid an error.
23659 Use char because int might match the return type of a GCC
23660 builtin and then its argument prototype would still apply. */
23668 return ldap_bind ();
23673 rm -f conftest.$ac_objext conftest$ac_exeext
23674 if { (ac_try="$ac_link"
23675 case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23680 $as_echo "$ac_try_echo") >&5
23681 (eval "$ac_link") 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && {
23688 test -z "$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23690 } && test -s conftest$ac_exeext && {
23691 test "$cross_compiling" = yes ||
23692 $as_test_x conftest$ac_exeext
23694 ac_cv_lib_wldap32_ldap_bind=yes
23696 $as_echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ac_cv_lib_wldap32_ldap_bind=no
23702 rm -rf conftest.dSYM
23703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23704 conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23708 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23709 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23710 cat >>confdefs.h <<_ACEOF
23711 #define HAVE_LIBWLDAP32 1
23714 LIBS="-lwldap32 $LIBS"
23717 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23718 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23719 { (exit 1); exit 1; }; }
23722 LDAP_LIBS_FE="-lwldap32"
23723 LDAP_LIBS_BE="-lwldap32"
23731 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23732 # (which could be a macro referring to a function, if threading is enabled)
23733 if test "$with_libxml" = yes ; then
23734 { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23735 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23736 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23737 $as_echo_n "(cached) " >&6
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 #include <libxml/globals.h>
23750 globptr = xmlStructuredErrorContext
23755 rm -f conftest.$ac_objext conftest$ac_exeext
23756 if { (ac_try="$ac_link"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23762 $as_echo "$ac_try_echo") >&5
23763 (eval "$ac_link") 2>conftest.er1
23765 grep -v '^ *+' conftest.er1 >conftest.err
23767 cat conftest.err >&5
23768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext && {
23773 test "$cross_compiling" = yes ||
23774 $as_test_x conftest$ac_exeext
23776 pgac_cv_libxml_structerrctx=yes
23778 $as_echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 pgac_cv_libxml_structerrctx=no
23784 rm -rf conftest.dSYM
23785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23786 conftest$ac_exeext conftest.$ac_ext
23788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23789 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23790 if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23800 # This test makes sure that run tests work at all. Sometimes a shared
23801 # library is found by the linker, but the runtime linker can't find it.
23802 # This check should come after all modifications of compiler or linker
23803 # variables, and before any other run tests.
23804 { $as_echo "$as_me:$LINENO: checking test program" >&5
23805 $as_echo_n "checking test program... " >&6; }
23806 if test "$cross_compiling" = yes; then
23807 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23808 $as_echo "cross-compiling" >&6; }
23810 cat >conftest.$ac_ext <<_ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23816 int main() { return 0; }
23818 rm -f conftest$ac_exeext
23819 if { (ac_try="$ac_link"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825 $as_echo "$ac_try_echo") >&5
23826 (eval "$ac_link") 2>&5
23828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23830 { (case "(($ac_try" in
23831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832 *) ac_try_echo=$ac_try;;
23834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23835 $as_echo "$ac_try_echo") >&5
23836 (eval "$ac_try") 2>&5
23838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); }; }; then
23840 { $as_echo "$as_me:$LINENO: result: ok" >&5
23841 $as_echo "ok" >&6; }
23843 $as_echo "$as_me: program exited with status $ac_status" >&5
23844 $as_echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23847 ( exit $ac_status )
23848 { $as_echo "$as_me:$LINENO: result: failed" >&5
23849 $as_echo "failed" >&6; }
23850 { { $as_echo "$as_me:$LINENO: error:
23851 Could not execute a simple test program. This may be a problem
23852 related to locating shared libraries. Check the file 'config.log'
23853 for the exact reason." >&5
23854 $as_echo "$as_me: error:
23855 Could not execute a simple test program. This may be a problem
23856 related to locating shared libraries. Check the file 'config.log'
23857 for the exact reason." >&2;}
23858 { (exit 1); exit 1; }; }
23860 rm -rf conftest.dSYM
23861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 # --------------------
23867 # Run tests below here
23868 # --------------------
23870 # Force use of our snprintf if system's doesn't do arg control
23871 # See comment above at snprintf test for details.
23872 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23873 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23874 $as_echo_n "checking whether printf supports argument control... " >&6; }
23875 if test "${pgac_cv_printf_arg_control+set}" = set; then
23876 $as_echo_n "(cached) " >&6
23878 if test "$cross_compiling" = yes; then
23879 pgac_cv_printf_arg_control=cross
23881 cat >conftest.$ac_ext <<_ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h. */
23888 #include <string.h>
23894 /* can it swap arguments? */
23895 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23896 if (strcmp(buf, "4 3") != 0)
23901 rm -f conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23908 $as_echo "$ac_try_echo") >&5
23909 (eval "$ac_link") 2>&5
23911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23913 { (case "(($ac_try" in
23914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23915 *) ac_try_echo=$ac_try;;
23917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23918 $as_echo "$ac_try_echo") >&5
23919 (eval "$ac_try") 2>&5
23921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; }; then
23923 pgac_cv_printf_arg_control=yes
23925 $as_echo "$as_me: program exited with status $ac_status" >&5
23926 $as_echo "$as_me: failed program was:" >&5
23927 sed 's/^/| /' conftest.$ac_ext >&5
23929 ( exit $ac_status )
23930 pgac_cv_printf_arg_control=no
23932 rm -rf conftest.dSYM
23933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23939 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23940 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23942 if test $pgac_cv_printf_arg_control != yes ; then
23943 pgac_need_repl_snprintf=yes
23950 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23951 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23952 if test "${pgac_cv_type_long_int_64+set}" = set; then
23953 $as_echo_n "(cached) " >&6
23955 if test "$cross_compiling" = yes; then
23956 # If cross-compiling, check the size reported by the compiler and
23957 # trust that the arithmetic works.
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23968 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23975 rm -f conftest.$ac_objext
23976 if { (ac_try="$ac_compile"
23977 case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23982 $as_echo "$ac_try_echo") >&5
23983 (eval "$ac_compile") 2>conftest.er1
23985 grep -v '^ *+' conftest.er1 >conftest.err
23987 cat conftest.err >&5
23988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } && {
23990 test -z "$ac_c_werror_flag" ||
23991 test ! -s conftest.err
23992 } && test -s conftest.$ac_objext; then
23993 pgac_cv_type_long_int_64=yes
23995 $as_echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23998 pgac_cv_type_long_int_64=no
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003 cat >conftest.$ac_ext <<_ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 typedef long int ac_int64;
24012 * These are globals to discourage the compiler from folding all the
24013 * arithmetic tests down to compile-time constants.
24015 ac_int64 a = 20000001;
24016 ac_int64 b = 40000005;
24018 int does_int64_work()
24022 if (sizeof(ac_int64) != 8)
24023 return 0; /* definitely not the right size */
24025 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24033 exit(! does_int64_work());
24036 rm -f conftest$ac_exeext
24037 if { (ac_try="$ac_link"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24043 $as_echo "$ac_try_echo") >&5
24044 (eval "$ac_link") 2>&5
24046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24048 { (case "(($ac_try" in
24049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050 *) ac_try_echo=$ac_try;;
24052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24053 $as_echo "$ac_try_echo") >&5
24054 (eval "$ac_try") 2>&5
24056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 pgac_cv_type_long_int_64=yes
24060 $as_echo "$as_me: program exited with status $ac_status" >&5
24061 $as_echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ( exit $ac_status )
24065 pgac_cv_type_long_int_64=no
24067 rm -rf conftest.dSYM
24068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24073 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24074 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24076 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24077 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24079 cat >>confdefs.h <<\_ACEOF
24080 #define HAVE_LONG_INT_64 1
24086 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24087 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24088 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24089 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24090 $as_echo_n "(cached) " >&6
24092 if test "$cross_compiling" = yes; then
24093 # If cross-compiling, check the size reported by the compiler and
24094 # trust that the arithmetic works.
24095 cat >conftest.$ac_ext <<_ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h. */
24105 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24119 $as_echo "$ac_try_echo") >&5
24120 (eval "$ac_compile") 2>conftest.er1
24122 grep -v '^ *+' conftest.er1 >conftest.err
24124 cat conftest.err >&5
24125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } && {
24127 test -z "$ac_c_werror_flag" ||
24128 test ! -s conftest.err
24129 } && test -s conftest.$ac_objext; then
24130 pgac_cv_type_long_long_int_64=yes
24132 $as_echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24135 pgac_cv_type_long_long_int_64=no
24138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140 cat >conftest.$ac_ext <<_ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24146 typedef long long int ac_int64;
24149 * These are globals to discourage the compiler from folding all the
24150 * arithmetic tests down to compile-time constants.
24152 ac_int64 a = 20000001;
24153 ac_int64 b = 40000005;
24155 int does_int64_work()
24159 if (sizeof(ac_int64) != 8)
24160 return 0; /* definitely not the right size */
24162 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24170 exit(! does_int64_work());
24173 rm -f conftest$ac_exeext
24174 if { (ac_try="$ac_link"
24175 case "(($ac_try" in
24176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177 *) ac_try_echo=$ac_try;;
24179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24180 $as_echo "$ac_try_echo") >&5
24181 (eval "$ac_link") 2>&5
24183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24185 { (case "(($ac_try" in
24186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24190 $as_echo "$ac_try_echo") >&5
24191 (eval "$ac_try") 2>&5
24193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; }; then
24195 pgac_cv_type_long_long_int_64=yes
24197 $as_echo "$as_me: program exited with status $ac_status" >&5
24198 $as_echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ( exit $ac_status )
24202 pgac_cv_type_long_long_int_64=no
24204 rm -rf conftest.dSYM
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24210 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24211 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24213 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24214 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24216 cat >>confdefs.h <<\_ACEOF
24217 #define HAVE_LONG_LONG_INT_64 1
24222 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24223 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24224 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24225 { (exit 1); exit 1; }; }
24231 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24232 cat >conftest.$ac_ext <<_ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24239 #define INT64CONST(x) x##LL
24240 long long int foo = INT64CONST(0x1234567890123456);
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24269 cat >>confdefs.h <<\_ACEOF
24270 #define HAVE_LL_CONSTANTS 1
24274 $as_echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284 # If we found "long int" is 64 bits, assume snprintf handles it. If
24285 # we found we need to use "long long int", better check. We cope with
24286 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24287 # work, fall back to our own snprintf emulation (which we know uses %lld).
24289 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24290 if test $pgac_need_repl_snprintf = no; then
24291 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24292 $as_echo_n "checking snprintf format for long long int... " >&6; }
24293 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24294 $as_echo_n "(cached) " >&6
24296 for pgac_format in '%lld' '%qd' '%I64d'; do
24297 if test "$cross_compiling" = yes; then
24298 pgac_cv_snprintf_long_long_int_format=cross; break
24300 cat >conftest.$ac_ext <<_ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24307 typedef long long int ac_int64;
24308 #define INT64_FORMAT "$pgac_format"
24310 ac_int64 a = 20000001;
24311 ac_int64 b = 40000005;
24313 int does_int64_snprintf_work()
24318 if (sizeof(ac_int64) != 8)
24319 return 0; /* doesn't look like the right size */
24322 snprintf(buf, 100, INT64_FORMAT, c);
24323 if (strcmp(buf, "800000140000005") != 0)
24324 return 0; /* either multiply or snprintf is busted */
24328 exit(! does_int64_snprintf_work());
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339 (eval "$ac_link") 2>&5
24341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343 { (case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349 (eval "$ac_try") 2>&5
24351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; }; then
24353 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24355 $as_echo "$as_me: program exited with status $ac_status" >&5
24356 $as_echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24360 rm -rf conftest.dSYM
24361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24368 LONG_LONG_INT_FORMAT=''
24370 case $pgac_cv_snprintf_long_long_int_format in
24371 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24372 $as_echo "cannot test (not on host machine)" >&6; };;
24373 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24374 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24375 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24376 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24377 $as_echo "none" >&6; };;
24379 if test "$LONG_LONG_INT_FORMAT" = ""; then
24380 # Force usage of our own snprintf, since system snprintf is broken
24381 pgac_need_repl_snprintf=yes
24382 LONG_LONG_INT_FORMAT='%lld'
24385 # Here if we previously decided we needed to use our own snprintf
24386 LONG_LONG_INT_FORMAT='%lld'
24388 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24389 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24390 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24392 # Here if we are not using 'long long int' at all
24393 INT64_FORMAT='"%ld"'
24394 UINT64_FORMAT='"%lu"'
24398 cat >>confdefs.h <<_ACEOF
24399 #define INT64_FORMAT $INT64_FORMAT
24404 cat >>confdefs.h <<_ACEOF
24405 #define UINT64_FORMAT $UINT64_FORMAT
24409 # Now we have checked all the reasons to replace snprintf
24410 if test $pgac_need_repl_snprintf = yes; then
24412 cat >>confdefs.h <<\_ACEOF
24413 #define USE_REPL_SNPRINTF 1
24416 case " $LIBOBJS " in
24417 *" snprintf.$ac_objext "* ) ;;
24418 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24424 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24425 # The cast to long int works around a bug in the HP C Compiler
24426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24428 # This bug is HP SR number 8606223364.
24429 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24430 $as_echo_n "checking size of void *... " >&6; }
24431 if test "${ac_cv_sizeof_void_p+set}" = set; then
24432 $as_echo_n "(cached) " >&6
24434 if test "$cross_compiling" = yes; then
24435 # Depending upon the size, compute the lo and hi bounds.
24436 cat >conftest.$ac_ext <<_ACEOF
24439 cat confdefs.h >>conftest.$ac_ext
24440 cat >>conftest.$ac_ext <<_ACEOF
24441 /* end confdefs.h. */
24442 $ac_includes_default
24446 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24453 rm -f conftest.$ac_objext
24454 if { (ac_try="$ac_compile"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24460 $as_echo "$ac_try_echo") >&5
24461 (eval "$ac_compile") 2>conftest.er1
24463 grep -v '^ *+' conftest.er1 >conftest.err
24465 cat conftest.err >&5
24466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest.$ac_objext; then
24473 cat >conftest.$ac_ext <<_ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 $ac_includes_default
24483 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24490 rm -f conftest.$ac_objext
24491 if { (ac_try="$ac_compile"
24492 case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24497 $as_echo "$ac_try_echo") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24500 grep -v '^ *+' conftest.er1 >conftest.err
24502 cat conftest.err >&5
24503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24508 ac_hi=$ac_mid; break
24510 $as_echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24513 ac_lo=`expr $ac_mid + 1`
24514 if test $ac_lo -le $ac_mid; then
24518 ac_mid=`expr 2 '*' $ac_mid + 1`
24521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24524 $as_echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24527 cat >conftest.$ac_ext <<_ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h. */
24533 $ac_includes_default
24537 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24544 rm -f conftest.$ac_objext
24545 if { (ac_try="$ac_compile"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24551 $as_echo "$ac_try_echo") >&5
24552 (eval "$ac_compile") 2>conftest.er1
24554 grep -v '^ *+' conftest.er1 >conftest.err
24556 cat conftest.err >&5
24557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest.$ac_objext; then
24564 cat >conftest.$ac_ext <<_ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h. */
24570 $ac_includes_default
24574 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24581 rm -f conftest.$ac_objext
24582 if { (ac_try="$ac_compile"
24583 case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24588 $as_echo "$ac_try_echo") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest.$ac_objext; then
24599 ac_lo=$ac_mid; break
24601 $as_echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24604 ac_hi=`expr '(' $ac_mid ')' - 1`
24605 if test $ac_mid -le $ac_hi; then
24609 ac_mid=`expr 2 '*' $ac_mid`
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615 $as_echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24625 # Binary search between lo and hi bounds.
24626 while test "x$ac_lo" != "x$ac_hi"; do
24627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24628 cat >conftest.$ac_ext <<_ACEOF
24631 cat confdefs.h >>conftest.$ac_ext
24632 cat >>conftest.$ac_ext <<_ACEOF
24633 /* end confdefs.h. */
24634 $ac_includes_default
24638 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24645 rm -f conftest.$ac_objext
24646 if { (ac_try="$ac_compile"
24647 case "(($ac_try" in
24648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649 *) ac_try_echo=$ac_try;;
24651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24652 $as_echo "$ac_try_echo") >&5
24653 (eval "$ac_compile") 2>conftest.er1
24655 grep -v '^ *+' conftest.er1 >conftest.err
24657 cat conftest.err >&5
24658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); } && {
24660 test -z "$ac_c_werror_flag" ||
24661 test ! -s conftest.err
24662 } && test -s conftest.$ac_objext; then
24665 $as_echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24668 ac_lo=`expr '(' $ac_mid ')' + 1`
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24674 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24675 '') if test "$ac_cv_type_void_p" = yes; then
24676 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24678 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24679 See \`config.log' for more details." >&5
24680 $as_echo "$as_me: error: cannot compute sizeof (void *)
24681 See \`config.log' for more details." >&2;}
24682 { (exit 77); exit 77; }; }; }
24684 ac_cv_sizeof_void_p=0
24688 cat >conftest.$ac_ext <<_ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 $ac_includes_default
24695 static long int longval () { return (long int) (sizeof (void *)); }
24696 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24698 #include <stdlib.h>
24703 FILE *f = fopen ("conftest.val", "w");
24706 if (((long int) (sizeof (void *))) < 0)
24708 long int i = longval ();
24709 if (i != ((long int) (sizeof (void *))))
24711 fprintf (f, "%ld", i);
24715 unsigned long int i = ulongval ();
24716 if (i != ((long int) (sizeof (void *))))
24718 fprintf (f, "%lu", i);
24720 /* Do not output a trailing newline, as this causes \r\n confusion
24721 on some platforms. */
24722 return ferror (f) || fclose (f) != 0;
24728 rm -f conftest$ac_exeext
24729 if { (ac_try="$ac_link"
24730 case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24735 $as_echo "$ac_try_echo") >&5
24736 (eval "$ac_link") 2>&5
24738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24740 { (case "(($ac_try" in
24741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24742 *) ac_try_echo=$ac_try;;
24744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24745 $as_echo "$ac_try_echo") >&5
24746 (eval "$ac_try") 2>&5
24748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 ac_cv_sizeof_void_p=`cat conftest.val`
24752 $as_echo "$as_me: program exited with status $ac_status" >&5
24753 $as_echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ( exit $ac_status )
24757 if test "$ac_cv_type_void_p" = yes; then
24758 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24760 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24761 See \`config.log' for more details." >&5
24762 $as_echo "$as_me: error: cannot compute sizeof (void *)
24763 See \`config.log' for more details." >&2;}
24764 { (exit 77); exit 77; }; }; }
24766 ac_cv_sizeof_void_p=0
24769 rm -rf conftest.dSYM
24770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24774 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24775 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24779 cat >>confdefs.h <<_ACEOF
24780 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24784 # The cast to long int works around a bug in the HP C Compiler
24785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24787 # This bug is HP SR number 8606223364.
24788 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24789 $as_echo_n "checking size of size_t... " >&6; }
24790 if test "${ac_cv_sizeof_size_t+set}" = set; then
24791 $as_echo_n "(cached) " >&6
24793 if test "$cross_compiling" = yes; then
24794 # Depending upon the size, compute the lo and hi bounds.
24795 cat >conftest.$ac_ext <<_ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h. */
24801 $ac_includes_default
24805 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24819 $as_echo "$ac_try_echo") >&5
24820 (eval "$ac_compile") 2>conftest.er1
24822 grep -v '^ *+' conftest.er1 >conftest.err
24824 cat conftest.err >&5
24825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } && {
24827 test -z "$ac_c_werror_flag" ||
24828 test ! -s conftest.err
24829 } && test -s conftest.$ac_objext; then
24832 cat >conftest.$ac_ext <<_ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h. */
24838 $ac_includes_default
24842 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24849 rm -f conftest.$ac_objext
24850 if { (ac_try="$ac_compile"
24851 case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24856 $as_echo "$ac_try_echo") >&5
24857 (eval "$ac_compile") 2>conftest.er1
24859 grep -v '^ *+' conftest.er1 >conftest.err
24861 cat conftest.err >&5
24862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); } && {
24864 test -z "$ac_c_werror_flag" ||
24865 test ! -s conftest.err
24866 } && test -s conftest.$ac_objext; then
24867 ac_hi=$ac_mid; break
24869 $as_echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24872 ac_lo=`expr $ac_mid + 1`
24873 if test $ac_lo -le $ac_mid; then
24877 ac_mid=`expr 2 '*' $ac_mid + 1`
24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24883 $as_echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 $ac_includes_default
24896 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24903 rm -f conftest.$ac_objext
24904 if { (ac_try="$ac_compile"
24905 case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24910 $as_echo "$ac_try_echo") >&5
24911 (eval "$ac_compile") 2>conftest.er1
24913 grep -v '^ *+' conftest.er1 >conftest.err
24915 cat conftest.err >&5
24916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); } && {
24918 test -z "$ac_c_werror_flag" ||
24919 test ! -s conftest.err
24920 } && test -s conftest.$ac_objext; then
24923 cat >conftest.$ac_ext <<_ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h. */
24929 $ac_includes_default
24933 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24940 rm -f conftest.$ac_objext
24941 if { (ac_try="$ac_compile"
24942 case "(($ac_try" in
24943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24944 *) ac_try_echo=$ac_try;;
24946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24947 $as_echo "$ac_try_echo") >&5
24948 (eval "$ac_compile") 2>conftest.er1
24950 grep -v '^ *+' conftest.er1 >conftest.err
24952 cat conftest.err >&5
24953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } && {
24955 test -z "$ac_c_werror_flag" ||
24956 test ! -s conftest.err
24957 } && test -s conftest.$ac_objext; then
24958 ac_lo=$ac_mid; break
24960 $as_echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24963 ac_hi=`expr '(' $ac_mid ')' - 1`
24964 if test $ac_mid -le $ac_hi; then
24968 ac_mid=`expr 2 '*' $ac_mid`
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 $as_echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24984 # Binary search between lo and hi bounds.
24985 while test "x$ac_lo" != "x$ac_hi"; do
24986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 $ac_includes_default
24997 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25004 rm -f conftest.$ac_objext
25005 if { (ac_try="$ac_compile"
25006 case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25014 grep -v '^ *+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } && {
25019 test -z "$ac_c_werror_flag" ||
25020 test ! -s conftest.err
25021 } && test -s conftest.$ac_objext; then
25024 $as_echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25027 ac_lo=`expr '(' $ac_mid ')' + 1`
25030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25034 '') if test "$ac_cv_type_size_t" = yes; then
25035 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25037 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25038 See \`config.log' for more details." >&5
25039 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25040 See \`config.log' for more details." >&2;}
25041 { (exit 77); exit 77; }; }; }
25043 ac_cv_sizeof_size_t=0
25047 cat >conftest.$ac_ext <<_ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h. */
25053 $ac_includes_default
25054 static long int longval () { return (long int) (sizeof (size_t)); }
25055 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25057 #include <stdlib.h>
25062 FILE *f = fopen ("conftest.val", "w");
25065 if (((long int) (sizeof (size_t))) < 0)
25067 long int i = longval ();
25068 if (i != ((long int) (sizeof (size_t))))
25070 fprintf (f, "%ld", i);
25074 unsigned long int i = ulongval ();
25075 if (i != ((long int) (sizeof (size_t))))
25077 fprintf (f, "%lu", i);
25079 /* Do not output a trailing newline, as this causes \r\n confusion
25080 on some platforms. */
25081 return ferror (f) || fclose (f) != 0;
25087 rm -f conftest$ac_exeext
25088 if { (ac_try="$ac_link"
25089 case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25094 $as_echo "$ac_try_echo") >&5
25095 (eval "$ac_link") 2>&5
25097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25099 { (case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25104 $as_echo "$ac_try_echo") >&5
25105 (eval "$ac_try") 2>&5
25107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; }; then
25109 ac_cv_sizeof_size_t=`cat conftest.val`
25111 $as_echo "$as_me: program exited with status $ac_status" >&5
25112 $as_echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25115 ( exit $ac_status )
25116 if test "$ac_cv_type_size_t" = yes; then
25117 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25119 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25120 See \`config.log' for more details." >&5
25121 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25122 See \`config.log' for more details." >&2;}
25123 { (exit 77); exit 77; }; }; }
25125 ac_cv_sizeof_size_t=0
25128 rm -rf conftest.dSYM
25129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25133 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25134 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25138 cat >>confdefs.h <<_ACEOF
25139 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25143 # The cast to long int works around a bug in the HP C Compiler
25144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25146 # This bug is HP SR number 8606223364.
25147 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25148 $as_echo_n "checking size of long... " >&6; }
25149 if test "${ac_cv_sizeof_long+set}" = set; then
25150 $as_echo_n "(cached) " >&6
25152 if test "$cross_compiling" = yes; then
25153 # Depending upon the size, compute the lo and hi bounds.
25154 cat >conftest.$ac_ext <<_ACEOF
25157 cat confdefs.h >>conftest.$ac_ext
25158 cat >>conftest.$ac_ext <<_ACEOF
25159 /* end confdefs.h. */
25160 $ac_includes_default
25164 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179 (eval "$ac_compile") 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } && {
25186 test -z "$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25188 } && test -s conftest.$ac_objext; then
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 $ac_includes_default
25201 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25215 $as_echo "$ac_try_echo") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25218 grep -v '^ *+' conftest.er1 >conftest.err
25220 cat conftest.err >&5
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.$ac_objext; then
25226 ac_hi=$ac_mid; break
25228 $as_echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 ac_lo=`expr $ac_mid + 1`
25232 if test $ac_lo -le $ac_mid; then
25236 ac_mid=`expr 2 '*' $ac_mid + 1`
25239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 $as_echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25245 cat >conftest.$ac_ext <<_ACEOF
25248 cat confdefs.h >>conftest.$ac_ext
25249 cat >>conftest.$ac_ext <<_ACEOF
25250 /* end confdefs.h. */
25251 $ac_includes_default
25255 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25269 $as_echo "$ac_try_echo") >&5
25270 (eval "$ac_compile") 2>conftest.er1
25272 grep -v '^ *+' conftest.er1 >conftest.err
25274 cat conftest.err >&5
25275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } && {
25277 test -z "$ac_c_werror_flag" ||
25278 test ! -s conftest.err
25279 } && test -s conftest.$ac_objext; then
25282 cat >conftest.$ac_ext <<_ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */
25288 $ac_includes_default
25292 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303 *) ac_try_echo=$ac_try;;
25305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25306 $as_echo "$ac_try_echo") >&5
25307 (eval "$ac_compile") 2>conftest.er1
25309 grep -v '^ *+' conftest.er1 >conftest.err
25311 cat conftest.err >&5
25312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); } && {
25314 test -z "$ac_c_werror_flag" ||
25315 test ! -s conftest.err
25316 } && test -s conftest.$ac_objext; then
25317 ac_lo=$ac_mid; break
25319 $as_echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25322 ac_hi=`expr '(' $ac_mid ')' - 1`
25323 if test $ac_mid -le $ac_hi; then
25327 ac_mid=`expr 2 '*' $ac_mid`
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 $as_echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25343 # Binary search between lo and hi bounds.
25344 while test "x$ac_lo" != "x$ac_hi"; do
25345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25346 cat >conftest.$ac_ext <<_ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25352 $ac_includes_default
25356 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25363 rm -f conftest.$ac_objext
25364 if { (ac_try="$ac_compile"
25365 case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25370 $as_echo "$ac_try_echo") >&5
25371 (eval "$ac_compile") 2>conftest.er1
25373 grep -v '^ *+' conftest.er1 >conftest.err
25375 cat conftest.err >&5
25376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } && {
25378 test -z "$ac_c_werror_flag" ||
25379 test ! -s conftest.err
25380 } && test -s conftest.$ac_objext; then
25383 $as_echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.$ac_ext >&5
25386 ac_lo=`expr '(' $ac_mid ')' + 1`
25389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392 ?*) ac_cv_sizeof_long=$ac_lo;;
25393 '') if test "$ac_cv_type_long" = yes; then
25394 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25396 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25397 See \`config.log' for more details." >&5
25398 $as_echo "$as_me: error: cannot compute sizeof (long)
25399 See \`config.log' for more details." >&2;}
25400 { (exit 77); exit 77; }; }; }
25402 ac_cv_sizeof_long=0
25406 cat >conftest.$ac_ext <<_ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25412 $ac_includes_default
25413 static long int longval () { return (long int) (sizeof (long)); }
25414 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25416 #include <stdlib.h>
25421 FILE *f = fopen ("conftest.val", "w");
25424 if (((long int) (sizeof (long))) < 0)
25426 long int i = longval ();
25427 if (i != ((long int) (sizeof (long))))
25429 fprintf (f, "%ld", i);
25433 unsigned long int i = ulongval ();
25434 if (i != ((long int) (sizeof (long))))
25436 fprintf (f, "%lu", i);
25438 /* Do not output a trailing newline, as this causes \r\n confusion
25439 on some platforms. */
25440 return ferror (f) || fclose (f) != 0;
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25453 $as_echo "$ac_try_echo") >&5
25454 (eval "$ac_link") 2>&5
25456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25458 { (case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25463 $as_echo "$ac_try_echo") >&5
25464 (eval "$ac_try") 2>&5
25466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 ac_cv_sizeof_long=`cat conftest.val`
25470 $as_echo "$as_me: program exited with status $ac_status" >&5
25471 $as_echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 ( exit $ac_status )
25475 if test "$ac_cv_type_long" = yes; then
25476 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25478 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25479 See \`config.log' for more details." >&5
25480 $as_echo "$as_me: error: cannot compute sizeof (long)
25481 See \`config.log' for more details." >&2;}
25482 { (exit 77); exit 77; }; }; }
25484 ac_cv_sizeof_long=0
25487 rm -rf conftest.dSYM
25488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25492 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25493 $as_echo "$ac_cv_sizeof_long" >&6; }
25497 cat >>confdefs.h <<_ACEOF
25498 #define SIZEOF_LONG $ac_cv_sizeof_long
25503 # Decide whether float4 is passed by value: user-selectable, enabled by default
25504 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25505 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25508 # Check whether --enable-float4-byval was given.
25509 if test "${enable_float4_byval+set}" = set; then
25510 enableval=$enable_float4_byval;
25514 cat >>confdefs.h <<\_ACEOF
25515 #define USE_FLOAT4_BYVAL 1
25518 float4passbyval=true
25521 float4passbyval=false
25524 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25525 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25526 { (exit 1); exit 1; }; }
25531 enable_float4_byval=yes
25533 cat >>confdefs.h <<\_ACEOF
25534 #define USE_FLOAT4_BYVAL 1
25537 float4passbyval=true
25541 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25542 $as_echo "$enable_float4_byval" >&6; }
25544 cat >>confdefs.h <<_ACEOF
25545 #define FLOAT4PASSBYVAL $float4passbyval
25549 # Decide whether float8 is passed by value.
25550 # Note: this setting also controls int8 and related types such as timestamp.
25551 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25552 # If not, trying to select it is an error.
25553 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25554 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25555 if test $ac_cv_sizeof_void_p -ge 8 ; then
25558 # Check whether --enable-float8-byval was given.
25559 if test "${enable_float8_byval+set}" = set; then
25560 enableval=$enable_float8_byval;
25569 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25570 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25571 { (exit 1); exit 1; }; }
25576 enable_float8_byval=yes
25584 # Check whether --enable-float8-byval was given.
25585 if test "${enable_float8_byval+set}" = set; then
25586 enableval=$enable_float8_byval;
25595 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25596 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25597 { (exit 1); exit 1; }; }
25602 enable_float8_byval=no
25607 if test "$enable_float8_byval" = yes ; then
25608 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25609 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25610 { (exit 1); exit 1; }; }
25613 if test "$enable_float8_byval" = yes ; then
25615 cat >>confdefs.h <<\_ACEOF
25616 #define USE_FLOAT8_BYVAL 1
25619 float8passbyval=true
25621 float8passbyval=false
25623 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25624 $as_echo "$enable_float8_byval" >&6; }
25626 cat >>confdefs.h <<_ACEOF
25627 #define FLOAT8PASSBYVAL $float8passbyval
25631 # Determine memory alignment requirements for the basic C data types.
25633 # The cast to long int works around a bug in the HP C Compiler,
25634 # see AC_CHECK_SIZEOF for more information.
25635 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25636 $as_echo_n "checking alignment of short... " >&6; }
25637 if test "${ac_cv_alignof_short+set}" = set; then
25638 $as_echo_n "(cached) " >&6
25640 if test "$cross_compiling" = yes; then
25641 # Depending upon the size, compute the lo and hi bounds.
25642 cat >conftest.$ac_ext <<_ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h. */
25648 $ac_includes_default
25650 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25652 typedef struct { char x; short y; } ac__type_alignof_;
25656 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25663 rm -f conftest.$ac_objext
25664 if { (ac_try="$ac_compile"
25665 case "(($ac_try" in
25666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667 *) ac_try_echo=$ac_try;;
25669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25670 $as_echo "$ac_try_echo") >&5
25671 (eval "$ac_compile") 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } && {
25678 test -z "$ac_c_werror_flag" ||
25679 test ! -s conftest.err
25680 } && test -s conftest.$ac_objext; then
25683 cat >conftest.$ac_ext <<_ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 $ac_includes_default
25691 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25693 typedef struct { char x; short y; } ac__type_alignof_;
25697 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25704 rm -f conftest.$ac_objext
25705 if { (ac_try="$ac_compile"
25706 case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25711 $as_echo "$ac_try_echo") >&5
25712 (eval "$ac_compile") 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_c_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest.$ac_objext; then
25722 ac_hi=$ac_mid; break
25724 $as_echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 ac_lo=`expr $ac_mid + 1`
25728 if test $ac_lo -le $ac_mid; then
25732 ac_mid=`expr 2 '*' $ac_mid + 1`
25735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 $as_echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 $ac_includes_default
25749 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25751 typedef struct { char x; short y; } ac__type_alignof_;
25755 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25762 rm -f conftest.$ac_objext
25763 if { (ac_try="$ac_compile"
25764 case "(($ac_try" in
25765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766 *) ac_try_echo=$ac_try;;
25768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25769 $as_echo "$ac_try_echo") >&5
25770 (eval "$ac_compile") 2>conftest.er1
25772 grep -v '^ *+' conftest.er1 >conftest.err
25774 cat conftest.err >&5
25775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } && {
25777 test -z "$ac_c_werror_flag" ||
25778 test ! -s conftest.err
25779 } && test -s conftest.$ac_objext; then
25782 cat >conftest.$ac_ext <<_ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h. */
25788 $ac_includes_default
25790 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25792 typedef struct { char x; short y; } ac__type_alignof_;
25796 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25803 rm -f conftest.$ac_objext
25804 if { (ac_try="$ac_compile"
25805 case "(($ac_try" in
25806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807 *) ac_try_echo=$ac_try;;
25809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25810 $as_echo "$ac_try_echo") >&5
25811 (eval "$ac_compile") 2>conftest.er1
25813 grep -v '^ *+' conftest.er1 >conftest.err
25815 cat conftest.err >&5
25816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); } && {
25818 test -z "$ac_c_werror_flag" ||
25819 test ! -s conftest.err
25820 } && test -s conftest.$ac_objext; then
25821 ac_lo=$ac_mid; break
25823 $as_echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25826 ac_hi=`expr '(' $ac_mid ')' - 1`
25827 if test $ac_mid -le $ac_hi; then
25831 ac_mid=`expr 2 '*' $ac_mid`
25834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25837 $as_echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847 # Binary search between lo and hi bounds.
25848 while test "x$ac_lo" != "x$ac_hi"; do
25849 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25850 cat >conftest.$ac_ext <<_ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h. */
25856 $ac_includes_default
25858 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25860 typedef struct { char x; short y; } ac__type_alignof_;
25864 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25871 rm -f conftest.$ac_objext
25872 if { (ac_try="$ac_compile"
25873 case "(($ac_try" in
25874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875 *) ac_try_echo=$ac_try;;
25877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25878 $as_echo "$ac_try_echo") >&5
25879 (eval "$ac_compile") 2>conftest.er1
25881 grep -v '^ *+' conftest.er1 >conftest.err
25883 cat conftest.err >&5
25884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); } && {
25886 test -z "$ac_c_werror_flag" ||
25887 test ! -s conftest.err
25888 } && test -s conftest.$ac_objext; then
25891 $as_echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 ac_lo=`expr '(' $ac_mid ')' + 1`
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25900 ?*) ac_cv_alignof_short=$ac_lo;;
25901 '') if test "$ac_cv_type_short" = yes; then
25902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25904 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25905 See \`config.log' for more details." >&5
25906 $as_echo "$as_me: error: cannot compute alignment of short
25907 See \`config.log' for more details." >&2;}
25908 { (exit 77); exit 77; }; }; }
25910 ac_cv_alignof_short=0
25914 cat >conftest.$ac_ext <<_ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 $ac_includes_default
25922 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25924 typedef struct { char x; short y; } ac__type_alignof_;
25925 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25926 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25928 #include <stdlib.h>
25933 FILE *f = fopen ("conftest.val", "w");
25936 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25938 long int i = longval ();
25939 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25941 fprintf (f, "%ld", i);
25945 unsigned long int i = ulongval ();
25946 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25948 fprintf (f, "%lu", i);
25950 /* Do not output a trailing newline, as this causes \r\n confusion
25951 on some platforms. */
25952 return ferror (f) || fclose (f) != 0;
25958 rm -f conftest$ac_exeext
25959 if { (ac_try="$ac_link"
25960 case "(($ac_try" in
25961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25965 $as_echo "$ac_try_echo") >&5
25966 (eval "$ac_link") 2>&5
25968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25970 { (case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25975 $as_echo "$ac_try_echo") >&5
25976 (eval "$ac_try") 2>&5
25978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); }; }; then
25980 ac_cv_alignof_short=`cat conftest.val`
25982 $as_echo "$as_me: program exited with status $ac_status" >&5
25983 $as_echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 ( exit $ac_status )
25987 if test "$ac_cv_type_short" = yes; then
25988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25990 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25991 See \`config.log' for more details." >&5
25992 $as_echo "$as_me: error: cannot compute alignment of short
25993 See \`config.log' for more details." >&2;}
25994 { (exit 77); exit 77; }; }; }
25996 ac_cv_alignof_short=0
25999 rm -rf conftest.dSYM
26000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26004 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26005 $as_echo "$ac_cv_alignof_short" >&6; }
26009 cat >>confdefs.h <<_ACEOF
26010 #define ALIGNOF_SHORT $ac_cv_alignof_short
26014 # The cast to long int works around a bug in the HP C Compiler,
26015 # see AC_CHECK_SIZEOF for more information.
26016 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26017 $as_echo_n "checking alignment of int... " >&6; }
26018 if test "${ac_cv_alignof_int+set}" = set; then
26019 $as_echo_n "(cached) " >&6
26021 if test "$cross_compiling" = yes; then
26022 # Depending upon the size, compute the lo and hi bounds.
26023 cat >conftest.$ac_ext <<_ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 $ac_includes_default
26031 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26033 typedef struct { char x; int y; } ac__type_alignof_;
26037 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26044 rm -f conftest.$ac_objext
26045 if { (ac_try="$ac_compile"
26046 case "(($ac_try" in
26047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048 *) ac_try_echo=$ac_try;;
26050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26051 $as_echo "$ac_try_echo") >&5
26052 (eval "$ac_compile") 2>conftest.er1
26054 grep -v '^ *+' conftest.er1 >conftest.err
26056 cat conftest.err >&5
26057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } && {
26059 test -z "$ac_c_werror_flag" ||
26060 test ! -s conftest.err
26061 } && test -s conftest.$ac_objext; then
26064 cat >conftest.$ac_ext <<_ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h. */
26070 $ac_includes_default
26072 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26074 typedef struct { char x; int y; } ac__type_alignof_;
26078 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26085 rm -f conftest.$ac_objext
26086 if { (ac_try="$ac_compile"
26087 case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26092 $as_echo "$ac_try_echo") >&5
26093 (eval "$ac_compile") 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && {
26100 test -z "$ac_c_werror_flag" ||
26101 test ! -s conftest.err
26102 } && test -s conftest.$ac_objext; then
26103 ac_hi=$ac_mid; break
26105 $as_echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 ac_lo=`expr $ac_mid + 1`
26109 if test $ac_lo -le $ac_mid; then
26113 ac_mid=`expr 2 '*' $ac_mid + 1`
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26119 $as_echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26122 cat >conftest.$ac_ext <<_ACEOF
26125 cat confdefs.h >>conftest.$ac_ext
26126 cat >>conftest.$ac_ext <<_ACEOF
26127 /* end confdefs.h. */
26128 $ac_includes_default
26130 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26132 typedef struct { char x; int y; } ac__type_alignof_;
26136 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26143 rm -f conftest.$ac_objext
26144 if { (ac_try="$ac_compile"
26145 case "(($ac_try" in
26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147 *) ac_try_echo=$ac_try;;
26149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26150 $as_echo "$ac_try_echo") >&5
26151 (eval "$ac_compile") 2>conftest.er1
26153 grep -v '^ *+' conftest.er1 >conftest.err
26155 cat conftest.err >&5
26156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } && {
26158 test -z "$ac_c_werror_flag" ||
26159 test ! -s conftest.err
26160 } && test -s conftest.$ac_objext; then
26163 cat >conftest.$ac_ext <<_ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h. */
26169 $ac_includes_default
26171 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26173 typedef struct { char x; int y; } ac__type_alignof_;
26177 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26184 rm -f conftest.$ac_objext
26185 if { (ac_try="$ac_compile"
26186 case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26191 $as_echo "$ac_try_echo") >&5
26192 (eval "$ac_compile") 2>conftest.er1
26194 grep -v '^ *+' conftest.er1 >conftest.err
26196 cat conftest.err >&5
26197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } && {
26199 test -z "$ac_c_werror_flag" ||
26200 test ! -s conftest.err
26201 } && test -s conftest.$ac_objext; then
26202 ac_lo=$ac_mid; break
26204 $as_echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26207 ac_hi=`expr '(' $ac_mid ')' - 1`
26208 if test $ac_mid -le $ac_hi; then
26212 ac_mid=`expr 2 '*' $ac_mid`
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 $as_echo "$as_me: failed program was:" >&5
26219 sed 's/^/| /' conftest.$ac_ext >&5
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 # Binary search between lo and hi bounds.
26229 while test "x$ac_lo" != "x$ac_hi"; do
26230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26231 cat >conftest.$ac_ext <<_ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26237 $ac_includes_default
26239 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26241 typedef struct { char x; int y; } ac__type_alignof_;
26245 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26252 rm -f conftest.$ac_objext
26253 if { (ac_try="$ac_compile"
26254 case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26259 $as_echo "$ac_try_echo") >&5
26260 (eval "$ac_compile") 2>conftest.er1
26262 grep -v '^ *+' conftest.er1 >conftest.err
26264 cat conftest.err >&5
26265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); } && {
26267 test -z "$ac_c_werror_flag" ||
26268 test ! -s conftest.err
26269 } && test -s conftest.$ac_objext; then
26272 $as_echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_lo=`expr '(' $ac_mid ')' + 1`
26278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26281 ?*) ac_cv_alignof_int=$ac_lo;;
26282 '') if test "$ac_cv_type_int" = yes; then
26283 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26285 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26286 See \`config.log' for more details." >&5
26287 $as_echo "$as_me: error: cannot compute alignment of int
26288 See \`config.log' for more details." >&2;}
26289 { (exit 77); exit 77; }; }; }
26291 ac_cv_alignof_int=0
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26301 $ac_includes_default
26303 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26305 typedef struct { char x; int y; } ac__type_alignof_;
26306 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26307 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26309 #include <stdlib.h>
26314 FILE *f = fopen ("conftest.val", "w");
26317 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26319 long int i = longval ();
26320 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26322 fprintf (f, "%ld", i);
26326 unsigned long int i = ulongval ();
26327 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26329 fprintf (f, "%lu", i);
26331 /* Do not output a trailing newline, as this causes \r\n confusion
26332 on some platforms. */
26333 return ferror (f) || fclose (f) != 0;
26339 rm -f conftest$ac_exeext
26340 if { (ac_try="$ac_link"
26341 case "(($ac_try" in
26342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26343 *) ac_try_echo=$ac_try;;
26345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26346 $as_echo "$ac_try_echo") >&5
26347 (eval "$ac_link") 2>&5
26349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26351 { (case "(($ac_try" in
26352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353 *) ac_try_echo=$ac_try;;
26355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26356 $as_echo "$ac_try_echo") >&5
26357 (eval "$ac_try") 2>&5
26359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; }; then
26361 ac_cv_alignof_int=`cat conftest.val`
26363 $as_echo "$as_me: program exited with status $ac_status" >&5
26364 $as_echo "$as_me: failed program was:" >&5
26365 sed 's/^/| /' conftest.$ac_ext >&5
26367 ( exit $ac_status )
26368 if test "$ac_cv_type_int" = yes; then
26369 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26371 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26372 See \`config.log' for more details." >&5
26373 $as_echo "$as_me: error: cannot compute alignment of int
26374 See \`config.log' for more details." >&2;}
26375 { (exit 77); exit 77; }; }; }
26377 ac_cv_alignof_int=0
26380 rm -rf conftest.dSYM
26381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26385 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26386 $as_echo "$ac_cv_alignof_int" >&6; }
26390 cat >>confdefs.h <<_ACEOF
26391 #define ALIGNOF_INT $ac_cv_alignof_int
26395 # The cast to long int works around a bug in the HP C Compiler,
26396 # see AC_CHECK_SIZEOF for more information.
26397 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26398 $as_echo_n "checking alignment of long... " >&6; }
26399 if test "${ac_cv_alignof_long+set}" = set; then
26400 $as_echo_n "(cached) " >&6
26402 if test "$cross_compiling" = yes; then
26403 # Depending upon the size, compute the lo and hi bounds.
26404 cat >conftest.$ac_ext <<_ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h. */
26410 $ac_includes_default
26412 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26414 typedef struct { char x; long y; } ac__type_alignof_;
26418 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26425 rm -f conftest.$ac_objext
26426 if { (ac_try="$ac_compile"
26427 case "(($ac_try" in
26428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429 *) ac_try_echo=$ac_try;;
26431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26432 $as_echo "$ac_try_echo") >&5
26433 (eval "$ac_compile") 2>conftest.er1
26435 grep -v '^ *+' conftest.er1 >conftest.err
26437 cat conftest.err >&5
26438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); } && {
26440 test -z "$ac_c_werror_flag" ||
26441 test ! -s conftest.err
26442 } && test -s conftest.$ac_objext; then
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 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
26484 ac_hi=$ac_mid; break
26486 $as_echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26489 ac_lo=`expr $ac_mid + 1`
26490 if test $ac_lo -le $ac_mid; then
26494 ac_mid=`expr 2 '*' $ac_mid + 1`
26497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500 $as_echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26503 cat >conftest.$ac_ext <<_ACEOF
26506 cat confdefs.h >>conftest.$ac_ext
26507 cat >>conftest.$ac_ext <<_ACEOF
26508 /* end confdefs.h. */
26509 $ac_includes_default
26511 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26513 typedef struct { char x; long y; } ac__type_alignof_;
26517 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26524 rm -f conftest.$ac_objext
26525 if { (ac_try="$ac_compile"
26526 case "(($ac_try" in
26527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26528 *) ac_try_echo=$ac_try;;
26530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26531 $as_echo "$ac_try_echo") >&5
26532 (eval "$ac_compile") 2>conftest.er1
26534 grep -v '^ *+' conftest.er1 >conftest.err
26536 cat conftest.err >&5
26537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } && {
26539 test -z "$ac_c_werror_flag" ||
26540 test ! -s conftest.err
26541 } && test -s conftest.$ac_objext; then
26544 cat >conftest.$ac_ext <<_ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26550 $ac_includes_default
26552 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26554 typedef struct { char x; long y; } ac__type_alignof_;
26558 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26565 rm -f conftest.$ac_objext
26566 if { (ac_try="$ac_compile"
26567 case "(($ac_try" in
26568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569 *) ac_try_echo=$ac_try;;
26571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26572 $as_echo "$ac_try_echo") >&5
26573 (eval "$ac_compile") 2>conftest.er1
26575 grep -v '^ *+' conftest.er1 >conftest.err
26577 cat conftest.err >&5
26578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); } && {
26580 test -z "$ac_c_werror_flag" ||
26581 test ! -s conftest.err
26582 } && test -s conftest.$ac_objext; then
26583 ac_lo=$ac_mid; break
26585 $as_echo "$as_me: failed program was:" >&5
26586 sed 's/^/| /' conftest.$ac_ext >&5
26588 ac_hi=`expr '(' $ac_mid ')' - 1`
26589 if test $ac_mid -le $ac_hi; then
26593 ac_mid=`expr 2 '*' $ac_mid`
26596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599 $as_echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.$ac_ext >&5
26605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609 # Binary search between lo and hi bounds.
26610 while test "x$ac_lo" != "x$ac_hi"; do
26611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26612 cat >conftest.$ac_ext <<_ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h. */
26618 $ac_includes_default
26620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26622 typedef struct { char x; long y; } ac__type_alignof_;
26626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637 *) ac_try_echo=$ac_try;;
26639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26640 $as_echo "$ac_try_echo") >&5
26641 (eval "$ac_compile") 2>conftest.er1
26643 grep -v '^ *+' conftest.er1 >conftest.err
26645 cat conftest.err >&5
26646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } && {
26648 test -z "$ac_c_werror_flag" ||
26649 test ! -s conftest.err
26650 } && test -s conftest.$ac_objext; then
26653 $as_echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26656 ac_lo=`expr '(' $ac_mid ')' + 1`
26659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26662 ?*) ac_cv_alignof_long=$ac_lo;;
26663 '') if test "$ac_cv_type_long" = yes; then
26664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26666 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26667 See \`config.log' for more details." >&5
26668 $as_echo "$as_me: error: cannot compute alignment of long
26669 See \`config.log' for more details." >&2;}
26670 { (exit 77); exit 77; }; }; }
26672 ac_cv_alignof_long=0
26676 cat >conftest.$ac_ext <<_ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26682 $ac_includes_default
26684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26686 typedef struct { char x; long y; } ac__type_alignof_;
26687 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26688 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26690 #include <stdlib.h>
26695 FILE *f = fopen ("conftest.val", "w");
26698 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26700 long int i = longval ();
26701 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26703 fprintf (f, "%ld", i);
26707 unsigned long int i = ulongval ();
26708 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26710 fprintf (f, "%lu", i);
26712 /* Do not output a trailing newline, as this causes \r\n confusion
26713 on some platforms. */
26714 return ferror (f) || fclose (f) != 0;
26720 rm -f conftest$ac_exeext
26721 if { (ac_try="$ac_link"
26722 case "(($ac_try" in
26723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724 *) ac_try_echo=$ac_try;;
26726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26727 $as_echo "$ac_try_echo") >&5
26728 (eval "$ac_link") 2>&5
26730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26732 { (case "(($ac_try" in
26733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734 *) ac_try_echo=$ac_try;;
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738 (eval "$ac_try") 2>&5
26740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); }; }; then
26742 ac_cv_alignof_long=`cat conftest.val`
26744 $as_echo "$as_me: program exited with status $ac_status" >&5
26745 $as_echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26748 ( exit $ac_status )
26749 if test "$ac_cv_type_long" = yes; then
26750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26752 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26753 See \`config.log' for more details." >&5
26754 $as_echo "$as_me: error: cannot compute alignment of long
26755 See \`config.log' for more details." >&2;}
26756 { (exit 77); exit 77; }; }; }
26758 ac_cv_alignof_long=0
26761 rm -rf conftest.dSYM
26762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26766 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26767 $as_echo "$ac_cv_alignof_long" >&6; }
26771 cat >>confdefs.h <<_ACEOF
26772 #define ALIGNOF_LONG $ac_cv_alignof_long
26776 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26777 # The cast to long int works around a bug in the HP C Compiler,
26778 # see AC_CHECK_SIZEOF for more information.
26779 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26780 $as_echo_n "checking alignment of long long int... " >&6; }
26781 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26782 $as_echo_n "(cached) " >&6
26784 if test "$cross_compiling" = yes; then
26785 # Depending upon the size, compute the lo and hi bounds.
26786 cat >conftest.$ac_ext <<_ACEOF
26789 cat confdefs.h >>conftest.$ac_ext
26790 cat >>conftest.$ac_ext <<_ACEOF
26791 /* end confdefs.h. */
26792 $ac_includes_default
26794 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26796 typedef struct { char x; long long int y; } ac__type_alignof_;
26800 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26807 rm -f conftest.$ac_objext
26808 if { (ac_try="$ac_compile"
26809 case "(($ac_try" in
26810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26811 *) ac_try_echo=$ac_try;;
26813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26814 $as_echo "$ac_try_echo") >&5
26815 (eval "$ac_compile") 2>conftest.er1
26817 grep -v '^ *+' conftest.er1 >conftest.err
26819 cat conftest.err >&5
26820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } && {
26822 test -z "$ac_c_werror_flag" ||
26823 test ! -s conftest.err
26824 } && test -s conftest.$ac_objext; then
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; long long int 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
26866 ac_hi=$ac_mid; break
26868 $as_echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 ac_lo=`expr $ac_mid + 1`
26872 if test $ac_lo -le $ac_mid; then
26876 ac_mid=`expr 2 '*' $ac_mid + 1`
26879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26882 $as_echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26885 cat >conftest.$ac_ext <<_ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 $ac_includes_default
26893 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26895 typedef struct { char x; long long int y; } ac__type_alignof_;
26899 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26906 rm -f conftest.$ac_objext
26907 if { (ac_try="$ac_compile"
26908 case "(($ac_try" in
26909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910 *) ac_try_echo=$ac_try;;
26912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26913 $as_echo "$ac_try_echo") >&5
26914 (eval "$ac_compile") 2>conftest.er1
26916 grep -v '^ *+' conftest.er1 >conftest.err
26918 cat conftest.err >&5
26919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); } && {
26921 test -z "$ac_c_werror_flag" ||
26922 test ! -s conftest.err
26923 } && test -s conftest.$ac_objext; then
26926 cat >conftest.$ac_ext <<_ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h. */
26932 $ac_includes_default
26934 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26936 typedef struct { char x; long long int y; } ac__type_alignof_;
26940 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26947 rm -f conftest.$ac_objext
26948 if { (ac_try="$ac_compile"
26949 case "(($ac_try" in
26950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951 *) ac_try_echo=$ac_try;;
26953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26954 $as_echo "$ac_try_echo") >&5
26955 (eval "$ac_compile") 2>conftest.er1
26957 grep -v '^ *+' conftest.er1 >conftest.err
26959 cat conftest.err >&5
26960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } && {
26962 test -z "$ac_c_werror_flag" ||
26963 test ! -s conftest.err
26964 } && test -s conftest.$ac_objext; then
26965 ac_lo=$ac_mid; break
26967 $as_echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26970 ac_hi=`expr '(' $ac_mid ')' - 1`
26971 if test $ac_mid -le $ac_hi; then
26975 ac_mid=`expr 2 '*' $ac_mid`
26978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981 $as_echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26991 # Binary search between lo and hi bounds.
26992 while test "x$ac_lo" != "x$ac_hi"; do
26993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26994 cat >conftest.$ac_ext <<_ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h. */
27000 $ac_includes_default
27002 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27004 typedef struct { char x; long long int y; } ac__type_alignof_;
27008 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27015 rm -f conftest.$ac_objext
27016 if { (ac_try="$ac_compile"
27017 case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27022 $as_echo "$ac_try_echo") >&5
27023 (eval "$ac_compile") 2>conftest.er1
27025 grep -v '^ *+' conftest.er1 >conftest.err
27027 cat conftest.err >&5
27028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } && {
27030 test -z "$ac_c_werror_flag" ||
27031 test ! -s conftest.err
27032 } && test -s conftest.$ac_objext; then
27035 $as_echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27038 ac_lo=`expr '(' $ac_mid ')' + 1`
27041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27044 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27045 '') if test "$ac_cv_type_long_long_int" = yes; then
27046 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27048 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27049 See \`config.log' for more details." >&5
27050 $as_echo "$as_me: error: cannot compute alignment of long long int
27051 See \`config.log' for more details." >&2;}
27052 { (exit 77); exit 77; }; }; }
27054 ac_cv_alignof_long_long_int=0
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27064 $ac_includes_default
27066 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27068 typedef struct { char x; long long int y; } ac__type_alignof_;
27069 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27070 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27072 #include <stdlib.h>
27077 FILE *f = fopen ("conftest.val", "w");
27080 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27082 long int i = longval ();
27083 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27085 fprintf (f, "%ld", i);
27089 unsigned long int i = ulongval ();
27090 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27092 fprintf (f, "%lu", i);
27094 /* Do not output a trailing newline, as this causes \r\n confusion
27095 on some platforms. */
27096 return ferror (f) || fclose (f) != 0;
27102 rm -f conftest$ac_exeext
27103 if { (ac_try="$ac_link"
27104 case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27109 $as_echo "$ac_try_echo") >&5
27110 (eval "$ac_link") 2>&5
27112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27114 { (case "(($ac_try" in
27115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27119 $as_echo "$ac_try_echo") >&5
27120 (eval "$ac_try") 2>&5
27122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
27124 ac_cv_alignof_long_long_int=`cat conftest.val`
27126 $as_echo "$as_me: program exited with status $ac_status" >&5
27127 $as_echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ( exit $ac_status )
27131 if test "$ac_cv_type_long_long_int" = yes; then
27132 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27134 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27135 See \`config.log' for more details." >&5
27136 $as_echo "$as_me: error: cannot compute alignment of long long int
27137 See \`config.log' for more details." >&2;}
27138 { (exit 77); exit 77; }; }; }
27140 ac_cv_alignof_long_long_int=0
27143 rm -rf conftest.dSYM
27144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27148 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27149 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27153 cat >>confdefs.h <<_ACEOF
27154 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27159 # The cast to long int works around a bug in the HP C Compiler,
27160 # see AC_CHECK_SIZEOF for more information.
27161 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27162 $as_echo_n "checking alignment of double... " >&6; }
27163 if test "${ac_cv_alignof_double+set}" = set; then
27164 $as_echo_n "(cached) " >&6
27166 if test "$cross_compiling" = yes; then
27167 # Depending upon the size, compute the lo and hi bounds.
27168 cat >conftest.$ac_ext <<_ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h. */
27174 $ac_includes_default
27176 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27178 typedef struct { char x; double y; } ac__type_alignof_;
27182 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27196 $as_echo "$ac_try_echo") >&5
27197 (eval "$ac_compile") 2>conftest.er1
27199 grep -v '^ *+' conftest.er1 >conftest.err
27201 cat conftest.err >&5
27202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } && {
27204 test -z "$ac_c_werror_flag" ||
27205 test ! -s conftest.err
27206 } && test -s conftest.$ac_objext; then
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27215 $ac_includes_default
27217 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27219 typedef struct { char x; double y; } ac__type_alignof_;
27223 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27230 rm -f conftest.$ac_objext
27231 if { (ac_try="$ac_compile"
27232 case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27237 $as_echo "$ac_try_echo") >&5
27238 (eval "$ac_compile") 2>conftest.er1
27240 grep -v '^ *+' conftest.er1 >conftest.err
27242 cat conftest.err >&5
27243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } && {
27245 test -z "$ac_c_werror_flag" ||
27246 test ! -s conftest.err
27247 } && test -s conftest.$ac_objext; then
27248 ac_hi=$ac_mid; break
27250 $as_echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27253 ac_lo=`expr $ac_mid + 1`
27254 if test $ac_lo -le $ac_mid; then
27258 ac_mid=`expr 2 '*' $ac_mid + 1`
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264 $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 cat >conftest.$ac_ext <<_ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27273 $ac_includes_default
27275 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27277 typedef struct { char x; double y; } ac__type_alignof_;
27281 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27288 rm -f conftest.$ac_objext
27289 if { (ac_try="$ac_compile"
27290 case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27295 $as_echo "$ac_try_echo") >&5
27296 (eval "$ac_compile") 2>conftest.er1
27298 grep -v '^ *+' conftest.er1 >conftest.err
27300 cat conftest.err >&5
27301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } && {
27303 test -z "$ac_c_werror_flag" ||
27304 test ! -s conftest.err
27305 } && test -s conftest.$ac_objext; then
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27314 $ac_includes_default
27316 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27318 typedef struct { char x; double y; } ac__type_alignof_;
27322 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27329 rm -f conftest.$ac_objext
27330 if { (ac_try="$ac_compile"
27331 case "(($ac_try" in
27332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27333 *) ac_try_echo=$ac_try;;
27335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27336 $as_echo "$ac_try_echo") >&5
27337 (eval "$ac_compile") 2>conftest.er1
27339 grep -v '^ *+' conftest.er1 >conftest.err
27341 cat conftest.err >&5
27342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } && {
27344 test -z "$ac_c_werror_flag" ||
27345 test ! -s conftest.err
27346 } && test -s conftest.$ac_objext; then
27347 ac_lo=$ac_mid; break
27349 $as_echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ac_hi=`expr '(' $ac_mid ')' - 1`
27353 if test $ac_mid -le $ac_hi; then
27357 ac_mid=`expr 2 '*' $ac_mid`
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27363 $as_echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27373 # Binary search between lo and hi bounds.
27374 while test "x$ac_lo" != "x$ac_hi"; do
27375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27376 cat >conftest.$ac_ext <<_ACEOF
27379 cat confdefs.h >>conftest.$ac_ext
27380 cat >>conftest.$ac_ext <<_ACEOF
27381 /* end confdefs.h. */
27382 $ac_includes_default
27384 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27386 typedef struct { char x; double y; } ac__type_alignof_;
27390 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27397 rm -f conftest.$ac_objext
27398 if { (ac_try="$ac_compile"
27399 case "(($ac_try" in
27400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27401 *) ac_try_echo=$ac_try;;
27403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27404 $as_echo "$ac_try_echo") >&5
27405 (eval "$ac_compile") 2>conftest.er1
27407 grep -v '^ *+' conftest.er1 >conftest.err
27409 cat conftest.err >&5
27410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); } && {
27412 test -z "$ac_c_werror_flag" ||
27413 test ! -s conftest.err
27414 } && test -s conftest.$ac_objext; then
27417 $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27420 ac_lo=`expr '(' $ac_mid ')' + 1`
27423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27426 ?*) ac_cv_alignof_double=$ac_lo;;
27427 '') if test "$ac_cv_type_double" = yes; then
27428 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27430 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27431 See \`config.log' for more details." >&5
27432 $as_echo "$as_me: error: cannot compute alignment of double
27433 See \`config.log' for more details." >&2;}
27434 { (exit 77); exit 77; }; }; }
27436 ac_cv_alignof_double=0
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 $ac_includes_default
27448 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27450 typedef struct { char x; double y; } ac__type_alignof_;
27451 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27452 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27454 #include <stdlib.h>
27459 FILE *f = fopen ("conftest.val", "w");
27462 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27464 long int i = longval ();
27465 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27467 fprintf (f, "%ld", i);
27471 unsigned long int i = ulongval ();
27472 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27474 fprintf (f, "%lu", i);
27476 /* Do not output a trailing newline, as this causes \r\n confusion
27477 on some platforms. */
27478 return ferror (f) || fclose (f) != 0;
27484 rm -f conftest$ac_exeext
27485 if { (ac_try="$ac_link"
27486 case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27491 $as_echo "$ac_try_echo") >&5
27492 (eval "$ac_link") 2>&5
27494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27501 $as_echo "$ac_try_echo") >&5
27502 (eval "$ac_try") 2>&5
27504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; }; then
27506 ac_cv_alignof_double=`cat conftest.val`
27508 $as_echo "$as_me: program exited with status $ac_status" >&5
27509 $as_echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27512 ( exit $ac_status )
27513 if test "$ac_cv_type_double" = yes; then
27514 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27516 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27517 See \`config.log' for more details." >&5
27518 $as_echo "$as_me: error: cannot compute alignment of double
27519 See \`config.log' for more details." >&2;}
27520 { (exit 77); exit 77; }; }; }
27522 ac_cv_alignof_double=0
27525 rm -rf conftest.dSYM
27526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27530 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27531 $as_echo "$ac_cv_alignof_double" >&6; }
27535 cat >>confdefs.h <<_ACEOF
27536 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27541 # Compute maximum alignment of any basic type.
27542 # We assume long's alignment is at least as strong as char, short, or int;
27543 # but we must check long long (if it exists) and double.
27545 MAX_ALIGNOF=$ac_cv_alignof_long
27546 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27547 MAX_ALIGNOF=$ac_cv_alignof_double
27549 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27550 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27553 cat >>confdefs.h <<_ACEOF
27554 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27559 # Some platforms predefine the types int8, int16, etc. Only check
27560 # a (hopefully) representative subset.
27561 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27562 $as_echo_n "checking for int8... " >&6; }
27563 if test "${ac_cv_type_int8+set}" = set; then
27564 $as_echo_n "(cached) " >&6
27567 cat >conftest.$ac_ext <<_ACEOF
27570 cat confdefs.h >>conftest.$ac_ext
27571 cat >>conftest.$ac_ext <<_ACEOF
27572 /* end confdefs.h. */
27574 #ifdef HAVE_SUPPORTDEFS_H
27575 #include <SupportDefs.h>
27587 rm -f conftest.$ac_objext
27588 if { (ac_try="$ac_compile"
27589 case "(($ac_try" in
27590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591 *) ac_try_echo=$ac_try;;
27593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27594 $as_echo "$ac_try_echo") >&5
27595 (eval "$ac_compile") 2>conftest.er1
27597 grep -v '^ *+' conftest.er1 >conftest.err
27599 cat conftest.err >&5
27600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601 (exit $ac_status); } && {
27602 test -z "$ac_c_werror_flag" ||
27603 test ! -s conftest.err
27604 } && test -s conftest.$ac_objext; then
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27612 #ifdef HAVE_SUPPORTDEFS_H
27613 #include <SupportDefs.h>
27619 if (sizeof ((int8)))
27625 rm -f conftest.$ac_objext
27626 if { (ac_try="$ac_compile"
27627 case "(($ac_try" in
27628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629 *) ac_try_echo=$ac_try;;
27631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27632 $as_echo "$ac_try_echo") >&5
27633 (eval "$ac_compile") 2>conftest.er1
27635 grep -v '^ *+' conftest.er1 >conftest.err
27637 cat conftest.err >&5
27638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } && {
27640 test -z "$ac_c_werror_flag" ||
27641 test ! -s conftest.err
27642 } && test -s conftest.$ac_objext; then
27645 $as_echo "$as_me: failed program was:" >&5
27646 sed 's/^/| /' conftest.$ac_ext >&5
27648 ac_cv_type_int8=yes
27651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27653 $as_echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27661 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27662 $as_echo "$ac_cv_type_int8" >&6; }
27663 if test "x$ac_cv_type_int8" = x""yes; then
27665 cat >>confdefs.h <<_ACEOF
27666 #define HAVE_INT8 1
27671 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27672 $as_echo_n "checking for uint8... " >&6; }
27673 if test "${ac_cv_type_uint8+set}" = set; then
27674 $as_echo_n "(cached) " >&6
27676 ac_cv_type_uint8=no
27677 cat >conftest.$ac_ext <<_ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h. */
27684 #ifdef HAVE_SUPPORTDEFS_H
27685 #include <SupportDefs.h>
27691 if (sizeof (uint8))
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27704 $as_echo "$ac_try_echo") >&5
27705 (eval "$ac_compile") 2>conftest.er1
27707 grep -v '^ *+' conftest.er1 >conftest.err
27709 cat conftest.err >&5
27710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } && {
27712 test -z "$ac_c_werror_flag" ||
27713 test ! -s conftest.err
27714 } && test -s conftest.$ac_objext; then
27715 cat >conftest.$ac_ext <<_ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h. */
27722 #ifdef HAVE_SUPPORTDEFS_H
27723 #include <SupportDefs.h>
27729 if (sizeof ((uint8)))
27735 rm -f conftest.$ac_objext
27736 if { (ac_try="$ac_compile"
27737 case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27742 $as_echo "$ac_try_echo") >&5
27743 (eval "$ac_compile") 2>conftest.er1
27745 grep -v '^ *+' conftest.er1 >conftest.err
27747 cat conftest.err >&5
27748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } && {
27750 test -z "$ac_c_werror_flag" ||
27751 test ! -s conftest.err
27752 } && test -s conftest.$ac_objext; then
27755 $as_echo "$as_me: failed program was:" >&5
27756 sed 's/^/| /' conftest.$ac_ext >&5
27758 ac_cv_type_uint8=yes
27761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 $as_echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27772 $as_echo "$ac_cv_type_uint8" >&6; }
27773 if test "x$ac_cv_type_uint8" = x""yes; then
27775 cat >>confdefs.h <<_ACEOF
27776 #define HAVE_UINT8 1
27781 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27782 $as_echo_n "checking for int64... " >&6; }
27783 if test "${ac_cv_type_int64+set}" = set; then
27784 $as_echo_n "(cached) " >&6
27786 ac_cv_type_int64=no
27787 cat >conftest.$ac_ext <<_ACEOF
27790 cat confdefs.h >>conftest.$ac_ext
27791 cat >>conftest.$ac_ext <<_ACEOF
27792 /* end confdefs.h. */
27794 #ifdef HAVE_SUPPORTDEFS_H
27795 #include <SupportDefs.h>
27801 if (sizeof (int64))
27807 rm -f conftest.$ac_objext
27808 if { (ac_try="$ac_compile"
27809 case "(($ac_try" in
27810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811 *) ac_try_echo=$ac_try;;
27813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27814 $as_echo "$ac_try_echo") >&5
27815 (eval "$ac_compile") 2>conftest.er1
27817 grep -v '^ *+' conftest.er1 >conftest.err
27819 cat conftest.err >&5
27820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); } && {
27822 test -z "$ac_c_werror_flag" ||
27823 test ! -s conftest.err
27824 } && test -s conftest.$ac_objext; then
27825 cat >conftest.$ac_ext <<_ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h. */
27832 #ifdef HAVE_SUPPORTDEFS_H
27833 #include <SupportDefs.h>
27839 if (sizeof ((int64)))
27845 rm -f conftest.$ac_objext
27846 if { (ac_try="$ac_compile"
27847 case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27852 $as_echo "$ac_try_echo") >&5
27853 (eval "$ac_compile") 2>conftest.er1
27855 grep -v '^ *+' conftest.er1 >conftest.err
27857 cat conftest.err >&5
27858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } && {
27860 test -z "$ac_c_werror_flag" ||
27861 test ! -s conftest.err
27862 } && test -s conftest.$ac_objext; then
27865 $as_echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27868 ac_cv_type_int64=yes
27871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27873 $as_echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27882 $as_echo "$ac_cv_type_int64" >&6; }
27883 if test "x$ac_cv_type_int64" = x""yes; then
27885 cat >>confdefs.h <<_ACEOF
27886 #define HAVE_INT64 1
27891 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27892 $as_echo_n "checking for uint64... " >&6; }
27893 if test "${ac_cv_type_uint64+set}" = set; then
27894 $as_echo_n "(cached) " >&6
27896 ac_cv_type_uint64=no
27897 cat >conftest.$ac_ext <<_ACEOF
27900 cat confdefs.h >>conftest.$ac_ext
27901 cat >>conftest.$ac_ext <<_ACEOF
27902 /* end confdefs.h. */
27904 #ifdef HAVE_SUPPORTDEFS_H
27905 #include <SupportDefs.h>
27911 if (sizeof (uint64))
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27924 $as_echo "$ac_try_echo") >&5
27925 (eval "$ac_compile") 2>conftest.er1
27927 grep -v '^ *+' conftest.er1 >conftest.err
27929 cat conftest.err >&5
27930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); } && {
27932 test -z "$ac_c_werror_flag" ||
27933 test ! -s conftest.err
27934 } && test -s conftest.$ac_objext; then
27935 cat >conftest.$ac_ext <<_ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h. */
27942 #ifdef HAVE_SUPPORTDEFS_H
27943 #include <SupportDefs.h>
27949 if (sizeof ((uint64)))
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27962 $as_echo "$ac_try_echo") >&5
27963 (eval "$ac_compile") 2>conftest.er1
27965 grep -v '^ *+' conftest.er1 >conftest.err
27967 cat conftest.err >&5
27968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } && {
27970 test -z "$ac_c_werror_flag" ||
27971 test ! -s conftest.err
27972 } && test -s conftest.$ac_objext; then
27975 $as_echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 ac_cv_type_uint64=yes
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 $as_echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27991 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27992 $as_echo "$ac_cv_type_uint64" >&6; }
27993 if test "x$ac_cv_type_uint64" = x""yes; then
27995 cat >>confdefs.h <<_ACEOF
27996 #define HAVE_UINT64 1
28003 # We also check for sig_atomic_t, which *should* be defined per ANSI
28004 # C, but is missing on some old platforms.
28005 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28006 $as_echo_n "checking for sig_atomic_t... " >&6; }
28007 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28008 $as_echo_n "(cached) " >&6
28010 ac_cv_type_sig_atomic_t=no
28011 cat >conftest.$ac_ext <<_ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h. */
28017 #include <signal.h>
28022 if (sizeof (sig_atomic_t))
28028 rm -f conftest.$ac_objext
28029 if { (ac_try="$ac_compile"
28030 case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28035 $as_echo "$ac_try_echo") >&5
28036 (eval "$ac_compile") 2>conftest.er1
28038 grep -v '^ *+' conftest.er1 >conftest.err
28040 cat conftest.err >&5
28041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } && {
28043 test -z "$ac_c_werror_flag" ||
28044 test ! -s conftest.err
28045 } && test -s conftest.$ac_objext; then
28046 cat >conftest.$ac_ext <<_ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h. */
28052 #include <signal.h>
28057 if (sizeof ((sig_atomic_t)))
28063 rm -f conftest.$ac_objext
28064 if { (ac_try="$ac_compile"
28065 case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28070 $as_echo "$ac_try_echo") >&5
28071 (eval "$ac_compile") 2>conftest.er1
28073 grep -v '^ *+' conftest.er1 >conftest.err
28075 cat conftest.err >&5
28076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } && {
28078 test -z "$ac_c_werror_flag" ||
28079 test ! -s conftest.err
28080 } && test -s conftest.$ac_objext; then
28083 $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 ac_cv_type_sig_atomic_t=yes
28089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28091 $as_echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28099 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28100 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28101 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28103 cat >>confdefs.h <<_ACEOF
28104 #define HAVE_SIG_ATOMIC_T 1
28112 if test "$PORTNAME" != "win32"
28114 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28115 $as_echo_n "checking for POSIX signal interface... " >&6; }
28116 if test "${pgac_cv_func_posix_signals+set}" = set; then
28117 $as_echo_n "(cached) " >&6
28119 cat >conftest.$ac_ext <<_ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28125 #include <signal.h>
28130 struct sigaction act, oact;
28131 sigemptyset(&act.sa_mask);
28132 act.sa_flags = SA_RESTART;
28133 sigaction(0, &act, &oact);
28138 rm -f conftest.$ac_objext conftest$ac_exeext
28139 if { (ac_try="$ac_link"
28140 case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28145 $as_echo "$ac_try_echo") >&5
28146 (eval "$ac_link") 2>conftest.er1
28148 grep -v '^ *+' conftest.er1 >conftest.err
28150 cat conftest.err >&5
28151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); } && {
28153 test -z "$ac_c_werror_flag" ||
28154 test ! -s conftest.err
28155 } && test -s conftest$ac_exeext && {
28156 test "$cross_compiling" = yes ||
28157 $as_test_x conftest$ac_exeext
28159 pgac_cv_func_posix_signals=yes
28161 $as_echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28164 pgac_cv_func_posix_signals=no
28167 rm -rf conftest.dSYM
28168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28169 conftest$ac_exeext conftest.$ac_ext
28171 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28172 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28173 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28175 cat >>confdefs.h <<\_ACEOF
28176 #define HAVE_POSIX_SIGNALS /**/
28180 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28182 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28183 { { $as_echo "$as_me:$LINENO: error:
28184 Thread-safety requires POSIX signals, which are not supported by this
28185 operating system; use --disable-thread-safety to disable thread safety." >&5
28186 $as_echo "$as_me: error:
28187 Thread-safety requires POSIX signals, which are not supported by this
28188 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28189 { (exit 1); exit 1; }; }
28193 # SunOS doesn't handle negative byte comparisons properly with +/- return
28194 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28195 $as_echo_n "checking for working memcmp... " >&6; }
28196 if test "${ac_cv_func_memcmp_working+set}" = set; then
28197 $as_echo_n "(cached) " >&6
28199 if test "$cross_compiling" = yes; then
28200 ac_cv_func_memcmp_working=no
28202 cat >conftest.$ac_ext <<_ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28208 $ac_includes_default
28213 /* Some versions of memcmp are not 8-bit clean. */
28214 char c0 = '\100', c1 = '\200', c2 = '\201';
28215 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28218 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28219 or more and with at least one buffer not starting on a 4-byte boundary.
28220 William Lewis provided this test program. */
28225 for (i = 0; i < 4; i++)
28229 strcpy (a, "--------01111111");
28230 strcpy (b, "--------10000000");
28231 if (memcmp (a, b, 16) >= 0)
28241 rm -f conftest$ac_exeext
28242 if { (ac_try="$ac_link"
28243 case "(($ac_try" in
28244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245 *) ac_try_echo=$ac_try;;
28247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28248 $as_echo "$ac_try_echo") >&5
28249 (eval "$ac_link") 2>&5
28251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28253 { (case "(($ac_try" in
28254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255 *) ac_try_echo=$ac_try;;
28257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28258 $as_echo "$ac_try_echo") >&5
28259 (eval "$ac_try") 2>&5
28261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263 ac_cv_func_memcmp_working=yes
28265 $as_echo "$as_me: program exited with status $ac_status" >&5
28266 $as_echo "$as_me: failed program was:" >&5
28267 sed 's/^/| /' conftest.$ac_ext >&5
28269 ( exit $ac_status )
28270 ac_cv_func_memcmp_working=no
28272 rm -rf conftest.dSYM
28273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28278 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28279 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28280 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28281 *" memcmp.$ac_objext "* ) ;;
28282 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28289 # Select semaphore implementation type.
28290 if test "$PORTNAME" != "win32"; then
28291 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28293 cat >>confdefs.h <<\_ACEOF
28294 #define USE_NAMED_POSIX_SEMAPHORES 1
28297 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28299 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28301 cat >>confdefs.h <<\_ACEOF
28302 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28305 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28308 cat >>confdefs.h <<\_ACEOF
28309 #define USE_SYSV_SEMAPHORES 1
28312 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28317 cat >>confdefs.h <<\_ACEOF
28318 #define USE_WIN32_SEMAPHORES 1
28321 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28325 # Select shared-memory implementation type.
28326 if test "$PORTNAME" != "win32"; then
28328 cat >>confdefs.h <<\_ACEOF
28329 #define USE_SYSV_SHARED_MEMORY 1
28332 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28335 cat >>confdefs.h <<\_ACEOF
28336 #define USE_WIN32_SHARED_MEMORY 1
28339 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28342 # Select latch implementation type.
28343 if test "$PORTNAME" != "win32"; then
28344 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28346 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28349 # If not set in template file, set bytes to use libc memset()
28350 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28351 MEMSET_LOOP_LIMIT=1024
28354 cat >>confdefs.h <<_ACEOF
28355 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28360 if test "$enable_nls" = yes ; then
28362 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28363 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28364 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28365 $as_echo_n "(cached) " >&6
28367 ac_func_search_save_LIBS=$LIBS
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28375 /* Override any GCC internal prototype to avoid an error.
28376 Use char because int might match the return type of a GCC
28377 builtin and then its argument prototype would still apply. */
28381 char bind_textdomain_codeset ();
28385 return bind_textdomain_codeset ();
28390 for ac_lib in '' intl; do
28391 if test -z "$ac_lib"; then
28392 ac_res="none required"
28395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28397 rm -f conftest.$ac_objext conftest$ac_exeext
28398 if { (ac_try="$ac_link"
28399 case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28404 $as_echo "$ac_try_echo") >&5
28405 (eval "$ac_link") 2>conftest.er1
28407 grep -v '^ *+' conftest.er1 >conftest.err
28409 cat conftest.err >&5
28410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } && {
28412 test -z "$ac_c_werror_flag" ||
28413 test ! -s conftest.err
28414 } && test -s conftest$ac_exeext && {
28415 test "$cross_compiling" = yes ||
28416 $as_test_x conftest$ac_exeext
28418 ac_cv_search_bind_textdomain_codeset=$ac_res
28420 $as_echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28426 rm -rf conftest.dSYM
28427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28429 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28433 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28436 ac_cv_search_bind_textdomain_codeset=no
28438 rm conftest.$ac_ext
28439 LIBS=$ac_func_search_save_LIBS
28441 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28442 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28443 ac_res=$ac_cv_search_bind_textdomain_codeset
28444 if test "$ac_res" != no; then
28445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28448 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28449 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28450 { (exit 1); exit 1; }; }
28453 if test "${ac_cv_header_libintl_h+set}" = set; then
28454 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28455 $as_echo_n "checking for libintl.h... " >&6; }
28456 if test "${ac_cv_header_libintl_h+set}" = set; then
28457 $as_echo_n "(cached) " >&6
28459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28460 $as_echo "$ac_cv_header_libintl_h" >&6; }
28462 # Is the header compilable?
28463 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28464 $as_echo_n "checking libintl.h usability... " >&6; }
28465 cat >conftest.$ac_ext <<_ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h. */
28471 $ac_includes_default
28472 #include <libintl.h>
28474 rm -f conftest.$ac_objext
28475 if { (ac_try="$ac_compile"
28476 case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28481 $as_echo "$ac_try_echo") >&5
28482 (eval "$ac_compile") 2>conftest.er1
28484 grep -v '^ *+' conftest.er1 >conftest.err
28486 cat conftest.err >&5
28487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); } && {
28489 test -z "$ac_c_werror_flag" ||
28490 test ! -s conftest.err
28491 } && test -s conftest.$ac_objext; then
28492 ac_header_compiler=yes
28494 $as_echo "$as_me: failed program was:" >&5
28495 sed 's/^/| /' conftest.$ac_ext >&5
28497 ac_header_compiler=no
28500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28502 $as_echo "$ac_header_compiler" >&6; }
28504 # Is the header present?
28505 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28506 $as_echo_n "checking libintl.h presence... " >&6; }
28507 cat >conftest.$ac_ext <<_ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h. */
28513 #include <libintl.h>
28515 if { (ac_try="$ac_cpp conftest.$ac_ext"
28516 case "(($ac_try" in
28517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518 *) ac_try_echo=$ac_try;;
28520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28521 $as_echo "$ac_try_echo") >&5
28522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28524 grep -v '^ *+' conftest.er1 >conftest.err
28526 cat conftest.err >&5
28527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); } >/dev/null && {
28529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28530 test ! -s conftest.err
28532 ac_header_preproc=yes
28534 $as_echo "$as_me: failed program was:" >&5
28535 sed 's/^/| /' conftest.$ac_ext >&5
28537 ac_header_preproc=no
28540 rm -f conftest.err conftest.$ac_ext
28541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28542 $as_echo "$ac_header_preproc" >&6; }
28544 # So? What about this header?
28545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28547 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28548 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28549 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28550 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28551 ac_header_preproc=yes
28554 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28555 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28556 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28557 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28558 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28559 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28560 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28561 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28562 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28563 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28564 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28565 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28567 ## ---------------------------------------- ##
28568 ## Report this to pgsql-bugs@postgresql.org ##
28569 ## ---------------------------------------- ##
28571 ) | sed "s/^/$as_me: WARNING: /" >&2
28574 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28575 $as_echo_n "checking for libintl.h... " >&6; }
28576 if test "${ac_cv_header_libintl_h+set}" = set; then
28577 $as_echo_n "(cached) " >&6
28579 ac_cv_header_libintl_h=$ac_header_preproc
28581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28582 $as_echo "$ac_cv_header_libintl_h" >&6; }
28585 if test "x$ac_cv_header_libintl_h" = x""yes; then
28588 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28589 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28590 { (exit 1); exit 1; }; }
28594 for ac_prog in msgfmt
28596 # Extract the first word of "$ac_prog", so it can be a program name with args.
28597 set dummy $ac_prog; ac_word=$2
28598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28599 $as_echo_n "checking for $ac_word... " >&6; }
28600 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28601 $as_echo_n "(cached) " >&6
28603 if test -n "$MSGFMT"; then
28604 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28607 for as_dir in $PATH
28610 test -z "$as_dir" && as_dir=.
28611 for ac_exec_ext in '' $ac_executable_extensions; do
28612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28613 ac_cv_prog_MSGFMT="$ac_prog"
28614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28623 MSGFMT=$ac_cv_prog_MSGFMT
28624 if test -n "$MSGFMT"; then
28625 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28626 $as_echo "$MSGFMT" >&6; }
28628 { $as_echo "$as_me:$LINENO: result: no" >&5
28629 $as_echo "no" >&6; }
28633 test -n "$MSGFMT" && break
28636 if test -z "$MSGFMT"; then
28637 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28638 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28639 { (exit 1); exit 1; }; }
28641 for ac_prog in msgmerge
28643 # Extract the first word of "$ac_prog", so it can be a program name with args.
28644 set dummy $ac_prog; ac_word=$2
28645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28646 $as_echo_n "checking for $ac_word... " >&6; }
28647 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28648 $as_echo_n "(cached) " >&6
28650 if test -n "$MSGMERGE"; then
28651 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28654 for as_dir in $PATH
28657 test -z "$as_dir" && as_dir=.
28658 for ac_exec_ext in '' $ac_executable_extensions; do
28659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28660 ac_cv_prog_MSGMERGE="$ac_prog"
28661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28670 MSGMERGE=$ac_cv_prog_MSGMERGE
28671 if test -n "$MSGMERGE"; then
28672 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28673 $as_echo "$MSGMERGE" >&6; }
28675 { $as_echo "$as_me:$LINENO: result: no" >&5
28676 $as_echo "no" >&6; }
28680 test -n "$MSGMERGE" && break
28683 for ac_prog in xgettext
28685 # Extract the first word of "$ac_prog", so it can be a program name with args.
28686 set dummy $ac_prog; ac_word=$2
28687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28688 $as_echo_n "checking for $ac_word... " >&6; }
28689 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28690 $as_echo_n "(cached) " >&6
28692 if test -n "$XGETTEXT"; then
28693 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28696 for as_dir in $PATH
28699 test -z "$as_dir" && as_dir=.
28700 for ac_exec_ext in '' $ac_executable_extensions; do
28701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28702 ac_cv_prog_XGETTEXT="$ac_prog"
28703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28712 XGETTEXT=$ac_cv_prog_XGETTEXT
28713 if test -n "$XGETTEXT"; then
28714 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28715 $as_echo "$XGETTEXT" >&6; }
28717 { $as_echo "$as_me:$LINENO: result: no" >&5
28718 $as_echo "no" >&6; }
28722 test -n "$XGETTEXT" && break
28728 # Check for Tcl configuration script tclConfig.sh
28729 if test "$with_tcl" = yes; then
28730 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28732 # Extract the first word of "$ac_prog", so it can be a program name with args.
28733 set dummy $ac_prog; ac_word=$2
28734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28735 $as_echo_n "checking for $ac_word... " >&6; }
28736 if test "${ac_cv_path_TCLSH+set}" = set; then
28737 $as_echo_n "(cached) " >&6
28741 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28745 for as_dir in $PATH
28748 test -z "$as_dir" && as_dir=.
28749 for ac_exec_ext in '' $ac_executable_extensions; do
28750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28751 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28762 TCLSH=$ac_cv_path_TCLSH
28763 if test -n "$TCLSH"; then
28764 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28765 $as_echo "$TCLSH" >&6; }
28767 { $as_echo "$as_me:$LINENO: result: no" >&5
28768 $as_echo "no" >&6; }
28772 test -n "$TCLSH" && break
28775 if test x"$TCLSH" = x""; then
28776 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28777 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28778 { (exit 1); exit 1; }; }
28781 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28782 $as_echo_n "checking for tclConfig.sh... " >&6; }
28783 # Let user override test
28784 if test -z "$TCL_CONFIG_SH"; then
28785 pgac_test_dirs="$with_tclconfig"
28787 set X $pgac_test_dirs; shift
28788 if test $# -eq 0; then
28789 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28790 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28791 { (exit 1); exit 1; }; }
28792 set X `echo 'puts $auto_path' | $TCLSH`; shift
28796 if test -r "$pgac_dir/tclConfig.sh"; then
28797 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28803 if test -z "$TCL_CONFIG_SH"; then
28804 { $as_echo "$as_me:$LINENO: result: no" >&5
28805 $as_echo "no" >&6; }
28806 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28807 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28808 { (exit 1); exit 1; }; }
28810 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28811 $as_echo "$TCL_CONFIG_SH" >&6; }
28817 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28818 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28819 eval TCL_LIBS=\"$TCL_LIBS\"
28820 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28821 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28823 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28824 ac_save_CPPFLAGS=$CPPFLAGS
28825 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28826 if test "${ac_cv_header_tcl_h+set}" = set; then
28827 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28828 $as_echo_n "checking for tcl.h... " >&6; }
28829 if test "${ac_cv_header_tcl_h+set}" = set; then
28830 $as_echo_n "(cached) " >&6
28832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28833 $as_echo "$ac_cv_header_tcl_h" >&6; }
28835 # Is the header compilable?
28836 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28837 $as_echo_n "checking tcl.h usability... " >&6; }
28838 cat >conftest.$ac_ext <<_ACEOF
28841 cat confdefs.h >>conftest.$ac_ext
28842 cat >>conftest.$ac_ext <<_ACEOF
28843 /* end confdefs.h. */
28844 $ac_includes_default
28847 rm -f conftest.$ac_objext
28848 if { (ac_try="$ac_compile"
28849 case "(($ac_try" in
28850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28851 *) ac_try_echo=$ac_try;;
28853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28854 $as_echo "$ac_try_echo") >&5
28855 (eval "$ac_compile") 2>conftest.er1
28857 grep -v '^ *+' conftest.er1 >conftest.err
28859 cat conftest.err >&5
28860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } && {
28862 test -z "$ac_c_werror_flag" ||
28863 test ! -s conftest.err
28864 } && test -s conftest.$ac_objext; then
28865 ac_header_compiler=yes
28867 $as_echo "$as_me: failed program was:" >&5
28868 sed 's/^/| /' conftest.$ac_ext >&5
28870 ac_header_compiler=no
28873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28875 $as_echo "$ac_header_compiler" >&6; }
28877 # Is the header present?
28878 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28879 $as_echo_n "checking tcl.h presence... " >&6; }
28880 cat >conftest.$ac_ext <<_ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h. */
28888 if { (ac_try="$ac_cpp conftest.$ac_ext"
28889 case "(($ac_try" in
28890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891 *) ac_try_echo=$ac_try;;
28893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28894 $as_echo "$ac_try_echo") >&5
28895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28897 grep -v '^ *+' conftest.er1 >conftest.err
28899 cat conftest.err >&5
28900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); } >/dev/null && {
28902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28903 test ! -s conftest.err
28905 ac_header_preproc=yes
28907 $as_echo "$as_me: failed program was:" >&5
28908 sed 's/^/| /' conftest.$ac_ext >&5
28910 ac_header_preproc=no
28913 rm -f conftest.err conftest.$ac_ext
28914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28915 $as_echo "$ac_header_preproc" >&6; }
28917 # So? What about this header?
28918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28920 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28921 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28922 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28923 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28924 ac_header_preproc=yes
28927 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28928 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28929 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28930 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28931 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28932 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28933 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28934 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28935 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28936 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28937 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28938 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28940 ## ---------------------------------------- ##
28941 ## Report this to pgsql-bugs@postgresql.org ##
28942 ## ---------------------------------------- ##
28944 ) | sed "s/^/$as_me: WARNING: /" >&2
28947 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28948 $as_echo_n "checking for tcl.h... " >&6; }
28949 if test "${ac_cv_header_tcl_h+set}" = set; then
28950 $as_echo_n "(cached) " >&6
28952 ac_cv_header_tcl_h=$ac_header_preproc
28954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28955 $as_echo "$ac_cv_header_tcl_h" >&6; }
28958 if test "x$ac_cv_header_tcl_h" = x""yes; then
28961 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28962 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28963 { (exit 1); exit 1; }; }
28967 CPPFLAGS=$ac_save_CPPFLAGS
28970 # check for <Python.h>
28971 if test "$with_python" = yes; then
28972 ac_save_CPPFLAGS=$CPPFLAGS
28973 CPPFLAGS="$python_includespec $CPPFLAGS"
28974 if test "${ac_cv_header_Python_h+set}" = set; then
28975 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28976 $as_echo_n "checking for Python.h... " >&6; }
28977 if test "${ac_cv_header_Python_h+set}" = set; then
28978 $as_echo_n "(cached) " >&6
28980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28981 $as_echo "$ac_cv_header_Python_h" >&6; }
28983 # Is the header compilable?
28984 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28985 $as_echo_n "checking Python.h usability... " >&6; }
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28992 $ac_includes_default
28993 #include <Python.h>
28995 rm -f conftest.$ac_objext
28996 if { (ac_try="$ac_compile"
28997 case "(($ac_try" in
28998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28999 *) ac_try_echo=$ac_try;;
29001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29002 $as_echo "$ac_try_echo") >&5
29003 (eval "$ac_compile") 2>conftest.er1
29005 grep -v '^ *+' conftest.er1 >conftest.err
29007 cat conftest.err >&5
29008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } && {
29010 test -z "$ac_c_werror_flag" ||
29011 test ! -s conftest.err
29012 } && test -s conftest.$ac_objext; then
29013 ac_header_compiler=yes
29015 $as_echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29018 ac_header_compiler=no
29021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29023 $as_echo "$ac_header_compiler" >&6; }
29025 # Is the header present?
29026 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29027 $as_echo_n "checking Python.h presence... " >&6; }
29028 cat >conftest.$ac_ext <<_ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h. */
29034 #include <Python.h>
29036 if { (ac_try="$ac_cpp conftest.$ac_ext"
29037 case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29042 $as_echo "$ac_try_echo") >&5
29043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29045 grep -v '^ *+' conftest.er1 >conftest.err
29047 cat conftest.err >&5
29048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } >/dev/null && {
29050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29051 test ! -s conftest.err
29053 ac_header_preproc=yes
29055 $as_echo "$as_me: failed program was:" >&5
29056 sed 's/^/| /' conftest.$ac_ext >&5
29058 ac_header_preproc=no
29061 rm -f conftest.err conftest.$ac_ext
29062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29063 $as_echo "$ac_header_preproc" >&6; }
29065 # So? What about this header?
29066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29068 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29069 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29070 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29071 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29072 ac_header_preproc=yes
29075 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29076 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29077 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29078 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29079 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29080 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29081 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29082 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29083 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29084 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29085 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29086 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29088 ## ---------------------------------------- ##
29089 ## Report this to pgsql-bugs@postgresql.org ##
29090 ## ---------------------------------------- ##
29092 ) | sed "s/^/$as_me: WARNING: /" >&2
29095 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29096 $as_echo_n "checking for Python.h... " >&6; }
29097 if test "${ac_cv_header_Python_h+set}" = set; then
29098 $as_echo_n "(cached) " >&6
29100 ac_cv_header_Python_h=$ac_header_preproc
29102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29103 $as_echo "$ac_cv_header_Python_h" >&6; }
29106 if test "x$ac_cv_header_Python_h" = x""yes; then
29109 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29110 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29111 { (exit 1); exit 1; }; }
29115 CPPFLAGS=$ac_save_CPPFLAGS
29119 # Check for DocBook and tools
29121 for ac_prog in onsgmls nsgmls
29123 # Extract the first word of "$ac_prog", so it can be a program name with args.
29124 set dummy $ac_prog; ac_word=$2
29125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29126 $as_echo_n "checking for $ac_word... " >&6; }
29127 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29128 $as_echo_n "(cached) " >&6
29130 if test -n "$NSGMLS"; then
29131 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29134 for as_dir in $PATH
29137 test -z "$as_dir" && as_dir=.
29138 for ac_exec_ext in '' $ac_executable_extensions; do
29139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29140 ac_cv_prog_NSGMLS="$ac_prog"
29141 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29150 NSGMLS=$ac_cv_prog_NSGMLS
29151 if test -n "$NSGMLS"; then
29152 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29153 $as_echo "$NSGMLS" >&6; }
29155 { $as_echo "$as_me:$LINENO: result: no" >&5
29156 $as_echo "no" >&6; }
29160 test -n "$NSGMLS" && break
29163 for ac_prog in openjade jade
29165 # Extract the first word of "$ac_prog", so it can be a program name with args.
29166 set dummy $ac_prog; ac_word=$2
29167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29168 $as_echo_n "checking for $ac_word... " >&6; }
29169 if test "${ac_cv_prog_JADE+set}" = set; then
29170 $as_echo_n "(cached) " >&6
29172 if test -n "$JADE"; then
29173 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29176 for as_dir in $PATH
29179 test -z "$as_dir" && as_dir=.
29180 for ac_exec_ext in '' $ac_executable_extensions; do
29181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29182 ac_cv_prog_JADE="$ac_prog"
29183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29192 JADE=$ac_cv_prog_JADE
29193 if test -n "$JADE"; then
29194 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29195 $as_echo "$JADE" >&6; }
29197 { $as_echo "$as_me:$LINENO: result: no" >&5
29198 $as_echo "no" >&6; }
29202 test -n "$JADE" && break
29206 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29207 $as_echo_n "checking for DocBook V4.2... " >&6; }
29208 if test "${pgac_cv_check_docbook+set}" = set; then
29209 $as_echo_n "(cached) " >&6
29211 cat >conftest.sgml <<EOF
29212 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29214 <title>test</title>
29216 <title>random</title>
29218 <title>testsect</title>
29225 pgac_cv_check_docbook=no
29227 if test -n "$NSGMLS"; then
29228 $NSGMLS -s conftest.sgml 1>&5 2>&1
29229 if test $? -eq 0; then
29230 pgac_cv_check_docbook=yes
29233 rm -f conftest.sgml
29235 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29236 $as_echo "$pgac_cv_check_docbook" >&6; }
29238 have_docbook=$pgac_cv_check_docbook
29241 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29242 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29243 if test "${pgac_cv_path_stylesheets+set}" = set; then
29244 $as_echo_n "(cached) " >&6
29246 if test -n "$DOCBOOKSTYLE"; then
29247 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29249 for pgac_prefix in /usr /usr/local /opt /sw; do
29250 for pgac_infix in share lib; do
29251 for pgac_postfix in \
29252 sgml/stylesheets/nwalsh-modular \
29253 sgml/stylesheets/docbook \
29254 sgml/stylesheets/dsssl/docbook \
29255 sgml/docbook-dsssl \
29256 sgml/docbook/dsssl/modular \
29257 sgml/docbook/stylesheet/dsssl/modular \
29258 sgml/docbook/dsssl-stylesheets \
29259 sgml/dsssl/docbook-dsssl-nwalsh
29261 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29262 if test -r "$pgac_candidate/html/docbook.dsl" \
29263 && test -r "$pgac_candidate/print/docbook.dsl"
29265 pgac_cv_path_stylesheets=$pgac_candidate
29274 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29276 if test -n "$DOCBOOKSTYLE"; then
29277 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29278 $as_echo "$DOCBOOKSTYLE" >&6; }
29280 { $as_echo "$as_me:$LINENO: result: no" >&5
29281 $as_echo "no" >&6; }
29283 if test -n "$DOCBOOKSTYLE"; then
29284 for ac_prog in collateindex.pl
29286 # Extract the first word of "$ac_prog", so it can be a program name with args.
29287 set dummy $ac_prog; ac_word=$2
29288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29289 $as_echo_n "checking for $ac_word... " >&6; }
29290 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29291 $as_echo_n "(cached) " >&6
29293 case $COLLATEINDEX in
29295 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29299 for as_dir in $DOCBOOKSTYLE/bin $PATH
29302 test -z "$as_dir" && as_dir=.
29303 for ac_exec_ext in '' $ac_executable_extensions; do
29304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29305 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29316 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29317 if test -n "$COLLATEINDEX"; then
29318 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29319 $as_echo "$COLLATEINDEX" >&6; }
29321 { $as_echo "$as_me:$LINENO: result: no" >&5
29322 $as_echo "no" >&6; }
29326 test -n "$COLLATEINDEX" && break
29330 for ac_prog in collateindex.pl
29332 # Extract the first word of "$ac_prog", so it can be a program name with args.
29333 set dummy $ac_prog; ac_word=$2
29334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29335 $as_echo_n "checking for $ac_word... " >&6; }
29336 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29337 $as_echo_n "(cached) " >&6
29339 case $COLLATEINDEX in
29341 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29345 for as_dir in $PATH
29348 test -z "$as_dir" && as_dir=.
29349 for ac_exec_ext in '' $ac_executable_extensions; do
29350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29351 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29362 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29363 if test -n "$COLLATEINDEX"; then
29364 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29365 $as_echo "$COLLATEINDEX" >&6; }
29367 { $as_echo "$as_me:$LINENO: result: no" >&5
29368 $as_echo "no" >&6; }
29372 test -n "$COLLATEINDEX" && break
29376 for ac_prog in xsltproc
29378 # Extract the first word of "$ac_prog", so it can be a program name with args.
29379 set dummy $ac_prog; ac_word=$2
29380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29381 $as_echo_n "checking for $ac_word... " >&6; }
29382 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29383 $as_echo_n "(cached) " >&6
29385 if test -n "$XSLTPROC"; then
29386 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29389 for as_dir in $PATH
29392 test -z "$as_dir" && as_dir=.
29393 for ac_exec_ext in '' $ac_executable_extensions; do
29394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29395 ac_cv_prog_XSLTPROC="$ac_prog"
29396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29405 XSLTPROC=$ac_cv_prog_XSLTPROC
29406 if test -n "$XSLTPROC"; then
29407 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29408 $as_echo "$XSLTPROC" >&6; }
29410 { $as_echo "$as_me:$LINENO: result: no" >&5
29411 $as_echo "no" >&6; }
29415 test -n "$XSLTPROC" && break
29418 for ac_prog in osx sgml2xml sx
29420 # Extract the first word of "$ac_prog", so it can be a program name with args.
29421 set dummy $ac_prog; ac_word=$2
29422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29423 $as_echo_n "checking for $ac_word... " >&6; }
29424 if test "${ac_cv_prog_OSX+set}" = set; then
29425 $as_echo_n "(cached) " >&6
29427 if test -n "$OSX"; then
29428 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29431 for as_dir in $PATH
29434 test -z "$as_dir" && as_dir=.
29435 for ac_exec_ext in '' $ac_executable_extensions; do
29436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29437 ac_cv_prog_OSX="$ac_prog"
29438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29447 OSX=$ac_cv_prog_OSX
29448 if test -n "$OSX"; then
29449 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29450 $as_echo "$OSX" >&6; }
29452 { $as_echo "$as_me:$LINENO: result: no" >&5
29453 $as_echo "no" >&6; }
29457 test -n "$OSX" && break
29463 # We have to run the thread test near the end so we have all our symbols
29464 # defined. Cross compiling throws a warning.
29466 if test "$enable_thread_safety" = yes; then
29467 if test "$PORTNAME" != "win32"
29469 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29470 $as_echo_n "checking thread safety of required library functions... " >&6; }
29474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29475 LIBS="$LIBS $PTHREAD_LIBS"
29476 if test "$cross_compiling" = yes; then
29477 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29478 $as_echo "maybe" >&6; }
29479 { $as_echo "$as_me:$LINENO: WARNING:
29480 *** Skipping thread test program because of cross-compile build.
29481 *** Run the program in src/test/thread on the target machine.
29483 $as_echo "$as_me: WARNING:
29484 *** Skipping thread test program because of cross-compile build.
29485 *** Run the program in src/test/thread on the target machine.
29488 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29494 #include "$srcdir/src/test/thread/thread_test.c"
29496 rm -f conftest$ac_exeext
29497 if { (ac_try="$ac_link"
29498 case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29503 $as_echo "$ac_try_echo") >&5
29504 (eval "$ac_link") 2>&5
29506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29508 { (case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29513 $as_echo "$ac_try_echo") >&5
29514 (eval "$ac_try") 2>&5
29516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; }; then
29518 { $as_echo "$as_me:$LINENO: result: yes" >&5
29519 $as_echo "yes" >&6; }
29521 $as_echo "$as_me: program exited with status $ac_status" >&5
29522 $as_echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29525 ( exit $ac_status )
29526 { $as_echo "$as_me:$LINENO: result: no" >&5
29527 $as_echo "no" >&6; }
29528 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29529 This platform is not thread-safe. Check the file 'config.log' or compile
29530 and run src/test/thread/thread_test for the exact reason.
29531 Use --disable-thread-safety to disable thread safety." >&5
29532 $as_echo "$as_me: error: thread test program failed
29533 This platform is not thread-safe. Check the file 'config.log' or compile
29534 and run src/test/thread/thread_test for the exact reason.
29535 Use --disable-thread-safety to disable thread safety." >&2;}
29536 { (exit 1); exit 1; }; }
29538 rm -rf conftest.dSYM
29539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29546 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29547 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29551 # If compiler will take -Wl,--as-needed (or various platform-specific
29552 # spellings thereof) then add that to LDFLAGS. This is much easier than
29553 # trying to filter LIBS to the minimum for each executable.
29554 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29555 # libreadline; therefore we postpone testing it until we know what library
29556 # dependencies readline has. The test code will try to link with $LIBS.
29557 if test "$with_readline" = yes; then
29558 link_test_func=readline
29560 link_test_func=exit
29563 if test "$PORTNAME" = "darwin"; then
29564 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29565 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29566 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29567 $as_echo_n "(cached) " >&6
29569 pgac_save_LDFLAGS=$LDFLAGS
29570 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29571 if test "$cross_compiling" = yes; then
29572 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29574 cat >conftest.$ac_ext <<_ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h. */
29580 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29589 rm -f conftest$ac_exeext
29590 if { (ac_try="$ac_link"
29591 case "(($ac_try" in
29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593 *) ac_try_echo=$ac_try;;
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597 (eval "$ac_link") 2>&5
29599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29601 { (case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29606 $as_echo "$ac_try_echo") >&5
29607 (eval "$ac_try") 2>&5
29609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; }; then
29611 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29613 $as_echo "$as_me: program exited with status $ac_status" >&5
29614 $as_echo "$as_me: failed program was:" >&5
29615 sed 's/^/| /' conftest.$ac_ext >&5
29617 ( exit $ac_status )
29618 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29620 rm -rf conftest.dSYM
29621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29625 LDFLAGS="$pgac_save_LDFLAGS"
29627 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29628 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29629 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29630 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29633 elif test "$PORTNAME" = "openbsd"; then
29634 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29635 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29636 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29637 $as_echo_n "(cached) " >&6
29639 pgac_save_LDFLAGS=$LDFLAGS
29640 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29641 if test "$cross_compiling" = yes; then
29642 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29650 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29659 rm -f conftest$ac_exeext
29660 if { (ac_try="$ac_link"
29661 case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29666 $as_echo "$ac_try_echo") >&5
29667 (eval "$ac_link") 2>&5
29669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29671 { (case "(($ac_try" in
29672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673 *) ac_try_echo=$ac_try;;
29675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29676 $as_echo "$ac_try_echo") >&5
29677 (eval "$ac_try") 2>&5
29679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; }; then
29681 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29683 $as_echo "$as_me: program exited with status $ac_status" >&5
29684 $as_echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29687 ( exit $ac_status )
29688 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29690 rm -rf conftest.dSYM
29691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29695 LDFLAGS="$pgac_save_LDFLAGS"
29697 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29698 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29699 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29700 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29704 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29705 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29706 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29707 $as_echo_n "(cached) " >&6
29709 pgac_save_LDFLAGS=$LDFLAGS
29710 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29711 if test "$cross_compiling" = yes; then
29712 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29714 cat >conftest.$ac_ext <<_ACEOF
29717 cat confdefs.h >>conftest.$ac_ext
29718 cat >>conftest.$ac_ext <<_ACEOF
29719 /* end confdefs.h. */
29720 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29729 rm -f conftest$ac_exeext
29730 if { (ac_try="$ac_link"
29731 case "(($ac_try" in
29732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29733 *) ac_try_echo=$ac_try;;
29735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29736 $as_echo "$ac_try_echo") >&5
29737 (eval "$ac_link") 2>&5
29739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741 { (case "(($ac_try" in
29742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743 *) ac_try_echo=$ac_try;;
29745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29746 $as_echo "$ac_try_echo") >&5
29747 (eval "$ac_try") 2>&5
29749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); }; }; then
29751 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29753 $as_echo "$as_me: program exited with status $ac_status" >&5
29754 $as_echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.$ac_ext >&5
29757 ( exit $ac_status )
29758 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29760 rm -rf conftest.dSYM
29761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29765 LDFLAGS="$pgac_save_LDFLAGS"
29767 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29768 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29769 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29770 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29775 # Create compiler version string
29776 if test x"$GCC" = x"yes" ; then
29777 cc_string=`${CC} --version | sed q`
29778 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29779 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29780 cc_string=`${CC} -V 2>&1 | sed q`
29786 cat >>confdefs.h <<_ACEOF
29787 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29791 # Supply a numeric version string for use by 3rd party add-ons
29792 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29793 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29795 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29797 cat >>confdefs.h <<_ACEOF
29798 #define PG_VERSION_NUM $PG_VERSION_NUM
29803 # Begin output steps
29805 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29806 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29807 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29808 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29809 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29810 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29811 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29812 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29814 # prepare build tree if outside source tree
29815 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29816 # Note 2: /bin/pwd might be better than shell's built-in at getting
29817 # a symlink-free name.
29818 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29822 if test "$no_create" != yes; then
29823 $as_echo_n "preparing build tree... " >&6
29824 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29825 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29826 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29827 $as_echo "$as_me: error: failed" >&2;}
29828 { (exit 1); exit 1; }; }
29829 { $as_echo "$as_me:$LINENO: result: done" >&5
29830 $as_echo "done" >&6; }
29836 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29839 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}"
29842 if test "$PORTNAME" = "win32"; then
29843 ac_config_commands="$ac_config_commands check_win32_symlinks"
29847 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29850 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29853 cat >confcache <<\_ACEOF
29854 # This file is a shell script that caches the results of configure
29855 # tests run on this system so they can be shared between configure
29856 # scripts and configure runs, see configure's option --config-cache.
29857 # It is not useful on other systems. If it contains results you don't
29858 # want to keep, you may remove or edit it.
29860 # config.status only pays attention to the cache file if you give it
29861 # the --recheck option to rerun configure.
29863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29865 # following values.
29869 # The following way of writing the cache mishandles newlines in values,
29870 # but we know of no workaround that is simple, portable, and efficient.
29871 # So, we kill variables containing newlines.
29872 # Ultrix sh set writes to stderr and can't be redirected directly,
29873 # and sets the high bit in the cache file unless we assign to the vars.
29875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29876 eval ac_val=\$$ac_var
29880 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29884 _ | IFS | as_nl) ;; #(
29885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29886 *) $as_unset $ac_var ;;
29892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29893 *${as_nl}ac_space=\ *)
29894 # `set' does not quote correctly, so add quotes (double-quote
29895 # substitution turns \\\\ into \\, and sed turns \\ into \).
29898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29901 # `set' quotes correctly as required by POSIX, so do not add quotes.
29902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29916 if test -w "$cache_file"; then
29917 test "x$cache_file" != "x/dev/null" &&
29918 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29919 $as_echo "$as_me: updating cache $cache_file" >&6;}
29920 cat confcache >$cache_file
29922 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29923 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29929 # Let make expand exec_prefix.
29930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29932 DEFS=-DHAVE_CONFIG_H
29936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29937 # 1. Remove the extension, and $U if already installed.
29938 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29939 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29941 # will be set to the directory where LIBOBJS objects are built.
29942 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29943 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29945 LIBOBJS=$ac_libobjs
29947 LTLIBOBJS=$ac_ltlibobjs
29952 : ${CONFIG_STATUS=./config.status}
29954 ac_clean_files_save=$ac_clean_files
29955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29956 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29957 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29958 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29960 # Generated by $as_me.
29961 # Run this file to recreate the current configuration.
29962 # Compiler output produced by configure, useful for debugging
29963 # configure, is in config.log if it exists.
29966 ac_cs_recheck=false
29968 SHELL=\${CONFIG_SHELL-$SHELL}
29971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29972 ## --------------------- ##
29973 ## M4sh Initialization. ##
29974 ## --------------------- ##
29976 # Be more Bourne compatible
29977 DUALCASE=1; export DUALCASE # for MKS sh
29978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29982 # is contrary to our usage. Disable this feature.
29983 alias -g '${1+"$@"}'='"$@"'
29984 setopt NO_GLOB_SUBST
29986 case `(set -o) 2>/dev/null` in
29987 *posix*) set -o posix ;;
29996 # Avoid depending upon Character Ranges.
29997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30000 as_cr_digits='0123456789'
30001 as_cr_alnum=$as_cr_Letters$as_cr_digits
30006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30010 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30011 as_echo='printf %s\n'
30012 as_echo_n='printf %s'
30014 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30015 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30016 as_echo_n='/usr/ucb/echo -n'
30018 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30019 as_echo_n_body='eval
30023 expr "X$arg" : "X\\(.*\\)$as_nl";
30024 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30026 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30028 export as_echo_n_body
30029 as_echo_n='sh -c $as_echo_n_body as_echo'
30031 export as_echo_body
30032 as_echo='sh -c $as_echo_body as_echo'
30035 # The user is always right.
30036 if test "${PATH_SEPARATOR+set}" != set; then
30038 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30039 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30044 # Support unset when possible.
30045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30053 # We need space, tab and new line, in precisely that order. Quoting is
30054 # there to prevent editors from complaining about space-tab.
30055 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30056 # splitting by setting IFS to empty value.)
30059 # Find who we are. Look in the path if we contain no directory separator.
30061 *[\\/]* ) as_myself=$0 ;;
30062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30063 for as_dir in $PATH
30066 test -z "$as_dir" && as_dir=.
30067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30073 # We did not find ourselves, most probably we were run as `sh COMMAND'
30074 # in which case we are not to be found in the path.
30075 if test "x$as_myself" = x; then
30078 if test ! -f "$as_myself"; then
30079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30080 { (exit 1); exit 1; }
30083 # Work around bugs in pre-3.0 UWIN ksh.
30084 for as_var in ENV MAIL MAILPATH
30085 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30097 # Required to use basename.
30098 if expr a : '\(a\)' >/dev/null 2>&1 &&
30099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30105 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30106 as_basename=basename
30112 # Name of the executable.
30113 as_me=`$as_basename -- "$0" ||
30114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30115 X"$0" : 'X\(//\)$' \| \
30116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30118 sed '/^.*\/\([^/][^/]*\)\/*$/{
30137 as_lineno_1=$LINENO
30138 as_lineno_2=$LINENO
30139 test "x$as_lineno_1" != "x$as_lineno_2" &&
30140 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30142 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30143 # uniformly replaced by the line number. The first 'sed' inserts a
30144 # line-number line after each line using $LINENO; the second 'sed'
30145 # does the real work. The second script uses 'N' to pair each
30146 # line-number line with the line containing $LINENO, and appends
30147 # trailing '-' during substitution so that $LINENO is not a special
30148 # case at line end.
30149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30150 # scripts with optimization help from Paolo Bonzini. Blame Lee
30151 # E. McMahon (1931-1989) for sed's syntax. :-)
30163 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30166 ' >$as_me.lineno &&
30167 chmod +x "$as_me.lineno" ||
30168 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30169 { (exit 1); exit 1; }; }
30171 # Don't try to exec as it changes $[0], causing all sort of problems
30172 # (the dirname of $[0] is not the place where we might find the
30173 # original and so on. Autoconf is especially sensitive to this).
30174 . "./$as_me.lineno"
30175 # Exit status is that of the last command.
30180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30186 ECHO_C= ECHO_N= ECHO_T=
30187 case `echo -n x` in
30189 case `echo 'x\c'` in
30190 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30196 if expr a : '\(a\)' >/dev/null 2>&1 &&
30197 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30203 rm -f conf$$ conf$$.exe conf$$.file
30204 if test -d conf$$.dir; then
30205 rm -f conf$$.dir/conf$$.file
30208 mkdir conf$$.dir 2>/dev/null
30210 if (echo >conf$$.file) 2>/dev/null; then
30211 if ln -s conf$$.file conf$$ 2>/dev/null; then
30213 # ... but there are two gotchas:
30214 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30215 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30216 # In both cases, we have to default to `cp -p'.
30217 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30219 elif ln conf$$.file conf$$ 2>/dev/null; then
30227 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30228 rmdir conf$$.dir 2>/dev/null
30230 if mkdir -p . 2>/dev/null; then
30233 test -d ./-p && rmdir ./-p
30237 if test -x / >/dev/null 2>&1; then
30238 as_test_x='test -x'
30240 if ls -dL / >/dev/null 2>&1; then
30247 if test -d "$1"; then
30253 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30254 ???[sx]*):;;*)false;;esac;fi
30258 as_executable_p=$as_test_x
30260 # Sed expression to map a string onto a valid CPP name.
30261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30263 # Sed expression to map a string onto a valid variable name.
30264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30269 # Save the log message, to keep $[0] and so on meaningful, and to
30270 # report actual input values of CONFIG_FILES etc. instead of their
30271 # values after options handling.
30273 This file was extended by PostgreSQL $as_me 9.2devel, which was
30274 generated by GNU Autoconf 2.63. Invocation command line was
30276 CONFIG_FILES = $CONFIG_FILES
30277 CONFIG_HEADERS = $CONFIG_HEADERS
30278 CONFIG_LINKS = $CONFIG_LINKS
30279 CONFIG_COMMANDS = $CONFIG_COMMANDS
30282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30287 case $ac_config_files in *"
30288 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30291 case $ac_config_headers in *"
30292 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30297 # Files that config.status was made for.
30298 config_files="$ac_config_files"
30299 config_headers="$ac_config_headers"
30300 config_links="$ac_config_links"
30301 config_commands="$ac_config_commands"
30305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30307 \`$as_me' instantiates files from templates according to the
30308 current configuration.
30310 Usage: $0 [OPTION]... [FILE]...
30312 -h, --help print this help, then exit
30313 -V, --version print version number and configuration settings, then exit
30314 -q, --quiet, --silent
30315 do not print progress messages
30316 -d, --debug don't remove temporary files
30317 --recheck update $as_me by reconfiguring in the same conditions
30318 --file=FILE[:TEMPLATE]
30319 instantiate the configuration file FILE
30320 --header=FILE[:TEMPLATE]
30321 instantiate the configuration header FILE
30323 Configuration files:
30326 Configuration headers:
30329 Configuration links:
30332 Configuration commands:
30335 Report bugs to <bug-autoconf@gnu.org>."
30338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30340 PostgreSQL config.status 9.2devel
30341 configured by $0, generated by GNU Autoconf 2.63,
30342 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30344 Copyright (C) 2008 Free Software Foundation, Inc.
30345 This config.status script is free software; the Free Software Foundation
30346 gives unlimited permission to copy, distribute and modify it."
30352 test -n "\$AWK" || AWK=awk
30355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30356 # The default lists apply if the user does not specify any file.
30362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30374 # Handling of the options.
30375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30378 $as_echo "$ac_cs_version"; exit ;;
30379 --debug | --debu | --deb | --de | --d | -d )
30381 --file | --fil | --fi | --f )
30384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30386 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30387 ac_need_defaults=false;;
30388 --header | --heade | --head | --hea )
30391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30393 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30394 ac_need_defaults=false;;
30396 # Conflict between --help and --header
30397 { $as_echo "$as_me: error: ambiguous option: $1
30398 Try \`$0 --help' for more information." >&2
30399 { (exit 1); exit 1; }; };;
30400 --help | --hel | -h )
30401 $as_echo "$ac_cs_usage"; exit ;;
30402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30406 # This is an error.
30407 -*) { $as_echo "$as_me: error: unrecognized option: $1
30408 Try \`$0 --help' for more information." >&2
30409 { (exit 1); exit 1; }; } ;;
30411 *) ac_config_targets="$ac_config_targets $1"
30412 ac_need_defaults=false ;;
30418 ac_configure_extra_args=
30420 if $ac_cs_silent; then
30422 ac_configure_extra_args="$ac_configure_extra_args --silent"
30426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30427 if \$ac_cs_recheck; then
30428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30431 CONFIG_SHELL='$SHELL'
30432 export CONFIG_SHELL
30437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30442 ## Running $as_me. ##
30448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30453 # Handling of arguments.
30454 for ac_config_target in $ac_config_targets
30456 case $ac_config_target in
30457 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30458 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30459 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30460 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30461 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30462 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30463 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30464 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30465 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30466 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30467 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30468 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30469 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30471 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30472 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30473 { (exit 1); exit 1; }; };;
30478 # If the user did not use the arguments to specify the items to instantiate,
30479 # then the envvar interface is used. Set only those that are not.
30480 # We use the long form for the default assignment because of an extremely
30481 # bizarre bug on SunOS 4.1.3.
30482 if $ac_need_defaults; then
30483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30485 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30489 # Have a temporary directory for convenience. Make it in the build tree
30490 # simply because there is no reason against having it here, and in addition,
30491 # creating and moving files from /tmp can sometimes cause problems.
30492 # Hook for its removal unless debugging.
30493 # Note that there is a small window in which the directory will not be cleaned:
30494 # after its creation but before its name has been assigned to `$tmp'.
30498 trap 'exit_status=$?
30499 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30501 trap '{ (exit 1); exit 1; }' 1 2 13 15
30503 # Create a (secure) tmp directory for tmp files.
30506 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30507 test -n "$tmp" && test -d "$tmp"
30510 tmp=./conf$$-$RANDOM
30511 (umask 077 && mkdir "$tmp")
30514 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30515 { (exit 1); exit 1; }
30518 # Set up the scripts for CONFIG_FILES section.
30519 # No need to generate them if there are no CONFIG_FILES.
30520 # This happens for instance with `./config.status config.h'.
30521 if test -n "$CONFIG_FILES"; then
30525 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30526 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30529 ac_cs_awk_cr=$ac_cr
30532 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30537 echo "cat >conf$$subs.awk <<_ACEOF" &&
30538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30540 } >conf$$subs.sh ||
30541 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30542 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30543 { (exit 1); exit 1; }; }
30544 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30546 for ac_last_try in false false false false false :; do
30547 . ./conf$$subs.sh ||
30548 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30549 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30550 { (exit 1); exit 1; }; }
30552 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30553 if test $ac_delim_n = $ac_delim_num; then
30555 elif $ac_last_try; then
30556 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30557 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30558 { (exit 1); exit 1; }; }
30560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30563 rm -f conf$$subs.sh
30565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30566 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30570 s/^/S["/; s/!.*/"]=/
30580 s/\(.\{148\}\).*/\1/
30582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30594 s/\(.\{148\}\).*/\1/
30596 s/["\\]/\\&/g; s/^/"/; s/$/"/
30600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30605 ' <conf$$subs.awk | sed '
30610 ' >>$CONFIG_STATUS || ac_write_fail=1
30611 rm -f conf$$subs.awk
30612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30614 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30615 for (key in S) S_is_set[key] = 1
30621 nfields = split(line, field, "@")
30623 len = length(field[1])
30624 for (i = 2; i < nfields; i++) {
30626 keylen = length(key)
30627 if (S_is_set[key]) {
30629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30630 len += length(value) + length(field[++i])
30641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30646 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30647 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30648 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30649 { (exit 1); exit 1; }; }
30652 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30653 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30654 # trailing colons and then remove the whole line if VPATH becomes empty
30655 # (actually we leave an empty line to preserve line numbers).
30656 if test "x$srcdir" = x.; then
30657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30658 s/:*\$(srcdir):*/:/
30659 s/:*\${srcdir}:*/:/
30661 s/^\([^=]*=[ ]*\):*/\1/
30667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30668 fi # test -n "$CONFIG_FILES"
30670 # Set up the scripts for CONFIG_HEADERS section.
30671 # No need to generate them if there are no CONFIG_HEADERS.
30672 # This happens for instance with `./config.status Makefile'.
30673 if test -n "$CONFIG_HEADERS"; then
30674 cat >"$tmp/defines.awk" <<\_ACAWK ||
30678 # Transform confdefs.h into an awk script `defines.awk', embedded as
30679 # here-document in config.status, that substitutes the proper values into
30680 # config.h.in to produce config.h.
30682 # Create a delimiter string that does not exist in confdefs.h, to ease
30683 # handling of long lines.
30685 for ac_last_try in false false :; do
30686 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30687 if test -z "$ac_t"; then
30689 elif $ac_last_try; then
30690 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30691 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30692 { (exit 1); exit 1; }; }
30694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30698 # For the awk script, D is an array of macro values keyed by name,
30699 # likewise P contains macro parameters if any. Preserve backslash
30700 # newline sequences.
30702 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30704 s/.\{148\}/&'"$ac_delim"'/g
30707 s/^[ ]*#[ ]*define[ ][ ]*/ /
30714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30721 D["\1"]=" \3\\\\\\n"\\/p
30723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30728 s/.\{148\}/&'"$ac_delim"'/g
30733 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30736 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30738 ' <confdefs.h | sed '
30739 s/'"$ac_delim"'/"\\\
30740 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30743 for (key in D) D_is_set[key] = 1
30746 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30748 split(line, arg, " ")
30749 if (arg[1] == "#") {
30753 defundef = substr(arg[1], 2)
30756 split(mac1, mac2, "(") #)
30758 prefix = substr(line, 1, index(line, defundef) - 1)
30759 if (D_is_set[macro]) {
30760 # Preserve the white space surrounding the "#".
30761 print prefix "define", macro P[macro] D[macro]
30764 # Replace #undef with comments. This is necessary, for example,
30765 # in the case of _POSIX_SOURCE, which is predefined and required
30766 # on some systems where configure will not decide to define it.
30767 if (defundef == "undef") {
30768 print "/*", prefix defundef, macro, "*/"
30776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30777 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30778 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30779 { (exit 1); exit 1; }; }
30780 fi # test -n "$CONFIG_HEADERS"
30783 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30788 :[FHLC]) ac_mode=$ac_tag; continue;;
30790 case $ac_mode$ac_tag in
30792 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30793 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30794 { (exit 1); exit 1; }; };;
30795 :[FH]-) ac_tag=-:-;;
30796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30813 -) ac_f="$tmp/stdin";;
30814 *) # Look for the file first in the build tree, then in the source tree
30815 # (if the path is not absolute). The absolute path cannot be DOS-style,
30816 # because $ac_f cannot contain `:'.
30820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30822 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30823 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30824 { (exit 1); exit 1; }; };;
30826 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30827 ac_file_inputs="$ac_file_inputs '$ac_f'"
30830 # Let's still pretend it is `configure' which instantiates (i.e., don't
30831 # use $as_me), people would be surprised to read:
30832 # /* config.h. Generated by config.status. */
30833 configure_input='Generated from '`
30834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30836 if test x"$ac_file" != x-; then
30837 configure_input="$ac_file. $configure_input"
30838 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30839 $as_echo "$as_me: creating $ac_file" >&6;}
30841 # Neutralize special characters interpreted by sed in replacement strings.
30842 case $configure_input in #(
30843 *\&* | *\|* | *\\* )
30844 ac_sed_conf_input=`$as_echo "$configure_input" |
30845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30846 *) ac_sed_conf_input=$configure_input;;
30850 *:-:* | *:-) cat >"$tmp/stdin" \
30851 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30852 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30853 { (exit 1); exit 1; }; } ;;
30858 ac_dir=`$as_dirname -- "$ac_file" ||
30859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30860 X"$ac_file" : 'X\(//\)[^/]' \| \
30861 X"$ac_file" : 'X\(//\)$' \| \
30862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30863 $as_echo X"$ac_file" |
30864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30868 /^X\(\/\/\)[^/].*/{
30883 -*) as_dir=./$as_dir;;
30885 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30889 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30890 *) as_qdir=$as_dir;;
30892 as_dirs="'$as_qdir' $as_dirs"
30893 as_dir=`$as_dirname -- "$as_dir" ||
30894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30895 X"$as_dir" : 'X\(//\)[^/]' \| \
30896 X"$as_dir" : 'X\(//\)$' \| \
30897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30898 $as_echo X"$as_dir" |
30899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30903 /^X\(\/\/\)[^/].*/{
30916 test -d "$as_dir" && break
30918 test -z "$as_dirs" || eval "mkdir $as_dirs"
30919 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30920 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30921 { (exit 1); exit 1; }; }; }
30925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30928 # A ".." for each directory in $ac_dir_suffix.
30929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30930 case $ac_top_builddir_sub in
30931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30935 ac_abs_top_builddir=$ac_pwd
30936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30937 # for backward compatibility:
30938 ac_top_builddir=$ac_top_build_prefix
30941 .) # We are building in place.
30943 ac_top_srcdir=$ac_top_builddir_sub
30944 ac_abs_top_srcdir=$ac_pwd ;;
30945 [\\/]* | ?:[\\/]* ) # Absolute name.
30946 ac_srcdir=$srcdir$ac_dir_suffix;
30947 ac_top_srcdir=$srcdir
30948 ac_abs_top_srcdir=$srcdir ;;
30949 *) # Relative name.
30950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30951 ac_top_srcdir=$ac_top_build_prefix$srcdir
30952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30963 ac_MKDIR_P=$MKDIR_P
30965 [\\/$]* | ?:[\\/]* ) ;;
30966 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30971 # If the template does not know about datarootdir, expand it.
30972 # FIXME: This hack should be removed a few years after 2.60.
30973 ac_datarootdir_hack=; ac_datarootdir_seen=
30986 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30987 *datarootdir*) ac_datarootdir_seen=yes;;
30988 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30989 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30990 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30993 ac_datarootdir_hack='
30994 s&@datadir@&$datadir&g
30995 s&@docdir@&$docdir&g
30996 s&@infodir@&$infodir&g
30997 s&@localedir@&$localedir&g
30998 s&@mandir@&$mandir&g
30999 s&\\\${datarootdir}&$datarootdir&g' ;;
31003 # Neutralize VPATH when `$srcdir' = `.'.
31004 # Shell code in configure.ac might set extrasub.
31005 # FIXME: do we really want to maintain this feature?
31006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31007 ac_sed_extra="$ac_vpsub
31010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31013 s|@configure_input@|$ac_sed_conf_input|;t t
31014 s&@top_builddir@&$ac_top_builddir_sub&;t t
31015 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31016 s&@srcdir@&$ac_srcdir&;t t
31017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31018 s&@top_srcdir@&$ac_top_srcdir&;t t
31019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31020 s&@builddir@&$ac_builddir&;t t
31021 s&@abs_builddir@&$ac_abs_builddir&;t t
31022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31023 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31024 $ac_datarootdir_hack
31026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31027 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31028 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31029 { (exit 1); exit 1; }; }
31031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31034 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31035 which seems to be undefined. Please make sure it is defined." >&5
31036 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31037 which seems to be undefined. Please make sure it is defined." >&2;}
31041 -) cat "$tmp/out" && rm -f "$tmp/out";;
31042 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31044 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31045 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31046 { (exit 1); exit 1; }; }
31052 if test x"$ac_file" != x-; then
31054 $as_echo "/* $configure_input */" \
31055 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31056 } >"$tmp/config.h" \
31057 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31058 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31059 { (exit 1); exit 1; }; }
31060 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31061 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31062 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31065 mv "$tmp/config.h" "$ac_file" \
31066 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31067 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31068 { (exit 1); exit 1; }; }
31071 $as_echo "/* $configure_input */" \
31072 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31073 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31074 $as_echo "$as_me: error: could not create -" >&2;}
31075 { (exit 1); exit 1; }; }
31083 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31086 # Prefer the file from the source tree if names are identical.
31087 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31088 ac_source=$srcdir/$ac_source
31091 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31092 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31094 if test ! -r "$ac_source"; then
31095 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31096 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31097 { (exit 1); exit 1; }; }
31101 # Try a relative symlink, then a hard link, then a copy.
31103 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31104 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31106 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31107 ln "$ac_source" "$ac_file" 2>/dev/null ||
31108 cp -p "$ac_source" "$ac_file" ||
31109 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31110 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31111 { (exit 1); exit 1; }; }
31114 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31115 $as_echo "$as_me: executing $ac_file commands" >&6;}
31120 case $ac_file$ac_mode in
31121 "check_win32_symlinks":C)
31122 # Links sometimes fail undetected on Mingw -
31123 # so here we detect it and warn the user
31124 for FILE in $CONFIG_LINKS
31126 # test -e works for symlinks in the MinGW console
31127 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31128 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31131 "src/include/pg_config.h":H)
31132 # Update timestamp for pg_config.h (see Makefile.global)
31133 echo >src/include/stamp-h
31135 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31141 { (exit 0); exit 0; }
31143 chmod +x $CONFIG_STATUS
31144 ac_clean_files=$ac_clean_files_save
31146 test $ac_write_fail = 0 ||
31147 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31148 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31149 { (exit 1); exit 1; }; }
31152 # configure is writing to config.log, and then calls config.status.
31153 # config.status does its own redirection, appending to config.log.
31154 # Unfortunately, on DOS this fails, as config.log is still kept open
31155 # by configure, so config.status won't be able to write to it; its
31156 # output is simply discarded. So we exec the FD to /dev/null,
31157 # effectively closing config.log, so it can be properly (re)opened and
31158 # appended to by config.status. When coming back to configure, we
31159 # need to make the FD available again.
31160 if test "$no_create" != yes; then
31162 ac_config_status_args=
31163 test "$silent" = yes &&
31164 ac_config_status_args="$ac_config_status_args --quiet"
31166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31169 # would make configure fail if this is the last instruction.
31170 $ac_cs_success || { (exit 1); exit 1; }
31172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31173 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}