2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2013, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
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
792 program_transform_name
804 enable_option_checking
809 enable_integer_datetimes
839 with_libedit_preferred
850 ac_precious_vars='build_alias
864 # Initialize some variables set by options.
866 ac_init_version=false
867 ac_unrecognized_opts=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name=s,x,x,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971 { (exit 1); exit 1; }; }
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 htmldir=$ac_optarg ;;
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1053 -libdir | --libdir | --libdi | --libd)
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1144 -psdir | --psdir | --psdi | --psd | --ps)
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1172 -site=* | --site=* | --sit=*)
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=no ;;
1233 # Obsolete; use --with-x.
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-integer-datetimes
1488 disable 64-bit integer date/time support
1489 --enable-nls[=LANGUAGES]
1490 enable Native Language Support
1491 --disable-rpath do not embed shared library search path in
1493 --disable-spinlocks do not use spinlocks
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-depend turn on automatic dependency tracking
1499 --enable-cassert enable assertion checks (for debugging)
1500 --disable-thread-safety disable thread-safety in client libraries
1501 --disable-largefile omit support for large files
1502 --disable-float4-byval disable float4 passed by value
1503 --disable-float8-byval disable float8 passed by value
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-template=NAME override operating system template
1509 --with-includes=DIRS look for additional header files in DIRS
1510 --with-libraries=DIRS look for additional libraries in DIRS
1511 --with-libs=DIRS alternative spelling of --with-libraries
1512 --with-pgport=PORTNUM set default port number [5432]
1513 --with-blocksize=BLOCKSIZE
1514 set table block size in kB [8]
1515 --with-segsize=SEGSIZE set table segment size in GB [1]
1516 --with-wal-blocksize=BLOCKSIZE
1517 set WAL block size in kB [8]
1518 --with-wal-segsize=SEGSIZE
1519 set WAL segment size in MB [16]
1520 --with-CC=CMD set compiler (deprecated)
1521 --with-tcl build Tcl modules (PL/Tcl)
1522 --with-tclconfig=DIR tclConfig.sh is in DIR
1523 --with-perl build Perl modules (PL/Perl)
1524 --with-python build Python modules (PL/Python)
1525 --with-gssapi build with GSSAPI support
1526 --with-krb5 build with Kerberos 5 support
1527 --with-krb-srvnam=NAME default service principal name in Kerberos
1529 --with-pam build with PAM support
1530 --with-ldap build with LDAP support
1531 --with-bonjour build with Bonjour support
1532 --with-openssl build with OpenSSL support
1533 --with-selinux build with SELinux support
1534 --without-readline do not use GNU Readline nor BSD Libedit for editing
1535 --with-libedit-preferred
1536 prefer BSD Libedit over GNU Readline
1537 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1538 --with-libxml build with XML support
1539 --with-libxslt use XSLT support when building contrib/xml2
1540 --with-system-tzdata=DIR
1541 use system time zone data in DIR
1542 --without-zlib do not use Zlib
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 LDFLAGS_EX extra linker flags for linking executables only
1555 LDFLAGS_SL extra linker flags for linking shared libraries only
1557 location of DocBook stylesheets
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1592 .) # We are building in place.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1625 PostgreSQL configure 9.3devel
1626 generated by GNU Autoconf 2.63
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1633 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by PostgreSQL $as_me 9.3devel, which was
1642 generated by GNU Autoconf 2.63. Invocation command line was
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1664 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_must_keep_next=false
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 -* ) ac_must_keep_next=true ;;
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 $as_echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 $as_echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 for ac_dir in config "$srcdir"/config; do
2015 if test -f "$ac_dir/install-sh"; then
2017 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 elif test -f "$ac_dir/install.sh"; then
2021 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 elif test -f "$ac_dir/shtool"; then
2025 ac_install_sh="$ac_aux_dir/shtool install -c"
2029 if test -z "$ac_aux_dir"; then
2030 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032 { (exit 1); exit 1; }; }
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 configure_args=$ac_configure_args
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065 { (exit 1); exit 1; }; }
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070 $as_echo_n "(cached) " >&6
2072 ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078 { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091 { (exit 1); exit 1; }; };;
2094 ac_save_IFS=$IFS; IFS='-'
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110 $as_echo_n "(cached) " >&6
2112 if test "x$host_alias" = x; then
2113 ac_cv_host=$ac_cv_build
2115 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128 { (exit 1); exit 1; }; };;
2131 ac_save_IFS=$IFS; IFS='-'
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154 withval=$with_template;
2157 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159 { (exit 1); exit 1; }; }
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; }; }
2169 list) echo; ls "$srcdir/src/template"; exit;;
2170 *) if test -f "$srcdir/src/template/$with_template" ; then
2173 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175 { (exit 1); exit 1; }; }
2184 # --with-template not given
2187 aix*) template=aix ;;
2188 cygwin*) template=cygwin ;;
2189 darwin*) template=darwin ;;
2190 dragonfly*) template=netbsd ;;
2191 freebsd*) template=freebsd ;;
2192 hpux*) template=hpux ;;
2193 irix*) template=irix ;;
2194 linux*|gnu*|k*bsd*-gnu)
2196 mingw*) template=win32 ;;
2197 netbsd*) template=netbsd ;;
2198 openbsd*) template=openbsd ;;
2199 osf*) template=osf ;;
2200 sco*) template=sco ;;
2201 solaris*) template=solaris ;;
2202 sysv5*) template=unixware ;;
2205 if test x"$template" = x"" ; then
2206 { { $as_echo "$as_me:$LINENO: error:
2207 *******************************************************************
2208 PostgreSQL has apparently not been ported to your platform yet.
2209 To try a manual configuration, look into the src/template directory
2210 for a similar platform and use the '--with-template=' option.
2212 Please also contact <pgsql-bugs@postgresql.org> to see about
2213 rectifying this. Include the above 'checking host system type...'
2215 *******************************************************************
2217 $as_echo "$as_me: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this. Include the above 'checking host system type...'
2226 *******************************************************************
2228 { (exit 1); exit 1; }; }
2236 { $as_echo "$as_me:$LINENO: result: $template" >&5
2237 $as_echo "$template" >&6; }
2242 # Initialize default assumption that we do not need separate assembly code
2243 # for TAS (test-and-set). This can be overridden by the template file
2244 # when it's executed.
2251 ## Command line options
2255 # Add non-standard directories to the include path
2260 # Check whether --with-includes was given.
2261 if test "${with_includes+set}" = set; then
2262 withval=$with_includes;
2265 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2266 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2267 { (exit 1); exit 1; }; }
2270 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2271 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2272 { (exit 1); exit 1; }; }
2285 # Add non-standard directories to the library search path
2290 # Check whether --with-libraries was given.
2291 if test "${with_libraries+set}" = set; then
2292 withval=$with_libraries;
2295 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2296 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2297 { (exit 1); exit 1; }; }
2300 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2301 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2302 { (exit 1); exit 1; }; }
2305 LIBRARY_DIRS=$withval
2316 # Check whether --with-libs was given.
2317 if test "${with_libs+set}" = set; then
2321 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2322 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2323 { (exit 1); exit 1; }; }
2326 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2327 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2328 { (exit 1); exit 1; }; }
2331 LIBRARY_DIRS=$withval
2341 # 64-bit integer date/time storage: enabled by default.
2343 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2344 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2347 # Check whether --enable-integer-datetimes was given.
2348 if test "${enable_integer_datetimes+set}" = set; then
2349 enableval=$enable_integer_datetimes;
2353 cat >>confdefs.h <<\_ACEOF
2354 #define USE_INTEGER_DATETIMES 1
2362 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2363 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2364 { (exit 1); exit 1; }; }
2369 enable_integer_datetimes=yes
2371 cat >>confdefs.h <<\_ACEOF
2372 #define USE_INTEGER_DATETIMES 1
2378 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2379 $as_echo "$enable_integer_datetimes" >&6; }
2385 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2386 $as_echo_n "checking whether NLS is wanted... " >&6; }
2389 # Check whether --enable-nls was given.
2390 if test "${enable_nls+set}" = set; then
2391 enableval=$enable_nls;
2401 WANTED_LANGUAGES=$enableval
2411 if test "$enable_nls" = yes; then
2413 cat >>confdefs.h <<\_ACEOF
2414 #define ENABLE_NLS 1
2419 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2420 $as_echo "$enable_nls" >&6; }
2425 # Default port number (--with-pgport), default 5432
2427 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2428 $as_echo_n "checking for default port number... " >&6; }
2432 # Check whether --with-pgport was given.
2433 if test "${with_pgport+set}" = set; then
2434 withval=$with_pgport;
2437 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2438 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2439 { (exit 1); exit 1; }; }
2442 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2443 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2444 { (exit 1); exit 1; }; }
2447 default_port=$withval
2456 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2457 $as_echo "$default_port" >&6; }
2458 # Need both of these because some places want an integer and some a string
2460 cat >>confdefs.h <<_ACEOF
2461 #define DEF_PGPORT ${default_port}
2465 cat >>confdefs.h <<_ACEOF
2466 #define DEF_PGPORT_STR "${default_port}"
2472 # '-rpath'-like feature can be disabled
2476 # Check whether --enable-rpath was given.
2477 if test "${enable_rpath+set}" = set; then
2478 enableval=$enable_rpath;
2487 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2488 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2489 { (exit 1); exit 1; }; }
2506 # Check whether --enable-spinlocks was given.
2507 if test "${enable_spinlocks+set}" = set; then
2508 enableval=$enable_spinlocks;
2517 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2518 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2519 { (exit 1); exit 1; }; }
2524 enable_spinlocks=yes
2531 # --enable-debug adds -g to compiler flags
2535 # Check whether --enable-debug was given.
2536 if test "${enable_debug+set}" = set; then
2537 enableval=$enable_debug;
2546 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2547 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2548 { (exit 1); exit 1; }; }
2561 # --enable-profiling enables gcc profiling
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567 enableval=$enable_profiling;
2576 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2577 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2578 { (exit 1); exit 1; }; }
2590 # --enable-coverage enables generation of code coverage metrics with gcov
2594 # Check whether --enable-coverage was given.
2595 if test "${enable_coverage+set}" = set; then
2596 enableval=$enable_coverage;
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_GCOV+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$GCOV"; then
2609 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_GCOV="$ac_prog"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 GCOV=$ac_cv_prog_GCOV
2629 if test -n "$GCOV"; then
2630 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2631 $as_echo "$GCOV" >&6; }
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2638 test -n "$GCOV" && break
2641 if test -z "$GCOV"; then
2642 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2643 $as_echo "$as_me: error: gcov not found" >&2;}
2644 { (exit 1); exit 1; }; }
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_LCOV+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$LCOV"; then
2656 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_LCOV="$ac_prog"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 LCOV=$ac_cv_prog_LCOV
2676 if test -n "$LCOV"; then
2677 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2678 $as_echo "$LCOV" >&6; }
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$LCOV" && break
2688 if test -z "$LCOV"; then
2689 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2690 $as_echo "$as_me: error: lcov not found" >&2;}
2691 { (exit 1); exit 1; }; }
2693 for ac_prog in genhtml
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_GENHTML+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$GENHTML"; then
2703 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_GENHTML="$ac_prog"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 GENHTML=$ac_cv_prog_GENHTML
2723 if test -n "$GENHTML"; then
2724 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2725 $as_echo "$GENHTML" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$GENHTML" && break
2735 if test -z "$GENHTML"; then
2736 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2737 $as_echo "$as_me: error: genhtml not found" >&2;}
2738 { (exit 1); exit 1; }; }
2745 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2746 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2747 { (exit 1); exit 1; }; }
2764 # Check whether --enable-dtrace was given.
2765 if test "${enable_dtrace+set}" = set; then
2766 enableval=$enable_dtrace;
2769 for ac_prog in dtrace
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_DTRACE+set}" = set; then
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$DTRACE"; then
2779 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_DTRACE="$ac_prog"
2789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 DTRACE=$ac_cv_prog_DTRACE
2799 if test -n "$DTRACE"; then
2800 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2801 $as_echo "$DTRACE" >&6; }
2803 { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2808 test -n "$DTRACE" && break
2811 if test -z "$DTRACE"; then
2812 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2813 $as_echo "$as_me: error: dtrace not found" >&2;}
2814 { (exit 1); exit 1; }; }
2822 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2823 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2824 { (exit 1); exit 1; }; }
2839 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2840 $as_echo_n "checking for block size... " >&6; }
2844 # Check whether --with-blocksize was given.
2845 if test "${with_blocksize+set}" = set; then
2846 withval=$with_blocksize;
2849 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2850 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2851 { (exit 1); exit 1; }; }
2854 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2855 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2856 { (exit 1); exit 1; }; }
2868 case ${blocksize} in
2875 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2876 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2877 { (exit 1); exit 1; }; }
2879 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2880 $as_echo "${blocksize}kB" >&6; }
2883 cat >>confdefs.h <<_ACEOF
2884 #define BLCKSZ ${BLCKSZ}
2889 # Relation segment size
2891 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2892 $as_echo_n "checking for segment size... " >&6; }
2896 # Check whether --with-segsize was given.
2897 if test "${with_segsize+set}" = set; then
2898 withval=$with_segsize;
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2903 { (exit 1); exit 1; }; }
2906 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2908 { (exit 1); exit 1; }; }
2920 # this expression is set up to avoid unnecessary integer overflow
2921 # blocksize is already guaranteed to be a factor of 1024
2922 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2923 test $? -eq 0 || exit 1
2924 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2925 $as_echo "${segsize}GB" >&6; }
2928 cat >>confdefs.h <<_ACEOF
2929 #define RELSEG_SIZE ${RELSEG_SIZE}
2936 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2937 $as_echo_n "checking for WAL block size... " >&6; }
2941 # Check whether --with-wal-blocksize was given.
2942 if test "${with_wal_blocksize+set}" = set; then
2943 withval=$with_wal_blocksize;
2946 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2948 { (exit 1); exit 1; }; }
2951 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2953 { (exit 1); exit 1; }; }
2956 wal_blocksize=$withval
2965 case ${wal_blocksize} in
2966 1) XLOG_BLCKSZ=1024;;
2967 2) XLOG_BLCKSZ=2048;;
2968 4) XLOG_BLCKSZ=4096;;
2969 8) XLOG_BLCKSZ=8192;;
2970 16) XLOG_BLCKSZ=16384;;
2971 32) XLOG_BLCKSZ=32768;;
2972 64) XLOG_BLCKSZ=65536;;
2973 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2974 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2975 { (exit 1); exit 1; }; }
2977 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2978 $as_echo "${wal_blocksize}kB" >&6; }
2981 cat >>confdefs.h <<_ACEOF
2982 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2989 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2990 $as_echo_n "checking for WAL segment size... " >&6; }
2994 # Check whether --with-wal-segsize was given.
2995 if test "${with_wal_segsize+set}" = set; then
2996 withval=$with_wal_segsize;
2999 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3001 { (exit 1); exit 1; }; }
3004 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3005 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3006 { (exit 1); exit 1; }; }
3009 wal_segsize=$withval
3018 case ${wal_segsize} in
3026 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3027 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3028 { (exit 1); exit 1; }; }
3030 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3031 $as_echo "${wal_segsize}MB" >&6; }
3034 cat >>confdefs.h <<_ACEOF
3035 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3043 # For historical reasons you can also use --with-CC to specify the C compiler
3044 # to use, although the standard way to do this is to set the CC environment
3049 # Check whether --with-CC was given.
3050 if test "${with_CC+set}" = set; then
3054 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3055 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3056 { (exit 1); exit 1; }; }
3059 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3060 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3061 { (exit 1); exit 1; }; }
3073 aix) pgac_cc_list="gcc xlc";;
3074 irix) pgac_cc_list="cc";; # no gcc
3075 *) pgac_cc_list="gcc cc";;
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $pgac_cc_list
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3118 { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$CC" && break
3126 if test -z "$CC"; then
3128 for ac_prog in $pgac_cc_list
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$ac_ct_CC" && break
3170 if test "x$ac_ct_CC" = x; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3196 { (ac_try="$ac_compiler --version >&5"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compiler --version >&5") 2>&5
3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_compiler -v >&5") 2>&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compiler -V >&5") 2>&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258 for ac_file in $ac_files
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 if { (ac_try="$ac_link_default"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274 (eval "$ac_link_default") 2>&5
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3283 for ac_file in $ac_files ''
3285 test -f "$ac_file" || continue
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290 # We found the default executable, but exeext='' is most
3294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298 # We set ac_cv_exeext here because the later test for it is not
3299 # safe: cross compilers may not add the suffix if given an `-o'
3300 # argument, so we may need to know it at that point already.
3301 # Even if this section looks crufty: it has the advantage of
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326 { (exit 77); exit 77; }; }; }
3329 ac_exeext=$ac_cv_exeext
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338 if { ac_try='./$ac_file'
3339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_try") 2>&5
3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3351 if test "$cross_compiling" = maybe; then
3354 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362 { (exit 1); exit 1; }; }; }
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387 (eval "$ac_link") 2>&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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 compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }; }
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424 $as_echo_n "(cached) " >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_compile") 2>&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; then
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }; }
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483 $as_echo_n "(cached) " >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } && {
3518 test -z "$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 } && test -s conftest.$ac_objext; then
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545 $as_echo_n "(cached) " >&6
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3691 if test "$GCC" = yes; then
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3702 ac_cv_prog_cc_c89=no
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3728 s = g (p, va_arg (v,int));
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3734 function prototypes and stuff, but not '\xHH' hex character constants.
3735 These don't provoke an error unfortunately, instead are silently treated
3736 as 'x'. The following induces an error, until -std is added to get
3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3738 array size at least. It's necessary to write '\x00'==0 to get something
3739 that's true only with -std. */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743 inside strings and character constants. */
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 CC="$ac_save_CC $ac_arg"
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 ac_cv_prog_cc_c89=$ac_arg
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.$ac_ext
3799 case "x$ac_cv_prog_cc_c89" in
3801 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3804 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own. We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3834 #ifndef __INTEL_COMPILER
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 . "$srcdir/src/template/$template" || exit
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else: If the template file set something, that is used.
3928 # else: If coverage was enabled, don't set anything.
3929 # else: If the compiler is GCC, then we use -O2.
3930 # else: If the compiler is something else, then we use -O, unless debugging.
3932 if test "$ac_env_CFLAGS_set" = set; then
3933 CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935 : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937 : # no optimization by default
3938 elif test "$GCC" = yes; then
3941 # if the user selected debug mode, don't use -O
3942 if test "$enable_debug" != yes; then
3947 # Some versions of GCC support some additional useful warning flags.
3948 # Check whether they are supported, and add them to CFLAGS if so.
3949 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3950 # but has its own. Also check other compiler-specific flags here.
3952 if test "$GCC" = yes -a "$ICC" = no; then
3953 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3954 # These work in some but not all gcc versions
3955 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3956 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3957 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3960 pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="$pgac_save_CFLAGS"
4009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4010 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4011 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4012 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4015 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4016 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4017 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4020 pgac_save_CFLAGS=$CFLAGS
4021 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4059 $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 pgac_cv_prog_cc_cflags__Wendif_labels=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="$pgac_save_CFLAGS"
4069 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4070 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4071 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4072 CFLAGS="$CFLAGS -Wendif-labels"
4075 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4076 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4078 $as_echo_n "(cached) " >&6
4080 pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106 $as_echo "$ac_try_echo") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4117 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="$pgac_save_CFLAGS"
4129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4132 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4135 # This was included in -Wall/-Wformat in older GCC versions
4136 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4137 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4138 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4139 $as_echo_n "(cached) " >&6
4141 pgac_save_CFLAGS=$CFLAGS
4142 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167 $as_echo "$ac_try_echo") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 pgac_cv_prog_cc_cflags__Wformat_security=yes
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 pgac_cv_prog_cc_cflags__Wformat_security=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="$pgac_save_CFLAGS"
4190 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4191 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4192 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4193 CFLAGS="$CFLAGS -Wformat-security"
4196 # Disable strict-aliasing rules; needed for gcc 3.3+
4197 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4198 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4199 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4202 pgac_save_CFLAGS=$CFLAGS
4203 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4204 ac_save_c_werror_flag=$ac_c_werror_flag
4205 ac_c_werror_flag=yes
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4228 $as_echo "$ac_try_echo") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest.$ac_objext; then
4239 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4241 $as_echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="$pgac_save_CFLAGS"
4251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4252 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4253 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4254 CFLAGS="$CFLAGS -fno-strict-aliasing"
4257 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4258 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4259 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4260 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4263 pgac_save_CFLAGS=$CFLAGS
4264 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4300 pgac_cv_prog_cc_cflags__fwrapv=yes
4302 $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 pgac_cv_prog_cc_cflags__fwrapv=no
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310 CFLAGS="$pgac_save_CFLAGS"
4312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4313 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4314 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4315 CFLAGS="$CFLAGS -fwrapv"
4318 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4319 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4320 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4321 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4324 pgac_save_CFLAGS=$CFLAGS
4325 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4326 ac_save_c_werror_flag=$ac_c_werror_flag
4327 ac_c_werror_flag=yes
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350 $as_echo "$ac_try_echo") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4363 $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_c_werror_flag=$ac_save_c_werror_flag
4371 CFLAGS="$pgac_save_CFLAGS"
4373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4374 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4375 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4376 CFLAGS="$CFLAGS -fexcess-precision=standard"
4379 elif test "$ICC" = yes; then
4380 # Intel's compiler has a bug/misoptimization in checking for
4381 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4382 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4383 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4384 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4385 $as_echo_n "(cached) " >&6
4387 pgac_save_CFLAGS=$CFLAGS
4388 CFLAGS="$pgac_save_CFLAGS -mp1"
4389 ac_save_c_werror_flag=$ac_c_werror_flag
4390 ac_c_werror_flag=yes
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4406 rm -f conftest.$ac_objext
4407 if { (ac_try="$ac_compile"
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414 (eval "$ac_compile") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest.$ac_objext; then
4424 pgac_cv_prog_cc_cflags__mp1=yes
4426 $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 pgac_cv_prog_cc_cflags__mp1=no
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4434 CFLAGS="$pgac_save_CFLAGS"
4436 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4437 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4438 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4439 CFLAGS="$CFLAGS -mp1"
4442 # Make sure strict aliasing is off (though this is said to be the default)
4443 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4444 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4445 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4446 $as_echo_n "(cached) " >&6
4448 pgac_save_CFLAGS=$CFLAGS
4449 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4450 ac_save_c_werror_flag=$ac_c_werror_flag
4451 ac_c_werror_flag=yes
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_c_werror_flag=$ac_save_c_werror_flag
4495 CFLAGS="$pgac_save_CFLAGS"
4497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4498 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4499 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4500 CFLAGS="$CFLAGS -fno-strict-aliasing"
4503 elif test "$PORTNAME" = "aix"; then
4504 # AIX's xlc has to have strict aliasing turned off too
4505 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4506 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4507 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4508 $as_echo_n "(cached) " >&6
4510 pgac_save_CFLAGS=$CFLAGS
4511 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4512 ac_save_c_werror_flag=$ac_c_werror_flag
4513 ac_c_werror_flag=yes
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
4547 pgac_cv_prog_cc_cflags__qnoansialias=yes
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 pgac_cv_prog_cc_cflags__qnoansialias=no
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_c_werror_flag=$ac_save_c_werror_flag
4557 CFLAGS="$pgac_save_CFLAGS"
4559 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4560 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4561 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4562 CFLAGS="$CFLAGS -qnoansialias"
4565 elif test "$PORTNAME" = "hpux"; then
4566 # On some versions of HP-UX, libm functions do not set errno by default.
4567 # Fix that by using +Olibmerrno if the compiler recognizes it.
4568 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4569 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4570 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4571 $as_echo_n "(cached) " >&6
4573 pgac_save_CFLAGS=$CFLAGS
4574 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4575 ac_save_c_werror_flag=$ac_c_werror_flag
4576 ac_c_werror_flag=yes
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4612 $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="$pgac_save_CFLAGS"
4622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4623 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4624 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4625 CFLAGS="$CFLAGS +Olibmerrno"
4630 # supply -g if --enable-debug
4631 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4635 # enable code coverage if --enable-coverage
4636 if test "$enable_coverage" = yes; then
4637 if test "$GCC" = yes; then
4638 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4640 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4641 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4642 { (exit 1); exit 1; }; }
4646 # enable profiling if --enable-profiling
4647 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4648 if test "$GCC" = yes; then
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROFILE_PID_DIR 1
4654 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4656 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4657 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4658 { (exit 1); exit 1; }; }
4662 # We already have this in Makefile.win32, but configure needs it too
4663 if test "$PORTNAME" = "win32"; then
4664 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4667 # Check if the compiler still works with the template settings
4668 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4669 $as_echo_n "checking whether the C compiler still works... " >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693 (eval "$ac_link") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest$ac_exeext && {
4703 test "$cross_compiling" = yes ||
4704 $as_test_x conftest$ac_exeext
4706 { $as_echo "$as_me:$LINENO: result: yes" >&5
4707 $as_echo "yes" >&6; }
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 { $as_echo "$as_me:$LINENO: result: no" >&5
4713 $as_echo "no" >&6; }
4714 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4715 $as_echo "$as_me: error: cannot proceed" >&2;}
4716 { (exit 1); exit 1; }; }
4719 rm -rf conftest.dSYM
4720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4721 conftest$ac_exeext conftest.$ac_ext
4723 # Defend against gcc -ffast-math
4724 if test "$GCC" = yes; then
4725 cat >conftest.$ac_ext <<_ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4735 #ifdef __FAST_MATH__
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compile") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
4762 $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4766 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4767 { (exit 1); exit 1; }; }
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4784 if test -z "$CPP"; then
4785 if test "${ac_cv_prog_CPP+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4788 # Double quotes because CPP needs to be expanded
4789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792 for ac_c_preproc_warn_flag in '' yes
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4807 # include <limits.h>
4809 # include <assert.h>
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4819 $as_echo "$ac_try_echo") >&5
4820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822 grep -v '^ *+' conftest.er1 >conftest.err
4824 cat conftest.err >&5
4825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } >/dev/null && {
4827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4832 $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 # Broken: fails on valid input.
4839 rm -f conftest.err conftest.$ac_ext
4841 # OK, works on sane cases. Now check whether nonexistent headers
4842 # can be detected and how.
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <ac_nonexistent.h>
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null && {
4865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4868 # Broken: success on invalid input.
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 # Passes both tests.
4879 rm -f conftest.err conftest.$ac_ext
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then
4896 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4899 for ac_c_preproc_warn_flag in '' yes
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 # include <limits.h>
4916 # include <assert.h>
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev/null && {
4934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 # Broken: fails on valid input.
4946 rm -f conftest.err conftest.$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <ac_nonexistent.h>
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4975 # Broken: success on invalid input.
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 # Passes both tests.
4986 rm -f conftest.err conftest.$ac_ext
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }; }
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 # Set up TAS assembly code if needed; the template file has now had its
5014 # chance to request this.
5016 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5019 if test "$need_tas" = yes ; then
5028 # Automatic dependency tracking
5032 # Check whether --enable-depend was given.
5033 if test "${enable_depend+set}" = set; then
5034 enableval=$enable_depend;
5043 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5044 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5045 { (exit 1); exit 1; }; }
5059 # Enable assert checks
5063 # Check whether --enable-cassert was given.
5064 if test "${enable_cassert+set}" = set; then
5065 enableval=$enable_cassert;
5069 cat >>confdefs.h <<\_ACEOF
5070 #define USE_ASSERT_CHECKING 1
5078 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5079 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5080 { (exit 1); exit 1; }; }
5093 # Include directories
5096 IFS="${IFS}${PATH_SEPARATOR}"
5097 # SRCH_INC comes from the template file
5098 for dir in $with_includes $SRCH_INC; do
5099 if test -d "$dir"; then
5100 INCLUDES="$INCLUDES -I$dir"
5102 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5103 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5111 # Library directories
5114 IFS="${IFS}${PATH_SEPARATOR}"
5115 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5116 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5117 if test -d "$dir"; then
5118 LIBDIRS="$LIBDIRS -L$dir"
5120 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5121 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5127 # Enable thread-safe client libraries
5129 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5130 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5133 # Check whether --enable-thread-safety was given.
5134 if test "${enable_thread_safety+set}" = set; then
5135 enableval=$enable_thread_safety;
5144 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5145 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5146 { (exit 1); exit 1; }; }
5151 enable_thread_safety=yes
5156 if test "$enable_thread_safety" = yes; then
5158 cat >>confdefs.h <<\_ACEOF
5159 #define ENABLE_THREAD_SAFETY 1
5163 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5164 $as_echo "$enable_thread_safety" >&6; }
5168 # Optionally build Tcl modules (PL/Tcl)
5170 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5171 $as_echo_n "checking whether to build with Tcl... " >&6; }
5175 # Check whether --with-tcl was given.
5176 if test "${with_tcl+set}" = set; then
5186 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5187 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5188 { (exit 1); exit 1; }; }
5198 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5199 $as_echo "$with_tcl" >&6; }
5202 # We see if the path to the Tcl/Tk configuration scripts is specified.
5203 # This will override the use of tclsh to find the paths to search.
5208 # Check whether --with-tclconfig was given.
5209 if test "${with_tclconfig+set}" = set; then
5210 withval=$with_tclconfig;
5213 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5214 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5215 { (exit 1); exit 1; }; }
5218 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5219 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5220 { (exit 1); exit 1; }; }
5232 # Optionally build Perl modules (PL/Perl)
5234 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5235 $as_echo_n "checking whether to build Perl modules... " >&6; }
5239 # Check whether --with-perl was given.
5240 if test "${with_perl+set}" = set; then
5250 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5251 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5252 { (exit 1); exit 1; }; }
5262 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5263 $as_echo "$with_perl" >&6; }
5267 # Optionally build Python modules (PL/Python)
5269 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5270 $as_echo_n "checking whether to build Python modules... " >&6; }
5274 # Check whether --with-python was given.
5275 if test "${with_python+set}" = set; then
5276 withval=$with_python;
5285 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5286 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5287 { (exit 1); exit 1; }; }
5297 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5298 $as_echo "$with_python" >&6; }
5304 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5305 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5309 # Check whether --with-gssapi was given.
5310 if test "${with_gssapi+set}" = set; then
5311 withval=$with_gssapi;
5316 cat >>confdefs.h <<\_ACEOF
5317 #define ENABLE_GSS 1
5320 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5327 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5328 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5329 { (exit 1); exit 1; }; }
5339 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5340 $as_echo "$with_gssapi" >&6; }
5345 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5346 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5350 # Check whether --with-krb5 was given.
5351 if test "${with_krb5+set}" = set; then
5357 cat >>confdefs.h <<\_ACEOF
5361 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5368 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5369 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5370 { (exit 1); exit 1; }; }
5380 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5381 $as_echo "$with_krb5" >&6; }
5388 # Kerberos configuration parameters
5393 # Check whether --with-krb-srvnam was given.
5394 if test "${with_krb_srvnam+set}" = set; then
5395 withval=$with_krb_srvnam;
5398 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5399 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5400 { (exit 1); exit 1; }; }
5403 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5404 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5405 { (exit 1); exit 1; }; }
5413 with_krb_srvnam="postgres"
5418 cat >>confdefs.h <<_ACEOF
5419 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5427 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5428 $as_echo_n "checking whether to build with PAM support... " >&6; }
5432 # Check whether --with-pam was given.
5433 if test "${with_pam+set}" = set; then
5438 cat >>confdefs.h <<\_ACEOF
5447 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5449 { (exit 1); exit 1; }; }
5459 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5460 $as_echo "$with_pam" >&6; }
5466 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5467 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5471 # Check whether --with-ldap was given.
5472 if test "${with_ldap+set}" = set; then
5477 cat >>confdefs.h <<\_ACEOF
5486 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5487 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5488 { (exit 1); exit 1; }; }
5498 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5499 $as_echo "$with_ldap" >&6; }
5505 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5506 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5510 # Check whether --with-bonjour was given.
5511 if test "${with_bonjour+set}" = set; then
5512 withval=$with_bonjour;
5516 cat >>confdefs.h <<\_ACEOF
5517 #define USE_BONJOUR 1
5525 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5526 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5527 { (exit 1); exit 1; }; }
5537 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5538 $as_echo "$with_bonjour" >&6; }
5544 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5545 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5549 # Check whether --with-openssl was given.
5550 if test "${with_openssl+set}" = set; then
5551 withval=$with_openssl;
5555 cat >>confdefs.h <<\_ACEOF
5564 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5565 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5566 { (exit 1); exit 1; }; }
5576 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5577 $as_echo "$with_openssl" >&6; }
5583 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5584 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5588 # Check whether --with-selinux was given.
5589 if test "${with_selinux+set}" = set; then
5590 withval=$with_selinux;
5599 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5601 { (exit 1); exit 1; }; }
5612 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5613 $as_echo "$with_selinux" >&6; }
5621 # Check whether --with-readline was given.
5622 if test "${with_readline+set}" = set; then
5623 withval=$with_readline;
5632 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5634 { (exit 1); exit 1; }; }
5644 # readline on MinGW has problems with backslashes in psql and other bugs.
5645 # This is particularly a problem with non-US code pages.
5646 # Therefore disable its use until we understand the cause. 2004-07-20
5647 if test "$PORTNAME" = "win32"; then
5648 if test "$with_readline" = yes; then
5649 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5650 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5662 # Check whether --with-libedit-preferred was given.
5663 if test "${with_libedit_preferred+set}" = set; then
5664 withval=$with_libedit_preferred;
5673 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5674 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5675 { (exit 1); exit 1; }; }
5680 with_libedit_preferred=no
5693 # Check whether --with-ossp-uuid was given.
5694 if test "${with_ossp_uuid+set}" = set; then
5695 withval=$with_ossp_uuid;
5704 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5705 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5706 { (exit 1); exit 1; }; }
5725 # Check whether --with-libxml was given.
5726 if test "${with_libxml+set}" = set; then
5727 withval=$with_libxml;
5731 cat >>confdefs.h <<\_ACEOF
5732 #define USE_LIBXML 1
5740 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5741 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5742 { (exit 1); exit 1; }; }
5753 if test "$with_libxml" = yes ; then
5754 for ac_prog in xml2-config
5756 # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$XML2_CONFIG"; then
5764 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_XML2_CONFIG="$ac_prog"
5774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5784 if test -n "$XML2_CONFIG"; then
5785 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5786 $as_echo "$XML2_CONFIG" >&6; }
5788 { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$XML2_CONFIG" && break
5796 if test -n "$XML2_CONFIG"; then
5797 for pgac_option in `$XML2_CONFIG --cflags`; do
5798 case $pgac_option in
5799 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5802 for pgac_option in `$XML2_CONFIG --libs`; do
5803 case $pgac_option in
5804 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5818 # Check whether --with-libxslt was given.
5819 if test "${with_libxslt+set}" = set; then
5820 withval=$with_libxslt;
5824 cat >>confdefs.h <<\_ACEOF
5825 #define USE_LIBXSLT 1
5833 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5835 { (exit 1); exit 1; }; }
5855 # Check whether --with-system-tzdata was given.
5856 if test "${with_system_tzdata+set}" = set; then
5857 withval=$with_system_tzdata;
5860 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5861 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5862 { (exit 1); exit 1; }; }
5865 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5866 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5867 { (exit 1); exit 1; }; }
5885 # Check whether --with-zlib was given.
5886 if test "${with_zlib+set}" = set; then
5896 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5897 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5898 { (exit 1); exit 1; }; }
5914 # Assume system is ELF if it predefines __ELF__ as 1,
5915 # otherwise believe host_os based default.
5917 freebsd1*|freebsd2*) elf=no;;
5918 freebsd3*|freebsd4*) elf=yes;;
5922 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5927 if test -z "$GREP"; then
5928 ac_path_GREP_found=false
5929 # Loop through the user's path and test for each of PROGNAME-LIST
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5934 test -z "$as_dir" && as_dir=.
5935 for ac_prog in grep ggrep; do
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5939 # Check for GNU ac_path_GREP and select it if it is found.
5940 # Check for GNU $ac_path_GREP
5941 case `"$ac_path_GREP" --version 2>&1` in
5943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5946 $as_echo_n 0123456789 >"conftest.in"
5949 cat "conftest.in" "conftest.in" >"conftest.tmp"
5950 mv "conftest.tmp" "conftest.in"
5951 cp "conftest.in" "conftest.nl"
5952 $as_echo 'GREP' >> "conftest.nl"
5953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955 ac_count=`expr $ac_count + 1`
5956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5957 # Best one so far, save it but keep looking for a better one
5958 ac_cv_path_GREP="$ac_path_GREP"
5959 ac_path_GREP_max=$ac_count
5961 # 10*(2^10) chars as input seems more than enough
5962 test $ac_count -gt 10 && break
5964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5967 $ac_path_GREP_found && break 3
5972 if test -z "$ac_cv_path_GREP"; then
5973 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5974 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5975 { (exit 1); exit 1; }; }
5978 ac_cv_path_GREP=$GREP
5982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5983 $as_echo "$ac_cv_path_GREP" >&6; }
5984 GREP="$ac_cv_path_GREP"
5987 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5988 $as_echo_n "checking for egrep... " >&6; }
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5993 then ac_cv_path_EGREP="$GREP -E"
5995 if test -z "$EGREP"; then
5996 ac_path_EGREP_found=false
5997 # Loop through the user's path and test for each of PROGNAME-LIST
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6002 test -z "$as_dir" && as_dir=.
6003 for ac_prog in egrep; do
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6007 # Check for GNU ac_path_EGREP and select it if it is found.
6008 # Check for GNU $ac_path_EGREP
6009 case `"$ac_path_EGREP" --version 2>&1` in
6011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6014 $as_echo_n 0123456789 >"conftest.in"
6017 cat "conftest.in" "conftest.in" >"conftest.tmp"
6018 mv "conftest.tmp" "conftest.in"
6019 cp "conftest.in" "conftest.nl"
6020 $as_echo 'EGREP' >> "conftest.nl"
6021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6023 ac_count=`expr $ac_count + 1`
6024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6025 # Best one so far, save it but keep looking for a better one
6026 ac_cv_path_EGREP="$ac_path_EGREP"
6027 ac_path_EGREP_max=$ac_count
6029 # 10*(2^10) chars as input seems more than enough
6030 test $ac_count -gt 10 && break
6032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6035 $ac_path_EGREP_found && break 3
6040 if test -z "$ac_cv_path_EGREP"; then
6041 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6042 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6043 { (exit 1); exit 1; }; }
6046 ac_cv_path_EGREP=$EGREP
6051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053 EGREP="$ac_cv_path_EGREP"
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "yes" >/dev/null 2>&1; then
6071 if test "X$elf" = "Xyes" ; then
6085 CPPFLAGS="$CPPFLAGS $INCLUDES"
6086 LDFLAGS="$LDFLAGS $LIBDIRS"
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6100 if test "$GCC" = yes; then
6101 # Check if gcc -print-prog-name=ld gives a path.
6102 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 $as_echo_n "checking for ld used by GCC... " >&6; }
6106 # gcc leaves a trailing carriage return which upsets mingw
6107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112 # Accept absolute paths.
6113 [\\/]* | [A-Za-z]:[\\/]*)
6114 re_direlt='/[^/][^/]*/\.\./'
6115 # Canonicalize the path of ld
6116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120 test -z "$LD" && LD="$ac_prog"
6123 # If it fails, then pretend we aren't using GCC.
6127 # If it is relative, then search for the first ld in PATH.
6131 elif test "$with_gnu_ld" = yes; then
6132 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 $as_echo_n "checking for GNU ld... " >&6; }
6135 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 $as_echo_n "checking for non-GNU ld... " >&6; }
6138 if test "${ac_cv_path_LD+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6141 if test -z "$LD"; then
6142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143 for ac_dir in $PATH; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146 ac_cv_path_LD="$ac_dir/$ac_prog"
6147 # Check to see if the program is GNU ld. I'd rather use --version,
6148 # but apparently some GNU ld's only accept -v.
6149 # Break only if it was the GNU/non-GNU ld that we prefer.
6150 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6151 test "$with_gnu_ld" != no && break
6153 test "$with_gnu_ld" != yes && break
6159 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6164 if test -n "$LD"; then
6165 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6166 $as_echo "$LD" >&6; }
6168 { $as_echo "$as_me:$LINENO: result: no" >&5
6169 $as_echo "no" >&6; }
6171 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173 { (exit 1); exit 1; }; }
6174 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6181 ac_cv_prog_gnu_ld=yes
6183 ac_cv_prog_gnu_ld=no
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6187 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6188 with_gnu_ld=$ac_cv_prog_gnu_ld
6193 case $host_os in sysv5*)
6194 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6195 $as_echo_n "checking whether ld -R works... " >&6; }
6196 if test "${pgac_cv_prog_ld_R+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6200 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224 (eval "$ac_link") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest$ac_exeext && {
6234 test "$cross_compiling" = yes ||
6235 $as_test_x conftest$ac_exeext
6237 pgac_cv_prog_ld_R=yes
6239 $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 pgac_cv_prog_ld_R=no
6245 rm -rf conftest.dSYM
6246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6247 conftest$ac_exeext conftest.$ac_ext
6248 LDFLAGS=$pgac_save_LDFLAGS
6251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6252 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6253 ld_R_works=$pgac_cv_prog_ld_R
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$RANLIB"; then
6265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6289 { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296 ac_ct_RANLIB=$RANLIB
6297 # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6304 if test -n "$ac_ct_RANLIB"; then
6305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_RANLIB="ranlib"
6315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6329 { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6333 if test "x$ac_ct_RANLIB" = x; then
6336 case $cross_compiling:$ac_tool_warned in
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6342 RANLIB=$ac_ct_RANLIB
6345 RANLIB="$ac_cv_prog_RANLIB"
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_STRIP+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$STRIP"; then
6358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6382 { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_STRIP"; then
6390 # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$ac_ct_STRIP"; then
6398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_STRIP="strip"
6408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_STRIP" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6438 STRIP="$ac_cv_prog_STRIP"
6442 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6443 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6444 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6445 STRIP_STATIC_LIB="$STRIP -x"
6446 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6447 { $as_echo "$as_me:$LINENO: result: yes" >&5
6448 $as_echo "yes" >&6; }
6453 STRIP_STATIC_LIB=$STRIP
6454 STRIP_SHARED_LIB=$STRIP
6455 { $as_echo "$as_me:$LINENO: result: yes" >&5
6456 $as_echo "yes" >&6; }
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ar; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_AR+set}" = set; then
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$AR"; then
6478 ac_cv_prog_AR="$AR" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_AR="${ac_tool_prefix}ar"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 if test -n "$AR"; then
6499 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6500 $as_echo "$AR" >&6; }
6502 { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_AR"; then
6510 # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$ac_ct_AR"; then
6518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_AR="ar"
6528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6538 if test -n "$ac_ct_AR"; then
6539 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6540 $as_echo "$ac_ct_AR" >&6; }
6542 { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$ac_ct_AR" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6561 if test "$PORTNAME" = "win32"; then
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6570 if test -n "$DLLTOOL"; then
6571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 DLLTOOL=$ac_cv_prog_DLLTOOL
6591 if test -n "$DLLTOOL"; then
6592 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6593 $as_echo "$DLLTOOL" >&6; }
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6601 if test -z "$ac_cv_prog_DLLTOOL"; then
6602 ac_ct_DLLTOOL=$DLLTOOL
6603 # Extract the first word of "dlltool", so it can be a program name with args.
6604 set dummy dlltool; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$ac_ct_DLLTOOL"; then
6611 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6631 if test -n "$ac_ct_DLLTOOL"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6633 $as_echo "$ac_ct_DLLTOOL" >&6; }
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6639 if test "x$ac_ct_DLLTOOL" = x; then
6642 case $cross_compiling:$ac_tool_warned in
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6648 DLLTOOL=$ac_ct_DLLTOOL
6651 DLLTOOL="$ac_cv_prog_DLLTOOL"
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$DLLWRAP"; then
6663 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 DLLWRAP=$ac_cv_prog_DLLWRAP
6683 if test -n "$DLLWRAP"; then
6684 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6685 $as_echo "$DLLWRAP" >&6; }
6687 { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6693 if test -z "$ac_cv_prog_DLLWRAP"; then
6694 ac_ct_DLLWRAP=$DLLWRAP
6695 # Extract the first word of "dllwrap", so it can be a program name with args.
6696 set dummy dllwrap; ac_word=$2
6697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$ac_ct_DLLWRAP"; then
6703 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6723 if test -n "$ac_ct_DLLWRAP"; then
6724 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6725 $as_echo "$ac_ct_DLLWRAP" >&6; }
6727 { $as_echo "$as_me:$LINENO: result: no" >&5
6728 $as_echo "no" >&6; }
6731 if test "x$ac_ct_DLLWRAP" = x; then
6734 case $cross_compiling:$ac_tool_warned in
6736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6740 DLLWRAP=$ac_ct_DLLWRAP
6743 DLLWRAP="$ac_cv_prog_DLLWRAP"
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}windres; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_WINDRES+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$WINDRES"; then
6755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 WINDRES=$ac_cv_prog_WINDRES
6775 if test -n "$WINDRES"; then
6776 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6777 $as_echo "$WINDRES" >&6; }
6779 { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6785 if test -z "$ac_cv_prog_WINDRES"; then
6786 ac_ct_WINDRES=$WINDRES
6787 # Extract the first word of "windres", so it can be a program name with args.
6788 set dummy windres; ac_word=$2
6789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6794 if test -n "$ac_ct_WINDRES"; then
6795 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_WINDRES="windres"
6805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6815 if test -n "$ac_ct_WINDRES"; then
6816 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6817 $as_echo "$ac_ct_WINDRES" >&6; }
6819 { $as_echo "$as_me:$LINENO: result: no" >&5
6820 $as_echo "no" >&6; }
6823 if test "x$ac_ct_WINDRES" = x; then
6826 case $cross_compiling:$ac_tool_warned in
6828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6832 WINDRES=$ac_ct_WINDRES
6835 WINDRES="$ac_cv_prog_WINDRES"
6840 # Find a good install program. We prefer a C program (faster),
6841 # so one script is as good as another. But avoid the broken or
6842 # incompatible versions:
6843 # SysV /etc/install, /usr/sbin/install
6844 # SunOS /usr/etc/install
6845 # IRIX /sbin/install
6847 # AmigaOS /C/install, which installs bootblocks on floppy discs
6848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6851 # OS/2's system install, which has a completely different semantic
6852 # ./install, which can be erroneously created by make from ./install.sh.
6853 # Reject install programs that cannot install multiple files.
6854 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6855 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6856 if test -z "$INSTALL"; then
6857 if test "${ac_cv_path_install+set}" = set; then
6858 $as_echo_n "(cached) " >&6
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 # Account for people who put trailing slashes in PATH elements.
6867 ./ | .// | /cC/* | \
6868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6872 # OSF1 and SCO ODT 3.0 have their own names for install.
6873 # Don't use installbsd from OSF since it installs stuff as root
6875 for ac_prog in ginstall scoinst install; do
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6878 if test $ac_prog = install &&
6879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6880 # AIX install. It has an incompatible calling convention.
6882 elif test $ac_prog = install &&
6883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884 # program-specific install script used by HP pwplus--don't use.
6887 rm -rf conftest.one conftest.two conftest.dir
6888 echo one > conftest.one
6889 echo two > conftest.two
6891 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6892 test -s conftest.one && test -s conftest.two &&
6893 test -s conftest.dir/conftest.one &&
6894 test -s conftest.dir/conftest.two
6896 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6909 rm -rf conftest.one conftest.two conftest.dir
6912 if test "${ac_cv_path_install+set}" = set; then
6913 INSTALL=$ac_cv_path_install
6915 # As a last resort, use the slow shell script. Don't cache a
6916 # value for INSTALL within a source directory, because that will
6917 # break other packages using the cache if that directory is
6918 # removed, or if the value is a relative name.
6919 INSTALL=$ac_install_sh
6922 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 $as_echo "$INSTALL" >&6; }
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6933 # When Autoconf chooses install-sh as install program it tries to generate
6934 # a relative path to it in each makefile where it subsitutes it. This clashes
6935 # with our Makefile.global concept. This workaround helps.
6937 *install-sh*) install_bin='';;
6938 *) install_bin=$INSTALL;;
6942 # Extract the first word of "tar", so it can be a program name with args.
6943 set dummy tar; ac_word=$2
6944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_path_TAR+set}" = set; then
6947 $as_echo_n "(cached) " >&6
6951 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 if test -n "$TAR"; then
6974 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6975 $as_echo "$TAR" >&6; }
6977 { $as_echo "$as_me:$LINENO: result: no" >&5
6978 $as_echo "no" >&6; }
6982 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6983 $as_echo_n "checking whether ln -s works... " >&6; }
6985 if test "$LN_S" = "ln -s"; then
6986 { $as_echo "$as_me:$LINENO: result: yes" >&5
6987 $as_echo "yes" >&6; }
6989 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6990 $as_echo "no, using $LN_S" >&6; }
6993 for ac_prog in gawk mawk nawk awk
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_AWK+set}" = set; then
7000 $as_echo_n "(cached) " >&6
7002 if test -n "$AWK"; then
7003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_AWK="$ac_prog"
7013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 if test -n "$AWK"; then
7024 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7025 $as_echo "$AWK" >&6; }
7027 { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7032 test -n "$AWK" && break
7035 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7037 if test -z "$MKDIR_P"; then
7038 if test "${ac_cv_path_mkdir+set}" = set; then
7039 $as_echo_n "(cached) " >&6
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7045 test -z "$as_dir" && as_dir=.
7046 for ac_prog in mkdir gmkdir; do
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7050 'mkdir (GNU coreutils) '* | \
7051 'mkdir (coreutils) '* | \
7052 'mkdir (fileutils) '4.1*)
7053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7063 if test "${ac_cv_path_mkdir+set}" = set; then
7064 MKDIR_P="$ac_cv_path_mkdir -p"
7066 # As a last resort, use the slow shell script. Don't cache a
7067 # value for MKDIR_P within a source directory, because that will
7068 # break other packages using the cache if that directory is
7069 # removed, or if the value is a relative name.
7070 test -d ./--version && rmdir ./--version
7071 MKDIR_P="$ac_install_sh -d"
7074 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7075 $as_echo "$MKDIR_P" >&6; }
7077 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7078 # a relative path to it in each makefile where it subsitutes it. This clashes
7079 # with our Makefile.global concept. This workaround helps.
7081 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7084 # Let the user override the search
7085 if test -z "$BISON"; then
7086 for ac_prog in bison
7088 # Extract the first word of "$ac_prog", so it can be a program name with args.
7089 set dummy $ac_prog; ac_word=$2
7090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if test "${ac_cv_path_BISON+set}" = set; then
7093 $as_echo_n "(cached) " >&6
7097 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 BISON=$ac_cv_path_BISON
7119 if test -n "$BISON"; then
7120 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7121 $as_echo "$BISON" >&6; }
7123 { $as_echo "$as_me:$LINENO: result: no" >&5
7124 $as_echo "no" >&6; }
7128 test -n "$BISON" && break
7133 if test "$BISON"; then
7134 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7135 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7136 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7137 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7139 { $as_echo "$as_me:$LINENO: WARNING:
7140 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7141 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7142 $as_echo "$as_me: WARNING:
7143 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7144 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7149 if test -z "$BISON"; then
7150 { $as_echo "$as_me:$LINENO: WARNING:
7151 *** Without Bison you will not be able to build PostgreSQL from Git nor
7152 *** change any of the parser definition files. You can obtain Bison from
7153 *** a GNU mirror site. (If you are using the official distribution of
7154 *** PostgreSQL then you do not need to worry about this, because the Bison
7155 *** output is pre-generated.)" >&5
7156 $as_echo "$as_me: WARNING:
7157 *** Without Bison you will not be able to build PostgreSQL from Git nor
7158 *** change any of the parser definition files. You can obtain Bison from
7159 *** a GNU mirror site. (If you are using the official distribution of
7160 *** PostgreSQL then you do not need to worry about this, because the Bison
7161 *** output is pre-generated.)" >&2;}
7163 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7166 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7167 $as_echo_n "checking for flex... " >&6; }
7168 if test "${pgac_cv_path_flex+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7171 # Let the user override the test
7172 if test -n "$FLEX"; then
7173 pgac_cv_path_flex=$FLEX
7177 for pgac_dir in $PATH; do
7179 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7182 for pgac_prog in flex lex; do
7183 pgac_candidate="$pgac_dir/$pgac_prog"
7184 if test -f "$pgac_candidate" \
7185 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7187 echo '%%' > conftest.l
7188 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7189 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7190 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7192 pgac_cv_path_flex=$pgac_candidate
7195 { $as_echo "$as_me:$LINENO: WARNING:
7196 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7197 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7198 $as_echo "$as_me: WARNING:
7199 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7200 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7206 rm -f conftest.l lex.yy.c
7207 : ${pgac_cv_path_flex=no}
7211 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7212 $as_echo "$pgac_cv_path_flex" >&6; }
7213 if test x"$pgac_cv_path_flex" = x"no"; then
7214 { $as_echo "$as_me:$LINENO: WARNING:
7215 *** Without Flex you will not be able to build PostgreSQL from Git nor
7216 *** change any of the scanner definition files. You can obtain Flex from
7217 *** a GNU mirror site. (If you are using the official distribution of
7218 *** PostgreSQL then you do not need to worry about this because the Flex
7219 *** output is pre-generated.)" >&5
7220 $as_echo "$as_me: WARNING:
7221 *** Without Flex you will not be able to build PostgreSQL from Git nor
7222 *** change any of the scanner definition files. You can obtain Flex from
7223 *** a GNU mirror site. (If you are using the official distribution of
7224 *** PostgreSQL then you do not need to worry about this because the Flex
7225 *** output is pre-generated.)" >&2;}
7229 FLEX=$pgac_cv_path_flex
7230 pgac_flex_version=`$FLEX --version 2>/dev/null`
7231 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7232 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7239 # Let the user override the search
7240 if test -z "$PERL"; then
7241 # Extract the first word of "perl", so it can be a program name with args.
7242 set dummy perl; ac_word=$2
7243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_path_PERL+set}" = set; then
7246 $as_echo_n "(cached) " >&6
7250 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 PERL=$ac_cv_path_PERL
7272 if test -n "$PERL"; then
7273 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7274 $as_echo "$PERL" >&6; }
7276 { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7283 if test "$PERL"; then
7284 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'`
7285 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7286 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7287 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7288 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7290 { $as_echo "$as_me:$LINENO: WARNING:
7291 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7292 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7293 $as_echo "$as_me: WARNING:
7294 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7295 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7300 if test -z "$PERL"; then
7301 { $as_echo "$as_me:$LINENO: WARNING:
7302 *** Without Perl you will not be able to build PostgreSQL from Git.
7303 *** You can obtain Perl from any CPAN mirror site.
7304 *** (If you are using the official distribution of PostgreSQL then you do not
7305 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7306 $as_echo "$as_me: WARNING:
7307 *** Without Perl you will not be able to build PostgreSQL from Git.
7308 *** You can obtain Perl from any CPAN mirror site.
7309 *** (If you are using the official distribution of PostgreSQL then you do not
7310 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7313 if test "$with_perl" = yes; then
7314 if test -z "$PERL"; then
7315 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7316 $as_echo "$as_me: error: Perl not found" >&2;}
7317 { (exit 1); exit 1; }; }
7320 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7321 $as_echo_n "checking for Perl archlibexp... " >&6; }
7322 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7324 $as_echo "$perl_archlibexp" >&6; }
7325 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7326 $as_echo_n "checking for Perl privlibexp... " >&6; }
7327 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7328 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7329 $as_echo "$perl_privlibexp" >&6; }
7330 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7331 $as_echo_n "checking for Perl useshrplib... " >&6; }
7332 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7333 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7334 $as_echo "$perl_useshrplib" >&6; }
7336 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7337 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7338 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7339 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7340 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7341 if test -z "$perl_embed_ldflags" ; then
7342 { $as_echo "$as_me:$LINENO: result: no" >&5
7343 $as_echo "no" >&6; }
7344 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7345 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7347 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7348 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7350 { (exit 1); exit 1; }; }
7352 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7353 $as_echo "$perl_embed_ldflags" >&6; }
7358 if test "$with_python" = yes; then
7359 # Extract the first word of "python", so it can be a program name with args.
7360 set dummy python; ac_word=$2
7361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_path_PYTHON+set}" = set; then
7364 $as_echo_n "(cached) " >&6
7368 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 PYTHON=$ac_cv_path_PYTHON
7390 if test -n "$PYTHON"; then
7391 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7392 $as_echo "$PYTHON" >&6; }
7394 { $as_echo "$as_me:$LINENO: result: no" >&5
7395 $as_echo "no" >&6; }
7399 if test x"$PYTHON" = x""; then
7400 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7401 $as_echo "$as_me: error: Python not found" >&2;}
7402 { (exit 1); exit 1; }; }
7406 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7407 $as_echo_n "checking for Python distutils module... " >&6; }
7408 if "${PYTHON}" -c 'import distutils' 2>&5
7410 { $as_echo "$as_me:$LINENO: result: yes" >&5
7411 $as_echo "yes" >&6; }
7413 { $as_echo "$as_me:$LINENO: result: no" >&5
7414 $as_echo "no" >&6; }
7415 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7416 $as_echo "$as_me: error: distutils module not found" >&2;}
7417 { (exit 1); exit 1; }; }
7419 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7420 $as_echo_n "checking Python configuration directory... " >&6; }
7421 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7422 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7423 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7424 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7425 $as_echo "$python_configdir" >&6; }
7427 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7428 $as_echo_n "checking Python include directories... " >&6; }
7429 python_includespec=`${PYTHON} -c "
7430 import distutils.sysconfig
7431 a = '-I' + distutils.sysconfig.get_python_inc(False)
7432 b = '-I' + distutils.sysconfig.get_python_inc(True)
7436 print(a + ' ' + b)"`
7437 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7438 $as_echo "$python_includespec" >&6; }
7442 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7443 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7445 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7446 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7447 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7448 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7450 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7452 # New way: use the official shared library
7453 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7454 python_libspec="-L${python_libdir} -l${ldlibrary}"
7456 # Old way: use libpython from python_configdir
7457 python_libdir="${python_configdir}"
7458 # LDVERSION was introduced in Python 3.2.
7459 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7460 if test x"${python_ldversion}" = x""; then
7461 python_ldversion=$python_version
7463 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7466 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7468 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7469 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7472 # threaded python is not supported on OpenBSD
7473 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7474 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7475 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7476 if test "$pythreads" = "1"; then
7477 { $as_echo "$as_me:$LINENO: result: yes" >&5
7478 $as_echo "yes" >&6; }
7481 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7482 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7483 { (exit 1); exit 1; }; }
7487 { $as_echo "$as_me:$LINENO: result: no" >&5
7488 $as_echo "no" >&6; }
7494 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7495 # Extract the first word of "zic", so it can be a program name with args.
7496 set dummy zic; ac_word=$2
7497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if test "${ac_cv_path_ZIC+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7504 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 if test -n "$ZIC"; then
7527 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7528 $as_echo "$ZIC" >&6; }
7530 { $as_echo "$as_me:$LINENO: result: no" >&5
7531 $as_echo "no" >&6; }
7535 if test -z "$ZIC"; then
7536 { { $as_echo "$as_me:$LINENO: error:
7537 When cross-compiling, either use the option --with-system-tzdata to use
7538 existing time-zone data, or set the environment variable ZIC to a zic
7539 program to use during the build." >&5
7540 $as_echo "$as_me: error:
7541 When cross-compiling, either use the option --with-system-tzdata to use
7542 existing time-zone data, or set the environment variable ZIC to a zic
7543 program to use during the build." >&2;}
7544 { (exit 1); exit 1; }; }
7552 ## Most libraries are included only if they demonstrably provide a function
7553 ## we need, but libm is an exception: always include it, because there are
7554 ## too many compilers that play cute optimization games that will break
7555 ## probes for standard functions such as pow().
7559 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7560 $as_echo_n "checking for main in -lm... " >&6; }
7561 if test "${ac_cv_lib_m_main+set}" = set; then
7562 $as_echo_n "(cached) " >&6
7564 ac_check_lib_save_LIBS=$LIBS
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590 (eval "$ac_link") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest$ac_exeext && {
7600 test "$cross_compiling" = yes ||
7601 $as_test_x conftest$ac_exeext
7603 ac_cv_lib_m_main=yes
7605 $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7611 rm -rf conftest.dSYM
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7613 conftest$ac_exeext conftest.$ac_ext
7614 LIBS=$ac_check_lib_save_LIBS
7616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7617 $as_echo "$ac_cv_lib_m_main" >&6; }
7618 if test "x$ac_cv_lib_m_main" = x""yes; then
7619 cat >>confdefs.h <<_ACEOF
7627 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7628 $as_echo_n "checking for library containing setproctitle... " >&6; }
7629 if test "${ac_cv_search_setproctitle+set}" = set; then
7630 $as_echo_n "(cached) " >&6
7632 ac_func_search_save_LIBS=$LIBS
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7640 /* Override any GCC internal prototype to avoid an error.
7641 Use char because int might match the return type of a GCC
7642 builtin and then its argument prototype would still apply. */
7646 char setproctitle ();
7650 return setproctitle ();
7655 for ac_lib in '' util; do
7656 if test -z "$ac_lib"; then
7657 ac_res="none required"
7660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_link") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest$ac_exeext && {
7680 test "$cross_compiling" = yes ||
7681 $as_test_x conftest$ac_exeext
7683 ac_cv_search_setproctitle=$ac_res
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -rf conftest.dSYM
7692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694 if test "${ac_cv_search_setproctitle+set}" = set; then
7698 if test "${ac_cv_search_setproctitle+set}" = set; then
7701 ac_cv_search_setproctitle=no
7704 LIBS=$ac_func_search_save_LIBS
7706 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7707 $as_echo "$ac_cv_search_setproctitle" >&6; }
7708 ac_res=$ac_cv_search_setproctitle
7709 if test "$ac_res" != no; then
7710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7714 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7715 $as_echo_n "checking for library containing dlopen... " >&6; }
7716 if test "${ac_cv_search_dlopen+set}" = set; then
7717 $as_echo_n "(cached) " >&6
7719 ac_func_search_save_LIBS=$LIBS
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7742 for ac_lib in '' dl; do
7743 if test -z "$ac_lib"; then
7744 ac_res="none required"
7747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_link") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest$ac_exeext && {
7767 test "$cross_compiling" = yes ||
7768 $as_test_x conftest$ac_exeext
7770 ac_cv_search_dlopen=$ac_res
7772 $as_echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7778 rm -rf conftest.dSYM
7779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7781 if test "${ac_cv_search_dlopen+set}" = set; then
7785 if test "${ac_cv_search_dlopen+set}" = set; then
7788 ac_cv_search_dlopen=no
7791 LIBS=$ac_func_search_save_LIBS
7793 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7794 $as_echo "$ac_cv_search_dlopen" >&6; }
7795 ac_res=$ac_cv_search_dlopen
7796 if test "$ac_res" != no; then
7797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7801 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7802 $as_echo_n "checking for library containing socket... " >&6; }
7803 if test "${ac_cv_search_socket+set}" = set; then
7804 $as_echo_n "(cached) " >&6
7806 ac_func_search_save_LIBS=$LIBS
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 /* Override any GCC internal prototype to avoid an error.
7815 Use char because int might match the return type of a GCC
7816 builtin and then its argument prototype would still apply. */
7829 for ac_lib in '' socket wsock32; do
7830 if test -z "$ac_lib"; then
7831 ac_res="none required"
7834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (ac_try="$ac_link"
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7843 $as_echo "$ac_try_echo") >&5
7844 (eval "$ac_link") 2>conftest.er1
7846 grep -v '^ *+' conftest.er1 >conftest.err
7848 cat conftest.err >&5
7849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest$ac_exeext && {
7854 test "$cross_compiling" = yes ||
7855 $as_test_x conftest$ac_exeext
7857 ac_cv_search_socket=$ac_res
7859 $as_echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7865 rm -rf conftest.dSYM
7866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7868 if test "${ac_cv_search_socket+set}" = set; then
7872 if test "${ac_cv_search_socket+set}" = set; then
7875 ac_cv_search_socket=no
7878 LIBS=$ac_func_search_save_LIBS
7880 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7881 $as_echo "$ac_cv_search_socket" >&6; }
7882 ac_res=$ac_cv_search_socket
7883 if test "$ac_res" != no; then
7884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7888 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7889 $as_echo_n "checking for library containing shl_load... " >&6; }
7890 if test "${ac_cv_search_shl_load+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7893 ac_func_search_save_LIBS=$LIBS
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7916 for ac_lib in '' dld; do
7917 if test -z "$ac_lib"; then
7918 ac_res="none required"
7921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_link") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest$ac_exeext && {
7941 test "$cross_compiling" = yes ||
7942 $as_test_x conftest$ac_exeext
7944 ac_cv_search_shl_load=$ac_res
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7952 rm -rf conftest.dSYM
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 if test "${ac_cv_search_shl_load+set}" = set; then
7959 if test "${ac_cv_search_shl_load+set}" = set; then
7962 ac_cv_search_shl_load=no
7965 LIBS=$ac_func_search_save_LIBS
7967 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7968 $as_echo "$ac_cv_search_shl_load" >&6; }
7969 ac_res=$ac_cv_search_shl_load
7970 if test "$ac_res" != no; then
7971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7975 # We only use libld in port/dynloader/aix.c
7978 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7979 $as_echo_n "checking for library containing ldopen... " >&6; }
7980 if test "${ac_cv_search_ldopen+set}" = set; then
7981 $as_echo_n "(cached) " >&6
7983 ac_func_search_save_LIBS=$LIBS
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
8006 for ac_lib in '' ld; do
8007 if test -z "$ac_lib"; then
8008 ac_res="none required"
8011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (ac_try="$ac_link"
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8020 $as_echo "$ac_try_echo") >&5
8021 (eval "$ac_link") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest$ac_exeext && {
8031 test "$cross_compiling" = yes ||
8032 $as_test_x conftest$ac_exeext
8034 ac_cv_search_ldopen=$ac_res
8036 $as_echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8042 rm -rf conftest.dSYM
8043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8045 if test "${ac_cv_search_ldopen+set}" = set; then
8049 if test "${ac_cv_search_ldopen+set}" = set; then
8052 ac_cv_search_ldopen=no
8055 LIBS=$ac_func_search_save_LIBS
8057 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8058 $as_echo "$ac_cv_search_ldopen" >&6; }
8059 ac_res=$ac_cv_search_ldopen
8060 if test "$ac_res" != no; then
8061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8067 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8068 $as_echo_n "checking for library containing getopt_long... " >&6; }
8069 if test "${ac_cv_search_getopt_long+set}" = set; then
8070 $as_echo_n "(cached) " >&6
8072 ac_func_search_save_LIBS=$LIBS
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8080 /* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8086 char getopt_long ();
8090 return getopt_long ();
8095 for ac_lib in '' getopt gnugetopt; do
8096 if test -z "$ac_lib"; then
8097 ac_res="none required"
8100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (ac_try="$ac_link"
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8109 $as_echo "$ac_try_echo") >&5
8110 (eval "$ac_link") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest$ac_exeext && {
8120 test "$cross_compiling" = yes ||
8121 $as_test_x conftest$ac_exeext
8123 ac_cv_search_getopt_long=$ac_res
8125 $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8131 rm -rf conftest.dSYM
8132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 if test "${ac_cv_search_getopt_long+set}" = set; then
8138 if test "${ac_cv_search_getopt_long+set}" = set; then
8141 ac_cv_search_getopt_long=no
8144 LIBS=$ac_func_search_save_LIBS
8146 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8147 $as_echo "$ac_cv_search_getopt_long" >&6; }
8148 ac_res=$ac_cv_search_getopt_long
8149 if test "$ac_res" != no; then
8150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8154 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8155 $as_echo_n "checking for library containing crypt... " >&6; }
8156 if test "${ac_cv_search_crypt+set}" = set; then
8157 $as_echo_n "(cached) " >&6
8159 ac_func_search_save_LIBS=$LIBS
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8182 for ac_lib in '' crypt; do
8183 if test -z "$ac_lib"; then
8184 ac_res="none required"
8187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197 (eval "$ac_link") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest$ac_exeext && {
8207 test "$cross_compiling" = yes ||
8208 $as_test_x conftest$ac_exeext
8210 ac_cv_search_crypt=$ac_res
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8218 rm -rf conftest.dSYM
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8221 if test "${ac_cv_search_crypt+set}" = set; then
8225 if test "${ac_cv_search_crypt+set}" = set; then
8228 ac_cv_search_crypt=no
8231 LIBS=$ac_func_search_save_LIBS
8233 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8234 $as_echo "$ac_cv_search_crypt" >&6; }
8235 ac_res=$ac_cv_search_crypt
8236 if test "$ac_res" != no; then
8237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8242 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8243 $as_echo_n "checking for library containing fdatasync... " >&6; }
8244 if test "${ac_cv_search_fdatasync+set}" = set; then
8245 $as_echo_n "(cached) " >&6
8247 ac_func_search_save_LIBS=$LIBS
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8255 /* Override any GCC internal prototype to avoid an error.
8256 Use char because int might match the return type of a GCC
8257 builtin and then its argument prototype would still apply. */
8265 return fdatasync ();
8270 for ac_lib in '' rt posix4; do
8271 if test -z "$ac_lib"; then
8272 ac_res="none required"
8275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (ac_try="$ac_link"
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284 $as_echo "$ac_try_echo") >&5
8285 (eval "$ac_link") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest$ac_exeext && {
8295 test "$cross_compiling" = yes ||
8296 $as_test_x conftest$ac_exeext
8298 ac_cv_search_fdatasync=$ac_res
8300 $as_echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8306 rm -rf conftest.dSYM
8307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8309 if test "${ac_cv_search_fdatasync+set}" = set; then
8313 if test "${ac_cv_search_fdatasync+set}" = set; then
8316 ac_cv_search_fdatasync=no
8319 LIBS=$ac_func_search_save_LIBS
8321 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8322 $as_echo "$ac_cv_search_fdatasync" >&6; }
8323 ac_res=$ac_cv_search_fdatasync
8324 if test "$ac_res" != no; then
8325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8329 # Required for thread_test.c on Solaris 2.5:
8330 # Other ports use it too (HP-UX) so test unconditionally
8331 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8332 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8333 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8334 $as_echo_n "(cached) " >&6
8336 ac_func_search_save_LIBS=$LIBS
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8344 /* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply. */
8350 char gethostbyname_r ();
8354 return gethostbyname_r ();
8359 for ac_lib in '' nsl; do
8360 if test -z "$ac_lib"; then
8361 ac_res="none required"
8364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (ac_try="$ac_link"
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374 (eval "$ac_link") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest$ac_exeext && {
8384 test "$cross_compiling" = yes ||
8385 $as_test_x conftest$ac_exeext
8387 ac_cv_search_gethostbyname_r=$ac_res
8389 $as_echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -rf conftest.dSYM
8396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8398 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8402 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8405 ac_cv_search_gethostbyname_r=no
8408 LIBS=$ac_func_search_save_LIBS
8410 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8411 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8412 ac_res=$ac_cv_search_gethostbyname_r
8413 if test "$ac_res" != no; then
8414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8419 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8420 $as_echo_n "checking for library containing shmget... " >&6; }
8421 if test "${ac_cv_search_shmget+set}" = set; then
8422 $as_echo_n "(cached) " >&6
8424 ac_func_search_save_LIBS=$LIBS
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8447 for ac_lib in '' cygipc; do
8448 if test -z "$ac_lib"; then
8449 ac_res="none required"
8452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462 (eval "$ac_link") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest$ac_exeext && {
8472 test "$cross_compiling" = yes ||
8473 $as_test_x conftest$ac_exeext
8475 ac_cv_search_shmget=$ac_res
8477 $as_echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8483 rm -rf conftest.dSYM
8484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486 if test "${ac_cv_search_shmget+set}" = set; then
8490 if test "${ac_cv_search_shmget+set}" = set; then
8493 ac_cv_search_shmget=no
8496 LIBS=$ac_func_search_save_LIBS
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8499 $as_echo "$ac_cv_search_shmget" >&6; }
8500 ac_res=$ac_cv_search_shmget
8501 if test "$ac_res" != no; then
8502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8507 if test "$with_readline" = yes; then
8510 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8511 $as_echo_n "checking for library containing readline... " >&6; }
8512 if test "${pgac_cv_check_readline+set}" = set; then
8513 $as_echo_n "(cached) " >&6
8515 pgac_cv_check_readline=no
8516 pgac_save_LIBS=$LIBS
8517 if test x"$with_libedit_preferred" != x"yes"
8518 then READLINE_ORDER="-lreadline -ledit"
8519 else READLINE_ORDER="-ledit -lreadline"
8521 for pgac_rllib in $READLINE_ORDER ; do
8522 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8523 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 /* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553 $as_echo "$ac_try_echo") >&5
8554 (eval "$ac_link") 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } && {
8561 test -z "$ac_c_werror_flag" ||
8562 test ! -s conftest.err
8563 } && test -s conftest$ac_exeext && {
8564 test "$cross_compiling" = yes ||
8565 $as_test_x conftest$ac_exeext
8568 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8569 # recognize dependent libraries; assume curses is needed if we didn't
8570 # find any dependency.
8572 netbsd* | openbsd* | irix*)
8573 if test x"$pgac_lib" = x"" ; then
8574 pgac_lib=" -lcurses"
8578 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8588 rm -rf conftest.dSYM
8589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8590 conftest$ac_exeext conftest.$ac_ext
8592 if test "$pgac_cv_check_readline" != no ; then
8596 LIBS=$pgac_save_LIBS
8599 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8600 $as_echo "$pgac_cv_check_readline" >&6; }
8601 if test "$pgac_cv_check_readline" != no ; then
8602 LIBS="$pgac_cv_check_readline $LIBS"
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_LIBREADLINE 1
8611 if test x"$pgac_cv_check_readline" = x"no"; then
8612 { { $as_echo "$as_me:$LINENO: error: readline library not found
8613 If you have readline already installed, see config.log for details on the
8614 failure. It is possible the compiler isn't looking in the proper directory.
8615 Use --without-readline to disable readline support." >&5
8616 $as_echo "$as_me: error: readline library not found
8617 If you have readline already installed, see config.log for details on the
8618 failure. It is possible the compiler isn't looking in the proper directory.
8619 Use --without-readline to disable readline support." >&2;}
8620 { (exit 1); exit 1; }; }
8624 if test "$with_zlib" = yes; then
8626 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8627 $as_echo_n "checking for inflate in -lz... " >&6; }
8628 if test "${ac_cv_lib_z_inflate+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8631 ac_check_lib_save_LIBS=$LIBS
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8640 /* Override any GCC internal prototype to avoid an error.
8641 Use char because int might match the return type of a GCC
8642 builtin and then its argument prototype would still apply. */
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (ac_try="$ac_link"
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663 (eval "$ac_link") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest$ac_exeext && {
8673 test "$cross_compiling" = yes ||
8674 $as_test_x conftest$ac_exeext
8676 ac_cv_lib_z_inflate=yes
8678 $as_echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_cv_lib_z_inflate=no
8684 rm -rf conftest.dSYM
8685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8686 conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8690 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8691 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8692 cat >>confdefs.h <<_ACEOF
8699 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8700 If you have zlib already installed, see config.log for details on the
8701 failure. It is possible the compiler isn't looking in the proper directory.
8702 Use --without-zlib to disable zlib support." >&5
8703 $as_echo "$as_me: error: zlib library not found
8704 If you have zlib already installed, see config.log for details on the
8705 failure. It is possible the compiler isn't looking in the proper directory.
8706 Use --without-zlib to disable zlib support." >&2;}
8707 { (exit 1); exit 1; }; }
8712 if test "$enable_spinlocks" = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define HAVE_SPINLOCKS 1
8719 { $as_echo "$as_me:$LINENO: WARNING:
8720 *** Not using spinlocks will cause poor performance." >&5
8721 $as_echo "$as_me: WARNING:
8722 *** Not using spinlocks will cause poor performance." >&2;}
8725 if test "$with_gssapi" = yes ; then
8726 if test "$PORTNAME" != "win32"; then
8727 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8728 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8729 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8730 $as_echo_n "(cached) " >&6
8732 ac_func_search_save_LIBS=$LIBS
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 /* Override any GCC internal prototype to avoid an error.
8741 Use char because int might match the return type of a GCC
8742 builtin and then its argument prototype would still apply. */
8746 char gss_init_sec_context ();
8750 return gss_init_sec_context ();
8755 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8756 if test -z "$ac_lib"; then
8757 ac_res="none required"
8760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770 (eval "$ac_link") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest$ac_exeext && {
8780 test "$cross_compiling" = yes ||
8781 $as_test_x conftest$ac_exeext
8783 ac_cv_search_gss_init_sec_context=$ac_res
8785 $as_echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8791 rm -rf conftest.dSYM
8792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8794 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8798 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8801 ac_cv_search_gss_init_sec_context=no
8804 LIBS=$ac_func_search_save_LIBS
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8807 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8808 ac_res=$ac_cv_search_gss_init_sec_context
8809 if test "$ac_res" != no; then
8810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8813 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8814 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8815 { (exit 1); exit 1; }; }
8819 LIBS="$LIBS -lgssapi32"
8823 if test "$with_krb5" = yes ; then
8824 if test "$PORTNAME" != "win32"; then
8825 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8826 $as_echo_n "checking for library containing com_err... " >&6; }
8827 if test "${ac_cv_search_com_err+set}" = set; then
8828 $as_echo_n "(cached) " >&6
8830 ac_func_search_save_LIBS=$LIBS
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8838 /* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply. */
8853 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8854 if test -z "$ac_lib"; then
8855 ac_res="none required"
8858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868 (eval "$ac_link") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest$ac_exeext && {
8878 test "$cross_compiling" = yes ||
8879 $as_test_x conftest$ac_exeext
8881 ac_cv_search_com_err=$ac_res
8883 $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8889 rm -rf conftest.dSYM
8890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8892 if test "${ac_cv_search_com_err+set}" = set; then
8896 if test "${ac_cv_search_com_err+set}" = set; then
8899 ac_cv_search_com_err=no
8902 LIBS=$ac_func_search_save_LIBS
8904 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8905 $as_echo "$ac_cv_search_com_err" >&6; }
8906 ac_res=$ac_cv_search_com_err
8907 if test "$ac_res" != no; then
8908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8911 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8912 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8913 { (exit 1); exit 1; }; }
8916 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8917 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8918 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8919 $as_echo_n "(cached) " >&6
8921 ac_func_search_save_LIBS=$LIBS
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any GCC internal prototype to avoid an error.
8930 Use char because int might match the return type of a GCC
8931 builtin and then its argument prototype would still apply. */
8935 char krb5_sendauth ();
8939 return krb5_sendauth ();
8944 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8945 if test -z "$ac_lib"; then
8946 ac_res="none required"
8949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (ac_try="$ac_link"
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958 $as_echo "$ac_try_echo") >&5
8959 (eval "$ac_link") 2>conftest.er1
8961 grep -v '^ *+' conftest.er1 >conftest.err
8963 cat conftest.err >&5
8964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest$ac_exeext && {
8969 test "$cross_compiling" = yes ||
8970 $as_test_x conftest$ac_exeext
8972 ac_cv_search_krb5_sendauth=$ac_res
8974 $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8980 rm -rf conftest.dSYM
8981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8987 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8990 ac_cv_search_krb5_sendauth=no
8993 LIBS=$ac_func_search_save_LIBS
8995 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8996 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8997 ac_res=$ac_cv_search_krb5_sendauth
8998 if test "$ac_res" != no; then
8999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9002 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9003 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9004 { (exit 1); exit 1; }; }
9008 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9009 $as_echo_n "checking for library containing com_err... " >&6; }
9010 if test "${ac_cv_search_com_err+set}" = set; then
9011 $as_echo_n "(cached) " >&6
9013 ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 /* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
9036 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9050 $as_echo "$ac_try_echo") >&5
9051 (eval "$ac_link") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest$ac_exeext && {
9061 test "$cross_compiling" = yes ||
9062 $as_test_x conftest$ac_exeext
9064 ac_cv_search_com_err=$ac_res
9066 $as_echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9072 rm -rf conftest.dSYM
9073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9075 if test "${ac_cv_search_com_err+set}" = set; then
9079 if test "${ac_cv_search_com_err+set}" = set; then
9082 ac_cv_search_com_err=no
9085 LIBS=$ac_func_search_save_LIBS
9087 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9088 $as_echo "$ac_cv_search_com_err" >&6; }
9089 ac_res=$ac_cv_search_com_err
9090 if test "$ac_res" != no; then
9091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9094 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9095 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9096 { (exit 1); exit 1; }; }
9102 if test "$with_openssl" = yes ; then
9103 if test "$PORTNAME" != "win32"; then
9105 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9106 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9107 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9108 $as_echo_n "(cached) " >&6
9110 ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lcrypto $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9125 char CRYPTO_new_ex_data ();
9129 return CRYPTO_new_ex_data ();
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9141 $as_echo "$ac_try_echo") >&5
9142 (eval "$ac_link") 2>conftest.er1
9144 grep -v '^ *+' conftest.er1 >conftest.err
9146 cat conftest.err >&5
9147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && {
9149 test -z "$ac_c_werror_flag" ||
9150 test ! -s conftest.err
9151 } && test -s conftest$ac_exeext && {
9152 test "$cross_compiling" = yes ||
9153 $as_test_x conftest$ac_exeext
9155 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9157 $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9163 rm -rf conftest.dSYM
9164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9169 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9170 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_LIBCRYPTO 1
9175 LIBS="-lcrypto $LIBS"
9178 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9179 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9180 { (exit 1); exit 1; }; }
9184 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9185 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9186 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9187 $as_echo_n "(cached) " >&6
9189 ac_check_lib_save_LIBS=$LIBS
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9204 char SSL_library_init ();
9208 return SSL_library_init ();
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221 (eval "$ac_link") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest$ac_exeext && {
9231 test "$cross_compiling" = yes ||
9232 $as_test_x conftest$ac_exeext
9234 ac_cv_lib_ssl_SSL_library_init=yes
9236 $as_echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_cv_lib_ssl_SSL_library_init=no
9242 rm -rf conftest.dSYM
9243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9244 conftest$ac_exeext conftest.$ac_ext
9245 LIBS=$ac_check_lib_save_LIBS
9247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9248 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9249 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_LIBSSL 1
9257 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9258 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9259 { (exit 1); exit 1; }; }
9263 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9264 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9265 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9266 $as_echo_n "(cached) " >&6
9268 ac_func_search_save_LIBS=$LIBS
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9282 char CRYPTO_new_ex_data ();
9286 return CRYPTO_new_ex_data ();
9291 for ac_lib in '' eay32 crypto; do
9292 if test -z "$ac_lib"; then
9293 ac_res="none required"
9296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (ac_try="$ac_link"
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9305 $as_echo "$ac_try_echo") >&5
9306 (eval "$ac_link") 2>conftest.er1
9308 grep -v '^ *+' conftest.er1 >conftest.err
9310 cat conftest.err >&5
9311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && {
9313 test -z "$ac_c_werror_flag" ||
9314 test ! -s conftest.err
9315 } && test -s conftest$ac_exeext && {
9316 test "$cross_compiling" = yes ||
9317 $as_test_x conftest$ac_exeext
9319 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9321 $as_echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9327 rm -rf conftest.dSYM
9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9334 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9337 ac_cv_search_CRYPTO_new_ex_data=no
9340 LIBS=$ac_func_search_save_LIBS
9342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9343 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9344 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9345 if test "$ac_res" != no; then
9346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9349 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9350 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9351 { (exit 1); exit 1; }; }
9354 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9355 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9356 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9357 $as_echo_n "(cached) " >&6
9359 ac_func_search_save_LIBS=$LIBS
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9373 char SSL_library_init ();
9377 return SSL_library_init ();
9382 for ac_lib in '' ssleay32 ssl; do
9383 if test -z "$ac_lib"; then
9384 ac_res="none required"
9387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9396 $as_echo "$ac_try_echo") >&5
9397 (eval "$ac_link") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest$ac_exeext && {
9407 test "$cross_compiling" = yes ||
9408 $as_test_x conftest$ac_exeext
9410 ac_cv_search_SSL_library_init=$ac_res
9412 $as_echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9418 rm -rf conftest.dSYM
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9421 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9425 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9428 ac_cv_search_SSL_library_init=no
9431 LIBS=$ac_func_search_save_LIBS
9433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9434 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9435 ac_res=$ac_cv_search_SSL_library_init
9436 if test "$ac_res" != no; then
9437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9440 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9441 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9442 { (exit 1); exit 1; }; }
9448 if test "$with_pam" = yes ; then
9450 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9451 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9452 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9453 $as_echo_n "(cached) " >&6
9455 ac_check_lib_save_LIBS=$LIBS
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9474 return pam_start ();
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9486 $as_echo "$ac_try_echo") >&5
9487 (eval "$ac_link") 2>conftest.er1
9489 grep -v '^ *+' conftest.er1 >conftest.err
9491 cat conftest.err >&5
9492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest$ac_exeext && {
9497 test "$cross_compiling" = yes ||
9498 $as_test_x conftest$ac_exeext
9500 ac_cv_lib_pam_pam_start=yes
9502 $as_echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_cv_lib_pam_pam_start=no
9508 rm -rf conftest.dSYM
9509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_lib_save_LIBS
9513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9514 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9515 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9516 cat >>confdefs.h <<_ACEOF
9517 #define HAVE_LIBPAM 1
9523 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9524 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9525 { (exit 1); exit 1; }; }
9530 if test "$with_libxml" = yes ; then
9532 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9533 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9534 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9535 $as_echo_n "(cached) " >&6
9537 ac_check_lib_save_LIBS=$LIBS
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9552 char xmlSaveToBuffer ();
9556 return xmlSaveToBuffer ();
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568 $as_echo "$ac_try_echo") >&5
9569 (eval "$ac_link") 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest$ac_exeext && {
9579 test "$cross_compiling" = yes ||
9580 $as_test_x conftest$ac_exeext
9582 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9584 $as_echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_lib_xml2_xmlSaveToBuffer=no
9590 rm -rf conftest.dSYM
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9596 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9597 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_LIBXML2 1
9605 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9606 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9607 { (exit 1); exit 1; }; }
9612 if test "$with_libxslt" = yes ; then
9614 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9615 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9616 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9617 $as_echo_n "(cached) " >&6
9619 ac_check_lib_save_LIBS=$LIBS
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9634 char xsltCleanupGlobals ();
9638 return xsltCleanupGlobals ();
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9650 $as_echo "$ac_try_echo") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext && {
9661 test "$cross_compiling" = yes ||
9662 $as_test_x conftest$ac_exeext
9664 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9666 $as_echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_xslt_xsltCleanupGlobals=no
9672 rm -rf conftest.dSYM
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9678 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9679 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define HAVE_LIBXSLT 1
9687 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9688 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9689 { (exit 1); exit 1; }; }
9694 # for contrib/sepgsql
9695 if test "$with_selinux" = yes; then
9697 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9698 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9699 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9700 $as_echo_n "(cached) " >&6
9702 ac_check_lib_save_LIBS=$LIBS
9703 LIBS="-lselinux $LIBS"
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9717 char selinux_status_open ();
9721 return selinux_status_open ();
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9733 $as_echo "$ac_try_echo") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest$ac_exeext && {
9744 test "$cross_compiling" = yes ||
9745 $as_test_x conftest$ac_exeext
9747 ac_cv_lib_selinux_selinux_status_open=yes
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_lib_selinux_selinux_status_open=no
9755 rm -rf conftest.dSYM
9756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9757 conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9760 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9761 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9762 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9763 cat >>confdefs.h <<_ACEOF
9764 #define HAVE_LIBSELINUX 1
9767 LIBS="-lselinux $LIBS"
9770 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9771 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9772 { (exit 1); exit 1; }; }
9777 # for contrib/uuid-ossp
9778 if test "$with_ossp_uuid" = yes ; then
9779 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9780 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9781 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9782 $as_echo_n "(cached) " >&6
9784 ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-lossp-uuid $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9799 char uuid_export ();
9803 return uuid_export ();
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815 $as_echo "$ac_try_echo") >&5
9816 (eval "$ac_link") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext && {
9826 test "$cross_compiling" = yes ||
9827 $as_test_x conftest$ac_exeext
9829 ac_cv_lib_ossp_uuid_uuid_export=yes
9831 $as_echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_lib_ossp_uuid_uuid_export=no
9837 rm -rf conftest.dSYM
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9843 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9844 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9845 OSSP_UUID_LIBS="-lossp-uuid"
9847 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9848 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9849 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9850 $as_echo_n "(cached) " >&6
9852 ac_check_lib_save_LIBS=$LIBS
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9867 char uuid_export ();
9871 return uuid_export ();
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9883 $as_echo "$ac_try_echo") >&5
9884 (eval "$ac_link") 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } && {
9891 test -z "$ac_c_werror_flag" ||
9892 test ! -s conftest.err
9893 } && test -s conftest$ac_exeext && {
9894 test "$cross_compiling" = yes ||
9895 $as_test_x conftest$ac_exeext
9897 ac_cv_lib_uuid_uuid_export=yes
9899 $as_echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_uuid_uuid_export=no
9905 rm -rf conftest.dSYM
9906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9911 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9912 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9913 OSSP_UUID_LIBS="-luuid"
9915 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9916 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9917 { (exit 1); exit 1; }; }
9930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9931 $as_echo_n "checking for ANSI C header files... " >&6; }
9932 if test "${ac_cv_header_stdc+set}" = set; then
9933 $as_echo_n "(cached) " >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9954 rm -f conftest.$ac_objext
9955 if { (ac_try="$ac_compile"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961 $as_echo "$ac_try_echo") >&5
9962 (eval "$ac_compile") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest.$ac_objext; then
9972 ac_cv_header_stdc=yes
9974 $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_cv_header_stdc=no
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 if test $ac_cv_header_stdc = yes; then
9983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "memchr" >/dev/null 2>&1; then
9997 ac_cv_header_stdc=no
10003 if test $ac_cv_header_stdc = yes; then
10004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <stdlib.h>
10014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015 $EGREP "free" >/dev/null 2>&1; then
10018 ac_cv_header_stdc=no
10024 if test $ac_cv_header_stdc = yes; then
10025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10026 if test "$cross_compiling" = yes; then
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10036 #include <stdlib.h>
10037 #if ((' ' & 0x0FF) == 0x020)
10038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10041 # define ISLOWER(c) \
10042 (('a' <= (c) && (c) <= 'i') \
10043 || ('j' <= (c) && (c) <= 'r') \
10044 || ('s' <= (c) && (c) <= 'z'))
10045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10053 for (i = 0; i < 256; i++)
10054 if (XOR (islower (i), ISLOWER (i))
10055 || toupper (i) != TOUPPER (i))
10060 rm -f conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068 (eval "$ac_link") 2>&5
10070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078 (eval "$ac_try") 2>&5
10080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10084 $as_echo "$as_me: program exited with status $ac_status" >&5
10085 $as_echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ( exit $ac_status )
10089 ac_cv_header_stdc=no
10091 rm -rf conftest.dSYM
10092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10099 $as_echo "$ac_cv_header_stdc" >&6; }
10100 if test $ac_cv_header_stdc = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define STDC_HEADERS 1
10108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10119 inttypes.h stdint.h unistd.h
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 $as_echo_n "checking for $ac_header... " >&6; }
10124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10125 $as_echo_n "(cached) " >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 $ac_includes_default
10135 #include <$ac_header>
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145 (eval "$ac_compile") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest.$ac_objext; then
10155 eval "$as_ac_Header=yes"
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 eval "$as_ac_Header=no"
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 ac_res=`eval 'as_val=${'$as_ac_Header'}
10166 $as_echo "$as_val"'`
10167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10168 $as_echo "$ac_res" >&6; }
10169 as_val=`eval 'as_val=${'$as_ac_Header'}
10170 $as_echo "$as_val"'`
10171 if test "x$as_val" = x""yes; then
10172 cat >>confdefs.h <<_ACEOF
10173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10209 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
10211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10214 $as_echo_n "checking for $ac_header... " >&6; }
10215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216 $as_echo_n "(cached) " >&6
10218 ac_res=`eval 'as_val=${'$as_ac_Header'}
10219 $as_echo "$as_val"'`
10220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10221 $as_echo "$ac_res" >&6; }
10223 # Is the header compilable?
10224 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10225 $as_echo_n "checking $ac_header usability... " >&6; }
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10233 #include <$ac_header>
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10242 $as_echo "$ac_try_echo") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 ac_header_compiler=yes
10255 $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_header_compiler=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263 $as_echo "$ac_header_compiler" >&6; }
10265 # Is the header present?
10266 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10267 $as_echo_n "checking $ac_header presence... " >&6; }
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <$ac_header>
10276 if { (ac_try="$ac_cpp conftest.$ac_ext"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10282 $as_echo "$ac_try_echo") >&5
10283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } >/dev/null && {
10290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10293 ac_header_preproc=yes
10295 $as_echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_header_preproc=no
10301 rm -f conftest.err conftest.$ac_ext
10302 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10303 $as_echo "$ac_header_preproc" >&6; }
10305 # So? What about this header?
10306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10312 ac_header_preproc=yes
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10328 ## ---------------------------------------- ##
10329 ## Report this to pgsql-bugs@postgresql.org ##
10330 ## ---------------------------------------- ##
10332 ) | sed "s/^/$as_me: WARNING: /" >&2
10335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 $as_echo_n "checking for $ac_header... " >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 $as_echo_n "(cached) " >&6
10340 eval "$as_ac_Header=\$ac_header_preproc"
10342 ac_res=`eval 'as_val=${'$as_ac_Header'}
10343 $as_echo "$as_val"'`
10344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10345 $as_echo "$ac_res" >&6; }
10348 as_val=`eval 'as_val=${'$as_ac_Header'}
10349 $as_echo "$as_val"'`
10350 if test "x$as_val" = x""yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10361 # is included first.
10363 for ac_header in net/if.h
10365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10367 $as_echo_n "checking for $ac_header... " >&6; }
10368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10369 $as_echo_n "(cached) " >&6
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10378 #ifdef HAVE_SYS_SOCKET_H
10379 #include <sys/socket.h>
10383 #include <$ac_header>
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10403 eval "$as_ac_Header=yes"
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 eval "$as_ac_Header=no"
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 ac_res=`eval 'as_val=${'$as_ac_Header'}
10414 $as_echo "$as_val"'`
10415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10416 $as_echo "$ac_res" >&6; }
10417 as_val=`eval 'as_val=${'$as_ac_Header'}
10418 $as_echo "$as_val"'`
10419 if test "x$as_val" = x""yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10430 # netinet/in.h is included first.
10432 for ac_header in netinet/in.h
10434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 $as_echo_n "checking for $ac_header... " >&6; }
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439 $as_echo_n "(cached) " >&6
10441 ac_res=`eval 'as_val=${'$as_ac_Header'}
10442 $as_echo "$as_val"'`
10443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10444 $as_echo "$ac_res" >&6; }
10446 # Is the header compilable?
10447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10448 $as_echo_n "checking $ac_header usability... " >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 #include <$ac_header>
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 $as_echo "$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 $as_echo_n "checking $ac_header presence... " >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <$ac_header>
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev/null && {
10513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10516 ac_header_preproc=yes
10518 $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_preproc=no
10524 rm -f conftest.err conftest.$ac_ext
10525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10526 $as_echo "$ac_header_preproc" >&6; }
10528 # So? What about this header?
10529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10535 ac_header_preproc=yes
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10551 ## ---------------------------------------- ##
10552 ## Report this to pgsql-bugs@postgresql.org ##
10553 ## ---------------------------------------- ##
10555 ) | sed "s/^/$as_me: WARNING: /" >&2
10558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 $as_echo_n "checking for $ac_header... " >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 $as_echo_n "(cached) " >&6
10563 eval "$as_ac_Header=\$ac_header_preproc"
10565 ac_res=`eval 'as_val=${'$as_ac_Header'}
10566 $as_echo "$as_val"'`
10567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10568 $as_echo "$ac_res" >&6; }
10571 as_val=`eval 'as_val=${'$as_ac_Header'}
10572 $as_echo "$as_val"'`
10573 if test "x$as_val" = x""yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10583 for ac_header in netinet/tcp.h
10585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10587 $as_echo_n "checking for $ac_header... " >&6; }
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589 $as_echo_n "(cached) " >&6
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 #ifdef HAVE_NETINET_IN_H
10599 #include <netinet/in.h>
10603 #include <$ac_header>
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_compile") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest.$ac_objext; then
10623 eval "$as_ac_Header=yes"
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 eval "$as_ac_Header=no"
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 ac_res=`eval 'as_val=${'$as_ac_Header'}
10634 $as_echo "$as_val"'`
10635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10636 $as_echo "$ac_res" >&6; }
10637 as_val=`eval 'as_val=${'$as_ac_Header'}
10638 $as_echo "$as_val"'`
10639 if test "x$as_val" = x""yes; then
10640 cat >>confdefs.h <<_ACEOF
10641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10649 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10651 for ac_header in readline/readline.h
10653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 $as_echo_n "(cached) " >&6
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10665 # Is the header compilable?
10666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 $as_echo_n "checking $ac_header usability... " >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 $ac_includes_default
10675 #include <$ac_header>
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_compile") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest.$ac_objext; then
10695 ac_header_compiler=yes
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_header_compiler=no
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 $as_echo "$ac_header_compiler" >&6; }
10707 # Is the header present?
10708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 $as_echo_n "checking $ac_header presence... " >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 #include <$ac_header>
10718 if { (ac_try="$ac_cpp conftest.$ac_ext"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } >/dev/null && {
10732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10735 ac_header_preproc=yes
10737 $as_echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_header_preproc=no
10743 rm -f conftest.err conftest.$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 $as_echo "$ac_header_preproc" >&6; }
10747 # So? What about this header?
10748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10754 ac_header_preproc=yes
10757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10770 ## ---------------------------------------- ##
10771 ## Report this to pgsql-bugs@postgresql.org ##
10772 ## ---------------------------------------- ##
10774 ) | sed "s/^/$as_me: WARNING: /" >&2
10777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10778 $as_echo_n "checking for $ac_header... " >&6; }
10779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10780 $as_echo_n "(cached) " >&6
10782 eval "$as_ac_Header=\$ac_header_preproc"
10784 ac_res=`eval 'as_val=${'$as_ac_Header'}
10785 $as_echo "$as_val"'`
10786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10787 $as_echo "$ac_res" >&6; }
10790 as_val=`eval 'as_val=${'$as_ac_Header'}
10791 $as_echo "$as_val"'`
10792 if test "x$as_val" = x""yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10799 for ac_header in readline.h
10801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 $as_echo_n "checking for $ac_header... " >&6; }
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806 $as_echo_n "(cached) " >&6
10808 ac_res=`eval 'as_val=${'$as_ac_Header'}
10809 $as_echo "$as_val"'`
10810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10811 $as_echo "$ac_res" >&6; }
10813 # Is the header compilable?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 $as_echo_n "checking $ac_header usability... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 #include <$ac_header>
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_compile") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest.$ac_objext; then
10843 ac_header_compiler=yes
10845 $as_echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_header_compiler=no
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 $as_echo "$ac_header_compiler" >&6; }
10855 # Is the header present?
10856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 $as_echo_n "checking $ac_header presence... " >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <$ac_header>
10866 if { (ac_try="$ac_cpp conftest.$ac_ext"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } >/dev/null && {
10880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10883 ac_header_preproc=yes
10885 $as_echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_header_preproc=no
10891 rm -f conftest.err conftest.$ac_ext
10892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 $as_echo "$ac_header_preproc" >&6; }
10895 # So? What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc=yes
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10918 ## ---------------------------------------- ##
10919 ## Report this to pgsql-bugs@postgresql.org ##
10920 ## ---------------------------------------- ##
10922 ) | sed "s/^/$as_me: WARNING: /" >&2
10925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 $as_echo_n "checking for $ac_header... " >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 $as_echo_n "(cached) " >&6
10930 eval "$as_ac_Header=\$ac_header_preproc"
10932 ac_res=`eval 'as_val=${'$as_ac_Header'}
10933 $as_echo "$as_val"'`
10934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10935 $as_echo "$ac_res" >&6; }
10938 as_val=`eval 'as_val=${'$as_ac_Header'}
10939 $as_echo "$as_val"'`
10940 if test "x$as_val" = x""yes; then
10941 cat >>confdefs.h <<_ACEOF
10942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10946 { { $as_echo "$as_me:$LINENO: error: readline header not found
10947 If you have readline already installed, see config.log for details on the
10948 failure. It is possible the compiler isn't looking in the proper directory.
10949 Use --without-readline to disable readline support." >&5
10950 $as_echo "$as_me: error: readline header not found
10951 If you have readline already installed, see config.log for details on the
10952 failure. It is possible the compiler isn't looking in the proper directory.
10953 Use --without-readline to disable readline support." >&2;}
10954 { (exit 1); exit 1; }; }
10964 for ac_header in readline/history.h
10966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10968 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10969 $as_echo_n "checking for $ac_header... " >&6; }
10970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10971 $as_echo_n "(cached) " >&6
10973 ac_res=`eval 'as_val=${'$as_ac_Header'}
10974 $as_echo "$as_val"'`
10975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10976 $as_echo "$ac_res" >&6; }
10978 # Is the header compilable?
10979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10980 $as_echo_n "checking $ac_header usability... " >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10988 #include <$ac_header>
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998 (eval "$ac_compile") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest.$ac_objext; then
11008 ac_header_compiler=yes
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_header_compiler=no
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11018 $as_echo "$ac_header_compiler" >&6; }
11020 # Is the header present?
11021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11022 $as_echo_n "checking $ac_header presence... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <$ac_header>
11031 if { (ac_try="$ac_cpp conftest.$ac_ext"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11037 $as_echo "$ac_try_echo") >&5
11038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } >/dev/null && {
11045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11048 ac_header_preproc=yes
11050 $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_preproc=no
11056 rm -f conftest.err conftest.$ac_ext
11057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058 $as_echo "$ac_header_preproc" >&6; }
11060 # So? What about this header?
11061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067 ac_header_preproc=yes
11070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11073 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11083 ## ---------------------------------------- ##
11084 ## Report this to pgsql-bugs@postgresql.org ##
11085 ## ---------------------------------------- ##
11087 ) | sed "s/^/$as_me: WARNING: /" >&2
11090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11091 $as_echo_n "checking for $ac_header... " >&6; }
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093 $as_echo_n "(cached) " >&6
11095 eval "$as_ac_Header=\$ac_header_preproc"
11097 ac_res=`eval 'as_val=${'$as_ac_Header'}
11098 $as_echo "$as_val"'`
11099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11100 $as_echo "$ac_res" >&6; }
11103 as_val=`eval 'as_val=${'$as_ac_Header'}
11104 $as_echo "$as_val"'`
11105 if test "x$as_val" = x""yes; then
11106 cat >>confdefs.h <<_ACEOF
11107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11112 for ac_header in history.h
11114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11117 $as_echo_n "checking for $ac_header... " >&6; }
11118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119 $as_echo_n "(cached) " >&6
11121 ac_res=`eval 'as_val=${'$as_ac_Header'}
11122 $as_echo "$as_val"'`
11123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11124 $as_echo "$ac_res" >&6; }
11126 # Is the header compilable?
11127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11128 $as_echo_n "checking $ac_header usability... " >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 $ac_includes_default
11136 #include <$ac_header>
11138 rm -f conftest.$ac_objext
11139 if { (ac_try="$ac_compile"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11145 $as_echo "$ac_try_echo") >&5
11146 (eval "$ac_compile") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && {
11153 test -z "$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11155 } && test -s conftest.$ac_objext; then
11156 ac_header_compiler=yes
11158 $as_echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ac_header_compiler=no
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11166 $as_echo "$ac_header_compiler" >&6; }
11168 # Is the header present?
11169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11170 $as_echo_n "checking $ac_header presence... " >&6; }
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <$ac_header>
11179 if { (ac_try="$ac_cpp conftest.$ac_ext"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11185 $as_echo "$ac_try_echo") >&5
11186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } >/dev/null && {
11193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11194 test ! -s conftest.err
11196 ac_header_preproc=yes
11198 $as_echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 $as_echo "$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ## ---------------------------------------- ##
11232 ## Report this to pgsql-bugs@postgresql.org ##
11233 ## ---------------------------------------- ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 $as_echo_n "checking for $ac_header... " >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 $as_echo_n "(cached) " >&6
11243 eval "$as_ac_Header=\$ac_header_preproc"
11245 ac_res=`eval 'as_val=${'$as_ac_Header'}
11246 $as_echo "$as_val"'`
11247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11248 $as_echo "$ac_res" >&6; }
11251 as_val=`eval 'as_val=${'$as_ac_Header'}
11252 $as_echo "$as_val"'`
11253 if test "x$as_val" = x""yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11259 { { $as_echo "$as_me:$LINENO: error: history header not found
11260 If you have readline already installed, see config.log for details on the
11261 failure. It is possible the compiler isn't looking in the proper directory.
11262 Use --without-readline to disable readline support." >&5
11263 $as_echo "$as_me: error: history header not found
11264 If you have readline already installed, see config.log for details on the
11265 failure. It is possible the compiler isn't looking in the proper directory.
11266 Use --without-readline to disable readline support." >&2;}
11267 { (exit 1); exit 1; }; }
11278 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11279 # Some installations of libedit usurp /usr/include/readline/, which seems
11280 # bad practice, since in combined installations readline will have its headers
11281 # there. We might have to resort to AC_EGREP checks to make sure we found
11282 # the proper header...
11284 for ac_header in editline/readline.h
11286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 $as_echo_n "checking for $ac_header... " >&6; }
11290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11291 $as_echo_n "(cached) " >&6
11293 ac_res=`eval 'as_val=${'$as_ac_Header'}
11294 $as_echo "$as_val"'`
11295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11296 $as_echo "$ac_res" >&6; }
11298 # Is the header compilable?
11299 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300 $as_echo_n "checking $ac_header usability... " >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 #include <$ac_header>
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11317 $as_echo "$ac_try_echo") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11328 ac_header_compiler=yes
11330 $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_header_compiler=no
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 $as_echo "$ac_header_compiler" >&6; }
11340 # Is the header present?
11341 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11342 $as_echo_n "checking $ac_header presence... " >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <$ac_header>
11351 if { (ac_try="$ac_cpp conftest.$ac_ext"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11357 $as_echo "$ac_try_echo") >&5
11358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } >/dev/null && {
11365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11368 ac_header_preproc=yes
11370 $as_echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 $as_echo "$ac_header_preproc" >&6; }
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ---------------------------------------- ##
11404 ## Report this to pgsql-bugs@postgresql.org ##
11405 ## ---------------------------------------- ##
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 $as_echo_n "checking for $ac_header... " >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 $as_echo_n "(cached) " >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval 'as_val=${'$as_ac_Header'}
11418 $as_echo "$as_val"'`
11419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11420 $as_echo "$ac_res" >&6; }
11423 as_val=`eval 'as_val=${'$as_ac_Header'}
11424 $as_echo "$as_val"'`
11425 if test "x$as_val" = x""yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432 for ac_header in readline.h
11434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11437 $as_echo_n "checking for $ac_header... " >&6; }
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 $as_echo_n "(cached) " >&6
11441 ac_res=`eval 'as_val=${'$as_ac_Header'}
11442 $as_echo "$as_val"'`
11443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11444 $as_echo "$ac_res" >&6; }
11446 # Is the header compilable?
11447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 $as_echo_n "checking $ac_header usability... " >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 $ac_includes_default
11456 #include <$ac_header>
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11465 $as_echo "$ac_try_echo") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest.$ac_objext; then
11476 ac_header_compiler=yes
11478 $as_echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_header_compiler=no
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11486 $as_echo "$ac_header_compiler" >&6; }
11488 # Is the header present?
11489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11490 $as_echo_n "checking $ac_header presence... " >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <$ac_header>
11499 if { (ac_try="$ac_cpp conftest.$ac_ext"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11505 $as_echo "$ac_try_echo") >&5
11506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null && {
11513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11516 ac_header_preproc=yes
11518 $as_echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_preproc=no
11524 rm -f conftest.err conftest.$ac_ext
11525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11526 $as_echo "$ac_header_preproc" >&6; }
11528 # So? What about this header?
11529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11535 ac_header_preproc=yes
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11551 ## ---------------------------------------- ##
11552 ## Report this to pgsql-bugs@postgresql.org ##
11553 ## ---------------------------------------- ##
11555 ) | sed "s/^/$as_me: WARNING: /" >&2
11558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11559 $as_echo_n "checking for $ac_header... " >&6; }
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561 $as_echo_n "(cached) " >&6
11563 eval "$as_ac_Header=\$ac_header_preproc"
11565 ac_res=`eval 'as_val=${'$as_ac_Header'}
11566 $as_echo "$as_val"'`
11567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11568 $as_echo "$ac_res" >&6; }
11571 as_val=`eval 'as_val=${'$as_ac_Header'}
11572 $as_echo "$as_val"'`
11573 if test "x$as_val" = x""yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580 for ac_header in readline/readline.h
11582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 $as_echo_n "checking for $ac_header... " >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 $as_echo_n "(cached) " >&6
11589 ac_res=`eval 'as_val=${'$as_ac_Header'}
11590 $as_echo "$as_val"'`
11591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11592 $as_echo "$ac_res" >&6; }
11594 # Is the header compilable?
11595 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596 $as_echo_n "checking $ac_header usability... " >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 #include <$ac_header>
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613 $as_echo "$ac_try_echo") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest.$ac_objext; then
11624 ac_header_compiler=yes
11626 $as_echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_header_compiler=no
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 $as_echo "$ac_header_compiler" >&6; }
11636 # Is the header present?
11637 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 $as_echo_n "checking $ac_header presence... " >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null && {
11661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11664 ac_header_preproc=yes
11666 $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 ac_header_preproc=no
11672 rm -f conftest.err conftest.$ac_ext
11673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674 $as_echo "$ac_header_preproc" >&6; }
11676 # So? What about this header?
11677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11683 ac_header_preproc=yes
11686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11687 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11689 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699 ## ---------------------------------------- ##
11700 ## Report this to pgsql-bugs@postgresql.org ##
11701 ## ---------------------------------------- ##
11703 ) | sed "s/^/$as_me: WARNING: /" >&2
11706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11707 $as_echo_n "checking for $ac_header... " >&6; }
11708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11709 $as_echo_n "(cached) " >&6
11711 eval "$as_ac_Header=\$ac_header_preproc"
11713 ac_res=`eval 'as_val=${'$as_ac_Header'}
11714 $as_echo "$as_val"'`
11715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716 $as_echo "$ac_res" >&6; }
11719 as_val=`eval 'as_val=${'$as_ac_Header'}
11720 $as_echo "$as_val"'`
11721 if test "x$as_val" = x""yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727 { { $as_echo "$as_me:$LINENO: error: readline header not found
11728 If you have libedit already installed, see config.log for details on the
11729 failure. It is possible the compiler isn't looking in the proper directory.
11730 Use --without-readline to disable libedit support." >&5
11731 $as_echo "$as_me: error: readline header not found
11732 If you have libedit already installed, see config.log for details on the
11733 failure. It is possible the compiler isn't looking in the proper directory.
11734 Use --without-readline to disable libedit support." >&2;}
11735 { (exit 1); exit 1; }; }
11748 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11749 # not be there at all. Hence, don't complain if not found. We must check
11750 # though, since in yet other versions it is an independent header.
11752 for ac_header in editline/history.h
11754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11757 $as_echo_n "checking for $ac_header... " >&6; }
11758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 $as_echo_n "(cached) " >&6
11761 ac_res=`eval 'as_val=${'$as_ac_Header'}
11762 $as_echo "$as_val"'`
11763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11764 $as_echo "$ac_res" >&6; }
11766 # Is the header compilable?
11767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11768 $as_echo_n "checking $ac_header usability... " >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 $ac_includes_default
11776 #include <$ac_header>
11778 rm -f conftest.$ac_objext
11779 if { (ac_try="$ac_compile"
11780 case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11785 $as_echo "$ac_try_echo") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_header_compiler=yes
11798 $as_echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_header_compiler=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 $as_echo "$ac_header_compiler" >&6; }
11808 # Is the header present?
11809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11810 $as_echo_n "checking $ac_header presence... " >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <$ac_header>
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } >/dev/null && {
11833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11836 ac_header_preproc=yes
11838 $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_header_preproc=no
11844 rm -f conftest.err conftest.$ac_ext
11845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11846 $as_echo "$ac_header_preproc" >&6; }
11848 # So? What about this header?
11849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11855 ac_header_preproc=yes
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11871 ## ---------------------------------------- ##
11872 ## Report this to pgsql-bugs@postgresql.org ##
11873 ## ---------------------------------------- ##
11875 ) | sed "s/^/$as_me: WARNING: /" >&2
11878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 $as_echo_n "checking for $ac_header... " >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881 $as_echo_n "(cached) " >&6
11883 eval "$as_ac_Header=\$ac_header_preproc"
11885 ac_res=`eval 'as_val=${'$as_ac_Header'}
11886 $as_echo "$as_val"'`
11887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11888 $as_echo "$ac_res" >&6; }
11891 as_val=`eval 'as_val=${'$as_ac_Header'}
11892 $as_echo "$as_val"'`
11893 if test "x$as_val" = x""yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900 for ac_header in history.h
11902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 $as_echo_n "checking for $ac_header... " >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 $as_echo_n "(cached) " >&6
11909 ac_res=`eval 'as_val=${'$as_ac_Header'}
11910 $as_echo "$as_val"'`
11911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11912 $as_echo "$ac_res" >&6; }
11914 # Is the header compilable?
11915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11916 $as_echo_n "checking $ac_header usability... " >&6; }
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 $ac_includes_default
11924 #include <$ac_header>
11926 rm -f conftest.$ac_objext
11927 if { (ac_try="$ac_compile"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest.$ac_objext; then
11944 ac_header_compiler=yes
11946 $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_header_compiler=no
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11954 $as_echo "$ac_header_compiler" >&6; }
11956 # Is the header present?
11957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11958 $as_echo_n "checking $ac_header presence... " >&6; }
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 #include <$ac_header>
11967 if { (ac_try="$ac_cpp conftest.$ac_ext"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973 $as_echo "$ac_try_echo") >&5
11974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } >/dev/null && {
11981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11982 test ! -s conftest.err
11984 ac_header_preproc=yes
11986 $as_echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_header_preproc=no
11992 rm -f conftest.err conftest.$ac_ext
11993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11994 $as_echo "$ac_header_preproc" >&6; }
11996 # So? What about this header?
11997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12003 ac_header_preproc=yes
12006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12019 ## ---------------------------------------- ##
12020 ## Report this to pgsql-bugs@postgresql.org ##
12021 ## ---------------------------------------- ##
12023 ) | sed "s/^/$as_me: WARNING: /" >&2
12026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12027 $as_echo_n "checking for $ac_header... " >&6; }
12028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12029 $as_echo_n "(cached) " >&6
12031 eval "$as_ac_Header=\$ac_header_preproc"
12033 ac_res=`eval 'as_val=${'$as_ac_Header'}
12034 $as_echo "$as_val"'`
12035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12036 $as_echo "$ac_res" >&6; }
12039 as_val=`eval 'as_val=${'$as_ac_Header'}
12040 $as_echo "$as_val"'`
12041 if test "x$as_val" = x""yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048 for ac_header in readline/history.h
12050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12053 $as_echo_n "checking for $ac_header... " >&6; }
12054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12055 $as_echo_n "(cached) " >&6
12057 ac_res=`eval 'as_val=${'$as_ac_Header'}
12058 $as_echo "$as_val"'`
12059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12060 $as_echo "$ac_res" >&6; }
12062 # Is the header compilable?
12063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12064 $as_echo_n "checking $ac_header usability... " >&6; }
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12071 $ac_includes_default
12072 #include <$ac_header>
12074 rm -f conftest.$ac_objext
12075 if { (ac_try="$ac_compile"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_compile") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } && {
12089 test -z "$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 } && test -s conftest.$ac_objext; then
12092 ac_header_compiler=yes
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_header_compiler=no
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12102 $as_echo "$ac_header_compiler" >&6; }
12104 # Is the header present?
12105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12106 $as_echo_n "checking $ac_header presence... " >&6; }
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 #include <$ac_header>
12115 if { (ac_try="$ac_cpp conftest.$ac_ext"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } >/dev/null && {
12129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12132 ac_header_preproc=yes
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_header_preproc=no
12140 rm -f conftest.err conftest.$ac_ext
12141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12142 $as_echo "$ac_header_preproc" >&6; }
12144 # So? What about this header?
12145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12151 ac_header_preproc=yes
12154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12167 ## ---------------------------------------- ##
12168 ## Report this to pgsql-bugs@postgresql.org ##
12169 ## ---------------------------------------- ##
12171 ) | sed "s/^/$as_me: WARNING: /" >&2
12174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 $as_echo_n "checking for $ac_header... " >&6; }
12176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177 $as_echo_n "(cached) " >&6
12179 eval "$as_ac_Header=\$ac_header_preproc"
12181 ac_res=`eval 'as_val=${'$as_ac_Header'}
12182 $as_echo "$as_val"'`
12183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12184 $as_echo "$ac_res" >&6; }
12187 as_val=`eval 'as_val=${'$as_ac_Header'}
12188 $as_echo "$as_val"'`
12189 if test "x$as_val" = x""yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 if test "$with_zlib" = yes; then
12209 if test "${ac_cv_header_zlib_h+set}" = set; then
12210 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12211 $as_echo_n "checking for zlib.h... " >&6; }
12212 if test "${ac_cv_header_zlib_h+set}" = set; then
12213 $as_echo_n "(cached) " >&6
12215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12216 $as_echo "$ac_cv_header_zlib_h" >&6; }
12218 # Is the header compilable?
12219 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12220 $as_echo_n "checking zlib.h usability... " >&6; }
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 $ac_includes_default
12230 rm -f conftest.$ac_objext
12231 if { (ac_try="$ac_compile"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12237 $as_echo "$ac_try_echo") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12248 ac_header_compiler=yes
12250 $as_echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ac_header_compiler=no
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12258 $as_echo "$ac_header_compiler" >&6; }
12260 # Is the header present?
12261 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12262 $as_echo_n "checking zlib.h presence... " >&6; }
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12271 if { (ac_try="$ac_cpp conftest.$ac_ext"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12277 $as_echo "$ac_try_echo") >&5
12278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } >/dev/null && {
12285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12288 ac_header_preproc=yes
12290 $as_echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_header_preproc=no
12296 rm -f conftest.err conftest.$ac_ext
12297 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12298 $as_echo "$ac_header_preproc" >&6; }
12300 # So? What about this header?
12301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12303 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12304 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12305 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12306 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12307 ac_header_preproc=yes
12310 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12311 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12312 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12313 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12314 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12315 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12317 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12319 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12321 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12323 ## ---------------------------------------- ##
12324 ## Report this to pgsql-bugs@postgresql.org ##
12325 ## ---------------------------------------- ##
12327 ) | sed "s/^/$as_me: WARNING: /" >&2
12330 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12331 $as_echo_n "checking for zlib.h... " >&6; }
12332 if test "${ac_cv_header_zlib_h+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12335 ac_cv_header_zlib_h=$ac_header_preproc
12337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12338 $as_echo "$ac_cv_header_zlib_h" >&6; }
12341 if test "x$ac_cv_header_zlib_h" = x""yes; then
12344 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12345 If you have zlib already installed, see config.log for details on the
12346 failure. It is possible the compiler isn't looking in the proper directory.
12347 Use --without-zlib to disable zlib support." >&5
12348 $as_echo "$as_me: error: zlib header not found
12349 If you have zlib already installed, see config.log for details on the
12350 failure. It is possible the compiler isn't looking in the proper directory.
12351 Use --without-zlib to disable zlib support." >&2;}
12352 { (exit 1); exit 1; }; }
12358 if test "$with_gssapi" = yes ; then
12360 for ac_header in gssapi/gssapi.h
12362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 $as_echo_n "checking for $ac_header... " >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 $as_echo_n "(cached) " >&6
12369 ac_res=`eval 'as_val=${'$as_ac_Header'}
12370 $as_echo "$as_val"'`
12371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12372 $as_echo "$ac_res" >&6; }
12374 # Is the header compilable?
12375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12376 $as_echo_n "checking $ac_header usability... " >&6; }
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12384 #include <$ac_header>
12386 rm -f conftest.$ac_objext
12387 if { (ac_try="$ac_compile"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
12404 ac_header_compiler=yes
12406 $as_echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_header_compiler=no
12412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12414 $as_echo "$ac_header_compiler" >&6; }
12416 # Is the header present?
12417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12418 $as_echo_n "checking $ac_header presence... " >&6; }
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 #include <$ac_header>
12427 if { (ac_try="$ac_cpp conftest.$ac_ext"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } >/dev/null && {
12441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12444 ac_header_preproc=yes
12446 $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_header_preproc=no
12452 rm -f conftest.err conftest.$ac_ext
12453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454 $as_echo "$ac_header_preproc" >&6; }
12456 # So? What about this header?
12457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463 ac_header_preproc=yes
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12479 ## ---------------------------------------- ##
12480 ## Report this to pgsql-bugs@postgresql.org ##
12481 ## ---------------------------------------- ##
12483 ) | sed "s/^/$as_me: WARNING: /" >&2
12486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12487 $as_echo_n "checking for $ac_header... " >&6; }
12488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489 $as_echo_n "(cached) " >&6
12491 eval "$as_ac_Header=\$ac_header_preproc"
12493 ac_res=`eval 'as_val=${'$as_ac_Header'}
12494 $as_echo "$as_val"'`
12495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12496 $as_echo "$ac_res" >&6; }
12499 as_val=`eval 'as_val=${'$as_ac_Header'}
12500 $as_echo "$as_val"'`
12501 if test "x$as_val" = x""yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12508 for ac_header in gssapi.h
12510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12513 $as_echo_n "checking for $ac_header... " >&6; }
12514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12515 $as_echo_n "(cached) " >&6
12517 ac_res=`eval 'as_val=${'$as_ac_Header'}
12518 $as_echo "$as_val"'`
12519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12520 $as_echo "$ac_res" >&6; }
12522 # Is the header compilable?
12523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12524 $as_echo_n "checking $ac_header usability... " >&6; }
12525 cat >conftest.$ac_ext <<_ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 $ac_includes_default
12532 #include <$ac_header>
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541 $as_echo "$ac_try_echo") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 ac_header_compiler=yes
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_compiler=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 $as_echo "$ac_header_compiler" >&6; }
12564 # Is the header present?
12565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566 $as_echo_n "checking $ac_header presence... " >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <$ac_header>
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12581 $as_echo "$ac_try_echo") >&5
12582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } >/dev/null && {
12589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590 test ! -s conftest.err
12592 ac_header_preproc=yes
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_header_preproc=no
12600 rm -f conftest.err conftest.$ac_ext
12601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 $as_echo "$ac_header_preproc" >&6; }
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12617 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12627 ## ---------------------------------------- ##
12628 ## Report this to pgsql-bugs@postgresql.org ##
12629 ## ---------------------------------------- ##
12631 ) | sed "s/^/$as_me: WARNING: /" >&2
12634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637 $as_echo_n "(cached) " >&6
12639 eval "$as_ac_Header=\$ac_header_preproc"
12641 ac_res=`eval 'as_val=${'$as_ac_Header'}
12642 $as_echo "$as_val"'`
12643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12644 $as_echo "$ac_res" >&6; }
12647 as_val=`eval 'as_val=${'$as_ac_Header'}
12648 $as_echo "$as_val"'`
12649 if test "x$as_val" = x""yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12655 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12656 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12657 { (exit 1); exit 1; }; }
12668 if test "$with_krb5" = yes ; then
12669 if test "${ac_cv_header_krb5_h+set}" = set; then
12670 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12671 $as_echo_n "checking for krb5.h... " >&6; }
12672 if test "${ac_cv_header_krb5_h+set}" = set; then
12673 $as_echo_n "(cached) " >&6
12675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12676 $as_echo "$ac_cv_header_krb5_h" >&6; }
12678 # Is the header compilable?
12679 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12680 $as_echo_n "checking krb5.h usability... " >&6; }
12681 cat >conftest.$ac_ext <<_ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12687 $ac_includes_default
12690 rm -f conftest.$ac_objext
12691 if { (ac_try="$ac_compile"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697 $as_echo "$ac_try_echo") >&5
12698 (eval "$ac_compile") 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest.$ac_objext; then
12708 ac_header_compiler=yes
12710 $as_echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 ac_header_compiler=no
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12718 $as_echo "$ac_header_compiler" >&6; }
12720 # Is the header present?
12721 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12722 $as_echo_n "checking krb5.h presence... " >&6; }
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12731 if { (ac_try="$ac_cpp conftest.$ac_ext"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737 $as_echo "$ac_try_echo") >&5
12738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } >/dev/null && {
12745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12746 test ! -s conftest.err
12748 ac_header_preproc=yes
12750 $as_echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 ac_header_preproc=no
12756 rm -f conftest.err conftest.$ac_ext
12757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12758 $as_echo "$ac_header_preproc" >&6; }
12760 # So? What about this header?
12761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12763 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12764 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12765 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12766 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12767 ac_header_preproc=yes
12770 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12771 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12772 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12773 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12775 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12776 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12777 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12778 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12779 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12780 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12781 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12783 ## ---------------------------------------- ##
12784 ## Report this to pgsql-bugs@postgresql.org ##
12785 ## ---------------------------------------- ##
12787 ) | sed "s/^/$as_me: WARNING: /" >&2
12790 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12791 $as_echo_n "checking for krb5.h... " >&6; }
12792 if test "${ac_cv_header_krb5_h+set}" = set; then
12793 $as_echo_n "(cached) " >&6
12795 ac_cv_header_krb5_h=$ac_header_preproc
12797 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12798 $as_echo "$ac_cv_header_krb5_h" >&6; }
12801 if test "x$ac_cv_header_krb5_h" = x""yes; then
12804 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12805 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12806 { (exit 1); exit 1; }; }
12812 if test "$with_openssl" = yes ; then
12813 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12814 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12815 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12816 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12817 $as_echo_n "(cached) " >&6
12819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12820 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12822 # Is the header compilable?
12823 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12824 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 $ac_includes_default
12832 #include <openssl/ssl.h>
12834 rm -f conftest.$ac_objext
12835 if { (ac_try="$ac_compile"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12841 $as_echo "$ac_try_echo") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12852 ac_header_compiler=yes
12854 $as_echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_header_compiler=no
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12862 $as_echo "$ac_header_compiler" >&6; }
12864 # Is the header present?
12865 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12866 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 #include <openssl/ssl.h>
12875 if { (ac_try="$ac_cpp conftest.$ac_ext"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12881 $as_echo "$ac_try_echo") >&5
12882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } >/dev/null && {
12889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12892 ac_header_preproc=yes
12894 $as_echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 ac_header_preproc=no
12900 rm -f conftest.err conftest.$ac_ext
12901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12902 $as_echo "$ac_header_preproc" >&6; }
12904 # So? What about this header?
12905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12907 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12908 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12909 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12910 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12911 ac_header_preproc=yes
12914 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12915 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12916 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12917 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12918 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12919 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12920 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12921 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12922 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12923 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12924 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12925 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12927 ## ---------------------------------------- ##
12928 ## Report this to pgsql-bugs@postgresql.org ##
12929 ## ---------------------------------------- ##
12931 ) | sed "s/^/$as_me: WARNING: /" >&2
12934 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12935 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12936 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12937 $as_echo_n "(cached) " >&6
12939 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12942 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12945 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12948 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12949 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12950 { (exit 1); exit 1; }; }
12954 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12955 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12956 $as_echo_n "checking for openssl/err.h... " >&6; }
12957 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12958 $as_echo_n "(cached) " >&6
12960 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12961 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12963 # Is the header compilable?
12964 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12965 $as_echo_n "checking openssl/err.h usability... " >&6; }
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 $ac_includes_default
12973 #include <openssl/err.h>
12975 rm -f conftest.$ac_objext
12976 if { (ac_try="$ac_compile"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12982 $as_echo "$ac_try_echo") >&5
12983 (eval "$ac_compile") 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && {
12990 test -z "$ac_c_werror_flag" ||
12991 test ! -s conftest.err
12992 } && test -s conftest.$ac_objext; then
12993 ac_header_compiler=yes
12995 $as_echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ac_header_compiler=no
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13003 $as_echo "$ac_header_compiler" >&6; }
13005 # Is the header present?
13006 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13007 $as_echo_n "checking openssl/err.h presence... " >&6; }
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 #include <openssl/err.h>
13016 if { (ac_try="$ac_cpp conftest.$ac_ext"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13022 $as_echo "$ac_try_echo") >&5
13023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } >/dev/null && {
13030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13033 ac_header_preproc=yes
13035 $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 ac_header_preproc=no
13041 rm -f conftest.err conftest.$ac_ext
13042 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13043 $as_echo "$ac_header_preproc" >&6; }
13045 # So? What about this header?
13046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13048 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13049 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13050 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13051 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13052 ac_header_preproc=yes
13055 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13056 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13057 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13058 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13059 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13060 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13061 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13062 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13063 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13064 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13065 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13066 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13068 ## ---------------------------------------- ##
13069 ## Report this to pgsql-bugs@postgresql.org ##
13070 ## ---------------------------------------- ##
13072 ) | sed "s/^/$as_me: WARNING: /" >&2
13075 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13076 $as_echo_n "checking for openssl/err.h... " >&6; }
13077 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13078 $as_echo_n "(cached) " >&6
13080 ac_cv_header_openssl_err_h=$ac_header_preproc
13082 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13083 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13086 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13089 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13090 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13091 { (exit 1); exit 1; }; }
13097 if test "$with_pam" = yes ; then
13099 for ac_header in security/pam_appl.h
13101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13104 $as_echo_n "checking for $ac_header... " >&6; }
13105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13106 $as_echo_n "(cached) " >&6
13108 ac_res=`eval 'as_val=${'$as_ac_Header'}
13109 $as_echo "$as_val"'`
13110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13111 $as_echo "$ac_res" >&6; }
13113 # Is the header compilable?
13114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13115 $as_echo_n "checking $ac_header usability... " >&6; }
13116 cat >conftest.$ac_ext <<_ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <$ac_header>
13125 rm -f conftest.$ac_objext
13126 if { (ac_try="$ac_compile"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_compile") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest.$ac_objext; then
13143 ac_header_compiler=yes
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_header_compiler=no
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13153 $as_echo "$ac_header_compiler" >&6; }
13155 # Is the header present?
13156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13157 $as_echo_n "checking $ac_header presence... " >&6; }
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 #include <$ac_header>
13166 if { (ac_try="$ac_cpp conftest.$ac_ext"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13172 $as_echo "$ac_try_echo") >&5
13173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13175 grep -v '^ *+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } >/dev/null && {
13180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13181 test ! -s conftest.err
13183 ac_header_preproc=yes
13185 $as_echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_header_preproc=no
13191 rm -f conftest.err conftest.$ac_ext
13192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13193 $as_echo "$ac_header_preproc" >&6; }
13195 # So? What about this header?
13196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13202 ac_header_preproc=yes
13205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13208 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13212 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13218 ## ---------------------------------------- ##
13219 ## Report this to pgsql-bugs@postgresql.org ##
13220 ## ---------------------------------------- ##
13222 ) | sed "s/^/$as_me: WARNING: /" >&2
13225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13226 $as_echo_n "checking for $ac_header... " >&6; }
13227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13228 $as_echo_n "(cached) " >&6
13230 eval "$as_ac_Header=\$ac_header_preproc"
13232 ac_res=`eval 'as_val=${'$as_ac_Header'}
13233 $as_echo "$as_val"'`
13234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13235 $as_echo "$ac_res" >&6; }
13238 as_val=`eval 'as_val=${'$as_ac_Header'}
13239 $as_echo "$as_val"'`
13240 if test "x$as_val" = x""yes; then
13241 cat >>confdefs.h <<_ACEOF
13242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247 for ac_header in pam/pam_appl.h
13249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 $as_echo_n "checking for $ac_header... " >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254 $as_echo_n "(cached) " >&6
13256 ac_res=`eval 'as_val=${'$as_ac_Header'}
13257 $as_echo "$as_val"'`
13258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13259 $as_echo "$ac_res" >&6; }
13261 # Is the header compilable?
13262 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13263 $as_echo_n "checking $ac_header usability... " >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <$ac_header>
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13280 $as_echo "$ac_try_echo") >&5
13281 (eval "$ac_compile") 2>conftest.er1
13283 grep -v '^ *+' conftest.er1 >conftest.err
13285 cat conftest.err >&5
13286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest.$ac_objext; then
13291 ac_header_compiler=yes
13293 $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 ac_header_compiler=no
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 $as_echo "$ac_header_compiler" >&6; }
13303 # Is the header present?
13304 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13305 $as_echo_n "checking $ac_header presence... " >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <$ac_header>
13314 if { (ac_try="$ac_cpp conftest.$ac_ext"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13320 $as_echo "$ac_try_echo") >&5
13321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } >/dev/null && {
13328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13331 ac_header_preproc=yes
13333 $as_echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ac_header_preproc=no
13339 rm -f conftest.err conftest.$ac_ext
13340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 $as_echo "$ac_header_preproc" >&6; }
13343 # So? What about this header?
13344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13347 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13349 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13350 ac_header_preproc=yes
13353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13354 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13356 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13358 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13360 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13364 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13366 ## ---------------------------------------- ##
13367 ## Report this to pgsql-bugs@postgresql.org ##
13368 ## ---------------------------------------- ##
13370 ) | sed "s/^/$as_me: WARNING: /" >&2
13373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13374 $as_echo_n "checking for $ac_header... " >&6; }
13375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13376 $as_echo_n "(cached) " >&6
13378 eval "$as_ac_Header=\$ac_header_preproc"
13380 ac_res=`eval 'as_val=${'$as_ac_Header'}
13381 $as_echo "$as_val"'`
13382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13383 $as_echo "$ac_res" >&6; }
13386 as_val=`eval 'as_val=${'$as_ac_Header'}
13387 $as_echo "$as_val"'`
13388 if test "x$as_val" = x""yes; then
13389 cat >>confdefs.h <<_ACEOF
13390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13394 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13395 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13396 { (exit 1); exit 1; }; }
13407 if test "$with_libxml" = yes ; then
13408 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13409 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13410 $as_echo_n "checking for libxml/parser.h... " >&6; }
13411 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13412 $as_echo_n "(cached) " >&6
13414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13415 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13417 # Is the header compilable?
13418 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13419 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13427 #include <libxml/parser.h>
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436 $as_echo "$ac_try_echo") >&5
13437 (eval "$ac_compile") 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && {
13444 test -z "$ac_c_werror_flag" ||
13445 test ! -s conftest.err
13446 } && test -s conftest.$ac_objext; then
13447 ac_header_compiler=yes
13449 $as_echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_header_compiler=no
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13457 $as_echo "$ac_header_compiler" >&6; }
13459 # Is the header present?
13460 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13461 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13462 cat >conftest.$ac_ext <<_ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 #include <libxml/parser.h>
13470 if { (ac_try="$ac_cpp conftest.$ac_ext"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13476 $as_echo "$ac_try_echo") >&5
13477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } >/dev/null && {
13484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13487 ac_header_preproc=yes
13489 $as_echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_header_preproc=no
13495 rm -f conftest.err conftest.$ac_ext
13496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 $as_echo "$ac_header_preproc" >&6; }
13499 # So? What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13502 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13505 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13506 ac_header_preproc=yes
13509 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13510 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13511 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13512 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13513 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13514 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13515 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13516 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13517 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13518 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13519 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13520 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13522 ## ---------------------------------------- ##
13523 ## Report this to pgsql-bugs@postgresql.org ##
13524 ## ---------------------------------------- ##
13526 ) | sed "s/^/$as_me: WARNING: /" >&2
13529 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13530 $as_echo_n "checking for libxml/parser.h... " >&6; }
13531 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13532 $as_echo_n "(cached) " >&6
13534 ac_cv_header_libxml_parser_h=$ac_header_preproc
13536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13537 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13540 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13543 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13544 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13545 { (exit 1); exit 1; }; }
13551 if test "$with_libxslt" = yes ; then
13552 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13553 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13554 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13555 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13556 $as_echo_n "(cached) " >&6
13558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13559 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13561 # Is the header compilable?
13562 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13563 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13564 cat >conftest.$ac_ext <<_ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 $ac_includes_default
13571 #include <libxslt/xslt.h>
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 ac_header_compiler=yes
13593 $as_echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_header_compiler=no
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13601 $as_echo "$ac_header_compiler" >&6; }
13603 # Is the header present?
13604 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13605 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <libxslt/xslt.h>
13614 if { (ac_try="$ac_cpp conftest.$ac_ext"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13620 $as_echo "$ac_try_echo") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev/null && {
13628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13631 ac_header_preproc=yes
13633 $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_header_preproc=no
13639 rm -f conftest.err conftest.$ac_ext
13640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641 $as_echo "$ac_header_preproc" >&6; }
13643 # So? What about this header?
13644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13646 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13649 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13650 ac_header_preproc=yes
13653 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13654 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13655 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13656 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13657 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13658 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13659 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13660 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13661 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13662 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13663 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13664 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13666 ## ---------------------------------------- ##
13667 ## Report this to pgsql-bugs@postgresql.org ##
13668 ## ---------------------------------------- ##
13670 ) | sed "s/^/$as_me: WARNING: /" >&2
13673 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13674 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13675 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13676 $as_echo_n "(cached) " >&6
13678 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13680 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13681 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13684 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13687 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13688 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13689 { (exit 1); exit 1; }; }
13695 if test "$with_ldap" = yes ; then
13696 if test "$PORTNAME" != "win32"; then
13698 for ac_header in ldap.h
13700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 $as_echo_n "checking for $ac_header... " >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705 $as_echo_n "(cached) " >&6
13707 ac_res=`eval 'as_val=${'$as_ac_Header'}
13708 $as_echo "$as_val"'`
13709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13710 $as_echo "$ac_res" >&6; }
13712 # Is the header compilable?
13713 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13714 $as_echo_n "checking $ac_header usability... " >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13722 #include <$ac_header>
13724 rm -f conftest.$ac_objext
13725 if { (ac_try="$ac_compile"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13731 $as_echo "$ac_try_echo") >&5
13732 (eval "$ac_compile") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest.$ac_objext; then
13742 ac_header_compiler=yes
13744 $as_echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_header_compiler=no
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 $as_echo "$ac_header_compiler" >&6; }
13754 # Is the header present?
13755 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13756 $as_echo_n "checking $ac_header presence... " >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <$ac_header>
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 $as_echo "$ac_try_echo") >&5
13772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev/null && {
13779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13782 ac_header_preproc=yes
13784 $as_echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 ac_header_preproc=no
13790 rm -f conftest.err conftest.$ac_ext
13791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 $as_echo "$ac_header_preproc" >&6; }
13794 # So? What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13798 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13801 ac_header_preproc=yes
13804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13809 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13811 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13815 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13817 ## ---------------------------------------- ##
13818 ## Report this to pgsql-bugs@postgresql.org ##
13819 ## ---------------------------------------- ##
13821 ) | sed "s/^/$as_me: WARNING: /" >&2
13824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 $as_echo_n "checking for $ac_header... " >&6; }
13826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13827 $as_echo_n "(cached) " >&6
13829 eval "$as_ac_Header=\$ac_header_preproc"
13831 ac_res=`eval 'as_val=${'$as_ac_Header'}
13832 $as_echo "$as_val"'`
13833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13834 $as_echo "$ac_res" >&6; }
13837 as_val=`eval 'as_val=${'$as_ac_Header'}
13838 $as_echo "$as_val"'`
13839 if test "x$as_val" = x""yes; then
13840 cat >>confdefs.h <<_ACEOF
13841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13845 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13846 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13847 { (exit 1); exit 1; }; }
13854 for ac_header in winldap.h
13856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13858 $as_echo_n "checking for $ac_header... " >&6; }
13859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13860 $as_echo_n "(cached) " >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13869 #include <windows.h>
13872 #include <$ac_header>
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13881 $as_echo "$ac_try_echo") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 eval "$as_ac_Header=yes"
13894 $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_Header=no"
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902 ac_res=`eval 'as_val=${'$as_ac_Header'}
13903 $as_echo "$as_val"'`
13904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13905 $as_echo "$ac_res" >&6; }
13906 as_val=`eval 'as_val=${'$as_ac_Header'}
13907 $as_echo "$as_val"'`
13908 if test "x$as_val" = x""yes; then
13909 cat >>confdefs.h <<_ACEOF
13910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13915 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13916 { (exit 1); exit 1; }; }
13924 if test "$with_bonjour" = yes ; then
13925 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13926 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13927 $as_echo_n "checking for dns_sd.h... " >&6; }
13928 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13932 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13934 # Is the header compilable?
13935 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13936 $as_echo_n "checking dns_sd.h usability... " >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <dns_sd.h>
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953 $as_echo "$ac_try_echo") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13966 $as_echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 $as_echo "$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13978 $as_echo_n "checking dns_sd.h presence... " >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <dns_sd.h>
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993 $as_echo "$ac_try_echo") >&5
13994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null && {
14001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14004 ac_header_preproc=yes
14006 $as_echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_header_preproc=no
14012 rm -f conftest.err conftest.$ac_ext
14013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014 $as_echo "$ac_header_preproc" >&6; }
14016 # So? What about this header?
14017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14019 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14020 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14022 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14023 ac_header_preproc=yes
14026 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14027 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14028 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14029 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14030 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14031 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14033 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14034 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14035 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14036 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14037 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14039 ## ---------------------------------------- ##
14040 ## Report this to pgsql-bugs@postgresql.org ##
14041 ## ---------------------------------------- ##
14043 ) | sed "s/^/$as_me: WARNING: /" >&2
14046 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14047 $as_echo_n "checking for dns_sd.h... " >&6; }
14048 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14049 $as_echo_n "(cached) " >&6
14051 ac_cv_header_dns_sd_h=$ac_header_preproc
14053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14054 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14057 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14060 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14061 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14062 { (exit 1); exit 1; }; }
14068 # for contrib/uuid-ossp
14069 if test "$with_ossp_uuid" = yes ; then
14071 for ac_header in ossp/uuid.h
14073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14076 $as_echo_n "checking for $ac_header... " >&6; }
14077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14078 $as_echo_n "(cached) " >&6
14080 ac_res=`eval 'as_val=${'$as_ac_Header'}
14081 $as_echo "$as_val"'`
14082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14083 $as_echo "$ac_res" >&6; }
14085 # Is the header compilable?
14086 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087 $as_echo_n "checking $ac_header usability... " >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 $ac_includes_default
14095 #include <$ac_header>
14097 rm -f conftest.$ac_objext
14098 if { (ac_try="$ac_compile"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14109 cat conftest.err >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.$ac_objext; then
14115 ac_header_compiler=yes
14117 $as_echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_header_compiler=no
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14125 $as_echo "$ac_header_compiler" >&6; }
14127 # Is the header present?
14128 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14129 $as_echo_n "checking $ac_header presence... " >&6; }
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 #include <$ac_header>
14138 if { (ac_try="$ac_cpp conftest.$ac_ext"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144 $as_echo "$ac_try_echo") >&5
14145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } >/dev/null && {
14152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14155 ac_header_preproc=yes
14157 $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ac_header_preproc=no
14163 rm -f conftest.err conftest.$ac_ext
14164 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14165 $as_echo "$ac_header_preproc" >&6; }
14167 # So? What about this header?
14168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14171 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14174 ac_header_preproc=yes
14177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14178 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14180 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14182 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14184 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14188 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14190 ## ---------------------------------------- ##
14191 ## Report this to pgsql-bugs@postgresql.org ##
14192 ## ---------------------------------------- ##
14194 ) | sed "s/^/$as_me: WARNING: /" >&2
14197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 $as_echo_n "checking for $ac_header... " >&6; }
14199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14200 $as_echo_n "(cached) " >&6
14202 eval "$as_ac_Header=\$ac_header_preproc"
14204 ac_res=`eval 'as_val=${'$as_ac_Header'}
14205 $as_echo "$as_val"'`
14206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14207 $as_echo "$ac_res" >&6; }
14210 as_val=`eval 'as_val=${'$as_ac_Header'}
14211 $as_echo "$as_val"'`
14212 if test "x$as_val" = x""yes; then
14213 cat >>confdefs.h <<_ACEOF
14214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 for ac_header in uuid.h
14222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 $as_echo_n "checking for $ac_header... " >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227 $as_echo_n "(cached) " >&6
14229 ac_res=`eval 'as_val=${'$as_ac_Header'}
14230 $as_echo "$as_val"'`
14231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14232 $as_echo "$ac_res" >&6; }
14234 # Is the header compilable?
14235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236 $as_echo_n "checking $ac_header usability... " >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 $ac_includes_default
14244 #include <$ac_header>
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14253 $as_echo "$ac_try_echo") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 ac_header_compiler=yes
14266 $as_echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_header_compiler=no
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 $as_echo "$ac_header_compiler" >&6; }
14276 # Is the header present?
14277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14278 $as_echo_n "checking $ac_header presence... " >&6; }
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <$ac_header>
14287 if { (ac_try="$ac_cpp conftest.$ac_ext"
14288 case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14293 $as_echo "$ac_try_echo") >&5
14294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } >/dev/null && {
14301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14304 ac_header_preproc=yes
14306 $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 ac_header_preproc=no
14312 rm -f conftest.err conftest.$ac_ext
14313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14314 $as_echo "$ac_header_preproc" >&6; }
14316 # So? What about this header?
14317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14323 ac_header_preproc=yes
14326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14339 ## ---------------------------------------- ##
14340 ## Report this to pgsql-bugs@postgresql.org ##
14341 ## ---------------------------------------- ##
14343 ) | sed "s/^/$as_me: WARNING: /" >&2
14346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 $as_echo_n "checking for $ac_header... " >&6; }
14348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14349 $as_echo_n "(cached) " >&6
14351 eval "$as_ac_Header=\$ac_header_preproc"
14353 ac_res=`eval 'as_val=${'$as_ac_Header'}
14354 $as_echo "$as_val"'`
14355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14356 $as_echo "$ac_res" >&6; }
14359 as_val=`eval 'as_val=${'$as_ac_Header'}
14360 $as_echo "$as_val"'`
14361 if test "x$as_val" = x""yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14367 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14368 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14369 { (exit 1); exit 1; }; }
14380 if test "$PORTNAME" = "win32" ; then
14382 for ac_header in crtdefs.h
14384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 $as_echo_n "checking for $ac_header... " >&6; }
14388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14389 $as_echo_n "(cached) " >&6
14391 ac_res=`eval 'as_val=${'$as_ac_Header'}
14392 $as_echo "$as_val"'`
14393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14394 $as_echo "$ac_res" >&6; }
14396 # Is the header compilable?
14397 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14398 $as_echo_n "checking $ac_header usability... " >&6; }
14399 cat >conftest.$ac_ext <<_ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14406 #include <$ac_header>
14408 rm -f conftest.$ac_objext
14409 if { (ac_try="$ac_compile"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416 (eval "$ac_compile") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest.$ac_objext; then
14426 ac_header_compiler=yes
14428 $as_echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 ac_header_compiler=no
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14436 $as_echo "$ac_header_compiler" >&6; }
14438 # Is the header present?
14439 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14440 $as_echo_n "checking $ac_header presence... " >&6; }
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 #include <$ac_header>
14449 if { (ac_try="$ac_cpp conftest.$ac_ext"
14450 case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14455 $as_echo "$ac_try_echo") >&5
14456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14458 grep -v '^ *+' conftest.er1 >conftest.err
14460 cat conftest.err >&5
14461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } >/dev/null && {
14463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14464 test ! -s conftest.err
14466 ac_header_preproc=yes
14468 $as_echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_header_preproc=no
14474 rm -f conftest.err conftest.$ac_ext
14475 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14476 $as_echo "$ac_header_preproc" >&6; }
14478 # So? What about this header?
14479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14482 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14485 ac_header_preproc=yes
14488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14489 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14491 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14493 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14495 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14499 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14501 ## ---------------------------------------- ##
14502 ## Report this to pgsql-bugs@postgresql.org ##
14503 ## ---------------------------------------- ##
14505 ) | sed "s/^/$as_me: WARNING: /" >&2
14508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 $as_echo_n "checking for $ac_header... " >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 $as_echo_n "(cached) " >&6
14513 eval "$as_ac_Header=\$ac_header_preproc"
14515 ac_res=`eval 'as_val=${'$as_ac_Header'}
14516 $as_echo "$as_val"'`
14517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14518 $as_echo "$ac_res" >&6; }
14521 as_val=`eval 'as_val=${'$as_ac_Header'}
14522 $as_echo "$as_val"'`
14523 if test "x$as_val" = x""yes; then
14524 cat >>confdefs.h <<_ACEOF
14525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14535 ## Types, structures, compiler characteristics
14539 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14540 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14541 if test "${ac_cv_c_bigendian+set}" = set; then
14542 $as_echo_n "(cached) " >&6
14544 ac_cv_c_bigendian=unknown
14545 # See if we're dealing with a universal compiler.
14546 cat >conftest.$ac_ext <<_ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #ifndef __APPLE_CC__
14553 not a universal capable compiler
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14565 $as_echo "$ac_try_echo") >&5
14566 (eval "$ac_compile") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest.$ac_objext; then
14577 # Check for potential -arch flags. It is not universal unless
14578 # there are some -arch flags. Note that *ppc* also matches
14579 # ppc64. This check is also rather less than ideal.
14580 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14581 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14584 $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 if test $ac_cv_c_bigendian = unknown; then
14592 # See if sys/param.h defines the BYTE_ORDER macro.
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 #include <sys/types.h>
14600 #include <sys/param.h>
14605 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14606 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14608 bogus endian macros
14615 rm -f conftest.$ac_objext
14616 if { (ac_try="$ac_compile"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14622 $as_echo "$ac_try_echo") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest.$ac_objext; then
14633 # It does; now see whether it defined to BIG_ENDIAN or not.
14634 cat >conftest.$ac_ext <<_ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 #include <sys/types.h>
14641 #include <sys/param.h>
14646 #if BYTE_ORDER != BIG_ENDIAN
14654 rm -f conftest.$ac_objext
14655 if { (ac_try="$ac_compile"
14656 case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14661 $as_echo "$ac_try_echo") >&5
14662 (eval "$ac_compile") 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest.$ac_objext; then
14672 ac_cv_c_bigendian=yes
14674 $as_echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 ac_cv_c_bigendian=no
14680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 $as_echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 if test $ac_cv_c_bigendian = unknown; then
14691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <limits.h>
14703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14704 bogus endian macros
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14718 $as_echo "$ac_try_echo") >&5
14719 (eval "$ac_compile") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest.$ac_objext; then
14729 # It does; now see whether it defined to _BIG_ENDIAN or not.
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <limits.h>
14741 #ifndef _BIG_ENDIAN
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_cv_c_bigendian=yes
14769 $as_echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_c_bigendian=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 if test $ac_cv_c_bigendian = unknown; then
14786 # Compile a test program.
14787 if test "$cross_compiling" = yes; then
14788 # Try to guess by grepping values from an object file.
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 short int ascii_mm[] =
14796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14797 short int ascii_ii[] =
14798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14799 int use_ascii (int i) {
14800 return ascii_mm[i] + ascii_ii[i];
14802 short int ebcdic_ii[] =
14803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14804 short int ebcdic_mm[] =
14805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14806 int use_ebcdic (int i) {
14807 return ebcdic_mm[i] + ebcdic_ii[i];
14814 return use_ascii (foo) == use_ebcdic (foo);
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14826 $as_echo "$ac_try_echo") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } && {
14834 test -z "$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14836 } && test -s conftest.$ac_objext; then
14837 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14838 ac_cv_c_bigendian=yes
14840 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14841 if test "$ac_cv_c_bigendian" = unknown; then
14842 ac_cv_c_bigendian=no
14844 # finding both strings is unlikely to happen, but who knows?
14845 ac_cv_c_bigendian=unknown
14849 $as_echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 $ac_includes_default
14868 /* Are we little or big endian? From Harbison&Steele. */
14872 char c[sizeof (long int)];
14875 return u.c[sizeof (long int) - 1] == 1;
14881 rm -f conftest$ac_exeext
14882 if { (ac_try="$ac_link"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14888 $as_echo "$ac_try_echo") >&5
14889 (eval "$ac_link") 2>&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14893 { (case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898 $as_echo "$ac_try_echo") >&5
14899 (eval "$ac_try") 2>&5
14901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_c_bigendian=no
14905 $as_echo "$as_me: program exited with status $ac_status" >&5
14906 $as_echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ( exit $ac_status )
14910 ac_cv_c_bigendian=yes
14912 rm -rf conftest.dSYM
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14920 $as_echo "$ac_cv_c_bigendian" >&6; }
14921 case $ac_cv_c_bigendian in #(
14923 cat >>confdefs.h <<\_ACEOF
14924 #define WORDS_BIGENDIAN 1
14931 cat >>confdefs.h <<\_ACEOF
14932 #define AC_APPLE_UNIVERSAL_BUILD 1
14937 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14938 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14939 $as_echo "$as_me: error: unknown endianness
14940 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14941 { (exit 1); exit 1; }; } ;;
14944 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14945 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14946 if test "${ac_cv_c_const+set}" = set; then
14947 $as_echo_n "(cached) " >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14959 /* FIXME: Include the comments suggested by Paul. */
14960 #ifndef __cplusplus
14961 /* Ultrix mips cc rejects this. */
14962 typedef int charset[2];
14964 /* SunOS 4.1.1 cc rejects this. */
14965 char const *const *pcpcc;
14967 /* NEC SVR4.0.2 mips cc rejects this. */
14968 struct point {int x, y;};
14969 static struct point const zero = {0,0};
14970 /* AIX XL C 1.02.0.0 rejects this.
14971 It does not let you subtract one const X* pointer from another in
14972 an arm of an if-expression whose if-part is not a constant
14974 const char *g = "string";
14975 pcpcc = &g + (g ? g-g : 0);
14976 /* HPUX 7.0 cc rejects these. */
14978 ppc = (char**) pcpcc;
14979 pcpcc = (char const *const *) ppc;
14980 { /* SCO 3.2v4 cc rejects this. */
14982 char const *s = 0 ? (char *) 0 : (char const *) 0;
14987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14988 int x[] = {25, 17};
14989 const int *foo = &x[0];
14992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14993 typedef const int *iptr;
14997 { /* AIX XL C 1.02.0.0 rejects this saying
14998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14999 struct s { int j; const int *ap[3]; };
15000 struct s *b; b->j = 5;
15002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15003 const int foo = 10;
15004 if (!foo) return 0;
15006 return !cs[0] && !zero.x;
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15020 $as_echo "$ac_try_echo") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15033 $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15042 $as_echo "$ac_cv_c_const" >&6; }
15043 if test $ac_cv_c_const = no; then
15045 cat >>confdefs.h <<\_ACEOF
15051 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15052 $as_echo_n "checking for inline... " >&6; }
15053 if test "${ac_cv_c_inline+set}" = set; then
15054 $as_echo_n "(cached) " >&6
15057 for ac_kw in inline __inline__ __inline; do
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #ifndef __cplusplus
15066 static $ac_kw foo_t static_foo () {return 0; }
15067 $ac_kw foo_t foo () {return 0; }
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15078 $as_echo "$ac_try_echo") >&5
15079 (eval "$ac_compile") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest.$ac_objext; then
15089 ac_cv_c_inline=$ac_kw
15091 $as_echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 test "$ac_cv_c_inline" != no && break
15102 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15103 $as_echo "$ac_cv_c_inline" >&6; }
15106 case $ac_cv_c_inline in
15109 case $ac_cv_c_inline in
15111 *) ac_val=$ac_cv_c_inline;;
15113 cat >>confdefs.h <<_ACEOF
15114 #ifndef __cplusplus
15115 #define inline $ac_val
15121 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15122 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15123 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15124 $as_echo_n "(cached) " >&6
15126 pgac_cv_c_inline_quietly=no
15127 if test "$ac_cv_c_inline" != no; then
15128 pgac_c_inline_save_werror=$ac_c_werror_flag
15129 ac_c_werror_flag=yes
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 static inline int fun () {return 0;}
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext && {
15163 test "$cross_compiling" = yes ||
15164 $as_test_x conftest$ac_exeext
15166 pgac_cv_c_inline_quietly=yes
15168 $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176 conftest$ac_exeext conftest.$ac_ext
15177 ac_c_werror_flag=$pgac_c_inline_save_werror
15180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15181 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15182 if test "$pgac_cv_c_inline_quietly" != no; then
15184 cat >>confdefs.h <<_ACEOF
15185 #define PG_USE_INLINE 1
15190 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15191 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15192 if test "${ac_cv_c_stringize+set}" = set; then
15193 $as_echo_n "(cached) " >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15203 char *s = x(teststring);
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206 $EGREP "#teststring" >/dev/null 2>&1; then
15207 ac_cv_c_stringize=no
15209 ac_cv_c_stringize=yes
15214 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15215 $as_echo "$ac_cv_c_stringize" >&6; }
15216 if test $ac_cv_c_stringize = yes; then
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_STRINGIZE 1
15225 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15226 $as_echo_n "checking for flexible array members... " >&6; }
15227 if test "${ac_cv_c_flexmember+set}" = set; then
15228 $as_echo_n "(cached) " >&6
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <stdlib.h>
15238 #include <stddef.h>
15239 struct s { int n; double d[]; };
15243 int m = getchar ();
15244 struct s *p = malloc (offsetof (struct s, d)
15245 + m * sizeof (double));
15247 return p->d != (double *) NULL;
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest.$ac_objext; then
15270 ac_cv_c_flexmember=yes
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_c_flexmember=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15281 $as_echo "$ac_cv_c_flexmember" >&6; }
15282 if test $ac_cv_c_flexmember = yes; then
15284 cat >>confdefs.h <<\_ACEOF
15285 #define FLEXIBLE_ARRAY_MEMBER /**/
15289 cat >>confdefs.h <<\_ACEOF
15290 #define FLEXIBLE_ARRAY_MEMBER 1
15295 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15296 $as_echo_n "checking for signed types... " >&6; }
15297 if test "${pgac_cv_c_signed+set}" = set; then
15298 $as_echo_n "(cached) " >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15310 signed char c; signed short s; signed int i;
15315 rm -f conftest.$ac_objext
15316 if { (ac_try="$ac_compile"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323 (eval "$ac_compile") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest.$ac_objext; then
15333 pgac_cv_c_signed=yes
15335 $as_echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 pgac_cv_c_signed=no
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15344 $as_echo "$pgac_cv_c_signed" >&6; }
15345 if test x"$pgac_cv_c_signed" = xno ; then
15347 cat >>confdefs.h <<\_ACEOF
15348 #define signed /**/
15352 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15353 $as_echo_n "checking for working volatile... " >&6; }
15354 if test "${ac_cv_c_volatile+set}" = set; then
15355 $as_echo_n "(cached) " >&6
15357 cat >conftest.$ac_ext <<_ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15369 int * volatile y = (int *) 0;
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15382 $as_echo "$ac_try_echo") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } && {
15390 test -z "$ac_c_werror_flag" ||
15391 test ! -s conftest.err
15392 } && test -s conftest.$ac_objext; then
15393 ac_cv_c_volatile=yes
15395 $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_cv_c_volatile=no
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15404 $as_echo "$ac_cv_c_volatile" >&6; }
15405 if test $ac_cv_c_volatile = no; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define volatile /**/
15413 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15414 $as_echo_n "checking for __func__... " >&6; }
15415 if test "${pgac_cv_funcname_func_support+set}" = set; then
15416 $as_echo_n "(cached) " >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15428 printf("%s\n", __func__);
15433 rm -f conftest.$ac_objext
15434 if { (ac_try="$ac_compile"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15440 $as_echo "$ac_try_echo") >&5
15441 (eval "$ac_compile") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } && {
15448 test -z "$ac_c_werror_flag" ||
15449 test ! -s conftest.err
15450 } && test -s conftest.$ac_objext; then
15451 pgac_cv_funcname_func_support=yes
15453 $as_echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 pgac_cv_funcname_func_support=no
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15462 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15463 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15465 cat >>confdefs.h <<\_ACEOF
15466 #define HAVE_FUNCNAME__FUNC 1
15470 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15471 $as_echo_n "checking for __FUNCTION__... " >&6; }
15472 if test "${pgac_cv_funcname_function_support+set}" = set; then
15473 $as_echo_n "(cached) " >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15485 printf("%s\n", __FUNCTION__);
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 pgac_cv_funcname_function_support=yes
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 pgac_cv_funcname_function_support=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15519 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15520 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE_FUNCNAME__FUNCTION 1
15528 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15529 $as_echo_n "checking for _Static_assert... " >&6; }
15530 if test "${pgac_cv__static_assert+set}" = set; then
15531 $as_echo_n "(cached) " >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15543 ({ _Static_assert(1, "foo"); })
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (ac_try="$ac_link"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15555 $as_echo "$ac_try_echo") >&5
15556 (eval "$ac_link") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext && {
15566 test "$cross_compiling" = yes ||
15567 $as_test_x conftest$ac_exeext
15569 pgac_cv__static_assert=yes
15571 $as_echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15574 pgac_cv__static_assert=no
15577 rm -rf conftest.dSYM
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15581 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15582 $as_echo "$pgac_cv__static_assert" >&6; }
15583 if test x"$pgac_cv__static_assert" = xyes ; then
15585 cat >>confdefs.h <<\_ACEOF
15586 #define HAVE__STATIC_ASSERT 1
15590 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15591 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15592 if test "${pgac_cv__types_compatible+set}" = set; then
15593 $as_echo_n "(cached) " >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15605 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617 $as_echo "$ac_try_echo") >&5
15618 (eval "$ac_compile") 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && {
15625 test -z "$ac_c_werror_flag" ||
15626 test ! -s conftest.err
15627 } && test -s conftest.$ac_objext; then
15628 pgac_cv__types_compatible=yes
15630 $as_echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 pgac_cv__types_compatible=no
15636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15638 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15639 $as_echo "$pgac_cv__types_compatible" >&6; }
15640 if test x"$pgac_cv__types_compatible" = xyes ; then
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15647 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15648 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15649 if test "${ac_cv_struct_tm+set}" = set; then
15650 $as_echo_n "(cached) " >&6
15652 cat >conftest.$ac_ext <<_ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 #include <sys/types.h>
15665 int *p = &tm.tm_sec;
15671 rm -f conftest.$ac_objext
15672 if { (ac_try="$ac_compile"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15678 $as_echo "$ac_try_echo") >&5
15679 (eval "$ac_compile") 2>conftest.er1
15681 grep -v '^ *+' conftest.er1 >conftest.err
15683 cat conftest.err >&5
15684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } && {
15686 test -z "$ac_c_werror_flag" ||
15687 test ! -s conftest.err
15688 } && test -s conftest.$ac_objext; then
15689 ac_cv_struct_tm=time.h
15691 $as_echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_struct_tm=sys/time.h
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15700 $as_echo "$ac_cv_struct_tm" >&6; }
15701 if test $ac_cv_struct_tm = sys/time.h; then
15703 cat >>confdefs.h <<\_ACEOF
15704 #define TM_IN_SYS_TIME 1
15709 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15710 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15711 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15712 $as_echo_n "(cached) " >&6
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <sys/types.h>
15721 #include <$ac_cv_struct_tm>
15727 static struct tm ac_aggr;
15728 if (ac_aggr.tm_zone)
15734 rm -f conftest.$ac_objext
15735 if { (ac_try="$ac_compile"
15736 case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15741 $as_echo "$ac_try_echo") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15744 grep -v '^ *+' conftest.er1 >conftest.err
15746 cat conftest.err >&5
15747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && {
15749 test -z "$ac_c_werror_flag" ||
15750 test ! -s conftest.err
15751 } && test -s conftest.$ac_objext; then
15752 ac_cv_member_struct_tm_tm_zone=yes
15754 $as_echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 #include <sys/types.h>
15764 #include <$ac_cv_struct_tm>
15770 static struct tm ac_aggr;
15771 if (sizeof ac_aggr.tm_zone)
15777 rm -f conftest.$ac_objext
15778 if { (ac_try="$ac_compile"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15784 $as_echo "$ac_try_echo") >&5
15785 (eval "$ac_compile") 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } && {
15792 test -z "$ac_c_werror_flag" ||
15793 test ! -s conftest.err
15794 } && test -s conftest.$ac_objext; then
15795 ac_cv_member_struct_tm_tm_zone=yes
15797 $as_echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 ac_cv_member_struct_tm_tm_zone=no
15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15809 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15810 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15812 cat >>confdefs.h <<_ACEOF
15813 #define HAVE_STRUCT_TM_TM_ZONE 1
15819 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_TM_ZONE 1
15826 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15827 $as_echo_n "checking for tzname... " >&6; }
15828 if test "${ac_cv_var_tzname+set}" = set; then
15829 $as_echo_n "(cached) " >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15838 #ifndef tzname /* For SGI. */
15839 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (ac_try="$ac_link"
15852 case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15857 $as_echo "$ac_try_echo") >&5
15858 (eval "$ac_link") 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_c_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest$ac_exeext && {
15868 test "$cross_compiling" = yes ||
15869 $as_test_x conftest$ac_exeext
15871 ac_cv_var_tzname=yes
15873 $as_echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 ac_cv_var_tzname=no
15879 rm -rf conftest.dSYM
15880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15881 conftest$ac_exeext conftest.$ac_ext
15883 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15884 $as_echo "$ac_cv_var_tzname" >&6; }
15885 if test $ac_cv_var_tzname = yes; then
15887 cat >>confdefs.h <<\_ACEOF
15888 #define HAVE_TZNAME 1
15893 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15894 $as_echo_n "checking for union semun... " >&6; }
15895 if test "${ac_cv_type_union_semun+set}" = set; then
15896 $as_echo_n "(cached) " >&6
15898 ac_cv_type_union_semun=no
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <sys/types.h>
15906 #include <sys/ipc.h>
15907 #include <sys/sem.h>
15912 if (sizeof (union semun))
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest.$ac_objext; then
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <sys/types.h>
15943 #include <sys/ipc.h>
15944 #include <sys/sem.h>
15949 if (sizeof ((union semun)))
15955 rm -f conftest.$ac_objext
15956 if { (ac_try="$ac_compile"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15962 $as_echo "$ac_try_echo") >&5
15963 (eval "$ac_compile") 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest.$ac_objext; then
15975 $as_echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_cv_type_union_semun=yes
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15983 $as_echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15992 $as_echo "$ac_cv_type_union_semun" >&6; }
15993 if test "x$ac_cv_type_union_semun" = x""yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_UNION_SEMUN 1
16002 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16003 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16004 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16005 $as_echo_n "(cached) " >&6
16007 ac_cv_type_struct_sockaddr_un=no
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <sys/types.h>
16015 #ifdef HAVE_SYS_UN_H
16016 #include <sys/un.h>
16023 if (sizeof (struct sockaddr_un))
16029 rm -f conftest.$ac_objext
16030 if { (ac_try="$ac_compile"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16036 $as_echo "$ac_try_echo") >&5
16037 (eval "$ac_compile") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest.$ac_objext; then
16047 cat >conftest.$ac_ext <<_ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 #include <sys/types.h>
16054 #ifdef HAVE_SYS_UN_H
16055 #include <sys/un.h>
16062 if (sizeof ((struct sockaddr_un)))
16068 rm -f conftest.$ac_objext
16069 if { (ac_try="$ac_compile"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_compile") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1 >conftest.err
16080 cat conftest.err >&5
16081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } && {
16083 test -z "$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 } && test -s conftest.$ac_objext; then
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_cv_type_struct_sockaddr_un=yes
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 $as_echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16105 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16106 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_UNIX_SOCKETS 1
16114 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16115 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16116 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16117 $as_echo_n "(cached) " >&6
16119 ac_cv_type_struct_sockaddr_storage=no
16120 cat >conftest.$ac_ext <<_ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 #include <sys/types.h>
16127 #ifdef HAVE_SYS_SOCKET_H
16128 #include <sys/socket.h>
16135 if (sizeof (struct sockaddr_storage))
16141 rm -f conftest.$ac_objext
16142 if { (ac_try="$ac_compile"
16143 case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16148 $as_echo "$ac_try_echo") >&5
16149 (eval "$ac_compile") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest.$ac_objext; then
16159 cat >conftest.$ac_ext <<_ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h. */
16165 #include <sys/types.h>
16166 #ifdef HAVE_SYS_SOCKET_H
16167 #include <sys/socket.h>
16174 if (sizeof ((struct sockaddr_storage)))
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16187 $as_echo "$ac_try_echo") >&5
16188 (eval "$ac_compile") 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && {
16195 test -z "$ac_c_werror_flag" ||
16196 test ! -s conftest.err
16197 } && test -s conftest.$ac_objext; then
16200 $as_echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_cv_type_struct_sockaddr_storage=yes
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16217 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16218 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16227 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16228 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16229 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16230 $as_echo_n "(cached) " >&6
16232 cat >conftest.$ac_ext <<_ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 #include <sys/types.h>
16239 #ifdef HAVE_SYS_SOCKET_H
16240 #include <sys/socket.h>
16247 static struct sockaddr_storage ac_aggr;
16248 if (ac_aggr.ss_family)
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16261 $as_echo "$ac_try_echo") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16271 } && test -s conftest.$ac_objext; then
16272 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16274 $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 #include <sys/types.h>
16284 #ifdef HAVE_SYS_SOCKET_H
16285 #include <sys/socket.h>
16292 static struct sockaddr_storage ac_aggr;
16293 if (sizeof ac_aggr.ss_family)
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307 (eval "$ac_compile") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest.$ac_objext; then
16317 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 ac_cv_member_struct_sockaddr_storage_ss_family=no
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16331 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16332 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16340 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16341 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16342 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16343 $as_echo_n "(cached) " >&6
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <sys/types.h>
16352 #ifdef HAVE_SYS_SOCKET_H
16353 #include <sys/socket.h>
16360 static struct sockaddr_storage ac_aggr;
16361 if (ac_aggr.__ss_family)
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16374 $as_echo "$ac_try_echo") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && {
16382 test -z "$ac_c_werror_flag" ||
16383 test ! -s conftest.err
16384 } && test -s conftest.$ac_objext; then
16385 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16387 $as_echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 #include <sys/types.h>
16397 #ifdef HAVE_SYS_SOCKET_H
16398 #include <sys/socket.h>
16405 static struct sockaddr_storage ac_aggr;
16406 if (sizeof ac_aggr.__ss_family)
16412 rm -f conftest.$ac_objext
16413 if { (ac_try="$ac_compile"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16419 $as_echo "$ac_try_echo") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest.$ac_objext; then
16430 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16432 $as_echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_cv_member_struct_sockaddr_storage___ss_family=no
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16444 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16445 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16453 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16454 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16455 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16456 $as_echo_n "(cached) " >&6
16458 cat >conftest.$ac_ext <<_ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16464 #include <sys/types.h>
16465 #ifdef HAVE_SYS_SOCKET_H
16466 #include <sys/socket.h>
16473 static struct sockaddr_storage ac_aggr;
16474 if (ac_aggr.ss_len)
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16487 $as_echo "$ac_try_echo") >&5
16488 (eval "$ac_compile") 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } && {
16495 test -z "$ac_c_werror_flag" ||
16496 test ! -s conftest.err
16497 } && test -s conftest.$ac_objext; then
16498 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16500 $as_echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 #include <sys/types.h>
16510 #ifdef HAVE_SYS_SOCKET_H
16511 #include <sys/socket.h>
16518 static struct sockaddr_storage ac_aggr;
16519 if (sizeof ac_aggr.ss_len)
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16532 $as_echo "$ac_try_echo") >&5
16533 (eval "$ac_compile") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1 >conftest.err
16537 cat conftest.err >&5
16538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest.$ac_objext; then
16543 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16545 $as_echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ac_cv_member_struct_sockaddr_storage_ss_len=no
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16556 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16557 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16558 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16566 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16567 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16568 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16569 $as_echo_n "(cached) " >&6
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577 #include <sys/types.h>
16578 #ifdef HAVE_SYS_SOCKET_H
16579 #include <sys/socket.h>
16586 static struct sockaddr_storage ac_aggr;
16587 if (ac_aggr.__ss_len)
16593 rm -f conftest.$ac_objext
16594 if { (ac_try="$ac_compile"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16600 $as_echo "$ac_try_echo") >&5
16601 (eval "$ac_compile") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1 >conftest.err
16605 cat conftest.err >&5
16606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && {
16608 test -z "$ac_c_werror_flag" ||
16609 test ! -s conftest.err
16610 } && test -s conftest.$ac_objext; then
16611 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16613 $as_echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 #include <sys/types.h>
16623 #ifdef HAVE_SYS_SOCKET_H
16624 #include <sys/socket.h>
16631 static struct sockaddr_storage ac_aggr;
16632 if (sizeof ac_aggr.__ss_len)
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16645 $as_echo "$ac_try_echo") >&5
16646 (eval "$ac_compile") 2>conftest.er1
16648 grep -v '^ *+' conftest.er1 >conftest.err
16650 cat conftest.err >&5
16651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } && {
16653 test -z "$ac_c_werror_flag" ||
16654 test ! -s conftest.err
16655 } && test -s conftest.$ac_objext; then
16656 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16658 $as_echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_cv_member_struct_sockaddr_storage___ss_len=no
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16670 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16671 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16679 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16680 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16681 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16682 $as_echo_n "(cached) " >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 #include <sys/types.h>
16691 #ifdef HAVE_SYS_SOCKET_H
16692 #include <sys/socket.h>
16699 static struct sockaddr ac_aggr;
16700 if (ac_aggr.sa_len)
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1 >conftest.err
16718 cat conftest.err >&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } && {
16721 test -z "$ac_c_werror_flag" ||
16722 test ! -s conftest.err
16723 } && test -s conftest.$ac_objext; then
16724 ac_cv_member_struct_sockaddr_sa_len=yes
16726 $as_echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <sys/types.h>
16736 #ifdef HAVE_SYS_SOCKET_H
16737 #include <sys/socket.h>
16744 static struct sockaddr ac_aggr;
16745 if (sizeof ac_aggr.sa_len)
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759 (eval "$ac_compile") 2>conftest.er1
16761 grep -v '^ *+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest.$ac_objext; then
16769 ac_cv_member_struct_sockaddr_sa_len=yes
16771 $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_cv_member_struct_sockaddr_sa_len=no
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16783 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16784 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16786 cat >>confdefs.h <<_ACEOF
16787 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16793 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16794 $as_echo_n "checking for struct addrinfo... " >&6; }
16795 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16796 $as_echo_n "(cached) " >&6
16798 ac_cv_type_struct_addrinfo=no
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 #include <sys/types.h>
16806 #include <sys/socket.h>
16813 if (sizeof (struct addrinfo))
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16826 $as_echo "$ac_try_echo") >&5
16827 (eval "$ac_compile") 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && {
16834 test -z "$ac_c_werror_flag" ||
16835 test ! -s conftest.err
16836 } && test -s conftest.$ac_objext; then
16837 cat >conftest.$ac_ext <<_ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 #include <sys/types.h>
16844 #include <sys/socket.h>
16851 if (sizeof ((struct addrinfo)))
16857 rm -f conftest.$ac_objext
16858 if { (ac_try="$ac_compile"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16864 $as_echo "$ac_try_echo") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16867 grep -v '^ *+' conftest.er1 >conftest.err
16869 cat conftest.err >&5
16870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest.$ac_objext; then
16877 $as_echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 ac_cv_type_struct_addrinfo=yes
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 $as_echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16893 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16894 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16895 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_STRUCT_ADDRINFO 1
16905 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16906 $as_echo_n "checking for intptr_t... " >&6; }
16907 if test "${ac_cv_type_intptr_t+set}" = set; then
16908 $as_echo_n "(cached) " >&6
16910 ac_cv_type_intptr_t=no
16911 cat >conftest.$ac_ext <<_ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 $ac_includes_default
16921 if (sizeof (intptr_t))
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_compile") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest.$ac_objext; then
16945 cat >conftest.$ac_ext <<_ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951 $ac_includes_default
16955 if (sizeof ((intptr_t)))
16961 rm -f conftest.$ac_objext
16962 if { (ac_try="$ac_compile"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16968 $as_echo "$ac_try_echo") >&5
16969 (eval "$ac_compile") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest.$ac_objext; then
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16984 ac_cv_type_intptr_t=yes
16987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 $as_echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16997 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16998 $as_echo "$ac_cv_type_intptr_t" >&6; }
16999 if test "x$ac_cv_type_intptr_t" = x""yes; then
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_INTPTR_T 1
17006 for ac_type in 'int' 'long int' 'long long int'; do
17007 cat >conftest.$ac_ext <<_ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 $ac_includes_default
17017 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17031 $as_echo "$ac_try_echo") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest.$ac_objext; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define intptr_t $ac_type
17049 $as_echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 test -z "$ac_type" && break
17062 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17063 $as_echo_n "checking for uintptr_t... " >&6; }
17064 if test "${ac_cv_type_uintptr_t+set}" = set; then
17065 $as_echo_n "(cached) " >&6
17067 ac_cv_type_uintptr_t=no
17068 cat >conftest.$ac_ext <<_ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17074 $ac_includes_default
17078 if (sizeof (uintptr_t))
17084 rm -f conftest.$ac_objext
17085 if { (ac_try="$ac_compile"
17086 case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17091 $as_echo "$ac_try_echo") >&5
17092 (eval "$ac_compile") 2>conftest.er1
17094 grep -v '^ *+' conftest.er1 >conftest.err
17096 cat conftest.err >&5
17097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } && {
17099 test -z "$ac_c_werror_flag" ||
17100 test ! -s conftest.err
17101 } && test -s conftest.$ac_objext; then
17102 cat >conftest.$ac_ext <<_ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 $ac_includes_default
17112 if (sizeof ((uintptr_t)))
17118 rm -f conftest.$ac_objext
17119 if { (ac_try="$ac_compile"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17125 $as_echo "$ac_try_echo") >&5
17126 (eval "$ac_compile") 2>conftest.er1
17128 grep -v '^ *+' conftest.er1 >conftest.err
17130 cat conftest.err >&5
17131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest.$ac_objext; then
17138 $as_echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ac_cv_type_uintptr_t=yes
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146 $as_echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17155 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17156 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17158 cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_UINTPTR_T 1
17163 for ac_type in 'unsigned int' 'unsigned long int' \
17164 'unsigned long long int'; do
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_includes_default
17175 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17182 rm -f conftest.$ac_objext
17183 if { (ac_try="$ac_compile"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17189 $as_echo "$ac_try_echo") >&5
17190 (eval "$ac_compile") 2>conftest.er1
17192 grep -v '^ *+' conftest.er1 >conftest.err
17194 cat conftest.err >&5
17195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && {
17197 test -z "$ac_c_werror_flag" ||
17198 test ! -s conftest.err
17199 } && test -s conftest.$ac_objext; then
17201 cat >>confdefs.h <<_ACEOF
17202 #define uintptr_t $ac_type
17207 $as_echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 test -z "$ac_type" && break
17220 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17221 $as_echo_n "checking for long long int... " >&6; }
17222 if test "${ac_cv_type_long_long_int+set}" = set; then
17223 $as_echo_n "(cached) " >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* For now, do not test the preprocessor; as of 2007 there are too many
17233 implementations with broken preprocessors. Perhaps this can
17234 be revisited in 2012. In the meantime, code should not expect
17235 #if to work with literals wider than 32 bits. */
17236 /* Test literals. */
17237 long long int ll = 9223372036854775807ll;
17238 long long int nll = -9223372036854775807LL;
17239 unsigned long long int ull = 18446744073709551615ULL;
17240 /* Test constant expressions. */
17241 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17243 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17249 /* Test availability of runtime routines for shift and division. */
17250 long long int llmax = 9223372036854775807ll;
17251 unsigned long long int ullmax = 18446744073709551615ull;
17252 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17253 | (llmax / ll) | (llmax % ll)
17254 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17255 | (ullmax / ull) | (ullmax % ull));
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (ac_try="$ac_link"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17268 $as_echo "$ac_try_echo") >&5
17269 (eval "$ac_link") 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } && {
17276 test -z "$ac_c_werror_flag" ||
17277 test ! -s conftest.err
17278 } && test -s conftest$ac_exeext && {
17279 test "$cross_compiling" = yes ||
17280 $as_test_x conftest$ac_exeext
17282 if test "$cross_compiling" = yes; then
17283 ac_cv_type_long_long_int=yes
17285 cat >conftest.$ac_ext <<_ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h. */
17291 #include <limits.h>
17294 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17295 # define LLONG_MAX (HALF - 1 + HALF)
17300 long long int n = 1;
17304 long long int m = n << i;
17307 if (LLONG_MAX / 2 < m)
17315 rm -f conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17322 $as_echo "$ac_try_echo") >&5
17323 (eval "$ac_link") 2>&5
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17327 { (case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333 (eval "$ac_try") 2>&5
17335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_type_long_long_int=yes
17339 $as_echo "$as_me: program exited with status $ac_status" >&5
17340 $as_echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ( exit $ac_status )
17344 ac_cv_type_long_long_int=no
17346 rm -rf conftest.dSYM
17347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17352 $as_echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_cv_type_long_long_int=no
17358 rm -rf conftest.dSYM
17359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17360 conftest$ac_exeext conftest.$ac_ext
17362 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17363 $as_echo "$ac_cv_type_long_long_int" >&6; }
17364 if test $ac_cv_type_long_long_int = yes; then
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_LONG_LONG_INT 1
17373 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17374 $as_echo_n "checking for locale_t... " >&6; }
17375 if test "${pgac_cv_type_locale_t+set}" = set; then
17376 $as_echo_n "(cached) " >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 #include <locale.h>
17394 rm -f conftest.$ac_objext
17395 if { (ac_try="$ac_compile"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17401 $as_echo "$ac_try_echo") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 pgac_cv_type_locale_t=yes
17414 $as_echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 #include <xlocale.h>
17433 rm -f conftest.$ac_objext
17434 if { (ac_try="$ac_compile"
17435 case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17440 $as_echo "$ac_try_echo") >&5
17441 (eval "$ac_compile") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && {
17448 test -z "$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17450 } && test -s conftest.$ac_objext; then
17451 pgac_cv_type_locale_t='yes (in xlocale.h)'
17453 $as_echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 pgac_cv_type_locale_t=no
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17465 $as_echo "$pgac_cv_type_locale_t" >&6; }
17466 if test "$pgac_cv_type_locale_t" != no; then
17468 cat >>confdefs.h <<\_ACEOF
17469 #define HAVE_LOCALE_T 1
17473 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17475 cat >>confdefs.h <<\_ACEOF
17476 #define LOCALE_T_IN_XLOCALE 1
17481 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17482 $as_echo_n "checking for struct cmsgcred... " >&6; }
17483 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17484 $as_echo_n "(cached) " >&6
17486 ac_cv_type_struct_cmsgcred=no
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 #include <sys/socket.h>
17494 #ifdef HAVE_SYS_UCRED_H
17495 #include <sys/ucred.h>
17501 if (sizeof (struct cmsgcred))
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17514 $as_echo "$ac_try_echo") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 #include <sys/socket.h>
17532 #ifdef HAVE_SYS_UCRED_H
17533 #include <sys/ucred.h>
17539 if (sizeof ((struct cmsgcred)))
17545 rm -f conftest.$ac_objext
17546 if { (ac_try="$ac_compile"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17552 $as_echo "$ac_try_echo") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } && {
17560 test -z "$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17562 } && test -s conftest.$ac_objext; then
17565 $as_echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_cv_type_struct_cmsgcred=yes
17571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573 $as_echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17582 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17583 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_STRUCT_CMSGCRED 1
17593 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17594 $as_echo_n "checking for struct option... " >&6; }
17595 if test "${ac_cv_type_struct_option+set}" = set; then
17596 $as_echo_n "(cached) " >&6
17598 ac_cv_type_struct_option=no
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 #ifdef HAVE_GETOPT_H
17606 #include <getopt.h>
17612 if (sizeof (struct option))
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17625 $as_echo "$ac_try_echo") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest.$ac_objext; then
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 #ifdef HAVE_GETOPT_H
17643 #include <getopt.h>
17649 if (sizeof ((struct option)))
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17662 $as_echo "$ac_try_echo") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest.$ac_objext; then
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_type_struct_option=yes
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683 $as_echo "$as_me: failed program was:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17692 $as_echo "$ac_cv_type_struct_option" >&6; }
17693 if test "x$ac_cv_type_struct_option" = x""yes; then
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_STRUCT_OPTION 1
17703 if test "$with_zlib" = yes; then
17704 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17705 # did not). While we could work around the lack of z_streamp, it
17706 # seems unwise to encourage people to use such old zlib versions...
17707 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17708 $as_echo_n "checking for z_streamp... " >&6; }
17709 if test "${ac_cv_type_z_streamp+set}" = set; then
17710 $as_echo_n "(cached) " >&6
17712 ac_cv_type_z_streamp=no
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17724 if (sizeof (z_streamp))
17730 rm -f conftest.$ac_objext
17731 if { (ac_try="$ac_compile"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17737 $as_echo "$ac_try_echo") >&5
17738 (eval "$ac_compile") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest.$ac_objext; then
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17759 if (sizeof ((z_streamp)))
17765 rm -f conftest.$ac_objext
17766 if { (ac_try="$ac_compile"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17772 $as_echo "$ac_try_echo") >&5
17773 (eval "$ac_compile") 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && {
17780 test -z "$ac_c_werror_flag" ||
17781 test ! -s conftest.err
17782 } && test -s conftest.$ac_objext; then
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 ac_cv_type_z_streamp=yes
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 $as_echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17802 $as_echo "$ac_cv_type_z_streamp" >&6; }
17803 if test "x$ac_cv_type_z_streamp" = x""yes; then
17806 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17807 Use --without-zlib to disable zlib support." >&5
17808 $as_echo "$as_me: error: zlib version is too old
17809 Use --without-zlib to disable zlib support." >&2;}
17810 { (exit 1); exit 1; }; }
17815 if test "$with_krb5" = yes; then
17816 # Check for differences between MIT and Heimdal (KTH) releases
17817 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17818 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17819 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17820 $as_echo_n "(cached) " >&6
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17833 static krb5_ticket ac_aggr;
17834 if (ac_aggr.enc_part2)
17840 rm -f conftest.$ac_objext
17841 if { (ac_try="$ac_compile"
17842 case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17847 $as_echo "$ac_try_echo") >&5
17848 (eval "$ac_compile") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } && {
17855 test -z "$ac_c_werror_flag" ||
17856 test ! -s conftest.err
17857 } && test -s conftest.$ac_objext; then
17858 ac_cv_member_krb5_ticket_enc_part2=yes
17860 $as_echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 cat >conftest.$ac_ext <<_ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17874 static krb5_ticket ac_aggr;
17875 if (sizeof ac_aggr.enc_part2)
17881 rm -f conftest.$ac_objext
17882 if { (ac_try="$ac_compile"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17888 $as_echo "$ac_try_echo") >&5
17889 (eval "$ac_compile") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest.$ac_objext; then
17899 ac_cv_member_krb5_ticket_enc_part2=yes
17901 $as_echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17904 ac_cv_member_krb5_ticket_enc_part2=no
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17913 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17914 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17916 cat >>confdefs.h <<_ACEOF
17917 #define HAVE_KRB5_TICKET_ENC_PART2 1
17922 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17923 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17924 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17925 $as_echo_n "(cached) " >&6
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17938 static krb5_ticket ac_aggr;
17939 if (ac_aggr.client)
17945 rm -f conftest.$ac_objext
17946 if { (ac_try="$ac_compile"
17947 case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17952 $as_echo "$ac_try_echo") >&5
17953 (eval "$ac_compile") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } && {
17960 test -z "$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 } && test -s conftest.$ac_objext; then
17963 ac_cv_member_krb5_ticket_client=yes
17965 $as_echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 cat >conftest.$ac_ext <<_ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17979 static krb5_ticket ac_aggr;
17980 if (sizeof ac_aggr.client)
17986 rm -f conftest.$ac_objext
17987 if { (ac_try="$ac_compile"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17993 $as_echo "$ac_try_echo") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_cv_member_krb5_ticket_client=yes
18006 $as_echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_cv_member_krb5_ticket_client=no
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18018 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18019 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_KRB5_TICKET_CLIENT 1
18027 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18028 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18029 { (exit 1); exit 1; }; }
18034 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18035 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18036 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18037 $as_echo_n "(cached) " >&6
18039 cat >conftest.$ac_ext <<_ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18050 static krb5_error ac_aggr;
18051 if (ac_aggr.text.data)
18057 rm -f conftest.$ac_objext
18058 if { (ac_try="$ac_compile"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18064 $as_echo "$ac_try_echo") >&5
18065 (eval "$ac_compile") 2>conftest.er1
18067 grep -v '^ *+' conftest.er1 >conftest.err
18069 cat conftest.err >&5
18070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } && {
18072 test -z "$ac_c_werror_flag" ||
18073 test ! -s conftest.err
18074 } && test -s conftest.$ac_objext; then
18075 ac_cv_member_krb5_error_text_data=yes
18077 $as_echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18091 static krb5_error ac_aggr;
18092 if (sizeof ac_aggr.text.data)
18098 rm -f conftest.$ac_objext
18099 if { (ac_try="$ac_compile"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18105 $as_echo "$ac_try_echo") >&5
18106 (eval "$ac_compile") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } && {
18113 test -z "$ac_c_werror_flag" ||
18114 test ! -s conftest.err
18115 } && test -s conftest.$ac_objext; then
18116 ac_cv_member_krb5_error_text_data=yes
18118 $as_echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18121 ac_cv_member_krb5_error_text_data=no
18124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18129 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18130 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18131 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18139 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18140 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18141 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18142 $as_echo_n "(cached) " >&6
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18155 static krb5_error ac_aggr;
18156 if (ac_aggr.e_data)
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18169 $as_echo "$ac_try_echo") >&5
18170 (eval "$ac_compile") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } && {
18177 test -z "$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 } && test -s conftest.$ac_objext; then
18180 ac_cv_member_krb5_error_e_data=yes
18182 $as_echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18196 static krb5_error ac_aggr;
18197 if (sizeof ac_aggr.e_data)
18203 rm -f conftest.$ac_objext
18204 if { (ac_try="$ac_compile"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18210 $as_echo "$ac_try_echo") >&5
18211 (eval "$ac_compile") 2>conftest.er1
18213 grep -v '^ *+' conftest.er1 >conftest.err
18215 cat conftest.err >&5
18216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && {
18218 test -z "$ac_c_werror_flag" ||
18219 test ! -s conftest.err
18220 } && test -s conftest.$ac_objext; then
18221 ac_cv_member_krb5_error_e_data=yes
18223 $as_echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_member_krb5_error_e_data=no
18229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18235 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18236 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define HAVE_KRB5_ERROR_E_DATA 1
18244 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18245 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18246 { (exit 1); exit 1; }; }
18252 # Win32 requires headers to be loaded for __stdcall, so can't use
18253 # AC_CHECK_FUNCS here.
18254 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18255 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18266 krb5_free_unparsed_name(NULL,NULL);
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (ac_try="$ac_link"
18273 case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18278 $as_echo "$ac_try_echo") >&5
18279 (eval "$ac_link") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } && {
18286 test -z "$ac_c_werror_flag" ||
18287 test ! -s conftest.err
18288 } && test -s conftest$ac_exeext && {
18289 test "$cross_compiling" = yes ||
18290 $as_test_x conftest$ac_exeext
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18297 { $as_echo "$as_me:$LINENO: result: yes" >&5
18298 $as_echo "yes" >&6; }
18300 $as_echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 { $as_echo "$as_me:$LINENO: result: no" >&5
18304 $as_echo "no" >&6; }
18307 rm -rf conftest.dSYM
18308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18309 conftest$ac_exeext conftest.$ac_ext
18312 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18315 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18316 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18317 cat >conftest.$ac_ext <<_ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18327 int a = 0; int *p = &a; int r;
18328 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18340 $as_echo "$ac_try_echo") >&5
18341 (eval "$ac_compile") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest.$ac_objext; then
18351 pgac_cv_have_ppc_mutex_hint=yes
18353 $as_echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 pgac_cv_have_ppc_mutex_hint=no
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18361 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18362 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18364 cat >>confdefs.h <<\_ACEOF
18365 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18372 # Check largefile support. You might think this is a system service not a
18373 # compiler characteristic, but you'd be wrong. We must check this before
18374 # probing existence of related functions such as fseeko, since the largefile
18375 # defines can affect what is generated for that.
18376 if test "$PORTNAME" != "win32"; then
18377 # Check whether --enable-largefile was given.
18378 if test "${enable_largefile+set}" = set; then
18379 enableval=$enable_largefile;
18382 if test "$enable_largefile" != no; then
18384 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18385 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18386 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18387 $as_echo_n "(cached) " >&6
18389 ac_cv_sys_largefile_CC=no
18390 if test "$GCC" != yes; then
18393 # IRIX 6.2 and later do not support large files by default,
18394 # so use the C compiler's -n32 option if that helps.
18395 cat >conftest.$ac_ext <<_ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <sys/types.h>
18402 /* Check that off_t can represent 2**63 - 1 correctly.
18403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18404 since some C++ compilers masquerading as C compilers
18405 incorrectly reject 9223372036854775807. */
18406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18408 && LARGE_OFF_T % 2147483647 == 1)
18418 rm -f conftest.$ac_objext
18419 if { (ac_try="$ac_compile"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18425 $as_echo "$ac_try_echo") >&5
18426 (eval "$ac_compile") 2>conftest.er1
18428 grep -v '^ *+' conftest.er1 >conftest.err
18430 cat conftest.err >&5
18431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && {
18433 test -z "$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 } && test -s conftest.$ac_objext; then
18438 $as_echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18444 rm -f core conftest.err conftest.$ac_objext
18446 rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18453 $as_echo "$ac_try_echo") >&5
18454 (eval "$ac_compile") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } && {
18461 test -z "$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 } && test -s conftest.$ac_objext; then
18464 ac_cv_sys_largefile_CC=' -n32'; break
18466 $as_echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18472 rm -f core conftest.err conftest.$ac_objext
18476 rm -f conftest.$ac_ext
18479 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18480 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18481 if test "$ac_cv_sys_largefile_CC" != no; then
18482 CC=$CC$ac_cv_sys_largefile_CC
18485 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18486 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18487 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18488 $as_echo_n "(cached) " >&6
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 #include <sys/types.h>
18498 /* Check that off_t can represent 2**63 - 1 correctly.
18499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18500 since some C++ compilers masquerading as C compilers
18501 incorrectly reject 9223372036854775807. */
18502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18504 && LARGE_OFF_T % 2147483647 == 1)
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18521 $as_echo "$ac_try_echo") >&5
18522 (eval "$ac_compile") 2>conftest.er1
18524 grep -v '^ *+' conftest.er1 >conftest.err
18526 cat conftest.err >&5
18527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } && {
18529 test -z "$ac_c_werror_flag" ||
18530 test ! -s conftest.err
18531 } && test -s conftest.$ac_objext; then
18532 ac_cv_sys_file_offset_bits=no; break
18534 $as_echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 #define _FILE_OFFSET_BITS 64
18548 #include <sys/types.h>
18549 /* Check that off_t can represent 2**63 - 1 correctly.
18550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18551 since some C++ compilers masquerading as C compilers
18552 incorrectly reject 9223372036854775807. */
18553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18555 && LARGE_OFF_T % 2147483647 == 1)
18565 rm -f conftest.$ac_objext
18566 if { (ac_try="$ac_compile"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18572 $as_echo "$ac_try_echo") >&5
18573 (eval "$ac_compile") 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest.$ac_objext; then
18583 ac_cv_sys_file_offset_bits=64; break
18585 $as_echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18592 ac_cv_sys_file_offset_bits=unknown
18596 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18597 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18598 case $ac_cv_sys_file_offset_bits in #(
18601 cat >>confdefs.h <<_ACEOF
18602 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18607 if test $ac_cv_sys_file_offset_bits = unknown; then
18608 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18609 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18610 if test "${ac_cv_sys_large_files+set}" = set; then
18611 $as_echo_n "(cached) " >&6
18614 cat >conftest.$ac_ext <<_ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18620 #include <sys/types.h>
18621 /* Check that off_t can represent 2**63 - 1 correctly.
18622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18623 since some C++ compilers masquerading as C compilers
18624 incorrectly reject 9223372036854775807. */
18625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18627 && LARGE_OFF_T % 2147483647 == 1)
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645 (eval "$ac_compile") 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest.$ac_objext; then
18655 ac_cv_sys_large_files=no; break
18657 $as_echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 #define _LARGE_FILES 1
18671 #include <sys/types.h>
18672 /* Check that off_t can represent 2**63 - 1 correctly.
18673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18674 since some C++ compilers masquerading as C compilers
18675 incorrectly reject 9223372036854775807. */
18676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18678 && LARGE_OFF_T % 2147483647 == 1)
18688 rm -f conftest.$ac_objext
18689 if { (ac_try="$ac_compile"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_compile") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest.$ac_objext; then
18706 ac_cv_sys_large_files=1; break
18708 $as_echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 ac_cv_sys_large_files=unknown
18719 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18720 $as_echo "$ac_cv_sys_large_files" >&6; }
18721 case $ac_cv_sys_large_files in #(
18724 cat >>confdefs.h <<_ACEOF
18725 #define _LARGE_FILES $ac_cv_sys_large_files
18735 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18736 # The cast to long int works around a bug in the HP C Compiler
18737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18739 # This bug is HP SR number 8606223364.
18740 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18741 $as_echo_n "checking size of off_t... " >&6; }
18742 if test "${ac_cv_sizeof_off_t+set}" = set; then
18743 $as_echo_n "(cached) " >&6
18745 if test "$cross_compiling" = yes; then
18746 # Depending upon the size, compute the lo and hi bounds.
18747 cat >conftest.$ac_ext <<_ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 $ac_includes_default
18757 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18764 rm -f conftest.$ac_objext
18765 if { (ac_try="$ac_compile"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18771 $as_echo "$ac_try_echo") >&5
18772 (eval "$ac_compile") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18776 cat conftest.err >&5
18777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest.$ac_objext; then
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18794 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18808 $as_echo "$ac_try_echo") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^ *+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_hi=$ac_mid; break
18821 $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_lo=`expr $ac_mid + 1`
18825 if test $ac_lo -le $ac_mid; then
18829 ac_mid=`expr 2 '*' $ac_mid + 1`
18832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 $as_echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 $ac_includes_default
18848 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18855 rm -f conftest.$ac_objext
18856 if { (ac_try="$ac_compile"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18862 $as_echo "$ac_try_echo") >&5
18863 (eval "$ac_compile") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest.$ac_objext; then
18875 cat >conftest.$ac_ext <<_ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 $ac_includes_default
18885 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18892 rm -f conftest.$ac_objext
18893 if { (ac_try="$ac_compile"
18894 case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18899 $as_echo "$ac_try_echo") >&5
18900 (eval "$ac_compile") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest.$ac_objext; then
18910 ac_lo=$ac_mid; break
18912 $as_echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_hi=`expr '(' $ac_mid ')' - 1`
18916 if test $ac_mid -le $ac_hi; then
18920 ac_mid=`expr 2 '*' $ac_mid`
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 $as_echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 # Binary search between lo and hi bounds.
18937 while test "x$ac_lo" != "x$ac_hi"; do
18938 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18939 cat >conftest.$ac_ext <<_ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 $ac_includes_default
18949 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18963 $as_echo "$ac_try_echo") >&5
18964 (eval "$ac_compile") 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } && {
18971 test -z "$ac_c_werror_flag" ||
18972 test ! -s conftest.err
18973 } && test -s conftest.$ac_objext; then
18976 $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 ac_lo=`expr '(' $ac_mid ')' + 1`
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18985 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18986 '') if test "$ac_cv_type_off_t" = yes; then
18987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18989 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18990 See \`config.log' for more details." >&5
18991 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18992 See \`config.log' for more details." >&2;}
18993 { (exit 77); exit 77; }; }; }
18995 ac_cv_sizeof_off_t=0
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 $ac_includes_default
19006 static long int longval () { return (long int) (sizeof (off_t)); }
19007 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19009 #include <stdlib.h>
19014 FILE *f = fopen ("conftest.val", "w");
19017 if (((long int) (sizeof (off_t))) < 0)
19019 long int i = longval ();
19020 if (i != ((long int) (sizeof (off_t))))
19022 fprintf (f, "%ld", i);
19026 unsigned long int i = ulongval ();
19027 if (i != ((long int) (sizeof (off_t))))
19029 fprintf (f, "%lu", i);
19031 /* Do not output a trailing newline, as this causes \r\n confusion
19032 on some platforms. */
19033 return ferror (f) || fclose (f) != 0;
19039 rm -f conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19046 $as_echo "$ac_try_echo") >&5
19047 (eval "$ac_link") 2>&5
19049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19051 { (case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19056 $as_echo "$ac_try_echo") >&5
19057 (eval "$ac_try") 2>&5
19059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_cv_sizeof_off_t=`cat conftest.val`
19063 $as_echo "$as_me: program exited with status $ac_status" >&5
19064 $as_echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ( exit $ac_status )
19068 if test "$ac_cv_type_off_t" = yes; then
19069 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19071 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19072 See \`config.log' for more details." >&5
19073 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19074 See \`config.log' for more details." >&2;}
19075 { (exit 77); exit 77; }; }; }
19077 ac_cv_sizeof_off_t=0
19080 rm -rf conftest.dSYM
19081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19085 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19086 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19090 cat >>confdefs.h <<_ACEOF
19091 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19096 # If we don't have largefile support, can't handle segsize >= 2GB.
19097 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19098 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19099 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19100 { (exit 1); exit 1; }; }
19105 ## Functions, global variables
19108 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19109 $as_echo_n "checking for int timezone... " >&6; }
19110 if test "${pgac_cv_var_int_timezone+set}" = set; then
19111 $as_echo_n "(cached) " >&6
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19125 res = timezone / 60;
19127 res = _timezone / 60;
19133 rm -f conftest.$ac_objext conftest$ac_exeext
19134 if { (ac_try="$ac_link"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19140 $as_echo "$ac_try_echo") >&5
19141 (eval "$ac_link") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest$ac_exeext && {
19151 test "$cross_compiling" = yes ||
19152 $as_test_x conftest$ac_exeext
19154 pgac_cv_var_int_timezone=yes
19156 $as_echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 pgac_cv_var_int_timezone=no
19162 rm -rf conftest.dSYM
19163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19164 conftest$ac_exeext conftest.$ac_ext
19166 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19167 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19168 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_INT_TIMEZONE /**/
19175 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19176 $as_echo_n "checking types of arguments for accept()... " >&6; }
19177 if test "${ac_cv_func_accept_return+set}" = set; then
19178 $as_echo_n "(cached) " >&6
19180 if test "${ac_cv_func_accept_arg1+set}" = set; then
19181 $as_echo_n "(cached) " >&6
19183 if test "${ac_cv_func_accept_arg2+set}" = set; then
19184 $as_echo_n "(cached) " >&6
19186 if test "${ac_cv_func_accept_arg3+set}" = set; then
19187 $as_echo_n "(cached) " >&6
19189 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19190 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19191 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19192 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 #ifdef HAVE_SYS_TYPES_H
19200 #include <sys/types.h>
19202 #ifdef HAVE_SYS_SOCKET_H
19203 #include <sys/socket.h>
19205 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19221 $as_echo "$ac_try_echo") >&5
19222 (eval "$ac_compile") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest.$ac_objext; then
19232 ac_not_found=no; break 4
19234 $as_echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245 if test "$ac_not_found" = yes; then
19246 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19247 $as_echo "$as_me: error: could not determine argument types" >&2;}
19248 { (exit 1); exit 1; }; }
19250 if test "$ac_cv_func_accept_arg3" = "void"; then
19251 ac_cv_func_accept_arg3=int
19261 { $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
19262 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19264 cat >>confdefs.h <<_ACEOF
19265 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19269 cat >>confdefs.h <<_ACEOF
19270 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19274 cat >>confdefs.h <<_ACEOF
19275 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19279 cat >>confdefs.h <<_ACEOF
19280 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19284 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19285 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19286 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19287 $as_echo_n "(cached) " >&6
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <sys/time.h>
19299 struct timeval *tp;
19300 struct timezone *tzp;
19301 gettimeofday(tp,tzp);
19306 rm -f conftest.$ac_objext
19307 if { (ac_try="$ac_compile"
19308 case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19313 $as_echo "$ac_try_echo") >&5
19314 (eval "$ac_compile") 2>conftest.er1
19316 grep -v '^ *+' conftest.er1 >conftest.err
19318 cat conftest.err >&5
19319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); } && {
19321 test -z "$ac_c_werror_flag" ||
19322 test ! -s conftest.err
19323 } && test -s conftest.$ac_objext; then
19324 pgac_cv_func_gettimeofday_1arg=no
19326 $as_echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 pgac_cv_func_gettimeofday_1arg=yes
19332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19334 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19335 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19336 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define GETTIMEOFDAY_1ARG /**/
19346 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19347 # symbols that that library has no business exposing to the world. Pending
19348 # acquisition of a clue by those developers, ignore libedit (including its
19349 # possible alias of libreadline) while checking for everything else.
19350 LIBS_including_readline="$LIBS"
19351 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19374 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19377 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19378 $as_echo_n "checking for $ac_func... " >&6; }
19379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19380 $as_echo_n "(cached) " >&6
19382 cat >conftest.$ac_ext <<_ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19390 #define $ac_func innocuous_$ac_func
19392 /* System header to define __stub macros and hopefully few prototypes,
19393 which can conflict with char $ac_func (); below.
19394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19395 <limits.h> exists even on freestanding compilers. */
19398 # include <limits.h>
19400 # include <assert.h>
19405 /* Override any GCC internal prototype to avoid an error.
19406 Use char because int might match the return type of a GCC
19407 builtin and then its argument prototype would still apply. */
19412 /* The GNU C library defines this for functions which it implements
19413 to always fail with ENOSYS. Some functions are actually named
19414 something starting with __ and the normal name is an alias. */
19415 #if defined __stub_$ac_func || defined __stub___$ac_func
19422 return $ac_func ();
19427 rm -f conftest.$ac_objext conftest$ac_exeext
19428 if { (ac_try="$ac_link"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19434 $as_echo "$ac_try_echo") >&5
19435 (eval "$ac_link") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest$ac_exeext && {
19445 test "$cross_compiling" = yes ||
19446 $as_test_x conftest$ac_exeext
19448 eval "$as_ac_var=yes"
19450 $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 eval "$as_ac_var=no"
19456 rm -rf conftest.dSYM
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19460 ac_res=`eval 'as_val=${'$as_ac_var'}
19461 $as_echo "$as_val"'`
19462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19463 $as_echo "$ac_res" >&6; }
19464 as_val=`eval 'as_val=${'$as_ac_var'}
19465 $as_echo "$as_val"'`
19466 if test "x$as_val" = x""yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19476 for ac_func in fseeko
19478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19479 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19480 $as_echo_n "checking for $ac_func... " >&6; }
19481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19482 $as_echo_n "(cached) " >&6
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19492 #define $ac_func innocuous_$ac_func
19494 /* System header to define __stub macros and hopefully few prototypes,
19495 which can conflict with char $ac_func (); below.
19496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19497 <limits.h> exists even on freestanding compilers. */
19500 # include <limits.h>
19502 # include <assert.h>
19507 /* Override any GCC internal prototype to avoid an error.
19508 Use char because int might match the return type of a GCC
19509 builtin and then its argument prototype would still apply. */
19514 /* The GNU C library defines this for functions which it implements
19515 to always fail with ENOSYS. Some functions are actually named
19516 something starting with __ and the normal name is an alias. */
19517 #if defined __stub_$ac_func || defined __stub___$ac_func
19524 return $ac_func ();
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19536 $as_echo "$ac_try_echo") >&5
19537 (eval "$ac_link") 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && {
19544 test -z "$ac_c_werror_flag" ||
19545 test ! -s conftest.err
19546 } && test -s conftest$ac_exeext && {
19547 test "$cross_compiling" = yes ||
19548 $as_test_x conftest$ac_exeext
19550 eval "$as_ac_var=yes"
19552 $as_echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 eval "$as_ac_var=no"
19558 rm -rf conftest.dSYM
19559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19560 conftest$ac_exeext conftest.$ac_ext
19562 ac_res=`eval 'as_val=${'$as_ac_var'}
19563 $as_echo "$as_val"'`
19564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19565 $as_echo "$ac_res" >&6; }
19566 as_val=`eval 'as_val=${'$as_ac_var'}
19567 $as_echo "$as_val"'`
19568 if test "x$as_val" = x""yes; then
19569 cat >>confdefs.h <<_ACEOF
19570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19574 case " $LIBOBJS " in
19575 *" $ac_func.$ac_objext "* ) ;;
19576 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19585 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19586 # Mingw uses macros to access Win32 API calls
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_FSEEKO 1
19593 ac_cv_func_fseeko=yes;;
19595 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19596 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19597 if test "${ac_cv_sys_largefile_source+set}" = set; then
19598 $as_echo_n "(cached) " >&6
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 #include <sys/types.h> /* for off_t */
19612 int (*fp) (FILE *, off_t, int) = fseeko;
19613 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19625 $as_echo "$ac_try_echo") >&5
19626 (eval "$ac_link") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && {
19633 test -z "$ac_c_werror_flag" ||
19634 test ! -s conftest.err
19635 } && test -s conftest$ac_exeext && {
19636 test "$cross_compiling" = yes ||
19637 $as_test_x conftest$ac_exeext
19639 ac_cv_sys_largefile_source=no; break
19641 $as_echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19647 rm -rf conftest.dSYM
19648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19649 conftest$ac_exeext conftest.$ac_ext
19650 cat >conftest.$ac_ext <<_ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 #define _LARGEFILE_SOURCE 1
19657 #include <sys/types.h> /* for off_t */
19662 int (*fp) (FILE *, off_t, int) = fseeko;
19663 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (ac_try="$ac_link"
19670 case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19675 $as_echo "$ac_try_echo") >&5
19676 (eval "$ac_link") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest$ac_exeext && {
19686 test "$cross_compiling" = yes ||
19687 $as_test_x conftest$ac_exeext
19689 ac_cv_sys_largefile_source=1; break
19691 $as_echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19697 rm -rf conftest.dSYM
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19700 ac_cv_sys_largefile_source=unknown
19704 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19705 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19706 case $ac_cv_sys_largefile_source in #(
19709 cat >>confdefs.h <<_ACEOF
19710 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19716 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19717 # in glibc 2.1.3, but that breaks too many other things.
19718 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19719 if test $ac_cv_sys_largefile_source != unknown; then
19721 cat >>confdefs.h <<\_ACEOF
19722 #define HAVE_FSEEKO 1
19729 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19730 # by calling it, 2009-04-02
19731 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19732 if test "$PORTNAME" != "solaris"; then
19734 for ac_func in posix_fadvise
19736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19737 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19738 $as_echo_n "checking for $ac_func... " >&6; }
19739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19740 $as_echo_n "(cached) " >&6
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19750 #define $ac_func innocuous_$ac_func
19752 /* System header to define __stub macros and hopefully few prototypes,
19753 which can conflict with char $ac_func (); below.
19754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19755 <limits.h> exists even on freestanding compilers. */
19758 # include <limits.h>
19760 # include <assert.h>
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19772 /* The GNU C library defines this for functions which it implements
19773 to always fail with ENOSYS. Some functions are actually named
19774 something starting with __ and the normal name is an alias. */
19775 #if defined __stub_$ac_func || defined __stub___$ac_func
19782 return $ac_func ();
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19794 $as_echo "$ac_try_echo") >&5
19795 (eval "$ac_link") 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } && {
19802 test -z "$ac_c_werror_flag" ||
19803 test ! -s conftest.err
19804 } && test -s conftest$ac_exeext && {
19805 test "$cross_compiling" = yes ||
19806 $as_test_x conftest$ac_exeext
19808 eval "$as_ac_var=yes"
19810 $as_echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 eval "$as_ac_var=no"
19816 rm -rf conftest.dSYM
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext conftest.$ac_ext
19820 ac_res=`eval 'as_val=${'$as_ac_var'}
19821 $as_echo "$as_val"'`
19822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19823 $as_echo "$ac_res" >&6; }
19824 as_val=`eval 'as_val=${'$as_ac_var'}
19825 $as_echo "$as_val"'`
19826 if test "x$as_val" = x""yes; then
19827 cat >>confdefs.h <<_ACEOF
19828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19834 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19835 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19836 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19837 $as_echo_n "(cached) " >&6
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19850 #ifndef posix_fadvise
19851 (void) posix_fadvise;
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19865 $as_echo "$ac_try_echo") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19868 grep -v '^ *+' conftest.er1 >conftest.err
19870 cat conftest.err >&5
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest.$ac_objext; then
19876 ac_cv_have_decl_posix_fadvise=yes
19878 $as_echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19881 ac_cv_have_decl_posix_fadvise=no
19884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19887 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19888 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19890 cat >>confdefs.h <<_ACEOF
19891 #define HAVE_DECL_POSIX_FADVISE 1
19896 cat >>confdefs.h <<_ACEOF
19897 #define HAVE_DECL_POSIX_FADVISE 0
19906 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19907 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19908 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19909 $as_echo_n "(cached) " >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <unistd.h>
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19948 ac_cv_have_decl_fdatasync=yes
19950 $as_echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_have_decl_fdatasync=no
19956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19958 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19959 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19960 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_DECL_FDATASYNC 1
19968 cat >>confdefs.h <<_ACEOF
19969 #define HAVE_DECL_FDATASYNC 0
19976 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19977 $as_echo_n "checking whether strlcat is declared... " >&6; }
19978 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19979 $as_echo_n "(cached) " >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 $ac_includes_default
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20006 $as_echo "$ac_try_echo") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.$ac_objext; then
20017 ac_cv_have_decl_strlcat=yes
20019 $as_echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_have_decl_strlcat=no
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20028 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20029 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_DECL_STRLCAT 1
20037 cat >>confdefs.h <<_ACEOF
20038 #define HAVE_DECL_STRLCAT 0
20043 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20044 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20045 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20046 $as_echo_n "(cached) " >&6
20048 cat >conftest.$ac_ext <<_ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20066 rm -f conftest.$ac_objext
20067 if { (ac_try="$ac_compile"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073 $as_echo "$ac_try_echo") >&5
20074 (eval "$ac_compile") 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest.$ac_objext; then
20084 ac_cv_have_decl_strlcpy=yes
20086 $as_echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_have_decl_strlcpy=no
20092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20095 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20096 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20098 cat >>confdefs.h <<_ACEOF
20099 #define HAVE_DECL_STRLCPY 1
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_DECL_STRLCPY 0
20112 # This is probably only present on Darwin, but may as well check always
20113 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20114 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20115 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20116 $as_echo_n "(cached) " >&6
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20129 #ifndef F_FULLFSYNC
20130 (void) F_FULLFSYNC;
20137 rm -f conftest.$ac_objext
20138 if { (ac_try="$ac_compile"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20144 $as_echo "$ac_try_echo") >&5
20145 (eval "$ac_compile") 2>conftest.er1
20147 grep -v '^ *+' conftest.er1 >conftest.err
20149 cat conftest.err >&5
20150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest.$ac_objext; then
20155 ac_cv_have_decl_F_FULLFSYNC=yes
20157 $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20160 ac_cv_have_decl_F_FULLFSYNC=no
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20166 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20167 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20169 cat >>confdefs.h <<_ACEOF
20170 #define HAVE_DECL_F_FULLFSYNC 1
20175 cat >>confdefs.h <<_ACEOF
20176 #define HAVE_DECL_F_FULLFSYNC 0
20185 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20186 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20187 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20188 $as_echo_n "(cached) " >&6
20190 ac_cv_type_struct_sockaddr_in6=no
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 $ac_includes_default
20198 #include <netinet/in.h>
20203 if (sizeof (struct sockaddr_in6))
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20216 $as_echo "$ac_try_echo") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 $ac_includes_default
20234 #include <netinet/in.h>
20239 if (sizeof ((struct sockaddr_in6)))
20245 rm -f conftest.$ac_objext
20246 if { (ac_try="$ac_compile"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20252 $as_echo "$ac_try_echo") >&5
20253 (eval "$ac_compile") 2>conftest.er1
20255 grep -v '^ *+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && {
20260 test -z "$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 } && test -s conftest.$ac_objext; then
20265 $as_echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ac_cv_type_struct_sockaddr_in6=yes
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273 $as_echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20282 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20283 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_IPV6 1
20294 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20295 $as_echo_n "checking for PS_STRINGS... " >&6; }
20296 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20297 $as_echo_n "(cached) " >&6
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 #include <machine/vmparam.h>
20306 #include <sys/exec.h>
20311 PS_STRINGS->ps_nargvstr = 1;
20312 PS_STRINGS->ps_argvstr = "foo";
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20324 $as_echo "$ac_try_echo") >&5
20325 (eval "$ac_link") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest$ac_exeext && {
20335 test "$cross_compiling" = yes ||
20336 $as_test_x conftest$ac_exeext
20338 pgac_cv_var_PS_STRINGS=yes
20340 $as_echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 pgac_cv_var_PS_STRINGS=no
20346 rm -rf conftest.dSYM
20347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20348 conftest$ac_exeext conftest.$ac_ext
20350 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20351 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20352 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20354 cat >>confdefs.h <<\_ACEOF
20355 #define HAVE_PS_STRINGS /**/
20361 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20362 # is missing. Yes, there are machines that have only one. We may
20363 # also decide to use snprintf.c if snprintf() is present but does not
20364 # have all the features we need --- see below.
20366 if test "$PORTNAME" = "win32"; then
20367 # Win32 gets snprintf.c built unconditionally.
20369 # To properly translate all NLS languages strings, we must support the
20370 # *printf() %$ format, which allows *printf() arguments to be selected
20371 # by position in the translated string.
20373 # libintl versions < 0.13 use the native *printf() functions, and Win32
20374 # *printf() doesn't understand %$, so we must use our /port versions,
20375 # which do understand %$. libintl versions >= 0.13 include their own
20376 # *printf versions on Win32. The libintl 0.13 release note text is:
20378 # C format strings with positions, as they arise when a translator
20379 # needs to reorder a sentence, are now supported on all platforms.
20380 # On those few platforms (NetBSD and Woe32) for which the native
20381 # printf()/fprintf()/... functions don't support such format
20382 # strings, replacements are provided through <libintl.h>.
20384 # We could use libintl >= 0.13's *printf() if we were sure that we had
20385 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20386 # to guarantee that, it is best to just use our own, so we are sure to
20387 # get %$ support. In include/port.h we disable the *printf() macros
20388 # that might have been defined by libintl.
20390 # We do this unconditionally whether NLS is used or not so we are sure
20391 # that all Win32 libraries and binaries behave the same.
20392 pgac_need_repl_snprintf=yes
20394 pgac_need_repl_snprintf=no
20396 for ac_func in snprintf
20398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20399 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20400 $as_echo_n "checking for $ac_func... " >&6; }
20401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20402 $as_echo_n "(cached) " >&6
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20412 #define $ac_func innocuous_$ac_func
20414 /* System header to define __stub macros and hopefully few prototypes,
20415 which can conflict with char $ac_func (); below.
20416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20417 <limits.h> exists even on freestanding compilers. */
20420 # include <limits.h>
20422 # include <assert.h>
20427 /* Override any GCC internal prototype to avoid an error.
20428 Use char because int might match the return type of a GCC
20429 builtin and then its argument prototype would still apply. */
20434 /* The GNU C library defines this for functions which it implements
20435 to always fail with ENOSYS. Some functions are actually named
20436 something starting with __ and the normal name is an alias. */
20437 #if defined __stub_$ac_func || defined __stub___$ac_func
20444 return $ac_func ();
20449 rm -f conftest.$ac_objext conftest$ac_exeext
20450 if { (ac_try="$ac_link"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20456 $as_echo "$ac_try_echo") >&5
20457 (eval "$ac_link") 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } && {
20464 test -z "$ac_c_werror_flag" ||
20465 test ! -s conftest.err
20466 } && test -s conftest$ac_exeext && {
20467 test "$cross_compiling" = yes ||
20468 $as_test_x conftest$ac_exeext
20470 eval "$as_ac_var=yes"
20472 $as_echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 eval "$as_ac_var=no"
20478 rm -rf conftest.dSYM
20479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20480 conftest$ac_exeext conftest.$ac_ext
20482 ac_res=`eval 'as_val=${'$as_ac_var'}
20483 $as_echo "$as_val"'`
20484 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20485 $as_echo "$ac_res" >&6; }
20486 as_val=`eval 'as_val=${'$as_ac_var'}
20487 $as_echo "$as_val"'`
20488 if test "x$as_val" = x""yes; then
20489 cat >>confdefs.h <<_ACEOF
20490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20494 pgac_need_repl_snprintf=yes
20499 for ac_func in vsnprintf
20501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20503 $as_echo_n "checking for $ac_func... " >&6; }
20504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20505 $as_echo_n "(cached) " >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20515 #define $ac_func innocuous_$ac_func
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char $ac_func (); below.
20519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520 <limits.h> exists even on freestanding compilers. */
20523 # include <limits.h>
20525 # include <assert.h>
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20537 /* The GNU C library defines this for functions which it implements
20538 to always fail with ENOSYS. Some functions are actually named
20539 something starting with __ and the normal name is an alias. */
20540 #if defined __stub_$ac_func || defined __stub___$ac_func
20547 return $ac_func ();
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559 $as_echo "$ac_try_echo") >&5
20560 (eval "$ac_link") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest$ac_exeext && {
20570 test "$cross_compiling" = yes ||
20571 $as_test_x conftest$ac_exeext
20573 eval "$as_ac_var=yes"
20575 $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 eval "$as_ac_var=no"
20581 rm -rf conftest.dSYM
20582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20583 conftest$ac_exeext conftest.$ac_ext
20585 ac_res=`eval 'as_val=${'$as_ac_var'}
20586 $as_echo "$as_val"'`
20587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20588 $as_echo "$ac_res" >&6; }
20589 as_val=`eval 'as_val=${'$as_ac_var'}
20590 $as_echo "$as_val"'`
20591 if test "x$as_val" = x""yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20597 pgac_need_repl_snprintf=yes
20604 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20605 # include/c.h will provide declarations. Note this is a separate test
20606 # from whether the functions exist in the C library --- there are
20607 # systems that have the functions but don't bother to declare them :-(
20609 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20610 $as_echo_n "checking whether snprintf is declared... " >&6; }
20611 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20612 $as_echo_n "(cached) " >&6
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20639 $as_echo "$ac_try_echo") >&5
20640 (eval "$ac_compile") 2>conftest.er1
20642 grep -v '^ *+' conftest.er1 >conftest.err
20644 cat conftest.err >&5
20645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } && {
20647 test -z "$ac_c_werror_flag" ||
20648 test ! -s conftest.err
20649 } && test -s conftest.$ac_objext; then
20650 ac_cv_have_decl_snprintf=yes
20652 $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20655 ac_cv_have_decl_snprintf=no
20658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20661 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20662 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_DECL_SNPRINTF 1
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_DECL_SNPRINTF 0
20676 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20677 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20678 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20679 $as_echo_n "(cached) " >&6
20681 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687 $ac_includes_default
20699 rm -f conftest.$ac_objext
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20706 $as_echo "$ac_try_echo") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20717 ac_cv_have_decl_vsnprintf=yes
20719 $as_echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_have_decl_vsnprintf=no
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20728 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20729 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20731 cat >>confdefs.h <<_ACEOF
20732 #define HAVE_DECL_VSNPRINTF 1
20737 cat >>confdefs.h <<_ACEOF
20738 #define HAVE_DECL_VSNPRINTF 0
20747 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20748 $as_echo_n "checking for isinf... " >&6; }
20749 if test "${ac_cv_func_isinf+set}" = set; then
20750 $as_echo_n "(cached) " >&6
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20760 double glob_double;
20765 return isinf(glob_double) ? 0 : 1;
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20777 $as_echo "$ac_try_echo") >&5
20778 (eval "$ac_link") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest$ac_exeext && {
20788 test "$cross_compiling" = yes ||
20789 $as_test_x conftest$ac_exeext
20791 ac_cv_func_isinf=yes
20793 $as_echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_func_isinf=no
20799 rm -rf conftest.dSYM
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20803 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20804 $as_echo "$ac_cv_func_isinf" >&6; }
20806 if test $ac_cv_func_isinf = yes ; then
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_ISINF 1
20813 case " $LIBOBJS " in
20814 *" isinf.$ac_objext "* ) ;;
20815 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20819 # Look for a way to implement a substitute for isinf()
20824 for ac_func in fpclass fp_class fp_class_d class
20826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20827 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20828 $as_echo_n "checking for $ac_func... " >&6; }
20829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20830 $as_echo_n "(cached) " >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20840 #define $ac_func innocuous_$ac_func
20842 /* System header to define __stub macros and hopefully few prototypes,
20843 which can conflict with char $ac_func (); below.
20844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20845 <limits.h> exists even on freestanding compilers. */
20848 # include <limits.h>
20850 # include <assert.h>
20855 /* Override any GCC internal prototype to avoid an error.
20856 Use char because int might match the return type of a GCC
20857 builtin and then its argument prototype would still apply. */
20862 /* The GNU C library defines this for functions which it implements
20863 to always fail with ENOSYS. Some functions are actually named
20864 something starting with __ and the normal name is an alias. */
20865 #if defined __stub_$ac_func || defined __stub___$ac_func
20872 return $ac_func ();
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (ac_try="$ac_link"
20879 case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20884 $as_echo "$ac_try_echo") >&5
20885 (eval "$ac_link") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest$ac_exeext && {
20895 test "$cross_compiling" = yes ||
20896 $as_test_x conftest$ac_exeext
20898 eval "$as_ac_var=yes"
20900 $as_echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 eval "$as_ac_var=no"
20906 rm -rf conftest.dSYM
20907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20908 conftest$ac_exeext conftest.$ac_ext
20910 ac_res=`eval 'as_val=${'$as_ac_var'}
20911 $as_echo "$as_val"'`
20912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20913 $as_echo "$ac_res" >&6; }
20914 as_val=`eval 'as_val=${'$as_ac_var'}
20915 $as_echo "$as_val"'`
20916 if test "x$as_val" = x""yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20937 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20940 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20941 $as_echo_n "checking for $ac_func... " >&6; }
20942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20943 $as_echo_n "(cached) " >&6
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20953 #define $ac_func innocuous_$ac_func
20955 /* System header to define __stub macros and hopefully few prototypes,
20956 which can conflict with char $ac_func (); below.
20957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20958 <limits.h> exists even on freestanding compilers. */
20961 # include <limits.h>
20963 # include <assert.h>
20968 /* Override any GCC internal prototype to avoid an error.
20969 Use char because int might match the return type of a GCC
20970 builtin and then its argument prototype would still apply. */
20975 /* The GNU C library defines this for functions which it implements
20976 to always fail with ENOSYS. Some functions are actually named
20977 something starting with __ and the normal name is an alias. */
20978 #if defined __stub_$ac_func || defined __stub___$ac_func
20985 return $ac_func ();
20990 rm -f conftest.$ac_objext conftest$ac_exeext
20991 if { (ac_try="$ac_link"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20997 $as_echo "$ac_try_echo") >&5
20998 (eval "$ac_link") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest$ac_exeext && {
21008 test "$cross_compiling" = yes ||
21009 $as_test_x conftest$ac_exeext
21011 eval "$as_ac_var=yes"
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 eval "$as_ac_var=no"
21019 rm -rf conftest.dSYM
21020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21021 conftest$ac_exeext conftest.$ac_ext
21023 ac_res=`eval 'as_val=${'$as_ac_var'}
21024 $as_echo "$as_val"'`
21025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21026 $as_echo "$ac_res" >&6; }
21027 as_val=`eval 'as_val=${'$as_ac_var'}
21028 $as_echo "$as_val"'`
21029 if test "x$as_val" = x""yes; then
21030 cat >>confdefs.h <<_ACEOF
21031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21035 case " $LIBOBJS " in
21036 *" $ac_func.$ac_objext "* ) ;;
21037 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21048 # Windows uses a specialised env handler
21049 # and doesn't need a replacement getpeereid because it doesn't use
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_UNSETENV 1
21058 cat >>confdefs.h <<\_ACEOF
21059 #define HAVE_GETPEEREID 1
21062 ac_cv_func_unsetenv=yes
21063 ac_cv_func_getpeereid=yes;;
21067 for ac_func in unsetenv getpeereid
21069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21071 $as_echo_n "checking for $ac_func... " >&6; }
21072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21073 $as_echo_n "(cached) " >&6
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21083 #define $ac_func innocuous_$ac_func
21085 /* System header to define __stub macros and hopefully few prototypes,
21086 which can conflict with char $ac_func (); below.
21087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21088 <limits.h> exists even on freestanding compilers. */
21091 # include <limits.h>
21093 # include <assert.h>
21098 /* Override any GCC internal prototype to avoid an error.
21099 Use char because int might match the return type of a GCC
21100 builtin and then its argument prototype would still apply. */
21105 /* The GNU C library defines this for functions which it implements
21106 to always fail with ENOSYS. Some functions are actually named
21107 something starting with __ and the normal name is an alias. */
21108 #if defined __stub_$ac_func || defined __stub___$ac_func
21115 return $ac_func ();
21120 rm -f conftest.$ac_objext conftest$ac_exeext
21121 if { (ac_try="$ac_link"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21127 $as_echo "$ac_try_echo") >&5
21128 (eval "$ac_link") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest$ac_exeext && {
21138 test "$cross_compiling" = yes ||
21139 $as_test_x conftest$ac_exeext
21141 eval "$as_ac_var=yes"
21143 $as_echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 eval "$as_ac_var=no"
21149 rm -rf conftest.dSYM
21150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151 conftest$ac_exeext conftest.$ac_ext
21153 ac_res=`eval 'as_val=${'$as_ac_var'}
21154 $as_echo "$as_val"'`
21155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21156 $as_echo "$ac_res" >&6; }
21157 as_val=`eval 'as_val=${'$as_ac_var'}
21158 $as_echo "$as_val"'`
21159 if test "x$as_val" = x""yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21165 case " $LIBOBJS " in
21166 *" $ac_func.$ac_objext "* ) ;;
21167 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21178 # System's version of getaddrinfo(), if any, may be used only if we found
21179 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21180 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21181 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21182 # because we want to use our own getaddrinfo.c on Windows anyway.)
21183 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21185 for ac_func in getaddrinfo
21187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21188 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21189 $as_echo_n "checking for $ac_func... " >&6; }
21190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21191 $as_echo_n "(cached) " >&6
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21201 #define $ac_func innocuous_$ac_func
21203 /* System header to define __stub macros and hopefully few prototypes,
21204 which can conflict with char $ac_func (); below.
21205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21206 <limits.h> exists even on freestanding compilers. */
21209 # include <limits.h>
21211 # include <assert.h>
21216 /* Override any GCC internal prototype to avoid an error.
21217 Use char because int might match the return type of a GCC
21218 builtin and then its argument prototype would still apply. */
21223 /* The GNU C library defines this for functions which it implements
21224 to always fail with ENOSYS. Some functions are actually named
21225 something starting with __ and the normal name is an alias. */
21226 #if defined __stub_$ac_func || defined __stub___$ac_func
21233 return $ac_func ();
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (ac_try="$ac_link"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21245 $as_echo "$ac_try_echo") >&5
21246 (eval "$ac_link") 2>conftest.er1
21248 grep -v '^ *+' conftest.er1 >conftest.err
21250 cat conftest.err >&5
21251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest$ac_exeext && {
21256 test "$cross_compiling" = yes ||
21257 $as_test_x conftest$ac_exeext
21259 eval "$as_ac_var=yes"
21261 $as_echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 eval "$as_ac_var=no"
21267 rm -rf conftest.dSYM
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269 conftest$ac_exeext conftest.$ac_ext
21271 ac_res=`eval 'as_val=${'$as_ac_var'}
21272 $as_echo "$as_val"'`
21273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21274 $as_echo "$ac_res" >&6; }
21275 as_val=`eval 'as_val=${'$as_ac_var'}
21276 $as_echo "$as_val"'`
21277 if test "x$as_val" = x""yes; then
21278 cat >>confdefs.h <<_ACEOF
21279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21283 case " $LIBOBJS " in
21284 *" $ac_func.$ac_objext "* ) ;;
21285 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21294 case " $LIBOBJS " in
21295 *" getaddrinfo.$ac_objext "* ) ;;
21296 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21302 # Similarly, use system's getopt_long() only if system provides struct option.
21303 if test x"$ac_cv_type_struct_option" = xyes ; then
21305 for ac_func in getopt_long
21307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21309 $as_echo_n "checking for $ac_func... " >&6; }
21310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21311 $as_echo_n "(cached) " >&6
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21321 #define $ac_func innocuous_$ac_func
21323 /* System header to define __stub macros and hopefully few prototypes,
21324 which can conflict with char $ac_func (); below.
21325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21326 <limits.h> exists even on freestanding compilers. */
21329 # include <limits.h>
21331 # include <assert.h>
21336 /* Override any GCC internal prototype to avoid an error.
21337 Use char because int might match the return type of a GCC
21338 builtin and then its argument prototype would still apply. */
21343 /* The GNU C library defines this for functions which it implements
21344 to always fail with ENOSYS. Some functions are actually named
21345 something starting with __ and the normal name is an alias. */
21346 #if defined __stub_$ac_func || defined __stub___$ac_func
21353 return $ac_func ();
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21365 $as_echo "$ac_try_echo") >&5
21366 (eval "$ac_link") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest$ac_exeext && {
21376 test "$cross_compiling" = yes ||
21377 $as_test_x conftest$ac_exeext
21379 eval "$as_ac_var=yes"
21381 $as_echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 eval "$as_ac_var=no"
21387 rm -rf conftest.dSYM
21388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21389 conftest$ac_exeext conftest.$ac_ext
21391 ac_res=`eval 'as_val=${'$as_ac_var'}
21392 $as_echo "$as_val"'`
21393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21394 $as_echo "$ac_res" >&6; }
21395 as_val=`eval 'as_val=${'$as_ac_var'}
21396 $as_echo "$as_val"'`
21397 if test "x$as_val" = x""yes; then
21398 cat >>confdefs.h <<_ACEOF
21399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21403 case " $LIBOBJS " in
21404 *" $ac_func.$ac_objext "* ) ;;
21405 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21414 case " $LIBOBJS " in
21415 *" getopt_long.$ac_objext "* ) ;;
21416 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21422 # Solaris' getopt() doesn't do what we want for long options, so always use
21423 # our version on that platform.
21424 if test "$PORTNAME" = "solaris"; then
21425 case " $LIBOBJS " in
21426 *" getopt.$ac_objext "* ) ;;
21427 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21433 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21434 # so always use our version on Windows.
21435 if test "$PORTNAME" = "win32"; then
21436 case " $LIBOBJS " in
21437 *" getopt.$ac_objext "* ) ;;
21438 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21442 case " $LIBOBJS " in
21443 *" getopt_long.$ac_objext "* ) ;;
21444 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21451 if test "$PORTNAME" = "win32"; then
21453 for ac_func in gettimeofday
21455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21456 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21457 $as_echo_n "checking for $ac_func... " >&6; }
21458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21459 $as_echo_n "(cached) " >&6
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21469 #define $ac_func innocuous_$ac_func
21471 /* System header to define __stub macros and hopefully few prototypes,
21472 which can conflict with char $ac_func (); below.
21473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21474 <limits.h> exists even on freestanding compilers. */
21477 # include <limits.h>
21479 # include <assert.h>
21484 /* Override any GCC internal prototype to avoid an error.
21485 Use char because int might match the return type of a GCC
21486 builtin and then its argument prototype would still apply. */
21491 /* The GNU C library defines this for functions which it implements
21492 to always fail with ENOSYS. Some functions are actually named
21493 something starting with __ and the normal name is an alias. */
21494 #if defined __stub_$ac_func || defined __stub___$ac_func
21501 return $ac_func ();
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21513 $as_echo "$ac_try_echo") >&5
21514 (eval "$ac_link") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest$ac_exeext && {
21524 test "$cross_compiling" = yes ||
21525 $as_test_x conftest$ac_exeext
21527 eval "$as_ac_var=yes"
21529 $as_echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 eval "$as_ac_var=no"
21535 rm -rf conftest.dSYM
21536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21537 conftest$ac_exeext conftest.$ac_ext
21539 ac_res=`eval 'as_val=${'$as_ac_var'}
21540 $as_echo "$as_val"'`
21541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21542 $as_echo "$ac_res" >&6; }
21543 as_val=`eval 'as_val=${'$as_ac_var'}
21544 $as_echo "$as_val"'`
21545 if test "x$as_val" = x""yes; then
21546 cat >>confdefs.h <<_ACEOF
21547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21551 case " $LIBOBJS " in
21552 *" $ac_func.$ac_objext "* ) ;;
21553 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21561 case " $LIBOBJS " in
21562 *" kill.$ac_objext "* ) ;;
21563 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21567 case " $LIBOBJS " in
21568 *" open.$ac_objext "* ) ;;
21569 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21573 case " $LIBOBJS " in
21574 *" win32env.$ac_objext "* ) ;;
21575 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21579 case " $LIBOBJS " in
21580 *" win32error.$ac_objext "* ) ;;
21581 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21585 case " $LIBOBJS " in
21586 *" win32setlocale.$ac_objext "* ) ;;
21587 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21592 cat >>confdefs.h <<\_ACEOF
21593 #define HAVE_SYMLINK 1
21596 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21597 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21598 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21599 $as_echo_n "(cached) " >&6
21601 ac_cv_type_MINIDUMP_TYPE=no
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21609 #define WIN32_LEAN_AND_MEAN
21610 #include <windows.h>
21611 #include <string.h>
21612 #include <dbghelp.h>
21617 if (sizeof (MINIDUMP_TYPE))
21623 rm -f conftest.$ac_objext
21624 if { (ac_try="$ac_compile"
21625 case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21630 $as_echo "$ac_try_echo") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21648 #define WIN32_LEAN_AND_MEAN
21649 #include <windows.h>
21650 #include <string.h>
21651 #include <dbghelp.h>
21656 if (sizeof ((MINIDUMP_TYPE)))
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21669 $as_echo "$ac_try_echo") >&5
21670 (eval "$ac_compile") 2>conftest.er1
21672 grep -v '^ *+' conftest.er1 >conftest.err
21674 cat conftest.err >&5
21675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } && {
21677 test -z "$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 } && test -s conftest.$ac_objext; then
21682 $as_echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_cv_type_MINIDUMP_TYPE=yes
21688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21690 $as_echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21699 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21700 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21702 cat >>confdefs.h <<_ACEOF
21703 #define HAVE_MINIDUMP_TYPE 1
21706 pgac_minidump_type=yes
21708 pgac_minidump_type=no
21712 if test x"$pgac_minidump_type" = x"yes" ; then
21713 have_win32_dbghelp=yes
21716 have_win32_dbghelp=no
21720 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21721 $as_echo_n "checking for sigsetjmp... " >&6; }
21722 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21723 $as_echo_n "(cached) " >&6
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 #include <setjmp.h>
21735 sigjmp_buf x; sigsetjmp(x, 1);
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (ac_try="$ac_link"
21742 case "(($ac_try" in
21743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21747 $as_echo "$ac_try_echo") >&5
21748 (eval "$ac_link") 2>conftest.er1
21750 grep -v '^ *+' conftest.er1 >conftest.err
21752 cat conftest.err >&5
21753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && {
21755 test -z "$ac_c_werror_flag" ||
21756 test ! -s conftest.err
21757 } && test -s conftest$ac_exeext && {
21758 test "$cross_compiling" = yes ||
21759 $as_test_x conftest$ac_exeext
21761 pgac_cv_func_sigsetjmp=yes
21763 $as_echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 pgac_cv_func_sigsetjmp=no
21769 rm -rf conftest.dSYM
21770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21771 conftest$ac_exeext conftest.$ac_ext
21773 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21774 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21775 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_SIGSETJMP 1
21783 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21784 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21785 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21786 $as_echo_n "(cached) " >&6
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 #include <signal.h>
21795 /* NetBSD declares sys_siglist in unistd.h. */
21796 #ifdef HAVE_UNISTD_H
21797 # include <unistd.h>
21804 #ifndef sys_siglist
21805 (void) sys_siglist;
21812 rm -f conftest.$ac_objext
21813 if { (ac_try="$ac_compile"
21814 case "(($ac_try" in
21815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816 *) ac_try_echo=$ac_try;;
21818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21819 $as_echo "$ac_try_echo") >&5
21820 (eval "$ac_compile") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest.$ac_objext; then
21830 ac_cv_have_decl_sys_siglist=yes
21832 $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_cv_have_decl_sys_siglist=no
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21841 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21842 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21844 cat >>confdefs.h <<_ACEOF
21845 #define HAVE_DECL_SYS_SIGLIST 1
21850 cat >>confdefs.h <<_ACEOF
21851 #define HAVE_DECL_SYS_SIGLIST 0
21860 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21861 $as_echo_n "checking for syslog... " >&6; }
21862 if test "${ac_cv_func_syslog+set}" = set; then
21863 $as_echo_n "(cached) " >&6
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21873 #define syslog innocuous_syslog
21875 /* System header to define __stub macros and hopefully few prototypes,
21876 which can conflict with char syslog (); below.
21877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21878 <limits.h> exists even on freestanding compilers. */
21881 # include <limits.h>
21883 # include <assert.h>
21888 /* Override any GCC internal prototype to avoid an error.
21889 Use char because int might match the return type of a GCC
21890 builtin and then its argument prototype would still apply. */
21895 /* The GNU C library defines this for functions which it implements
21896 to always fail with ENOSYS. Some functions are actually named
21897 something starting with __ and the normal name is an alias. */
21898 #if defined __stub_syslog || defined __stub___syslog
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (ac_try="$ac_link"
21912 case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918 (eval "$ac_link") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && {
21925 test -z "$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21927 } && test -s conftest$ac_exeext && {
21928 test "$cross_compiling" = yes ||
21929 $as_test_x conftest$ac_exeext
21931 ac_cv_func_syslog=yes
21933 $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21936 ac_cv_func_syslog=no
21939 rm -rf conftest.dSYM
21940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21941 conftest$ac_exeext conftest.$ac_ext
21943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21944 $as_echo "$ac_cv_func_syslog" >&6; }
21945 if test "x$ac_cv_func_syslog" = x""yes; then
21946 if test "${ac_cv_header_syslog_h+set}" = set; then
21947 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21948 $as_echo_n "checking for syslog.h... " >&6; }
21949 if test "${ac_cv_header_syslog_h+set}" = set; then
21950 $as_echo_n "(cached) " >&6
21952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21953 $as_echo "$ac_cv_header_syslog_h" >&6; }
21955 # Is the header compilable?
21956 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21957 $as_echo_n "checking syslog.h usability... " >&6; }
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21965 #include <syslog.h>
21967 rm -f conftest.$ac_objext
21968 if { (ac_try="$ac_compile"
21969 case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21974 $as_echo "$ac_try_echo") >&5
21975 (eval "$ac_compile") 2>conftest.er1
21977 grep -v '^ *+' conftest.er1 >conftest.err
21979 cat conftest.err >&5
21980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest.$ac_objext; then
21985 ac_header_compiler=yes
21987 $as_echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_header_compiler=no
21993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21995 $as_echo "$ac_header_compiler" >&6; }
21997 # Is the header present?
21998 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21999 $as_echo_n "checking syslog.h presence... " >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 #include <syslog.h>
22008 if { (ac_try="$ac_cpp conftest.$ac_ext"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } >/dev/null && {
22022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22025 ac_header_preproc=yes
22027 $as_echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_preproc=no
22033 rm -f conftest.err conftest.$ac_ext
22034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22035 $as_echo "$ac_header_preproc" >&6; }
22037 # So? What about this header?
22038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22040 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22041 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22042 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22043 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22044 ac_header_preproc=yes
22047 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22048 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22049 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22050 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22051 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22052 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22053 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22054 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22055 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22056 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22057 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22058 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22060 ## ---------------------------------------- ##
22061 ## Report this to pgsql-bugs@postgresql.org ##
22062 ## ---------------------------------------- ##
22064 ) | sed "s/^/$as_me: WARNING: /" >&2
22067 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22068 $as_echo_n "checking for syslog.h... " >&6; }
22069 if test "${ac_cv_header_syslog_h+set}" = set; then
22070 $as_echo_n "(cached) " >&6
22072 ac_cv_header_syslog_h=$ac_header_preproc
22074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22075 $as_echo "$ac_cv_header_syslog_h" >&6; }
22078 if test "x$ac_cv_header_syslog_h" = x""yes; then
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_SYSLOG 1
22090 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22091 $as_echo_n "checking for opterr... " >&6; }
22092 if test "${pgac_cv_var_int_opterr+set}" = set; then
22093 $as_echo_n "(cached) " >&6
22095 cat >conftest.$ac_ext <<_ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 #include <unistd.h>
22105 extern int opterr; opterr = 1;
22110 rm -f conftest.$ac_objext conftest$ac_exeext
22111 if { (ac_try="$ac_link"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22117 $as_echo "$ac_try_echo") >&5
22118 (eval "$ac_link") 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest$ac_exeext && {
22128 test "$cross_compiling" = yes ||
22129 $as_test_x conftest$ac_exeext
22131 pgac_cv_var_int_opterr=yes
22133 $as_echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 pgac_cv_var_int_opterr=no
22139 rm -rf conftest.dSYM
22140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22141 conftest$ac_exeext conftest.$ac_ext
22143 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22144 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22145 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22147 cat >>confdefs.h <<\_ACEOF
22148 #define HAVE_INT_OPTERR 1
22153 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22154 $as_echo_n "checking for optreset... " >&6; }
22155 if test "${pgac_cv_var_int_optreset+set}" = set; then
22156 $as_echo_n "(cached) " >&6
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 #include <unistd.h>
22168 extern int optreset; optreset = 1;
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181 (eval "$ac_link") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest$ac_exeext && {
22191 test "$cross_compiling" = yes ||
22192 $as_test_x conftest$ac_exeext
22194 pgac_cv_var_int_optreset=yes
22196 $as_echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22199 pgac_cv_var_int_optreset=no
22202 rm -rf conftest.dSYM
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204 conftest$ac_exeext conftest.$ac_ext
22206 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22207 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22208 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22210 cat >>confdefs.h <<\_ACEOF
22211 #define HAVE_INT_OPTRESET 1
22218 for ac_func in strtoll strtoq
22220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 $as_echo_n "checking for $ac_func... " >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224 $as_echo_n "(cached) " >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22234 #define $ac_func innocuous_$ac_func
22236 /* System header to define __stub macros and hopefully few prototypes,
22237 which can conflict with char $ac_func (); below.
22238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239 <limits.h> exists even on freestanding compilers. */
22242 # include <limits.h>
22244 # include <assert.h>
22249 /* Override any GCC internal prototype to avoid an error.
22250 Use char because int might match the return type of a GCC
22251 builtin and then its argument prototype would still apply. */
22256 /* The GNU C library defines this for functions which it implements
22257 to always fail with ENOSYS. Some functions are actually named
22258 something starting with __ and the normal name is an alias. */
22259 #if defined __stub_$ac_func || defined __stub___$ac_func
22266 return $ac_func ();
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22278 $as_echo "$ac_try_echo") >&5
22279 (eval "$ac_link") 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest$ac_exeext && {
22289 test "$cross_compiling" = yes ||
22290 $as_test_x conftest$ac_exeext
22292 eval "$as_ac_var=yes"
22294 $as_echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 eval "$as_ac_var=no"
22300 rm -rf conftest.dSYM
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302 conftest$ac_exeext conftest.$ac_ext
22304 ac_res=`eval 'as_val=${'$as_ac_var'}
22305 $as_echo "$as_val"'`
22306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22307 $as_echo "$ac_res" >&6; }
22308 as_val=`eval 'as_val=${'$as_ac_var'}
22309 $as_echo "$as_val"'`
22310 if test "x$as_val" = x""yes; then
22311 cat >>confdefs.h <<_ACEOF
22312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22320 for ac_func in strtoull strtouq
22322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22323 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22324 $as_echo_n "checking for $ac_func... " >&6; }
22325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22326 $as_echo_n "(cached) " >&6
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22336 #define $ac_func innocuous_$ac_func
22338 /* System header to define __stub macros and hopefully few prototypes,
22339 which can conflict with char $ac_func (); below.
22340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22341 <limits.h> exists even on freestanding compilers. */
22344 # include <limits.h>
22346 # include <assert.h>
22351 /* Override any GCC internal prototype to avoid an error.
22352 Use char because int might match the return type of a GCC
22353 builtin and then its argument prototype would still apply. */
22358 /* The GNU C library defines this for functions which it implements
22359 to always fail with ENOSYS. Some functions are actually named
22360 something starting with __ and the normal name is an alias. */
22361 #if defined __stub_$ac_func || defined __stub___$ac_func
22368 return $ac_func ();
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22394 eval "$as_ac_var=yes"
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 eval "$as_ac_var=no"
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22406 ac_res=`eval 'as_val=${'$as_ac_var'}
22407 $as_echo "$as_val"'`
22408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22409 $as_echo "$ac_res" >&6; }
22410 as_val=`eval 'as_val=${'$as_ac_var'}
22411 $as_echo "$as_val"'`
22412 if test "x$as_val" = x""yes; then
22413 cat >>confdefs.h <<_ACEOF
22414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22421 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22422 $as_echo_n "checking for builtin locking functions... " >&6; }
22423 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22424 $as_echo_n "(cached) " >&6
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22437 __sync_lock_test_and_set(&lock, 1);
22438 __sync_lock_release(&lock);
22443 rm -f conftest.$ac_objext conftest$ac_exeext
22444 if { (ac_try="$ac_link"
22445 case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22450 $as_echo "$ac_try_echo") >&5
22451 (eval "$ac_link") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && {
22458 test -z "$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 } && test -s conftest$ac_exeext && {
22461 test "$cross_compiling" = yes ||
22462 $as_test_x conftest$ac_exeext
22464 pgac_cv_gcc_int_atomics="yes"
22466 $as_echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 pgac_cv_gcc_int_atomics="no"
22472 rm -rf conftest.dSYM
22473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22474 conftest$ac_exeext conftest.$ac_ext
22476 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22477 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22478 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_GCC_INT_ATOMICS 1
22486 # Lastly, restore full LIBS list and check for readline/libedit symbols
22487 LIBS="$LIBS_including_readline"
22489 if test "$with_readline" = yes; then
22490 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22491 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22492 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22493 $as_echo_n "(cached) " >&6
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22502 #ifdef HAVE_READLINE_READLINE_H
22503 # include <readline/readline.h>
22504 #elif defined(HAVE_READLINE_H)
22505 # include <readline.h>
22511 rl_completion_append_character = 'x';
22516 rm -f conftest.$ac_objext conftest$ac_exeext
22517 if { (ac_try="$ac_link"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22523 $as_echo "$ac_try_echo") >&5
22524 (eval "$ac_link") 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && {
22531 test -z "$ac_c_werror_flag" ||
22532 test ! -s conftest.err
22533 } && test -s conftest$ac_exeext && {
22534 test "$cross_compiling" = yes ||
22535 $as_test_x conftest$ac_exeext
22537 pgac_cv_var_rl_completion_append_character=yes
22539 $as_echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 pgac_cv_var_rl_completion_append_character=no
22545 rm -rf conftest.dSYM
22546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22547 conftest$ac_exeext conftest.$ac_ext
22549 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22550 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22551 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22560 for ac_func in rl_completion_matches rl_filename_completion_function
22562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22563 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22564 $as_echo_n "checking for $ac_func... " >&6; }
22565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22566 $as_echo_n "(cached) " >&6
22568 cat >conftest.$ac_ext <<_ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22576 #define $ac_func innocuous_$ac_func
22578 /* System header to define __stub macros and hopefully few prototypes,
22579 which can conflict with char $ac_func (); below.
22580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22581 <limits.h> exists even on freestanding compilers. */
22584 # include <limits.h>
22586 # include <assert.h>
22591 /* Override any GCC internal prototype to avoid an error.
22592 Use char because int might match the return type of a GCC
22593 builtin and then its argument prototype would still apply. */
22598 /* The GNU C library defines this for functions which it implements
22599 to always fail with ENOSYS. Some functions are actually named
22600 something starting with __ and the normal name is an alias. */
22601 #if defined __stub_$ac_func || defined __stub___$ac_func
22608 return $ac_func ();
22613 rm -f conftest.$ac_objext conftest$ac_exeext
22614 if { (ac_try="$ac_link"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22620 $as_echo "$ac_try_echo") >&5
22621 (eval "$ac_link") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest$ac_exeext && {
22631 test "$cross_compiling" = yes ||
22632 $as_test_x conftest$ac_exeext
22634 eval "$as_ac_var=yes"
22636 $as_echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 eval "$as_ac_var=no"
22642 rm -rf conftest.dSYM
22643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22644 conftest$ac_exeext conftest.$ac_ext
22646 ac_res=`eval 'as_val=${'$as_ac_var'}
22647 $as_echo "$as_val"'`
22648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22649 $as_echo "$ac_res" >&6; }
22650 as_val=`eval 'as_val=${'$as_ac_var'}
22651 $as_echo "$as_val"'`
22652 if test "x$as_val" = x""yes; then
22653 cat >>confdefs.h <<_ACEOF
22654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22662 for ac_func in append_history history_truncate_file
22664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22666 $as_echo_n "checking for $ac_func... " >&6; }
22667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22668 $as_echo_n "(cached) " >&6
22670 cat >conftest.$ac_ext <<_ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22678 #define $ac_func innocuous_$ac_func
22680 /* System header to define __stub macros and hopefully few prototypes,
22681 which can conflict with char $ac_func (); below.
22682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22683 <limits.h> exists even on freestanding compilers. */
22686 # include <limits.h>
22688 # include <assert.h>
22693 /* Override any GCC internal prototype to avoid an error.
22694 Use char because int might match the return type of a GCC
22695 builtin and then its argument prototype would still apply. */
22700 /* The GNU C library defines this for functions which it implements
22701 to always fail with ENOSYS. Some functions are actually named
22702 something starting with __ and the normal name is an alias. */
22703 #if defined __stub_$ac_func || defined __stub___$ac_func
22710 return $ac_func ();
22715 rm -f conftest.$ac_objext conftest$ac_exeext
22716 if { (ac_try="$ac_link"
22717 case "(($ac_try" in
22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719 *) ac_try_echo=$ac_try;;
22721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22722 $as_echo "$ac_try_echo") >&5
22723 (eval "$ac_link") 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext && {
22733 test "$cross_compiling" = yes ||
22734 $as_test_x conftest$ac_exeext
22736 eval "$as_ac_var=yes"
22738 $as_echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22741 eval "$as_ac_var=no"
22744 rm -rf conftest.dSYM
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746 conftest$ac_exeext conftest.$ac_ext
22748 ac_res=`eval 'as_val=${'$as_ac_var'}
22749 $as_echo "$as_val"'`
22750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22751 $as_echo "$ac_res" >&6; }
22752 as_val=`eval 'as_val=${'$as_ac_var'}
22753 $as_echo "$as_val"'`
22754 if test "x$as_val" = x""yes; then
22755 cat >>confdefs.h <<_ACEOF
22756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22768 # For each platform, we need to know about any special compile and link
22769 # libraries, and whether the normal C function names are thread-safe.
22770 # See the comment at the top of src/port/thread.c for more information.
22771 # WIN32 doesn't need the pthread tests; it always uses threads
22772 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22777 ac_cpp='$CPP $CPPFLAGS'
22778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22784 # We used to check for pthread.h first, but this fails if pthread.h
22785 # requires special compiler flags (e.g. on True64 or Sequent).
22786 # It gets checked for in the link test anyway.
22788 # First of all, check if the user has set any of the PTHREAD_LIBS,
22789 # etcetera environment variables, and if threads linking works using
22791 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22792 save_CFLAGS="$CFLAGS"
22793 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22795 LIBS="$PTHREAD_LIBS $LIBS"
22796 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22797 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22805 /* Override any GCC internal prototype to avoid an error.
22806 Use char because int might match the return type of a GCC
22807 builtin and then its argument prototype would still apply. */
22811 char pthread_join ();
22815 return pthread_join ();
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (ac_try="$ac_link"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828 (eval "$ac_link") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest$ac_exeext && {
22838 test "$cross_compiling" = yes ||
22839 $as_test_x conftest$ac_exeext
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22849 rm -rf conftest.dSYM
22850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22851 conftest$ac_exeext conftest.$ac_ext
22852 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22853 $as_echo "$acx_pthread_ok" >&6; }
22854 if test x"$acx_pthread_ok" = xno; then
22859 CFLAGS="$save_CFLAGS"
22862 # We must check for the threads library under a number of different
22863 # names; the ordering is very important because some systems
22864 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22865 # libraries is broken (non-POSIX).
22867 # Create a list of thread flags to try. Items starting with a "-" are
22868 # C compiler flags, and other items are library names, except for "none"
22869 # which indicates that we try without any flags at all, and "pthread-config"
22870 # which is a program returning the flags for the Pth emulation library.
22872 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22874 # The ordering *is* (sometimes) important. Some notes on the
22875 # individual items follow:
22877 # pthreads: AIX (must check this before -lpthread)
22878 # none: in case threads are in libc; should be tried before -Kthread and
22879 # other compiler flags to prevent continual compiler warnings
22880 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22881 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22882 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22883 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22884 # -pthreads: Solaris/gcc
22885 # -mthreads: Mingw32/gcc, Lynx/gcc
22886 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22887 # doesn't hurt to check since this sometimes defines pthreads too;
22888 # also defines -D_REENTRANT)
22889 # pthread: Linux, etcetera
22890 # --thread-safe: KAI C++
22891 # pthread-config: use pthread-config program (for GNU Pth library)
22893 case "${host_cpu}-${host_os}" in
22896 # On Solaris (at least, for some versions), libc contains stubbed
22897 # (non-functional) versions of the pthreads routines, so link-based
22898 # tests will erroneously succeed. (We need to link with -pthread or
22899 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22900 # a function called by this macro, so we could check for that, but
22901 # who knows whether they'll stub that too in a future libc.) So,
22902 # we'll just look for -pthreads and -lpthread first:
22904 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22908 if test x"$acx_pthread_ok" = xno; then
22909 for flag in $acx_pthread_flags; do
22911 tryPTHREAD_CFLAGS=""
22915 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22916 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22920 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22921 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22922 tryPTHREAD_CFLAGS="$flag"
22926 # skip this if we already have flags defined, for PostgreSQL
22927 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22928 # Extract the first word of "pthread-config", so it can be a program name with args.
22929 set dummy pthread-config; ac_word=$2
22930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22931 $as_echo_n "checking for $ac_word... " >&6; }
22932 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22933 $as_echo_n "(cached) " >&6
22935 if test -n "$acx_pthread_config"; then
22936 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22939 for as_dir in $PATH
22942 test -z "$as_dir" && as_dir=.
22943 for ac_exec_ext in '' $ac_executable_extensions; do
22944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22945 ac_cv_prog_acx_pthread_config="yes"
22946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22953 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22956 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22957 if test -n "$acx_pthread_config"; then
22958 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22959 $as_echo "$acx_pthread_config" >&6; }
22961 { $as_echo "$as_me:$LINENO: result: no" >&5
22962 $as_echo "no" >&6; }
22966 if test x"$acx_pthread_config" = xno; then continue; fi
22967 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22968 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22972 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22973 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22974 tryPTHREAD_LIBS="-l$flag"
22979 save_CFLAGS="$CFLAGS"
22980 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22981 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22983 # Check for various functions. We must include pthread.h,
22984 # since some functions may be macros. (On the Sequent, we
22985 # need a special flag -Kthread to make this header compile.)
22986 # We check for pthread_join because it is in -lpthread on IRIX
22987 # while pthread_create is in libc. We check for pthread_attr_init
22988 # due to DEC craziness with -lpthreads. We check for
22989 # pthread_cleanup_push because it is one of the few pthread
22990 # functions on Solaris that doesn't have a non-functional libc stub.
22991 # We try pthread_create on general principles.
22992 cat >conftest.$ac_ext <<_ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h. */
22998 #include <pthread.h>
23002 pthread_t th; pthread_join(th, 0);
23003 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23004 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23016 $as_echo "$ac_try_echo") >&5
23017 (eval "$ac_link") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest$ac_exeext && {
23027 test "$cross_compiling" = yes ||
23028 $as_test_x conftest$ac_exeext
23032 $as_echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23038 rm -rf conftest.dSYM
23039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23040 conftest$ac_exeext conftest.$ac_ext
23042 if test "x$acx_pthread_ok" = xyes; then
23043 # Don't use options that are ignored by the compiler.
23044 # We find them by checking stderror.
23045 cat >conftest.$ac_ext <<_ACEOF
23047 main (int argc, char **argv)
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 # Check both linking and compiling, because they might tolerate different options.
23056 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23057 # we continue with more flags because Linux needs -lpthread
23058 # for libpq builds on PostgreSQL. The test above only
23059 # tests for building binaries, not shared libraries.
23060 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23061 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23062 else acx_pthread_ok=no
23067 CFLAGS="$save_CFLAGS"
23069 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23070 $as_echo "$acx_pthread_ok" >&6; }
23074 # Various other checks:
23075 if test "x$acx_pthread_ok" = xyes; then
23077 LIBS="$PTHREAD_LIBS $LIBS"
23078 save_CFLAGS="$CFLAGS"
23079 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23081 # Detect AIX lossage: threads are created detached by default
23082 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23083 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23084 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 #include <pthread.h>
23095 int attr=PTHREAD_CREATE_JOINABLE;
23100 rm -f conftest.$ac_objext conftest$ac_exeext
23101 if { (ac_try="$ac_link"
23102 case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23107 $as_echo "$ac_try_echo") >&5
23108 (eval "$ac_link") 2>conftest.er1
23110 grep -v '^ *+' conftest.er1 >conftest.err
23112 cat conftest.err >&5
23113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } && {
23115 test -z "$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23117 } && test -s conftest$ac_exeext && {
23118 test "$cross_compiling" = yes ||
23119 $as_test_x conftest$ac_exeext
23121 ok=PTHREAD_CREATE_JOINABLE
23123 $as_echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23129 rm -rf conftest.dSYM
23130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23131 conftest$ac_exeext conftest.$ac_ext
23132 if test x"$ok" = xunknown; then
23133 cat >conftest.$ac_ext <<_ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23139 #include <pthread.h>
23143 int attr=PTHREAD_CREATE_UNDETACHED;
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (ac_try="$ac_link"
23150 case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23155 $as_echo "$ac_try_echo") >&5
23156 (eval "$ac_link") 2>conftest.er1
23158 grep -v '^ *+' conftest.er1 >conftest.err
23160 cat conftest.err >&5
23161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && {
23163 test -z "$ac_c_werror_flag" ||
23164 test ! -s conftest.err
23165 } && test -s conftest$ac_exeext && {
23166 test "$cross_compiling" = yes ||
23167 $as_test_x conftest$ac_exeext
23169 ok=PTHREAD_CREATE_UNDETACHED
23171 $as_echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23177 rm -rf conftest.dSYM
23178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23179 conftest$ac_exeext conftest.$ac_ext
23181 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23183 cat >>confdefs.h <<\_ACEOF
23184 #define PTHREAD_CREATE_JOINABLE $ok
23188 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23189 $as_echo "${ok}" >&6; }
23190 if test x"$ok" = xunknown; then
23191 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23192 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23195 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23196 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23198 # We always add these in PostgreSQL
23199 # case "${host_cpu}-${host_os}" in
23200 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23201 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23203 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23204 $as_echo "${flag}" >&6; }
23205 if test "x$flag" != xno; then
23206 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23210 CFLAGS="$save_CFLAGS"
23212 # Supporting cc_r would require a special CC in all places that
23213 # use libpq, and that is ugly, so we don't do it. Users can still
23214 # define their compiler as cc_r to do thread builds of everything.
23215 # More AIX lossage: must compile with cc_r
23216 # Extract the first word of "cc_r", so it can be a program name with args.
23217 set dummy cc_r; ac_word=$2
23218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23219 $as_echo_n "checking for $ac_word... " >&6; }
23220 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23221 $as_echo_n "(cached) " >&6
23223 if test -n "$PTHREAD_CC"; then
23224 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23227 for as_dir in $PATH
23230 test -z "$as_dir" && as_dir=.
23231 for ac_exec_ext in '' $ac_executable_extensions; do
23232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23233 ac_cv_prog_PTHREAD_CC="cc_r"
23234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23241 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23244 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23245 if test -n "$PTHREAD_CC"; then
23246 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23247 $as_echo "$PTHREAD_CC" >&6; }
23249 { $as_echo "$as_me:$LINENO: result: no" >&5
23250 $as_echo "no" >&6; }
23262 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23263 if test x"$acx_pthread_ok" = xyes; then
23265 cat >>confdefs.h <<\_ACEOF
23266 #define HAVE_PTHREAD 1
23275 ac_cpp='$CPP $CPPFLAGS'
23276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23282 # Some platforms use these, so just define them. They can't hurt if they
23283 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23284 # enables 5-arg getpwuid_r, among other things.
23285 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23288 # At this point, we don't want to muck with the compiler name for threading.
23289 # Let's see who fails, perhaps AIX. 2004-04-23
23290 if test "$PTHREAD_CC" != "$CC"; then
23291 { { $as_echo "$as_me:$LINENO: error:
23292 PostgreSQL does not support platforms that require a special compiler
23293 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23294 $as_echo "$as_me: error:
23295 PostgreSQL does not support platforms that require a special compiler
23296 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23297 { (exit 1); exit 1; }; }
23300 # Check for *_r functions
23303 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23304 LIBS="$LIBS $PTHREAD_LIBS"
23306 if test "$PORTNAME" != "win32"; then
23307 if test "${ac_cv_header_pthread_h+set}" = set; then
23308 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23309 $as_echo_n "checking for pthread.h... " >&6; }
23310 if test "${ac_cv_header_pthread_h+set}" = set; then
23311 $as_echo_n "(cached) " >&6
23313 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23314 $as_echo "$ac_cv_header_pthread_h" >&6; }
23316 # Is the header compilable?
23317 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23318 $as_echo_n "checking pthread.h usability... " >&6; }
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23325 $ac_includes_default
23326 #include <pthread.h>
23328 rm -f conftest.$ac_objext
23329 if { (ac_try="$ac_compile"
23330 case "(($ac_try" in
23331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332 *) ac_try_echo=$ac_try;;
23334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23335 $as_echo "$ac_try_echo") >&5
23336 (eval "$ac_compile") 2>conftest.er1
23338 grep -v '^ *+' conftest.er1 >conftest.err
23340 cat conftest.err >&5
23341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } && {
23343 test -z "$ac_c_werror_flag" ||
23344 test ! -s conftest.err
23345 } && test -s conftest.$ac_objext; then
23346 ac_header_compiler=yes
23348 $as_echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23351 ac_header_compiler=no
23354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23356 $as_echo "$ac_header_compiler" >&6; }
23358 # Is the header present?
23359 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23360 $as_echo_n "checking pthread.h presence... " >&6; }
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 #include <pthread.h>
23369 if { (ac_try="$ac_cpp conftest.$ac_ext"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23375 $as_echo "$ac_try_echo") >&5
23376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } >/dev/null && {
23383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23384 test ! -s conftest.err
23386 ac_header_preproc=yes
23388 $as_echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ac_header_preproc=no
23394 rm -f conftest.err conftest.$ac_ext
23395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23396 $as_echo "$ac_header_preproc" >&6; }
23398 # So? What about this header?
23399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23401 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23402 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23403 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23404 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23405 ac_header_preproc=yes
23408 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23409 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23410 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23411 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23412 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23413 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23414 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23415 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23416 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23417 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23418 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23419 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23421 ## ---------------------------------------- ##
23422 ## Report this to pgsql-bugs@postgresql.org ##
23423 ## ---------------------------------------- ##
23425 ) | sed "s/^/$as_me: WARNING: /" >&2
23428 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23429 $as_echo_n "checking for pthread.h... " >&6; }
23430 if test "${ac_cv_header_pthread_h+set}" = set; then
23431 $as_echo_n "(cached) " >&6
23433 ac_cv_header_pthread_h=$ac_header_preproc
23435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23436 $as_echo "$ac_cv_header_pthread_h" >&6; }
23439 if test "x$ac_cv_header_pthread_h" = x""yes; then
23442 { { $as_echo "$as_me:$LINENO: error:
23443 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23444 $as_echo "$as_me: error:
23445 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23446 { (exit 1); exit 1; }; }
23455 for ac_func in strerror_r getpwuid_r gethostbyname_r
23457 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23458 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23459 $as_echo_n "checking for $ac_func... " >&6; }
23460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23461 $as_echo_n "(cached) " >&6
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23471 #define $ac_func innocuous_$ac_func
23473 /* System header to define __stub macros and hopefully few prototypes,
23474 which can conflict with char $ac_func (); below.
23475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23476 <limits.h> exists even on freestanding compilers. */
23479 # include <limits.h>
23481 # include <assert.h>
23486 /* Override any GCC internal prototype to avoid an error.
23487 Use char because int might match the return type of a GCC
23488 builtin and then its argument prototype would still apply. */
23493 /* The GNU C library defines this for functions which it implements
23494 to always fail with ENOSYS. Some functions are actually named
23495 something starting with __ and the normal name is an alias. */
23496 #if defined __stub_$ac_func || defined __stub___$ac_func
23503 return $ac_func ();
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (ac_try="$ac_link"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_link") 2>conftest.er1
23518 grep -v '^ *+' conftest.er1 >conftest.err
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest$ac_exeext && {
23526 test "$cross_compiling" = yes ||
23527 $as_test_x conftest$ac_exeext
23529 eval "$as_ac_var=yes"
23531 $as_echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 eval "$as_ac_var=no"
23537 rm -rf conftest.dSYM
23538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23539 conftest$ac_exeext conftest.$ac_ext
23541 ac_res=`eval 'as_val=${'$as_ac_var'}
23542 $as_echo "$as_val"'`
23543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23544 $as_echo "$ac_res" >&6; }
23545 as_val=`eval 'as_val=${'$as_ac_var'}
23546 $as_echo "$as_val"'`
23547 if test "x$as_val" = x""yes; then
23548 cat >>confdefs.h <<_ACEOF
23549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23556 # Do test here with the proper thread flags
23557 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23558 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23559 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23560 $as_echo_n "(cached) " >&6
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568 #include <sys/types.h>
23574 struct passwd *space;
23577 struct passwd **result;
23578 getpwuid_r(uid, space, buf, bufsize, result);
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23601 pgac_cv_func_getpwuid_r_5arg=yes
23603 $as_echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23606 pgac_cv_func_getpwuid_r_5arg=no
23609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23611 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23612 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23613 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23615 cat >>confdefs.h <<\_ACEOF
23616 #define GETPWUID_R_5ARG /**/
23621 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23622 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23623 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23624 $as_echo_n "(cached) " >&6
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23632 #include <string.h>
23637 int strerror_r(int, char *, size_t);
23639 /* Older AIX has 'int' for the third argument so we don't test the args. */
23646 rm -f conftest.$ac_objext
23647 if { (ac_try="$ac_compile"
23648 case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23653 $as_echo "$ac_try_echo") >&5
23654 (eval "$ac_compile") 2>conftest.er1
23656 grep -v '^ *+' conftest.er1 >conftest.err
23658 cat conftest.err >&5
23659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } && {
23661 test -z "$ac_c_werror_flag" ||
23662 test ! -s conftest.err
23663 } && test -s conftest.$ac_objext; then
23664 pgac_cv_func_strerror_r_int=yes
23666 $as_echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 pgac_cv_func_strerror_r_int=no
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23674 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23675 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23676 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23678 cat >>confdefs.h <<\_ACEOF
23679 #define STRERROR_R_INT /**/
23689 # do not use values from template file
23698 # We can test for libldap_r only after we know PTHREAD_LIBS
23699 if test "$with_ldap" = yes ; then
23701 if test "$PORTNAME" != "win32"; then
23703 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23704 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23705 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23706 $as_echo_n "(cached) " >&6
23708 ac_check_lib_save_LIBS=$LIBS
23709 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23717 /* Override any GCC internal prototype to avoid an error.
23718 Use char because int might match the return type of a GCC
23719 builtin and then its argument prototype would still apply. */
23727 return ldap_bind ();
23732 rm -f conftest.$ac_objext conftest$ac_exeext
23733 if { (ac_try="$ac_link"
23734 case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23739 $as_echo "$ac_try_echo") >&5
23740 (eval "$ac_link") 2>conftest.er1
23742 grep -v '^ *+' conftest.er1 >conftest.err
23744 cat conftest.err >&5
23745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); } && {
23747 test -z "$ac_c_werror_flag" ||
23748 test ! -s conftest.err
23749 } && test -s conftest$ac_exeext && {
23750 test "$cross_compiling" = yes ||
23751 $as_test_x conftest$ac_exeext
23753 ac_cv_lib_ldap_ldap_bind=yes
23755 $as_echo "$as_me: failed program was:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23758 ac_cv_lib_ldap_ldap_bind=no
23761 rm -rf conftest.dSYM
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763 conftest$ac_exeext conftest.$ac_ext
23764 LIBS=$ac_check_lib_save_LIBS
23766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23767 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23768 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23769 cat >>confdefs.h <<_ACEOF
23770 #define HAVE_LIBLDAP 1
23773 LIBS="-lldap $LIBS"
23776 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23777 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23778 { (exit 1); exit 1; }; }
23781 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23782 if test "$enable_thread_safety" = yes; then
23783 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23785 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23786 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23787 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23788 $as_echo_n "(cached) " >&6
23790 ac_check_lib_save_LIBS=$LIBS
23791 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23799 /* Override any GCC internal prototype to avoid an error.
23800 Use char because int might match the return type of a GCC
23801 builtin and then its argument prototype would still apply. */
23805 char ldap_simple_bind ();
23809 return ldap_simple_bind ();
23814 rm -f conftest.$ac_objext conftest$ac_exeext
23815 if { (ac_try="$ac_link"
23816 case "(($ac_try" in
23817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818 *) ac_try_echo=$ac_try;;
23820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23821 $as_echo "$ac_try_echo") >&5
23822 (eval "$ac_link") 2>conftest.er1
23824 grep -v '^ *+' conftest.er1 >conftest.err
23826 cat conftest.err >&5
23827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); } && {
23829 test -z "$ac_c_werror_flag" ||
23830 test ! -s conftest.err
23831 } && test -s conftest$ac_exeext && {
23832 test "$cross_compiling" = yes ||
23833 $as_test_x conftest$ac_exeext
23835 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23837 $as_echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 ac_cv_lib_ldap_r_ldap_simple_bind=no
23843 rm -rf conftest.dSYM
23844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23845 conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23849 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23850 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23851 cat >>confdefs.h <<_ACEOF
23852 #define HAVE_LIBLDAP_R 1
23855 LIBS="-lldap_r $LIBS"
23858 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23859 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23860 { (exit 1); exit 1; }; }
23863 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23865 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23869 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23870 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23871 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23872 $as_echo_n "(cached) " >&6
23874 ac_check_lib_save_LIBS=$LIBS
23875 LIBS="-lwldap32 $LIBS"
23876 cat >conftest.$ac_ext <<_ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23883 /* Override any GCC internal prototype to avoid an error.
23884 Use char because int might match the return type of a GCC
23885 builtin and then its argument prototype would still apply. */
23893 return ldap_bind ();
23898 rm -f conftest.$ac_objext conftest$ac_exeext
23899 if { (ac_try="$ac_link"
23900 case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906 (eval "$ac_link") 2>conftest.er1
23908 grep -v '^ *+' conftest.er1 >conftest.err
23910 cat conftest.err >&5
23911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest$ac_exeext && {
23916 test "$cross_compiling" = yes ||
23917 $as_test_x conftest$ac_exeext
23919 ac_cv_lib_wldap32_ldap_bind=yes
23921 $as_echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924 ac_cv_lib_wldap32_ldap_bind=no
23927 rm -rf conftest.dSYM
23928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23929 conftest$ac_exeext conftest.$ac_ext
23930 LIBS=$ac_check_lib_save_LIBS
23932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23933 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23934 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23935 cat >>confdefs.h <<_ACEOF
23936 #define HAVE_LIBWLDAP32 1
23939 LIBS="-lwldap32 $LIBS"
23942 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23943 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23944 { (exit 1); exit 1; }; }
23947 LDAP_LIBS_FE="-lwldap32"
23948 LDAP_LIBS_BE="-lwldap32"
23956 # This test makes sure that run tests work at all. Sometimes a shared
23957 # library is found by the linker, but the runtime linker can't find it.
23958 # This check should come after all modifications of compiler or linker
23959 # variables, and before any other run tests.
23960 { $as_echo "$as_me:$LINENO: checking test program" >&5
23961 $as_echo_n "checking test program... " >&6; }
23962 if test "$cross_compiling" = yes; then
23963 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23964 $as_echo "cross-compiling" >&6; }
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23972 int main() { return 0; }
23974 rm -f conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23981 $as_echo "$ac_try_echo") >&5
23982 (eval "$ac_link") 2>&5
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23986 { (case "(($ac_try" in
23987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988 *) ac_try_echo=$ac_try;;
23990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23991 $as_echo "$ac_try_echo") >&5
23992 (eval "$ac_try") 2>&5
23994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 { $as_echo "$as_me:$LINENO: result: ok" >&5
23997 $as_echo "ok" >&6; }
23999 $as_echo "$as_me: program exited with status $ac_status" >&5
24000 $as_echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24003 ( exit $ac_status )
24004 { $as_echo "$as_me:$LINENO: result: failed" >&5
24005 $as_echo "failed" >&6; }
24006 { { $as_echo "$as_me:$LINENO: error:
24007 Could not execute a simple test program. This may be a problem
24008 related to locating shared libraries. Check the file 'config.log'
24009 for the exact reason." >&5
24010 $as_echo "$as_me: error:
24011 Could not execute a simple test program. This may be a problem
24012 related to locating shared libraries. Check the file 'config.log'
24013 for the exact reason." >&2;}
24014 { (exit 1); exit 1; }; }
24016 rm -rf conftest.dSYM
24017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24022 # --------------------
24023 # Run tests below here
24024 # --------------------
24026 # Force use of our snprintf if system's doesn't do arg control
24027 # See comment above at snprintf test for details.
24028 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24029 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24030 $as_echo_n "checking whether printf supports argument control... " >&6; }
24031 if test "${pgac_cv_printf_arg_control+set}" = set; then
24032 $as_echo_n "(cached) " >&6
24034 if test "$cross_compiling" = yes; then
24035 pgac_cv_printf_arg_control=cross
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24044 #include <string.h>
24050 /* can it swap arguments? */
24051 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24052 if (strcmp(buf, "4 3") != 0)
24057 rm -f conftest$ac_exeext
24058 if { (ac_try="$ac_link"
24059 case "(($ac_try" in
24060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24061 *) ac_try_echo=$ac_try;;
24063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24064 $as_echo "$ac_try_echo") >&5
24065 (eval "$ac_link") 2>&5
24067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24069 { (case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24074 $as_echo "$ac_try_echo") >&5
24075 (eval "$ac_try") 2>&5
24077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); }; }; then
24079 pgac_cv_printf_arg_control=yes
24081 $as_echo "$as_me: program exited with status $ac_status" >&5
24082 $as_echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24085 ( exit $ac_status )
24086 pgac_cv_printf_arg_control=no
24088 rm -rf conftest.dSYM
24089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24095 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24096 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24098 if test $pgac_cv_printf_arg_control != yes ; then
24099 pgac_need_repl_snprintf=yes
24106 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24107 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24108 if test "${pgac_cv_type_long_int_64+set}" = set; then
24109 $as_echo_n "(cached) " >&6
24111 if test "$cross_compiling" = yes; then
24112 # If cross-compiling, check the size reported by the compiler and
24113 # trust that the arithmetic works.
24114 cat >conftest.$ac_ext <<_ACEOF
24117 cat confdefs.h >>conftest.$ac_ext
24118 cat >>conftest.$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24124 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135 *) ac_try_echo=$ac_try;;
24137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24138 $as_echo "$ac_try_echo") >&5
24139 (eval "$ac_compile") 2>conftest.er1
24141 grep -v '^ *+' conftest.er1 >conftest.err
24143 cat conftest.err >&5
24144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } && {
24146 test -z "$ac_c_werror_flag" ||
24147 test ! -s conftest.err
24148 } && test -s conftest.$ac_objext; then
24149 pgac_cv_type_long_int_64=yes
24151 $as_echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24154 pgac_cv_type_long_int_64=no
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 cat >conftest.$ac_ext <<_ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24165 typedef long int ac_int64;
24168 * These are globals to discourage the compiler from folding all the
24169 * arithmetic tests down to compile-time constants.
24171 ac_int64 a = 20000001;
24172 ac_int64 b = 40000005;
24174 int does_int64_work()
24178 if (sizeof(ac_int64) != 8)
24179 return 0; /* definitely not the right size */
24181 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24189 exit(! does_int64_work());
24192 rm -f conftest$ac_exeext
24193 if { (ac_try="$ac_link"
24194 case "(($ac_try" in
24195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24196 *) ac_try_echo=$ac_try;;
24198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24199 $as_echo "$ac_try_echo") >&5
24200 (eval "$ac_link") 2>&5
24202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24204 { (case "(($ac_try" in
24205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24206 *) ac_try_echo=$ac_try;;
24208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24209 $as_echo "$ac_try_echo") >&5
24210 (eval "$ac_try") 2>&5
24212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); }; }; then
24214 pgac_cv_type_long_int_64=yes
24216 $as_echo "$as_me: program exited with status $ac_status" >&5
24217 $as_echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ( exit $ac_status )
24221 pgac_cv_type_long_int_64=no
24223 rm -rf conftest.dSYM
24224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24229 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24230 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24232 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24233 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24235 cat >>confdefs.h <<\_ACEOF
24236 #define HAVE_LONG_INT_64 1
24242 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24243 pg_int64_type="long int"
24245 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24246 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24247 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24248 $as_echo_n "(cached) " >&6
24250 if test "$cross_compiling" = yes; then
24251 # If cross-compiling, check the size reported by the compiler and
24252 # trust that the arithmetic works.
24253 cat >conftest.$ac_ext <<_ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24263 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24270 rm -f conftest.$ac_objext
24271 if { (ac_try="$ac_compile"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24277 $as_echo "$ac_try_echo") >&5
24278 (eval "$ac_compile") 2>conftest.er1
24280 grep -v '^ *+' conftest.er1 >conftest.err
24282 cat conftest.err >&5
24283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); } && {
24285 test -z "$ac_c_werror_flag" ||
24286 test ! -s conftest.err
24287 } && test -s conftest.$ac_objext; then
24288 pgac_cv_type_long_long_int_64=yes
24290 $as_echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24293 pgac_cv_type_long_long_int_64=no
24296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298 cat >conftest.$ac_ext <<_ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h. */
24304 typedef long long int ac_int64;
24307 * These are globals to discourage the compiler from folding all the
24308 * arithmetic tests down to compile-time constants.
24310 ac_int64 a = 20000001;
24311 ac_int64 b = 40000005;
24313 int does_int64_work()
24317 if (sizeof(ac_int64) != 8)
24318 return 0; /* definitely not the right size */
24320 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24328 exit(! does_int64_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_type_long_long_int_64=yes
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
24359 ( exit $ac_status )
24360 pgac_cv_type_long_long_int_64=no
24362 rm -rf conftest.dSYM
24363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24368 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24369 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24371 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24372 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24374 cat >>confdefs.h <<\_ACEOF
24375 #define HAVE_LONG_LONG_INT_64 1
24380 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24381 pg_int64_type="long long int"
24383 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24384 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24385 { (exit 1); exit 1; }; }
24390 cat >>confdefs.h <<_ACEOF
24391 #define PG_INT64_TYPE $pg_int64_type
24396 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24397 cat >conftest.$ac_ext <<_ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24404 #define INT64CONST(x) x##LL
24405 long long int foo = INT64CONST(0x1234567890123456);
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24422 $as_echo "$ac_try_echo") >&5
24423 (eval "$ac_compile") 2>conftest.er1
24425 grep -v '^ *+' conftest.er1 >conftest.err
24427 cat conftest.err >&5
24428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } && {
24430 test -z "$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24432 } && test -s conftest.$ac_objext; then
24434 cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_LL_CONSTANTS 1
24439 $as_echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24449 # If we found "long int" is 64 bits, assume snprintf handles it. If
24450 # we found we need to use "long long int", better check. We cope with
24451 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24452 # work, fall back to our own snprintf emulation (which we know uses %lld).
24454 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24455 if test $pgac_need_repl_snprintf = no; then
24456 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24457 $as_echo_n "checking snprintf format for long long int... " >&6; }
24458 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24459 $as_echo_n "(cached) " >&6
24461 for pgac_format in '%lld' '%qd' '%I64d'; do
24462 if test "$cross_compiling" = yes; then
24463 pgac_cv_snprintf_long_long_int_format=cross; break
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24472 typedef long long int ac_int64;
24473 #define INT64_FORMAT "$pgac_format"
24475 ac_int64 a = 20000001;
24476 ac_int64 b = 40000005;
24478 int does_int64_snprintf_work()
24483 if (sizeof(ac_int64) != 8)
24484 return 0; /* doesn't look like the right size */
24487 snprintf(buf, 100, INT64_FORMAT, c);
24488 if (strcmp(buf, "800000140000005") != 0)
24489 return 0; /* either multiply or snprintf is busted */
24493 exit(! does_int64_snprintf_work());
24496 rm -f conftest$ac_exeext
24497 if { (ac_try="$ac_link"
24498 case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24503 $as_echo "$ac_try_echo") >&5
24504 (eval "$ac_link") 2>&5
24506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24508 { (case "(($ac_try" in
24509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24510 *) ac_try_echo=$ac_try;;
24512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24513 $as_echo "$ac_try_echo") >&5
24514 (eval "$ac_try") 2>&5
24516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); }; }; then
24518 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24520 $as_echo "$as_me: program exited with status $ac_status" >&5
24521 $as_echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24525 rm -rf conftest.dSYM
24526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24533 LONG_LONG_INT_FORMAT=''
24535 case $pgac_cv_snprintf_long_long_int_format in
24536 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24537 $as_echo "cannot test (not on host machine)" >&6; };;
24538 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24539 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24540 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24541 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24542 $as_echo "none" >&6; };;
24544 if test "$LONG_LONG_INT_FORMAT" = ""; then
24545 # Force usage of our own snprintf, since system snprintf is broken
24546 pgac_need_repl_snprintf=yes
24547 LONG_LONG_INT_FORMAT='%lld'
24550 # Here if we previously decided we needed to use our own snprintf
24551 LONG_LONG_INT_FORMAT='%lld'
24553 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24554 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24555 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24557 # Here if we are not using 'long long int' at all
24558 INT64_FORMAT='"%ld"'
24559 UINT64_FORMAT='"%lu"'
24563 cat >>confdefs.h <<_ACEOF
24564 #define INT64_FORMAT $INT64_FORMAT
24569 cat >>confdefs.h <<_ACEOF
24570 #define UINT64_FORMAT $UINT64_FORMAT
24574 # Now we have checked all the reasons to replace snprintf
24575 if test $pgac_need_repl_snprintf = yes; then
24577 cat >>confdefs.h <<\_ACEOF
24578 #define USE_REPL_SNPRINTF 1
24581 case " $LIBOBJS " in
24582 *" snprintf.$ac_objext "* ) ;;
24583 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24589 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24590 # The cast to long int works around a bug in the HP C Compiler
24591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24593 # This bug is HP SR number 8606223364.
24594 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24595 $as_echo_n "checking size of void *... " >&6; }
24596 if test "${ac_cv_sizeof_void_p+set}" = set; then
24597 $as_echo_n "(cached) " >&6
24599 if test "$cross_compiling" = yes; then
24600 # Depending upon the size, compute the lo and hi bounds.
24601 cat >conftest.$ac_ext <<_ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24611 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24618 rm -f conftest.$ac_objext
24619 if { (ac_try="$ac_compile"
24620 case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24625 $as_echo "$ac_try_echo") >&5
24626 (eval "$ac_compile") 2>conftest.er1
24628 grep -v '^ *+' conftest.er1 >conftest.err
24630 cat conftest.err >&5
24631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); } && {
24633 test -z "$ac_c_werror_flag" ||
24634 test ! -s conftest.err
24635 } && test -s conftest.$ac_objext; then
24638 cat >conftest.$ac_ext <<_ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h. */
24644 $ac_includes_default
24648 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24655 rm -f conftest.$ac_objext
24656 if { (ac_try="$ac_compile"
24657 case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24665 grep -v '^ *+' conftest.er1 >conftest.err
24667 cat conftest.err >&5
24668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24673 ac_hi=$ac_mid; break
24675 $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_lo=`expr $ac_mid + 1`
24679 if test $ac_lo -le $ac_mid; then
24683 ac_mid=`expr 2 '*' $ac_mid + 1`
24686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689 $as_echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 cat >conftest.$ac_ext <<_ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 $ac_includes_default
24702 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24716 $as_echo "$ac_try_echo") >&5
24717 (eval "$ac_compile") 2>conftest.er1
24719 grep -v '^ *+' conftest.er1 >conftest.err
24721 cat conftest.err >&5
24722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } && {
24724 test -z "$ac_c_werror_flag" ||
24725 test ! -s conftest.err
24726 } && test -s conftest.$ac_objext; then
24729 cat >conftest.$ac_ext <<_ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24735 $ac_includes_default
24739 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24753 $as_echo "$ac_try_echo") >&5
24754 (eval "$ac_compile") 2>conftest.er1
24756 grep -v '^ *+' conftest.er1 >conftest.err
24758 cat conftest.err >&5
24759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } && {
24761 test -z "$ac_c_werror_flag" ||
24762 test ! -s conftest.err
24763 } && test -s conftest.$ac_objext; then
24764 ac_lo=$ac_mid; break
24766 $as_echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24769 ac_hi=`expr '(' $ac_mid ')' - 1`
24770 if test $ac_mid -le $ac_hi; then
24774 ac_mid=`expr 2 '*' $ac_mid`
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24780 $as_echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 # Binary search between lo and hi bounds.
24791 while test "x$ac_lo" != "x$ac_hi"; do
24792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24799 $ac_includes_default
24803 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24810 rm -f conftest.$ac_objext
24811 if { (ac_try="$ac_compile"
24812 case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24817 $as_echo "$ac_try_echo") >&5
24818 (eval "$ac_compile") 2>conftest.er1
24820 grep -v '^ *+' conftest.er1 >conftest.err
24822 cat conftest.err >&5
24823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } && {
24825 test -z "$ac_c_werror_flag" ||
24826 test ! -s conftest.err
24827 } && test -s conftest.$ac_objext; then
24830 $as_echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_lo=`expr '(' $ac_mid ')' + 1`
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24840 '') if test "$ac_cv_type_void_p" = yes; then
24841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24843 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24844 See \`config.log' for more details." >&5
24845 $as_echo "$as_me: error: cannot compute sizeof (void *)
24846 See \`config.log' for more details." >&2;}
24847 { (exit 77); exit 77; }; }; }
24849 ac_cv_sizeof_void_p=0
24853 cat >conftest.$ac_ext <<_ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h. */
24859 $ac_includes_default
24860 static long int longval () { return (long int) (sizeof (void *)); }
24861 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24863 #include <stdlib.h>
24868 FILE *f = fopen ("conftest.val", "w");
24871 if (((long int) (sizeof (void *))) < 0)
24873 long int i = longval ();
24874 if (i != ((long int) (sizeof (void *))))
24876 fprintf (f, "%ld", i);
24880 unsigned long int i = ulongval ();
24881 if (i != ((long int) (sizeof (void *))))
24883 fprintf (f, "%lu", i);
24885 /* Do not output a trailing newline, as this causes \r\n confusion
24886 on some platforms. */
24887 return ferror (f) || fclose (f) != 0;
24893 rm -f conftest$ac_exeext
24894 if { (ac_try="$ac_link"
24895 case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24900 $as_echo "$ac_try_echo") >&5
24901 (eval "$ac_link") 2>&5
24903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_sizeof_void_p=`cat conftest.val`
24917 $as_echo "$as_me: program exited with status $ac_status" >&5
24918 $as_echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ( exit $ac_status )
24922 if test "$ac_cv_type_void_p" = yes; then
24923 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24925 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24926 See \`config.log' for more details." >&5
24927 $as_echo "$as_me: error: cannot compute sizeof (void *)
24928 See \`config.log' for more details." >&2;}
24929 { (exit 77); exit 77; }; }; }
24931 ac_cv_sizeof_void_p=0
24934 rm -rf conftest.dSYM
24935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24940 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24944 cat >>confdefs.h <<_ACEOF
24945 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24949 # The cast to long int works around a bug in the HP C Compiler
24950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24952 # This bug is HP SR number 8606223364.
24953 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24954 $as_echo_n "checking size of size_t... " >&6; }
24955 if test "${ac_cv_sizeof_size_t+set}" = set; then
24956 $as_echo_n "(cached) " >&6
24958 if test "$cross_compiling" = yes; then
24959 # Depending upon the size, compute the lo and hi bounds.
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 $ac_includes_default
24970 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24977 rm -f conftest.$ac_objext
24978 if { (ac_try="$ac_compile"
24979 case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24984 $as_echo "$ac_try_echo") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1 >conftest.err
24989 cat conftest.err >&5
24990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.$ac_objext; then
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25007 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25014 rm -f conftest.$ac_objext
25015 if { (ac_try="$ac_compile"
25016 case "(($ac_try" in
25017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018 *) ac_try_echo=$ac_try;;
25020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25021 $as_echo "$ac_try_echo") >&5
25022 (eval "$ac_compile") 2>conftest.er1
25024 grep -v '^ *+' conftest.er1 >conftest.err
25026 cat conftest.err >&5
25027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); } && {
25029 test -z "$ac_c_werror_flag" ||
25030 test ! -s conftest.err
25031 } && test -s conftest.$ac_objext; then
25032 ac_hi=$ac_mid; break
25034 $as_echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25037 ac_lo=`expr $ac_mid + 1`
25038 if test $ac_lo -le $ac_mid; then
25042 ac_mid=`expr 2 '*' $ac_mid + 1`
25045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25048 $as_echo "$as_me: failed program was:" >&5
25049 sed 's/^/| /' conftest.$ac_ext >&5
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 $ac_includes_default
25061 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25075 $as_echo "$ac_try_echo") >&5
25076 (eval "$ac_compile") 2>conftest.er1
25078 grep -v '^ *+' conftest.er1 >conftest.err
25080 cat conftest.err >&5
25081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } && {
25083 test -z "$ac_c_werror_flag" ||
25084 test ! -s conftest.err
25085 } && test -s conftest.$ac_objext; then
25088 cat >conftest.$ac_ext <<_ACEOF
25091 cat confdefs.h >>conftest.$ac_ext
25092 cat >>conftest.$ac_ext <<_ACEOF
25093 /* end confdefs.h. */
25094 $ac_includes_default
25098 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25105 rm -f conftest.$ac_objext
25106 if { (ac_try="$ac_compile"
25107 case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113 (eval "$ac_compile") 2>conftest.er1
25115 grep -v '^ *+' conftest.er1 >conftest.err
25117 cat conftest.err >&5
25118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } && {
25120 test -z "$ac_c_werror_flag" ||
25121 test ! -s conftest.err
25122 } && test -s conftest.$ac_objext; then
25123 ac_lo=$ac_mid; break
25125 $as_echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25128 ac_hi=`expr '(' $ac_mid ')' - 1`
25129 if test $ac_mid -le $ac_hi; then
25133 ac_mid=`expr 2 '*' $ac_mid`
25136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 # Binary search between lo and hi bounds.
25150 while test "x$ac_lo" != "x$ac_hi"; do
25151 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25152 cat >conftest.$ac_ext <<_ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25158 $ac_includes_default
25162 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25169 rm -f conftest.$ac_objext
25170 if { (ac_try="$ac_compile"
25171 case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25176 $as_echo "$ac_try_echo") >&5
25177 (eval "$ac_compile") 2>conftest.er1
25179 grep -v '^ *+' conftest.er1 >conftest.err
25181 cat conftest.err >&5
25182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } && {
25184 test -z "$ac_c_werror_flag" ||
25185 test ! -s conftest.err
25186 } && test -s conftest.$ac_objext; then
25189 $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25192 ac_lo=`expr '(' $ac_mid ')' + 1`
25195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25198 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25199 '') if test "$ac_cv_type_size_t" = yes; then
25200 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25202 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25203 See \`config.log' for more details." >&5
25204 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25205 See \`config.log' for more details." >&2;}
25206 { (exit 77); exit 77; }; }; }
25208 ac_cv_sizeof_size_t=0
25212 cat >conftest.$ac_ext <<_ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h. */
25218 $ac_includes_default
25219 static long int longval () { return (long int) (sizeof (size_t)); }
25220 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25222 #include <stdlib.h>
25227 FILE *f = fopen ("conftest.val", "w");
25230 if (((long int) (sizeof (size_t))) < 0)
25232 long int i = longval ();
25233 if (i != ((long int) (sizeof (size_t))))
25235 fprintf (f, "%ld", i);
25239 unsigned long int i = ulongval ();
25240 if (i != ((long int) (sizeof (size_t))))
25242 fprintf (f, "%lu", i);
25244 /* Do not output a trailing newline, as this causes \r\n confusion
25245 on some platforms. */
25246 return ferror (f) || fclose (f) != 0;
25252 rm -f conftest$ac_exeext
25253 if { (ac_try="$ac_link"
25254 case "(($ac_try" in
25255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256 *) ac_try_echo=$ac_try;;
25258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25259 $as_echo "$ac_try_echo") >&5
25260 (eval "$ac_link") 2>&5
25262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; }; then
25274 ac_cv_sizeof_size_t=`cat conftest.val`
25276 $as_echo "$as_me: program exited with status $ac_status" >&5
25277 $as_echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25280 ( exit $ac_status )
25281 if test "$ac_cv_type_size_t" = yes; then
25282 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25284 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25285 See \`config.log' for more details." >&5
25286 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25287 See \`config.log' for more details." >&2;}
25288 { (exit 77); exit 77; }; }; }
25290 ac_cv_sizeof_size_t=0
25293 rm -rf conftest.dSYM
25294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25298 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25299 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25303 cat >>confdefs.h <<_ACEOF
25304 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25308 # The cast to long int works around a bug in the HP C Compiler
25309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25311 # This bug is HP SR number 8606223364.
25312 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25313 $as_echo_n "checking size of long... " >&6; }
25314 if test "${ac_cv_sizeof_long+set}" = set; then
25315 $as_echo_n "(cached) " >&6
25317 if test "$cross_compiling" = yes; then
25318 # Depending upon the size, compute the lo and hi bounds.
25319 cat >conftest.$ac_ext <<_ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25325 $ac_includes_default
25329 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25343 $as_echo "$ac_try_echo") >&5
25344 (eval "$ac_compile") 2>conftest.er1
25346 grep -v '^ *+' conftest.er1 >conftest.err
25348 cat conftest.err >&5
25349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } && {
25351 test -z "$ac_c_werror_flag" ||
25352 test ! -s conftest.err
25353 } && test -s conftest.$ac_objext; then
25356 cat >conftest.$ac_ext <<_ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h. */
25362 $ac_includes_default
25366 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25373 rm -f conftest.$ac_objext
25374 if { (ac_try="$ac_compile"
25375 case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25380 $as_echo "$ac_try_echo") >&5
25381 (eval "$ac_compile") 2>conftest.er1
25383 grep -v '^ *+' conftest.er1 >conftest.err
25385 cat conftest.err >&5
25386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } && {
25388 test -z "$ac_c_werror_flag" ||
25389 test ! -s conftest.err
25390 } && test -s conftest.$ac_objext; then
25391 ac_hi=$ac_mid; break
25393 $as_echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25396 ac_lo=`expr $ac_mid + 1`
25397 if test $ac_lo -le $ac_mid; then
25401 ac_mid=`expr 2 '*' $ac_mid + 1`
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25407 $as_echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 cat >conftest.$ac_ext <<_ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h. */
25416 $ac_includes_default
25420 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25427 rm -f conftest.$ac_objext
25428 if { (ac_try="$ac_compile"
25429 case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25434 $as_echo "$ac_try_echo") >&5
25435 (eval "$ac_compile") 2>conftest.er1
25437 grep -v '^ *+' conftest.er1 >conftest.err
25439 cat conftest.err >&5
25440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); } && {
25442 test -z "$ac_c_werror_flag" ||
25443 test ! -s conftest.err
25444 } && test -s conftest.$ac_objext; then
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 $ac_includes_default
25457 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25471 $as_echo "$ac_try_echo") >&5
25472 (eval "$ac_compile") 2>conftest.er1
25474 grep -v '^ *+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } && {
25479 test -z "$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest.$ac_objext; then
25482 ac_lo=$ac_mid; break
25484 $as_echo "$as_me: failed program was:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25487 ac_hi=`expr '(' $ac_mid ')' - 1`
25488 if test $ac_mid -le $ac_hi; then
25492 ac_mid=`expr 2 '*' $ac_mid`
25495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 $as_echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508 # Binary search between lo and hi bounds.
25509 while test "x$ac_lo" != "x$ac_hi"; do
25510 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25511 cat >conftest.$ac_ext <<_ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h. */
25517 $ac_includes_default
25521 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25535 $as_echo "$ac_try_echo") >&5
25536 (eval "$ac_compile") 2>conftest.er1
25538 grep -v '^ *+' conftest.er1 >conftest.err
25540 cat conftest.err >&5
25541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } && {
25543 test -z "$ac_c_werror_flag" ||
25544 test ! -s conftest.err
25545 } && test -s conftest.$ac_objext; then
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_lo=`expr '(' $ac_mid ')' + 1`
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557 ?*) ac_cv_sizeof_long=$ac_lo;;
25558 '') if test "$ac_cv_type_long" = yes; then
25559 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25561 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25562 See \`config.log' for more details." >&5
25563 $as_echo "$as_me: error: cannot compute sizeof (long)
25564 See \`config.log' for more details." >&2;}
25565 { (exit 77); exit 77; }; }; }
25567 ac_cv_sizeof_long=0
25571 cat >conftest.$ac_ext <<_ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25577 $ac_includes_default
25578 static long int longval () { return (long int) (sizeof (long)); }
25579 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25581 #include <stdlib.h>
25586 FILE *f = fopen ("conftest.val", "w");
25589 if (((long int) (sizeof (long))) < 0)
25591 long int i = longval ();
25592 if (i != ((long int) (sizeof (long))))
25594 fprintf (f, "%ld", i);
25598 unsigned long int i = ulongval ();
25599 if (i != ((long int) (sizeof (long))))
25601 fprintf (f, "%lu", i);
25603 /* Do not output a trailing newline, as this causes \r\n confusion
25604 on some platforms. */
25605 return ferror (f) || fclose (f) != 0;
25611 rm -f conftest$ac_exeext
25612 if { (ac_try="$ac_link"
25613 case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25618 $as_echo "$ac_try_echo") >&5
25619 (eval "$ac_link") 2>&5
25621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25623 { (case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25628 $as_echo "$ac_try_echo") >&5
25629 (eval "$ac_try") 2>&5
25631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; }; then
25633 ac_cv_sizeof_long=`cat conftest.val`
25635 $as_echo "$as_me: program exited with status $ac_status" >&5
25636 $as_echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25639 ( exit $ac_status )
25640 if test "$ac_cv_type_long" = yes; then
25641 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25643 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25644 See \`config.log' for more details." >&5
25645 $as_echo "$as_me: error: cannot compute sizeof (long)
25646 See \`config.log' for more details." >&2;}
25647 { (exit 77); exit 77; }; }; }
25649 ac_cv_sizeof_long=0
25652 rm -rf conftest.dSYM
25653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25657 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25658 $as_echo "$ac_cv_sizeof_long" >&6; }
25662 cat >>confdefs.h <<_ACEOF
25663 #define SIZEOF_LONG $ac_cv_sizeof_long
25668 # Decide whether float4 is passed by value: user-selectable, enabled by default
25669 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25670 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25673 # Check whether --enable-float4-byval was given.
25674 if test "${enable_float4_byval+set}" = set; then
25675 enableval=$enable_float4_byval;
25679 cat >>confdefs.h <<\_ACEOF
25680 #define USE_FLOAT4_BYVAL 1
25683 float4passbyval=true
25686 float4passbyval=false
25689 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25690 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25691 { (exit 1); exit 1; }; }
25696 enable_float4_byval=yes
25698 cat >>confdefs.h <<\_ACEOF
25699 #define USE_FLOAT4_BYVAL 1
25702 float4passbyval=true
25706 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25707 $as_echo "$enable_float4_byval" >&6; }
25709 cat >>confdefs.h <<_ACEOF
25710 #define FLOAT4PASSBYVAL $float4passbyval
25714 # Decide whether float8 is passed by value.
25715 # Note: this setting also controls int8 and related types such as timestamp.
25716 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25717 # If not, trying to select it is an error.
25718 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25719 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25720 if test $ac_cv_sizeof_void_p -ge 8 ; then
25723 # Check whether --enable-float8-byval was given.
25724 if test "${enable_float8_byval+set}" = set; then
25725 enableval=$enable_float8_byval;
25734 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25735 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25736 { (exit 1); exit 1; }; }
25741 enable_float8_byval=yes
25749 # Check whether --enable-float8-byval was given.
25750 if test "${enable_float8_byval+set}" = set; then
25751 enableval=$enable_float8_byval;
25760 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25761 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25762 { (exit 1); exit 1; }; }
25767 enable_float8_byval=no
25772 if test "$enable_float8_byval" = yes ; then
25773 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25774 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25775 { (exit 1); exit 1; }; }
25778 if test "$enable_float8_byval" = yes ; then
25780 cat >>confdefs.h <<\_ACEOF
25781 #define USE_FLOAT8_BYVAL 1
25784 float8passbyval=true
25786 float8passbyval=false
25788 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25789 $as_echo "$enable_float8_byval" >&6; }
25791 cat >>confdefs.h <<_ACEOF
25792 #define FLOAT8PASSBYVAL $float8passbyval
25796 # Determine memory alignment requirements for the basic C data types.
25798 # The cast to long int works around a bug in the HP C Compiler,
25799 # see AC_CHECK_SIZEOF for more information.
25800 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25801 $as_echo_n "checking alignment of short... " >&6; }
25802 if test "${ac_cv_alignof_short+set}" = set; then
25803 $as_echo_n "(cached) " >&6
25805 if test "$cross_compiling" = yes; then
25806 # Depending upon the size, compute the lo and hi bounds.
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 $ac_includes_default
25815 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25817 typedef struct { char x; short y; } ac__type_alignof_;
25821 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25828 rm -f conftest.$ac_objext
25829 if { (ac_try="$ac_compile"
25830 case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25835 $as_echo "$ac_try_echo") >&5
25836 (eval "$ac_compile") 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } && {
25843 test -z "$ac_c_werror_flag" ||
25844 test ! -s conftest.err
25845 } && test -s conftest.$ac_objext; then
25848 cat >conftest.$ac_ext <<_ACEOF
25851 cat confdefs.h >>conftest.$ac_ext
25852 cat >>conftest.$ac_ext <<_ACEOF
25853 /* end confdefs.h. */
25854 $ac_includes_default
25856 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25858 typedef struct { char x; short y; } ac__type_alignof_;
25862 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25869 rm -f conftest.$ac_objext
25870 if { (ac_try="$ac_compile"
25871 case "(($ac_try" in
25872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873 *) ac_try_echo=$ac_try;;
25875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25876 $as_echo "$ac_try_echo") >&5
25877 (eval "$ac_compile") 2>conftest.er1
25879 grep -v '^ *+' conftest.er1 >conftest.err
25881 cat conftest.err >&5
25882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); } && {
25884 test -z "$ac_c_werror_flag" ||
25885 test ! -s conftest.err
25886 } && test -s conftest.$ac_objext; then
25887 ac_hi=$ac_mid; break
25889 $as_echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25892 ac_lo=`expr $ac_mid + 1`
25893 if test $ac_lo -le $ac_mid; then
25897 ac_mid=`expr 2 '*' $ac_mid + 1`
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903 $as_echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 $ac_includes_default
25914 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25916 typedef struct { char x; short y; } ac__type_alignof_;
25920 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25927 rm -f conftest.$ac_objext
25928 if { (ac_try="$ac_compile"
25929 case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25934 $as_echo "$ac_try_echo") >&5
25935 (eval "$ac_compile") 2>conftest.er1
25937 grep -v '^ *+' conftest.er1 >conftest.err
25939 cat conftest.err >&5
25940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); } && {
25942 test -z "$ac_c_werror_flag" ||
25943 test ! -s conftest.err
25944 } && test -s conftest.$ac_objext; then
25947 cat >conftest.$ac_ext <<_ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h. */
25953 $ac_includes_default
25955 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25957 typedef struct { char x; short y; } ac__type_alignof_;
25961 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25968 rm -f conftest.$ac_objext
25969 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25978 grep -v '^ *+' conftest.er1 >conftest.err
25980 cat conftest.err >&5
25981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); } && {
25983 test -z "$ac_c_werror_flag" ||
25984 test ! -s conftest.err
25985 } && test -s conftest.$ac_objext; then
25986 ac_lo=$ac_mid; break
25988 $as_echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25991 ac_hi=`expr '(' $ac_mid ')' - 1`
25992 if test $ac_mid -le $ac_hi; then
25996 ac_mid=`expr 2 '*' $ac_mid`
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26002 $as_echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.$ac_ext >&5
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 # Binary search between lo and hi bounds.
26013 while test "x$ac_lo" != "x$ac_hi"; do
26014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26015 cat >conftest.$ac_ext <<_ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h. */
26021 $ac_includes_default
26023 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26025 typedef struct { char x; short y; } ac__type_alignof_;
26029 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26036 rm -f conftest.$ac_objext
26037 if { (ac_try="$ac_compile"
26038 case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26043 $as_echo "$ac_try_echo") >&5
26044 (eval "$ac_compile") 2>conftest.er1
26046 grep -v '^ *+' conftest.er1 >conftest.err
26048 cat conftest.err >&5
26049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } && {
26051 test -z "$ac_c_werror_flag" ||
26052 test ! -s conftest.err
26053 } && test -s conftest.$ac_objext; then
26056 $as_echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26059 ac_lo=`expr '(' $ac_mid ')' + 1`
26062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065 ?*) ac_cv_alignof_short=$ac_lo;;
26066 '') if test "$ac_cv_type_short" = yes; then
26067 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26069 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26070 See \`config.log' for more details." >&5
26071 $as_echo "$as_me: error: cannot compute alignment of short
26072 See \`config.log' for more details." >&2;}
26073 { (exit 77); exit 77; }; }; }
26075 ac_cv_alignof_short=0
26079 cat >conftest.$ac_ext <<_ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h. */
26085 $ac_includes_default
26087 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26089 typedef struct { char x; short y; } ac__type_alignof_;
26090 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26091 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26093 #include <stdlib.h>
26098 FILE *f = fopen ("conftest.val", "w");
26101 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26103 long int i = longval ();
26104 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26106 fprintf (f, "%ld", i);
26110 unsigned long int i = ulongval ();
26111 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26113 fprintf (f, "%lu", i);
26115 /* Do not output a trailing newline, as this causes \r\n confusion
26116 on some platforms. */
26117 return ferror (f) || fclose (f) != 0;
26123 rm -f conftest$ac_exeext
26124 if { (ac_try="$ac_link"
26125 case "(($ac_try" in
26126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127 *) ac_try_echo=$ac_try;;
26129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26130 $as_echo "$ac_try_echo") >&5
26131 (eval "$ac_link") 2>&5
26133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26135 { (case "(($ac_try" in
26136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137 *) ac_try_echo=$ac_try;;
26139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26140 $as_echo "$ac_try_echo") >&5
26141 (eval "$ac_try") 2>&5
26143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); }; }; then
26145 ac_cv_alignof_short=`cat conftest.val`
26147 $as_echo "$as_me: program exited with status $ac_status" >&5
26148 $as_echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26151 ( exit $ac_status )
26152 if test "$ac_cv_type_short" = yes; then
26153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26155 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26156 See \`config.log' for more details." >&5
26157 $as_echo "$as_me: error: cannot compute alignment of short
26158 See \`config.log' for more details." >&2;}
26159 { (exit 77); exit 77; }; }; }
26161 ac_cv_alignof_short=0
26164 rm -rf conftest.dSYM
26165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26169 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26170 $as_echo "$ac_cv_alignof_short" >&6; }
26174 cat >>confdefs.h <<_ACEOF
26175 #define ALIGNOF_SHORT $ac_cv_alignof_short
26179 # The cast to long int works around a bug in the HP C Compiler,
26180 # see AC_CHECK_SIZEOF for more information.
26181 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26182 $as_echo_n "checking alignment of int... " >&6; }
26183 if test "${ac_cv_alignof_int+set}" = set; then
26184 $as_echo_n "(cached) " >&6
26186 if test "$cross_compiling" = yes; then
26187 # Depending upon the size, compute the lo and hi bounds.
26188 cat >conftest.$ac_ext <<_ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26194 $ac_includes_default
26196 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26198 typedef struct { char x; int y; } ac__type_alignof_;
26202 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26209 rm -f conftest.$ac_objext
26210 if { (ac_try="$ac_compile"
26211 case "(($ac_try" in
26212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213 *) ac_try_echo=$ac_try;;
26215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26216 $as_echo "$ac_try_echo") >&5
26217 (eval "$ac_compile") 2>conftest.er1
26219 grep -v '^ *+' conftest.er1 >conftest.err
26221 cat conftest.err >&5
26222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); } && {
26224 test -z "$ac_c_werror_flag" ||
26225 test ! -s conftest.err
26226 } && test -s conftest.$ac_objext; then
26229 cat >conftest.$ac_ext <<_ACEOF
26232 cat confdefs.h >>conftest.$ac_ext
26233 cat >>conftest.$ac_ext <<_ACEOF
26234 /* end confdefs.h. */
26235 $ac_includes_default
26237 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26239 typedef struct { char x; int y; } ac__type_alignof_;
26243 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26250 rm -f conftest.$ac_objext
26251 if { (ac_try="$ac_compile"
26252 case "(($ac_try" in
26253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254 *) ac_try_echo=$ac_try;;
26256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26257 $as_echo "$ac_try_echo") >&5
26258 (eval "$ac_compile") 2>conftest.er1
26260 grep -v '^ *+' conftest.er1 >conftest.err
26262 cat conftest.err >&5
26263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); } && {
26265 test -z "$ac_c_werror_flag" ||
26266 test ! -s conftest.err
26267 } && test -s conftest.$ac_objext; then
26268 ac_hi=$ac_mid; break
26270 $as_echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26273 ac_lo=`expr $ac_mid + 1`
26274 if test $ac_lo -le $ac_mid; then
26278 ac_mid=`expr 2 '*' $ac_mid + 1`
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 $as_echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 cat >conftest.$ac_ext <<_ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h. */
26293 $ac_includes_default
26295 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26297 typedef struct { char x; int y; } ac__type_alignof_;
26301 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26308 rm -f conftest.$ac_objext
26309 if { (ac_try="$ac_compile"
26310 case "(($ac_try" in
26311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312 *) ac_try_echo=$ac_try;;
26314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26315 $as_echo "$ac_try_echo") >&5
26316 (eval "$ac_compile") 2>conftest.er1
26318 grep -v '^ *+' conftest.er1 >conftest.err
26320 cat conftest.err >&5
26321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); } && {
26323 test -z "$ac_c_werror_flag" ||
26324 test ! -s conftest.err
26325 } && test -s conftest.$ac_objext; then
26328 cat >conftest.$ac_ext <<_ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h. */
26334 $ac_includes_default
26336 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26338 typedef struct { char x; int y; } ac__type_alignof_;
26342 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26349 rm -f conftest.$ac_objext
26350 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26359 grep -v '^ *+' conftest.er1 >conftest.err
26361 cat conftest.err >&5
26362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); } && {
26364 test -z "$ac_c_werror_flag" ||
26365 test ! -s conftest.err
26366 } && test -s conftest.$ac_objext; then
26367 ac_lo=$ac_mid; break
26369 $as_echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26372 ac_hi=`expr '(' $ac_mid ')' - 1`
26373 if test $ac_mid -le $ac_hi; then
26377 ac_mid=`expr 2 '*' $ac_mid`
26380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383 $as_echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393 # Binary search between lo and hi bounds.
26394 while test "x$ac_lo" != "x$ac_hi"; do
26395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26396 cat >conftest.$ac_ext <<_ACEOF
26399 cat confdefs.h >>conftest.$ac_ext
26400 cat >>conftest.$ac_ext <<_ACEOF
26401 /* end confdefs.h. */
26402 $ac_includes_default
26404 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26406 typedef struct { char x; int y; } ac__type_alignof_;
26410 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26417 rm -f conftest.$ac_objext
26418 if { (ac_try="$ac_compile"
26419 case "(($ac_try" in
26420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26421 *) ac_try_echo=$ac_try;;
26423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26424 $as_echo "$ac_try_echo") >&5
26425 (eval "$ac_compile") 2>conftest.er1
26427 grep -v '^ *+' conftest.er1 >conftest.err
26429 cat conftest.err >&5
26430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); } && {
26432 test -z "$ac_c_werror_flag" ||
26433 test ! -s conftest.err
26434 } && test -s conftest.$ac_objext; then
26437 $as_echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 ac_lo=`expr '(' $ac_mid ')' + 1`
26443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26446 ?*) ac_cv_alignof_int=$ac_lo;;
26447 '') if test "$ac_cv_type_int" = yes; then
26448 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26450 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26451 See \`config.log' for more details." >&5
26452 $as_echo "$as_me: error: cannot compute alignment of int
26453 See \`config.log' for more details." >&2;}
26454 { (exit 77); exit 77; }; }; }
26456 ac_cv_alignof_int=0
26460 cat >conftest.$ac_ext <<_ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h. */
26466 $ac_includes_default
26468 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26470 typedef struct { char x; int y; } ac__type_alignof_;
26471 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26472 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26474 #include <stdlib.h>
26479 FILE *f = fopen ("conftest.val", "w");
26482 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26484 long int i = longval ();
26485 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26487 fprintf (f, "%ld", i);
26491 unsigned long int i = ulongval ();
26492 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26494 fprintf (f, "%lu", i);
26496 /* Do not output a trailing newline, as this causes \r\n confusion
26497 on some platforms. */
26498 return ferror (f) || fclose (f) != 0;
26504 rm -f conftest$ac_exeext
26505 if { (ac_try="$ac_link"
26506 case "(($ac_try" in
26507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26508 *) ac_try_echo=$ac_try;;
26510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26511 $as_echo "$ac_try_echo") >&5
26512 (eval "$ac_link") 2>&5
26514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26516 { (case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522 (eval "$ac_try") 2>&5
26524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); }; }; then
26526 ac_cv_alignof_int=`cat conftest.val`
26528 $as_echo "$as_me: program exited with status $ac_status" >&5
26529 $as_echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26532 ( exit $ac_status )
26533 if test "$ac_cv_type_int" = yes; then
26534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26536 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26537 See \`config.log' for more details." >&5
26538 $as_echo "$as_me: error: cannot compute alignment of int
26539 See \`config.log' for more details." >&2;}
26540 { (exit 77); exit 77; }; }; }
26542 ac_cv_alignof_int=0
26545 rm -rf conftest.dSYM
26546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26550 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26551 $as_echo "$ac_cv_alignof_int" >&6; }
26555 cat >>confdefs.h <<_ACEOF
26556 #define ALIGNOF_INT $ac_cv_alignof_int
26560 # The cast to long int works around a bug in the HP C Compiler,
26561 # see AC_CHECK_SIZEOF for more information.
26562 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26563 $as_echo_n "checking alignment of long... " >&6; }
26564 if test "${ac_cv_alignof_long+set}" = set; then
26565 $as_echo_n "(cached) " >&6
26567 if test "$cross_compiling" = yes; then
26568 # Depending upon the size, compute the lo and hi bounds.
26569 cat >conftest.$ac_ext <<_ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26575 $ac_includes_default
26577 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26579 typedef struct { char x; long y; } ac__type_alignof_;
26583 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26590 rm -f conftest.$ac_objext
26591 if { (ac_try="$ac_compile"
26592 case "(($ac_try" in
26593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26594 *) ac_try_echo=$ac_try;;
26596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26597 $as_echo "$ac_try_echo") >&5
26598 (eval "$ac_compile") 2>conftest.er1
26600 grep -v '^ *+' conftest.er1 >conftest.err
26602 cat conftest.err >&5
26603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } && {
26605 test -z "$ac_c_werror_flag" ||
26606 test ! -s conftest.err
26607 } && test -s conftest.$ac_objext; then
26610 cat >conftest.$ac_ext <<_ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h. */
26616 $ac_includes_default
26618 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26620 typedef struct { char x; long y; } ac__type_alignof_;
26624 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26631 rm -f conftest.$ac_objext
26632 if { (ac_try="$ac_compile"
26633 case "(($ac_try" in
26634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635 *) ac_try_echo=$ac_try;;
26637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26638 $as_echo "$ac_try_echo") >&5
26639 (eval "$ac_compile") 2>conftest.er1
26641 grep -v '^ *+' conftest.er1 >conftest.err
26643 cat conftest.err >&5
26644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); } && {
26646 test -z "$ac_c_werror_flag" ||
26647 test ! -s conftest.err
26648 } && test -s conftest.$ac_objext; then
26649 ac_hi=$ac_mid; break
26651 $as_echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26654 ac_lo=`expr $ac_mid + 1`
26655 if test $ac_lo -le $ac_mid; then
26659 ac_mid=`expr 2 '*' $ac_mid + 1`
26662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26665 $as_echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 cat >conftest.$ac_ext <<_ACEOF
26671 cat confdefs.h >>conftest.$ac_ext
26672 cat >>conftest.$ac_ext <<_ACEOF
26673 /* end confdefs.h. */
26674 $ac_includes_default
26676 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26678 typedef struct { char x; long y; } ac__type_alignof_;
26682 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26689 rm -f conftest.$ac_objext
26690 if { (ac_try="$ac_compile"
26691 case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26696 $as_echo "$ac_try_echo") >&5
26697 (eval "$ac_compile") 2>conftest.er1
26699 grep -v '^ *+' conftest.er1 >conftest.err
26701 cat conftest.err >&5
26702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } && {
26704 test -z "$ac_c_werror_flag" ||
26705 test ! -s conftest.err
26706 } && test -s conftest.$ac_objext; then
26709 cat >conftest.$ac_ext <<_ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h. */
26715 $ac_includes_default
26717 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26719 typedef struct { char x; long y; } ac__type_alignof_;
26723 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26740 grep -v '^ *+' conftest.er1 >conftest.err
26742 cat conftest.err >&5
26743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } && {
26745 test -z "$ac_c_werror_flag" ||
26746 test ! -s conftest.err
26747 } && test -s conftest.$ac_objext; then
26748 ac_lo=$ac_mid; break
26750 $as_echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26753 ac_hi=`expr '(' $ac_mid ')' - 1`
26754 if test $ac_mid -le $ac_hi; then
26758 ac_mid=`expr 2 '*' $ac_mid`
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764 $as_echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774 # Binary search between lo and hi bounds.
26775 while test "x$ac_lo" != "x$ac_hi"; do
26776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26777 cat >conftest.$ac_ext <<_ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h. */
26783 $ac_includes_default
26785 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26787 typedef struct { char x; long y; } ac__type_alignof_;
26791 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802 *) ac_try_echo=$ac_try;;
26804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26805 $as_echo "$ac_try_echo") >&5
26806 (eval "$ac_compile") 2>conftest.er1
26808 grep -v '^ *+' conftest.er1 >conftest.err
26810 cat conftest.err >&5
26811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } && {
26813 test -z "$ac_c_werror_flag" ||
26814 test ! -s conftest.err
26815 } && test -s conftest.$ac_objext; then
26818 $as_echo "$as_me: failed program was:" >&5
26819 sed 's/^/| /' conftest.$ac_ext >&5
26821 ac_lo=`expr '(' $ac_mid ')' + 1`
26824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26827 ?*) ac_cv_alignof_long=$ac_lo;;
26828 '') if test "$ac_cv_type_long" = yes; then
26829 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26831 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26832 See \`config.log' for more details." >&5
26833 $as_echo "$as_me: error: cannot compute alignment of long
26834 See \`config.log' for more details." >&2;}
26835 { (exit 77); exit 77; }; }; }
26837 ac_cv_alignof_long=0
26841 cat >conftest.$ac_ext <<_ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h. */
26847 $ac_includes_default
26849 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26851 typedef struct { char x; long y; } ac__type_alignof_;
26852 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26853 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26855 #include <stdlib.h>
26860 FILE *f = fopen ("conftest.val", "w");
26863 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26865 long int i = longval ();
26866 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26868 fprintf (f, "%ld", i);
26872 unsigned long int i = ulongval ();
26873 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26875 fprintf (f, "%lu", i);
26877 /* Do not output a trailing newline, as this causes \r\n confusion
26878 on some platforms. */
26879 return ferror (f) || fclose (f) != 0;
26885 rm -f conftest$ac_exeext
26886 if { (ac_try="$ac_link"
26887 case "(($ac_try" in
26888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889 *) ac_try_echo=$ac_try;;
26891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26892 $as_echo "$ac_try_echo") >&5
26893 (eval "$ac_link") 2>&5
26895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26897 { (case "(($ac_try" in
26898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899 *) ac_try_echo=$ac_try;;
26901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26902 $as_echo "$ac_try_echo") >&5
26903 (eval "$ac_try") 2>&5
26905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_cv_alignof_long=`cat conftest.val`
26909 $as_echo "$as_me: program exited with status $ac_status" >&5
26910 $as_echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26913 ( exit $ac_status )
26914 if test "$ac_cv_type_long" = yes; then
26915 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26917 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26918 See \`config.log' for more details." >&5
26919 $as_echo "$as_me: error: cannot compute alignment of long
26920 See \`config.log' for more details." >&2;}
26921 { (exit 77); exit 77; }; }; }
26923 ac_cv_alignof_long=0
26926 rm -rf conftest.dSYM
26927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26931 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26932 $as_echo "$ac_cv_alignof_long" >&6; }
26936 cat >>confdefs.h <<_ACEOF
26937 #define ALIGNOF_LONG $ac_cv_alignof_long
26941 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26942 # The cast to long int works around a bug in the HP C Compiler,
26943 # see AC_CHECK_SIZEOF for more information.
26944 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26945 $as_echo_n "checking alignment of long long int... " >&6; }
26946 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26947 $as_echo_n "(cached) " >&6
26949 if test "$cross_compiling" = yes; then
26950 # Depending upon the size, compute the lo and hi bounds.
26951 cat >conftest.$ac_ext <<_ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h. */
26957 $ac_includes_default
26959 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26961 typedef struct { char x; long long int y; } ac__type_alignof_;
26965 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26972 rm -f conftest.$ac_objext
26973 if { (ac_try="$ac_compile"
26974 case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26979 $as_echo "$ac_try_echo") >&5
26980 (eval "$ac_compile") 2>conftest.er1
26982 grep -v '^ *+' conftest.er1 >conftest.err
26984 cat conftest.err >&5
26985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); } && {
26987 test -z "$ac_c_werror_flag" ||
26988 test ! -s conftest.err
26989 } && test -s conftest.$ac_objext; then
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998 $ac_includes_default
27000 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27002 typedef struct { char x; long long int y; } ac__type_alignof_;
27006 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27013 rm -f conftest.$ac_objext
27014 if { (ac_try="$ac_compile"
27015 case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27020 $as_echo "$ac_try_echo") >&5
27021 (eval "$ac_compile") 2>conftest.er1
27023 grep -v '^ *+' conftest.er1 >conftest.err
27025 cat conftest.err >&5
27026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } && {
27028 test -z "$ac_c_werror_flag" ||
27029 test ! -s conftest.err
27030 } && test -s conftest.$ac_objext; then
27031 ac_hi=$ac_mid; break
27033 $as_echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27036 ac_lo=`expr $ac_mid + 1`
27037 if test $ac_lo -le $ac_mid; then
27041 ac_mid=`expr 2 '*' $ac_mid + 1`
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 $as_echo "$as_me: failed program was:" >&5
27048 sed 's/^/| /' conftest.$ac_ext >&5
27050 cat >conftest.$ac_ext <<_ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h. */
27056 $ac_includes_default
27058 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27060 typedef struct { char x; long long int y; } ac__type_alignof_;
27064 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27071 rm -f conftest.$ac_objext
27072 if { (ac_try="$ac_compile"
27073 case "(($ac_try" in
27074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075 *) ac_try_echo=$ac_try;;
27077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27078 $as_echo "$ac_try_echo") >&5
27079 (eval "$ac_compile") 2>conftest.er1
27081 grep -v '^ *+' conftest.er1 >conftest.err
27083 cat conftest.err >&5
27084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } && {
27086 test -z "$ac_c_werror_flag" ||
27087 test ! -s conftest.err
27088 } && test -s conftest.$ac_objext; then
27091 cat >conftest.$ac_ext <<_ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h. */
27097 $ac_includes_default
27099 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27101 typedef struct { char x; long long int y; } ac__type_alignof_;
27105 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27112 rm -f conftest.$ac_objext
27113 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27122 grep -v '^ *+' conftest.er1 >conftest.err
27124 cat conftest.err >&5
27125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } && {
27127 test -z "$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27129 } && test -s conftest.$ac_objext; then
27130 ac_lo=$ac_mid; break
27132 $as_echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27135 ac_hi=`expr '(' $ac_mid ')' - 1`
27136 if test $ac_mid -le $ac_hi; then
27140 ac_mid=`expr 2 '*' $ac_mid`
27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27146 $as_echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27156 # Binary search between lo and hi bounds.
27157 while test "x$ac_lo" != "x$ac_hi"; do
27158 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27159 cat >conftest.$ac_ext <<_ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27165 $ac_includes_default
27167 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27169 typedef struct { char x; long long int y; } ac__type_alignof_;
27173 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27180 rm -f conftest.$ac_objext
27181 if { (ac_try="$ac_compile"
27182 case "(($ac_try" in
27183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184 *) ac_try_echo=$ac_try;;
27186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27187 $as_echo "$ac_try_echo") >&5
27188 (eval "$ac_compile") 2>conftest.er1
27190 grep -v '^ *+' conftest.er1 >conftest.err
27192 cat conftest.err >&5
27193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); } && {
27195 test -z "$ac_c_werror_flag" ||
27196 test ! -s conftest.err
27197 } && test -s conftest.$ac_objext; then
27200 $as_echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27203 ac_lo=`expr '(' $ac_mid ')' + 1`
27206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27209 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27210 '') if test "$ac_cv_type_long_long_int" = yes; then
27211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27213 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27214 See \`config.log' for more details." >&5
27215 $as_echo "$as_me: error: cannot compute alignment of long long int
27216 See \`config.log' for more details." >&2;}
27217 { (exit 77); exit 77; }; }; }
27219 ac_cv_alignof_long_long_int=0
27223 cat >conftest.$ac_ext <<_ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h. */
27229 $ac_includes_default
27231 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27233 typedef struct { char x; long long int y; } ac__type_alignof_;
27234 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27235 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27237 #include <stdlib.h>
27242 FILE *f = fopen ("conftest.val", "w");
27245 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27247 long int i = longval ();
27248 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27250 fprintf (f, "%ld", i);
27254 unsigned long int i = ulongval ();
27255 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27257 fprintf (f, "%lu", i);
27259 /* Do not output a trailing newline, as this causes \r\n confusion
27260 on some platforms. */
27261 return ferror (f) || fclose (f) != 0;
27267 rm -f conftest$ac_exeext
27268 if { (ac_try="$ac_link"
27269 case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27274 $as_echo "$ac_try_echo") >&5
27275 (eval "$ac_link") 2>&5
27277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27284 $as_echo "$ac_try_echo") >&5
27285 (eval "$ac_try") 2>&5
27287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; }; then
27289 ac_cv_alignof_long_long_int=`cat conftest.val`
27291 $as_echo "$as_me: program exited with status $ac_status" >&5
27292 $as_echo "$as_me: failed program was:" >&5
27293 sed 's/^/| /' conftest.$ac_ext >&5
27295 ( exit $ac_status )
27296 if test "$ac_cv_type_long_long_int" = yes; then
27297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27299 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27300 See \`config.log' for more details." >&5
27301 $as_echo "$as_me: error: cannot compute alignment of long long int
27302 See \`config.log' for more details." >&2;}
27303 { (exit 77); exit 77; }; }; }
27305 ac_cv_alignof_long_long_int=0
27308 rm -rf conftest.dSYM
27309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27313 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27314 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27318 cat >>confdefs.h <<_ACEOF
27319 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27324 # The cast to long int works around a bug in the HP C Compiler,
27325 # see AC_CHECK_SIZEOF for more information.
27326 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27327 $as_echo_n "checking alignment of double... " >&6; }
27328 if test "${ac_cv_alignof_double+set}" = set; then
27329 $as_echo_n "(cached) " >&6
27331 if test "$cross_compiling" = yes; then
27332 # Depending upon the size, compute the lo and hi bounds.
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 $ac_includes_default
27341 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27343 typedef struct { char x; double y; } ac__type_alignof_;
27347 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27354 rm -f conftest.$ac_objext
27355 if { (ac_try="$ac_compile"
27356 case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27361 $as_echo "$ac_try_echo") >&5
27362 (eval "$ac_compile") 2>conftest.er1
27364 grep -v '^ *+' conftest.er1 >conftest.err
27366 cat conftest.err >&5
27367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); } && {
27369 test -z "$ac_c_werror_flag" ||
27370 test ! -s conftest.err
27371 } && test -s conftest.$ac_objext; then
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27380 $ac_includes_default
27382 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27384 typedef struct { char x; double y; } ac__type_alignof_;
27388 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27402 $as_echo "$ac_try_echo") >&5
27403 (eval "$ac_compile") 2>conftest.er1
27405 grep -v '^ *+' conftest.er1 >conftest.err
27407 cat conftest.err >&5
27408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } && {
27410 test -z "$ac_c_werror_flag" ||
27411 test ! -s conftest.err
27412 } && test -s conftest.$ac_objext; then
27413 ac_hi=$ac_mid; break
27415 $as_echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27418 ac_lo=`expr $ac_mid + 1`
27419 if test $ac_lo -le $ac_mid; then
27423 ac_mid=`expr 2 '*' $ac_mid + 1`
27426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27429 $as_echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 cat >conftest.$ac_ext <<_ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 $ac_includes_default
27440 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27442 typedef struct { char x; double y; } ac__type_alignof_;
27446 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27453 rm -f conftest.$ac_objext
27454 if { (ac_try="$ac_compile"
27455 case "(($ac_try" in
27456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 *) ac_try_echo=$ac_try;;
27459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27460 $as_echo "$ac_try_echo") >&5
27461 (eval "$ac_compile") 2>conftest.er1
27463 grep -v '^ *+' conftest.er1 >conftest.err
27465 cat conftest.err >&5
27466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); } && {
27468 test -z "$ac_c_werror_flag" ||
27469 test ! -s conftest.err
27470 } && test -s conftest.$ac_objext; then
27473 cat >conftest.$ac_ext <<_ACEOF
27476 cat confdefs.h >>conftest.$ac_ext
27477 cat >>conftest.$ac_ext <<_ACEOF
27478 /* end confdefs.h. */
27479 $ac_includes_default
27481 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27483 typedef struct { char x; double y; } ac__type_alignof_;
27487 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27494 rm -f conftest.$ac_objext
27495 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27504 grep -v '^ *+' conftest.er1 >conftest.err
27506 cat conftest.err >&5
27507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); } && {
27509 test -z "$ac_c_werror_flag" ||
27510 test ! -s conftest.err
27511 } && test -s conftest.$ac_objext; then
27512 ac_lo=$ac_mid; break
27514 $as_echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27517 ac_hi=`expr '(' $ac_mid ')' - 1`
27518 if test $ac_mid -le $ac_hi; then
27522 ac_mid=`expr 2 '*' $ac_mid`
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27528 $as_echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538 # Binary search between lo and hi bounds.
27539 while test "x$ac_lo" != "x$ac_hi"; do
27540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27541 cat >conftest.$ac_ext <<_ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h. */
27547 $ac_includes_default
27549 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27551 typedef struct { char x; double y; } ac__type_alignof_;
27555 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27562 rm -f conftest.$ac_objext
27563 if { (ac_try="$ac_compile"
27564 case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27569 $as_echo "$ac_try_echo") >&5
27570 (eval "$ac_compile") 2>conftest.er1
27572 grep -v '^ *+' conftest.er1 >conftest.err
27574 cat conftest.err >&5
27575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); } && {
27577 test -z "$ac_c_werror_flag" ||
27578 test ! -s conftest.err
27579 } && test -s conftest.$ac_objext; then
27582 $as_echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27585 ac_lo=`expr '(' $ac_mid ')' + 1`
27588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27591 ?*) ac_cv_alignof_double=$ac_lo;;
27592 '') if test "$ac_cv_type_double" = yes; then
27593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27595 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27596 See \`config.log' for more details." >&5
27597 $as_echo "$as_me: error: cannot compute alignment of double
27598 See \`config.log' for more details." >&2;}
27599 { (exit 77); exit 77; }; }; }
27601 ac_cv_alignof_double=0
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27611 $ac_includes_default
27613 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27615 typedef struct { char x; double y; } ac__type_alignof_;
27616 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27617 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27619 #include <stdlib.h>
27624 FILE *f = fopen ("conftest.val", "w");
27627 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27629 long int i = longval ();
27630 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27632 fprintf (f, "%ld", i);
27636 unsigned long int i = ulongval ();
27637 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27639 fprintf (f, "%lu", i);
27641 /* Do not output a trailing newline, as this causes \r\n confusion
27642 on some platforms. */
27643 return ferror (f) || fclose (f) != 0;
27649 rm -f conftest$ac_exeext
27650 if { (ac_try="$ac_link"
27651 case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27656 $as_echo "$ac_try_echo") >&5
27657 (eval "$ac_link") 2>&5
27659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27666 $as_echo "$ac_try_echo") >&5
27667 (eval "$ac_try") 2>&5
27669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); }; }; then
27671 ac_cv_alignof_double=`cat conftest.val`
27673 $as_echo "$as_me: program exited with status $ac_status" >&5
27674 $as_echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ( exit $ac_status )
27678 if test "$ac_cv_type_double" = yes; then
27679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27681 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27682 See \`config.log' for more details." >&5
27683 $as_echo "$as_me: error: cannot compute alignment of double
27684 See \`config.log' for more details." >&2;}
27685 { (exit 77); exit 77; }; }; }
27687 ac_cv_alignof_double=0
27690 rm -rf conftest.dSYM
27691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27695 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27696 $as_echo "$ac_cv_alignof_double" >&6; }
27700 cat >>confdefs.h <<_ACEOF
27701 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27706 # Compute maximum alignment of any basic type.
27707 # We assume long's alignment is at least as strong as char, short, or int;
27708 # but we must check long long (if it exists) and double.
27710 MAX_ALIGNOF=$ac_cv_alignof_long
27711 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27712 MAX_ALIGNOF=$ac_cv_alignof_double
27714 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27715 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27718 cat >>confdefs.h <<_ACEOF
27719 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27724 # Some platforms predefine the types int8, int16, etc. Only check
27725 # a (hopefully) representative subset.
27726 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27727 $as_echo_n "checking for int8... " >&6; }
27728 if test "${ac_cv_type_int8+set}" = set; then
27729 $as_echo_n "(cached) " >&6
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27749 rm -f conftest.$ac_objext
27750 if { (ac_try="$ac_compile"
27751 case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27756 $as_echo "$ac_try_echo") >&5
27757 (eval "$ac_compile") 2>conftest.er1
27759 grep -v '^ *+' conftest.er1 >conftest.err
27761 cat conftest.err >&5
27762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } && {
27764 test -z "$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27766 } && test -s conftest.$ac_objext; then
27767 cat >conftest.$ac_ext <<_ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27778 if (sizeof ((int8)))
27784 rm -f conftest.$ac_objext
27785 if { (ac_try="$ac_compile"
27786 case "(($ac_try" in
27787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788 *) ac_try_echo=$ac_try;;
27790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27791 $as_echo "$ac_try_echo") >&5
27792 (eval "$ac_compile") 2>conftest.er1
27794 grep -v '^ *+' conftest.er1 >conftest.err
27796 cat conftest.err >&5
27797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } && {
27799 test -z "$ac_c_werror_flag" ||
27800 test ! -s conftest.err
27801 } && test -s conftest.$ac_objext; then
27804 $as_echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27807 ac_cv_type_int8=yes
27810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27812 $as_echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27820 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27821 $as_echo "$ac_cv_type_int8" >&6; }
27822 if test "x$ac_cv_type_int8" = x""yes; then
27824 cat >>confdefs.h <<_ACEOF
27825 #define HAVE_INT8 1
27830 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27831 $as_echo_n "checking for uint8... " >&6; }
27832 if test "${ac_cv_type_uint8+set}" = set; then
27833 $as_echo_n "(cached) " >&6
27835 ac_cv_type_uint8=no
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27847 if (sizeof (uint8))
27853 rm -f conftest.$ac_objext
27854 if { (ac_try="$ac_compile"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27860 $as_echo "$ac_try_echo") >&5
27861 (eval "$ac_compile") 2>conftest.er1
27863 grep -v '^ *+' conftest.er1 >conftest.err
27865 cat conftest.err >&5
27866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } && {
27868 test -z "$ac_c_werror_flag" ||
27869 test ! -s conftest.err
27870 } && test -s conftest.$ac_objext; then
27871 cat >conftest.$ac_ext <<_ACEOF
27874 cat confdefs.h >>conftest.$ac_ext
27875 cat >>conftest.$ac_ext <<_ACEOF
27876 /* end confdefs.h. */
27882 if (sizeof ((uint8)))
27888 rm -f conftest.$ac_objext
27889 if { (ac_try="$ac_compile"
27890 case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27895 $as_echo "$ac_try_echo") >&5
27896 (eval "$ac_compile") 2>conftest.er1
27898 grep -v '^ *+' conftest.er1 >conftest.err
27900 cat conftest.err >&5
27901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } && {
27903 test -z "$ac_c_werror_flag" ||
27904 test ! -s conftest.err
27905 } && test -s conftest.$ac_objext; then
27908 $as_echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27911 ac_cv_type_uint8=yes
27914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916 $as_echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27924 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27925 $as_echo "$ac_cv_type_uint8" >&6; }
27926 if test "x$ac_cv_type_uint8" = x""yes; then
27928 cat >>confdefs.h <<_ACEOF
27929 #define HAVE_UINT8 1
27934 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27935 $as_echo_n "checking for int64... " >&6; }
27936 if test "${ac_cv_type_int64+set}" = set; then
27937 $as_echo_n "(cached) " >&6
27939 ac_cv_type_int64=no
27940 cat >conftest.$ac_ext <<_ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27951 if (sizeof (int64))
27957 rm -f conftest.$ac_objext
27958 if { (ac_try="$ac_compile"
27959 case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27964 $as_echo "$ac_try_echo") >&5
27965 (eval "$ac_compile") 2>conftest.er1
27967 grep -v '^ *+' conftest.er1 >conftest.err
27969 cat conftest.err >&5
27970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } && {
27972 test -z "$ac_c_werror_flag" ||
27973 test ! -s conftest.err
27974 } && test -s conftest.$ac_objext; then
27975 cat >conftest.$ac_ext <<_ACEOF
27978 cat confdefs.h >>conftest.$ac_ext
27979 cat >>conftest.$ac_ext <<_ACEOF
27980 /* end confdefs.h. */
27986 if (sizeof ((int64)))
27992 rm -f conftest.$ac_objext
27993 if { (ac_try="$ac_compile"
27994 case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27999 $as_echo "$ac_try_echo") >&5
28000 (eval "$ac_compile") 2>conftest.er1
28002 grep -v '^ *+' conftest.er1 >conftest.err
28004 cat conftest.err >&5
28005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } && {
28007 test -z "$ac_c_werror_flag" ||
28008 test ! -s conftest.err
28009 } && test -s conftest.$ac_objext; then
28012 $as_echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 ac_cv_type_int64=yes
28018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 $as_echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28029 $as_echo "$ac_cv_type_int64" >&6; }
28030 if test "x$ac_cv_type_int64" = x""yes; then
28032 cat >>confdefs.h <<_ACEOF
28033 #define HAVE_INT64 1
28038 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28039 $as_echo_n "checking for uint64... " >&6; }
28040 if test "${ac_cv_type_uint64+set}" = set; then
28041 $as_echo_n "(cached) " >&6
28043 ac_cv_type_uint64=no
28044 cat >conftest.$ac_ext <<_ACEOF
28047 cat confdefs.h >>conftest.$ac_ext
28048 cat >>conftest.$ac_ext <<_ACEOF
28049 /* end confdefs.h. */
28055 if (sizeof (uint64))
28061 rm -f conftest.$ac_objext
28062 if { (ac_try="$ac_compile"
28063 case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28068 $as_echo "$ac_try_echo") >&5
28069 (eval "$ac_compile") 2>conftest.er1
28071 grep -v '^ *+' conftest.er1 >conftest.err
28073 cat conftest.err >&5
28074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); } && {
28076 test -z "$ac_c_werror_flag" ||
28077 test ! -s conftest.err
28078 } && test -s conftest.$ac_objext; then
28079 cat >conftest.$ac_ext <<_ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h. */
28090 if (sizeof ((uint64)))
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100 *) ac_try_echo=$ac_try;;
28102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28103 $as_echo "$ac_try_echo") >&5
28104 (eval "$ac_compile") 2>conftest.er1
28106 grep -v '^ *+' conftest.er1 >conftest.err
28108 cat conftest.err >&5
28109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110 (exit $ac_status); } && {
28111 test -z "$ac_c_werror_flag" ||
28112 test ! -s conftest.err
28113 } && test -s conftest.$ac_objext; then
28116 $as_echo "$as_me: failed program was:" >&5
28117 sed 's/^/| /' conftest.$ac_ext >&5
28119 ac_cv_type_uint64=yes
28122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28124 $as_echo "$as_me: failed program was:" >&5
28125 sed 's/^/| /' conftest.$ac_ext >&5
28130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28133 $as_echo "$ac_cv_type_uint64" >&6; }
28134 if test "x$ac_cv_type_uint64" = x""yes; then
28136 cat >>confdefs.h <<_ACEOF
28137 #define HAVE_UINT64 1
28144 # We also check for sig_atomic_t, which *should* be defined per ANSI
28145 # C, but is missing on some old platforms.
28146 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28147 $as_echo_n "checking for sig_atomic_t... " >&6; }
28148 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28149 $as_echo_n "(cached) " >&6
28151 ac_cv_type_sig_atomic_t=no
28152 cat >conftest.$ac_ext <<_ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28158 #include <signal.h>
28163 if (sizeof (sig_atomic_t))
28169 rm -f conftest.$ac_objext
28170 if { (ac_try="$ac_compile"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28176 $as_echo "$ac_try_echo") >&5
28177 (eval "$ac_compile") 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } && {
28184 test -z "$ac_c_werror_flag" ||
28185 test ! -s conftest.err
28186 } && test -s conftest.$ac_objext; then
28187 cat >conftest.$ac_ext <<_ACEOF
28190 cat confdefs.h >>conftest.$ac_ext
28191 cat >>conftest.$ac_ext <<_ACEOF
28192 /* end confdefs.h. */
28193 #include <signal.h>
28198 if (sizeof ((sig_atomic_t)))
28204 rm -f conftest.$ac_objext
28205 if { (ac_try="$ac_compile"
28206 case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28211 $as_echo "$ac_try_echo") >&5
28212 (eval "$ac_compile") 2>conftest.er1
28214 grep -v '^ *+' conftest.er1 >conftest.err
28216 cat conftest.err >&5
28217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } && {
28219 test -z "$ac_c_werror_flag" ||
28220 test ! -s conftest.err
28221 } && test -s conftest.$ac_objext; then
28224 $as_echo "$as_me: failed program was:" >&5
28225 sed 's/^/| /' conftest.$ac_ext >&5
28227 ac_cv_type_sig_atomic_t=yes
28230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 $as_echo "$as_me: failed program was:" >&5
28233 sed 's/^/| /' conftest.$ac_ext >&5
28238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28241 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28242 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28244 cat >>confdefs.h <<_ACEOF
28245 #define HAVE_SIG_ATOMIC_T 1
28253 if test "$PORTNAME" != "win32"
28255 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28256 $as_echo_n "checking for POSIX signal interface... " >&6; }
28257 if test "${pgac_cv_func_posix_signals+set}" = set; then
28258 $as_echo_n "(cached) " >&6
28260 cat >conftest.$ac_ext <<_ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h. */
28266 #include <signal.h>
28271 struct sigaction act, oact;
28272 sigemptyset(&act.sa_mask);
28273 act.sa_flags = SA_RESTART;
28274 sigaction(0, &act, &oact);
28279 rm -f conftest.$ac_objext conftest$ac_exeext
28280 if { (ac_try="$ac_link"
28281 case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28286 $as_echo "$ac_try_echo") >&5
28287 (eval "$ac_link") 2>conftest.er1
28289 grep -v '^ *+' conftest.er1 >conftest.err
28291 cat conftest.err >&5
28292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } && {
28294 test -z "$ac_c_werror_flag" ||
28295 test ! -s conftest.err
28296 } && test -s conftest$ac_exeext && {
28297 test "$cross_compiling" = yes ||
28298 $as_test_x conftest$ac_exeext
28300 pgac_cv_func_posix_signals=yes
28302 $as_echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28305 pgac_cv_func_posix_signals=no
28308 rm -rf conftest.dSYM
28309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28310 conftest$ac_exeext conftest.$ac_ext
28312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28313 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28314 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28316 cat >>confdefs.h <<\_ACEOF
28317 #define HAVE_POSIX_SIGNALS /**/
28321 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28323 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28324 { { $as_echo "$as_me:$LINENO: error:
28325 Thread-safety requires POSIX signals, which are not supported by this
28326 operating system; use --disable-thread-safety to disable thread safety." >&5
28327 $as_echo "$as_me: error:
28328 Thread-safety requires POSIX signals, which are not supported by this
28329 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28330 { (exit 1); exit 1; }; }
28334 # SunOS doesn't handle negative byte comparisons properly with +/- return
28335 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28336 $as_echo_n "checking for working memcmp... " >&6; }
28337 if test "${ac_cv_func_memcmp_working+set}" = set; then
28338 $as_echo_n "(cached) " >&6
28340 if test "$cross_compiling" = yes; then
28341 ac_cv_func_memcmp_working=no
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28349 $ac_includes_default
28354 /* Some versions of memcmp are not 8-bit clean. */
28355 char c0 = '\100', c1 = '\200', c2 = '\201';
28356 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28359 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28360 or more and with at least one buffer not starting on a 4-byte boundary.
28361 William Lewis provided this test program. */
28366 for (i = 0; i < 4; i++)
28370 strcpy (a, "--------01111111");
28371 strcpy (b, "--------10000000");
28372 if (memcmp (a, b, 16) >= 0)
28382 rm -f conftest$ac_exeext
28383 if { (ac_try="$ac_link"
28384 case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28389 $as_echo "$ac_try_echo") >&5
28390 (eval "$ac_link") 2>&5
28392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28394 { (case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28399 $as_echo "$ac_try_echo") >&5
28400 (eval "$ac_try") 2>&5
28402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); }; }; then
28404 ac_cv_func_memcmp_working=yes
28406 $as_echo "$as_me: program exited with status $ac_status" >&5
28407 $as_echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28410 ( exit $ac_status )
28411 ac_cv_func_memcmp_working=no
28413 rm -rf conftest.dSYM
28414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28419 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28420 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28421 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28422 *" memcmp.$ac_objext "* ) ;;
28423 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28430 # Select semaphore implementation type.
28431 if test "$PORTNAME" != "win32"; then
28432 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28434 cat >>confdefs.h <<\_ACEOF
28435 #define USE_NAMED_POSIX_SEMAPHORES 1
28438 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28440 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28442 cat >>confdefs.h <<\_ACEOF
28443 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28446 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28449 cat >>confdefs.h <<\_ACEOF
28450 #define USE_SYSV_SEMAPHORES 1
28453 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28458 cat >>confdefs.h <<\_ACEOF
28459 #define USE_WIN32_SEMAPHORES 1
28462 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28466 # Select shared-memory implementation type.
28467 if test "$PORTNAME" != "win32"; then
28469 cat >>confdefs.h <<\_ACEOF
28470 #define USE_SYSV_SHARED_MEMORY 1
28473 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28476 cat >>confdefs.h <<\_ACEOF
28477 #define USE_WIN32_SHARED_MEMORY 1
28480 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28483 # Select latch implementation type.
28484 if test "$PORTNAME" != "win32"; then
28485 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28487 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28490 # If not set in template file, set bytes to use libc memset()
28491 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28492 MEMSET_LOOP_LIMIT=1024
28495 cat >>confdefs.h <<_ACEOF
28496 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28501 if test "$enable_nls" = yes ; then
28503 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28504 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28505 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28506 $as_echo_n "(cached) " >&6
28508 ac_func_search_save_LIBS=$LIBS
28509 cat >conftest.$ac_ext <<_ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h. */
28516 /* Override any GCC internal prototype to avoid an error.
28517 Use char because int might match the return type of a GCC
28518 builtin and then its argument prototype would still apply. */
28522 char bind_textdomain_codeset ();
28526 return bind_textdomain_codeset ();
28531 for ac_lib in '' intl; do
28532 if test -z "$ac_lib"; then
28533 ac_res="none required"
28536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28538 rm -f conftest.$ac_objext conftest$ac_exeext
28539 if { (ac_try="$ac_link"
28540 case "(($ac_try" in
28541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542 *) ac_try_echo=$ac_try;;
28544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28545 $as_echo "$ac_try_echo") >&5
28546 (eval "$ac_link") 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } && {
28553 test -z "$ac_c_werror_flag" ||
28554 test ! -s conftest.err
28555 } && test -s conftest$ac_exeext && {
28556 test "$cross_compiling" = yes ||
28557 $as_test_x conftest$ac_exeext
28559 ac_cv_search_bind_textdomain_codeset=$ac_res
28561 $as_echo "$as_me: failed program was:" >&5
28562 sed 's/^/| /' conftest.$ac_ext >&5
28567 rm -rf conftest.dSYM
28568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28570 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28574 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28577 ac_cv_search_bind_textdomain_codeset=no
28579 rm conftest.$ac_ext
28580 LIBS=$ac_func_search_save_LIBS
28582 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28583 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28584 ac_res=$ac_cv_search_bind_textdomain_codeset
28585 if test "$ac_res" != no; then
28586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28589 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28590 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28591 { (exit 1); exit 1; }; }
28594 if test "${ac_cv_header_libintl_h+set}" = set; then
28595 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28596 $as_echo_n "checking for libintl.h... " >&6; }
28597 if test "${ac_cv_header_libintl_h+set}" = set; then
28598 $as_echo_n "(cached) " >&6
28600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28601 $as_echo "$ac_cv_header_libintl_h" >&6; }
28603 # Is the header compilable?
28604 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28605 $as_echo_n "checking libintl.h usability... " >&6; }
28606 cat >conftest.$ac_ext <<_ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h. */
28612 $ac_includes_default
28613 #include <libintl.h>
28615 rm -f conftest.$ac_objext
28616 if { (ac_try="$ac_compile"
28617 case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28622 $as_echo "$ac_try_echo") >&5
28623 (eval "$ac_compile") 2>conftest.er1
28625 grep -v '^ *+' conftest.er1 >conftest.err
28627 cat conftest.err >&5
28628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } && {
28630 test -z "$ac_c_werror_flag" ||
28631 test ! -s conftest.err
28632 } && test -s conftest.$ac_objext; then
28633 ac_header_compiler=yes
28635 $as_echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28638 ac_header_compiler=no
28641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28643 $as_echo "$ac_header_compiler" >&6; }
28645 # Is the header present?
28646 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28647 $as_echo_n "checking libintl.h presence... " >&6; }
28648 cat >conftest.$ac_ext <<_ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h. */
28654 #include <libintl.h>
28656 if { (ac_try="$ac_cpp conftest.$ac_ext"
28657 case "(($ac_try" in
28658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28659 *) ac_try_echo=$ac_try;;
28661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28662 $as_echo "$ac_try_echo") >&5
28663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28665 grep -v '^ *+' conftest.er1 >conftest.err
28667 cat conftest.err >&5
28668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669 (exit $ac_status); } >/dev/null && {
28670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28671 test ! -s conftest.err
28673 ac_header_preproc=yes
28675 $as_echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28678 ac_header_preproc=no
28681 rm -f conftest.err conftest.$ac_ext
28682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28683 $as_echo "$ac_header_preproc" >&6; }
28685 # So? What about this header?
28686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28688 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28689 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28690 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28691 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28692 ac_header_preproc=yes
28695 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28696 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28697 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28698 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28699 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28700 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28701 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28702 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28703 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28704 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28705 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28706 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28708 ## ---------------------------------------- ##
28709 ## Report this to pgsql-bugs@postgresql.org ##
28710 ## ---------------------------------------- ##
28712 ) | sed "s/^/$as_me: WARNING: /" >&2
28715 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28716 $as_echo_n "checking for libintl.h... " >&6; }
28717 if test "${ac_cv_header_libintl_h+set}" = set; then
28718 $as_echo_n "(cached) " >&6
28720 ac_cv_header_libintl_h=$ac_header_preproc
28722 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28723 $as_echo "$ac_cv_header_libintl_h" >&6; }
28726 if test "x$ac_cv_header_libintl_h" = x""yes; then
28729 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28730 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28731 { (exit 1); exit 1; }; }
28735 for ac_prog in msgfmt
28737 # Extract the first word of "$ac_prog", so it can be a program name with args.
28738 set dummy $ac_prog; ac_word=$2
28739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28740 $as_echo_n "checking for $ac_word... " >&6; }
28741 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28742 $as_echo_n "(cached) " >&6
28744 if test -n "$MSGFMT"; then
28745 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28748 for as_dir in $PATH
28751 test -z "$as_dir" && as_dir=.
28752 for ac_exec_ext in '' $ac_executable_extensions; do
28753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28754 ac_cv_prog_MSGFMT="$ac_prog"
28755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28764 MSGFMT=$ac_cv_prog_MSGFMT
28765 if test -n "$MSGFMT"; then
28766 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28767 $as_echo "$MSGFMT" >&6; }
28769 { $as_echo "$as_me:$LINENO: result: no" >&5
28770 $as_echo "no" >&6; }
28774 test -n "$MSGFMT" && break
28777 if test -z "$MSGFMT"; then
28778 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28779 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28780 { (exit 1); exit 1; }; }
28782 for ac_prog in msgmerge
28784 # Extract the first word of "$ac_prog", so it can be a program name with args.
28785 set dummy $ac_prog; ac_word=$2
28786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28787 $as_echo_n "checking for $ac_word... " >&6; }
28788 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28789 $as_echo_n "(cached) " >&6
28791 if test -n "$MSGMERGE"; then
28792 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28795 for as_dir in $PATH
28798 test -z "$as_dir" && as_dir=.
28799 for ac_exec_ext in '' $ac_executable_extensions; do
28800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28801 ac_cv_prog_MSGMERGE="$ac_prog"
28802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28811 MSGMERGE=$ac_cv_prog_MSGMERGE
28812 if test -n "$MSGMERGE"; then
28813 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28814 $as_echo "$MSGMERGE" >&6; }
28816 { $as_echo "$as_me:$LINENO: result: no" >&5
28817 $as_echo "no" >&6; }
28821 test -n "$MSGMERGE" && break
28824 for ac_prog in xgettext
28826 # Extract the first word of "$ac_prog", so it can be a program name with args.
28827 set dummy $ac_prog; ac_word=$2
28828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28829 $as_echo_n "checking for $ac_word... " >&6; }
28830 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28831 $as_echo_n "(cached) " >&6
28833 if test -n "$XGETTEXT"; then
28834 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28837 for as_dir in $PATH
28840 test -z "$as_dir" && as_dir=.
28841 for ac_exec_ext in '' $ac_executable_extensions; do
28842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28843 ac_cv_prog_XGETTEXT="$ac_prog"
28844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28853 XGETTEXT=$ac_cv_prog_XGETTEXT
28854 if test -n "$XGETTEXT"; then
28855 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28856 $as_echo "$XGETTEXT" >&6; }
28858 { $as_echo "$as_me:$LINENO: result: no" >&5
28859 $as_echo "no" >&6; }
28863 test -n "$XGETTEXT" && break
28869 # Check for Tcl configuration script tclConfig.sh
28870 if test "$with_tcl" = yes; then
28871 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28873 # Extract the first word of "$ac_prog", so it can be a program name with args.
28874 set dummy $ac_prog; ac_word=$2
28875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28876 $as_echo_n "checking for $ac_word... " >&6; }
28877 if test "${ac_cv_path_TCLSH+set}" = set; then
28878 $as_echo_n "(cached) " >&6
28882 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28886 for as_dir in $PATH
28889 test -z "$as_dir" && as_dir=.
28890 for ac_exec_ext in '' $ac_executable_extensions; do
28891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28892 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28903 TCLSH=$ac_cv_path_TCLSH
28904 if test -n "$TCLSH"; then
28905 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28906 $as_echo "$TCLSH" >&6; }
28908 { $as_echo "$as_me:$LINENO: result: no" >&5
28909 $as_echo "no" >&6; }
28913 test -n "$TCLSH" && break
28916 if test x"$TCLSH" = x""; then
28917 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28918 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28919 { (exit 1); exit 1; }; }
28922 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28923 $as_echo_n "checking for tclConfig.sh... " >&6; }
28924 # Let user override test
28925 if test -z "$TCL_CONFIG_SH"; then
28926 pgac_test_dirs="$with_tclconfig"
28928 set X $pgac_test_dirs; shift
28929 if test $# -eq 0; then
28930 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28931 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28932 { (exit 1); exit 1; }; }
28933 set X `echo 'puts $auto_path' | $TCLSH`; shift
28937 if test -r "$pgac_dir/tclConfig.sh"; then
28938 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28944 if test -z "$TCL_CONFIG_SH"; then
28945 { $as_echo "$as_me:$LINENO: result: no" >&5
28946 $as_echo "no" >&6; }
28947 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28948 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28949 { (exit 1); exit 1; }; }
28951 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28952 $as_echo "$TCL_CONFIG_SH" >&6; }
28958 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28959 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28960 eval TCL_LIBS=\"$TCL_LIBS\"
28961 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28962 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28964 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28965 ac_save_CPPFLAGS=$CPPFLAGS
28966 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28967 if test "${ac_cv_header_tcl_h+set}" = set; then
28968 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28969 $as_echo_n "checking for tcl.h... " >&6; }
28970 if test "${ac_cv_header_tcl_h+set}" = set; then
28971 $as_echo_n "(cached) " >&6
28973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28974 $as_echo "$ac_cv_header_tcl_h" >&6; }
28976 # Is the header compilable?
28977 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28978 $as_echo_n "checking tcl.h usability... " >&6; }
28979 cat >conftest.$ac_ext <<_ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h. */
28985 $ac_includes_default
28988 rm -f conftest.$ac_objext
28989 if { (ac_try="$ac_compile"
28990 case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28995 $as_echo "$ac_try_echo") >&5
28996 (eval "$ac_compile") 2>conftest.er1
28998 grep -v '^ *+' conftest.er1 >conftest.err
29000 cat conftest.err >&5
29001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } && {
29003 test -z "$ac_c_werror_flag" ||
29004 test ! -s conftest.err
29005 } && test -s conftest.$ac_objext; then
29006 ac_header_compiler=yes
29008 $as_echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_header_compiler=no
29014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29016 $as_echo "$ac_header_compiler" >&6; }
29018 # Is the header present?
29019 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29020 $as_echo_n "checking tcl.h presence... " >&6; }
29021 cat >conftest.$ac_ext <<_ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h. */
29029 if { (ac_try="$ac_cpp conftest.$ac_ext"
29030 case "(($ac_try" in
29031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29032 *) ac_try_echo=$ac_try;;
29034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29035 $as_echo "$ac_try_echo") >&5
29036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29038 grep -v '^ *+' conftest.er1 >conftest.err
29040 cat conftest.err >&5
29041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } >/dev/null && {
29043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29044 test ! -s conftest.err
29046 ac_header_preproc=yes
29048 $as_echo "$as_me: failed program was:" >&5
29049 sed 's/^/| /' conftest.$ac_ext >&5
29051 ac_header_preproc=no
29054 rm -f conftest.err conftest.$ac_ext
29055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29056 $as_echo "$ac_header_preproc" >&6; }
29058 # So? What about this header?
29059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29061 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29062 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29063 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29064 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29065 ac_header_preproc=yes
29068 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29069 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29070 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29071 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29072 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29073 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29074 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29075 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29076 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29077 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29078 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29079 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29081 ## ---------------------------------------- ##
29082 ## Report this to pgsql-bugs@postgresql.org ##
29083 ## ---------------------------------------- ##
29085 ) | sed "s/^/$as_me: WARNING: /" >&2
29088 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29089 $as_echo_n "checking for tcl.h... " >&6; }
29090 if test "${ac_cv_header_tcl_h+set}" = set; then
29091 $as_echo_n "(cached) " >&6
29093 ac_cv_header_tcl_h=$ac_header_preproc
29095 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29096 $as_echo "$ac_cv_header_tcl_h" >&6; }
29099 if test "x$ac_cv_header_tcl_h" = x""yes; then
29102 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29103 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29104 { (exit 1); exit 1; }; }
29108 CPPFLAGS=$ac_save_CPPFLAGS
29111 # check for <Python.h>
29112 if test "$with_python" = yes; then
29113 ac_save_CPPFLAGS=$CPPFLAGS
29114 CPPFLAGS="$python_includespec $CPPFLAGS"
29115 if test "${ac_cv_header_Python_h+set}" = set; then
29116 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29117 $as_echo_n "checking for Python.h... " >&6; }
29118 if test "${ac_cv_header_Python_h+set}" = set; then
29119 $as_echo_n "(cached) " >&6
29121 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29122 $as_echo "$ac_cv_header_Python_h" >&6; }
29124 # Is the header compilable?
29125 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29126 $as_echo_n "checking Python.h usability... " >&6; }
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 $ac_includes_default
29134 #include <Python.h>
29136 rm -f conftest.$ac_objext
29137 if { (ac_try="$ac_compile"
29138 case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29143 $as_echo "$ac_try_echo") >&5
29144 (eval "$ac_compile") 2>conftest.er1
29146 grep -v '^ *+' conftest.er1 >conftest.err
29148 cat conftest.err >&5
29149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } && {
29151 test -z "$ac_c_werror_flag" ||
29152 test ! -s conftest.err
29153 } && test -s conftest.$ac_objext; then
29154 ac_header_compiler=yes
29156 $as_echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29159 ac_header_compiler=no
29162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29164 $as_echo "$ac_header_compiler" >&6; }
29166 # Is the header present?
29167 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29168 $as_echo_n "checking Python.h presence... " >&6; }
29169 cat >conftest.$ac_ext <<_ACEOF
29172 cat confdefs.h >>conftest.$ac_ext
29173 cat >>conftest.$ac_ext <<_ACEOF
29174 /* end confdefs.h. */
29175 #include <Python.h>
29177 if { (ac_try="$ac_cpp conftest.$ac_ext"
29178 case "(($ac_try" in
29179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29180 *) ac_try_echo=$ac_try;;
29182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29183 $as_echo "$ac_try_echo") >&5
29184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29186 grep -v '^ *+' conftest.er1 >conftest.err
29188 cat conftest.err >&5
29189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } >/dev/null && {
29191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29192 test ! -s conftest.err
29194 ac_header_preproc=yes
29196 $as_echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29199 ac_header_preproc=no
29202 rm -f conftest.err conftest.$ac_ext
29203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29204 $as_echo "$ac_header_preproc" >&6; }
29206 # So? What about this header?
29207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29209 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29210 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29211 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29212 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29213 ac_header_preproc=yes
29216 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29217 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29218 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29219 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29220 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29221 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29222 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29223 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29224 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29225 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29226 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29227 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29229 ## ---------------------------------------- ##
29230 ## Report this to pgsql-bugs@postgresql.org ##
29231 ## ---------------------------------------- ##
29233 ) | sed "s/^/$as_me: WARNING: /" >&2
29236 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29237 $as_echo_n "checking for Python.h... " >&6; }
29238 if test "${ac_cv_header_Python_h+set}" = set; then
29239 $as_echo_n "(cached) " >&6
29241 ac_cv_header_Python_h=$ac_header_preproc
29243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29244 $as_echo "$ac_cv_header_Python_h" >&6; }
29247 if test "x$ac_cv_header_Python_h" = x""yes; then
29250 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29251 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29252 { (exit 1); exit 1; }; }
29256 CPPFLAGS=$ac_save_CPPFLAGS
29260 # Check for DocBook and tools
29262 for ac_prog in onsgmls nsgmls
29264 # Extract the first word of "$ac_prog", so it can be a program name with args.
29265 set dummy $ac_prog; ac_word=$2
29266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29267 $as_echo_n "checking for $ac_word... " >&6; }
29268 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29269 $as_echo_n "(cached) " >&6
29271 if test -n "$NSGMLS"; then
29272 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29275 for as_dir in $PATH
29278 test -z "$as_dir" && as_dir=.
29279 for ac_exec_ext in '' $ac_executable_extensions; do
29280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29281 ac_cv_prog_NSGMLS="$ac_prog"
29282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29291 NSGMLS=$ac_cv_prog_NSGMLS
29292 if test -n "$NSGMLS"; then
29293 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29294 $as_echo "$NSGMLS" >&6; }
29296 { $as_echo "$as_me:$LINENO: result: no" >&5
29297 $as_echo "no" >&6; }
29301 test -n "$NSGMLS" && break
29304 for ac_prog in openjade jade
29306 # Extract the first word of "$ac_prog", so it can be a program name with args.
29307 set dummy $ac_prog; ac_word=$2
29308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29309 $as_echo_n "checking for $ac_word... " >&6; }
29310 if test "${ac_cv_prog_JADE+set}" = set; then
29311 $as_echo_n "(cached) " >&6
29313 if test -n "$JADE"; then
29314 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29317 for as_dir in $PATH
29320 test -z "$as_dir" && as_dir=.
29321 for ac_exec_ext in '' $ac_executable_extensions; do
29322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29323 ac_cv_prog_JADE="$ac_prog"
29324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29333 JADE=$ac_cv_prog_JADE
29334 if test -n "$JADE"; then
29335 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29336 $as_echo "$JADE" >&6; }
29338 { $as_echo "$as_me:$LINENO: result: no" >&5
29339 $as_echo "no" >&6; }
29343 test -n "$JADE" && break
29347 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29348 $as_echo_n "checking for DocBook V4.2... " >&6; }
29349 if test "${pgac_cv_check_docbook+set}" = set; then
29350 $as_echo_n "(cached) " >&6
29352 cat >conftest.sgml <<EOF
29353 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29355 <title>test</title>
29357 <title>random</title>
29359 <title>testsect</title>
29366 pgac_cv_check_docbook=no
29368 if test -n "$NSGMLS"; then
29369 $NSGMLS -s conftest.sgml 1>&5 2>&1
29370 if test $? -eq 0; then
29371 pgac_cv_check_docbook=yes
29374 rm -f conftest.sgml
29376 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29377 $as_echo "$pgac_cv_check_docbook" >&6; }
29379 have_docbook=$pgac_cv_check_docbook
29382 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29383 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29384 if test "${pgac_cv_path_stylesheets+set}" = set; then
29385 $as_echo_n "(cached) " >&6
29387 if test -n "$DOCBOOKSTYLE"; then
29388 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29390 for pgac_prefix in /usr /usr/local /opt /sw; do
29391 for pgac_infix in share lib; do
29392 for pgac_postfix in \
29393 sgml/stylesheets/nwalsh-modular \
29394 sgml/stylesheets/docbook \
29395 sgml/stylesheets/dsssl/docbook \
29396 sgml/docbook-dsssl \
29397 sgml/docbook/dsssl/modular \
29398 sgml/docbook/stylesheet/dsssl/modular \
29399 sgml/docbook/dsssl-stylesheets \
29400 sgml/dsssl/docbook-dsssl-nwalsh
29402 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29403 if test -r "$pgac_candidate/html/docbook.dsl" \
29404 && test -r "$pgac_candidate/print/docbook.dsl"
29406 pgac_cv_path_stylesheets=$pgac_candidate
29415 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29417 if test -n "$DOCBOOKSTYLE"; then
29418 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29419 $as_echo "$DOCBOOKSTYLE" >&6; }
29421 { $as_echo "$as_me:$LINENO: result: no" >&5
29422 $as_echo "no" >&6; }
29424 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29425 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29428 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29429 set dummy collateindex.pl; ac_word=$2
29430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29431 $as_echo_n "checking for $ac_word... " >&6; }
29432 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29433 $as_echo_n "(cached) " >&6
29435 case $COLLATEINDEX in
29437 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29441 for as_dir in $PATH
29444 test -z "$as_dir" && as_dir=.
29445 for ac_exec_ext in '' $ac_executable_extensions; do
29446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29447 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29458 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29459 if test -n "$COLLATEINDEX"; then
29460 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29461 $as_echo "$COLLATEINDEX" >&6; }
29463 { $as_echo "$as_me:$LINENO: result: no" >&5
29464 $as_echo "no" >&6; }
29469 for ac_prog in xsltproc
29471 # Extract the first word of "$ac_prog", so it can be a program name with args.
29472 set dummy $ac_prog; ac_word=$2
29473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29474 $as_echo_n "checking for $ac_word... " >&6; }
29475 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29476 $as_echo_n "(cached) " >&6
29478 if test -n "$XSLTPROC"; then
29479 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29482 for as_dir in $PATH
29485 test -z "$as_dir" && as_dir=.
29486 for ac_exec_ext in '' $ac_executable_extensions; do
29487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29488 ac_cv_prog_XSLTPROC="$ac_prog"
29489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29498 XSLTPROC=$ac_cv_prog_XSLTPROC
29499 if test -n "$XSLTPROC"; then
29500 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29501 $as_echo "$XSLTPROC" >&6; }
29503 { $as_echo "$as_me:$LINENO: result: no" >&5
29504 $as_echo "no" >&6; }
29508 test -n "$XSLTPROC" && break
29511 for ac_prog in osx sgml2xml sx
29513 # Extract the first word of "$ac_prog", so it can be a program name with args.
29514 set dummy $ac_prog; ac_word=$2
29515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29516 $as_echo_n "checking for $ac_word... " >&6; }
29517 if test "${ac_cv_prog_OSX+set}" = set; then
29518 $as_echo_n "(cached) " >&6
29520 if test -n "$OSX"; then
29521 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29524 for as_dir in $PATH
29527 test -z "$as_dir" && as_dir=.
29528 for ac_exec_ext in '' $ac_executable_extensions; do
29529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29530 ac_cv_prog_OSX="$ac_prog"
29531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29540 OSX=$ac_cv_prog_OSX
29541 if test -n "$OSX"; then
29542 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29543 $as_echo "$OSX" >&6; }
29545 { $as_echo "$as_me:$LINENO: result: no" >&5
29546 $as_echo "no" >&6; }
29550 test -n "$OSX" && break
29556 # We have to run the thread test near the end so we have all our symbols
29557 # defined. Cross compiling throws a warning.
29559 if test "$enable_thread_safety" = yes; then
29560 if test "$PORTNAME" != "win32"
29562 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29563 $as_echo_n "checking thread safety of required library functions... " >&6; }
29567 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29568 LIBS="$LIBS $PTHREAD_LIBS"
29569 if test "$cross_compiling" = yes; then
29570 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29571 $as_echo "maybe" >&6; }
29572 { $as_echo "$as_me:$LINENO: WARNING:
29573 *** Skipping thread test program because of cross-compile build.
29574 *** Run the program in src/test/thread on the target machine.
29576 $as_echo "$as_me: WARNING:
29577 *** Skipping thread test program because of cross-compile build.
29578 *** Run the program in src/test/thread on the target machine.
29581 cat >conftest.$ac_ext <<_ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h. */
29587 #include "$srcdir/src/test/thread/thread_test.c"
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 { $as_echo "$as_me:$LINENO: result: yes" >&5
29612 $as_echo "yes" >&6; }
29614 $as_echo "$as_me: program exited with status $ac_status" >&5
29615 $as_echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29618 ( exit $ac_status )
29619 { $as_echo "$as_me:$LINENO: result: no" >&5
29620 $as_echo "no" >&6; }
29621 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29622 This platform is not thread-safe. Check the file 'config.log' or compile
29623 and run src/test/thread/thread_test for the exact reason.
29624 Use --disable-thread-safety to disable thread safety." >&5
29625 $as_echo "$as_me: error: thread test program failed
29626 This platform is not thread-safe. Check the file 'config.log' or compile
29627 and run src/test/thread/thread_test for the exact reason.
29628 Use --disable-thread-safety to disable thread safety." >&2;}
29629 { (exit 1); exit 1; }; }
29631 rm -rf conftest.dSYM
29632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29639 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29640 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29644 # If compiler will take -Wl,--as-needed (or various platform-specific
29645 # spellings thereof) then add that to LDFLAGS. This is much easier than
29646 # trying to filter LIBS to the minimum for each executable.
29647 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29648 # libreadline; therefore we postpone testing it until we know what library
29649 # dependencies readline has. The test code will try to link with $LIBS.
29650 if test "$with_readline" = yes; then
29651 link_test_func=readline
29653 link_test_func=exit
29656 if test "$PORTNAME" = "darwin"; then
29657 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29658 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29659 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29660 $as_echo_n "(cached) " >&6
29662 pgac_save_LDFLAGS=$LDFLAGS
29663 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29664 if test "$cross_compiling" = yes; then
29665 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29673 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29682 rm -f conftest$ac_exeext
29683 if { (ac_try="$ac_link"
29684 case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29689 $as_echo "$ac_try_echo") >&5
29690 (eval "$ac_link") 2>&5
29692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29694 { (case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29699 $as_echo "$ac_try_echo") >&5
29700 (eval "$ac_try") 2>&5
29702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
29704 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29706 $as_echo "$as_me: program exited with status $ac_status" >&5
29707 $as_echo "$as_me: failed program was:" >&5
29708 sed 's/^/| /' conftest.$ac_ext >&5
29710 ( exit $ac_status )
29711 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29713 rm -rf conftest.dSYM
29714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29718 LDFLAGS="$pgac_save_LDFLAGS"
29720 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29721 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29722 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29723 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29726 elif test "$PORTNAME" = "openbsd"; then
29727 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29728 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29729 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29730 $as_echo_n "(cached) " >&6
29732 pgac_save_LDFLAGS=$LDFLAGS
29733 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29734 if test "$cross_compiling" = yes; then
29735 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29737 cat >conftest.$ac_ext <<_ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h. */
29743 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29752 rm -f conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29759 $as_echo "$ac_try_echo") >&5
29760 (eval "$ac_link") 2>&5
29762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29764 { (case "(($ac_try" in
29765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29766 *) ac_try_echo=$ac_try;;
29768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29769 $as_echo "$ac_try_echo") >&5
29770 (eval "$ac_try") 2>&5
29772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29776 $as_echo "$as_me: program exited with status $ac_status" >&5
29777 $as_echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29780 ( exit $ac_status )
29781 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29783 rm -rf conftest.dSYM
29784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29788 LDFLAGS="$pgac_save_LDFLAGS"
29790 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29791 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29792 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29793 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29797 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29798 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29799 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29800 $as_echo_n "(cached) " >&6
29802 pgac_save_LDFLAGS=$LDFLAGS
29803 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29804 if test "$cross_compiling" = yes; then
29805 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29807 cat >conftest.$ac_ext <<_ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h. */
29813 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29822 rm -f conftest$ac_exeext
29823 if { (ac_try="$ac_link"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29829 $as_echo "$ac_try_echo") >&5
29830 (eval "$ac_link") 2>&5
29832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29834 { (case "(($ac_try" in
29835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836 *) ac_try_echo=$ac_try;;
29838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29839 $as_echo "$ac_try_echo") >&5
29840 (eval "$ac_try") 2>&5
29842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); }; }; then
29844 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29846 $as_echo "$as_me: program exited with status $ac_status" >&5
29847 $as_echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29850 ( exit $ac_status )
29851 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29853 rm -rf conftest.dSYM
29854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29858 LDFLAGS="$pgac_save_LDFLAGS"
29860 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29861 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29862 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29863 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29868 # Create compiler version string
29869 if test x"$GCC" = x"yes" ; then
29870 cc_string=`${CC} --version | sed q`
29871 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29872 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29873 cc_string=`${CC} -V 2>&1 | sed q`
29879 cat >>confdefs.h <<_ACEOF
29880 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29884 # Supply a numeric version string for use by 3rd party add-ons
29885 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29886 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29888 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29890 cat >>confdefs.h <<_ACEOF
29891 #define PG_VERSION_NUM $PG_VERSION_NUM
29896 # Begin output steps
29898 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29899 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29900 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29901 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29902 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29903 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29904 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29905 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29907 # prepare build tree if outside source tree
29908 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29909 # Note 2: /bin/pwd might be better than shell's built-in at getting
29910 # a symlink-free name.
29911 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29915 if test "$no_create" != yes; then
29916 $as_echo_n "preparing build tree... " >&6
29917 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29918 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29919 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29920 $as_echo "$as_me: error: failed" >&2;}
29921 { (exit 1); exit 1; }; }
29922 { $as_echo "$as_me:$LINENO: result: done" >&5
29923 $as_echo "done" >&6; }
29929 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29932 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}"
29935 if test "$PORTNAME" = "win32"; then
29936 ac_config_commands="$ac_config_commands check_win32_symlinks"
29940 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29943 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
29946 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29949 cat >confcache <<\_ACEOF
29950 # This file is a shell script that caches the results of configure
29951 # tests run on this system so they can be shared between configure
29952 # scripts and configure runs, see configure's option --config-cache.
29953 # It is not useful on other systems. If it contains results you don't
29954 # want to keep, you may remove or edit it.
29956 # config.status only pays attention to the cache file if you give it
29957 # the --recheck option to rerun configure.
29959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29961 # following values.
29965 # The following way of writing the cache mishandles newlines in values,
29966 # but we know of no workaround that is simple, portable, and efficient.
29967 # So, we kill variables containing newlines.
29968 # Ultrix sh set writes to stderr and can't be redirected directly,
29969 # and sets the high bit in the cache file unless we assign to the vars.
29971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29972 eval ac_val=\$$ac_var
29976 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29980 _ | IFS | as_nl) ;; #(
29981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29982 *) $as_unset $ac_var ;;
29988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29989 *${as_nl}ac_space=\ *)
29990 # `set' does not quote correctly, so add quotes (double-quote
29991 # substitution turns \\\\ into \\, and sed turns \\ into \).
29994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29997 # `set' quotes correctly as required by POSIX, so do not add quotes.
29998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30012 if test -w "$cache_file"; then
30013 test "x$cache_file" != "x/dev/null" &&
30014 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30015 $as_echo "$as_me: updating cache $cache_file" >&6;}
30016 cat confcache >$cache_file
30018 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30019 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30024 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30025 # Let make expand exec_prefix.
30026 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30028 DEFS=-DHAVE_CONFIG_H
30032 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30033 # 1. Remove the extension, and $U if already installed.
30034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30035 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30037 # will be set to the directory where LIBOBJS objects are built.
30038 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30039 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30041 LIBOBJS=$ac_libobjs
30043 LTLIBOBJS=$ac_ltlibobjs
30048 : ${CONFIG_STATUS=./config.status}
30050 ac_clean_files_save=$ac_clean_files
30051 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30052 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30053 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30054 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30056 # Generated by $as_me.
30057 # Run this file to recreate the current configuration.
30058 # Compiler output produced by configure, useful for debugging
30059 # configure, is in config.log if it exists.
30062 ac_cs_recheck=false
30064 SHELL=\${CONFIG_SHELL-$SHELL}
30067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30068 ## --------------------- ##
30069 ## M4sh Initialization. ##
30070 ## --------------------- ##
30072 # Be more Bourne compatible
30073 DUALCASE=1; export DUALCASE # for MKS sh
30074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30077 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30078 # is contrary to our usage. Disable this feature.
30079 alias -g '${1+"$@"}'='"$@"'
30080 setopt NO_GLOB_SUBST
30082 case `(set -o) 2>/dev/null` in
30083 *posix*) set -o posix ;;
30092 # Avoid depending upon Character Ranges.
30093 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30094 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30095 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30096 as_cr_digits='0123456789'
30097 as_cr_alnum=$as_cr_Letters$as_cr_digits
30102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30103 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30106 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30107 as_echo='printf %s\n'
30108 as_echo_n='printf %s'
30110 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30111 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30112 as_echo_n='/usr/ucb/echo -n'
30114 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30115 as_echo_n_body='eval
30119 expr "X$arg" : "X\\(.*\\)$as_nl";
30120 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30122 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30124 export as_echo_n_body
30125 as_echo_n='sh -c $as_echo_n_body as_echo'
30127 export as_echo_body
30128 as_echo='sh -c $as_echo_body as_echo'
30131 # The user is always right.
30132 if test "${PATH_SEPARATOR+set}" != set; then
30134 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30135 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30140 # Support unset when possible.
30141 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30149 # We need space, tab and new line, in precisely that order. Quoting is
30150 # there to prevent editors from complaining about space-tab.
30151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30152 # splitting by setting IFS to empty value.)
30155 # Find who we are. Look in the path if we contain no directory separator.
30157 *[\\/]* ) as_myself=$0 ;;
30158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30159 for as_dir in $PATH
30162 test -z "$as_dir" && as_dir=.
30163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30169 # We did not find ourselves, most probably we were run as `sh COMMAND'
30170 # in which case we are not to be found in the path.
30171 if test "x$as_myself" = x; then
30174 if test ! -f "$as_myself"; then
30175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30176 { (exit 1); exit 1; }
30179 # Work around bugs in pre-3.0 UWIN ksh.
30180 for as_var in ENV MAIL MAILPATH
30181 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30193 # Required to use basename.
30194 if expr a : '\(a\)' >/dev/null 2>&1 &&
30195 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30202 as_basename=basename
30208 # Name of the executable.
30209 as_me=`$as_basename -- "$0" ||
30210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30211 X"$0" : 'X\(//\)$' \| \
30212 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30214 sed '/^.*\/\([^/][^/]*\)\/*$/{
30233 as_lineno_1=$LINENO
30234 as_lineno_2=$LINENO
30235 test "x$as_lineno_1" != "x$as_lineno_2" &&
30236 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30238 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30239 # uniformly replaced by the line number. The first 'sed' inserts a
30240 # line-number line after each line using $LINENO; the second 'sed'
30241 # does the real work. The second script uses 'N' to pair each
30242 # line-number line with the line containing $LINENO, and appends
30243 # trailing '-' during substitution so that $LINENO is not a special
30244 # case at line end.
30245 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30246 # scripts with optimization help from Paolo Bonzini. Blame Lee
30247 # E. McMahon (1931-1989) for sed's syntax. :-)
30259 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30262 ' >$as_me.lineno &&
30263 chmod +x "$as_me.lineno" ||
30264 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30265 { (exit 1); exit 1; }; }
30267 # Don't try to exec as it changes $[0], causing all sort of problems
30268 # (the dirname of $[0] is not the place where we might find the
30269 # original and so on. Autoconf is especially sensitive to this).
30270 . "./$as_me.lineno"
30271 # Exit status is that of the last command.
30276 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30282 ECHO_C= ECHO_N= ECHO_T=
30283 case `echo -n x` in
30285 case `echo 'x\c'` in
30286 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30292 if expr a : '\(a\)' >/dev/null 2>&1 &&
30293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30299 rm -f conf$$ conf$$.exe conf$$.file
30300 if test -d conf$$.dir; then
30301 rm -f conf$$.dir/conf$$.file
30304 mkdir conf$$.dir 2>/dev/null
30306 if (echo >conf$$.file) 2>/dev/null; then
30307 if ln -s conf$$.file conf$$ 2>/dev/null; then
30309 # ... but there are two gotchas:
30310 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30311 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30312 # In both cases, we have to default to `cp -p'.
30313 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30315 elif ln conf$$.file conf$$ 2>/dev/null; then
30323 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30324 rmdir conf$$.dir 2>/dev/null
30326 if mkdir -p . 2>/dev/null; then
30329 test -d ./-p && rmdir ./-p
30333 if test -x / >/dev/null 2>&1; then
30334 as_test_x='test -x'
30336 if ls -dL / >/dev/null 2>&1; then
30343 if test -d "$1"; then
30349 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30350 ???[sx]*):;;*)false;;esac;fi
30354 as_executable_p=$as_test_x
30356 # Sed expression to map a string onto a valid CPP name.
30357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30359 # Sed expression to map a string onto a valid variable name.
30360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30365 # Save the log message, to keep $[0] and so on meaningful, and to
30366 # report actual input values of CONFIG_FILES etc. instead of their
30367 # values after options handling.
30369 This file was extended by PostgreSQL $as_me 9.3devel, which was
30370 generated by GNU Autoconf 2.63. Invocation command line was
30372 CONFIG_FILES = $CONFIG_FILES
30373 CONFIG_HEADERS = $CONFIG_HEADERS
30374 CONFIG_LINKS = $CONFIG_LINKS
30375 CONFIG_COMMANDS = $CONFIG_COMMANDS
30378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30383 case $ac_config_files in *"
30384 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30387 case $ac_config_headers in *"
30388 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30393 # Files that config.status was made for.
30394 config_files="$ac_config_files"
30395 config_headers="$ac_config_headers"
30396 config_links="$ac_config_links"
30397 config_commands="$ac_config_commands"
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30403 \`$as_me' instantiates files from templates according to the
30404 current configuration.
30406 Usage: $0 [OPTION]... [FILE]...
30408 -h, --help print this help, then exit
30409 -V, --version print version number and configuration settings, then exit
30410 -q, --quiet, --silent
30411 do not print progress messages
30412 -d, --debug don't remove temporary files
30413 --recheck update $as_me by reconfiguring in the same conditions
30414 --file=FILE[:TEMPLATE]
30415 instantiate the configuration file FILE
30416 --header=FILE[:TEMPLATE]
30417 instantiate the configuration header FILE
30419 Configuration files:
30422 Configuration headers:
30425 Configuration links:
30428 Configuration commands:
30431 Report bugs to <bug-autoconf@gnu.org>."
30434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30436 PostgreSQL config.status 9.3devel
30437 configured by $0, generated by GNU Autoconf 2.63,
30438 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30440 Copyright (C) 2008 Free Software Foundation, Inc.
30441 This config.status script is free software; the Free Software Foundation
30442 gives unlimited permission to copy, distribute and modify it."
30449 test -n "\$AWK" || AWK=awk
30452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30453 # The default lists apply if the user does not specify any file.
30459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30460 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30471 # Handling of the options.
30472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30474 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30475 $as_echo "$ac_cs_version"; exit ;;
30476 --debug | --debu | --deb | --de | --d | -d )
30478 --file | --fil | --fi | --f )
30481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30483 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30484 ac_need_defaults=false;;
30485 --header | --heade | --head | --hea )
30488 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30490 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30491 ac_need_defaults=false;;
30493 # Conflict between --help and --header
30494 { $as_echo "$as_me: error: ambiguous option: $1
30495 Try \`$0 --help' for more information." >&2
30496 { (exit 1); exit 1; }; };;
30497 --help | --hel | -h )
30498 $as_echo "$ac_cs_usage"; exit ;;
30499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30500 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30503 # This is an error.
30504 -*) { $as_echo "$as_me: error: unrecognized option: $1
30505 Try \`$0 --help' for more information." >&2
30506 { (exit 1); exit 1; }; } ;;
30508 *) ac_config_targets="$ac_config_targets $1"
30509 ac_need_defaults=false ;;
30515 ac_configure_extra_args=
30517 if $ac_cs_silent; then
30519 ac_configure_extra_args="$ac_configure_extra_args --silent"
30523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30524 if \$ac_cs_recheck; then
30525 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30527 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30528 CONFIG_SHELL='$SHELL'
30529 export CONFIG_SHELL
30534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30539 ## Running $as_me. ##
30545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30550 # Handling of arguments.
30551 for ac_config_target in $ac_config_targets
30553 case $ac_config_target in
30554 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30555 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30556 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30557 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30558 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30559 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30560 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30561 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30562 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30563 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30564 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30565 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30566 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
30567 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30569 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30570 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30571 { (exit 1); exit 1; }; };;
30576 # If the user did not use the arguments to specify the items to instantiate,
30577 # then the envvar interface is used. Set only those that are not.
30578 # We use the long form for the default assignment because of an extremely
30579 # bizarre bug on SunOS 4.1.3.
30580 if $ac_need_defaults; then
30581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30583 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30584 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30587 # Have a temporary directory for convenience. Make it in the build tree
30588 # simply because there is no reason against having it here, and in addition,
30589 # creating and moving files from /tmp can sometimes cause problems.
30590 # Hook for its removal unless debugging.
30591 # Note that there is a small window in which the directory will not be cleaned:
30592 # after its creation but before its name has been assigned to `$tmp'.
30596 trap 'exit_status=$?
30597 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30599 trap '{ (exit 1); exit 1; }' 1 2 13 15
30601 # Create a (secure) tmp directory for tmp files.
30604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30605 test -n "$tmp" && test -d "$tmp"
30608 tmp=./conf$$-$RANDOM
30609 (umask 077 && mkdir "$tmp")
30612 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30613 { (exit 1); exit 1; }
30616 # Set up the scripts for CONFIG_FILES section.
30617 # No need to generate them if there are no CONFIG_FILES.
30618 # This happens for instance with `./config.status config.h'.
30619 if test -n "$CONFIG_FILES"; then
30623 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30624 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30627 ac_cs_awk_cr=$ac_cr
30630 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30635 echo "cat >conf$$subs.awk <<_ACEOF" &&
30636 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30638 } >conf$$subs.sh ||
30639 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30640 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30641 { (exit 1); exit 1; }; }
30642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30644 for ac_last_try in false false false false false :; do
30645 . ./conf$$subs.sh ||
30646 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30647 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30648 { (exit 1); exit 1; }; }
30650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30651 if test $ac_delim_n = $ac_delim_num; then
30653 elif $ac_last_try; then
30654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30655 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30656 { (exit 1); exit 1; }; }
30658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30661 rm -f conf$$subs.sh
30663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30664 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30668 s/^/S["/; s/!.*/"]=/
30678 s/\(.\{148\}\).*/\1/
30680 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30692 s/\(.\{148\}\).*/\1/
30694 s/["\\]/\\&/g; s/^/"/; s/$/"/
30698 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30703 ' <conf$$subs.awk | sed '
30708 ' >>$CONFIG_STATUS || ac_write_fail=1
30709 rm -f conf$$subs.awk
30710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30712 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30713 for (key in S) S_is_set[key] = 1
30719 nfields = split(line, field, "@")
30721 len = length(field[1])
30722 for (i = 2; i < nfields; i++) {
30724 keylen = length(key)
30725 if (S_is_set[key]) {
30727 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30728 len += length(value) + length(field[++i])
30739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30740 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30741 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30744 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30745 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30746 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30747 { (exit 1); exit 1; }; }
30750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30752 # trailing colons and then remove the whole line if VPATH becomes empty
30753 # (actually we leave an empty line to preserve line numbers).
30754 if test "x$srcdir" = x.; then
30755 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30756 s/:*\$(srcdir):*/:/
30757 s/:*\${srcdir}:*/:/
30759 s/^\([^=]*=[ ]*\):*/\1/
30765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30766 fi # test -n "$CONFIG_FILES"
30768 # Set up the scripts for CONFIG_HEADERS section.
30769 # No need to generate them if there are no CONFIG_HEADERS.
30770 # This happens for instance with `./config.status Makefile'.
30771 if test -n "$CONFIG_HEADERS"; then
30772 cat >"$tmp/defines.awk" <<\_ACAWK ||
30776 # Transform confdefs.h into an awk script `defines.awk', embedded as
30777 # here-document in config.status, that substitutes the proper values into
30778 # config.h.in to produce config.h.
30780 # Create a delimiter string that does not exist in confdefs.h, to ease
30781 # handling of long lines.
30783 for ac_last_try in false false :; do
30784 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30785 if test -z "$ac_t"; then
30787 elif $ac_last_try; then
30788 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30789 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30790 { (exit 1); exit 1; }; }
30792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30796 # For the awk script, D is an array of macro values keyed by name,
30797 # likewise P contains macro parameters if any. Preserve backslash
30798 # newline sequences.
30800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30802 s/.\{148\}/&'"$ac_delim"'/g
30805 s/^[ ]*#[ ]*define[ ][ ]*/ /
30812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30819 D["\1"]=" \3\\\\\\n"\\/p
30821 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30826 s/.\{148\}/&'"$ac_delim"'/g
30831 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30834 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30836 ' <confdefs.h | sed '
30837 s/'"$ac_delim"'/"\\\
30838 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30841 for (key in D) D_is_set[key] = 1
30844 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30846 split(line, arg, " ")
30847 if (arg[1] == "#") {
30851 defundef = substr(arg[1], 2)
30854 split(mac1, mac2, "(") #)
30856 prefix = substr(line, 1, index(line, defundef) - 1)
30857 if (D_is_set[macro]) {
30858 # Preserve the white space surrounding the "#".
30859 print prefix "define", macro P[macro] D[macro]
30862 # Replace #undef with comments. This is necessary, for example,
30863 # in the case of _POSIX_SOURCE, which is predefined and required
30864 # on some systems where configure will not decide to define it.
30865 if (defundef == "undef") {
30866 print "/*", prefix defundef, macro, "*/"
30874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30875 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30876 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30877 { (exit 1); exit 1; }; }
30878 fi # test -n "$CONFIG_HEADERS"
30881 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30886 :[FHLC]) ac_mode=$ac_tag; continue;;
30888 case $ac_mode$ac_tag in
30890 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30891 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30892 { (exit 1); exit 1; }; };;
30893 :[FH]-) ac_tag=-:-;;
30894 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30911 -) ac_f="$tmp/stdin";;
30912 *) # Look for the file first in the build tree, then in the source tree
30913 # (if the path is not absolute). The absolute path cannot be DOS-style,
30914 # because $ac_f cannot contain `:'.
30918 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30920 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30921 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30922 { (exit 1); exit 1; }; };;
30924 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30925 ac_file_inputs="$ac_file_inputs '$ac_f'"
30928 # Let's still pretend it is `configure' which instantiates (i.e., don't
30929 # use $as_me), people would be surprised to read:
30930 # /* config.h. Generated by config.status. */
30931 configure_input='Generated from '`
30932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30934 if test x"$ac_file" != x-; then
30935 configure_input="$ac_file. $configure_input"
30936 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30937 $as_echo "$as_me: creating $ac_file" >&6;}
30939 # Neutralize special characters interpreted by sed in replacement strings.
30940 case $configure_input in #(
30941 *\&* | *\|* | *\\* )
30942 ac_sed_conf_input=`$as_echo "$configure_input" |
30943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30944 *) ac_sed_conf_input=$configure_input;;
30948 *:-:* | *:-) cat >"$tmp/stdin" \
30949 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30950 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30951 { (exit 1); exit 1; }; } ;;
30956 ac_dir=`$as_dirname -- "$ac_file" ||
30957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30958 X"$ac_file" : 'X\(//\)[^/]' \| \
30959 X"$ac_file" : 'X\(//\)$' \| \
30960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30961 $as_echo X"$ac_file" |
30962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30966 /^X\(\/\/\)[^/].*/{
30981 -*) as_dir=./$as_dir;;
30983 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30988 *) as_qdir=$as_dir;;
30990 as_dirs="'$as_qdir' $as_dirs"
30991 as_dir=`$as_dirname -- "$as_dir" ||
30992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30993 X"$as_dir" : 'X\(//\)[^/]' \| \
30994 X"$as_dir" : 'X\(//\)$' \| \
30995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30996 $as_echo X"$as_dir" |
30997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31001 /^X\(\/\/\)[^/].*/{
31014 test -d "$as_dir" && break
31016 test -z "$as_dirs" || eval "mkdir $as_dirs"
31017 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31018 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31019 { (exit 1); exit 1; }; }; }
31023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31026 # A ".." for each directory in $ac_dir_suffix.
31027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31028 case $ac_top_builddir_sub in
31029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31033 ac_abs_top_builddir=$ac_pwd
31034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31035 # for backward compatibility:
31036 ac_top_builddir=$ac_top_build_prefix
31039 .) # We are building in place.
31041 ac_top_srcdir=$ac_top_builddir_sub
31042 ac_abs_top_srcdir=$ac_pwd ;;
31043 [\\/]* | ?:[\\/]* ) # Absolute name.
31044 ac_srcdir=$srcdir$ac_dir_suffix;
31045 ac_top_srcdir=$srcdir
31046 ac_abs_top_srcdir=$srcdir ;;
31047 *) # Relative name.
31048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31049 ac_top_srcdir=$ac_top_build_prefix$srcdir
31050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31065 ac_MKDIR_P=$MKDIR_P
31067 [\\/$]* | ?:[\\/]* ) ;;
31068 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31073 # If the template does not know about datarootdir, expand it.
31074 # FIXME: This hack should be removed a few years after 2.60.
31075 ac_datarootdir_hack=; ac_datarootdir_seen=
31088 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31089 *datarootdir*) ac_datarootdir_seen=yes;;
31090 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31091 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31092 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31095 ac_datarootdir_hack='
31096 s&@datadir@&$datadir&g
31097 s&@docdir@&$docdir&g
31098 s&@infodir@&$infodir&g
31099 s&@localedir@&$localedir&g
31100 s&@mandir@&$mandir&g
31101 s&\\\${datarootdir}&$datarootdir&g' ;;
31105 # Neutralize VPATH when `$srcdir' = `.'.
31106 # Shell code in configure.ac might set extrasub.
31107 # FIXME: do we really want to maintain this feature?
31108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31109 ac_sed_extra="$ac_vpsub
31112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31115 s|@configure_input@|$ac_sed_conf_input|;t t
31116 s&@top_builddir@&$ac_top_builddir_sub&;t t
31117 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31118 s&@srcdir@&$ac_srcdir&;t t
31119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31120 s&@top_srcdir@&$ac_top_srcdir&;t t
31121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31122 s&@builddir@&$ac_builddir&;t t
31123 s&@abs_builddir@&$ac_abs_builddir&;t t
31124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31125 s&@INSTALL@&$ac_INSTALL&;t t
31126 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31127 $ac_datarootdir_hack
31129 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31130 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31131 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31132 { (exit 1); exit 1; }; }
31134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31135 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31137 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31138 which seems to be undefined. Please make sure it is defined." >&5
31139 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31140 which seems to be undefined. Please make sure it is defined." >&2;}
31144 -) cat "$tmp/out" && rm -f "$tmp/out";;
31145 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31147 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31148 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31149 { (exit 1); exit 1; }; }
31155 if test x"$ac_file" != x-; then
31157 $as_echo "/* $configure_input */" \
31158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31159 } >"$tmp/config.h" \
31160 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31161 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31162 { (exit 1); exit 1; }; }
31163 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31164 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31165 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31168 mv "$tmp/config.h" "$ac_file" \
31169 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31170 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31171 { (exit 1); exit 1; }; }
31174 $as_echo "/* $configure_input */" \
31175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31176 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31177 $as_echo "$as_me: error: could not create -" >&2;}
31178 { (exit 1); exit 1; }; }
31186 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31189 # Prefer the file from the source tree if names are identical.
31190 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31191 ac_source=$srcdir/$ac_source
31194 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31195 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31197 if test ! -r "$ac_source"; then
31198 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31199 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31200 { (exit 1); exit 1; }; }
31204 # Try a relative symlink, then a hard link, then a copy.
31206 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31207 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31209 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31210 ln "$ac_source" "$ac_file" 2>/dev/null ||
31211 cp -p "$ac_source" "$ac_file" ||
31212 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31213 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31214 { (exit 1); exit 1; }; }
31217 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31218 $as_echo "$as_me: executing $ac_file commands" >&6;}
31223 case $ac_file$ac_mode in
31224 "check_win32_symlinks":C)
31225 # Links sometimes fail undetected on Mingw -
31226 # so here we detect it and warn the user
31227 for FILE in $CONFIG_LINKS
31229 # test -e works for symlinks in the MinGW console
31230 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31231 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31234 "src/include/pg_config.h":H)
31235 # Update timestamp for pg_config.h (see Makefile.global)
31236 echo >src/include/stamp-h
31238 "src/include/pg_config_ext.h":H)
31239 # Update timestamp for pg_config_ext.h (see Makefile.global)
31240 echo >src/include/stamp-ext-h
31242 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31248 { (exit 0); exit 0; }
31250 chmod +x $CONFIG_STATUS
31251 ac_clean_files=$ac_clean_files_save
31253 test $ac_write_fail = 0 ||
31254 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31255 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31256 { (exit 1); exit 1; }; }
31259 # configure is writing to config.log, and then calls config.status.
31260 # config.status does its own redirection, appending to config.log.
31261 # Unfortunately, on DOS this fails, as config.log is still kept open
31262 # by configure, so config.status won't be able to write to it; its
31263 # output is simply discarded. So we exec the FD to /dev/null,
31264 # effectively closing config.log, so it can be properly (re)opened and
31265 # appended to by config.status. When coming back to configure, we
31266 # need to make the FD available again.
31267 if test "$no_create" != yes; then
31269 ac_config_status_args=
31270 test "$silent" = yes &&
31271 ac_config_status_args="$ac_config_status_args --quiet"
31273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31276 # would make configure fail if this is the last instruction.
31277 $ac_cs_success || { (exit 1); exit 1; }
31279 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31280 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31281 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}