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-2012, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.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-2012, 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 -Wlogical-op" >&5
4076 $as_echo_n "checking whether $CC supports -Wlogical-op... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wlogical_op+set}" = set; then
4078 $as_echo_n "(cached) " >&6
4080 pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wlogical-op"
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__Wlogical_op=yes
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 pgac_cv_prog_cc_cflags__Wlogical_op=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__Wlogical_op" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wlogical_op" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wlogical_op" = x"yes"; then
4132 CFLAGS="$CFLAGS -Wlogical-op"
4135 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4136 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4137 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4138 $as_echo_n "(cached) " >&6
4140 pgac_save_CFLAGS=$CFLAGS
4141 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4177 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4187 CFLAGS="$pgac_save_CFLAGS"
4189 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4190 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4191 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4192 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4195 # This was included in -Wall/-Wformat in older GCC versions
4196 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4197 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4198 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4199 $as_echo_n "(cached) " >&6
4201 pgac_save_CFLAGS=$CFLAGS
4202 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4203 ac_save_c_werror_flag=$ac_c_werror_flag
4204 ac_c_werror_flag=yes
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4227 $as_echo "$ac_try_echo") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4238 pgac_cv_prog_cc_cflags__Wformat_security=yes
4240 $as_echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 pgac_cv_prog_cc_cflags__Wformat_security=no
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4248 CFLAGS="$pgac_save_CFLAGS"
4250 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4251 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4252 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4253 CFLAGS="$CFLAGS -Wformat-security"
4256 # Disable strict-aliasing rules; needed for gcc 3.3+
4257 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4258 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4259 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4262 pgac_save_CFLAGS=$CFLAGS
4263 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4264 ac_save_c_werror_flag=$ac_c_werror_flag
4265 ac_c_werror_flag=yes
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4288 $as_echo "$ac_try_echo") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest.$ac_objext; then
4299 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4301 $as_echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4309 CFLAGS="$pgac_save_CFLAGS"
4311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4312 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4313 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4314 CFLAGS="$CFLAGS -fno-strict-aliasing"
4317 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4318 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4319 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4320 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4323 pgac_save_CFLAGS=$CFLAGS
4324 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4325 ac_save_c_werror_flag=$ac_c_werror_flag
4326 ac_c_werror_flag=yes
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4349 $as_echo "$ac_try_echo") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
4360 pgac_cv_prog_cc_cflags__fwrapv=yes
4362 $as_echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 pgac_cv_prog_cc_cflags__fwrapv=no
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="$pgac_save_CFLAGS"
4372 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4373 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4374 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4375 CFLAGS="$CFLAGS -fwrapv"
4378 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4379 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4380 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4381 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4382 $as_echo_n "(cached) " >&6
4384 pgac_save_CFLAGS=$CFLAGS
4385 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4386 ac_save_c_werror_flag=$ac_c_werror_flag
4387 ac_c_werror_flag=yes
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4403 rm -f conftest.$ac_objext
4404 if { (ac_try="$ac_compile"
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4410 $as_echo "$ac_try_echo") >&5
4411 (eval "$ac_compile") 2>conftest.er1
4413 grep -v '^ *+' conftest.er1 >conftest.err
4415 cat conftest.err >&5
4416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } && {
4418 test -z "$ac_c_werror_flag" ||
4419 test ! -s conftest.err
4420 } && test -s conftest.$ac_objext; then
4421 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4423 $as_echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4431 CFLAGS="$pgac_save_CFLAGS"
4433 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4434 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4435 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4436 CFLAGS="$CFLAGS -fexcess-precision=standard"
4439 elif test "$ICC" = yes; then
4440 # Intel's compiler has a bug/misoptimization in checking for
4441 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4442 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4443 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4444 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4445 $as_echo_n "(cached) " >&6
4447 pgac_save_CFLAGS=$CFLAGS
4448 CFLAGS="$pgac_save_CFLAGS -mp1"
4449 ac_save_c_werror_flag=$ac_c_werror_flag
4450 ac_c_werror_flag=yes
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474 (eval "$ac_compile") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } && {
4481 test -z "$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 } && test -s conftest.$ac_objext; then
4484 pgac_cv_prog_cc_cflags__mp1=yes
4486 $as_echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 pgac_cv_prog_cc_cflags__mp1=no
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 ac_c_werror_flag=$ac_save_c_werror_flag
4494 CFLAGS="$pgac_save_CFLAGS"
4496 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4497 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4498 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4499 CFLAGS="$CFLAGS -mp1"
4502 # Make sure strict aliasing is off (though this is said to be the default)
4503 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4504 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4505 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4506 $as_echo_n "(cached) " >&6
4508 pgac_save_CFLAGS=$CFLAGS
4509 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4510 ac_save_c_werror_flag=$ac_c_werror_flag
4511 ac_c_werror_flag=yes
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4527 rm -f conftest.$ac_objext
4528 if { (ac_try="$ac_compile"
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535 (eval "$ac_compile") 2>conftest.er1
4537 grep -v '^ *+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && {
4542 test -z "$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 } && test -s conftest.$ac_objext; then
4545 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4547 $as_echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_c_werror_flag=$ac_save_c_werror_flag
4555 CFLAGS="$pgac_save_CFLAGS"
4557 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4558 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4559 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4560 CFLAGS="$CFLAGS -fno-strict-aliasing"
4563 elif test "$PORTNAME" = "aix"; then
4564 # AIX's xlc has to have strict aliasing turned off too
4565 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4566 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4567 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4568 $as_echo_n "(cached) " >&6
4570 pgac_save_CFLAGS=$CFLAGS
4571 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4572 ac_save_c_werror_flag=$ac_c_werror_flag
4573 ac_c_werror_flag=yes
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4596 $as_echo "$ac_try_echo") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } && {
4604 test -z "$ac_c_werror_flag" ||
4605 test ! -s conftest.err
4606 } && test -s conftest.$ac_objext; then
4607 pgac_cv_prog_cc_cflags__qnoansialias=yes
4609 $as_echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 pgac_cv_prog_cc_cflags__qnoansialias=no
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_c_werror_flag=$ac_save_c_werror_flag
4617 CFLAGS="$pgac_save_CFLAGS"
4619 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4620 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4621 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4622 CFLAGS="$CFLAGS -qnoansialias"
4625 elif test "$PORTNAME" = "hpux"; then
4626 # On some versions of HP-UX, libm functions do not set errno by default.
4627 # Fix that by using +Olibmerrno if the compiler recognizes it.
4628 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4629 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4630 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4631 $as_echo_n "(cached) " >&6
4633 pgac_save_CFLAGS=$CFLAGS
4634 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4635 ac_save_c_werror_flag=$ac_c_werror_flag
4636 ac_c_werror_flag=yes
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4662 grep -v '^ *+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest.$ac_objext; then
4670 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4672 $as_echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_c_werror_flag=$ac_save_c_werror_flag
4680 CFLAGS="$pgac_save_CFLAGS"
4682 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4683 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4684 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4685 CFLAGS="$CFLAGS +Olibmerrno"
4690 # supply -g if --enable-debug
4691 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4695 # enable code coverage if --enable-coverage
4696 if test "$enable_coverage" = yes; then
4697 if test "$GCC" = yes; then
4698 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4700 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4701 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4702 { (exit 1); exit 1; }; }
4706 # enable profiling if --enable-profiling
4707 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4708 if test "$GCC" = yes; then
4710 cat >>confdefs.h <<\_ACEOF
4711 #define PROFILE_PID_DIR 1
4714 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4716 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4717 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4718 { (exit 1); exit 1; }; }
4722 # We already have this in Makefile.win32, but configure needs it too
4723 if test "$PORTNAME" = "win32"; then
4724 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4727 # Check if the compiler still works with the template settings
4728 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4729 $as_echo_n "checking whether the C compiler still works... " >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (ac_try="$ac_link"
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_link") 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest$ac_exeext && {
4763 test "$cross_compiling" = yes ||
4764 $as_test_x conftest$ac_exeext
4766 { $as_echo "$as_me:$LINENO: result: yes" >&5
4767 $as_echo "yes" >&6; }
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 { $as_echo "$as_me:$LINENO: result: no" >&5
4773 $as_echo "no" >&6; }
4774 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4775 $as_echo "$as_me: error: cannot proceed" >&2;}
4776 { (exit 1); exit 1; }; }
4779 rm -rf conftest.dSYM
4780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4781 conftest$ac_exeext conftest.$ac_ext
4783 # Defend against gcc -ffast-math
4784 if test "$GCC" = yes; then
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4795 #ifdef __FAST_MATH__
4802 rm -f conftest.$ac_objext
4803 if { (ac_try="$ac_compile"
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4809 $as_echo "$ac_try_echo") >&5
4810 (eval "$ac_compile") 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } && {
4817 test -z "$ac_c_werror_flag" ||
4818 test ! -s conftest.err
4819 } && test -s conftest.$ac_objext; then
4822 $as_echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4826 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4827 { (exit 1); exit 1; }; }
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4839 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4840 # On Suns, sometimes $CPP names a directory.
4841 if test -n "$CPP" && test -d "$CPP"; then
4844 if test -z "$CPP"; then
4845 if test "${ac_cv_prog_CPP+set}" = set; then
4846 $as_echo_n "(cached) " >&6
4848 # Double quotes because CPP needs to be expanded
4849 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4852 for ac_c_preproc_warn_flag in '' yes
4854 # Use a header file that comes with gcc, so configuring glibc
4855 # with a fresh cross-compiler works.
4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857 # <limits.h> exists even on freestanding compilers.
4858 # On the NeXT, cc -E runs the code through the compiler's parser,
4859 # not just through cpp. "Syntax error" is here to catch this case.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4867 # include <limits.h>
4869 # include <assert.h>
4873 if { (ac_try="$ac_cpp conftest.$ac_ext"
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } >/dev/null && {
4887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4892 $as_echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat >conftest.$ac_ext <<_ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4917 $as_echo "$ac_try_echo") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null && {
4925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4928 # Broken: success on invalid input.
4931 $as_echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 # Passes both tests.
4939 rm -f conftest.err conftest.$ac_ext
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then
4956 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4957 $as_echo "$CPP" >&6; }
4959 for ac_c_preproc_warn_flag in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat >conftest.$ac_ext <<_ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4974 # include <limits.h>
4976 # include <assert.h>
4980 if { (ac_try="$ac_cpp conftest.$ac_ext"
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986 $as_echo "$ac_try_echo") >&5
4987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null && {
4994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4999 $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 # Broken: fails on valid input.
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5018 if { (ac_try="$ac_cpp conftest.$ac_ext"
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5024 $as_echo "$ac_try_echo") >&5
5025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null && {
5032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5033 test ! -s conftest.err
5035 # Broken: success on invalid input.
5038 $as_echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 # Passes both tests.
5046 rm -f conftest.err conftest.$ac_ext
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then
5054 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5056 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5057 See \`config.log' for more details." >&5
5058 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5059 See \`config.log' for more details." >&2;}
5060 { (exit 1); exit 1; }; }; }
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 # Set up TAS assembly code if needed; the template file has now had its
5074 # chance to request this.
5076 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5079 if test "$need_tas" = yes ; then
5088 # Automatic dependency tracking
5092 # Check whether --enable-depend was given.
5093 if test "${enable_depend+set}" = set; then
5094 enableval=$enable_depend;
5103 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5104 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5105 { (exit 1); exit 1; }; }
5119 # Enable assert checks
5123 # Check whether --enable-cassert was given.
5124 if test "${enable_cassert+set}" = set; then
5125 enableval=$enable_cassert;
5129 cat >>confdefs.h <<\_ACEOF
5130 #define USE_ASSERT_CHECKING 1
5138 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5139 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5140 { (exit 1); exit 1; }; }
5153 # Include directories
5156 IFS="${IFS}${PATH_SEPARATOR}"
5157 # SRCH_INC comes from the template file
5158 for dir in $with_includes $SRCH_INC; do
5159 if test -d "$dir"; then
5160 INCLUDES="$INCLUDES -I$dir"
5162 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5163 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5171 # Library directories
5174 IFS="${IFS}${PATH_SEPARATOR}"
5175 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5176 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5177 if test -d "$dir"; then
5178 LIBDIRS="$LIBDIRS -L$dir"
5180 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5181 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5187 # Enable thread-safe client libraries
5189 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5190 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5193 # Check whether --enable-thread-safety was given.
5194 if test "${enable_thread_safety+set}" = set; then
5195 enableval=$enable_thread_safety;
5204 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5205 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5206 { (exit 1); exit 1; }; }
5211 enable_thread_safety=yes
5216 if test "$enable_thread_safety" = yes; then
5218 cat >>confdefs.h <<\_ACEOF
5219 #define ENABLE_THREAD_SAFETY 1
5223 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5224 $as_echo "$enable_thread_safety" >&6; }
5228 # Optionally build Tcl modules (PL/Tcl)
5230 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5231 $as_echo_n "checking whether to build with Tcl... " >&6; }
5235 # Check whether --with-tcl was given.
5236 if test "${with_tcl+set}" = set; then
5246 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5247 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5248 { (exit 1); exit 1; }; }
5258 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5259 $as_echo "$with_tcl" >&6; }
5262 # We see if the path to the Tcl/Tk configuration scripts is specified.
5263 # This will override the use of tclsh to find the paths to search.
5268 # Check whether --with-tclconfig was given.
5269 if test "${with_tclconfig+set}" = set; then
5270 withval=$with_tclconfig;
5273 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5274 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5275 { (exit 1); exit 1; }; }
5278 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5279 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5280 { (exit 1); exit 1; }; }
5292 # Optionally build Perl modules (PL/Perl)
5294 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5295 $as_echo_n "checking whether to build Perl modules... " >&6; }
5299 # Check whether --with-perl was given.
5300 if test "${with_perl+set}" = set; then
5310 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5311 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5312 { (exit 1); exit 1; }; }
5322 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5323 $as_echo "$with_perl" >&6; }
5327 # Optionally build Python modules (PL/Python)
5329 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5330 $as_echo_n "checking whether to build Python modules... " >&6; }
5334 # Check whether --with-python was given.
5335 if test "${with_python+set}" = set; then
5336 withval=$with_python;
5345 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5346 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5347 { (exit 1); exit 1; }; }
5357 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5358 $as_echo "$with_python" >&6; }
5364 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5365 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5369 # Check whether --with-gssapi was given.
5370 if test "${with_gssapi+set}" = set; then
5371 withval=$with_gssapi;
5376 cat >>confdefs.h <<\_ACEOF
5377 #define ENABLE_GSS 1
5380 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5387 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5388 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5389 { (exit 1); exit 1; }; }
5399 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5400 $as_echo "$with_gssapi" >&6; }
5405 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5406 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5410 # Check whether --with-krb5 was given.
5411 if test "${with_krb5+set}" = set; then
5417 cat >>confdefs.h <<\_ACEOF
5421 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5428 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5429 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5430 { (exit 1); exit 1; }; }
5440 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5441 $as_echo "$with_krb5" >&6; }
5448 # Kerberos configuration parameters
5453 # Check whether --with-krb-srvnam was given.
5454 if test "${with_krb_srvnam+set}" = set; then
5455 withval=$with_krb_srvnam;
5458 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5459 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5460 { (exit 1); exit 1; }; }
5463 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5464 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5465 { (exit 1); exit 1; }; }
5473 with_krb_srvnam="postgres"
5478 cat >>confdefs.h <<_ACEOF
5479 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5487 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5488 $as_echo_n "checking whether to build with PAM support... " >&6; }
5492 # Check whether --with-pam was given.
5493 if test "${with_pam+set}" = set; then
5498 cat >>confdefs.h <<\_ACEOF
5507 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5508 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5509 { (exit 1); exit 1; }; }
5519 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5520 $as_echo "$with_pam" >&6; }
5526 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5527 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5531 # Check whether --with-ldap was given.
5532 if test "${with_ldap+set}" = set; then
5537 cat >>confdefs.h <<\_ACEOF
5546 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5547 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5548 { (exit 1); exit 1; }; }
5558 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5559 $as_echo "$with_ldap" >&6; }
5565 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5566 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5570 # Check whether --with-bonjour was given.
5571 if test "${with_bonjour+set}" = set; then
5572 withval=$with_bonjour;
5576 cat >>confdefs.h <<\_ACEOF
5577 #define USE_BONJOUR 1
5585 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5586 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5587 { (exit 1); exit 1; }; }
5597 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5598 $as_echo "$with_bonjour" >&6; }
5604 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5605 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5609 # Check whether --with-openssl was given.
5610 if test "${with_openssl+set}" = set; then
5611 withval=$with_openssl;
5615 cat >>confdefs.h <<\_ACEOF
5624 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5625 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5626 { (exit 1); exit 1; }; }
5636 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5637 $as_echo "$with_openssl" >&6; }
5643 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5644 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5648 # Check whether --with-selinux was given.
5649 if test "${with_selinux+set}" = set; then
5650 withval=$with_selinux;
5659 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5660 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5661 { (exit 1); exit 1; }; }
5672 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5673 $as_echo "$with_selinux" >&6; }
5681 # Check whether --with-readline was given.
5682 if test "${with_readline+set}" = set; then
5683 withval=$with_readline;
5692 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5693 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5694 { (exit 1); exit 1; }; }
5704 # readline on MinGW has problems with backslashes in psql and other bugs.
5705 # This is particularly a problem with non-US code pages.
5706 # Therefore disable its use until we understand the cause. 2004-07-20
5707 if test "$PORTNAME" = "win32"; then
5708 if test "$with_readline" = yes; then
5709 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5710 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5722 # Check whether --with-libedit-preferred was given.
5723 if test "${with_libedit_preferred+set}" = set; then
5724 withval=$with_libedit_preferred;
5733 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5734 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5735 { (exit 1); exit 1; }; }
5740 with_libedit_preferred=no
5753 # Check whether --with-ossp-uuid was given.
5754 if test "${with_ossp_uuid+set}" = set; then
5755 withval=$with_ossp_uuid;
5764 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5765 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5766 { (exit 1); exit 1; }; }
5785 # Check whether --with-libxml was given.
5786 if test "${with_libxml+set}" = set; then
5787 withval=$with_libxml;
5791 cat >>confdefs.h <<\_ACEOF
5792 #define USE_LIBXML 1
5800 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5801 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5802 { (exit 1); exit 1; }; }
5813 if test "$with_libxml" = yes ; then
5814 for ac_prog in xml2-config
5816 # Extract the first word of "$ac_prog", so it can be a program name with args.
5817 set dummy $ac_prog; ac_word=$2
5818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5821 $as_echo_n "(cached) " >&6
5823 if test -n "$XML2_CONFIG"; then
5824 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_XML2_CONFIG="$ac_prog"
5834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5844 if test -n "$XML2_CONFIG"; then
5845 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5846 $as_echo "$XML2_CONFIG" >&6; }
5848 { $as_echo "$as_me:$LINENO: result: no" >&5
5849 $as_echo "no" >&6; }
5853 test -n "$XML2_CONFIG" && break
5856 if test -n "$XML2_CONFIG"; then
5857 for pgac_option in `$XML2_CONFIG --cflags`; do
5858 case $pgac_option in
5859 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5862 for pgac_option in `$XML2_CONFIG --libs`; do
5863 case $pgac_option in
5864 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5878 # Check whether --with-libxslt was given.
5879 if test "${with_libxslt+set}" = set; then
5880 withval=$with_libxslt;
5884 cat >>confdefs.h <<\_ACEOF
5885 #define USE_LIBXSLT 1
5893 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5894 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5895 { (exit 1); exit 1; }; }
5915 # Check whether --with-system-tzdata was given.
5916 if test "${with_system_tzdata+set}" = set; then
5917 withval=$with_system_tzdata;
5920 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5921 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5922 { (exit 1); exit 1; }; }
5925 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5926 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5927 { (exit 1); exit 1; }; }
5945 # Check whether --with-zlib was given.
5946 if test "${with_zlib+set}" = set; then
5956 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5957 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5958 { (exit 1); exit 1; }; }
5974 # Assume system is ELF if it predefines __ELF__ as 1,
5975 # otherwise believe host_os based default.
5977 freebsd1*|freebsd2*) elf=no;;
5978 freebsd3*|freebsd4*) elf=yes;;
5982 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5984 if test "${ac_cv_path_GREP+set}" = set; then
5985 $as_echo_n "(cached) " >&6
5987 if test -z "$GREP"; then
5988 ac_path_GREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5994 test -z "$as_dir" && as_dir=.
5995 for ac_prog in grep ggrep; do
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5999 # Check for GNU ac_path_GREP and select it if it is found.
6000 # Check for GNU $ac_path_GREP
6001 case `"$ac_path_GREP" --version 2>&1` in
6003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6006 $as_echo_n 0123456789 >"conftest.in"
6009 cat "conftest.in" "conftest.in" >"conftest.tmp"
6010 mv "conftest.tmp" "conftest.in"
6011 cp "conftest.in" "conftest.nl"
6012 $as_echo 'GREP' >> "conftest.nl"
6013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015 ac_count=`expr $ac_count + 1`
6016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6017 # Best one so far, save it but keep looking for a better one
6018 ac_cv_path_GREP="$ac_path_GREP"
6019 ac_path_GREP_max=$ac_count
6021 # 10*(2^10) chars as input seems more than enough
6022 test $ac_count -gt 10 && break
6024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6027 $ac_path_GREP_found && break 3
6032 if test -z "$ac_cv_path_GREP"; then
6033 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6034 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6035 { (exit 1); exit 1; }; }
6038 ac_cv_path_GREP=$GREP
6042 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6043 $as_echo "$ac_cv_path_GREP" >&6; }
6044 GREP="$ac_cv_path_GREP"
6047 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6048 $as_echo_n "checking for egrep... " >&6; }
6049 if test "${ac_cv_path_EGREP+set}" = set; then
6050 $as_echo_n "(cached) " >&6
6052 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6053 then ac_cv_path_EGREP="$GREP -E"
6055 if test -z "$EGREP"; then
6056 ac_path_EGREP_found=false
6057 # Loop through the user's path and test for each of PROGNAME-LIST
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6062 test -z "$as_dir" && as_dir=.
6063 for ac_prog in egrep; do
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6066 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6067 # Check for GNU ac_path_EGREP and select it if it is found.
6068 # Check for GNU $ac_path_EGREP
6069 case `"$ac_path_EGREP" --version 2>&1` in
6071 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6074 $as_echo_n 0123456789 >"conftest.in"
6077 cat "conftest.in" "conftest.in" >"conftest.tmp"
6078 mv "conftest.tmp" "conftest.in"
6079 cp "conftest.in" "conftest.nl"
6080 $as_echo 'EGREP' >> "conftest.nl"
6081 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6083 ac_count=`expr $ac_count + 1`
6084 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6085 # Best one so far, save it but keep looking for a better one
6086 ac_cv_path_EGREP="$ac_path_EGREP"
6087 ac_path_EGREP_max=$ac_count
6089 # 10*(2^10) chars as input seems more than enough
6090 test $ac_count -gt 10 && break
6092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6095 $ac_path_EGREP_found && break 3
6100 if test -z "$ac_cv_path_EGREP"; then
6101 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6102 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6103 { (exit 1); exit 1; }; }
6106 ac_cv_path_EGREP=$EGREP
6111 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6112 $as_echo "$ac_cv_path_EGREP" >&6; }
6113 EGREP="$ac_cv_path_EGREP"
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "yes" >/dev/null 2>&1; then
6131 if test "X$elf" = "Xyes" ; then
6145 CPPFLAGS="$CPPFLAGS $INCLUDES"
6146 LDFLAGS="$LDFLAGS $LIBDIRS"
6152 # Check whether --with-gnu-ld was given.
6153 if test "${with_gnu_ld+set}" = set; then
6154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6160 if test "$GCC" = yes; then
6161 # Check if gcc -print-prog-name=ld gives a path.
6162 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6163 $as_echo_n "checking for ld used by GCC... " >&6; }
6166 # gcc leaves a trailing carriage return which upsets mingw
6167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6172 # Accept absolute paths.
6173 [\\/]* | [A-Za-z]:[\\/]*)
6174 re_direlt='/[^/][^/]*/\.\./'
6175 # Canonicalize the path of ld
6176 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6177 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6178 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6180 test -z "$LD" && LD="$ac_prog"
6183 # If it fails, then pretend we aren't using GCC.
6187 # If it is relative, then search for the first ld in PATH.
6191 elif test "$with_gnu_ld" = yes; then
6192 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6193 $as_echo_n "checking for GNU ld... " >&6; }
6195 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6196 $as_echo_n "checking for non-GNU ld... " >&6; }
6198 if test "${ac_cv_path_LD+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6201 if test -z "$LD"; then
6202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6203 for ac_dir in $PATH; do
6204 test -z "$ac_dir" && ac_dir=.
6205 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6206 ac_cv_path_LD="$ac_dir/$ac_prog"
6207 # Check to see if the program is GNU ld. I'd rather use --version,
6208 # but apparently some GNU ld's only accept -v.
6209 # Break only if it was the GNU/non-GNU ld that we prefer.
6210 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6211 test "$with_gnu_ld" != no && break
6213 test "$with_gnu_ld" != yes && break
6219 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6224 if test -n "$LD"; then
6225 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6226 $as_echo "$LD" >&6; }
6228 { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6231 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6232 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6233 { (exit 1); exit 1; }; }
6234 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6235 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6236 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6237 $as_echo_n "(cached) " >&6
6239 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6240 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6241 ac_cv_prog_gnu_ld=yes
6243 ac_cv_prog_gnu_ld=no
6246 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6247 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6248 with_gnu_ld=$ac_cv_prog_gnu_ld
6253 case $host_os in sysv5*)
6254 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6255 $as_echo_n "checking whether ld -R works... " >&6; }
6256 if test "${pgac_cv_prog_ld_R+set}" = set; then
6257 $as_echo_n "(cached) " >&6
6260 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6261 cat >conftest.$ac_ext <<_ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_link") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest$ac_exeext && {
6294 test "$cross_compiling" = yes ||
6295 $as_test_x conftest$ac_exeext
6297 pgac_cv_prog_ld_R=yes
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 pgac_cv_prog_ld_R=no
6305 rm -rf conftest.dSYM
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307 conftest$ac_exeext conftest.$ac_ext
6308 LDFLAGS=$pgac_save_LDFLAGS
6311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6312 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6313 ld_R_works=$pgac_cv_prog_ld_R
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_RANLIB+set}" = set; then
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$RANLIB"; then
6325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 RANLIB=$ac_cv_prog_RANLIB
6345 if test -n "$RANLIB"; then
6346 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6347 $as_echo "$RANLIB" >&6; }
6349 { $as_echo "$as_me:$LINENO: result: no" >&5
6350 $as_echo "no" >&6; }
6355 if test -z "$ac_cv_prog_RANLIB"; then
6356 ac_ct_RANLIB=$RANLIB
6357 # Extract the first word of "ranlib", so it can be a program name with args.
6358 set dummy ranlib; ac_word=$2
6359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$ac_ct_RANLIB"; then
6365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_RANLIB="ranlib"
6375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6385 if test -n "$ac_ct_RANLIB"; then
6386 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6387 $as_echo "$ac_ct_RANLIB" >&6; }
6389 { $as_echo "$as_me:$LINENO: result: no" >&5
6390 $as_echo "no" >&6; }
6393 if test "x$ac_ct_RANLIB" = x; then
6396 case $cross_compiling:$ac_tool_warned in
6398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400 ac_tool_warned=yes ;;
6402 RANLIB=$ac_ct_RANLIB
6405 RANLIB="$ac_cv_prog_RANLIB"
6409 if test -n "$ac_tool_prefix"; then
6410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6411 set dummy ${ac_tool_prefix}strip; ac_word=$2
6412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if test "${ac_cv_prog_STRIP+set}" = set; then
6415 $as_echo_n "(cached) " >&6
6417 if test -n "$STRIP"; then
6418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 STRIP=$ac_cv_prog_STRIP
6438 if test -n "$STRIP"; then
6439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6440 $as_echo "$STRIP" >&6; }
6442 { $as_echo "$as_me:$LINENO: result: no" >&5
6443 $as_echo "no" >&6; }
6448 if test -z "$ac_cv_prog_STRIP"; then
6450 # Extract the first word of "strip", so it can be a program name with args.
6451 set dummy strip; ac_word=$2
6452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$ac_ct_STRIP"; then
6458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_ac_ct_STRIP="strip"
6468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6478 if test -n "$ac_ct_STRIP"; then
6479 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6480 $as_echo "$ac_ct_STRIP" >&6; }
6482 { $as_echo "$as_me:$LINENO: result: no" >&5
6483 $as_echo "no" >&6; }
6486 if test "x$ac_ct_STRIP" = x; then
6489 case $cross_compiling:$ac_tool_warned in
6491 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493 ac_tool_warned=yes ;;
6498 STRIP="$ac_cv_prog_STRIP"
6502 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6503 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6504 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6505 STRIP_STATIC_LIB="$STRIP -x"
6506 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6507 { $as_echo "$as_me:$LINENO: result: yes" >&5
6508 $as_echo "yes" >&6; }
6513 STRIP_STATIC_LIB=$STRIP
6514 STRIP_SHARED_LIB=$STRIP
6515 { $as_echo "$as_me:$LINENO: result: yes" >&5
6516 $as_echo "yes" >&6; }
6521 { $as_echo "$as_me:$LINENO: result: no" >&5
6522 $as_echo "no" >&6; }
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535 $as_echo_n "(cached) " >&6
6537 if test -n "$AR"; then
6538 ac_cv_prog_AR="$AR" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_AR="${ac_tool_prefix}ar"
6548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 if test -n "$AR"; then
6559 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6560 $as_echo "$AR" >&6; }
6562 { $as_echo "$as_me:$LINENO: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_prog_AR"; then
6570 # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575 $as_echo_n "(cached) " >&6
6577 if test -n "$ac_ct_AR"; then
6578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_AR="ar"
6588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 $as_echo "$ac_ct_AR" >&6; }
6602 { $as_echo "$as_me:$LINENO: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test "x$ac_ct_AR" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6621 if test "$PORTNAME" = "win32"; then
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6628 $as_echo_n "(cached) " >&6
6630 if test -n "$DLLTOOL"; then
6631 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 DLLTOOL=$ac_cv_prog_DLLTOOL
6651 if test -n "$DLLTOOL"; then
6652 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6653 $as_echo "$DLLTOOL" >&6; }
6655 { $as_echo "$as_me:$LINENO: result: no" >&5
6656 $as_echo "no" >&6; }
6661 if test -z "$ac_cv_prog_DLLTOOL"; then
6662 ac_ct_DLLTOOL=$DLLTOOL
6663 # Extract the first word of "dlltool", so it can be a program name with args.
6664 set dummy dlltool; ac_word=$2
6665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$ac_ct_DLLTOOL"; then
6671 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6691 if test -n "$ac_ct_DLLTOOL"; then
6692 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6693 $as_echo "$ac_ct_DLLTOOL" >&6; }
6695 { $as_echo "$as_me:$LINENO: result: no" >&5
6696 $as_echo "no" >&6; }
6699 if test "x$ac_ct_DLLTOOL" = x; then
6702 case $cross_compiling:$ac_tool_warned in
6704 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6708 DLLTOOL=$ac_ct_DLLTOOL
6711 DLLTOOL="$ac_cv_prog_DLLTOOL"
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6720 $as_echo_n "(cached) " >&6
6722 if test -n "$DLLWRAP"; then
6723 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 DLLWRAP=$ac_cv_prog_DLLWRAP
6743 if test -n "$DLLWRAP"; then
6744 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6745 $as_echo "$DLLWRAP" >&6; }
6747 { $as_echo "$as_me:$LINENO: result: no" >&5
6748 $as_echo "no" >&6; }
6753 if test -z "$ac_cv_prog_DLLWRAP"; then
6754 ac_ct_DLLWRAP=$DLLWRAP
6755 # Extract the first word of "dllwrap", so it can be a program name with args.
6756 set dummy dllwrap; ac_word=$2
6757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6760 $as_echo_n "(cached) " >&6
6762 if test -n "$ac_ct_DLLWRAP"; then
6763 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6783 if test -n "$ac_ct_DLLWRAP"; then
6784 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6785 $as_echo "$ac_ct_DLLWRAP" >&6; }
6787 { $as_echo "$as_me:$LINENO: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$ac_ct_DLLWRAP" = x; then
6794 case $cross_compiling:$ac_tool_warned in
6796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6800 DLLWRAP=$ac_ct_DLLWRAP
6803 DLLWRAP="$ac_cv_prog_DLLWRAP"
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}windres; ac_word=$2
6809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_WINDRES+set}" = set; then
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$WINDRES"; then
6815 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 WINDRES=$ac_cv_prog_WINDRES
6835 if test -n "$WINDRES"; then
6836 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6837 $as_echo "$WINDRES" >&6; }
6839 { $as_echo "$as_me:$LINENO: result: no" >&5
6840 $as_echo "no" >&6; }
6845 if test -z "$ac_cv_prog_WINDRES"; then
6846 ac_ct_WINDRES=$WINDRES
6847 # Extract the first word of "windres", so it can be a program name with args.
6848 set dummy windres; ac_word=$2
6849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6852 $as_echo_n "(cached) " >&6
6854 if test -n "$ac_ct_WINDRES"; then
6855 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_WINDRES="windres"
6865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6875 if test -n "$ac_ct_WINDRES"; then
6876 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6877 $as_echo "$ac_ct_WINDRES" >&6; }
6879 { $as_echo "$as_me:$LINENO: result: no" >&5
6880 $as_echo "no" >&6; }
6883 if test "x$ac_ct_WINDRES" = x; then
6886 case $cross_compiling:$ac_tool_warned in
6888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6892 WINDRES=$ac_ct_WINDRES
6895 WINDRES="$ac_cv_prog_WINDRES"
6900 # Find a good install program. We prefer a C program (faster),
6901 # so one script is as good as another. But avoid the broken or
6902 # incompatible versions:
6903 # SysV /etc/install, /usr/sbin/install
6904 # SunOS /usr/etc/install
6905 # IRIX /sbin/install
6907 # AmigaOS /C/install, which installs bootblocks on floppy discs
6908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6911 # OS/2's system install, which has a completely different semantic
6912 # ./install, which can be erroneously created by make from ./install.sh.
6913 # Reject install programs that cannot install multiple files.
6914 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6915 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6916 if test -z "$INSTALL"; then
6917 if test "${ac_cv_path_install+set}" = set; then
6918 $as_echo_n "(cached) " >&6
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 test -z "$as_dir" && as_dir=.
6925 # Account for people who put trailing slashes in PATH elements.
6927 ./ | .// | /cC/* | \
6928 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6929 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6932 # OSF1 and SCO ODT 3.0 have their own names for install.
6933 # Don't use installbsd from OSF since it installs stuff as root
6935 for ac_prog in ginstall scoinst install; do
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6938 if test $ac_prog = install &&
6939 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6940 # AIX install. It has an incompatible calling convention.
6942 elif test $ac_prog = install &&
6943 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6944 # program-specific install script used by HP pwplus--don't use.
6947 rm -rf conftest.one conftest.two conftest.dir
6948 echo one > conftest.one
6949 echo two > conftest.two
6951 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6952 test -s conftest.one && test -s conftest.two &&
6953 test -s conftest.dir/conftest.one &&
6954 test -s conftest.dir/conftest.two
6956 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6969 rm -rf conftest.one conftest.two conftest.dir
6972 if test "${ac_cv_path_install+set}" = set; then
6973 INSTALL=$ac_cv_path_install
6975 # As a last resort, use the slow shell script. Don't cache a
6976 # value for INSTALL within a source directory, because that will
6977 # break other packages using the cache if that directory is
6978 # removed, or if the value is a relative name.
6979 INSTALL=$ac_install_sh
6982 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6983 $as_echo "$INSTALL" >&6; }
6985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6986 # It thinks the first close brace ends the variable substitution.
6987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6993 # When Autoconf chooses install-sh as install program it tries to generate
6994 # a relative path to it in each makefile where it subsitutes it. This clashes
6995 # with our Makefile.global concept. This workaround helps.
6997 *install-sh*) install_bin='';;
6998 *) install_bin=$INSTALL;;
7002 # Extract the first word of "tar", so it can be a program name with args.
7003 set dummy tar; ac_word=$2
7004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_path_TAR+set}" = set; then
7007 $as_echo_n "(cached) " >&6
7011 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 if test -n "$TAR"; then
7034 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7035 $as_echo "$TAR" >&6; }
7037 { $as_echo "$as_me:$LINENO: result: no" >&5
7038 $as_echo "no" >&6; }
7042 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7043 $as_echo_n "checking whether ln -s works... " >&6; }
7045 if test "$LN_S" = "ln -s"; then
7046 { $as_echo "$as_me:$LINENO: result: yes" >&5
7047 $as_echo "yes" >&6; }
7049 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7050 $as_echo "no, using $LN_S" >&6; }
7053 for ac_prog in gawk mawk nawk awk
7055 # Extract the first word of "$ac_prog", so it can be a program name with args.
7056 set dummy $ac_prog; ac_word=$2
7057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_prog_AWK+set}" = set; then
7060 $as_echo_n "(cached) " >&6
7062 if test -n "$AWK"; then
7063 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_prog_AWK="$ac_prog"
7073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 if test -n "$AWK"; then
7084 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7085 $as_echo "$AWK" >&6; }
7087 { $as_echo "$as_me:$LINENO: result: no" >&5
7088 $as_echo "no" >&6; }
7092 test -n "$AWK" && break
7095 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7096 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7097 if test -z "$MKDIR_P"; then
7098 if test "${ac_cv_path_mkdir+set}" = set; then
7099 $as_echo_n "(cached) " >&6
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7105 test -z "$as_dir" && as_dir=.
7106 for ac_prog in mkdir gmkdir; do
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7109 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7110 'mkdir (GNU coreutils) '* | \
7111 'mkdir (coreutils) '* | \
7112 'mkdir (fileutils) '4.1*)
7113 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7123 if test "${ac_cv_path_mkdir+set}" = set; then
7124 MKDIR_P="$ac_cv_path_mkdir -p"
7126 # As a last resort, use the slow shell script. Don't cache a
7127 # value for MKDIR_P within a source directory, because that will
7128 # break other packages using the cache if that directory is
7129 # removed, or if the value is a relative name.
7130 test -d ./--version && rmdir ./--version
7131 MKDIR_P="$ac_install_sh -d"
7134 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7135 $as_echo "$MKDIR_P" >&6; }
7137 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7138 # a relative path to it in each makefile where it subsitutes it. This clashes
7139 # with our Makefile.global concept. This workaround helps.
7141 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7144 # Let the user override the search
7145 if test -z "$BISON"; then
7146 for ac_prog in bison
7148 # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_path_BISON+set}" = set; then
7153 $as_echo_n "(cached) " >&6
7157 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 BISON=$ac_cv_path_BISON
7179 if test -n "$BISON"; then
7180 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7181 $as_echo "$BISON" >&6; }
7183 { $as_echo "$as_me:$LINENO: result: no" >&5
7184 $as_echo "no" >&6; }
7188 test -n "$BISON" && break
7193 if test "$BISON"; then
7194 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7195 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7196 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7197 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7199 { $as_echo "$as_me:$LINENO: WARNING:
7200 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7201 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7202 $as_echo "$as_me: WARNING:
7203 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7204 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7209 if test -z "$BISON"; then
7210 { $as_echo "$as_me:$LINENO: WARNING:
7211 *** Without Bison you will not be able to build PostgreSQL from Git nor
7212 *** change any of the parser definition files. You can obtain Bison from
7213 *** a GNU mirror site. (If you are using the official distribution of
7214 *** PostgreSQL then you do not need to worry about this, because the Bison
7215 *** output is pre-generated.)" >&5
7216 $as_echo "$as_me: WARNING:
7217 *** Without Bison you will not be able to build PostgreSQL from Git nor
7218 *** change any of the parser definition files. You can obtain Bison from
7219 *** a GNU mirror site. (If you are using the official distribution of
7220 *** PostgreSQL then you do not need to worry about this, because the Bison
7221 *** output is pre-generated.)" >&2;}
7223 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7226 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7227 $as_echo_n "checking for flex... " >&6; }
7228 if test "${pgac_cv_path_flex+set}" = set; then
7229 $as_echo_n "(cached) " >&6
7231 # Let the user override the test
7232 if test -n "$FLEX"; then
7233 pgac_cv_path_flex=$FLEX
7237 for pgac_dir in $PATH; do
7239 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7242 for pgac_prog in flex lex; do
7243 pgac_candidate="$pgac_dir/$pgac_prog"
7244 if test -f "$pgac_candidate" \
7245 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7247 echo '%%' > conftest.l
7248 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7249 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7250 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7252 pgac_cv_path_flex=$pgac_candidate
7255 { $as_echo "$as_me:$LINENO: WARNING:
7256 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7257 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7258 $as_echo "$as_me: WARNING:
7259 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7260 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7266 rm -f conftest.l lex.yy.c
7267 : ${pgac_cv_path_flex=no}
7271 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7272 $as_echo "$pgac_cv_path_flex" >&6; }
7273 if test x"$pgac_cv_path_flex" = x"no"; then
7274 { $as_echo "$as_me:$LINENO: WARNING:
7275 *** Without Flex you will not be able to build PostgreSQL from Git nor
7276 *** change any of the scanner definition files. You can obtain Flex from
7277 *** a GNU mirror site. (If you are using the official distribution of
7278 *** PostgreSQL then you do not need to worry about this because the Flex
7279 *** output is pre-generated.)" >&5
7280 $as_echo "$as_me: WARNING:
7281 *** Without Flex you will not be able to build PostgreSQL from Git nor
7282 *** change any of the scanner definition files. You can obtain Flex from
7283 *** a GNU mirror site. (If you are using the official distribution of
7284 *** PostgreSQL then you do not need to worry about this because the Flex
7285 *** output is pre-generated.)" >&2;}
7289 FLEX=$pgac_cv_path_flex
7290 pgac_flex_version=`$FLEX --version 2>/dev/null`
7291 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7292 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7299 # Let the user override the search
7300 if test -z "$PERL"; then
7301 # Extract the first word of "perl", so it can be a program name with args.
7302 set dummy perl; ac_word=$2
7303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_path_PERL+set}" = set; then
7306 $as_echo_n "(cached) " >&6
7310 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 PERL=$ac_cv_path_PERL
7332 if test -n "$PERL"; then
7333 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7334 $as_echo "$PERL" >&6; }
7336 { $as_echo "$as_me:$LINENO: result: no" >&5
7337 $as_echo "no" >&6; }
7343 if test "$PERL"; then
7344 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'`
7345 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7346 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7347 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7348 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7350 { $as_echo "$as_me:$LINENO: WARNING:
7351 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7352 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7353 $as_echo "$as_me: WARNING:
7354 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7355 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7360 if test -z "$PERL"; then
7361 { $as_echo "$as_me:$LINENO: WARNING:
7362 *** Without Perl you will not be able to build PostgreSQL from Git.
7363 *** You can obtain Perl from any CPAN mirror site.
7364 *** (If you are using the official distribution of PostgreSQL then you do not
7365 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7366 $as_echo "$as_me: WARNING:
7367 *** Without Perl you will not be able to build PostgreSQL from Git.
7368 *** You can obtain Perl from any CPAN mirror site.
7369 *** (If you are using the official distribution of PostgreSQL then you do not
7370 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7373 if test "$with_perl" = yes; then
7374 if test -z "$PERL"; then
7375 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7376 $as_echo "$as_me: error: Perl not found" >&2;}
7377 { (exit 1); exit 1; }; }
7380 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7381 $as_echo_n "checking for Perl archlibexp... " >&6; }
7382 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7383 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7384 $as_echo "$perl_archlibexp" >&6; }
7385 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7386 $as_echo_n "checking for Perl privlibexp... " >&6; }
7387 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7388 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7389 $as_echo "$perl_privlibexp" >&6; }
7390 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7391 $as_echo_n "checking for Perl useshrplib... " >&6; }
7392 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7393 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7394 $as_echo "$perl_useshrplib" >&6; }
7396 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7397 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7398 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7399 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7400 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7401 if test -z "$perl_embed_ldflags" ; then
7402 { $as_echo "$as_me:$LINENO: result: no" >&5
7403 $as_echo "no" >&6; }
7404 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7405 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7407 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7408 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7410 { (exit 1); exit 1; }; }
7412 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7413 $as_echo "$perl_embed_ldflags" >&6; }
7418 if test "$with_python" = yes; then
7419 # Extract the first word of "python", so it can be a program name with args.
7420 set dummy python; ac_word=$2
7421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_path_PYTHON+set}" = set; then
7424 $as_echo_n "(cached) " >&6
7428 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 PYTHON=$ac_cv_path_PYTHON
7450 if test -n "$PYTHON"; then
7451 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7452 $as_echo "$PYTHON" >&6; }
7454 { $as_echo "$as_me:$LINENO: result: no" >&5
7455 $as_echo "no" >&6; }
7459 if test x"$PYTHON" = x""; then
7460 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7461 $as_echo "$as_me: error: Python not found" >&2;}
7462 { (exit 1); exit 1; }; }
7466 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7467 $as_echo_n "checking for Python distutils module... " >&6; }
7468 if "${PYTHON}" -c 'import distutils' 2>&5
7470 { $as_echo "$as_me:$LINENO: result: yes" >&5
7471 $as_echo "yes" >&6; }
7473 { $as_echo "$as_me:$LINENO: result: no" >&5
7474 $as_echo "no" >&6; }
7475 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7476 $as_echo "$as_me: error: distutils module not found" >&2;}
7477 { (exit 1); exit 1; }; }
7479 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7480 $as_echo_n "checking Python configuration directory... " >&6; }
7481 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7482 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7483 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7484 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7485 $as_echo "$python_configdir" >&6; }
7487 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7488 $as_echo_n "checking Python include directories... " >&6; }
7489 python_includespec=`${PYTHON} -c "
7490 import distutils.sysconfig
7491 a = '-I' + distutils.sysconfig.get_python_inc(False)
7492 b = '-I' + distutils.sysconfig.get_python_inc(True)
7496 print(a + ' ' + b)"`
7497 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7498 $as_echo "$python_includespec" >&6; }
7502 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7503 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7505 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7506 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7507 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7508 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7510 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7512 # New way: use the official shared library
7513 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7514 python_libspec="-L${python_libdir} -l${ldlibrary}"
7516 # Old way: use libpython from python_configdir
7517 python_libdir="${python_configdir}"
7518 # LDVERSION was introduced in Python 3.2.
7519 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7520 if test x"${python_ldversion}" = x""; then
7521 python_ldversion=$python_version
7523 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7526 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7528 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7529 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7532 # threaded python is not supported on OpenBSD
7533 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7534 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7535 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7536 if test "$pythreads" = "1"; then
7537 { $as_echo "$as_me:$LINENO: result: yes" >&5
7538 $as_echo "yes" >&6; }
7541 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7542 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7543 { (exit 1); exit 1; }; }
7547 { $as_echo "$as_me:$LINENO: result: no" >&5
7548 $as_echo "no" >&6; }
7554 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7555 # Extract the first word of "zic", so it can be a program name with args.
7556 set dummy zic; ac_word=$2
7557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_path_ZIC+set}" = set; then
7560 $as_echo_n "(cached) " >&6
7564 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7575 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 if test -n "$ZIC"; then
7587 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7588 $as_echo "$ZIC" >&6; }
7590 { $as_echo "$as_me:$LINENO: result: no" >&5
7591 $as_echo "no" >&6; }
7595 if test -z "$ZIC"; then
7596 { { $as_echo "$as_me:$LINENO: error:
7597 When cross-compiling, either use the option --with-system-tzdata to use
7598 existing time-zone data, or set the environment variable ZIC to a zic
7599 program to use during the build." >&5
7600 $as_echo "$as_me: error:
7601 When cross-compiling, either use the option --with-system-tzdata to use
7602 existing time-zone data, or set the environment variable ZIC to a zic
7603 program to use during the build." >&2;}
7604 { (exit 1); exit 1; }; }
7612 ## Most libraries are included only if they demonstrably provide a function
7613 ## we need, but libm is an exception: always include it, because there are
7614 ## too many compilers that play cute optimization games that will break
7615 ## probes for standard functions such as pow().
7619 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7620 $as_echo_n "checking for main in -lm... " >&6; }
7621 if test "${ac_cv_lib_m_main+set}" = set; then
7622 $as_echo_n "(cached) " >&6
7624 ac_check_lib_save_LIBS=$LIBS
7626 cat >conftest.$ac_ext <<_ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_link") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest$ac_exeext && {
7660 test "$cross_compiling" = yes ||
7661 $as_test_x conftest$ac_exeext
7663 ac_cv_lib_m_main=yes
7665 $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673 conftest$ac_exeext conftest.$ac_ext
7674 LIBS=$ac_check_lib_save_LIBS
7676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7677 $as_echo "$ac_cv_lib_m_main" >&6; }
7678 if test "x$ac_cv_lib_m_main" = x""yes; then
7679 cat >>confdefs.h <<_ACEOF
7687 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7688 $as_echo_n "checking for library containing setproctitle... " >&6; }
7689 if test "${ac_cv_search_setproctitle+set}" = set; then
7690 $as_echo_n "(cached) " >&6
7692 ac_func_search_save_LIBS=$LIBS
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7700 /* Override any GCC internal prototype to avoid an error.
7701 Use char because int might match the return type of a GCC
7702 builtin and then its argument prototype would still apply. */
7706 char setproctitle ();
7710 return setproctitle ();
7715 for ac_lib in '' util; do
7716 if test -z "$ac_lib"; then
7717 ac_res="none required"
7720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7729 $as_echo "$ac_try_echo") >&5
7730 (eval "$ac_link") 2>conftest.er1
7732 grep -v '^ *+' conftest.er1 >conftest.err
7734 cat conftest.err >&5
7735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } && {
7737 test -z "$ac_c_werror_flag" ||
7738 test ! -s conftest.err
7739 } && test -s conftest$ac_exeext && {
7740 test "$cross_compiling" = yes ||
7741 $as_test_x conftest$ac_exeext
7743 ac_cv_search_setproctitle=$ac_res
7745 $as_echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7751 rm -rf conftest.dSYM
7752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7754 if test "${ac_cv_search_setproctitle+set}" = set; then
7758 if test "${ac_cv_search_setproctitle+set}" = set; then
7761 ac_cv_search_setproctitle=no
7764 LIBS=$ac_func_search_save_LIBS
7766 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7767 $as_echo "$ac_cv_search_setproctitle" >&6; }
7768 ac_res=$ac_cv_search_setproctitle
7769 if test "$ac_res" != no; then
7770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7774 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7775 $as_echo_n "checking for library containing dlopen... " >&6; }
7776 if test "${ac_cv_search_dlopen+set}" = set; then
7777 $as_echo_n "(cached) " >&6
7779 ac_func_search_save_LIBS=$LIBS
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7802 for ac_lib in '' dl; do
7803 if test -z "$ac_lib"; then
7804 ac_res="none required"
7807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817 (eval "$ac_link") 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest$ac_exeext && {
7827 test "$cross_compiling" = yes ||
7828 $as_test_x conftest$ac_exeext
7830 ac_cv_search_dlopen=$ac_res
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7838 rm -rf conftest.dSYM
7839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7841 if test "${ac_cv_search_dlopen+set}" = set; then
7845 if test "${ac_cv_search_dlopen+set}" = set; then
7848 ac_cv_search_dlopen=no
7851 LIBS=$ac_func_search_save_LIBS
7853 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7854 $as_echo "$ac_cv_search_dlopen" >&6; }
7855 ac_res=$ac_cv_search_dlopen
7856 if test "$ac_res" != no; then
7857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7861 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7862 $as_echo_n "checking for library containing socket... " >&6; }
7863 if test "${ac_cv_search_socket+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7866 ac_func_search_save_LIBS=$LIBS
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7874 /* Override any GCC internal prototype to avoid an error.
7875 Use char because int might match the return type of a GCC
7876 builtin and then its argument prototype would still apply. */
7889 for ac_lib in '' socket wsock32; do
7890 if test -z "$ac_lib"; then
7891 ac_res="none required"
7894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_link") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest$ac_exeext && {
7914 test "$cross_compiling" = yes ||
7915 $as_test_x conftest$ac_exeext
7917 ac_cv_search_socket=$ac_res
7919 $as_echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7925 rm -rf conftest.dSYM
7926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928 if test "${ac_cv_search_socket+set}" = set; then
7932 if test "${ac_cv_search_socket+set}" = set; then
7935 ac_cv_search_socket=no
7938 LIBS=$ac_func_search_save_LIBS
7940 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7941 $as_echo "$ac_cv_search_socket" >&6; }
7942 ac_res=$ac_cv_search_socket
7943 if test "$ac_res" != no; then
7944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7948 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7949 $as_echo_n "checking for library containing shl_load... " >&6; }
7950 if test "${ac_cv_search_shl_load+set}" = set; then
7951 $as_echo_n "(cached) " >&6
7953 ac_func_search_save_LIBS=$LIBS
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 /* Override any GCC internal prototype to avoid an error.
7962 Use char because int might match the return type of a GCC
7963 builtin and then its argument prototype would still apply. */
7976 for ac_lib in '' dld; do
7977 if test -z "$ac_lib"; then
7978 ac_res="none required"
7981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7990 $as_echo "$ac_try_echo") >&5
7991 (eval "$ac_link") 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest$ac_exeext && {
8001 test "$cross_compiling" = yes ||
8002 $as_test_x conftest$ac_exeext
8004 ac_cv_search_shl_load=$ac_res
8006 $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8012 rm -rf conftest.dSYM
8013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8015 if test "${ac_cv_search_shl_load+set}" = set; then
8019 if test "${ac_cv_search_shl_load+set}" = set; then
8022 ac_cv_search_shl_load=no
8025 LIBS=$ac_func_search_save_LIBS
8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8028 $as_echo "$ac_cv_search_shl_load" >&6; }
8029 ac_res=$ac_cv_search_shl_load
8030 if test "$ac_res" != no; then
8031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8035 # We only use libld in port/dynloader/aix.c
8038 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8039 $as_echo_n "checking for library containing ldopen... " >&6; }
8040 if test "${ac_cv_search_ldopen+set}" = set; then
8041 $as_echo_n "(cached) " >&6
8043 ac_func_search_save_LIBS=$LIBS
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8051 /* Override any GCC internal prototype to avoid an error.
8052 Use char because int might match the return type of a GCC
8053 builtin and then its argument prototype would still apply. */
8066 for ac_lib in '' ld; do
8067 if test -z "$ac_lib"; then
8068 ac_res="none required"
8071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (ac_try="$ac_link"
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081 (eval "$ac_link") 2>conftest.er1
8083 grep -v '^ *+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest$ac_exeext && {
8091 test "$cross_compiling" = yes ||
8092 $as_test_x conftest$ac_exeext
8094 ac_cv_search_ldopen=$ac_res
8096 $as_echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8102 rm -rf conftest.dSYM
8103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105 if test "${ac_cv_search_ldopen+set}" = set; then
8109 if test "${ac_cv_search_ldopen+set}" = set; then
8112 ac_cv_search_ldopen=no
8115 LIBS=$ac_func_search_save_LIBS
8117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8118 $as_echo "$ac_cv_search_ldopen" >&6; }
8119 ac_res=$ac_cv_search_ldopen
8120 if test "$ac_res" != no; then
8121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8127 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8128 $as_echo_n "checking for library containing getopt_long... " >&6; }
8129 if test "${ac_cv_search_getopt_long+set}" = set; then
8130 $as_echo_n "(cached) " >&6
8132 ac_func_search_save_LIBS=$LIBS
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8146 char getopt_long ();
8150 return getopt_long ();
8155 for ac_lib in '' getopt gnugetopt; do
8156 if test -z "$ac_lib"; then
8157 ac_res="none required"
8160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8169 $as_echo "$ac_try_echo") >&5
8170 (eval "$ac_link") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest$ac_exeext && {
8180 test "$cross_compiling" = yes ||
8181 $as_test_x conftest$ac_exeext
8183 ac_cv_search_getopt_long=$ac_res
8185 $as_echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8191 rm -rf conftest.dSYM
8192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8194 if test "${ac_cv_search_getopt_long+set}" = set; then
8198 if test "${ac_cv_search_getopt_long+set}" = set; then
8201 ac_cv_search_getopt_long=no
8204 LIBS=$ac_func_search_save_LIBS
8206 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8207 $as_echo "$ac_cv_search_getopt_long" >&6; }
8208 ac_res=$ac_cv_search_getopt_long
8209 if test "$ac_res" != no; then
8210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8215 $as_echo_n "checking for library containing crypt... " >&6; }
8216 if test "${ac_cv_search_crypt+set}" = set; then
8217 $as_echo_n "(cached) " >&6
8219 ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8242 for ac_lib in '' crypt; do
8243 if test -z "$ac_lib"; then
8244 ac_res="none required"
8247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8256 $as_echo "$ac_try_echo") >&5
8257 (eval "$ac_link") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest$ac_exeext && {
8267 test "$cross_compiling" = yes ||
8268 $as_test_x conftest$ac_exeext
8270 ac_cv_search_crypt=$ac_res
8272 $as_echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8278 rm -rf conftest.dSYM
8279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8281 if test "${ac_cv_search_crypt+set}" = set; then
8285 if test "${ac_cv_search_crypt+set}" = set; then
8288 ac_cv_search_crypt=no
8291 LIBS=$ac_func_search_save_LIBS
8293 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8294 $as_echo "$ac_cv_search_crypt" >&6; }
8295 ac_res=$ac_cv_search_crypt
8296 if test "$ac_res" != no; then
8297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8302 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8303 $as_echo_n "checking for library containing fdatasync... " >&6; }
8304 if test "${ac_cv_search_fdatasync+set}" = set; then
8305 $as_echo_n "(cached) " >&6
8307 ac_func_search_save_LIBS=$LIBS
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8315 /* Override any GCC internal prototype to avoid an error.
8316 Use char because int might match the return type of a GCC
8317 builtin and then its argument prototype would still apply. */
8325 return fdatasync ();
8330 for ac_lib in '' rt posix4; do
8331 if test -z "$ac_lib"; then
8332 ac_res="none required"
8335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (ac_try="$ac_link"
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8344 $as_echo "$ac_try_echo") >&5
8345 (eval "$ac_link") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest$ac_exeext && {
8355 test "$cross_compiling" = yes ||
8356 $as_test_x conftest$ac_exeext
8358 ac_cv_search_fdatasync=$ac_res
8360 $as_echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8366 rm -rf conftest.dSYM
8367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8369 if test "${ac_cv_search_fdatasync+set}" = set; then
8373 if test "${ac_cv_search_fdatasync+set}" = set; then
8376 ac_cv_search_fdatasync=no
8379 LIBS=$ac_func_search_save_LIBS
8381 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8382 $as_echo "$ac_cv_search_fdatasync" >&6; }
8383 ac_res=$ac_cv_search_fdatasync
8384 if test "$ac_res" != no; then
8385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8389 # Required for thread_test.c on Solaris 2.5:
8390 # Other ports use it too (HP-UX) so test unconditionally
8391 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8392 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8393 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8394 $as_echo_n "(cached) " >&6
8396 ac_func_search_save_LIBS=$LIBS
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8404 /* Override any GCC internal prototype to avoid an error.
8405 Use char because int might match the return type of a GCC
8406 builtin and then its argument prototype would still apply. */
8410 char gethostbyname_r ();
8414 return gethostbyname_r ();
8419 for ac_lib in '' nsl; do
8420 if test -z "$ac_lib"; then
8421 ac_res="none required"
8424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_link") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest$ac_exeext && {
8444 test "$cross_compiling" = yes ||
8445 $as_test_x conftest$ac_exeext
8447 ac_cv_search_gethostbyname_r=$ac_res
8449 $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8455 rm -rf conftest.dSYM
8456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8458 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8462 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8465 ac_cv_search_gethostbyname_r=no
8468 LIBS=$ac_func_search_save_LIBS
8470 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8471 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8472 ac_res=$ac_cv_search_gethostbyname_r
8473 if test "$ac_res" != no; then
8474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8479 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8480 $as_echo_n "checking for library containing shmget... " >&6; }
8481 if test "${ac_cv_search_shmget+set}" = set; then
8482 $as_echo_n "(cached) " >&6
8484 ac_func_search_save_LIBS=$LIBS
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8492 /* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply. */
8507 for ac_lib in '' cygipc; do
8508 if test -z "$ac_lib"; then
8509 ac_res="none required"
8512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522 (eval "$ac_link") 2>conftest.er1
8524 grep -v '^ *+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest$ac_exeext && {
8532 test "$cross_compiling" = yes ||
8533 $as_test_x conftest$ac_exeext
8535 ac_cv_search_shmget=$ac_res
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8543 rm -rf conftest.dSYM
8544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8546 if test "${ac_cv_search_shmget+set}" = set; then
8550 if test "${ac_cv_search_shmget+set}" = set; then
8553 ac_cv_search_shmget=no
8556 LIBS=$ac_func_search_save_LIBS
8558 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8559 $as_echo "$ac_cv_search_shmget" >&6; }
8560 ac_res=$ac_cv_search_shmget
8561 if test "$ac_res" != no; then
8562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8567 if test "$with_readline" = yes; then
8570 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8571 $as_echo_n "checking for library containing readline... " >&6; }
8572 if test "${pgac_cv_check_readline+set}" = set; then
8573 $as_echo_n "(cached) " >&6
8575 pgac_cv_check_readline=no
8576 pgac_save_LIBS=$LIBS
8577 if test x"$with_libedit_preferred" != x"yes"
8578 then READLINE_ORDER="-lreadline -ledit"
8579 else READLINE_ORDER="-ledit -lreadline"
8581 for pgac_rllib in $READLINE_ORDER ; do
8582 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8583 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8591 /* Override any GCC internal prototype to avoid an error.
8592 Use char because int might match the return type of a GCC
8593 builtin and then its argument prototype would still apply. */
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (ac_try="$ac_link"
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8613 $as_echo "$ac_try_echo") >&5
8614 (eval "$ac_link") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest$ac_exeext && {
8624 test "$cross_compiling" = yes ||
8625 $as_test_x conftest$ac_exeext
8628 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8629 # recognize dependent libraries; assume curses is needed if we didn't
8630 # find any dependency.
8632 netbsd* | openbsd* | irix*)
8633 if test x"$pgac_lib" = x"" ; then
8634 pgac_lib=" -lcurses"
8638 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8642 $as_echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8648 rm -rf conftest.dSYM
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650 conftest$ac_exeext conftest.$ac_ext
8652 if test "$pgac_cv_check_readline" != no ; then
8656 LIBS=$pgac_save_LIBS
8659 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8660 $as_echo "$pgac_cv_check_readline" >&6; }
8661 if test "$pgac_cv_check_readline" != no ; then
8662 LIBS="$pgac_cv_check_readline $LIBS"
8664 cat >>confdefs.h <<\_ACEOF
8665 #define HAVE_LIBREADLINE 1
8671 if test x"$pgac_cv_check_readline" = x"no"; then
8672 { { $as_echo "$as_me:$LINENO: error: readline library not found
8673 If you have readline already installed, see config.log for details on the
8674 failure. It is possible the compiler isn't looking in the proper directory.
8675 Use --without-readline to disable readline support." >&5
8676 $as_echo "$as_me: error: readline library not found
8677 If you have readline already installed, see config.log for details on the
8678 failure. It is possible the compiler isn't looking in the proper directory.
8679 Use --without-readline to disable readline support." >&2;}
8680 { (exit 1); exit 1; }; }
8684 if test "$with_zlib" = yes; then
8686 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8687 $as_echo_n "checking for inflate in -lz... " >&6; }
8688 if test "${ac_cv_lib_z_inflate+set}" = set; then
8689 $as_echo_n "(cached) " >&6
8691 ac_check_lib_save_LIBS=$LIBS
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8700 /* Override any GCC internal prototype to avoid an error.
8701 Use char because int might match the return type of a GCC
8702 builtin and then its argument prototype would still apply. */
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (ac_try="$ac_link"
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723 (eval "$ac_link") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest$ac_exeext && {
8733 test "$cross_compiling" = yes ||
8734 $as_test_x conftest$ac_exeext
8736 ac_cv_lib_z_inflate=yes
8738 $as_echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_z_inflate=no
8744 rm -rf conftest.dSYM
8745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8746 conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8750 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8751 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8752 cat >>confdefs.h <<_ACEOF
8759 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8760 If you have zlib already installed, see config.log for details on the
8761 failure. It is possible the compiler isn't looking in the proper directory.
8762 Use --without-zlib to disable zlib support." >&5
8763 $as_echo "$as_me: error: zlib library not found
8764 If you have zlib already installed, see config.log for details on the
8765 failure. It is possible the compiler isn't looking in the proper directory.
8766 Use --without-zlib to disable zlib support." >&2;}
8767 { (exit 1); exit 1; }; }
8772 if test "$enable_spinlocks" = yes; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_SPINLOCKS 1
8779 { $as_echo "$as_me:$LINENO: WARNING:
8780 *** Not using spinlocks will cause poor performance." >&5
8781 $as_echo "$as_me: WARNING:
8782 *** Not using spinlocks will cause poor performance." >&2;}
8785 if test "$with_gssapi" = yes ; then
8786 if test "$PORTNAME" != "win32"; then
8787 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8788 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8789 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8790 $as_echo_n "(cached) " >&6
8792 ac_func_search_save_LIBS=$LIBS
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8806 char gss_init_sec_context ();
8810 return gss_init_sec_context ();
8815 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8816 if test -z "$ac_lib"; then
8817 ac_res="none required"
8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830 (eval "$ac_link") 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest$ac_exeext && {
8840 test "$cross_compiling" = yes ||
8841 $as_test_x conftest$ac_exeext
8843 ac_cv_search_gss_init_sec_context=$ac_res
8845 $as_echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8851 rm -rf conftest.dSYM
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8858 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8861 ac_cv_search_gss_init_sec_context=no
8864 LIBS=$ac_func_search_save_LIBS
8866 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8867 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8868 ac_res=$ac_cv_search_gss_init_sec_context
8869 if test "$ac_res" != no; then
8870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8873 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8874 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8875 { (exit 1); exit 1; }; }
8879 LIBS="$LIBS -lgssapi32"
8883 if test "$with_krb5" = yes ; then
8884 if test "$PORTNAME" != "win32"; then
8885 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8886 $as_echo_n "checking for library containing com_err... " >&6; }
8887 if test "${ac_cv_search_com_err+set}" = set; then
8888 $as_echo_n "(cached) " >&6
8890 ac_func_search_save_LIBS=$LIBS
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8898 /* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8913 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8914 if test -z "$ac_lib"; then
8915 ac_res="none required"
8918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (ac_try="$ac_link"
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927 $as_echo "$ac_try_echo") >&5
8928 (eval "$ac_link") 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } && {
8935 test -z "$ac_c_werror_flag" ||
8936 test ! -s conftest.err
8937 } && test -s conftest$ac_exeext && {
8938 test "$cross_compiling" = yes ||
8939 $as_test_x conftest$ac_exeext
8941 ac_cv_search_com_err=$ac_res
8943 $as_echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8949 rm -rf conftest.dSYM
8950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8952 if test "${ac_cv_search_com_err+set}" = set; then
8956 if test "${ac_cv_search_com_err+set}" = set; then
8959 ac_cv_search_com_err=no
8962 LIBS=$ac_func_search_save_LIBS
8964 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8965 $as_echo "$ac_cv_search_com_err" >&6; }
8966 ac_res=$ac_cv_search_com_err
8967 if test "$ac_res" != no; then
8968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8971 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8972 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8973 { (exit 1); exit 1; }; }
8976 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8977 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8978 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8981 ac_func_search_save_LIBS=$LIBS
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8989 /* Override any GCC internal prototype to avoid an error.
8990 Use char because int might match the return type of a GCC
8991 builtin and then its argument prototype would still apply. */
8995 char krb5_sendauth ();
8999 return krb5_sendauth ();
9004 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9005 if test -z "$ac_lib"; then
9006 ac_res="none required"
9009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019 (eval "$ac_link") 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest$ac_exeext && {
9029 test "$cross_compiling" = yes ||
9030 $as_test_x conftest$ac_exeext
9032 ac_cv_search_krb5_sendauth=$ac_res
9034 $as_echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9040 rm -rf conftest.dSYM
9041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9047 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9050 ac_cv_search_krb5_sendauth=no
9053 LIBS=$ac_func_search_save_LIBS
9055 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9056 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9057 ac_res=$ac_cv_search_krb5_sendauth
9058 if test "$ac_res" != no; then
9059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9062 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9063 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9064 { (exit 1); exit 1; }; }
9068 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9069 $as_echo_n "checking for library containing com_err... " >&6; }
9070 if test "${ac_cv_search_com_err+set}" = set; then
9071 $as_echo_n "(cached) " >&6
9073 ac_func_search_save_LIBS=$LIBS
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9096 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9097 if test -z "$ac_lib"; then
9098 ac_res="none required"
9101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9103 rm -f conftest.$ac_objext conftest$ac_exeext
9104 if { (ac_try="$ac_link"
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110 $as_echo "$ac_try_echo") >&5
9111 (eval "$ac_link") 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest$ac_exeext && {
9121 test "$cross_compiling" = yes ||
9122 $as_test_x conftest$ac_exeext
9124 ac_cv_search_com_err=$ac_res
9126 $as_echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9132 rm -rf conftest.dSYM
9133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9135 if test "${ac_cv_search_com_err+set}" = set; then
9139 if test "${ac_cv_search_com_err+set}" = set; then
9142 ac_cv_search_com_err=no
9145 LIBS=$ac_func_search_save_LIBS
9147 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9148 $as_echo "$ac_cv_search_com_err" >&6; }
9149 ac_res=$ac_cv_search_com_err
9150 if test "$ac_res" != no; then
9151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9154 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9155 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9156 { (exit 1); exit 1; }; }
9162 if test "$with_openssl" = yes ; then
9163 if test "$PORTNAME" != "win32"; then
9165 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9166 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9167 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9168 $as_echo_n "(cached) " >&6
9170 ac_check_lib_save_LIBS=$LIBS
9171 LIBS="-lcrypto $LIBS"
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9185 char CRYPTO_new_ex_data ();
9189 return CRYPTO_new_ex_data ();
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202 (eval "$ac_link") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest$ac_exeext && {
9212 test "$cross_compiling" = yes ||
9213 $as_test_x conftest$ac_exeext
9215 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9217 $as_echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9223 rm -rf conftest.dSYM
9224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9225 conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9229 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9230 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9231 cat >>confdefs.h <<_ACEOF
9232 #define HAVE_LIBCRYPTO 1
9235 LIBS="-lcrypto $LIBS"
9238 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9239 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9240 { (exit 1); exit 1; }; }
9244 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9245 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9246 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9247 $as_echo_n "(cached) " >&6
9249 ac_check_lib_save_LIBS=$LIBS
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9258 /* Override any GCC internal prototype to avoid an error.
9259 Use char because int might match the return type of a GCC
9260 builtin and then its argument prototype would still apply. */
9264 char SSL_library_init ();
9268 return SSL_library_init ();
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (ac_try="$ac_link"
9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277 *) ac_try_echo=$ac_try;;
9279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9280 $as_echo "$ac_try_echo") >&5
9281 (eval "$ac_link") 2>conftest.er1
9283 grep -v '^ *+' conftest.er1 >conftest.err
9285 cat conftest.err >&5
9286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } && {
9288 test -z "$ac_c_werror_flag" ||
9289 test ! -s conftest.err
9290 } && test -s conftest$ac_exeext && {
9291 test "$cross_compiling" = yes ||
9292 $as_test_x conftest$ac_exeext
9294 ac_cv_lib_ssl_SSL_library_init=yes
9296 $as_echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_cv_lib_ssl_SSL_library_init=no
9302 rm -rf conftest.dSYM
9303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9308 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9309 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE_LIBSSL 1
9317 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9318 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9319 { (exit 1); exit 1; }; }
9323 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9324 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9325 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9326 $as_echo_n "(cached) " >&6
9328 ac_func_search_save_LIBS=$LIBS
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9336 /* Override any GCC internal prototype to avoid an error.
9337 Use char because int might match the return type of a GCC
9338 builtin and then its argument prototype would still apply. */
9342 char CRYPTO_new_ex_data ();
9346 return CRYPTO_new_ex_data ();
9351 for ac_lib in '' eay32 crypto; do
9352 if test -z "$ac_lib"; then
9353 ac_res="none required"
9356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (ac_try="$ac_link"
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9365 $as_echo "$ac_try_echo") >&5
9366 (eval "$ac_link") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1 >conftest.err
9370 cat conftest.err >&5
9371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest$ac_exeext && {
9376 test "$cross_compiling" = yes ||
9377 $as_test_x conftest$ac_exeext
9379 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9381 $as_echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9387 rm -rf conftest.dSYM
9388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9390 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9394 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9397 ac_cv_search_CRYPTO_new_ex_data=no
9400 LIBS=$ac_func_search_save_LIBS
9402 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9403 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9404 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9405 if test "$ac_res" != no; then
9406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9409 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9410 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9411 { (exit 1); exit 1; }; }
9414 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9415 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9416 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9417 $as_echo_n "(cached) " >&6
9419 ac_func_search_save_LIBS=$LIBS
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9433 char SSL_library_init ();
9437 return SSL_library_init ();
9442 for ac_lib in '' ssleay32 ssl; do
9443 if test -z "$ac_lib"; then
9444 ac_res="none required"
9447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456 $as_echo "$ac_try_echo") >&5
9457 (eval "$ac_link") 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest$ac_exeext && {
9467 test "$cross_compiling" = yes ||
9468 $as_test_x conftest$ac_exeext
9470 ac_cv_search_SSL_library_init=$ac_res
9472 $as_echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9478 rm -rf conftest.dSYM
9479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9485 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9488 ac_cv_search_SSL_library_init=no
9491 LIBS=$ac_func_search_save_LIBS
9493 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9494 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9495 ac_res=$ac_cv_search_SSL_library_init
9496 if test "$ac_res" != no; then
9497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9500 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9501 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9502 { (exit 1); exit 1; }; }
9508 if test "$with_pam" = yes ; then
9510 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9511 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9512 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9513 $as_echo_n "(cached) " >&6
9515 ac_check_lib_save_LIBS=$LIBS
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9534 return pam_start ();
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9546 $as_echo "$ac_try_echo") >&5
9547 (eval "$ac_link") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext && {
9557 test "$cross_compiling" = yes ||
9558 $as_test_x conftest$ac_exeext
9560 ac_cv_lib_pam_pam_start=yes
9562 $as_echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_lib_pam_pam_start=no
9568 rm -rf conftest.dSYM
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9574 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9575 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9576 cat >>confdefs.h <<_ACEOF
9577 #define HAVE_LIBPAM 1
9583 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9584 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9585 { (exit 1); exit 1; }; }
9590 if test "$with_libxml" = yes ; then
9592 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9593 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9594 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9595 $as_echo_n "(cached) " >&6
9597 ac_check_lib_save_LIBS=$LIBS
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9612 char xmlSaveToBuffer ();
9616 return xmlSaveToBuffer ();
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9628 $as_echo "$ac_try_echo") >&5
9629 (eval "$ac_link") 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext && {
9639 test "$cross_compiling" = yes ||
9640 $as_test_x conftest$ac_exeext
9642 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9644 $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_cv_lib_xml2_xmlSaveToBuffer=no
9650 rm -rf conftest.dSYM
9651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9656 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9657 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9658 cat >>confdefs.h <<_ACEOF
9659 #define HAVE_LIBXML2 1
9665 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9666 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9667 { (exit 1); exit 1; }; }
9672 if test "$with_libxslt" = yes ; then
9674 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9675 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9676 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9677 $as_echo_n "(cached) " >&6
9679 ac_check_lib_save_LIBS=$LIBS
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9694 char xsltCleanupGlobals ();
9698 return xsltCleanupGlobals ();
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710 $as_echo "$ac_try_echo") >&5
9711 (eval "$ac_link") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest$ac_exeext && {
9721 test "$cross_compiling" = yes ||
9722 $as_test_x conftest$ac_exeext
9724 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9726 $as_echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9729 ac_cv_lib_xslt_xsltCleanupGlobals=no
9732 rm -rf conftest.dSYM
9733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9738 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9739 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9740 cat >>confdefs.h <<_ACEOF
9741 #define HAVE_LIBXSLT 1
9747 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9748 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9749 { (exit 1); exit 1; }; }
9754 # for contrib/sepgsql
9755 if test "$with_selinux" = yes; then
9757 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9758 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9759 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9760 $as_echo_n "(cached) " >&6
9762 ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-lselinux $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9777 char selinux_status_open ();
9781 return selinux_status_open ();
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_link") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest$ac_exeext && {
9804 test "$cross_compiling" = yes ||
9805 $as_test_x conftest$ac_exeext
9807 ac_cv_lib_selinux_selinux_status_open=yes
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_lib_selinux_selinux_status_open=no
9815 rm -rf conftest.dSYM
9816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9817 conftest$ac_exeext conftest.$ac_ext
9818 LIBS=$ac_check_lib_save_LIBS
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9821 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9822 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9823 cat >>confdefs.h <<_ACEOF
9824 #define HAVE_LIBSELINUX 1
9827 LIBS="-lselinux $LIBS"
9830 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9831 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9832 { (exit 1); exit 1; }; }
9837 # for contrib/uuid-ossp
9838 if test "$with_ossp_uuid" = yes ; then
9839 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9840 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9841 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9842 $as_echo_n "(cached) " >&6
9844 ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-lossp-uuid $LIBS"
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9859 char uuid_export ();
9863 return uuid_export ();
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9875 $as_echo "$ac_try_echo") >&5
9876 (eval "$ac_link") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1 >conftest.err
9880 cat conftest.err >&5
9881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } && {
9883 test -z "$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 } && test -s conftest$ac_exeext && {
9886 test "$cross_compiling" = yes ||
9887 $as_test_x conftest$ac_exeext
9889 ac_cv_lib_ossp_uuid_uuid_export=yes
9891 $as_echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9894 ac_cv_lib_ossp_uuid_uuid_export=no
9897 rm -rf conftest.dSYM
9898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899 conftest$ac_exeext conftest.$ac_ext
9900 LIBS=$ac_check_lib_save_LIBS
9902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9903 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9904 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9905 OSSP_UUID_LIBS="-lossp-uuid"
9907 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9908 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9909 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9910 $as_echo_n "(cached) " >&6
9912 ac_check_lib_save_LIBS=$LIBS
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9927 char uuid_export ();
9931 return uuid_export ();
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9943 $as_echo "$ac_try_echo") >&5
9944 (eval "$ac_link") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest$ac_exeext && {
9954 test "$cross_compiling" = yes ||
9955 $as_test_x conftest$ac_exeext
9957 ac_cv_lib_uuid_uuid_export=yes
9959 $as_echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_cv_lib_uuid_uuid_export=no
9965 rm -rf conftest.dSYM
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967 conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9971 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9972 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9973 OSSP_UUID_LIBS="-luuid"
9975 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9976 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9977 { (exit 1); exit 1; }; }
9990 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9991 $as_echo_n "checking for ANSI C header files... " >&6; }
9992 if test "${ac_cv_header_stdc+set}" = set; then
9993 $as_echo_n "(cached) " >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <stdlib.h>
10002 #include <stdarg.h>
10003 #include <string.h>
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10021 $as_echo "$ac_try_echo") >&5
10022 (eval "$ac_compile") 2>conftest.er1
10024 grep -v '^ *+' conftest.er1 >conftest.err
10026 cat conftest.err >&5
10027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest.$ac_objext; then
10032 ac_cv_header_stdc=yes
10034 $as_echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_cv_header_stdc=no
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042 if test $ac_cv_header_stdc = yes; then
10043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 #include <string.h>
10053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10054 $EGREP "memchr" >/dev/null 2>&1; then
10057 ac_cv_header_stdc=no
10063 if test $ac_cv_header_stdc = yes; then
10064 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10065 cat >conftest.$ac_ext <<_ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 #include <stdlib.h>
10074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10075 $EGREP "free" >/dev/null 2>&1; then
10078 ac_cv_header_stdc=no
10084 if test $ac_cv_header_stdc = yes; then
10085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10086 if test "$cross_compiling" = yes; then
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10096 #include <stdlib.h>
10097 #if ((' ' & 0x0FF) == 0x020)
10098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10101 # define ISLOWER(c) \
10102 (('a' <= (c) && (c) <= 'i') \
10103 || ('j' <= (c) && (c) <= 'r') \
10104 || ('s' <= (c) && (c) <= 'z'))
10105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10113 for (i = 0; i < 256; i++)
10114 if (XOR (islower (i), ISLOWER (i))
10115 || toupper (i) != TOUPPER (i))
10120 rm -f conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128 (eval "$ac_link") 2>&5
10130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10132 { (case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138 (eval "$ac_try") 2>&5
10140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10144 $as_echo "$as_me: program exited with status $ac_status" >&5
10145 $as_echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ( exit $ac_status )
10149 ac_cv_header_stdc=no
10151 rm -rf conftest.dSYM
10152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10158 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10159 $as_echo "$ac_cv_header_stdc" >&6; }
10160 if test $ac_cv_header_stdc = yes; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define STDC_HEADERS 1
10168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10178 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10179 inttypes.h stdint.h unistd.h
10181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10183 $as_echo_n "checking for $ac_header... " >&6; }
10184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10185 $as_echo_n "(cached) " >&6
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193 $ac_includes_default
10195 #include <$ac_header>
10197 rm -f conftest.$ac_objext
10198 if { (ac_try="$ac_compile"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_compile") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest.$ac_objext; then
10215 eval "$as_ac_Header=yes"
10217 $as_echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 eval "$as_ac_Header=no"
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 ac_res=`eval 'as_val=${'$as_ac_Header'}
10226 $as_echo "$as_val"'`
10227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10229 as_val=`eval 'as_val=${'$as_ac_Header'}
10230 $as_echo "$as_val"'`
10231 if test "x$as_val" = x""yes; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10269 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
10271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10273 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10274 $as_echo_n "checking for $ac_header... " >&6; }
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276 $as_echo_n "(cached) " >&6
10278 ac_res=`eval 'as_val=${'$as_ac_Header'}
10279 $as_echo "$as_val"'`
10280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10281 $as_echo "$ac_res" >&6; }
10283 # Is the header compilable?
10284 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285 $as_echo_n "checking $ac_header usability... " >&6; }
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 $ac_includes_default
10293 #include <$ac_header>
10295 rm -f conftest.$ac_objext
10296 if { (ac_try="$ac_compile"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10302 $as_echo "$ac_try_echo") >&5
10303 (eval "$ac_compile") 2>conftest.er1
10305 grep -v '^ *+' conftest.er1 >conftest.err
10307 cat conftest.err >&5
10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && {
10310 test -z "$ac_c_werror_flag" ||
10311 test ! -s conftest.err
10312 } && test -s conftest.$ac_objext; then
10313 ac_header_compiler=yes
10315 $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_header_compiler=no
10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10323 $as_echo "$ac_header_compiler" >&6; }
10325 # Is the header present?
10326 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10327 $as_echo_n "checking $ac_header presence... " >&6; }
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 #include <$ac_header>
10336 if { (ac_try="$ac_cpp conftest.$ac_ext"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10342 $as_echo "$ac_try_echo") >&5
10343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } >/dev/null && {
10350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10353 ac_header_preproc=yes
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_header_preproc=no
10361 rm -f conftest.err conftest.$ac_ext
10362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10363 $as_echo "$ac_header_preproc" >&6; }
10365 # So? What about this header?
10366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10372 ac_header_preproc=yes
10375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10376 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10378 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10380 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10386 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10388 ## ---------------------------------------- ##
10389 ## Report this to pgsql-bugs@postgresql.org ##
10390 ## ---------------------------------------- ##
10392 ) | sed "s/^/$as_me: WARNING: /" >&2
10395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10396 $as_echo_n "checking for $ac_header... " >&6; }
10397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398 $as_echo_n "(cached) " >&6
10400 eval "$as_ac_Header=\$ac_header_preproc"
10402 ac_res=`eval 'as_val=${'$as_ac_Header'}
10403 $as_echo "$as_val"'`
10404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10405 $as_echo "$ac_res" >&6; }
10408 as_val=`eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'`
10410 if test "x$as_val" = x""yes; then
10411 cat >>confdefs.h <<_ACEOF
10412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10420 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10421 # is included first.
10423 for ac_header in net/if.h
10425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10427 $as_echo_n "checking for $ac_header... " >&6; }
10428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10429 $as_echo_n "(cached) " >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 $ac_includes_default
10438 #ifdef HAVE_SYS_SOCKET_H
10439 #include <sys/socket.h>
10443 #include <$ac_header>
10445 rm -f conftest.$ac_objext
10446 if { (ac_try="$ac_compile"
10447 case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10452 $as_echo "$ac_try_echo") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1 >conftest.err
10457 cat conftest.err >&5
10458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10463 eval "$as_ac_Header=yes"
10465 $as_echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 eval "$as_ac_Header=no"
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 ac_res=`eval 'as_val=${'$as_ac_Header'}
10474 $as_echo "$as_val"'`
10475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10476 $as_echo "$ac_res" >&6; }
10477 as_val=`eval 'as_val=${'$as_ac_Header'}
10478 $as_echo "$as_val"'`
10479 if test "x$as_val" = x""yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10489 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10490 # netinet/in.h is included first.
10492 for ac_header in netinet/in.h
10494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 $as_echo_n "checking for $ac_header... " >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 $as_echo_n "(cached) " >&6
10501 ac_res=`eval 'as_val=${'$as_ac_Header'}
10502 $as_echo "$as_val"'`
10503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10504 $as_echo "$ac_res" >&6; }
10506 # Is the header compilable?
10507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10508 $as_echo_n "checking $ac_header usability... " >&6; }
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 $ac_includes_default
10516 #include <$ac_header>
10518 rm -f conftest.$ac_objext
10519 if { (ac_try="$ac_compile"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10525 $as_echo "$ac_try_echo") >&5
10526 (eval "$ac_compile") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest.$ac_objext; then
10536 ac_header_compiler=yes
10538 $as_echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 ac_header_compiler=no
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10546 $as_echo "$ac_header_compiler" >&6; }
10548 # Is the header present?
10549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10550 $as_echo_n "checking $ac_header presence... " >&6; }
10551 cat >conftest.$ac_ext <<_ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 #include <$ac_header>
10559 if { (ac_try="$ac_cpp conftest.$ac_ext"
10560 case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10565 $as_echo "$ac_try_echo") >&5
10566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } >/dev/null && {
10573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10576 ac_header_preproc=yes
10578 $as_echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_header_preproc=no
10584 rm -f conftest.err conftest.$ac_ext
10585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10586 $as_echo "$ac_header_preproc" >&6; }
10588 # So? What about this header?
10589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10595 ac_header_preproc=yes
10598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10601 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10605 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10611 ## ---------------------------------------- ##
10612 ## Report this to pgsql-bugs@postgresql.org ##
10613 ## ---------------------------------------- ##
10615 ) | sed "s/^/$as_me: WARNING: /" >&2
10618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10619 $as_echo_n "checking for $ac_header... " >&6; }
10620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621 $as_echo_n "(cached) " >&6
10623 eval "$as_ac_Header=\$ac_header_preproc"
10625 ac_res=`eval 'as_val=${'$as_ac_Header'}
10626 $as_echo "$as_val"'`
10627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10628 $as_echo "$ac_res" >&6; }
10631 as_val=`eval 'as_val=${'$as_ac_Header'}
10632 $as_echo "$as_val"'`
10633 if test "x$as_val" = x""yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10643 for ac_header in netinet/tcp.h
10645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 $as_echo_n "checking for $ac_header... " >&6; }
10648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649 $as_echo_n "(cached) " >&6
10651 cat >conftest.$ac_ext <<_ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 $ac_includes_default
10658 #ifdef HAVE_NETINET_IN_H
10659 #include <netinet/in.h>
10663 #include <$ac_header>
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_compile") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1 >conftest.err
10677 cat conftest.err >&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest.$ac_objext; then
10683 eval "$as_ac_Header=yes"
10685 $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 eval "$as_ac_Header=no"
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10693 ac_res=`eval 'as_val=${'$as_ac_Header'}
10694 $as_echo "$as_val"'`
10695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10696 $as_echo "$ac_res" >&6; }
10697 as_val=`eval 'as_val=${'$as_ac_Header'}
10698 $as_echo "$as_val"'`
10699 if test "x$as_val" = x""yes; then
10700 cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10709 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10711 for ac_header in readline/readline.h
10713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10716 $as_echo_n "checking for $ac_header... " >&6; }
10717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10718 $as_echo_n "(cached) " >&6
10720 ac_res=`eval 'as_val=${'$as_ac_Header'}
10721 $as_echo "$as_val"'`
10722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10723 $as_echo "$ac_res" >&6; }
10725 # Is the header compilable?
10726 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10727 $as_echo_n "checking $ac_header usability... " >&6; }
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 $ac_includes_default
10735 #include <$ac_header>
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744 $as_echo "$ac_try_echo") >&5
10745 (eval "$ac_compile") 2>conftest.er1
10747 grep -v '^ *+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest.$ac_objext; then
10755 ac_header_compiler=yes
10757 $as_echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ac_header_compiler=no
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 $as_echo "$ac_header_compiler" >&6; }
10767 # Is the header present?
10768 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 $as_echo_n "checking $ac_header presence... " >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <$ac_header>
10778 if { (ac_try="$ac_cpp conftest.$ac_ext"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } >/dev/null && {
10792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10795 ac_header_preproc=yes
10797 $as_echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ac_header_preproc=no
10803 rm -f conftest.err conftest.$ac_ext
10804 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 $as_echo "$ac_header_preproc" >&6; }
10807 # So? What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814 ac_header_preproc=yes
10817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10820 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10824 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10830 ## ---------------------------------------- ##
10831 ## Report this to pgsql-bugs@postgresql.org ##
10832 ## ---------------------------------------- ##
10834 ) | sed "s/^/$as_me: WARNING: /" >&2
10837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10838 $as_echo_n "checking for $ac_header... " >&6; }
10839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10840 $as_echo_n "(cached) " >&6
10842 eval "$as_ac_Header=\$ac_header_preproc"
10844 ac_res=`eval 'as_val=${'$as_ac_Header'}
10845 $as_echo "$as_val"'`
10846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10847 $as_echo "$ac_res" >&6; }
10850 as_val=`eval 'as_val=${'$as_ac_Header'}
10851 $as_echo "$as_val"'`
10852 if test "x$as_val" = x""yes; then
10853 cat >>confdefs.h <<_ACEOF
10854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10859 for ac_header in readline.h
10861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10864 $as_echo_n "checking for $ac_header... " >&6; }
10865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 $as_echo_n "(cached) " >&6
10868 ac_res=`eval 'as_val=${'$as_ac_Header'}
10869 $as_echo "$as_val"'`
10870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10871 $as_echo "$ac_res" >&6; }
10873 # Is the header compilable?
10874 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10875 $as_echo_n "checking $ac_header usability... " >&6; }
10876 cat >conftest.$ac_ext <<_ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 $ac_includes_default
10883 #include <$ac_header>
10885 rm -f conftest.$ac_objext
10886 if { (ac_try="$ac_compile"
10887 case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10892 $as_echo "$ac_try_echo") >&5
10893 (eval "$ac_compile") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1 >conftest.err
10897 cat conftest.err >&5
10898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && {
10900 test -z "$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 } && test -s conftest.$ac_objext; then
10903 ac_header_compiler=yes
10905 $as_echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 ac_header_compiler=no
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10913 $as_echo "$ac_header_compiler" >&6; }
10915 # Is the header present?
10916 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10917 $as_echo_n "checking $ac_header presence... " >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <$ac_header>
10926 if { (ac_try="$ac_cpp conftest.$ac_ext"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null && {
10940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10943 ac_header_preproc=yes
10945 $as_echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_header_preproc=no
10951 rm -f conftest.err conftest.$ac_ext
10952 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10953 $as_echo "$ac_header_preproc" >&6; }
10955 # So? What about this header?
10956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10959 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10961 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10962 ac_header_preproc=yes
10965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10970 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10972 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10974 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10976 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10978 ## ---------------------------------------- ##
10979 ## Report this to pgsql-bugs@postgresql.org ##
10980 ## ---------------------------------------- ##
10982 ) | sed "s/^/$as_me: WARNING: /" >&2
10985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 $as_echo_n "checking for $ac_header... " >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 $as_echo_n "(cached) " >&6
10990 eval "$as_ac_Header=\$ac_header_preproc"
10992 ac_res=`eval 'as_val=${'$as_ac_Header'}
10993 $as_echo "$as_val"'`
10994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10995 $as_echo "$ac_res" >&6; }
10998 as_val=`eval 'as_val=${'$as_ac_Header'}
10999 $as_echo "$as_val"'`
11000 if test "x$as_val" = x""yes; then
11001 cat >>confdefs.h <<_ACEOF
11002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11006 { { $as_echo "$as_me:$LINENO: error: readline header not found
11007 If you have readline already installed, see config.log for details on the
11008 failure. It is possible the compiler isn't looking in the proper directory.
11009 Use --without-readline to disable readline support." >&5
11010 $as_echo "$as_me: error: readline header not found
11011 If you have readline already installed, see config.log for details on the
11012 failure. It is possible the compiler isn't looking in the proper directory.
11013 Use --without-readline to disable readline support." >&2;}
11014 { (exit 1); exit 1; }; }
11024 for ac_header in readline/history.h
11026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11029 $as_echo_n "checking for $ac_header... " >&6; }
11030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11031 $as_echo_n "(cached) " >&6
11033 ac_res=`eval 'as_val=${'$as_ac_Header'}
11034 $as_echo "$as_val"'`
11035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11036 $as_echo "$ac_res" >&6; }
11038 # Is the header compilable?
11039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11040 $as_echo_n "checking $ac_header usability... " >&6; }
11041 cat >conftest.$ac_ext <<_ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 $ac_includes_default
11048 #include <$ac_header>
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11068 ac_header_compiler=yes
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_header_compiler=no
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11078 $as_echo "$ac_header_compiler" >&6; }
11080 # Is the header present?
11081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11082 $as_echo_n "checking $ac_header presence... " >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <$ac_header>
11091 if { (ac_try="$ac_cpp conftest.$ac_ext"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11097 $as_echo "$ac_try_echo") >&5
11098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } >/dev/null && {
11105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11108 ac_header_preproc=yes
11110 $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ac_header_preproc=no
11116 rm -f conftest.err conftest.$ac_ext
11117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11118 $as_echo "$ac_header_preproc" >&6; }
11120 # So? What about this header?
11121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11127 ac_header_preproc=yes
11130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11143 ## ---------------------------------------- ##
11144 ## Report this to pgsql-bugs@postgresql.org ##
11145 ## ---------------------------------------- ##
11147 ) | sed "s/^/$as_me: WARNING: /" >&2
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 $as_echo_n "checking for $ac_header... " >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 $as_echo_n "(cached) " >&6
11155 eval "$as_ac_Header=\$ac_header_preproc"
11157 ac_res=`eval 'as_val=${'$as_ac_Header'}
11158 $as_echo "$as_val"'`
11159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11160 $as_echo "$ac_res" >&6; }
11163 as_val=`eval 'as_val=${'$as_ac_Header'}
11164 $as_echo "$as_val"'`
11165 if test "x$as_val" = x""yes; then
11166 cat >>confdefs.h <<_ACEOF
11167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11172 for ac_header in history.h
11174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 $as_echo_n "checking for $ac_header... " >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 $as_echo_n "(cached) " >&6
11181 ac_res=`eval 'as_val=${'$as_ac_Header'}
11182 $as_echo "$as_val"'`
11183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11184 $as_echo "$ac_res" >&6; }
11186 # Is the header compilable?
11187 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11188 $as_echo_n "checking $ac_header usability... " >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 $ac_includes_default
11196 #include <$ac_header>
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11205 $as_echo "$ac_try_echo") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest.$ac_objext; then
11216 ac_header_compiler=yes
11218 $as_echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 ac_header_compiler=no
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11226 $as_echo "$ac_header_compiler" >&6; }
11228 # Is the header present?
11229 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11230 $as_echo_n "checking $ac_header presence... " >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 #include <$ac_header>
11239 if { (ac_try="$ac_cpp conftest.$ac_ext"
11240 case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11245 $as_echo "$ac_try_echo") >&5
11246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11248 grep -v '^ *+' conftest.er1 >conftest.err
11250 cat conftest.err >&5
11251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } >/dev/null && {
11253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11256 ac_header_preproc=yes
11258 $as_echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_preproc=no
11264 rm -f conftest.err conftest.$ac_ext
11265 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 $as_echo "$ac_header_preproc" >&6; }
11268 # So? What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11291 ## ---------------------------------------- ##
11292 ## Report this to pgsql-bugs@postgresql.org ##
11293 ## ---------------------------------------- ##
11295 ) | sed "s/^/$as_me: WARNING: /" >&2
11298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 $as_echo_n "checking for $ac_header... " >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 $as_echo_n "(cached) " >&6
11303 eval "$as_ac_Header=\$ac_header_preproc"
11305 ac_res=`eval 'as_val=${'$as_ac_Header'}
11306 $as_echo "$as_val"'`
11307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11308 $as_echo "$ac_res" >&6; }
11311 as_val=`eval 'as_val=${'$as_ac_Header'}
11312 $as_echo "$as_val"'`
11313 if test "x$as_val" = x""yes; then
11314 cat >>confdefs.h <<_ACEOF
11315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11319 { { $as_echo "$as_me:$LINENO: error: history header not found
11320 If you have readline already installed, see config.log for details on the
11321 failure. It is possible the compiler isn't looking in the proper directory.
11322 Use --without-readline to disable readline support." >&5
11323 $as_echo "$as_me: error: history header not found
11324 If you have readline already installed, see config.log for details on the
11325 failure. It is possible the compiler isn't looking in the proper directory.
11326 Use --without-readline to disable readline support." >&2;}
11327 { (exit 1); exit 1; }; }
11338 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11339 # Some installations of libedit usurp /usr/include/readline/, which seems
11340 # bad practice, since in combined installations readline will have its headers
11341 # there. We might have to resort to AC_EGREP checks to make sure we found
11342 # the proper header...
11344 for ac_header in editline/readline.h
11346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11348 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11349 $as_echo_n "checking for $ac_header... " >&6; }
11350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11351 $as_echo_n "(cached) " >&6
11353 ac_res=`eval 'as_val=${'$as_ac_Header'}
11354 $as_echo "$as_val"'`
11355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11356 $as_echo "$ac_res" >&6; }
11358 # Is the header compilable?
11359 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 $as_echo_n "checking $ac_header usability... " >&6; }
11361 cat >conftest.$ac_ext <<_ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11368 #include <$ac_header>
11370 rm -f conftest.$ac_objext
11371 if { (ac_try="$ac_compile"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11377 $as_echo "$ac_try_echo") >&5
11378 (eval "$ac_compile") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } && {
11385 test -z "$ac_c_werror_flag" ||
11386 test ! -s conftest.err
11387 } && test -s conftest.$ac_objext; then
11388 ac_header_compiler=yes
11390 $as_echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_header_compiler=no
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 $as_echo "$ac_header_compiler" >&6; }
11400 # Is the header present?
11401 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 $as_echo_n "checking $ac_header presence... " >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 #include <$ac_header>
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } >/dev/null && {
11425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11428 ac_header_preproc=yes
11430 $as_echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ac_header_preproc=no
11436 rm -f conftest.err conftest.$ac_ext
11437 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 $as_echo "$ac_header_preproc" >&6; }
11440 # So? What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447 ac_header_preproc=yes
11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11453 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11457 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463 ## ---------------------------------------- ##
11464 ## Report this to pgsql-bugs@postgresql.org ##
11465 ## ---------------------------------------- ##
11467 ) | sed "s/^/$as_me: WARNING: /" >&2
11470 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 $as_echo_n "checking for $ac_header... " >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 $as_echo_n "(cached) " >&6
11475 eval "$as_ac_Header=\$ac_header_preproc"
11477 ac_res=`eval 'as_val=${'$as_ac_Header'}
11478 $as_echo "$as_val"'`
11479 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11480 $as_echo "$ac_res" >&6; }
11483 as_val=`eval 'as_val=${'$as_ac_Header'}
11484 $as_echo "$as_val"'`
11485 if test "x$as_val" = x""yes; then
11486 cat >>confdefs.h <<_ACEOF
11487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492 for ac_header in readline.h
11494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11497 $as_echo_n "checking for $ac_header... " >&6; }
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499 $as_echo_n "(cached) " >&6
11501 ac_res=`eval 'as_val=${'$as_ac_Header'}
11502 $as_echo "$as_val"'`
11503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11504 $as_echo "$ac_res" >&6; }
11506 # Is the header compilable?
11507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 $as_echo_n "checking $ac_header usability... " >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11525 $as_echo "$ac_try_echo") >&5
11526 (eval "$ac_compile") 2>conftest.er1
11528 grep -v '^ *+' conftest.er1 >conftest.err
11530 cat conftest.err >&5
11531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest.$ac_objext; then
11536 ac_header_compiler=yes
11538 $as_echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_header_compiler=no
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11546 $as_echo "$ac_header_compiler" >&6; }
11548 # Is the header present?
11549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11550 $as_echo_n "checking $ac_header presence... " >&6; }
11551 cat >conftest.$ac_ext <<_ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11557 #include <$ac_header>
11559 if { (ac_try="$ac_cpp conftest.$ac_ext"
11560 case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11565 $as_echo "$ac_try_echo") >&5
11566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11568 grep -v '^ *+' conftest.er1 >conftest.err
11570 cat conftest.err >&5
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } >/dev/null && {
11573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11574 test ! -s conftest.err
11576 ac_header_preproc=yes
11578 $as_echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_header_preproc=no
11584 rm -f conftest.err conftest.$ac_ext
11585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11586 $as_echo "$ac_header_preproc" >&6; }
11588 # So? What about this header?
11589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11595 ac_header_preproc=yes
11598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11611 ## ---------------------------------------- ##
11612 ## Report this to pgsql-bugs@postgresql.org ##
11613 ## ---------------------------------------- ##
11615 ) | sed "s/^/$as_me: WARNING: /" >&2
11618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 $as_echo_n "checking for $ac_header... " >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621 $as_echo_n "(cached) " >&6
11623 eval "$as_ac_Header=\$ac_header_preproc"
11625 ac_res=`eval 'as_val=${'$as_ac_Header'}
11626 $as_echo "$as_val"'`
11627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11628 $as_echo "$ac_res" >&6; }
11631 as_val=`eval 'as_val=${'$as_ac_Header'}
11632 $as_echo "$as_val"'`
11633 if test "x$as_val" = x""yes; then
11634 cat >>confdefs.h <<_ACEOF
11635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11640 for ac_header in readline/readline.h
11642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11645 $as_echo_n "checking for $ac_header... " >&6; }
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 $as_echo_n "(cached) " >&6
11649 ac_res=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11654 # Is the header compilable?
11655 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11656 $as_echo_n "checking $ac_header usability... " >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 #include <$ac_header>
11666 rm -f conftest.$ac_objext
11667 if { (ac_try="$ac_compile"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11673 $as_echo "$ac_try_echo") >&5
11674 (eval "$ac_compile") 2>conftest.er1
11676 grep -v '^ *+' conftest.er1 >conftest.err
11678 cat conftest.err >&5
11679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } && {
11681 test -z "$ac_c_werror_flag" ||
11682 test ! -s conftest.err
11683 } && test -s conftest.$ac_objext; then
11684 ac_header_compiler=yes
11686 $as_echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 ac_header_compiler=no
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11694 $as_echo "$ac_header_compiler" >&6; }
11696 # Is the header present?
11697 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11698 $as_echo_n "checking $ac_header presence... " >&6; }
11699 cat >conftest.$ac_ext <<_ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11705 #include <$ac_header>
11707 if { (ac_try="$ac_cpp conftest.$ac_ext"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } >/dev/null && {
11721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11724 ac_header_preproc=yes
11726 $as_echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_header_preproc=no
11732 rm -f conftest.err conftest.$ac_ext
11733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11734 $as_echo "$ac_header_preproc" >&6; }
11736 # So? What about this header?
11737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11740 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11743 ac_header_preproc=yes
11746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11747 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11749 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11751 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11753 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11757 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11759 ## ---------------------------------------- ##
11760 ## Report this to pgsql-bugs@postgresql.org ##
11761 ## ---------------------------------------- ##
11763 ) | sed "s/^/$as_me: WARNING: /" >&2
11766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11767 $as_echo_n "checking for $ac_header... " >&6; }
11768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11769 $as_echo_n "(cached) " >&6
11771 eval "$as_ac_Header=\$ac_header_preproc"
11773 ac_res=`eval 'as_val=${'$as_ac_Header'}
11774 $as_echo "$as_val"'`
11775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11776 $as_echo "$ac_res" >&6; }
11779 as_val=`eval 'as_val=${'$as_ac_Header'}
11780 $as_echo "$as_val"'`
11781 if test "x$as_val" = x""yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11787 { { $as_echo "$as_me:$LINENO: error: readline header not found
11788 If you have libedit already installed, see config.log for details on the
11789 failure. It is possible the compiler isn't looking in the proper directory.
11790 Use --without-readline to disable libedit support." >&5
11791 $as_echo "$as_me: error: readline header not found
11792 If you have libedit already installed, see config.log for details on the
11793 failure. It is possible the compiler isn't looking in the proper directory.
11794 Use --without-readline to disable libedit support." >&2;}
11795 { (exit 1); exit 1; }; }
11808 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11809 # not be there at all. Hence, don't complain if not found. We must check
11810 # though, since in yet other versions it is an independent header.
11812 for ac_header in editline/history.h
11814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11817 $as_echo_n "checking for $ac_header... " >&6; }
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 $as_echo_n "(cached) " >&6
11821 ac_res=`eval 'as_val=${'$as_ac_Header'}
11822 $as_echo "$as_val"'`
11823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11824 $as_echo "$ac_res" >&6; }
11826 # Is the header compilable?
11827 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11828 $as_echo_n "checking $ac_header usability... " >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 $ac_includes_default
11836 #include <$ac_header>
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845 $as_echo "$ac_try_echo") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11848 grep -v '^ *+' conftest.er1 >conftest.err
11850 cat conftest.err >&5
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
11856 ac_header_compiler=yes
11858 $as_echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 ac_header_compiler=no
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866 $as_echo "$ac_header_compiler" >&6; }
11868 # Is the header present?
11869 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870 $as_echo_n "checking $ac_header presence... " >&6; }
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 #include <$ac_header>
11879 if { (ac_try="$ac_cpp conftest.$ac_ext"
11880 case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11885 $as_echo "$ac_try_echo") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null && {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11896 ac_header_preproc=yes
11898 $as_echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ac_header_preproc=no
11904 rm -f conftest.err conftest.$ac_ext
11905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 $as_echo "$ac_header_preproc" >&6; }
11908 # So? What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11931 ## ---------------------------------------- ##
11932 ## Report this to pgsql-bugs@postgresql.org ##
11933 ## ---------------------------------------- ##
11935 ) | sed "s/^/$as_me: WARNING: /" >&2
11938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11939 $as_echo_n "checking for $ac_header... " >&6; }
11940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11941 $as_echo_n "(cached) " >&6
11943 eval "$as_ac_Header=\$ac_header_preproc"
11945 ac_res=`eval 'as_val=${'$as_ac_Header'}
11946 $as_echo "$as_val"'`
11947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11948 $as_echo "$ac_res" >&6; }
11951 as_val=`eval 'as_val=${'$as_ac_Header'}
11952 $as_echo "$as_val"'`
11953 if test "x$as_val" = x""yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960 for ac_header in history.h
11962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11965 $as_echo_n "checking for $ac_header... " >&6; }
11966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11967 $as_echo_n "(cached) " >&6
11969 ac_res=`eval 'as_val=${'$as_ac_Header'}
11970 $as_echo "$as_val"'`
11971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11972 $as_echo "$ac_res" >&6; }
11974 # Is the header compilable?
11975 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11976 $as_echo_n "checking $ac_header usability... " >&6; }
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #include <$ac_header>
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11993 $as_echo "$ac_try_echo") >&5
11994 (eval "$ac_compile") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
12004 ac_header_compiler=yes
12006 $as_echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_header_compiler=no
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12014 $as_echo "$ac_header_compiler" >&6; }
12016 # Is the header present?
12017 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12018 $as_echo_n "checking $ac_header presence... " >&6; }
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 #include <$ac_header>
12027 if { (ac_try="$ac_cpp conftest.$ac_ext"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12033 $as_echo "$ac_try_echo") >&5
12034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } >/dev/null && {
12041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12044 ac_header_preproc=yes
12046 $as_echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ac_header_preproc=no
12052 rm -f conftest.err conftest.$ac_ext
12053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12054 $as_echo "$ac_header_preproc" >&6; }
12056 # So? What about this header?
12057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12060 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12063 ac_header_preproc=yes
12066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12069 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12071 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12073 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12075 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12077 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12079 ## ---------------------------------------- ##
12080 ## Report this to pgsql-bugs@postgresql.org ##
12081 ## ---------------------------------------- ##
12083 ) | sed "s/^/$as_me: WARNING: /" >&2
12086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12087 $as_echo_n "checking for $ac_header... " >&6; }
12088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12089 $as_echo_n "(cached) " >&6
12091 eval "$as_ac_Header=\$ac_header_preproc"
12093 ac_res=`eval 'as_val=${'$as_ac_Header'}
12094 $as_echo "$as_val"'`
12095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12096 $as_echo "$ac_res" >&6; }
12099 as_val=`eval 'as_val=${'$as_ac_Header'}
12100 $as_echo "$as_val"'`
12101 if test "x$as_val" = x""yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108 for ac_header in readline/history.h
12110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12113 $as_echo_n "checking for $ac_header... " >&6; }
12114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12115 $as_echo_n "(cached) " >&6
12117 ac_res=`eval 'as_val=${'$as_ac_Header'}
12118 $as_echo "$as_val"'`
12119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12120 $as_echo "$ac_res" >&6; }
12122 # Is the header compilable?
12123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12124 $as_echo_n "checking $ac_header usability... " >&6; }
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <$ac_header>
12134 rm -f conftest.$ac_objext
12135 if { (ac_try="$ac_compile"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12141 $as_echo "$ac_try_echo") >&5
12142 (eval "$ac_compile") 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && {
12149 test -z "$ac_c_werror_flag" ||
12150 test ! -s conftest.err
12151 } && test -s conftest.$ac_objext; then
12152 ac_header_compiler=yes
12154 $as_echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 ac_header_compiler=no
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 $as_echo "$ac_header_compiler" >&6; }
12164 # Is the header present?
12165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12166 $as_echo_n "checking $ac_header presence... " >&6; }
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <$ac_header>
12175 if { (ac_try="$ac_cpp conftest.$ac_ext"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } >/dev/null && {
12189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12192 ac_header_preproc=yes
12194 $as_echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 $as_echo "$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12227 ## ---------------------------------------- ##
12228 ## Report this to pgsql-bugs@postgresql.org ##
12229 ## ---------------------------------------- ##
12231 ) | sed "s/^/$as_me: WARNING: /" >&2
12234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 $as_echo_n "checking for $ac_header... " >&6; }
12236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 $as_echo_n "(cached) " >&6
12239 eval "$as_ac_Header=\$ac_header_preproc"
12241 ac_res=`eval 'as_val=${'$as_ac_Header'}
12242 $as_echo "$as_val"'`
12243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12244 $as_echo "$ac_res" >&6; }
12247 as_val=`eval 'as_val=${'$as_ac_Header'}
12248 $as_echo "$as_val"'`
12249 if test "x$as_val" = x""yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12268 if test "$with_zlib" = yes; then
12269 if test "${ac_cv_header_zlib_h+set}" = set; then
12270 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12271 $as_echo_n "checking for zlib.h... " >&6; }
12272 if test "${ac_cv_header_zlib_h+set}" = set; then
12273 $as_echo_n "(cached) " >&6
12275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12276 $as_echo "$ac_cv_header_zlib_h" >&6; }
12278 # Is the header compilable?
12279 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12280 $as_echo_n "checking zlib.h usability... " >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12297 $as_echo "$ac_try_echo") >&5
12298 (eval "$ac_compile") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest.$ac_objext; then
12308 ac_header_compiler=yes
12310 $as_echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_header_compiler=no
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 $as_echo "$ac_header_compiler" >&6; }
12320 # Is the header present?
12321 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12322 $as_echo_n "checking zlib.h presence... " >&6; }
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12331 if { (ac_try="$ac_cpp conftest.$ac_ext"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337 $as_echo "$ac_try_echo") >&5
12338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } >/dev/null && {
12345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12348 ac_header_preproc=yes
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_header_preproc=no
12356 rm -f conftest.err conftest.$ac_ext
12357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 $as_echo "$ac_header_preproc" >&6; }
12360 # So? What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12363 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12364 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12366 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12367 ac_header_preproc=yes
12370 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12371 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12372 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12373 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12374 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12375 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12376 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12377 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12378 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12379 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12380 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12381 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12383 ## ---------------------------------------- ##
12384 ## Report this to pgsql-bugs@postgresql.org ##
12385 ## ---------------------------------------- ##
12387 ) | sed "s/^/$as_me: WARNING: /" >&2
12390 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12391 $as_echo_n "checking for zlib.h... " >&6; }
12392 if test "${ac_cv_header_zlib_h+set}" = set; then
12393 $as_echo_n "(cached) " >&6
12395 ac_cv_header_zlib_h=$ac_header_preproc
12397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12398 $as_echo "$ac_cv_header_zlib_h" >&6; }
12401 if test "x$ac_cv_header_zlib_h" = x""yes; then
12404 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12405 If you have zlib already installed, see config.log for details on the
12406 failure. It is possible the compiler isn't looking in the proper directory.
12407 Use --without-zlib to disable zlib support." >&5
12408 $as_echo "$as_me: error: zlib header not found
12409 If you have zlib already installed, see config.log for details on the
12410 failure. It is possible the compiler isn't looking in the proper directory.
12411 Use --without-zlib to disable zlib support." >&2;}
12412 { (exit 1); exit 1; }; }
12418 if test "$with_gssapi" = yes ; then
12420 for ac_header in gssapi/gssapi.h
12422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12425 $as_echo_n "checking for $ac_header... " >&6; }
12426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12427 $as_echo_n "(cached) " >&6
12429 ac_res=`eval 'as_val=${'$as_ac_Header'}
12430 $as_echo "$as_val"'`
12431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12432 $as_echo "$ac_res" >&6; }
12434 # Is the header compilable?
12435 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12436 $as_echo_n "checking $ac_header usability... " >&6; }
12437 cat >conftest.$ac_ext <<_ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h. */
12443 $ac_includes_default
12444 #include <$ac_header>
12446 rm -f conftest.$ac_objext
12447 if { (ac_try="$ac_compile"
12448 case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12453 $as_echo "$ac_try_echo") >&5
12454 (eval "$ac_compile") 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } && {
12461 test -z "$ac_c_werror_flag" ||
12462 test ! -s conftest.err
12463 } && test -s conftest.$ac_objext; then
12464 ac_header_compiler=yes
12466 $as_echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ac_header_compiler=no
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12474 $as_echo "$ac_header_compiler" >&6; }
12476 # Is the header present?
12477 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12478 $as_echo_n "checking $ac_header presence... " >&6; }
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 #include <$ac_header>
12487 if { (ac_try="$ac_cpp conftest.$ac_ext"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12493 $as_echo "$ac_try_echo") >&5
12494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } >/dev/null && {
12501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12504 ac_header_preproc=yes
12506 $as_echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 ac_header_preproc=no
12512 rm -f conftest.err conftest.$ac_ext
12513 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12514 $as_echo "$ac_header_preproc" >&6; }
12516 # So? What about this header?
12517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12520 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12523 ac_header_preproc=yes
12526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12527 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12529 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12531 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12533 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12537 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12539 ## ---------------------------------------- ##
12540 ## Report this to pgsql-bugs@postgresql.org ##
12541 ## ---------------------------------------- ##
12543 ) | sed "s/^/$as_me: WARNING: /" >&2
12546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12547 $as_echo_n "checking for $ac_header... " >&6; }
12548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12549 $as_echo_n "(cached) " >&6
12551 eval "$as_ac_Header=\$ac_header_preproc"
12553 ac_res=`eval 'as_val=${'$as_ac_Header'}
12554 $as_echo "$as_val"'`
12555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12556 $as_echo "$ac_res" >&6; }
12559 as_val=`eval 'as_val=${'$as_ac_Header'}
12560 $as_echo "$as_val"'`
12561 if test "x$as_val" = x""yes; then
12562 cat >>confdefs.h <<_ACEOF
12563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568 for ac_header in gssapi.h
12570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12573 $as_echo_n "checking for $ac_header... " >&6; }
12574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12575 $as_echo_n "(cached) " >&6
12577 ac_res=`eval 'as_val=${'$as_ac_Header'}
12578 $as_echo "$as_val"'`
12579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12580 $as_echo "$ac_res" >&6; }
12582 # Is the header compilable?
12583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12584 $as_echo_n "checking $ac_header usability... " >&6; }
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 $ac_includes_default
12592 #include <$ac_header>
12594 rm -f conftest.$ac_objext
12595 if { (ac_try="$ac_compile"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601 $as_echo "$ac_try_echo") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 ac_header_compiler=yes
12614 $as_echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_header_compiler=no
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12622 $as_echo "$ac_header_compiler" >&6; }
12624 # Is the header present?
12625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12626 $as_echo_n "checking $ac_header presence... " >&6; }
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 #include <$ac_header>
12635 if { (ac_try="$ac_cpp conftest.$ac_ext"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 $as_echo "$ac_try_echo") >&5
12642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } >/dev/null && {
12649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12652 ac_header_preproc=yes
12654 $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ac_header_preproc=no
12660 rm -f conftest.err conftest.$ac_ext
12661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12662 $as_echo "$ac_header_preproc" >&6; }
12664 # So? What about this header?
12665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12671 ac_header_preproc=yes
12674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12687 ## ---------------------------------------- ##
12688 ## Report this to pgsql-bugs@postgresql.org ##
12689 ## ---------------------------------------- ##
12691 ) | sed "s/^/$as_me: WARNING: /" >&2
12694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12695 $as_echo_n "checking for $ac_header... " >&6; }
12696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12697 $as_echo_n "(cached) " >&6
12699 eval "$as_ac_Header=\$ac_header_preproc"
12701 ac_res=`eval 'as_val=${'$as_ac_Header'}
12702 $as_echo "$as_val"'`
12703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12704 $as_echo "$ac_res" >&6; }
12707 as_val=`eval 'as_val=${'$as_ac_Header'}
12708 $as_echo "$as_val"'`
12709 if test "x$as_val" = x""yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12715 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12716 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12717 { (exit 1); exit 1; }; }
12728 if test "$with_krb5" = yes ; then
12729 if test "${ac_cv_header_krb5_h+set}" = set; then
12730 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12731 $as_echo_n "checking for krb5.h... " >&6; }
12732 if test "${ac_cv_header_krb5_h+set}" = set; then
12733 $as_echo_n "(cached) " >&6
12735 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12736 $as_echo "$ac_cv_header_krb5_h" >&6; }
12738 # Is the header compilable?
12739 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12740 $as_echo_n "checking krb5.h usability... " >&6; }
12741 cat >conftest.$ac_ext <<_ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12747 $ac_includes_default
12750 rm -f conftest.$ac_objext
12751 if { (ac_try="$ac_compile"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_compile") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest.$ac_objext; then
12768 ac_header_compiler=yes
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 ac_header_compiler=no
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12778 $as_echo "$ac_header_compiler" >&6; }
12780 # Is the header present?
12781 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12782 $as_echo_n "checking krb5.h presence... " >&6; }
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12791 if { (ac_try="$ac_cpp conftest.$ac_ext"
12792 case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12797 $as_echo "$ac_try_echo") >&5
12798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } >/dev/null && {
12805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12808 ac_header_preproc=yes
12810 $as_echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ac_header_preproc=no
12816 rm -f conftest.err conftest.$ac_ext
12817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12818 $as_echo "$ac_header_preproc" >&6; }
12820 # So? What about this header?
12821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12823 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12824 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12825 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12826 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12827 ac_header_preproc=yes
12830 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12831 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12832 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12833 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12834 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12835 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12836 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12837 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12838 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12839 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12840 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12841 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12843 ## ---------------------------------------- ##
12844 ## Report this to pgsql-bugs@postgresql.org ##
12845 ## ---------------------------------------- ##
12847 ) | sed "s/^/$as_me: WARNING: /" >&2
12850 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12851 $as_echo_n "checking for krb5.h... " >&6; }
12852 if test "${ac_cv_header_krb5_h+set}" = set; then
12853 $as_echo_n "(cached) " >&6
12855 ac_cv_header_krb5_h=$ac_header_preproc
12857 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12858 $as_echo "$ac_cv_header_krb5_h" >&6; }
12861 if test "x$ac_cv_header_krb5_h" = x""yes; then
12864 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12865 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12866 { (exit 1); exit 1; }; }
12872 if test "$with_openssl" = yes ; then
12873 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12874 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12875 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12876 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12877 $as_echo_n "(cached) " >&6
12879 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12880 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12882 # Is the header compilable?
12883 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12884 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12885 cat >conftest.$ac_ext <<_ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 $ac_includes_default
12892 #include <openssl/ssl.h>
12894 rm -f conftest.$ac_objext
12895 if { (ac_try="$ac_compile"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902 (eval "$ac_compile") 2>conftest.er1
12904 grep -v '^ *+' conftest.er1 >conftest.err
12906 cat conftest.err >&5
12907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest.$ac_objext; then
12912 ac_header_compiler=yes
12914 $as_echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_header_compiler=no
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12922 $as_echo "$ac_header_compiler" >&6; }
12924 # Is the header present?
12925 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12926 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12927 cat >conftest.$ac_ext <<_ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 #include <openssl/ssl.h>
12935 if { (ac_try="$ac_cpp conftest.$ac_ext"
12936 case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941 $as_echo "$ac_try_echo") >&5
12942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12944 grep -v '^ *+' conftest.er1 >conftest.err
12946 cat conftest.err >&5
12947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } >/dev/null && {
12949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12950 test ! -s conftest.err
12952 ac_header_preproc=yes
12954 $as_echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12957 ac_header_preproc=no
12960 rm -f conftest.err conftest.$ac_ext
12961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12962 $as_echo "$ac_header_preproc" >&6; }
12964 # So? What about this header?
12965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12967 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12968 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12969 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12970 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12971 ac_header_preproc=yes
12974 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12975 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12976 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12977 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12978 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12979 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12980 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12981 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12982 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12983 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12984 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12985 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12987 ## ---------------------------------------- ##
12988 ## Report this to pgsql-bugs@postgresql.org ##
12989 ## ---------------------------------------- ##
12991 ) | sed "s/^/$as_me: WARNING: /" >&2
12994 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12995 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12996 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12997 $as_echo_n "(cached) " >&6
12999 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13002 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13005 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13008 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13009 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13010 { (exit 1); exit 1; }; }
13014 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13015 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13016 $as_echo_n "checking for openssl/err.h... " >&6; }
13017 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13018 $as_echo_n "(cached) " >&6
13020 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13021 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13023 # Is the header compilable?
13024 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13025 $as_echo_n "checking openssl/err.h usability... " >&6; }
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 $ac_includes_default
13033 #include <openssl/err.h>
13035 rm -f conftest.$ac_objext
13036 if { (ac_try="$ac_compile"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13042 $as_echo "$ac_try_echo") >&5
13043 (eval "$ac_compile") 2>conftest.er1
13045 grep -v '^ *+' conftest.er1 >conftest.err
13047 cat conftest.err >&5
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } && {
13050 test -z "$ac_c_werror_flag" ||
13051 test ! -s conftest.err
13052 } && test -s conftest.$ac_objext; then
13053 ac_header_compiler=yes
13055 $as_echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 ac_header_compiler=no
13061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13063 $as_echo "$ac_header_compiler" >&6; }
13065 # Is the header present?
13066 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13067 $as_echo_n "checking openssl/err.h presence... " >&6; }
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 #include <openssl/err.h>
13076 if { (ac_try="$ac_cpp conftest.$ac_ext"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } >/dev/null && {
13090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13093 ac_header_preproc=yes
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_header_preproc=no
13101 rm -f conftest.err conftest.$ac_ext
13102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13103 $as_echo "$ac_header_preproc" >&6; }
13105 # So? What about this header?
13106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13108 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13109 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13110 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13111 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13112 ac_header_preproc=yes
13115 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13116 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13117 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13118 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13119 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13120 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13121 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13122 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13123 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13124 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13125 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13126 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13128 ## ---------------------------------------- ##
13129 ## Report this to pgsql-bugs@postgresql.org ##
13130 ## ---------------------------------------- ##
13132 ) | sed "s/^/$as_me: WARNING: /" >&2
13135 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13136 $as_echo_n "checking for openssl/err.h... " >&6; }
13137 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13138 $as_echo_n "(cached) " >&6
13140 ac_cv_header_openssl_err_h=$ac_header_preproc
13142 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13143 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13146 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13149 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13150 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13151 { (exit 1); exit 1; }; }
13157 if test "$with_pam" = yes ; then
13159 for ac_header in security/pam_appl.h
13161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13163 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13164 $as_echo_n "checking for $ac_header... " >&6; }
13165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13166 $as_echo_n "(cached) " >&6
13168 ac_res=`eval 'as_val=${'$as_ac_Header'}
13169 $as_echo "$as_val"'`
13170 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13171 $as_echo "$ac_res" >&6; }
13173 # Is the header compilable?
13174 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13175 $as_echo_n "checking $ac_header usability... " >&6; }
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 $ac_includes_default
13183 #include <$ac_header>
13185 rm -f conftest.$ac_objext
13186 if { (ac_try="$ac_compile"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_compile") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest.$ac_objext; then
13203 ac_header_compiler=yes
13205 $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_header_compiler=no
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13213 $as_echo "$ac_header_compiler" >&6; }
13215 # Is the header present?
13216 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13217 $as_echo_n "checking $ac_header presence... " >&6; }
13218 cat >conftest.$ac_ext <<_ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h. */
13224 #include <$ac_header>
13226 if { (ac_try="$ac_cpp conftest.$ac_ext"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13232 $as_echo "$ac_try_echo") >&5
13233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } >/dev/null && {
13240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13243 ac_header_preproc=yes
13245 $as_echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_header_preproc=no
13251 rm -f conftest.err conftest.$ac_ext
13252 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13253 $as_echo "$ac_header_preproc" >&6; }
13255 # So? What about this header?
13256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13259 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13262 ac_header_preproc=yes
13265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13266 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13268 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13270 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13272 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13274 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13276 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13278 ## ---------------------------------------- ##
13279 ## Report this to pgsql-bugs@postgresql.org ##
13280 ## ---------------------------------------- ##
13282 ) | sed "s/^/$as_me: WARNING: /" >&2
13285 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13286 $as_echo_n "checking for $ac_header... " >&6; }
13287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13288 $as_echo_n "(cached) " >&6
13290 eval "$as_ac_Header=\$ac_header_preproc"
13292 ac_res=`eval 'as_val=${'$as_ac_Header'}
13293 $as_echo "$as_val"'`
13294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13295 $as_echo "$ac_res" >&6; }
13298 as_val=`eval 'as_val=${'$as_ac_Header'}
13299 $as_echo "$as_val"'`
13300 if test "x$as_val" = x""yes; then
13301 cat >>confdefs.h <<_ACEOF
13302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13307 for ac_header in pam/pam_appl.h
13309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13312 $as_echo_n "checking for $ac_header... " >&6; }
13313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13314 $as_echo_n "(cached) " >&6
13316 ac_res=`eval 'as_val=${'$as_ac_Header'}
13317 $as_echo "$as_val"'`
13318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13319 $as_echo "$ac_res" >&6; }
13321 # Is the header compilable?
13322 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13323 $as_echo_n "checking $ac_header usability... " >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13331 #include <$ac_header>
13333 rm -f conftest.$ac_objext
13334 if { (ac_try="$ac_compile"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341 (eval "$ac_compile") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } && {
13348 test -z "$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13350 } && test -s conftest.$ac_objext; then
13351 ac_header_compiler=yes
13353 $as_echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_header_compiler=no
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13361 $as_echo "$ac_header_compiler" >&6; }
13363 # Is the header present?
13364 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13365 $as_echo_n "checking $ac_header presence... " >&6; }
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 #include <$ac_header>
13374 if { (ac_try="$ac_cpp conftest.$ac_ext"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13380 $as_echo "$ac_try_echo") >&5
13381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13383 grep -v '^ *+' conftest.er1 >conftest.err
13385 cat conftest.err >&5
13386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } >/dev/null && {
13388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13389 test ! -s conftest.err
13391 ac_header_preproc=yes
13393 $as_echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ac_header_preproc=no
13399 rm -f conftest.err conftest.$ac_ext
13400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13401 $as_echo "$ac_header_preproc" >&6; }
13403 # So? What about this header?
13404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13407 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13410 ac_header_preproc=yes
13413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13414 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13416 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13418 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13420 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13426 ## ---------------------------------------- ##
13427 ## Report this to pgsql-bugs@postgresql.org ##
13428 ## ---------------------------------------- ##
13430 ) | sed "s/^/$as_me: WARNING: /" >&2
13433 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13434 $as_echo_n "checking for $ac_header... " >&6; }
13435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 $as_echo_n "(cached) " >&6
13438 eval "$as_ac_Header=\$ac_header_preproc"
13440 ac_res=`eval 'as_val=${'$as_ac_Header'}
13441 $as_echo "$as_val"'`
13442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13443 $as_echo "$ac_res" >&6; }
13446 as_val=`eval 'as_val=${'$as_ac_Header'}
13447 $as_echo "$as_val"'`
13448 if test "x$as_val" = x""yes; then
13449 cat >>confdefs.h <<_ACEOF
13450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13454 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13455 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13456 { (exit 1); exit 1; }; }
13467 if test "$with_libxml" = yes ; then
13468 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13469 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13470 $as_echo_n "checking for libxml/parser.h... " >&6; }
13471 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13472 $as_echo_n "(cached) " >&6
13474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13475 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13477 # Is the header compilable?
13478 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13479 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <libxml/parser.h>
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13496 $as_echo "$ac_try_echo") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_header_compiler=yes
13509 $as_echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_header_compiler=no
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517 $as_echo "$ac_header_compiler" >&6; }
13519 # Is the header present?
13520 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13521 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13522 cat >conftest.$ac_ext <<_ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h. */
13528 #include <libxml/parser.h>
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13536 $as_echo "$ac_try_echo") >&5
13537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } >/dev/null && {
13544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13545 test ! -s conftest.err
13547 ac_header_preproc=yes
13549 $as_echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ac_header_preproc=no
13555 rm -f conftest.err conftest.$ac_ext
13556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13557 $as_echo "$ac_header_preproc" >&6; }
13559 # So? What about this header?
13560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13562 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13563 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13564 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13565 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13566 ac_header_preproc=yes
13569 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13570 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13571 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13572 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13573 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13574 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13575 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13576 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13577 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13578 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13579 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13580 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13582 ## ---------------------------------------- ##
13583 ## Report this to pgsql-bugs@postgresql.org ##
13584 ## ---------------------------------------- ##
13586 ) | sed "s/^/$as_me: WARNING: /" >&2
13589 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13590 $as_echo_n "checking for libxml/parser.h... " >&6; }
13591 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13592 $as_echo_n "(cached) " >&6
13594 ac_cv_header_libxml_parser_h=$ac_header_preproc
13596 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13597 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13600 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13603 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13604 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13605 { (exit 1); exit 1; }; }
13611 if test "$with_libxslt" = yes ; then
13612 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13613 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13614 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13615 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13616 $as_echo_n "(cached) " >&6
13618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13619 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13621 # Is the header compilable?
13622 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13623 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630 $ac_includes_default
13631 #include <libxslt/xslt.h>
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13643 grep -v '^ *+' conftest.er1 >conftest.err
13645 cat conftest.err >&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest.$ac_objext; then
13651 ac_header_compiler=yes
13653 $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ac_header_compiler=no
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13661 $as_echo "$ac_header_compiler" >&6; }
13663 # Is the header present?
13664 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13665 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <libxslt/xslt.h>
13674 if { (ac_try="$ac_cpp conftest.$ac_ext"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13680 $as_echo "$ac_try_echo") >&5
13681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } >/dev/null && {
13688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13691 ac_header_preproc=yes
13693 $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_header_preproc=no
13699 rm -f conftest.err conftest.$ac_ext
13700 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13701 $as_echo "$ac_header_preproc" >&6; }
13703 # So? What about this header?
13704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13706 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13707 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13708 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13709 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13710 ac_header_preproc=yes
13713 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13714 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13715 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13716 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13717 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13718 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13719 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13720 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13721 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13722 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13723 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13724 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13726 ## ---------------------------------------- ##
13727 ## Report this to pgsql-bugs@postgresql.org ##
13728 ## ---------------------------------------- ##
13730 ) | sed "s/^/$as_me: WARNING: /" >&2
13733 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13734 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13735 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13736 $as_echo_n "(cached) " >&6
13738 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13741 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13744 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13747 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13748 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13749 { (exit 1); exit 1; }; }
13755 if test "$with_ldap" = yes ; then
13756 if test "$PORTNAME" != "win32"; then
13758 for ac_header in ldap.h
13760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13763 $as_echo_n "checking for $ac_header... " >&6; }
13764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13765 $as_echo_n "(cached) " >&6
13767 ac_res=`eval 'as_val=${'$as_ac_Header'}
13768 $as_echo "$as_val"'`
13769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13770 $as_echo "$ac_res" >&6; }
13772 # Is the header compilable?
13773 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13774 $as_echo_n "checking $ac_header usability... " >&6; }
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 $ac_includes_default
13782 #include <$ac_header>
13784 rm -f conftest.$ac_objext
13785 if { (ac_try="$ac_compile"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13791 $as_echo "$ac_try_echo") >&5
13792 (eval "$ac_compile") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest.$ac_objext; then
13802 ac_header_compiler=yes
13804 $as_echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_header_compiler=no
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13812 $as_echo "$ac_header_compiler" >&6; }
13814 # Is the header present?
13815 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13816 $as_echo_n "checking $ac_header presence... " >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 #include <$ac_header>
13825 if { (ac_try="$ac_cpp conftest.$ac_ext"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13831 $as_echo "$ac_try_echo") >&5
13832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
13836 cat conftest.err >&5
13837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } >/dev/null && {
13839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13840 test ! -s conftest.err
13842 ac_header_preproc=yes
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_header_preproc=no
13850 rm -f conftest.err conftest.$ac_ext
13851 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13852 $as_echo "$ac_header_preproc" >&6; }
13854 # So? What about this header?
13855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13858 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13861 ac_header_preproc=yes
13864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13865 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13867 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13869 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13871 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13875 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13877 ## ---------------------------------------- ##
13878 ## Report this to pgsql-bugs@postgresql.org ##
13879 ## ---------------------------------------- ##
13881 ) | sed "s/^/$as_me: WARNING: /" >&2
13884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13885 $as_echo_n "checking for $ac_header... " >&6; }
13886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13887 $as_echo_n "(cached) " >&6
13889 eval "$as_ac_Header=\$ac_header_preproc"
13891 ac_res=`eval 'as_val=${'$as_ac_Header'}
13892 $as_echo "$as_val"'`
13893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13894 $as_echo "$ac_res" >&6; }
13897 as_val=`eval 'as_val=${'$as_ac_Header'}
13898 $as_echo "$as_val"'`
13899 if test "x$as_val" = x""yes; then
13900 cat >>confdefs.h <<_ACEOF
13901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13906 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13907 { (exit 1); exit 1; }; }
13914 for ac_header in winldap.h
13916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13918 $as_echo_n "checking for $ac_header... " >&6; }
13919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13920 $as_echo_n "(cached) " >&6
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 $ac_includes_default
13929 #include <windows.h>
13932 #include <$ac_header>
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13944 grep -v '^ *+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13952 eval "$as_ac_Header=yes"
13954 $as_echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 eval "$as_ac_Header=no"
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 ac_res=`eval 'as_val=${'$as_ac_Header'}
13963 $as_echo "$as_val"'`
13964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13965 $as_echo "$ac_res" >&6; }
13966 as_val=`eval 'as_val=${'$as_ac_Header'}
13967 $as_echo "$as_val"'`
13968 if test "x$as_val" = x""yes; then
13969 cat >>confdefs.h <<_ACEOF
13970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13974 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13975 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13976 { (exit 1); exit 1; }; }
13984 if test "$with_bonjour" = yes ; then
13985 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13986 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13987 $as_echo_n "checking for dns_sd.h... " >&6; }
13988 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13989 $as_echo_n "(cached) " >&6
13991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13992 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13994 # Is the header compilable?
13995 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13996 $as_echo_n "checking dns_sd.h usability... " >&6; }
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 $ac_includes_default
14004 #include <dns_sd.h>
14006 rm -f conftest.$ac_objext
14007 if { (ac_try="$ac_compile"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14013 $as_echo "$ac_try_echo") >&5
14014 (eval "$ac_compile") 2>conftest.er1
14016 grep -v '^ *+' conftest.er1 >conftest.err
14018 cat conftest.err >&5
14019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } && {
14021 test -z "$ac_c_werror_flag" ||
14022 test ! -s conftest.err
14023 } && test -s conftest.$ac_objext; then
14024 ac_header_compiler=yes
14026 $as_echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14029 ac_header_compiler=no
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14034 $as_echo "$ac_header_compiler" >&6; }
14036 # Is the header present?
14037 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14038 $as_echo_n "checking dns_sd.h presence... " >&6; }
14039 cat >conftest.$ac_ext <<_ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h. */
14045 #include <dns_sd.h>
14047 if { (ac_try="$ac_cpp conftest.$ac_ext"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14053 $as_echo "$ac_try_echo") >&5
14054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } >/dev/null && {
14061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14062 test ! -s conftest.err
14064 ac_header_preproc=yes
14066 $as_echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_header_preproc=no
14072 rm -f conftest.err conftest.$ac_ext
14073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14074 $as_echo "$ac_header_preproc" >&6; }
14076 # So? What about this header?
14077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14079 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14080 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14081 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14082 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14083 ac_header_preproc=yes
14086 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14087 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14088 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14089 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14090 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14091 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14092 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14093 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14094 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14095 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14096 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14097 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14099 ## ---------------------------------------- ##
14100 ## Report this to pgsql-bugs@postgresql.org ##
14101 ## ---------------------------------------- ##
14103 ) | sed "s/^/$as_me: WARNING: /" >&2
14106 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14107 $as_echo_n "checking for dns_sd.h... " >&6; }
14108 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14109 $as_echo_n "(cached) " >&6
14111 ac_cv_header_dns_sd_h=$ac_header_preproc
14113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14114 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14117 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14120 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14121 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14122 { (exit 1); exit 1; }; }
14128 # for contrib/uuid-ossp
14129 if test "$with_ossp_uuid" = yes ; then
14131 for ac_header in ossp/uuid.h
14133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 $as_echo_n "checking for $ac_header... " >&6; }
14137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14138 $as_echo_n "(cached) " >&6
14140 ac_res=`eval 'as_val=${'$as_ac_Header'}
14141 $as_echo "$as_val"'`
14142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14143 $as_echo "$ac_res" >&6; }
14145 # Is the header compilable?
14146 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14147 $as_echo_n "checking $ac_header usability... " >&6; }
14148 cat >conftest.$ac_ext <<_ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14155 #include <$ac_header>
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14164 $as_echo "$ac_try_echo") >&5
14165 (eval "$ac_compile") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest.$ac_objext; then
14175 ac_header_compiler=yes
14177 $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_header_compiler=no
14183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14185 $as_echo "$ac_header_compiler" >&6; }
14187 # Is the header present?
14188 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14189 $as_echo_n "checking $ac_header presence... " >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <$ac_header>
14198 if { (ac_try="$ac_cpp conftest.$ac_ext"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14204 $as_echo "$ac_try_echo") >&5
14205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } >/dev/null && {
14212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14213 test ! -s conftest.err
14215 ac_header_preproc=yes
14217 $as_echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_header_preproc=no
14223 rm -f conftest.err conftest.$ac_ext
14224 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14225 $as_echo "$ac_header_preproc" >&6; }
14227 # So? What about this header?
14228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14231 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14234 ac_header_preproc=yes
14237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14238 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14240 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14242 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14244 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14246 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14248 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14250 ## ---------------------------------------- ##
14251 ## Report this to pgsql-bugs@postgresql.org ##
14252 ## ---------------------------------------- ##
14254 ) | sed "s/^/$as_me: WARNING: /" >&2
14257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14258 $as_echo_n "checking for $ac_header... " >&6; }
14259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14260 $as_echo_n "(cached) " >&6
14262 eval "$as_ac_Header=\$ac_header_preproc"
14264 ac_res=`eval 'as_val=${'$as_ac_Header'}
14265 $as_echo "$as_val"'`
14266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14267 $as_echo "$ac_res" >&6; }
14270 as_val=`eval 'as_val=${'$as_ac_Header'}
14271 $as_echo "$as_val"'`
14272 if test "x$as_val" = x""yes; then
14273 cat >>confdefs.h <<_ACEOF
14274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14280 for ac_header in uuid.h
14282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14285 $as_echo_n "checking for $ac_header... " >&6; }
14286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14287 $as_echo_n "(cached) " >&6
14289 ac_res=`eval 'as_val=${'$as_ac_Header'}
14290 $as_echo "$as_val"'`
14291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292 $as_echo "$ac_res" >&6; }
14294 # Is the header compilable?
14295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14296 $as_echo_n "checking $ac_header usability... " >&6; }
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 $ac_includes_default
14304 #include <$ac_header>
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14313 $as_echo "$ac_try_echo") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.$ac_objext; then
14324 ac_header_compiler=yes
14326 $as_echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_header_compiler=no
14332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14334 $as_echo "$ac_header_compiler" >&6; }
14336 # Is the header present?
14337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14338 $as_echo_n "checking $ac_header presence... " >&6; }
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <$ac_header>
14347 if { (ac_try="$ac_cpp conftest.$ac_ext"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14353 $as_echo "$ac_try_echo") >&5
14354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } >/dev/null && {
14361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14362 test ! -s conftest.err
14364 ac_header_preproc=yes
14366 $as_echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 ac_header_preproc=no
14372 rm -f conftest.err conftest.$ac_ext
14373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14374 $as_echo "$ac_header_preproc" >&6; }
14376 # So? What about this header?
14377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14383 ac_header_preproc=yes
14386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14389 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14393 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14399 ## ---------------------------------------- ##
14400 ## Report this to pgsql-bugs@postgresql.org ##
14401 ## ---------------------------------------- ##
14403 ) | sed "s/^/$as_me: WARNING: /" >&2
14406 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14407 $as_echo_n "checking for $ac_header... " >&6; }
14408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14409 $as_echo_n "(cached) " >&6
14411 eval "$as_ac_Header=\$ac_header_preproc"
14413 ac_res=`eval 'as_val=${'$as_ac_Header'}
14414 $as_echo "$as_val"'`
14415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14416 $as_echo "$ac_res" >&6; }
14419 as_val=`eval 'as_val=${'$as_ac_Header'}
14420 $as_echo "$as_val"'`
14421 if test "x$as_val" = x""yes; then
14422 cat >>confdefs.h <<_ACEOF
14423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14427 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14428 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14429 { (exit 1); exit 1; }; }
14440 if test "$PORTNAME" = "win32" ; then
14442 for ac_header in crtdefs.h
14444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 $as_echo_n "checking for $ac_header... " >&6; }
14448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14449 $as_echo_n "(cached) " >&6
14451 ac_res=`eval 'as_val=${'$as_ac_Header'}
14452 $as_echo "$as_val"'`
14453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14454 $as_echo "$ac_res" >&6; }
14456 # Is the header compilable?
14457 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14458 $as_echo_n "checking $ac_header usability... " >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 $ac_includes_default
14466 #include <$ac_header>
14468 rm -f conftest.$ac_objext
14469 if { (ac_try="$ac_compile"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.$ac_objext; then
14486 ac_header_compiler=yes
14488 $as_echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_header_compiler=no
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14496 $as_echo "$ac_header_compiler" >&6; }
14498 # Is the header present?
14499 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14500 $as_echo_n "checking $ac_header presence... " >&6; }
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 #include <$ac_header>
14509 if { (ac_try="$ac_cpp conftest.$ac_ext"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev/null && {
14523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14526 ac_header_preproc=yes
14528 $as_echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_header_preproc=no
14534 rm -f conftest.err conftest.$ac_ext
14535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14536 $as_echo "$ac_header_preproc" >&6; }
14538 # So? What about this header?
14539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14542 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14545 ac_header_preproc=yes
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14549 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14551 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14553 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14555 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14559 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14561 ## ---------------------------------------- ##
14562 ## Report this to pgsql-bugs@postgresql.org ##
14563 ## ---------------------------------------- ##
14565 ) | sed "s/^/$as_me: WARNING: /" >&2
14568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14569 $as_echo_n "checking for $ac_header... " >&6; }
14570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14571 $as_echo_n "(cached) " >&6
14573 eval "$as_ac_Header=\$ac_header_preproc"
14575 ac_res=`eval 'as_val=${'$as_ac_Header'}
14576 $as_echo "$as_val"'`
14577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14578 $as_echo "$ac_res" >&6; }
14581 as_val=`eval 'as_val=${'$as_ac_Header'}
14582 $as_echo "$as_val"'`
14583 if test "x$as_val" = x""yes; then
14584 cat >>confdefs.h <<_ACEOF
14585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14595 ## Types, structures, compiler characteristics
14599 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14600 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14601 if test "${ac_cv_c_bigendian+set}" = set; then
14602 $as_echo_n "(cached) " >&6
14604 ac_cv_c_bigendian=unknown
14605 # See if we're dealing with a universal compiler.
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 #ifndef __APPLE_CC__
14613 not a universal capable compiler
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest.$ac_objext; then
14637 # Check for potential -arch flags. It is not universal unless
14638 # there are some -arch flags. Note that *ppc* also matches
14639 # ppc64. This check is also rather less than ideal.
14640 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14641 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14644 $as_echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 if test $ac_cv_c_bigendian = unknown; then
14652 # See if sys/param.h defines the BYTE_ORDER macro.
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <sys/types.h>
14660 #include <sys/param.h>
14665 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14666 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14668 bogus endian macros
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683 (eval "$ac_compile") 2>conftest.er1
14685 grep -v '^ *+' conftest.er1 >conftest.err
14687 cat conftest.err >&5
14688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } && {
14690 test -z "$ac_c_werror_flag" ||
14691 test ! -s conftest.err
14692 } && test -s conftest.$ac_objext; then
14693 # It does; now see whether it defined to BIG_ENDIAN or not.
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14700 #include <sys/types.h>
14701 #include <sys/param.h>
14706 #if BYTE_ORDER != BIG_ENDIAN
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14721 $as_echo "$ac_try_echo") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
14732 ac_cv_c_bigendian=yes
14734 $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 ac_cv_c_bigendian=no
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 $as_echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 if test $ac_cv_c_bigendian = unknown; then
14751 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14752 cat >conftest.$ac_ext <<_ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <limits.h>
14763 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14764 bogus endian macros
14771 rm -f conftest.$ac_objext
14772 if { (ac_try="$ac_compile"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14778 $as_echo "$ac_try_echo") >&5
14779 (eval "$ac_compile") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest.$ac_objext; then
14789 # It does; now see whether it defined to _BIG_ENDIAN or not.
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <limits.h>
14801 #ifndef _BIG_ENDIAN
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816 $as_echo "$ac_try_echo") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest.$ac_objext; then
14827 ac_cv_c_bigendian=yes
14829 $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_c_bigendian=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 $as_echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 if test $ac_cv_c_bigendian = unknown; then
14846 # Compile a test program.
14847 if test "$cross_compiling" = yes; then
14848 # Try to guess by grepping values from an object file.
14849 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 short int ascii_mm[] =
14856 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14857 short int ascii_ii[] =
14858 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14859 int use_ascii (int i) {
14860 return ascii_mm[i] + ascii_ii[i];
14862 short int ebcdic_ii[] =
14863 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14864 short int ebcdic_mm[] =
14865 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14866 int use_ebcdic (int i) {
14867 return ebcdic_mm[i] + ebcdic_ii[i];
14874 return use_ascii (foo) == use_ebcdic (foo);
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14886 $as_echo "$ac_try_echo") >&5
14887 (eval "$ac_compile") 2>conftest.er1
14889 grep -v '^ *+' conftest.er1 >conftest.err
14891 cat conftest.err >&5
14892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } && {
14894 test -z "$ac_c_werror_flag" ||
14895 test ! -s conftest.err
14896 } && test -s conftest.$ac_objext; then
14897 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14898 ac_cv_c_bigendian=yes
14900 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14901 if test "$ac_cv_c_bigendian" = unknown; then
14902 ac_cv_c_bigendian=no
14904 # finding both strings is unlikely to happen, but who knows?
14905 ac_cv_c_bigendian=unknown
14909 $as_echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 $ac_includes_default
14928 /* Are we little or big endian? From Harbison&Steele. */
14932 char c[sizeof (long int)];
14935 return u.c[sizeof (long int) - 1] == 1;
14941 rm -f conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948 $as_echo "$ac_try_echo") >&5
14949 (eval "$ac_link") 2>&5
14951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14953 { (case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14958 $as_echo "$ac_try_echo") >&5
14959 (eval "$ac_try") 2>&5
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_c_bigendian=no
14965 $as_echo "$as_me: program exited with status $ac_status" >&5
14966 $as_echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ( exit $ac_status )
14970 ac_cv_c_bigendian=yes
14972 rm -rf conftest.dSYM
14973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14979 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14980 $as_echo "$ac_cv_c_bigendian" >&6; }
14981 case $ac_cv_c_bigendian in #(
14983 cat >>confdefs.h <<\_ACEOF
14984 #define WORDS_BIGENDIAN 1
14991 cat >>confdefs.h <<\_ACEOF
14992 #define AC_APPLE_UNIVERSAL_BUILD 1
14997 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14998 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14999 $as_echo "$as_me: error: unknown endianness
15000 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15001 { (exit 1); exit 1; }; } ;;
15004 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15005 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15006 if test "${ac_cv_c_const+set}" = set; then
15007 $as_echo_n "(cached) " >&6
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15019 /* FIXME: Include the comments suggested by Paul. */
15020 #ifndef __cplusplus
15021 /* Ultrix mips cc rejects this. */
15022 typedef int charset[2];
15024 /* SunOS 4.1.1 cc rejects this. */
15025 char const *const *pcpcc;
15027 /* NEC SVR4.0.2 mips cc rejects this. */
15028 struct point {int x, y;};
15029 static struct point const zero = {0,0};
15030 /* AIX XL C 1.02.0.0 rejects this.
15031 It does not let you subtract one const X* pointer from another in
15032 an arm of an if-expression whose if-part is not a constant
15034 const char *g = "string";
15035 pcpcc = &g + (g ? g-g : 0);
15036 /* HPUX 7.0 cc rejects these. */
15038 ppc = (char**) pcpcc;
15039 pcpcc = (char const *const *) ppc;
15040 { /* SCO 3.2v4 cc rejects this. */
15042 char const *s = 0 ? (char *) 0 : (char const *) 0;
15047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15048 int x[] = {25, 17};
15049 const int *foo = &x[0];
15052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15053 typedef const int *iptr;
15057 { /* AIX XL C 1.02.0.0 rejects this saying
15058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15059 struct s { int j; const int *ap[3]; };
15060 struct s *b; b->j = 5;
15062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15063 const int foo = 10;
15064 if (!foo) return 0;
15066 return !cs[0] && !zero.x;
15073 rm -f conftest.$ac_objext
15074 if { (ac_try="$ac_compile"
15075 case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15080 $as_echo "$ac_try_echo") >&5
15081 (eval "$ac_compile") 2>conftest.er1
15083 grep -v '^ *+' conftest.er1 >conftest.err
15085 cat conftest.err >&5
15086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest.$ac_objext; then
15093 $as_echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15102 $as_echo "$ac_cv_c_const" >&6; }
15103 if test $ac_cv_c_const = no; then
15105 cat >>confdefs.h <<\_ACEOF
15111 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15112 $as_echo_n "checking for inline... " >&6; }
15113 if test "${ac_cv_c_inline+set}" = set; then
15114 $as_echo_n "(cached) " >&6
15117 for ac_kw in inline __inline__ __inline; do
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 #ifndef __cplusplus
15126 static $ac_kw foo_t static_foo () {return 0; }
15127 $ac_kw foo_t foo () {return 0; }
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138 $as_echo "$ac_try_echo") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 ac_cv_c_inline=$ac_kw
15151 $as_echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 test "$ac_cv_c_inline" != no && break
15162 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15163 $as_echo "$ac_cv_c_inline" >&6; }
15166 case $ac_cv_c_inline in
15169 case $ac_cv_c_inline in
15171 *) ac_val=$ac_cv_c_inline;;
15173 cat >>confdefs.h <<_ACEOF
15174 #ifndef __cplusplus
15175 #define inline $ac_val
15181 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15182 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15183 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15184 $as_echo_n "(cached) " >&6
15186 pgac_cv_c_inline_quietly=no
15187 if test "$ac_cv_c_inline" != no; then
15188 pgac_c_inline_save_werror=$ac_c_werror_flag
15189 ac_c_werror_flag=yes
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 static inline int fun () {return 0;}
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15226 pgac_cv_c_inline_quietly=yes
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 ac_c_werror_flag=$pgac_c_inline_save_werror
15240 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15241 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15242 if test "$pgac_cv_c_inline_quietly" != no; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define PG_USE_INLINE 1
15250 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15251 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15252 if test "${ac_cv_c_stringize+set}" = set; then
15253 $as_echo_n "(cached) " >&6
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15263 char *s = x(teststring);
15265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266 $EGREP "#teststring" >/dev/null 2>&1; then
15267 ac_cv_c_stringize=no
15269 ac_cv_c_stringize=yes
15274 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15275 $as_echo "$ac_cv_c_stringize" >&6; }
15276 if test $ac_cv_c_stringize = yes; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_STRINGIZE 1
15285 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15286 $as_echo_n "checking for flexible array members... " >&6; }
15287 if test "${ac_cv_c_flexmember+set}" = set; then
15288 $as_echo_n "(cached) " >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 #include <stdlib.h>
15298 #include <stddef.h>
15299 struct s { int n; double d[]; };
15303 int m = getchar ();
15304 struct s *p = malloc (offsetof (struct s, d)
15305 + m * sizeof (double));
15307 return p->d != (double *) NULL;
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320 (eval "$ac_compile") 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && {
15327 test -z "$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15329 } && test -s conftest.$ac_objext; then
15330 ac_cv_c_flexmember=yes
15332 $as_echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15335 ac_cv_c_flexmember=no
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15341 $as_echo "$ac_cv_c_flexmember" >&6; }
15342 if test $ac_cv_c_flexmember = yes; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define FLEXIBLE_ARRAY_MEMBER /**/
15349 cat >>confdefs.h <<\_ACEOF
15350 #define FLEXIBLE_ARRAY_MEMBER 1
15355 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15356 $as_echo_n "checking for signed types... " >&6; }
15357 if test "${pgac_cv_c_signed+set}" = set; then
15358 $as_echo_n "(cached) " >&6
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15370 signed char c; signed short s; signed int i;
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 pgac_cv_c_signed=yes
15395 $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 pgac_cv_c_signed=no
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15404 $as_echo "$pgac_cv_c_signed" >&6; }
15405 if test x"$pgac_cv_c_signed" = xno ; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define signed /**/
15412 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15413 $as_echo_n "checking for working volatile... " >&6; }
15414 if test "${ac_cv_c_volatile+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15429 int * volatile y = (int *) 0;
15435 rm -f conftest.$ac_objext
15436 if { (ac_try="$ac_compile"
15437 case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15442 $as_echo "$ac_try_echo") >&5
15443 (eval "$ac_compile") 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest.$ac_objext; then
15453 ac_cv_c_volatile=yes
15455 $as_echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_cv_c_volatile=no
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15464 $as_echo "$ac_cv_c_volatile" >&6; }
15465 if test $ac_cv_c_volatile = no; then
15467 cat >>confdefs.h <<\_ACEOF
15468 #define volatile /**/
15473 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15474 $as_echo_n "checking for __func__... " >&6; }
15475 if test "${pgac_cv_funcname_func_support+set}" = set; then
15476 $as_echo_n "(cached) " >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15488 printf("%s\n", __func__);
15493 rm -f conftest.$ac_objext
15494 if { (ac_try="$ac_compile"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15500 $as_echo "$ac_try_echo") >&5
15501 (eval "$ac_compile") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_c_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest.$ac_objext; then
15511 pgac_cv_funcname_func_support=yes
15513 $as_echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 pgac_cv_funcname_func_support=no
15519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15521 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15522 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15523 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15525 cat >>confdefs.h <<\_ACEOF
15526 #define HAVE_FUNCNAME__FUNC 1
15530 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15531 $as_echo_n "checking for __FUNCTION__... " >&6; }
15532 if test "${pgac_cv_funcname_function_support+set}" = set; then
15533 $as_echo_n "(cached) " >&6
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15545 printf("%s\n", __FUNCTION__);
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15557 $as_echo "$ac_try_echo") >&5
15558 (eval "$ac_compile") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } && {
15565 test -z "$ac_c_werror_flag" ||
15566 test ! -s conftest.err
15567 } && test -s conftest.$ac_objext; then
15568 pgac_cv_funcname_function_support=yes
15570 $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 pgac_cv_funcname_function_support=no
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15579 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15580 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15582 cat >>confdefs.h <<\_ACEOF
15583 #define HAVE_FUNCNAME__FUNCTION 1
15588 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15589 $as_echo_n "checking for _Static_assert... " >&6; }
15590 if test "${pgac_cv__static_assert+set}" = set; then
15591 $as_echo_n "(cached) " >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15603 ({ _Static_assert(1, "foo"); })
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (ac_try="$ac_link"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15615 $as_echo "$ac_try_echo") >&5
15616 (eval "$ac_link") 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } && {
15623 test -z "$ac_c_werror_flag" ||
15624 test ! -s conftest.err
15625 } && test -s conftest$ac_exeext && {
15626 test "$cross_compiling" = yes ||
15627 $as_test_x conftest$ac_exeext
15629 pgac_cv__static_assert=yes
15631 $as_echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 pgac_cv__static_assert=no
15637 rm -rf conftest.dSYM
15638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15639 conftest$ac_exeext conftest.$ac_ext
15641 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15642 $as_echo "$pgac_cv__static_assert" >&6; }
15643 if test x"$pgac_cv__static_assert" = xyes ; then
15645 cat >>confdefs.h <<\_ACEOF
15646 #define HAVE__STATIC_ASSERT 1
15650 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15651 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15652 if test "${pgac_cv__types_compatible+set}" = set; then
15653 $as_echo_n "(cached) " >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h. */
15665 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674 *) ac_try_echo=$ac_try;;
15676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15677 $as_echo "$ac_try_echo") >&5
15678 (eval "$ac_compile") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest.$ac_objext; then
15688 pgac_cv__types_compatible=yes
15690 $as_echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 pgac_cv__types_compatible=no
15696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15699 $as_echo "$pgac_cv__types_compatible" >&6; }
15700 if test x"$pgac_cv__types_compatible" = xyes ; then
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15707 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15708 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15709 if test "${ac_cv_struct_tm+set}" = set; then
15710 $as_echo_n "(cached) " >&6
15712 cat >conftest.$ac_ext <<_ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 #include <sys/types.h>
15725 int *p = &tm.tm_sec;
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15738 $as_echo "$ac_try_echo") >&5
15739 (eval "$ac_compile") 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest.$ac_objext; then
15749 ac_cv_struct_tm=time.h
15751 $as_echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_cv_struct_tm=sys/time.h
15757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15760 $as_echo "$ac_cv_struct_tm" >&6; }
15761 if test $ac_cv_struct_tm = sys/time.h; then
15763 cat >>confdefs.h <<\_ACEOF
15764 #define TM_IN_SYS_TIME 1
15769 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15770 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15771 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15772 $as_echo_n "(cached) " >&6
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <sys/types.h>
15781 #include <$ac_cv_struct_tm>
15787 static struct tm ac_aggr;
15788 if (ac_aggr.tm_zone)
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802 (eval "$ac_compile") 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest.$ac_objext; then
15812 ac_cv_member_struct_tm_tm_zone=yes
15814 $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 cat >conftest.$ac_ext <<_ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <sys/types.h>
15824 #include <$ac_cv_struct_tm>
15830 static struct tm ac_aggr;
15831 if (sizeof ac_aggr.tm_zone)
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15844 $as_echo "$ac_try_echo") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15847 grep -v '^ *+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest.$ac_objext; then
15855 ac_cv_member_struct_tm_tm_zone=yes
15857 $as_echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_cv_member_struct_tm_tm_zone=no
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15869 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15870 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15872 cat >>confdefs.h <<_ACEOF
15873 #define HAVE_STRUCT_TM_TM_ZONE 1
15879 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15881 cat >>confdefs.h <<\_ACEOF
15882 #define HAVE_TM_ZONE 1
15886 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15887 $as_echo_n "checking for tzname... " >&6; }
15888 if test "${ac_cv_var_tzname+set}" = set; then
15889 $as_echo_n "(cached) " >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15898 #ifndef tzname /* For SGI. */
15899 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_link") 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } && {
15925 test -z "$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 } && test -s conftest$ac_exeext && {
15928 test "$cross_compiling" = yes ||
15929 $as_test_x conftest$ac_exeext
15931 ac_cv_var_tzname=yes
15933 $as_echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 ac_cv_var_tzname=no
15939 rm -rf conftest.dSYM
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941 conftest$ac_exeext conftest.$ac_ext
15943 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15944 $as_echo "$ac_cv_var_tzname" >&6; }
15945 if test $ac_cv_var_tzname = yes; then
15947 cat >>confdefs.h <<\_ACEOF
15948 #define HAVE_TZNAME 1
15953 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15954 $as_echo_n "checking for union semun... " >&6; }
15955 if test "${ac_cv_type_union_semun+set}" = set; then
15956 $as_echo_n "(cached) " >&6
15958 ac_cv_type_union_semun=no
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 #include <sys/types.h>
15966 #include <sys/ipc.h>
15967 #include <sys/sem.h>
15972 if (sizeof (union semun))
15978 rm -f conftest.$ac_objext
15979 if { (ac_try="$ac_compile"
15980 case "(($ac_try" in
15981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982 *) ac_try_echo=$ac_try;;
15984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15985 $as_echo "$ac_try_echo") >&5
15986 (eval "$ac_compile") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest.$ac_objext; then
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 #include <sys/types.h>
16003 #include <sys/ipc.h>
16004 #include <sys/sem.h>
16009 if (sizeof ((union semun)))
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16022 $as_echo "$ac_try_echo") >&5
16023 (eval "$ac_compile") 2>conftest.er1
16025 grep -v '^ *+' conftest.er1 >conftest.err
16027 cat conftest.err >&5
16028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } && {
16030 test -z "$ac_c_werror_flag" ||
16031 test ! -s conftest.err
16032 } && test -s conftest.$ac_objext; then
16035 $as_echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_cv_type_union_semun=yes
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16043 $as_echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16052 $as_echo "$ac_cv_type_union_semun" >&6; }
16053 if test "x$ac_cv_type_union_semun" = x""yes; then
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_UNION_SEMUN 1
16062 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16063 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16064 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16065 $as_echo_n "(cached) " >&6
16067 ac_cv_type_struct_sockaddr_un=no
16068 cat >conftest.$ac_ext <<_ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 #include <sys/types.h>
16075 #ifdef HAVE_SYS_UN_H
16076 #include <sys/un.h>
16083 if (sizeof (struct sockaddr_un))
16089 rm -f conftest.$ac_objext
16090 if { (ac_try="$ac_compile"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_compile") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1 >conftest.err
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest.$ac_objext; then
16107 cat >conftest.$ac_ext <<_ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <sys/types.h>
16114 #ifdef HAVE_SYS_UN_H
16115 #include <sys/un.h>
16122 if (sizeof ((struct sockaddr_un)))
16128 rm -f conftest.$ac_objext
16129 if { (ac_try="$ac_compile"
16130 case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135 $as_echo "$ac_try_echo") >&5
16136 (eval "$ac_compile") 2>conftest.er1
16138 grep -v '^ *+' conftest.er1 >conftest.err
16140 cat conftest.err >&5
16141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } && {
16143 test -z "$ac_c_werror_flag" ||
16144 test ! -s conftest.err
16145 } && test -s conftest.$ac_objext; then
16148 $as_echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16151 ac_cv_type_struct_sockaddr_un=yes
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16165 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16166 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_UNIX_SOCKETS 1
16174 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16175 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16176 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16177 $as_echo_n "(cached) " >&6
16179 ac_cv_type_struct_sockaddr_storage=no
16180 cat >conftest.$ac_ext <<_ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 #include <sys/types.h>
16187 #ifdef HAVE_SYS_SOCKET_H
16188 #include <sys/socket.h>
16195 if (sizeof (struct sockaddr_storage))
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16208 $as_echo "$ac_try_echo") >&5
16209 (eval "$ac_compile") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest.$ac_objext; then
16219 cat >conftest.$ac_ext <<_ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <sys/types.h>
16226 #ifdef HAVE_SYS_SOCKET_H
16227 #include <sys/socket.h>
16234 if (sizeof ((struct sockaddr_storage)))
16240 rm -f conftest.$ac_objext
16241 if { (ac_try="$ac_compile"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16247 $as_echo "$ac_try_echo") >&5
16248 (eval "$ac_compile") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && {
16255 test -z "$ac_c_werror_flag" ||
16256 test ! -s conftest.err
16257 } && test -s conftest.$ac_objext; then
16260 $as_echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 ac_cv_type_struct_sockaddr_storage=yes
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268 $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16277 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16278 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16280 cat >>confdefs.h <<_ACEOF
16281 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16287 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16288 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16289 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16290 $as_echo_n "(cached) " >&6
16292 cat >conftest.$ac_ext <<_ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <sys/types.h>
16299 #ifdef HAVE_SYS_SOCKET_H
16300 #include <sys/socket.h>
16307 static struct sockaddr_storage ac_aggr;
16308 if (ac_aggr.ss_family)
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16321 $as_echo "$ac_try_echo") >&5
16322 (eval "$ac_compile") 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest.$ac_objext; then
16332 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 #include <sys/types.h>
16344 #ifdef HAVE_SYS_SOCKET_H
16345 #include <sys/socket.h>
16352 static struct sockaddr_storage ac_aggr;
16353 if (sizeof ac_aggr.ss_family)
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_compile") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest.$ac_objext; then
16377 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16379 $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_cv_member_struct_sockaddr_storage_ss_family=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16391 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16392 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16394 cat >>confdefs.h <<_ACEOF
16395 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16400 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16401 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16402 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16403 $as_echo_n "(cached) " >&6
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 #include <sys/types.h>
16412 #ifdef HAVE_SYS_SOCKET_H
16413 #include <sys/socket.h>
16420 static struct sockaddr_storage ac_aggr;
16421 if (ac_aggr.__ss_family)
16427 rm -f conftest.$ac_objext
16428 if { (ac_try="$ac_compile"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16434 $as_echo "$ac_try_echo") >&5
16435 (eval "$ac_compile") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest.$ac_objext; then
16445 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16447 $as_echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <sys/types.h>
16457 #ifdef HAVE_SYS_SOCKET_H
16458 #include <sys/socket.h>
16465 static struct sockaddr_storage ac_aggr;
16466 if (sizeof ac_aggr.__ss_family)
16472 rm -f conftest.$ac_objext
16473 if { (ac_try="$ac_compile"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_compile") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest.$ac_objext; then
16490 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16492 $as_echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_cv_member_struct_sockaddr_storage___ss_family=no
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16503 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16504 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16505 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16513 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16514 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16515 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16516 $as_echo_n "(cached) " >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #include <sys/types.h>
16525 #ifdef HAVE_SYS_SOCKET_H
16526 #include <sys/socket.h>
16533 static struct sockaddr_storage ac_aggr;
16534 if (ac_aggr.ss_len)
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16547 $as_echo "$ac_try_echo") >&5
16548 (eval "$ac_compile") 2>conftest.er1
16550 grep -v '^ *+' conftest.er1 >conftest.err
16552 cat conftest.err >&5
16553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && {
16555 test -z "$ac_c_werror_flag" ||
16556 test ! -s conftest.err
16557 } && test -s conftest.$ac_objext; then
16558 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16560 $as_echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <sys/types.h>
16570 #ifdef HAVE_SYS_SOCKET_H
16571 #include <sys/socket.h>
16578 static struct sockaddr_storage ac_aggr;
16579 if (sizeof ac_aggr.ss_len)
16585 rm -f conftest.$ac_objext
16586 if { (ac_try="$ac_compile"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16592 $as_echo "$ac_try_echo") >&5
16593 (eval "$ac_compile") 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } && {
16600 test -z "$ac_c_werror_flag" ||
16601 test ! -s conftest.err
16602 } && test -s conftest.$ac_objext; then
16603 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16605 $as_echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ac_cv_member_struct_sockaddr_storage_ss_len=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16617 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16618 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16620 cat >>confdefs.h <<_ACEOF
16621 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16626 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16627 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16628 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16629 $as_echo_n "(cached) " >&6
16631 cat >conftest.$ac_ext <<_ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 #include <sys/types.h>
16638 #ifdef HAVE_SYS_SOCKET_H
16639 #include <sys/socket.h>
16646 static struct sockaddr_storage ac_aggr;
16647 if (ac_aggr.__ss_len)
16653 rm -f conftest.$ac_objext
16654 if { (ac_try="$ac_compile"
16655 case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16660 $as_echo "$ac_try_echo") >&5
16661 (eval "$ac_compile") 2>conftest.er1
16663 grep -v '^ *+' conftest.er1 >conftest.err
16665 cat conftest.err >&5
16666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && {
16668 test -z "$ac_c_werror_flag" ||
16669 test ! -s conftest.err
16670 } && test -s conftest.$ac_objext; then
16671 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16673 $as_echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 cat >conftest.$ac_ext <<_ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h. */
16682 #include <sys/types.h>
16683 #ifdef HAVE_SYS_SOCKET_H
16684 #include <sys/socket.h>
16691 static struct sockaddr_storage ac_aggr;
16692 if (sizeof ac_aggr.__ss_len)
16698 rm -f conftest.$ac_objext
16699 if { (ac_try="$ac_compile"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705 $as_echo "$ac_try_echo") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest.$ac_objext; then
16716 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16718 $as_echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_cv_member_struct_sockaddr_storage___ss_len=no
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16730 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16731 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16733 cat >>confdefs.h <<_ACEOF
16734 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16739 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16740 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16741 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16742 $as_echo_n "(cached) " >&6
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <sys/types.h>
16751 #ifdef HAVE_SYS_SOCKET_H
16752 #include <sys/socket.h>
16759 static struct sockaddr ac_aggr;
16760 if (ac_aggr.sa_len)
16766 rm -f conftest.$ac_objext
16767 if { (ac_try="$ac_compile"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16773 $as_echo "$ac_try_echo") >&5
16774 (eval "$ac_compile") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } && {
16781 test -z "$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 } && test -s conftest.$ac_objext; then
16784 ac_cv_member_struct_sockaddr_sa_len=yes
16786 $as_echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <sys/types.h>
16796 #ifdef HAVE_SYS_SOCKET_H
16797 #include <sys/socket.h>
16804 static struct sockaddr ac_aggr;
16805 if (sizeof ac_aggr.sa_len)
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818 $as_echo "$ac_try_echo") >&5
16819 (eval "$ac_compile") 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } && {
16826 test -z "$ac_c_werror_flag" ||
16827 test ! -s conftest.err
16828 } && test -s conftest.$ac_objext; then
16829 ac_cv_member_struct_sockaddr_sa_len=yes
16831 $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_cv_member_struct_sockaddr_sa_len=no
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16843 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16844 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16853 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16854 $as_echo_n "checking for struct addrinfo... " >&6; }
16855 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16856 $as_echo_n "(cached) " >&6
16858 ac_cv_type_struct_addrinfo=no
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 #include <sys/types.h>
16866 #include <sys/socket.h>
16873 if (sizeof (struct addrinfo))
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16886 $as_echo "$ac_try_echo") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest.$ac_objext; then
16897 cat >conftest.$ac_ext <<_ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <sys/types.h>
16904 #include <sys/socket.h>
16911 if (sizeof ((struct addrinfo)))
16917 rm -f conftest.$ac_objext
16918 if { (ac_try="$ac_compile"
16919 case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16924 $as_echo "$ac_try_echo") >&5
16925 (eval "$ac_compile") 2>conftest.er1
16927 grep -v '^ *+' conftest.er1 >conftest.err
16929 cat conftest.err >&5
16930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } && {
16932 test -z "$ac_c_werror_flag" ||
16933 test ! -s conftest.err
16934 } && test -s conftest.$ac_objext; then
16937 $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 ac_cv_type_struct_addrinfo=yes
16943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16945 $as_echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16954 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16955 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16957 cat >>confdefs.h <<_ACEOF
16958 #define HAVE_STRUCT_ADDRINFO 1
16965 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16966 $as_echo_n "checking for intptr_t... " >&6; }
16967 if test "${ac_cv_type_intptr_t+set}" = set; then
16968 $as_echo_n "(cached) " >&6
16970 ac_cv_type_intptr_t=no
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16981 if (sizeof (intptr_t))
16987 rm -f conftest.$ac_objext
16988 if { (ac_try="$ac_compile"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16994 $as_echo "$ac_try_echo") >&5
16995 (eval "$ac_compile") 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } && {
17002 test -z "$ac_c_werror_flag" ||
17003 test ! -s conftest.err
17004 } && test -s conftest.$ac_objext; then
17005 cat >conftest.$ac_ext <<_ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 $ac_includes_default
17015 if (sizeof ((intptr_t)))
17021 rm -f conftest.$ac_objext
17022 if { (ac_try="$ac_compile"
17023 case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_compile") 2>conftest.er1
17031 grep -v '^ *+' conftest.er1 >conftest.err
17033 cat conftest.err >&5
17034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } && {
17036 test -z "$ac_c_werror_flag" ||
17037 test ! -s conftest.err
17038 } && test -s conftest.$ac_objext; then
17041 $as_echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 ac_cv_type_intptr_t=yes
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
17057 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17058 $as_echo "$ac_cv_type_intptr_t" >&6; }
17059 if test "x$ac_cv_type_intptr_t" = x""yes; then
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_INTPTR_T 1
17066 for ac_type in 'int' 'long int' 'long long int'; do
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073 $ac_includes_default
17077 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
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
17103 cat >>confdefs.h <<_ACEOF
17104 #define intptr_t $ac_type
17109 $as_echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116 test -z "$ac_type" && break
17122 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17123 $as_echo_n "checking for uintptr_t... " >&6; }
17124 if test "${ac_cv_type_uintptr_t+set}" = set; then
17125 $as_echo_n "(cached) " >&6
17127 ac_cv_type_uintptr_t=no
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 $ac_includes_default
17138 if (sizeof (uintptr_t))
17144 rm -f conftest.$ac_objext
17145 if { (ac_try="$ac_compile"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17151 $as_echo "$ac_try_echo") >&5
17152 (eval "$ac_compile") 2>conftest.er1
17154 grep -v '^ *+' conftest.er1 >conftest.err
17156 cat conftest.err >&5
17157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } && {
17159 test -z "$ac_c_werror_flag" ||
17160 test ! -s conftest.err
17161 } && test -s conftest.$ac_objext; then
17162 cat >conftest.$ac_ext <<_ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 $ac_includes_default
17172 if (sizeof ((uintptr_t)))
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17185 $as_echo "$ac_try_echo") >&5
17186 (eval "$ac_compile") 2>conftest.er1
17188 grep -v '^ *+' conftest.er1 >conftest.err
17190 cat conftest.err >&5
17191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest.$ac_objext; then
17198 $as_echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17201 ac_cv_type_uintptr_t=yes
17204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 $as_echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17215 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17216 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17218 cat >>confdefs.h <<\_ACEOF
17219 #define HAVE_UINTPTR_T 1
17223 for ac_type in 'unsigned int' 'unsigned long int' \
17224 'unsigned long long int'; do
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 $ac_includes_default
17235 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17242 rm -f conftest.$ac_objext
17243 if { (ac_try="$ac_compile"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17249 $as_echo "$ac_try_echo") >&5
17250 (eval "$ac_compile") 2>conftest.er1
17252 grep -v '^ *+' conftest.er1 >conftest.err
17254 cat conftest.err >&5
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && {
17257 test -z "$ac_c_werror_flag" ||
17258 test ! -s conftest.err
17259 } && test -s conftest.$ac_objext; then
17261 cat >>confdefs.h <<_ACEOF
17262 #define uintptr_t $ac_type
17267 $as_echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 test -z "$ac_type" && break
17280 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17281 $as_echo_n "checking for long long int... " >&6; }
17282 if test "${ac_cv_type_long_long_int+set}" = set; then
17283 $as_echo_n "(cached) " >&6
17285 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 /* For now, do not test the preprocessor; as of 2007 there are too many
17293 implementations with broken preprocessors. Perhaps this can
17294 be revisited in 2012. In the meantime, code should not expect
17295 #if to work with literals wider than 32 bits. */
17296 /* Test literals. */
17297 long long int ll = 9223372036854775807ll;
17298 long long int nll = -9223372036854775807LL;
17299 unsigned long long int ull = 18446744073709551615ULL;
17300 /* Test constant expressions. */
17301 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17303 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17309 /* Test availability of runtime routines for shift and division. */
17310 long long int llmax = 9223372036854775807ll;
17311 unsigned long long int ullmax = 18446744073709551615ull;
17312 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17313 | (llmax / ll) | (llmax % ll)
17314 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17315 | (ullmax / ull) | (ullmax % ull));
17321 rm -f conftest.$ac_objext conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17328 $as_echo "$ac_try_echo") >&5
17329 (eval "$ac_link") 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext && {
17339 test "$cross_compiling" = yes ||
17340 $as_test_x conftest$ac_exeext
17342 if test "$cross_compiling" = yes; then
17343 ac_cv_type_long_long_int=yes
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 #include <limits.h>
17354 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17355 # define LLONG_MAX (HALF - 1 + HALF)
17360 long long int n = 1;
17364 long long int m = n << i;
17367 if (LLONG_MAX / 2 < m)
17375 rm -f conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17382 $as_echo "$ac_try_echo") >&5
17383 (eval "$ac_link") 2>&5
17385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17392 $as_echo "$ac_try_echo") >&5
17393 (eval "$ac_try") 2>&5
17395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_type_long_long_int=yes
17399 $as_echo "$as_me: program exited with status $ac_status" >&5
17400 $as_echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ( exit $ac_status )
17404 ac_cv_type_long_long_int=no
17406 rm -rf conftest.dSYM
17407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17412 $as_echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_cv_type_long_long_int=no
17418 rm -rf conftest.dSYM
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17422 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17423 $as_echo "$ac_cv_type_long_long_int" >&6; }
17424 if test $ac_cv_type_long_long_int = yes; then
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_LONG_LONG_INT 1
17433 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17434 $as_echo_n "checking for locale_t... " >&6; }
17435 if test "${pgac_cv_type_locale_t+set}" = set; then
17436 $as_echo_n "(cached) " >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <locale.h>
17454 rm -f conftest.$ac_objext
17455 if { (ac_try="$ac_compile"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17461 $as_echo "$ac_try_echo") >&5
17462 (eval "$ac_compile") 2>conftest.er1
17464 grep -v '^ *+' conftest.er1 >conftest.err
17466 cat conftest.err >&5
17467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } && {
17469 test -z "$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 } && test -s conftest.$ac_objext; then
17472 pgac_cv_type_locale_t=yes
17474 $as_echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 #include <xlocale.h>
17493 rm -f conftest.$ac_objext
17494 if { (ac_try="$ac_compile"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17500 $as_echo "$ac_try_echo") >&5
17501 (eval "$ac_compile") 2>conftest.er1
17503 grep -v '^ *+' conftest.er1 >conftest.err
17505 cat conftest.err >&5
17506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } && {
17508 test -z "$ac_c_werror_flag" ||
17509 test ! -s conftest.err
17510 } && test -s conftest.$ac_objext; then
17511 pgac_cv_type_locale_t='yes (in xlocale.h)'
17513 $as_echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 pgac_cv_type_locale_t=no
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17525 $as_echo "$pgac_cv_type_locale_t" >&6; }
17526 if test "$pgac_cv_type_locale_t" != no; then
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_LOCALE_T 1
17533 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17535 cat >>confdefs.h <<\_ACEOF
17536 #define LOCALE_T_IN_XLOCALE 1
17541 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17542 $as_echo_n "checking for struct cmsgcred... " >&6; }
17543 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17544 $as_echo_n "(cached) " >&6
17546 ac_cv_type_struct_cmsgcred=no
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 #include <sys/socket.h>
17554 #ifdef HAVE_SYS_UCRED_H
17555 #include <sys/ucred.h>
17561 if (sizeof (struct cmsgcred))
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17574 $as_echo "$ac_try_echo") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 #include <sys/socket.h>
17592 #ifdef HAVE_SYS_UCRED_H
17593 #include <sys/ucred.h>
17599 if (sizeof ((struct cmsgcred)))
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17612 $as_echo "$ac_try_echo") >&5
17613 (eval "$ac_compile") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest.$ac_objext; then
17625 $as_echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ac_cv_type_struct_cmsgcred=yes
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 $as_echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17642 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17643 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17645 cat >>confdefs.h <<_ACEOF
17646 #define HAVE_STRUCT_CMSGCRED 1
17653 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17654 $as_echo_n "checking for struct option... " >&6; }
17655 if test "${ac_cv_type_struct_option+set}" = set; then
17656 $as_echo_n "(cached) " >&6
17658 ac_cv_type_struct_option=no
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 #ifdef HAVE_GETOPT_H
17666 #include <getopt.h>
17672 if (sizeof (struct option))
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17685 $as_echo "$ac_try_echo") >&5
17686 (eval "$ac_compile") 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } && {
17693 test -z "$ac_c_werror_flag" ||
17694 test ! -s conftest.err
17695 } && test -s conftest.$ac_objext; then
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 #ifdef HAVE_GETOPT_H
17703 #include <getopt.h>
17709 if (sizeof ((struct option)))
17715 rm -f conftest.$ac_objext
17716 if { (ac_try="$ac_compile"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17722 $as_echo "$ac_try_echo") >&5
17723 (eval "$ac_compile") 2>conftest.er1
17725 grep -v '^ *+' conftest.er1 >conftest.err
17727 cat conftest.err >&5
17728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); } && {
17730 test -z "$ac_c_werror_flag" ||
17731 test ! -s conftest.err
17732 } && test -s conftest.$ac_objext; then
17735 $as_echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 ac_cv_type_struct_option=yes
17741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 $as_echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17752 $as_echo "$ac_cv_type_struct_option" >&6; }
17753 if test "x$ac_cv_type_struct_option" = x""yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define HAVE_STRUCT_OPTION 1
17763 if test "$with_zlib" = yes; then
17764 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17765 # did not). While we could work around the lack of z_streamp, it
17766 # seems unwise to encourage people to use such old zlib versions...
17767 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17768 $as_echo_n "checking for z_streamp... " >&6; }
17769 if test "${ac_cv_type_z_streamp+set}" = set; then
17770 $as_echo_n "(cached) " >&6
17772 ac_cv_type_z_streamp=no
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17784 if (sizeof (z_streamp))
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797 $as_echo "$ac_try_echo") >&5
17798 (eval "$ac_compile") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest.$ac_objext; then
17808 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17819 if (sizeof ((z_streamp)))
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17832 $as_echo "$ac_try_echo") >&5
17833 (eval "$ac_compile") 2>conftest.er1
17835 grep -v '^ *+' conftest.er1 >conftest.err
17837 cat conftest.err >&5
17838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } && {
17840 test -z "$ac_c_werror_flag" ||
17841 test ! -s conftest.err
17842 } && test -s conftest.$ac_objext; then
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_cv_type_z_streamp=yes
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 $as_echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17862 $as_echo "$ac_cv_type_z_streamp" >&6; }
17863 if test "x$ac_cv_type_z_streamp" = x""yes; then
17866 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17867 Use --without-zlib to disable zlib support." >&5
17868 $as_echo "$as_me: error: zlib version is too old
17869 Use --without-zlib to disable zlib support." >&2;}
17870 { (exit 1); exit 1; }; }
17875 if test "$with_krb5" = yes; then
17876 # Check for differences between MIT and Heimdal (KTH) releases
17877 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17878 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17879 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17880 $as_echo_n "(cached) " >&6
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17893 static krb5_ticket ac_aggr;
17894 if (ac_aggr.enc_part2)
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17907 $as_echo "$ac_try_echo") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest.$ac_objext; then
17918 ac_cv_member_krb5_ticket_enc_part2=yes
17920 $as_echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17934 static krb5_ticket ac_aggr;
17935 if (sizeof ac_aggr.enc_part2)
17941 rm -f conftest.$ac_objext
17942 if { (ac_try="$ac_compile"
17943 case "(($ac_try" in
17944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945 *) ac_try_echo=$ac_try;;
17947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17948 $as_echo "$ac_try_echo") >&5
17949 (eval "$ac_compile") 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } && {
17956 test -z "$ac_c_werror_flag" ||
17957 test ! -s conftest.err
17958 } && test -s conftest.$ac_objext; then
17959 ac_cv_member_krb5_ticket_enc_part2=yes
17961 $as_echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 ac_cv_member_krb5_ticket_enc_part2=no
17967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17973 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17974 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define HAVE_KRB5_TICKET_ENC_PART2 1
17982 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17983 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17984 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17985 $as_echo_n "(cached) " >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17998 static krb5_ticket ac_aggr;
17999 if (ac_aggr.client)
18005 rm -f conftest.$ac_objext
18006 if { (ac_try="$ac_compile"
18007 case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18012 $as_echo "$ac_try_echo") >&5
18013 (eval "$ac_compile") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } && {
18020 test -z "$ac_c_werror_flag" ||
18021 test ! -s conftest.err
18022 } && test -s conftest.$ac_objext; then
18023 ac_cv_member_krb5_ticket_client=yes
18025 $as_echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18039 static krb5_ticket ac_aggr;
18040 if (sizeof ac_aggr.client)
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18053 $as_echo "$ac_try_echo") >&5
18054 (eval "$ac_compile") 2>conftest.er1
18056 grep -v '^ *+' conftest.er1 >conftest.err
18058 cat conftest.err >&5
18059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } && {
18061 test -z "$ac_c_werror_flag" ||
18062 test ! -s conftest.err
18063 } && test -s conftest.$ac_objext; then
18064 ac_cv_member_krb5_ticket_client=yes
18066 $as_echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18069 ac_cv_member_krb5_ticket_client=no
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18078 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18079 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18081 cat >>confdefs.h <<_ACEOF
18082 #define HAVE_KRB5_TICKET_CLIENT 1
18087 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18088 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18089 { (exit 1); exit 1; }; }
18094 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18095 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18096 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18097 $as_echo_n "(cached) " >&6
18099 cat >conftest.$ac_ext <<_ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18110 static krb5_error ac_aggr;
18111 if (ac_aggr.text.data)
18117 rm -f conftest.$ac_objext
18118 if { (ac_try="$ac_compile"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18124 $as_echo "$ac_try_echo") >&5
18125 (eval "$ac_compile") 2>conftest.er1
18127 grep -v '^ *+' conftest.er1 >conftest.err
18129 cat conftest.err >&5
18130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest.$ac_objext; then
18135 ac_cv_member_krb5_error_text_data=yes
18137 $as_echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18151 static krb5_error ac_aggr;
18152 if (sizeof ac_aggr.text.data)
18158 rm -f conftest.$ac_objext
18159 if { (ac_try="$ac_compile"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18165 $as_echo "$ac_try_echo") >&5
18166 (eval "$ac_compile") 2>conftest.er1
18168 grep -v '^ *+' conftest.er1 >conftest.err
18170 cat conftest.err >&5
18171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest.$ac_objext; then
18176 ac_cv_member_krb5_error_text_data=yes
18178 $as_echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_cv_member_krb5_error_text_data=no
18184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18190 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18191 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18199 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18200 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18201 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18202 $as_echo_n "(cached) " >&6
18204 cat >conftest.$ac_ext <<_ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18215 static krb5_error ac_aggr;
18216 if (ac_aggr.e_data)
18222 rm -f conftest.$ac_objext
18223 if { (ac_try="$ac_compile"
18224 case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18229 $as_echo "$ac_try_echo") >&5
18230 (eval "$ac_compile") 2>conftest.er1
18232 grep -v '^ *+' conftest.er1 >conftest.err
18234 cat conftest.err >&5
18235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } && {
18237 test -z "$ac_c_werror_flag" ||
18238 test ! -s conftest.err
18239 } && test -s conftest.$ac_objext; then
18240 ac_cv_member_krb5_error_e_data=yes
18242 $as_echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18256 static krb5_error ac_aggr;
18257 if (sizeof ac_aggr.e_data)
18263 rm -f conftest.$ac_objext
18264 if { (ac_try="$ac_compile"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18270 $as_echo "$ac_try_echo") >&5
18271 (eval "$ac_compile") 2>conftest.er1
18273 grep -v '^ *+' conftest.er1 >conftest.err
18275 cat conftest.err >&5
18276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } && {
18278 test -z "$ac_c_werror_flag" ||
18279 test ! -s conftest.err
18280 } && test -s conftest.$ac_objext; then
18281 ac_cv_member_krb5_error_e_data=yes
18283 $as_echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_member_krb5_error_e_data=no
18289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18295 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18296 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18298 cat >>confdefs.h <<_ACEOF
18299 #define HAVE_KRB5_ERROR_E_DATA 1
18304 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18305 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18306 { (exit 1); exit 1; }; }
18312 # Win32 requires headers to be loaded for __stdcall, so can't use
18313 # AC_CHECK_FUNCS here.
18314 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18315 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18326 krb5_free_unparsed_name(NULL,NULL);
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18338 $as_echo "$ac_try_echo") >&5
18339 (eval "$ac_link") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest$ac_exeext && {
18349 test "$cross_compiling" = yes ||
18350 $as_test_x conftest$ac_exeext
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18357 { $as_echo "$as_me:$LINENO: result: yes" >&5
18358 $as_echo "yes" >&6; }
18360 $as_echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 { $as_echo "$as_me:$LINENO: result: no" >&5
18364 $as_echo "no" >&6; }
18367 rm -rf conftest.dSYM
18368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18369 conftest$ac_exeext conftest.$ac_ext
18372 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18375 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18376 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18387 int a = 0; int *p = &a; int r;
18388 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18393 rm -f conftest.$ac_objext
18394 if { (ac_try="$ac_compile"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18400 $as_echo "$ac_try_echo") >&5
18401 (eval "$ac_compile") 2>conftest.er1
18403 grep -v '^ *+' conftest.er1 >conftest.err
18405 cat conftest.err >&5
18406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } && {
18408 test -z "$ac_c_werror_flag" ||
18409 test ! -s conftest.err
18410 } && test -s conftest.$ac_objext; then
18411 pgac_cv_have_ppc_mutex_hint=yes
18413 $as_echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 pgac_cv_have_ppc_mutex_hint=no
18419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18421 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18422 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18432 # Check largefile support. You might think this is a system service not a
18433 # compiler characteristic, but you'd be wrong. We must check this before
18434 # probing existence of related functions such as fseeko, since the largefile
18435 # defines can affect what is generated for that.
18436 if test "$PORTNAME" != "win32"; then
18437 # Check whether --enable-largefile was given.
18438 if test "${enable_largefile+set}" = set; then
18439 enableval=$enable_largefile;
18442 if test "$enable_largefile" != no; then
18444 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18445 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18446 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18447 $as_echo_n "(cached) " >&6
18449 ac_cv_sys_largefile_CC=no
18450 if test "$GCC" != yes; then
18453 # IRIX 6.2 and later do not support large files by default,
18454 # so use the C compiler's -n32 option if that helps.
18455 cat >conftest.$ac_ext <<_ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 #include <sys/types.h>
18462 /* Check that off_t can represent 2**63 - 1 correctly.
18463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18464 since some C++ compilers masquerading as C compilers
18465 incorrectly reject 9223372036854775807. */
18466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18468 && LARGE_OFF_T % 2147483647 == 1)
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18485 $as_echo "$ac_try_echo") >&5
18486 (eval "$ac_compile") 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } && {
18493 test -z "$ac_c_werror_flag" ||
18494 test ! -s conftest.err
18495 } && test -s conftest.$ac_objext; then
18498 $as_echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18504 rm -f core conftest.err conftest.$ac_objext
18506 rm -f conftest.$ac_objext
18507 if { (ac_try="$ac_compile"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18513 $as_echo "$ac_try_echo") >&5
18514 (eval "$ac_compile") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } && {
18521 test -z "$ac_c_werror_flag" ||
18522 test ! -s conftest.err
18523 } && test -s conftest.$ac_objext; then
18524 ac_cv_sys_largefile_CC=' -n32'; break
18526 $as_echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18532 rm -f core conftest.err conftest.$ac_objext
18536 rm -f conftest.$ac_ext
18539 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18540 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18541 if test "$ac_cv_sys_largefile_CC" != no; then
18542 CC=$CC$ac_cv_sys_largefile_CC
18545 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18546 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18547 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18548 $as_echo_n "(cached) " >&6
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 #include <sys/types.h>
18558 /* Check that off_t can represent 2**63 - 1 correctly.
18559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18560 since some C++ compilers masquerading as C compilers
18561 incorrectly reject 9223372036854775807. */
18562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18564 && LARGE_OFF_T % 2147483647 == 1)
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18581 $as_echo "$ac_try_echo") >&5
18582 (eval "$ac_compile") 2>conftest.er1
18584 grep -v '^ *+' conftest.er1 >conftest.err
18586 cat conftest.err >&5
18587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } && {
18589 test -z "$ac_c_werror_flag" ||
18590 test ! -s conftest.err
18591 } && test -s conftest.$ac_objext; then
18592 ac_cv_sys_file_offset_bits=no; break
18594 $as_echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607 #define _FILE_OFFSET_BITS 64
18608 #include <sys/types.h>
18609 /* Check that off_t can represent 2**63 - 1 correctly.
18610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18611 since some C++ compilers masquerading as C compilers
18612 incorrectly reject 9223372036854775807. */
18613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18615 && LARGE_OFF_T % 2147483647 == 1)
18625 rm -f conftest.$ac_objext
18626 if { (ac_try="$ac_compile"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18632 $as_echo "$ac_try_echo") >&5
18633 (eval "$ac_compile") 2>conftest.er1
18635 grep -v '^ *+' conftest.er1 >conftest.err
18637 cat conftest.err >&5
18638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } && {
18640 test -z "$ac_c_werror_flag" ||
18641 test ! -s conftest.err
18642 } && test -s conftest.$ac_objext; then
18643 ac_cv_sys_file_offset_bits=64; break
18645 $as_echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652 ac_cv_sys_file_offset_bits=unknown
18656 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18657 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18658 case $ac_cv_sys_file_offset_bits in #(
18661 cat >>confdefs.h <<_ACEOF
18662 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18667 if test $ac_cv_sys_file_offset_bits = unknown; then
18668 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18669 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18670 if test "${ac_cv_sys_large_files+set}" = set; then
18671 $as_echo_n "(cached) " >&6
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18680 #include <sys/types.h>
18681 /* Check that off_t can represent 2**63 - 1 correctly.
18682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18683 since some C++ compilers masquerading as C compilers
18684 incorrectly reject 9223372036854775807. */
18685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18687 && LARGE_OFF_T % 2147483647 == 1)
18697 rm -f conftest.$ac_objext
18698 if { (ac_try="$ac_compile"
18699 case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18704 $as_echo "$ac_try_echo") >&5
18705 (eval "$ac_compile") 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } && {
18712 test -z "$ac_c_werror_flag" ||
18713 test ! -s conftest.err
18714 } && test -s conftest.$ac_objext; then
18715 ac_cv_sys_large_files=no; break
18717 $as_echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 #define _LARGE_FILES 1
18731 #include <sys/types.h>
18732 /* Check that off_t can represent 2**63 - 1 correctly.
18733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18734 since some C++ compilers masquerading as C compilers
18735 incorrectly reject 9223372036854775807. */
18736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18738 && LARGE_OFF_T % 2147483647 == 1)
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18755 $as_echo "$ac_try_echo") >&5
18756 (eval "$ac_compile") 2>conftest.er1
18758 grep -v '^ *+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } && {
18763 test -z "$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18765 } && test -s conftest.$ac_objext; then
18766 ac_cv_sys_large_files=1; break
18768 $as_echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 ac_cv_sys_large_files=unknown
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18780 $as_echo "$ac_cv_sys_large_files" >&6; }
18781 case $ac_cv_sys_large_files in #(
18784 cat >>confdefs.h <<_ACEOF
18785 #define _LARGE_FILES $ac_cv_sys_large_files
18795 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18796 # The cast to long int works around a bug in the HP C Compiler
18797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18799 # This bug is HP SR number 8606223364.
18800 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18801 $as_echo_n "checking size of off_t... " >&6; }
18802 if test "${ac_cv_sizeof_off_t+set}" = set; then
18803 $as_echo_n "(cached) " >&6
18805 if test "$cross_compiling" = yes; then
18806 # Depending upon the size, compute the lo and hi bounds.
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 $ac_includes_default
18817 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18824 rm -f conftest.$ac_objext
18825 if { (ac_try="$ac_compile"
18826 case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18831 $as_echo "$ac_try_echo") >&5
18832 (eval "$ac_compile") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest.$ac_objext; then
18844 cat >conftest.$ac_ext <<_ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 $ac_includes_default
18854 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18861 rm -f conftest.$ac_objext
18862 if { (ac_try="$ac_compile"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18868 $as_echo "$ac_try_echo") >&5
18869 (eval "$ac_compile") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest.$ac_objext; then
18879 ac_hi=$ac_mid; break
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_lo=`expr $ac_mid + 1`
18885 if test $ac_lo -le $ac_mid; then
18889 ac_mid=`expr 2 '*' $ac_mid + 1`
18892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18895 $as_echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 $ac_includes_default
18908 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18922 $as_echo "$ac_try_echo") >&5
18923 (eval "$ac_compile") 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } && {
18930 test -z "$ac_c_werror_flag" ||
18931 test ! -s conftest.err
18932 } && test -s conftest.$ac_objext; then
18935 cat >conftest.$ac_ext <<_ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18945 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18952 rm -f conftest.$ac_objext
18953 if { (ac_try="$ac_compile"
18954 case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18959 $as_echo "$ac_try_echo") >&5
18960 (eval "$ac_compile") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } && {
18967 test -z "$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18969 } && test -s conftest.$ac_objext; then
18970 ac_lo=$ac_mid; break
18972 $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_hi=`expr '(' $ac_mid ')' - 1`
18976 if test $ac_mid -le $ac_hi; then
18980 ac_mid=`expr 2 '*' $ac_mid`
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18986 $as_echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 # Binary search between lo and hi bounds.
18997 while test "x$ac_lo" != "x$ac_hi"; do
18998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
19009 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19016 rm -f conftest.$ac_objext
19017 if { (ac_try="$ac_compile"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19023 $as_echo "$ac_try_echo") >&5
19024 (eval "$ac_compile") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest.$ac_objext; then
19036 $as_echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 ac_lo=`expr '(' $ac_mid ')' + 1`
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19046 '') if test "$ac_cv_type_off_t" = yes; then
19047 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19049 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19050 See \`config.log' for more details." >&5
19051 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19052 See \`config.log' for more details." >&2;}
19053 { (exit 77); exit 77; }; }; }
19055 ac_cv_sizeof_off_t=0
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 $ac_includes_default
19066 static long int longval () { return (long int) (sizeof (off_t)); }
19067 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19069 #include <stdlib.h>
19074 FILE *f = fopen ("conftest.val", "w");
19077 if (((long int) (sizeof (off_t))) < 0)
19079 long int i = longval ();
19080 if (i != ((long int) (sizeof (off_t))))
19082 fprintf (f, "%ld", i);
19086 unsigned long int i = ulongval ();
19087 if (i != ((long int) (sizeof (off_t))))
19089 fprintf (f, "%lu", i);
19091 /* Do not output a trailing newline, as this causes \r\n confusion
19092 on some platforms. */
19093 return ferror (f) || fclose (f) != 0;
19099 rm -f conftest$ac_exeext
19100 if { (ac_try="$ac_link"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19106 $as_echo "$ac_try_echo") >&5
19107 (eval "$ac_link") 2>&5
19109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19111 { (case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19116 $as_echo "$ac_try_echo") >&5
19117 (eval "$ac_try") 2>&5
19119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; }; then
19121 ac_cv_sizeof_off_t=`cat conftest.val`
19123 $as_echo "$as_me: program exited with status $ac_status" >&5
19124 $as_echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ( exit $ac_status )
19128 if test "$ac_cv_type_off_t" = yes; then
19129 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19131 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19132 See \`config.log' for more details." >&5
19133 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19134 See \`config.log' for more details." >&2;}
19135 { (exit 77); exit 77; }; }; }
19137 ac_cv_sizeof_off_t=0
19140 rm -rf conftest.dSYM
19141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19145 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19146 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19150 cat >>confdefs.h <<_ACEOF
19151 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19156 # If we don't have largefile support, can't handle segsize >= 2GB.
19157 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19158 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19159 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19160 { (exit 1); exit 1; }; }
19165 ## Functions, global variables
19168 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19169 $as_echo_n "checking for int timezone... " >&6; }
19170 if test "${pgac_cv_var_int_timezone+set}" = set; then
19171 $as_echo_n "(cached) " >&6
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19185 res = timezone / 60;
19187 res = _timezone / 60;
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19200 $as_echo "$ac_try_echo") >&5
19201 (eval "$ac_link") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext && {
19211 test "$cross_compiling" = yes ||
19212 $as_test_x conftest$ac_exeext
19214 pgac_cv_var_int_timezone=yes
19216 $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 pgac_cv_var_int_timezone=no
19222 rm -rf conftest.dSYM
19223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19224 conftest$ac_exeext conftest.$ac_ext
19226 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19227 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19228 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_INT_TIMEZONE /**/
19235 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19236 $as_echo_n "checking types of arguments for accept()... " >&6; }
19237 if test "${ac_cv_func_accept_return+set}" = set; then
19238 $as_echo_n "(cached) " >&6
19240 if test "${ac_cv_func_accept_arg1+set}" = set; then
19241 $as_echo_n "(cached) " >&6
19243 if test "${ac_cv_func_accept_arg2+set}" = set; then
19244 $as_echo_n "(cached) " >&6
19246 if test "${ac_cv_func_accept_arg3+set}" = set; then
19247 $as_echo_n "(cached) " >&6
19249 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19250 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19251 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19252 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #ifdef HAVE_SYS_TYPES_H
19260 #include <sys/types.h>
19262 #ifdef HAVE_SYS_SOCKET_H
19263 #include <sys/socket.h>
19265 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19281 $as_echo "$ac_try_echo") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19284 grep -v '^ *+' conftest.er1 >conftest.err
19286 cat conftest.err >&5
19287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest.$ac_objext; then
19292 ac_not_found=no; break 4
19294 $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19305 if test "$ac_not_found" = yes; then
19306 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19307 $as_echo "$as_me: error: could not determine argument types" >&2;}
19308 { (exit 1); exit 1; }; }
19310 if test "$ac_cv_func_accept_arg3" = "void"; then
19311 ac_cv_func_accept_arg3=int
19321 { $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
19322 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19324 cat >>confdefs.h <<_ACEOF
19325 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19329 cat >>confdefs.h <<_ACEOF
19330 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19334 cat >>confdefs.h <<_ACEOF
19335 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19339 cat >>confdefs.h <<_ACEOF
19340 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19344 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19345 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19346 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19347 $as_echo_n "(cached) " >&6
19349 cat >conftest.$ac_ext <<_ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355 #include <sys/time.h>
19359 struct timeval *tp;
19360 struct timezone *tzp;
19361 gettimeofday(tp,tzp);
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19373 $as_echo "$ac_try_echo") >&5
19374 (eval "$ac_compile") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest.$ac_objext; then
19384 pgac_cv_func_gettimeofday_1arg=no
19386 $as_echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 pgac_cv_func_gettimeofday_1arg=yes
19392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19395 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19396 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19398 cat >>confdefs.h <<\_ACEOF
19399 #define GETTIMEOFDAY_1ARG /**/
19427 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
19429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19431 $as_echo_n "checking for $ac_func... " >&6; }
19432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19433 $as_echo_n "(cached) " >&6
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19443 #define $ac_func innocuous_$ac_func
19445 /* System header to define __stub macros and hopefully few prototypes,
19446 which can conflict with char $ac_func (); below.
19447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19448 <limits.h> exists even on freestanding compilers. */
19451 # include <limits.h>
19453 # include <assert.h>
19458 /* Override any GCC internal prototype to avoid an error.
19459 Use char because int might match the return type of a GCC
19460 builtin and then its argument prototype would still apply. */
19465 /* The GNU C library defines this for functions which it implements
19466 to always fail with ENOSYS. Some functions are actually named
19467 something starting with __ and the normal name is an alias. */
19468 #if defined __stub_$ac_func || defined __stub___$ac_func
19475 return $ac_func ();
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19487 $as_echo "$ac_try_echo") >&5
19488 (eval "$ac_link") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && {
19495 test -z "$ac_c_werror_flag" ||
19496 test ! -s conftest.err
19497 } && test -s conftest$ac_exeext && {
19498 test "$cross_compiling" = yes ||
19499 $as_test_x conftest$ac_exeext
19501 eval "$as_ac_var=yes"
19503 $as_echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 eval "$as_ac_var=no"
19509 rm -rf conftest.dSYM
19510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19511 conftest$ac_exeext conftest.$ac_ext
19513 ac_res=`eval 'as_val=${'$as_ac_var'}
19514 $as_echo "$as_val"'`
19515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19516 $as_echo "$ac_res" >&6; }
19517 as_val=`eval 'as_val=${'$as_ac_var'}
19518 $as_echo "$as_val"'`
19519 if test "x$as_val" = x""yes; then
19520 cat >>confdefs.h <<_ACEOF
19521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19529 for ac_func in fseeko
19531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19532 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19533 $as_echo_n "checking for $ac_func... " >&6; }
19534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19535 $as_echo_n "(cached) " >&6
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19545 #define $ac_func innocuous_$ac_func
19547 /* System header to define __stub macros and hopefully few prototypes,
19548 which can conflict with char $ac_func (); below.
19549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19550 <limits.h> exists even on freestanding compilers. */
19553 # include <limits.h>
19555 # include <assert.h>
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19567 /* The GNU C library defines this for functions which it implements
19568 to always fail with ENOSYS. Some functions are actually named
19569 something starting with __ and the normal name is an alias. */
19570 #if defined __stub_$ac_func || defined __stub___$ac_func
19577 return $ac_func ();
19582 rm -f conftest.$ac_objext conftest$ac_exeext
19583 if { (ac_try="$ac_link"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19589 $as_echo "$ac_try_echo") >&5
19590 (eval "$ac_link") 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } && {
19597 test -z "$ac_c_werror_flag" ||
19598 test ! -s conftest.err
19599 } && test -s conftest$ac_exeext && {
19600 test "$cross_compiling" = yes ||
19601 $as_test_x conftest$ac_exeext
19603 eval "$as_ac_var=yes"
19605 $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 eval "$as_ac_var=no"
19611 rm -rf conftest.dSYM
19612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19613 conftest$ac_exeext conftest.$ac_ext
19615 ac_res=`eval 'as_val=${'$as_ac_var'}
19616 $as_echo "$as_val"'`
19617 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19618 $as_echo "$ac_res" >&6; }
19619 as_val=`eval 'as_val=${'$as_ac_var'}
19620 $as_echo "$as_val"'`
19621 if test "x$as_val" = x""yes; then
19622 cat >>confdefs.h <<_ACEOF
19623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19627 case " $LIBOBJS " in
19628 *" $ac_func.$ac_objext "* ) ;;
19629 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19638 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19639 # Mingw uses macros to access Win32 API calls
19642 cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_FSEEKO 1
19646 ac_cv_func_fseeko=yes;;
19648 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19649 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19650 if test "${ac_cv_sys_largefile_source+set}" = set; then
19651 $as_echo_n "(cached) " >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <sys/types.h> /* for off_t */
19665 int (*fp) (FILE *, off_t, int) = fseeko;
19666 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (ac_try="$ac_link"
19673 case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19678 $as_echo "$ac_try_echo") >&5
19679 (eval "$ac_link") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext && {
19689 test "$cross_compiling" = yes ||
19690 $as_test_x conftest$ac_exeext
19692 ac_cv_sys_largefile_source=no; break
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19700 rm -rf conftest.dSYM
19701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19702 conftest$ac_exeext conftest.$ac_ext
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 #define _LARGEFILE_SOURCE 1
19710 #include <sys/types.h> /* for off_t */
19715 int (*fp) (FILE *, off_t, int) = fseeko;
19716 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19721 rm -f conftest.$ac_objext conftest$ac_exeext
19722 if { (ac_try="$ac_link"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19728 $as_echo "$ac_try_echo") >&5
19729 (eval "$ac_link") 2>conftest.er1
19731 grep -v '^ *+' conftest.er1 >conftest.err
19733 cat conftest.err >&5
19734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && {
19736 test -z "$ac_c_werror_flag" ||
19737 test ! -s conftest.err
19738 } && test -s conftest$ac_exeext && {
19739 test "$cross_compiling" = yes ||
19740 $as_test_x conftest$ac_exeext
19742 ac_cv_sys_largefile_source=1; break
19744 $as_echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19750 rm -rf conftest.dSYM
19751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19752 conftest$ac_exeext conftest.$ac_ext
19753 ac_cv_sys_largefile_source=unknown
19757 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19758 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19759 case $ac_cv_sys_largefile_source in #(
19762 cat >>confdefs.h <<_ACEOF
19763 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19769 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19770 # in glibc 2.1.3, but that breaks too many other things.
19771 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19772 if test $ac_cv_sys_largefile_source != unknown; then
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_FSEEKO 1
19782 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19783 # by calling it, 2009-04-02
19784 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19785 if test "$PORTNAME" != "solaris"; then
19787 for ac_func in posix_fadvise
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 $as_echo_n "checking for $ac_func... " >&6; }
19792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19793 $as_echo_n "(cached) " >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19803 #define $ac_func innocuous_$ac_func
19805 /* System header to define __stub macros and hopefully few prototypes,
19806 which can conflict with char $ac_func (); below.
19807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808 <limits.h> exists even on freestanding compilers. */
19811 # include <limits.h>
19813 # include <assert.h>
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19825 /* The GNU C library defines this for functions which it implements
19826 to always fail with ENOSYS. Some functions are actually named
19827 something starting with __ and the normal name is an alias. */
19828 #if defined __stub_$ac_func || defined __stub___$ac_func
19835 return $ac_func ();
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848 (eval "$ac_link") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest$ac_exeext && {
19858 test "$cross_compiling" = yes ||
19859 $as_test_x conftest$ac_exeext
19861 eval "$as_ac_var=yes"
19863 $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 eval "$as_ac_var=no"
19869 rm -rf conftest.dSYM
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871 conftest$ac_exeext conftest.$ac_ext
19873 ac_res=`eval 'as_val=${'$as_ac_var'}
19874 $as_echo "$as_val"'`
19875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19876 $as_echo "$ac_res" >&6; }
19877 as_val=`eval 'as_val=${'$as_ac_var'}
19878 $as_echo "$as_val"'`
19879 if test "x$as_val" = x""yes; then
19880 cat >>confdefs.h <<_ACEOF
19881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19887 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19888 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19889 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19890 $as_echo_n "(cached) " >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19903 #ifndef posix_fadvise
19904 (void) posix_fadvise;
19911 rm -f conftest.$ac_objext
19912 if { (ac_try="$ac_compile"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19918 $as_echo "$ac_try_echo") >&5
19919 (eval "$ac_compile") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest.$ac_objext; then
19929 ac_cv_have_decl_posix_fadvise=yes
19931 $as_echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_cv_have_decl_posix_fadvise=no
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19940 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19941 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19943 cat >>confdefs.h <<_ACEOF
19944 #define HAVE_DECL_POSIX_FADVISE 1
19949 cat >>confdefs.h <<_ACEOF
19950 #define HAVE_DECL_POSIX_FADVISE 0
19959 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19960 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19961 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19962 $as_echo_n "(cached) " >&6
19964 cat >conftest.$ac_ext <<_ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 #include <unistd.h>
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19990 $as_echo "$ac_try_echo") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_cv_have_decl_fdatasync=yes
20003 $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_have_decl_fdatasync=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20012 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20013 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20015 cat >>confdefs.h <<_ACEOF
20016 #define HAVE_DECL_FDATASYNC 1
20021 cat >>confdefs.h <<_ACEOF
20022 #define HAVE_DECL_FDATASYNC 0
20029 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20030 $as_echo_n "checking whether strlcat is declared... " >&6; }
20031 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20032 $as_echo_n "(cached) " >&6
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 $ac_includes_default
20052 rm -f conftest.$ac_objext
20053 if { (ac_try="$ac_compile"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20059 $as_echo "$ac_try_echo") >&5
20060 (eval "$ac_compile") 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } && {
20067 test -z "$ac_c_werror_flag" ||
20068 test ! -s conftest.err
20069 } && test -s conftest.$ac_objext; then
20070 ac_cv_have_decl_strlcat=yes
20072 $as_echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20075 ac_cv_have_decl_strlcat=no
20078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20080 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20081 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20082 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define HAVE_DECL_STRLCAT 1
20090 cat >>confdefs.h <<_ACEOF
20091 #define HAVE_DECL_STRLCAT 0
20096 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20097 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20098 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20099 $as_echo_n "(cached) " >&6
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 $ac_includes_default
20119 rm -f conftest.$ac_objext
20120 if { (ac_try="$ac_compile"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20126 $as_echo "$ac_try_echo") >&5
20127 (eval "$ac_compile") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest.$ac_objext; then
20137 ac_cv_have_decl_strlcpy=yes
20139 $as_echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 ac_cv_have_decl_strlcpy=no
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20148 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20149 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_DECL_STRLCPY 1
20157 cat >>confdefs.h <<_ACEOF
20158 #define HAVE_DECL_STRLCPY 0
20165 # This is probably only present on Darwin, but may as well check always
20166 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20167 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20168 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20169 $as_echo_n "(cached) " >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20182 #ifndef F_FULLFSYNC
20183 (void) F_FULLFSYNC;
20190 rm -f conftest.$ac_objext
20191 if { (ac_try="$ac_compile"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20197 $as_echo "$ac_try_echo") >&5
20198 (eval "$ac_compile") 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest.$ac_objext; then
20208 ac_cv_have_decl_F_FULLFSYNC=yes
20210 $as_echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_have_decl_F_FULLFSYNC=no
20216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20218 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20219 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20220 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20222 cat >>confdefs.h <<_ACEOF
20223 #define HAVE_DECL_F_FULLFSYNC 1
20228 cat >>confdefs.h <<_ACEOF
20229 #define HAVE_DECL_F_FULLFSYNC 0
20238 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20239 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20240 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20241 $as_echo_n "(cached) " >&6
20243 ac_cv_type_struct_sockaddr_in6=no
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 $ac_includes_default
20251 #include <netinet/in.h>
20256 if (sizeof (struct sockaddr_in6))
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20269 $as_echo "$ac_try_echo") >&5
20270 (eval "$ac_compile") 2>conftest.er1
20272 grep -v '^ *+' conftest.er1 >conftest.err
20274 cat conftest.err >&5
20275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } && {
20277 test -z "$ac_c_werror_flag" ||
20278 test ! -s conftest.err
20279 } && test -s conftest.$ac_objext; then
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 $ac_includes_default
20287 #include <netinet/in.h>
20292 if (sizeof ((struct sockaddr_in6)))
20298 rm -f conftest.$ac_objext
20299 if { (ac_try="$ac_compile"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20305 $as_echo "$ac_try_echo") >&5
20306 (eval "$ac_compile") 2>conftest.er1
20308 grep -v '^ *+' conftest.er1 >conftest.err
20310 cat conftest.err >&5
20311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } && {
20313 test -z "$ac_c_werror_flag" ||
20314 test ! -s conftest.err
20315 } && test -s conftest.$ac_objext; then
20318 $as_echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ac_cv_type_struct_sockaddr_in6=yes
20324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20326 $as_echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20335 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20336 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20338 cat >>confdefs.h <<\_ACEOF
20339 #define HAVE_IPV6 1
20347 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20348 $as_echo_n "checking for PS_STRINGS... " >&6; }
20349 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20350 $as_echo_n "(cached) " >&6
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 #include <machine/vmparam.h>
20359 #include <sys/exec.h>
20364 PS_STRINGS->ps_nargvstr = 1;
20365 PS_STRINGS->ps_argvstr = "foo";
20370 rm -f conftest.$ac_objext conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20377 $as_echo "$ac_try_echo") >&5
20378 (eval "$ac_link") 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } && {
20385 test -z "$ac_c_werror_flag" ||
20386 test ! -s conftest.err
20387 } && test -s conftest$ac_exeext && {
20388 test "$cross_compiling" = yes ||
20389 $as_test_x conftest$ac_exeext
20391 pgac_cv_var_PS_STRINGS=yes
20393 $as_echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 pgac_cv_var_PS_STRINGS=no
20399 rm -rf conftest.dSYM
20400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20401 conftest$ac_exeext conftest.$ac_ext
20403 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20404 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20405 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_PS_STRINGS /**/
20414 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20415 # is missing. Yes, there are machines that have only one. We may
20416 # also decide to use snprintf.c if snprintf() is present but does not
20417 # have all the features we need --- see below.
20419 if test "$PORTNAME" = "win32"; then
20420 # Win32 gets snprintf.c built unconditionally.
20422 # To properly translate all NLS languages strings, we must support the
20423 # *printf() %$ format, which allows *printf() arguments to be selected
20424 # by position in the translated string.
20426 # libintl versions < 0.13 use the native *printf() functions, and Win32
20427 # *printf() doesn't understand %$, so we must use our /port versions,
20428 # which do understand %$. libintl versions >= 0.13 include their own
20429 # *printf versions on Win32. The libintl 0.13 release note text is:
20431 # C format strings with positions, as they arise when a translator
20432 # needs to reorder a sentence, are now supported on all platforms.
20433 # On those few platforms (NetBSD and Woe32) for which the native
20434 # printf()/fprintf()/... functions don't support such format
20435 # strings, replacements are provided through <libintl.h>.
20437 # We could use libintl >= 0.13's *printf() if we were sure that we had
20438 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20439 # to guarantee that, it is best to just use our own, so we are sure to
20440 # get %$ support. In include/port.h we disable the *printf() macros
20441 # that might have been defined by libintl.
20443 # We do this unconditionally whether NLS is used or not so we are sure
20444 # that all Win32 libraries and binaries behave the same.
20445 pgac_need_repl_snprintf=yes
20447 pgac_need_repl_snprintf=no
20449 for ac_func in snprintf
20451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20452 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20453 $as_echo_n "checking for $ac_func... " >&6; }
20454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20455 $as_echo_n "(cached) " >&6
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20465 #define $ac_func innocuous_$ac_func
20467 /* System header to define __stub macros and hopefully few prototypes,
20468 which can conflict with char $ac_func (); below.
20469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20470 <limits.h> exists even on freestanding compilers. */
20473 # include <limits.h>
20475 # include <assert.h>
20480 /* Override any GCC internal prototype to avoid an error.
20481 Use char because int might match the return type of a GCC
20482 builtin and then its argument prototype would still apply. */
20487 /* The GNU C library defines this for functions which it implements
20488 to always fail with ENOSYS. Some functions are actually named
20489 something starting with __ and the normal name is an alias. */
20490 #if defined __stub_$ac_func || defined __stub___$ac_func
20497 return $ac_func ();
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20509 $as_echo "$ac_try_echo") >&5
20510 (eval "$ac_link") 2>conftest.er1
20512 grep -v '^ *+' conftest.er1 >conftest.err
20514 cat conftest.err >&5
20515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && {
20517 test -z "$ac_c_werror_flag" ||
20518 test ! -s conftest.err
20519 } && test -s conftest$ac_exeext && {
20520 test "$cross_compiling" = yes ||
20521 $as_test_x conftest$ac_exeext
20523 eval "$as_ac_var=yes"
20525 $as_echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 eval "$as_ac_var=no"
20531 rm -rf conftest.dSYM
20532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20533 conftest$ac_exeext conftest.$ac_ext
20535 ac_res=`eval 'as_val=${'$as_ac_var'}
20536 $as_echo "$as_val"'`
20537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20538 $as_echo "$ac_res" >&6; }
20539 as_val=`eval 'as_val=${'$as_ac_var'}
20540 $as_echo "$as_val"'`
20541 if test "x$as_val" = x""yes; then
20542 cat >>confdefs.h <<_ACEOF
20543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20547 pgac_need_repl_snprintf=yes
20552 for ac_func in vsnprintf
20554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20556 $as_echo_n "checking for $ac_func... " >&6; }
20557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20558 $as_echo_n "(cached) " >&6
20560 cat >conftest.$ac_ext <<_ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20568 #define $ac_func innocuous_$ac_func
20570 /* System header to define __stub macros and hopefully few prototypes,
20571 which can conflict with char $ac_func (); below.
20572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20573 <limits.h> exists even on freestanding compilers. */
20576 # include <limits.h>
20578 # include <assert.h>
20583 /* Override any GCC internal prototype to avoid an error.
20584 Use char because int might match the return type of a GCC
20585 builtin and then its argument prototype would still apply. */
20590 /* The GNU C library defines this for functions which it implements
20591 to always fail with ENOSYS. Some functions are actually named
20592 something starting with __ and the normal name is an alias. */
20593 #if defined __stub_$ac_func || defined __stub___$ac_func
20600 return $ac_func ();
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20612 $as_echo "$ac_try_echo") >&5
20613 (eval "$ac_link") 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } && {
20620 test -z "$ac_c_werror_flag" ||
20621 test ! -s conftest.err
20622 } && test -s conftest$ac_exeext && {
20623 test "$cross_compiling" = yes ||
20624 $as_test_x conftest$ac_exeext
20626 eval "$as_ac_var=yes"
20628 $as_echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 eval "$as_ac_var=no"
20634 rm -rf conftest.dSYM
20635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20636 conftest$ac_exeext conftest.$ac_ext
20638 ac_res=`eval 'as_val=${'$as_ac_var'}
20639 $as_echo "$as_val"'`
20640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20641 $as_echo "$ac_res" >&6; }
20642 as_val=`eval 'as_val=${'$as_ac_var'}
20643 $as_echo "$as_val"'`
20644 if test "x$as_val" = x""yes; then
20645 cat >>confdefs.h <<_ACEOF
20646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20650 pgac_need_repl_snprintf=yes
20657 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20658 # include/c.h will provide declarations. Note this is a separate test
20659 # from whether the functions exist in the C library --- there are
20660 # systems that have the functions but don't bother to declare them :-(
20662 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20663 $as_echo_n "checking whether snprintf is declared... " >&6; }
20664 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20665 $as_echo_n "(cached) " >&6
20667 cat >conftest.$ac_ext <<_ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 $ac_includes_default
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20692 $as_echo "$ac_try_echo") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20695 grep -v '^ *+' conftest.er1 >conftest.err
20697 cat conftest.err >&5
20698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } && {
20700 test -z "$ac_c_werror_flag" ||
20701 test ! -s conftest.err
20702 } && test -s conftest.$ac_objext; then
20703 ac_cv_have_decl_snprintf=yes
20705 $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 ac_cv_have_decl_snprintf=no
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20714 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20715 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define HAVE_DECL_SNPRINTF 1
20723 cat >>confdefs.h <<_ACEOF
20724 #define HAVE_DECL_SNPRINTF 0
20729 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20730 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20731 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20732 $as_echo_n "(cached) " >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 $ac_includes_default
20752 rm -f conftest.$ac_objext
20753 if { (ac_try="$ac_compile"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20759 $as_echo "$ac_try_echo") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20762 grep -v '^ *+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
20770 ac_cv_have_decl_vsnprintf=yes
20772 $as_echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_cv_have_decl_vsnprintf=no
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20781 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20782 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_DECL_VSNPRINTF 1
20790 cat >>confdefs.h <<_ACEOF
20791 #define HAVE_DECL_VSNPRINTF 0
20800 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20801 $as_echo_n "checking for isinf... " >&6; }
20802 if test "${ac_cv_func_isinf+set}" = set; then
20803 $as_echo_n "(cached) " >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20813 double glob_double;
20818 return isinf(glob_double) ? 0 : 1;
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (ac_try="$ac_link"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20830 $as_echo "$ac_try_echo") >&5
20831 (eval "$ac_link") 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && {
20838 test -z "$ac_c_werror_flag" ||
20839 test ! -s conftest.err
20840 } && test -s conftest$ac_exeext && {
20841 test "$cross_compiling" = yes ||
20842 $as_test_x conftest$ac_exeext
20844 ac_cv_func_isinf=yes
20846 $as_echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20849 ac_cv_func_isinf=no
20852 rm -rf conftest.dSYM
20853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20854 conftest$ac_exeext conftest.$ac_ext
20856 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20857 $as_echo "$ac_cv_func_isinf" >&6; }
20859 if test $ac_cv_func_isinf = yes ; then
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_ISINF 1
20866 case " $LIBOBJS " in
20867 *" isinf.$ac_objext "* ) ;;
20868 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20872 # Look for a way to implement a substitute for isinf()
20877 for ac_func in fpclass fp_class fp_class_d class
20879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20880 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20881 $as_echo_n "checking for $ac_func... " >&6; }
20882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20883 $as_echo_n "(cached) " >&6
20885 cat >conftest.$ac_ext <<_ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20893 #define $ac_func innocuous_$ac_func
20895 /* System header to define __stub macros and hopefully few prototypes,
20896 which can conflict with char $ac_func (); below.
20897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20898 <limits.h> exists even on freestanding compilers. */
20901 # include <limits.h>
20903 # include <assert.h>
20908 /* Override any GCC internal prototype to avoid an error.
20909 Use char because int might match the return type of a GCC
20910 builtin and then its argument prototype would still apply. */
20915 /* The GNU C library defines this for functions which it implements
20916 to always fail with ENOSYS. Some functions are actually named
20917 something starting with __ and the normal name is an alias. */
20918 #if defined __stub_$ac_func || defined __stub___$ac_func
20925 return $ac_func ();
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_link") 2>conftest.er1
20940 grep -v '^ *+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest$ac_exeext && {
20948 test "$cross_compiling" = yes ||
20949 $as_test_x conftest$ac_exeext
20951 eval "$as_ac_var=yes"
20953 $as_echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 eval "$as_ac_var=no"
20959 rm -rf conftest.dSYM
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961 conftest$ac_exeext conftest.$ac_ext
20963 ac_res=`eval 'as_val=${'$as_ac_var'}
20964 $as_echo "$as_val"'`
20965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20966 $as_echo "$ac_res" >&6; }
20967 as_val=`eval 'as_val=${'$as_ac_var'}
20968 $as_echo "$as_val"'`
20969 if test "x$as_val" = x""yes; then
20970 cat >>confdefs.h <<_ACEOF
20971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20979 # Some versions of libedit contain strlcpy(); so disregard that library while
20980 # checking for these standard libc functions.
20981 pgac_save_LIBS="$LIBS"
20982 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20995 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20999 $as_echo_n "checking for $ac_func... " >&6; }
21000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21001 $as_echo_n "(cached) " >&6
21003 cat >conftest.$ac_ext <<_ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21011 #define $ac_func innocuous_$ac_func
21013 /* System header to define __stub macros and hopefully few prototypes,
21014 which can conflict with char $ac_func (); below.
21015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21016 <limits.h> exists even on freestanding compilers. */
21019 # include <limits.h>
21021 # include <assert.h>
21026 /* Override any GCC internal prototype to avoid an error.
21027 Use char because int might match the return type of a GCC
21028 builtin and then its argument prototype would still apply. */
21033 /* The GNU C library defines this for functions which it implements
21034 to always fail with ENOSYS. Some functions are actually named
21035 something starting with __ and the normal name is an alias. */
21036 #if defined __stub_$ac_func || defined __stub___$ac_func
21043 return $ac_func ();
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (ac_try="$ac_link"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_link") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest$ac_exeext && {
21066 test "$cross_compiling" = yes ||
21067 $as_test_x conftest$ac_exeext
21069 eval "$as_ac_var=yes"
21071 $as_echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 eval "$as_ac_var=no"
21077 rm -rf conftest.dSYM
21078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21079 conftest$ac_exeext conftest.$ac_ext
21081 ac_res=`eval 'as_val=${'$as_ac_var'}
21082 $as_echo "$as_val"'`
21083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21084 $as_echo "$ac_res" >&6; }
21085 as_val=`eval 'as_val=${'$as_ac_var'}
21086 $as_echo "$as_val"'`
21087 if test "x$as_val" = x""yes; then
21088 cat >>confdefs.h <<_ACEOF
21089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21093 case " $LIBOBJS " in
21094 *" $ac_func.$ac_objext "* ) ;;
21095 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21106 # Windows uses a specialised env handler
21107 # and doesn't need a replacement getpeereid because it doesn't use
21111 cat >>confdefs.h <<\_ACEOF
21112 #define HAVE_UNSETENV 1
21116 cat >>confdefs.h <<\_ACEOF
21117 #define HAVE_GETPEEREID 1
21120 ac_cv_func_unsetenv=yes
21121 ac_cv_func_getpeereid=yes;;
21125 for ac_func in unsetenv getpeereid
21127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21129 $as_echo_n "checking for $ac_func... " >&6; }
21130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21131 $as_echo_n "(cached) " >&6
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21141 #define $ac_func innocuous_$ac_func
21143 /* System header to define __stub macros and hopefully few prototypes,
21144 which can conflict with char $ac_func (); below.
21145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21146 <limits.h> exists even on freestanding compilers. */
21149 # include <limits.h>
21151 # include <assert.h>
21156 /* Override any GCC internal prototype to avoid an error.
21157 Use char because int might match the return type of a GCC
21158 builtin and then its argument prototype would still apply. */
21163 /* The GNU C library defines this for functions which it implements
21164 to always fail with ENOSYS. Some functions are actually named
21165 something starting with __ and the normal name is an alias. */
21166 #if defined __stub_$ac_func || defined __stub___$ac_func
21173 return $ac_func ();
21178 rm -f conftest.$ac_objext conftest$ac_exeext
21179 if { (ac_try="$ac_link"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21185 $as_echo "$ac_try_echo") >&5
21186 (eval "$ac_link") 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } && {
21193 test -z "$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21195 } && test -s conftest$ac_exeext && {
21196 test "$cross_compiling" = yes ||
21197 $as_test_x conftest$ac_exeext
21199 eval "$as_ac_var=yes"
21201 $as_echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 eval "$as_ac_var=no"
21207 rm -rf conftest.dSYM
21208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21209 conftest$ac_exeext conftest.$ac_ext
21211 ac_res=`eval 'as_val=${'$as_ac_var'}
21212 $as_echo "$as_val"'`
21213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21214 $as_echo "$ac_res" >&6; }
21215 as_val=`eval 'as_val=${'$as_ac_var'}
21216 $as_echo "$as_val"'`
21217 if test "x$as_val" = x""yes; then
21218 cat >>confdefs.h <<_ACEOF
21219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21223 case " $LIBOBJS " in
21224 *" $ac_func.$ac_objext "* ) ;;
21225 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21237 LIBS="$pgac_save_LIBS"
21239 # System's version of getaddrinfo(), if any, may be used only if we found
21240 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21241 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21242 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21243 # because we want to use our own getaddrinfo.c on Windows anyway.)
21244 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21246 for ac_func in getaddrinfo
21248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21249 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21250 $as_echo_n "checking for $ac_func... " >&6; }
21251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21252 $as_echo_n "(cached) " >&6
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21262 #define $ac_func innocuous_$ac_func
21264 /* System header to define __stub macros and hopefully few prototypes,
21265 which can conflict with char $ac_func (); below.
21266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21267 <limits.h> exists even on freestanding compilers. */
21270 # include <limits.h>
21272 # include <assert.h>
21277 /* Override any GCC internal prototype to avoid an error.
21278 Use char because int might match the return type of a GCC
21279 builtin and then its argument prototype would still apply. */
21284 /* The GNU C library defines this for functions which it implements
21285 to always fail with ENOSYS. Some functions are actually named
21286 something starting with __ and the normal name is an alias. */
21287 #if defined __stub_$ac_func || defined __stub___$ac_func
21294 return $ac_func ();
21299 rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (ac_try="$ac_link"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21306 $as_echo "$ac_try_echo") >&5
21307 (eval "$ac_link") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } && {
21314 test -z "$ac_c_werror_flag" ||
21315 test ! -s conftest.err
21316 } && test -s conftest$ac_exeext && {
21317 test "$cross_compiling" = yes ||
21318 $as_test_x conftest$ac_exeext
21320 eval "$as_ac_var=yes"
21322 $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 eval "$as_ac_var=no"
21328 rm -rf conftest.dSYM
21329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21330 conftest$ac_exeext conftest.$ac_ext
21332 ac_res=`eval 'as_val=${'$as_ac_var'}
21333 $as_echo "$as_val"'`
21334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21335 $as_echo "$ac_res" >&6; }
21336 as_val=`eval 'as_val=${'$as_ac_var'}
21337 $as_echo "$as_val"'`
21338 if test "x$as_val" = x""yes; then
21339 cat >>confdefs.h <<_ACEOF
21340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21344 case " $LIBOBJS " in
21345 *" $ac_func.$ac_objext "* ) ;;
21346 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21355 case " $LIBOBJS " in
21356 *" getaddrinfo.$ac_objext "* ) ;;
21357 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21363 # Similarly, use system's getopt_long() only if system provides struct option.
21364 if test x"$ac_cv_type_struct_option" = xyes ; then
21366 for ac_func in getopt_long
21368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21370 $as_echo_n "checking for $ac_func... " >&6; }
21371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21372 $as_echo_n "(cached) " >&6
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21382 #define $ac_func innocuous_$ac_func
21384 /* System header to define __stub macros and hopefully few prototypes,
21385 which can conflict with char $ac_func (); below.
21386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21387 <limits.h> exists even on freestanding compilers. */
21390 # include <limits.h>
21392 # include <assert.h>
21397 /* Override any GCC internal prototype to avoid an error.
21398 Use char because int might match the return type of a GCC
21399 builtin and then its argument prototype would still apply. */
21404 /* The GNU C library defines this for functions which it implements
21405 to always fail with ENOSYS. Some functions are actually named
21406 something starting with __ and the normal name is an alias. */
21407 #if defined __stub_$ac_func || defined __stub___$ac_func
21414 return $ac_func ();
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21426 $as_echo "$ac_try_echo") >&5
21427 (eval "$ac_link") 2>conftest.er1
21429 grep -v '^ *+' conftest.er1 >conftest.err
21431 cat conftest.err >&5
21432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest$ac_exeext && {
21437 test "$cross_compiling" = yes ||
21438 $as_test_x conftest$ac_exeext
21440 eval "$as_ac_var=yes"
21442 $as_echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 eval "$as_ac_var=no"
21448 rm -rf conftest.dSYM
21449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21450 conftest$ac_exeext conftest.$ac_ext
21452 ac_res=`eval 'as_val=${'$as_ac_var'}
21453 $as_echo "$as_val"'`
21454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21455 $as_echo "$ac_res" >&6; }
21456 as_val=`eval 'as_val=${'$as_ac_var'}
21457 $as_echo "$as_val"'`
21458 if test "x$as_val" = x""yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21464 case " $LIBOBJS " in
21465 *" $ac_func.$ac_objext "* ) ;;
21466 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21475 case " $LIBOBJS " in
21476 *" getopt_long.$ac_objext "* ) ;;
21477 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21483 # Solaris' getopt() doesn't do what we want for long options, so always use
21484 # our version on that platform.
21485 if test "$PORTNAME" = "solaris"; then
21486 case " $LIBOBJS " in
21487 *" getopt.$ac_objext "* ) ;;
21488 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21494 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21495 # so always use our version on Windows.
21496 if test "$PORTNAME" = "win32"; then
21497 case " $LIBOBJS " in
21498 *" getopt.$ac_objext "* ) ;;
21499 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21503 case " $LIBOBJS " in
21504 *" getopt_long.$ac_objext "* ) ;;
21505 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21512 if test "$PORTNAME" = "win32"; then
21514 for ac_func in gettimeofday
21516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21518 $as_echo_n "checking for $ac_func... " >&6; }
21519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21520 $as_echo_n "(cached) " >&6
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21530 #define $ac_func innocuous_$ac_func
21532 /* System header to define __stub macros and hopefully few prototypes,
21533 which can conflict with char $ac_func (); below.
21534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21535 <limits.h> exists even on freestanding compilers. */
21538 # include <limits.h>
21540 # include <assert.h>
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21552 /* The GNU C library defines this for functions which it implements
21553 to always fail with ENOSYS. Some functions are actually named
21554 something starting with __ and the normal name is an alias. */
21555 #if defined __stub_$ac_func || defined __stub___$ac_func
21562 return $ac_func ();
21567 rm -f conftest.$ac_objext conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21574 $as_echo "$ac_try_echo") >&5
21575 (eval "$ac_link") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest$ac_exeext && {
21585 test "$cross_compiling" = yes ||
21586 $as_test_x conftest$ac_exeext
21588 eval "$as_ac_var=yes"
21590 $as_echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 eval "$as_ac_var=no"
21596 rm -rf conftest.dSYM
21597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21598 conftest$ac_exeext conftest.$ac_ext
21600 ac_res=`eval 'as_val=${'$as_ac_var'}
21601 $as_echo "$as_val"'`
21602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21603 $as_echo "$ac_res" >&6; }
21604 as_val=`eval 'as_val=${'$as_ac_var'}
21605 $as_echo "$as_val"'`
21606 if test "x$as_val" = x""yes; then
21607 cat >>confdefs.h <<_ACEOF
21608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21612 case " $LIBOBJS " in
21613 *" $ac_func.$ac_objext "* ) ;;
21614 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21622 case " $LIBOBJS " in
21623 *" kill.$ac_objext "* ) ;;
21624 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21628 case " $LIBOBJS " in
21629 *" open.$ac_objext "* ) ;;
21630 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21634 case " $LIBOBJS " in
21635 *" win32env.$ac_objext "* ) ;;
21636 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21640 case " $LIBOBJS " in
21641 *" win32error.$ac_objext "* ) ;;
21642 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21646 case " $LIBOBJS " in
21647 *" win32setlocale.$ac_objext "* ) ;;
21648 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21653 cat >>confdefs.h <<\_ACEOF
21654 #define HAVE_SYMLINK 1
21657 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21658 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21659 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21660 $as_echo_n "(cached) " >&6
21662 ac_cv_type_MINIDUMP_TYPE=no
21663 cat >conftest.$ac_ext <<_ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21670 #define WIN32_LEAN_AND_MEAN
21671 #include <windows.h>
21672 #include <string.h>
21673 #include <dbghelp.h>
21678 if (sizeof (MINIDUMP_TYPE))
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21702 cat >conftest.$ac_ext <<_ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21709 #define WIN32_LEAN_AND_MEAN
21710 #include <windows.h>
21711 #include <string.h>
21712 #include <dbghelp.h>
21717 if (sizeof ((MINIDUMP_TYPE)))
21723 rm -f conftest.$ac_objext
21724 if { (ac_try="$ac_compile"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21730 $as_echo "$ac_try_echo") >&5
21731 (eval "$ac_compile") 2>conftest.er1
21733 grep -v '^ *+' conftest.er1 >conftest.err
21735 cat conftest.err >&5
21736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest.$ac_objext; then
21743 $as_echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 ac_cv_type_MINIDUMP_TYPE=yes
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751 $as_echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21760 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21761 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21763 cat >>confdefs.h <<_ACEOF
21764 #define HAVE_MINIDUMP_TYPE 1
21767 pgac_minidump_type=yes
21769 pgac_minidump_type=no
21773 if test x"$pgac_minidump_type" = x"yes" ; then
21774 have_win32_dbghelp=yes
21777 have_win32_dbghelp=no
21781 if test "$with_readline" = yes; then
21782 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21783 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21784 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21785 $as_echo_n "(cached) " >&6
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21794 #ifdef HAVE_READLINE_READLINE_H
21795 # include <readline/readline.h>
21796 #elif defined(HAVE_READLINE_H)
21797 # include <readline.h>
21803 rl_completion_append_character = 'x';
21808 rm -f conftest.$ac_objext conftest$ac_exeext
21809 if { (ac_try="$ac_link"
21810 case "(($ac_try" in
21811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21812 *) ac_try_echo=$ac_try;;
21814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21815 $as_echo "$ac_try_echo") >&5
21816 (eval "$ac_link") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_c_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest$ac_exeext && {
21826 test "$cross_compiling" = yes ||
21827 $as_test_x conftest$ac_exeext
21829 pgac_cv_var_rl_completion_append_character=yes
21831 $as_echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21834 pgac_cv_var_rl_completion_append_character=no
21837 rm -rf conftest.dSYM
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839 conftest$ac_exeext conftest.$ac_ext
21841 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21842 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21843 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21852 for ac_func in rl_completion_matches rl_filename_completion_function
21854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21856 $as_echo_n "checking for $ac_func... " >&6; }
21857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21858 $as_echo_n "(cached) " >&6
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21868 #define $ac_func innocuous_$ac_func
21870 /* System header to define __stub macros and hopefully few prototypes,
21871 which can conflict with char $ac_func (); below.
21872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21873 <limits.h> exists even on freestanding compilers. */
21876 # include <limits.h>
21878 # include <assert.h>
21883 /* Override any GCC internal prototype to avoid an error.
21884 Use char because int might match the return type of a GCC
21885 builtin and then its argument prototype would still apply. */
21890 /* The GNU C library defines this for functions which it implements
21891 to always fail with ENOSYS. Some functions are actually named
21892 something starting with __ and the normal name is an alias. */
21893 #if defined __stub_$ac_func || defined __stub___$ac_func
21900 return $ac_func ();
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21912 $as_echo "$ac_try_echo") >&5
21913 (eval "$ac_link") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest$ac_exeext && {
21923 test "$cross_compiling" = yes ||
21924 $as_test_x conftest$ac_exeext
21926 eval "$as_ac_var=yes"
21928 $as_echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 eval "$as_ac_var=no"
21934 rm -rf conftest.dSYM
21935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21936 conftest$ac_exeext conftest.$ac_ext
21938 ac_res=`eval 'as_val=${'$as_ac_var'}
21939 $as_echo "$as_val"'`
21940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21941 $as_echo "$ac_res" >&6; }
21942 as_val=`eval 'as_val=${'$as_ac_var'}
21943 $as_echo "$as_val"'`
21944 if test "x$as_val" = x""yes; then
21945 cat >>confdefs.h <<_ACEOF
21946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21954 for ac_func in append_history history_truncate_file
21956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21958 $as_echo_n "checking for $ac_func... " >&6; }
21959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21960 $as_echo_n "(cached) " >&6
21962 cat >conftest.$ac_ext <<_ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21970 #define $ac_func innocuous_$ac_func
21972 /* System header to define __stub macros and hopefully few prototypes,
21973 which can conflict with char $ac_func (); below.
21974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21975 <limits.h> exists even on freestanding compilers. */
21978 # include <limits.h>
21980 # include <assert.h>
21985 /* Override any GCC internal prototype to avoid an error.
21986 Use char because int might match the return type of a GCC
21987 builtin and then its argument prototype would still apply. */
21992 /* The GNU C library defines this for functions which it implements
21993 to always fail with ENOSYS. Some functions are actually named
21994 something starting with __ and the normal name is an alias. */
21995 #if defined __stub_$ac_func || defined __stub___$ac_func
22002 return $ac_func ();
22007 rm -f conftest.$ac_objext conftest$ac_exeext
22008 if { (ac_try="$ac_link"
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_link") 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); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest$ac_exeext && {
22025 test "$cross_compiling" = yes ||
22026 $as_test_x conftest$ac_exeext
22028 eval "$as_ac_var=yes"
22030 $as_echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22033 eval "$as_ac_var=no"
22036 rm -rf conftest.dSYM
22037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22038 conftest$ac_exeext conftest.$ac_ext
22040 ac_res=`eval 'as_val=${'$as_ac_var'}
22041 $as_echo "$as_val"'`
22042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22043 $as_echo "$ac_res" >&6; }
22044 as_val=`eval 'as_val=${'$as_ac_var'}
22045 $as_echo "$as_val"'`
22046 if test "x$as_val" = x""yes; then
22047 cat >>confdefs.h <<_ACEOF
22048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22057 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22058 $as_echo_n "checking for sigsetjmp... " >&6; }
22059 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22060 $as_echo_n "(cached) " >&6
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 #include <setjmp.h>
22072 sigjmp_buf x; sigsetjmp(x, 1);
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22084 $as_echo "$ac_try_echo") >&5
22085 (eval "$ac_link") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext && {
22095 test "$cross_compiling" = yes ||
22096 $as_test_x conftest$ac_exeext
22098 pgac_cv_func_sigsetjmp=yes
22100 $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 pgac_cv_func_sigsetjmp=no
22106 rm -rf conftest.dSYM
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22108 conftest$ac_exeext conftest.$ac_ext
22110 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22111 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22112 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22114 cat >>confdefs.h <<\_ACEOF
22115 #define HAVE_SIGSETJMP 1
22120 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22121 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22122 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22123 $as_echo_n "(cached) " >&6
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 #include <signal.h>
22132 /* NetBSD declares sys_siglist in unistd.h. */
22133 #ifdef HAVE_UNISTD_H
22134 # include <unistd.h>
22141 #ifndef sys_siglist
22142 (void) sys_siglist;
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156 $as_echo "$ac_try_echo") >&5
22157 (eval "$ac_compile") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } && {
22164 test -z "$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 } && test -s conftest.$ac_objext; then
22167 ac_cv_have_decl_sys_siglist=yes
22169 $as_echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_cv_have_decl_sys_siglist=no
22175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22178 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22179 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22181 cat >>confdefs.h <<_ACEOF
22182 #define HAVE_DECL_SYS_SIGLIST 1
22187 cat >>confdefs.h <<_ACEOF
22188 #define HAVE_DECL_SYS_SIGLIST 0
22197 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22198 $as_echo_n "checking for syslog... " >&6; }
22199 if test "${ac_cv_func_syslog+set}" = set; then
22200 $as_echo_n "(cached) " >&6
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22208 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22210 #define syslog innocuous_syslog
22212 /* System header to define __stub macros and hopefully few prototypes,
22213 which can conflict with char syslog (); below.
22214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22215 <limits.h> exists even on freestanding compilers. */
22218 # include <limits.h>
22220 # include <assert.h>
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22232 /* The GNU C library defines this for functions which it implements
22233 to always fail with ENOSYS. Some functions are actually named
22234 something starting with __ and the normal name is an alias. */
22235 #if defined __stub_syslog || defined __stub___syslog
22247 rm -f conftest.$ac_objext conftest$ac_exeext
22248 if { (ac_try="$ac_link"
22249 case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22254 $as_echo "$ac_try_echo") >&5
22255 (eval "$ac_link") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest$ac_exeext && {
22265 test "$cross_compiling" = yes ||
22266 $as_test_x conftest$ac_exeext
22268 ac_cv_func_syslog=yes
22270 $as_echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22273 ac_cv_func_syslog=no
22276 rm -rf conftest.dSYM
22277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22278 conftest$ac_exeext conftest.$ac_ext
22280 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22281 $as_echo "$ac_cv_func_syslog" >&6; }
22282 if test "x$ac_cv_func_syslog" = x""yes; then
22283 if test "${ac_cv_header_syslog_h+set}" = set; then
22284 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22285 $as_echo_n "checking for syslog.h... " >&6; }
22286 if test "${ac_cv_header_syslog_h+set}" = set; then
22287 $as_echo_n "(cached) " >&6
22289 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22290 $as_echo "$ac_cv_header_syslog_h" >&6; }
22292 # Is the header compilable?
22293 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22294 $as_echo_n "checking syslog.h usability... " >&6; }
22295 cat >conftest.$ac_ext <<_ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 $ac_includes_default
22302 #include <syslog.h>
22304 rm -f conftest.$ac_objext
22305 if { (ac_try="$ac_compile"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22311 $as_echo "$ac_try_echo") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22322 ac_header_compiler=yes
22324 $as_echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_header_compiler=no
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22332 $as_echo "$ac_header_compiler" >&6; }
22334 # Is the header present?
22335 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22336 $as_echo_n "checking syslog.h presence... " >&6; }
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 #include <syslog.h>
22345 if { (ac_try="$ac_cpp conftest.$ac_ext"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22351 $as_echo "$ac_try_echo") >&5
22352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22354 grep -v '^ *+' conftest.er1 >conftest.err
22356 cat conftest.err >&5
22357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } >/dev/null && {
22359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22360 test ! -s conftest.err
22362 ac_header_preproc=yes
22364 $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 ac_header_preproc=no
22370 rm -f conftest.err conftest.$ac_ext
22371 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22372 $as_echo "$ac_header_preproc" >&6; }
22374 # So? What about this header?
22375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22377 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22378 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22379 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22380 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22381 ac_header_preproc=yes
22384 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22385 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22386 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22387 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22388 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22389 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22390 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22391 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22392 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22393 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22394 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22395 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22397 ## ---------------------------------------- ##
22398 ## Report this to pgsql-bugs@postgresql.org ##
22399 ## ---------------------------------------- ##
22401 ) | sed "s/^/$as_me: WARNING: /" >&2
22404 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22405 $as_echo_n "checking for syslog.h... " >&6; }
22406 if test "${ac_cv_header_syslog_h+set}" = set; then
22407 $as_echo_n "(cached) " >&6
22409 ac_cv_header_syslog_h=$ac_header_preproc
22411 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22412 $as_echo "$ac_cv_header_syslog_h" >&6; }
22415 if test "x$ac_cv_header_syslog_h" = x""yes; then
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_SYSLOG 1
22427 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22428 $as_echo_n "checking for opterr... " >&6; }
22429 if test "${pgac_cv_var_int_opterr+set}" = set; then
22430 $as_echo_n "(cached) " >&6
22432 cat >conftest.$ac_ext <<_ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 #include <unistd.h>
22442 extern int opterr; opterr = 1;
22447 rm -f conftest.$ac_objext conftest$ac_exeext
22448 if { (ac_try="$ac_link"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22454 $as_echo "$ac_try_echo") >&5
22455 (eval "$ac_link") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest$ac_exeext && {
22465 test "$cross_compiling" = yes ||
22466 $as_test_x conftest$ac_exeext
22468 pgac_cv_var_int_opterr=yes
22470 $as_echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 pgac_cv_var_int_opterr=no
22476 rm -rf conftest.dSYM
22477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22478 conftest$ac_exeext conftest.$ac_ext
22480 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22481 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22482 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22484 cat >>confdefs.h <<\_ACEOF
22485 #define HAVE_INT_OPTERR 1
22490 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22491 $as_echo_n "checking for optreset... " >&6; }
22492 if test "${pgac_cv_var_int_optreset+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. */
22501 #include <unistd.h>
22505 extern int optreset; optreset = 1;
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22517 $as_echo "$ac_try_echo") >&5
22518 (eval "$ac_link") 2>conftest.er1
22520 grep -v '^ *+' conftest.er1 >conftest.err
22522 cat conftest.err >&5
22523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest$ac_exeext && {
22528 test "$cross_compiling" = yes ||
22529 $as_test_x conftest$ac_exeext
22531 pgac_cv_var_int_optreset=yes
22533 $as_echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22536 pgac_cv_var_int_optreset=no
22539 rm -rf conftest.dSYM
22540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541 conftest$ac_exeext conftest.$ac_ext
22543 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22544 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22545 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_INT_OPTRESET 1
22555 for ac_func in strtoll strtoq
22557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22559 $as_echo_n "checking for $ac_func... " >&6; }
22560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22561 $as_echo_n "(cached) " >&6
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22571 #define $ac_func innocuous_$ac_func
22573 /* System header to define __stub macros and hopefully few prototypes,
22574 which can conflict with char $ac_func (); below.
22575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22576 <limits.h> exists even on freestanding compilers. */
22579 # include <limits.h>
22581 # include <assert.h>
22586 /* Override any GCC internal prototype to avoid an error.
22587 Use char because int might match the return type of a GCC
22588 builtin and then its argument prototype would still apply. */
22593 /* The GNU C library defines this for functions which it implements
22594 to always fail with ENOSYS. Some functions are actually named
22595 something starting with __ and the normal name is an alias. */
22596 #if defined __stub_$ac_func || defined __stub___$ac_func
22603 return $ac_func ();
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22615 $as_echo "$ac_try_echo") >&5
22616 (eval "$ac_link") 2>conftest.er1
22618 grep -v '^ *+' conftest.er1 >conftest.err
22620 cat conftest.err >&5
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } && {
22623 test -z "$ac_c_werror_flag" ||
22624 test ! -s conftest.err
22625 } && test -s conftest$ac_exeext && {
22626 test "$cross_compiling" = yes ||
22627 $as_test_x conftest$ac_exeext
22629 eval "$as_ac_var=yes"
22631 $as_echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 eval "$as_ac_var=no"
22637 rm -rf conftest.dSYM
22638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22639 conftest$ac_exeext conftest.$ac_ext
22641 ac_res=`eval 'as_val=${'$as_ac_var'}
22642 $as_echo "$as_val"'`
22643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22644 $as_echo "$ac_res" >&6; }
22645 as_val=`eval 'as_val=${'$as_ac_var'}
22646 $as_echo "$as_val"'`
22647 if test "x$as_val" = x""yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22657 for ac_func in strtoull strtouq
22659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22661 $as_echo_n "checking for $ac_func... " >&6; }
22662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22663 $as_echo_n "(cached) " >&6
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22673 #define $ac_func innocuous_$ac_func
22675 /* System header to define __stub macros and hopefully few prototypes,
22676 which can conflict with char $ac_func (); below.
22677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22678 <limits.h> exists even on freestanding compilers. */
22681 # include <limits.h>
22683 # include <assert.h>
22688 /* Override any GCC internal prototype to avoid an error.
22689 Use char because int might match the return type of a GCC
22690 builtin and then its argument prototype would still apply. */
22695 /* The GNU C library defines this for functions which it implements
22696 to always fail with ENOSYS. Some functions are actually named
22697 something starting with __ and the normal name is an alias. */
22698 #if defined __stub_$ac_func || defined __stub___$ac_func
22705 return $ac_func ();
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_link") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest$ac_exeext && {
22728 test "$cross_compiling" = yes ||
22729 $as_test_x conftest$ac_exeext
22731 eval "$as_ac_var=yes"
22733 $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 eval "$as_ac_var=no"
22739 rm -rf conftest.dSYM
22740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22741 conftest$ac_exeext conftest.$ac_ext
22743 ac_res=`eval 'as_val=${'$as_ac_var'}
22744 $as_echo "$as_val"'`
22745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22746 $as_echo "$ac_res" >&6; }
22747 as_val=`eval 'as_val=${'$as_ac_var'}
22748 $as_echo "$as_val"'`
22749 if test "x$as_val" = x""yes; then
22750 cat >>confdefs.h <<_ACEOF
22751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22758 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22759 $as_echo_n "checking for builtin locking functions... " >&6; }
22760 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22761 $as_echo_n "(cached) " >&6
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22774 __sync_lock_test_and_set(&lock, 1);
22775 __sync_lock_release(&lock);
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22787 $as_echo "$ac_try_echo") >&5
22788 (eval "$ac_link") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest$ac_exeext && {
22798 test "$cross_compiling" = yes ||
22799 $as_test_x conftest$ac_exeext
22801 pgac_cv_gcc_int_atomics="yes"
22803 $as_echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 pgac_cv_gcc_int_atomics="no"
22809 rm -rf conftest.dSYM
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811 conftest$ac_exeext conftest.$ac_ext
22813 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22814 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22815 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_GCC_INT_ATOMICS 1
22827 # For each platform, we need to know about any special compile and link
22828 # libraries, and whether the normal C function names are thread-safe.
22829 # See the comment at the top of src/port/thread.c for more information.
22830 # WIN32 doesn't need the pthread tests; it always uses threads
22831 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22836 ac_cpp='$CPP $CPPFLAGS'
22837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22843 # We used to check for pthread.h first, but this fails if pthread.h
22844 # requires special compiler flags (e.g. on True64 or Sequent).
22845 # It gets checked for in the link test anyway.
22847 # First of all, check if the user has set any of the PTHREAD_LIBS,
22848 # etcetera environment variables, and if threads linking works using
22850 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22851 save_CFLAGS="$CFLAGS"
22852 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22854 LIBS="$PTHREAD_LIBS $LIBS"
22855 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22856 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22864 /* Override any GCC internal prototype to avoid an error.
22865 Use char because int might match the return type of a GCC
22866 builtin and then its argument prototype would still apply. */
22870 char pthread_join ();
22874 return pthread_join ();
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22886 $as_echo "$ac_try_echo") >&5
22887 (eval "$ac_link") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest$ac_exeext && {
22897 test "$cross_compiling" = yes ||
22898 $as_test_x conftest$ac_exeext
22902 $as_echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22908 rm -rf conftest.dSYM
22909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910 conftest$ac_exeext conftest.$ac_ext
22911 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22912 $as_echo "$acx_pthread_ok" >&6; }
22913 if test x"$acx_pthread_ok" = xno; then
22918 CFLAGS="$save_CFLAGS"
22921 # We must check for the threads library under a number of different
22922 # names; the ordering is very important because some systems
22923 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22924 # libraries is broken (non-POSIX).
22926 # Create a list of thread flags to try. Items starting with a "-" are
22927 # C compiler flags, and other items are library names, except for "none"
22928 # which indicates that we try without any flags at all, and "pthread-config"
22929 # which is a program returning the flags for the Pth emulation library.
22931 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22933 # The ordering *is* (sometimes) important. Some notes on the
22934 # individual items follow:
22936 # pthreads: AIX (must check this before -lpthread)
22937 # none: in case threads are in libc; should be tried before -Kthread and
22938 # other compiler flags to prevent continual compiler warnings
22939 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22940 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22941 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22942 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22943 # -pthreads: Solaris/gcc
22944 # -mthreads: Mingw32/gcc, Lynx/gcc
22945 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22946 # doesn't hurt to check since this sometimes defines pthreads too;
22947 # also defines -D_REENTRANT)
22948 # pthread: Linux, etcetera
22949 # --thread-safe: KAI C++
22950 # pthread-config: use pthread-config program (for GNU Pth library)
22952 case "${host_cpu}-${host_os}" in
22955 # On Solaris (at least, for some versions), libc contains stubbed
22956 # (non-functional) versions of the pthreads routines, so link-based
22957 # tests will erroneously succeed. (We need to link with -pthread or
22958 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22959 # a function called by this macro, so we could check for that, but
22960 # who knows whether they'll stub that too in a future libc.) So,
22961 # we'll just look for -pthreads and -lpthread first:
22963 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22967 if test x"$acx_pthread_ok" = xno; then
22968 for flag in $acx_pthread_flags; do
22970 tryPTHREAD_CFLAGS=""
22974 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22975 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22979 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22980 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22981 tryPTHREAD_CFLAGS="$flag"
22985 # skip this if we already have flags defined, for PostgreSQL
22986 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22987 # Extract the first word of "pthread-config", so it can be a program name with args.
22988 set dummy pthread-config; ac_word=$2
22989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22990 $as_echo_n "checking for $ac_word... " >&6; }
22991 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22992 $as_echo_n "(cached) " >&6
22994 if test -n "$acx_pthread_config"; then
22995 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22998 for as_dir in $PATH
23001 test -z "$as_dir" && as_dir=.
23002 for ac_exec_ext in '' $ac_executable_extensions; do
23003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23004 ac_cv_prog_acx_pthread_config="yes"
23005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23012 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23015 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23016 if test -n "$acx_pthread_config"; then
23017 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23018 $as_echo "$acx_pthread_config" >&6; }
23020 { $as_echo "$as_me:$LINENO: result: no" >&5
23021 $as_echo "no" >&6; }
23025 if test x"$acx_pthread_config" = xno; then continue; fi
23026 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23027 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23031 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23032 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23033 tryPTHREAD_LIBS="-l$flag"
23038 save_CFLAGS="$CFLAGS"
23039 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23040 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23042 # Check for various functions. We must include pthread.h,
23043 # since some functions may be macros. (On the Sequent, we
23044 # need a special flag -Kthread to make this header compile.)
23045 # We check for pthread_join because it is in -lpthread on IRIX
23046 # while pthread_create is in libc. We check for pthread_attr_init
23047 # due to DEC craziness with -lpthreads. We check for
23048 # pthread_cleanup_push because it is one of the few pthread
23049 # functions on Solaris that doesn't have a non-functional libc stub.
23050 # We try pthread_create on general principles.
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include <pthread.h>
23061 pthread_t th; pthread_join(th, 0);
23062 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23063 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (ac_try="$ac_link"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23075 $as_echo "$ac_try_echo") >&5
23076 (eval "$ac_link") 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } && {
23083 test -z "$ac_c_werror_flag" ||
23084 test ! -s conftest.err
23085 } && test -s conftest$ac_exeext && {
23086 test "$cross_compiling" = yes ||
23087 $as_test_x conftest$ac_exeext
23091 $as_echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23097 rm -rf conftest.dSYM
23098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23099 conftest$ac_exeext conftest.$ac_ext
23101 if test "x$acx_pthread_ok" = xyes; then
23102 # Don't use options that are ignored by the compiler.
23103 # We find them by checking stderror.
23104 cat >conftest.$ac_ext <<_ACEOF
23106 main (int argc, char **argv)
23113 rm -f conftest.$ac_objext conftest$ac_exeext
23114 # Check both linking and compiling, because they might tolerate different options.
23115 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23116 # we continue with more flags because Linux needs -lpthread
23117 # for libpq builds on PostgreSQL. The test above only
23118 # tests for building binaries, not shared libraries.
23119 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23120 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23121 else acx_pthread_ok=no
23126 CFLAGS="$save_CFLAGS"
23128 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23129 $as_echo "$acx_pthread_ok" >&6; }
23133 # Various other checks:
23134 if test "x$acx_pthread_ok" = xyes; then
23136 LIBS="$PTHREAD_LIBS $LIBS"
23137 save_CFLAGS="$CFLAGS"
23138 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23140 # Detect AIX lossage: threads are created detached by default
23141 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23142 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23143 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23144 cat >conftest.$ac_ext <<_ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 #include <pthread.h>
23154 int attr=PTHREAD_CREATE_JOINABLE;
23159 rm -f conftest.$ac_objext conftest$ac_exeext
23160 if { (ac_try="$ac_link"
23161 case "(($ac_try" in
23162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163 *) ac_try_echo=$ac_try;;
23165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23166 $as_echo "$ac_try_echo") >&5
23167 (eval "$ac_link") 2>conftest.er1
23169 grep -v '^ *+' conftest.er1 >conftest.err
23171 cat conftest.err >&5
23172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); } && {
23174 test -z "$ac_c_werror_flag" ||
23175 test ! -s conftest.err
23176 } && test -s conftest$ac_exeext && {
23177 test "$cross_compiling" = yes ||
23178 $as_test_x conftest$ac_exeext
23180 ok=PTHREAD_CREATE_JOINABLE
23182 $as_echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23188 rm -rf conftest.dSYM
23189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23190 conftest$ac_exeext conftest.$ac_ext
23191 if test x"$ok" = xunknown; then
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <pthread.h>
23202 int attr=PTHREAD_CREATE_UNDETACHED;
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23214 $as_echo "$ac_try_echo") >&5
23215 (eval "$ac_link") 2>conftest.er1
23217 grep -v '^ *+' conftest.er1 >conftest.err
23219 cat conftest.err >&5
23220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } && {
23222 test -z "$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23224 } && test -s conftest$ac_exeext && {
23225 test "$cross_compiling" = yes ||
23226 $as_test_x conftest$ac_exeext
23228 ok=PTHREAD_CREATE_UNDETACHED
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23236 rm -rf conftest.dSYM
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238 conftest$ac_exeext conftest.$ac_ext
23240 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23242 cat >>confdefs.h <<\_ACEOF
23243 #define PTHREAD_CREATE_JOINABLE $ok
23247 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23248 $as_echo "${ok}" >&6; }
23249 if test x"$ok" = xunknown; then
23250 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23251 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23254 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23255 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23257 # We always add these in PostgreSQL
23258 # case "${host_cpu}-${host_os}" in
23259 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23260 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23262 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23263 $as_echo "${flag}" >&6; }
23264 if test "x$flag" != xno; then
23265 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23269 CFLAGS="$save_CFLAGS"
23271 # Supporting cc_r would require a special CC in all places that
23272 # use libpq, and that is ugly, so we don't do it. Users can still
23273 # define their compiler as cc_r to do thread builds of everything.
23274 # More AIX lossage: must compile with cc_r
23275 # Extract the first word of "cc_r", so it can be a program name with args.
23276 set dummy cc_r; ac_word=$2
23277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23278 $as_echo_n "checking for $ac_word... " >&6; }
23279 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23280 $as_echo_n "(cached) " >&6
23282 if test -n "$PTHREAD_CC"; then
23283 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23289 test -z "$as_dir" && as_dir=.
23290 for ac_exec_ext in '' $ac_executable_extensions; do
23291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23292 ac_cv_prog_PTHREAD_CC="cc_r"
23293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23300 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23303 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23304 if test -n "$PTHREAD_CC"; then
23305 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23306 $as_echo "$PTHREAD_CC" >&6; }
23308 { $as_echo "$as_me:$LINENO: result: no" >&5
23309 $as_echo "no" >&6; }
23321 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23322 if test x"$acx_pthread_ok" = xyes; then
23324 cat >>confdefs.h <<\_ACEOF
23325 #define HAVE_PTHREAD 1
23334 ac_cpp='$CPP $CPPFLAGS'
23335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23341 # Some platforms use these, so just define them. They can't hurt if they
23342 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23343 # enables 5-arg getpwuid_r, among other things.
23344 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23347 # At this point, we don't want to muck with the compiler name for threading.
23348 # Let's see who fails, perhaps AIX. 2004-04-23
23349 if test "$PTHREAD_CC" != "$CC"; then
23350 { { $as_echo "$as_me:$LINENO: error:
23351 PostgreSQL does not support platforms that require a special compiler
23352 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23353 $as_echo "$as_me: error:
23354 PostgreSQL does not support platforms that require a special compiler
23355 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23356 { (exit 1); exit 1; }; }
23359 # Check for *_r functions
23362 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23363 LIBS="$LIBS $PTHREAD_LIBS"
23365 if test "$PORTNAME" != "win32"; then
23366 if test "${ac_cv_header_pthread_h+set}" = set; then
23367 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23368 $as_echo_n "checking for pthread.h... " >&6; }
23369 if test "${ac_cv_header_pthread_h+set}" = set; then
23370 $as_echo_n "(cached) " >&6
23372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23373 $as_echo "$ac_cv_header_pthread_h" >&6; }
23375 # Is the header compilable?
23376 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23377 $as_echo_n "checking pthread.h usability... " >&6; }
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 $ac_includes_default
23385 #include <pthread.h>
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23394 $as_echo "$ac_try_echo") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23397 grep -v '^ *+' conftest.er1 >conftest.err
23399 cat conftest.err >&5
23400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest.$ac_objext; then
23405 ac_header_compiler=yes
23407 $as_echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_header_compiler=no
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415 $as_echo "$ac_header_compiler" >&6; }
23417 # Is the header present?
23418 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23419 $as_echo_n "checking pthread.h presence... " >&6; }
23420 cat >conftest.$ac_ext <<_ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 #include <pthread.h>
23428 if { (ac_try="$ac_cpp conftest.$ac_ext"
23429 case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23434 $as_echo "$ac_try_echo") >&5
23435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } >/dev/null && {
23442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23445 ac_header_preproc=yes
23447 $as_echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_header_preproc=no
23453 rm -f conftest.err conftest.$ac_ext
23454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455 $as_echo "$ac_header_preproc" >&6; }
23457 # So? What about this header?
23458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23460 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23461 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23462 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23463 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23464 ac_header_preproc=yes
23467 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23468 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23469 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23470 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23472 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23474 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23476 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23478 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23480 ## ---------------------------------------- ##
23481 ## Report this to pgsql-bugs@postgresql.org ##
23482 ## ---------------------------------------- ##
23484 ) | sed "s/^/$as_me: WARNING: /" >&2
23487 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23488 $as_echo_n "checking for pthread.h... " >&6; }
23489 if test "${ac_cv_header_pthread_h+set}" = set; then
23490 $as_echo_n "(cached) " >&6
23492 ac_cv_header_pthread_h=$ac_header_preproc
23494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23495 $as_echo "$ac_cv_header_pthread_h" >&6; }
23498 if test "x$ac_cv_header_pthread_h" = x""yes; then
23501 { { $as_echo "$as_me:$LINENO: error:
23502 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23503 $as_echo "$as_me: error:
23504 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23505 { (exit 1); exit 1; }; }
23514 for ac_func in strerror_r getpwuid_r gethostbyname_r
23516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23518 $as_echo_n "checking for $ac_func... " >&6; }
23519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23520 $as_echo_n "(cached) " >&6
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23530 #define $ac_func innocuous_$ac_func
23532 /* System header to define __stub macros and hopefully few prototypes,
23533 which can conflict with char $ac_func (); below.
23534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23535 <limits.h> exists even on freestanding compilers. */
23538 # include <limits.h>
23540 # include <assert.h>
23545 /* Override any GCC internal prototype to avoid an error.
23546 Use char because int might match the return type of a GCC
23547 builtin and then its argument prototype would still apply. */
23552 /* The GNU C library defines this for functions which it implements
23553 to always fail with ENOSYS. Some functions are actually named
23554 something starting with __ and the normal name is an alias. */
23555 #if defined __stub_$ac_func || defined __stub___$ac_func
23562 return $ac_func ();
23567 rm -f conftest.$ac_objext conftest$ac_exeext
23568 if { (ac_try="$ac_link"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575 (eval "$ac_link") 2>conftest.er1
23577 grep -v '^ *+' conftest.er1 >conftest.err
23579 cat conftest.err >&5
23580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest$ac_exeext && {
23585 test "$cross_compiling" = yes ||
23586 $as_test_x conftest$ac_exeext
23588 eval "$as_ac_var=yes"
23590 $as_echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 eval "$as_ac_var=no"
23596 rm -rf conftest.dSYM
23597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23598 conftest$ac_exeext conftest.$ac_ext
23600 ac_res=`eval 'as_val=${'$as_ac_var'}
23601 $as_echo "$as_val"'`
23602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23603 $as_echo "$ac_res" >&6; }
23604 as_val=`eval 'as_val=${'$as_ac_var'}
23605 $as_echo "$as_val"'`
23606 if test "x$as_val" = x""yes; then
23607 cat >>confdefs.h <<_ACEOF
23608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23615 # Do test here with the proper thread flags
23616 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23617 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23618 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23619 $as_echo_n "(cached) " >&6
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 #include <sys/types.h>
23633 struct passwd *space;
23636 struct passwd **result;
23637 getpwuid_r(uid, space, buf, bufsize, result);
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23649 $as_echo "$ac_try_echo") >&5
23650 (eval "$ac_compile") 2>conftest.er1
23652 grep -v '^ *+' conftest.er1 >conftest.err
23654 cat conftest.err >&5
23655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && {
23657 test -z "$ac_c_werror_flag" ||
23658 test ! -s conftest.err
23659 } && test -s conftest.$ac_objext; then
23660 pgac_cv_func_getpwuid_r_5arg=yes
23662 $as_echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 pgac_cv_func_getpwuid_r_5arg=no
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23671 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23672 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23674 cat >>confdefs.h <<\_ACEOF
23675 #define GETPWUID_R_5ARG /**/
23680 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23681 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23682 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23683 $as_echo_n "(cached) " >&6
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 #include <string.h>
23696 int strerror_r(int, char *, size_t);
23698 /* Older AIX has 'int' for the third argument so we don't test the args. */
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709 *) ac_try_echo=$ac_try;;
23711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23712 $as_echo "$ac_try_echo") >&5
23713 (eval "$ac_compile") 2>conftest.er1
23715 grep -v '^ *+' conftest.er1 >conftest.err
23717 cat conftest.err >&5
23718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } && {
23720 test -z "$ac_c_werror_flag" ||
23721 test ! -s conftest.err
23722 } && test -s conftest.$ac_objext; then
23723 pgac_cv_func_strerror_r_int=yes
23725 $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23728 pgac_cv_func_strerror_r_int=no
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23734 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23735 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23737 cat >>confdefs.h <<\_ACEOF
23738 #define STRERROR_R_INT /**/
23748 # do not use values from template file
23757 # We can test for libldap_r only after we know PTHREAD_LIBS
23758 if test "$with_ldap" = yes ; then
23760 if test "$PORTNAME" != "win32"; then
23762 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23763 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23764 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23765 $as_echo_n "(cached) " >&6
23767 ac_check_lib_save_LIBS=$LIBS
23768 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23769 cat >conftest.$ac_ext <<_ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23776 /* Override any GCC internal prototype to avoid an error.
23777 Use char because int might match the return type of a GCC
23778 builtin and then its argument prototype would still apply. */
23786 return ldap_bind ();
23791 rm -f conftest.$ac_objext conftest$ac_exeext
23792 if { (ac_try="$ac_link"
23793 case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23798 $as_echo "$ac_try_echo") >&5
23799 (eval "$ac_link") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1 >conftest.err
23803 cat conftest.err >&5
23804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest$ac_exeext && {
23809 test "$cross_compiling" = yes ||
23810 $as_test_x conftest$ac_exeext
23812 ac_cv_lib_ldap_ldap_bind=yes
23814 $as_echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23817 ac_cv_lib_ldap_ldap_bind=no
23820 rm -rf conftest.dSYM
23821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23822 conftest$ac_exeext conftest.$ac_ext
23823 LIBS=$ac_check_lib_save_LIBS
23825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23826 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23827 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23828 cat >>confdefs.h <<_ACEOF
23829 #define HAVE_LIBLDAP 1
23832 LIBS="-lldap $LIBS"
23835 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23836 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23837 { (exit 1); exit 1; }; }
23840 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23841 if test "$enable_thread_safety" = yes; then
23842 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23844 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23845 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23846 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23847 $as_echo_n "(cached) " >&6
23849 ac_check_lib_save_LIBS=$LIBS
23850 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23858 /* Override any GCC internal prototype to avoid an error.
23859 Use char because int might match the return type of a GCC
23860 builtin and then its argument prototype would still apply. */
23864 char ldap_simple_bind ();
23868 return ldap_simple_bind ();
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877 *) ac_try_echo=$ac_try;;
23879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23880 $as_echo "$ac_try_echo") >&5
23881 (eval "$ac_link") 2>conftest.er1
23883 grep -v '^ *+' conftest.er1 >conftest.err
23885 cat conftest.err >&5
23886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } && {
23888 test -z "$ac_c_werror_flag" ||
23889 test ! -s conftest.err
23890 } && test -s conftest$ac_exeext && {
23891 test "$cross_compiling" = yes ||
23892 $as_test_x conftest$ac_exeext
23894 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23896 $as_echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 ac_cv_lib_ldap_r_ldap_simple_bind=no
23902 rm -rf conftest.dSYM
23903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23904 conftest$ac_exeext conftest.$ac_ext
23905 LIBS=$ac_check_lib_save_LIBS
23907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23908 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23909 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23910 cat >>confdefs.h <<_ACEOF
23911 #define HAVE_LIBLDAP_R 1
23914 LIBS="-lldap_r $LIBS"
23917 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23918 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23919 { (exit 1); exit 1; }; }
23922 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23924 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23928 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23929 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23930 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23931 $as_echo_n "(cached) " >&6
23933 ac_check_lib_save_LIBS=$LIBS
23934 LIBS="-lwldap32 $LIBS"
23935 cat >conftest.$ac_ext <<_ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23942 /* Override any GCC internal prototype to avoid an error.
23943 Use char because int might match the return type of a GCC
23944 builtin and then its argument prototype would still apply. */
23952 return ldap_bind ();
23957 rm -f conftest.$ac_objext conftest$ac_exeext
23958 if { (ac_try="$ac_link"
23959 case "(($ac_try" in
23960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961 *) ac_try_echo=$ac_try;;
23963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23964 $as_echo "$ac_try_echo") >&5
23965 (eval "$ac_link") 2>conftest.er1
23967 grep -v '^ *+' conftest.er1 >conftest.err
23969 cat conftest.err >&5
23970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } && {
23972 test -z "$ac_c_werror_flag" ||
23973 test ! -s conftest.err
23974 } && test -s conftest$ac_exeext && {
23975 test "$cross_compiling" = yes ||
23976 $as_test_x conftest$ac_exeext
23978 ac_cv_lib_wldap32_ldap_bind=yes
23980 $as_echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23983 ac_cv_lib_wldap32_ldap_bind=no
23986 rm -rf conftest.dSYM
23987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23988 conftest$ac_exeext conftest.$ac_ext
23989 LIBS=$ac_check_lib_save_LIBS
23991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23992 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23993 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_LIBWLDAP32 1
23998 LIBS="-lwldap32 $LIBS"
24001 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24002 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24003 { (exit 1); exit 1; }; }
24006 LDAP_LIBS_FE="-lwldap32"
24007 LDAP_LIBS_BE="-lwldap32"
24015 # This test makes sure that run tests work at all. Sometimes a shared
24016 # library is found by the linker, but the runtime linker can't find it.
24017 # This check should come after all modifications of compiler or linker
24018 # variables, and before any other run tests.
24019 { $as_echo "$as_me:$LINENO: checking test program" >&5
24020 $as_echo_n "checking test program... " >&6; }
24021 if test "$cross_compiling" = yes; then
24022 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24023 $as_echo "cross-compiling" >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24031 int main() { return 0; }
24033 rm -f conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040 $as_echo "$ac_try_echo") >&5
24041 (eval "$ac_link") 2>&5
24043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24045 { (case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24050 $as_echo "$ac_try_echo") >&5
24051 (eval "$ac_try") 2>&5
24053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 { $as_echo "$as_me:$LINENO: result: ok" >&5
24056 $as_echo "ok" >&6; }
24058 $as_echo "$as_me: program exited with status $ac_status" >&5
24059 $as_echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ( exit $ac_status )
24063 { $as_echo "$as_me:$LINENO: result: failed" >&5
24064 $as_echo "failed" >&6; }
24065 { { $as_echo "$as_me:$LINENO: error:
24066 Could not execute a simple test program. This may be a problem
24067 related to locating shared libraries. Check the file 'config.log'
24068 for the exact reason." >&5
24069 $as_echo "$as_me: error:
24070 Could not execute a simple test program. This may be a problem
24071 related to locating shared libraries. Check the file 'config.log'
24072 for the exact reason." >&2;}
24073 { (exit 1); exit 1; }; }
24075 rm -rf conftest.dSYM
24076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24081 # --------------------
24082 # Run tests below here
24083 # --------------------
24085 # Force use of our snprintf if system's doesn't do arg control
24086 # See comment above at snprintf test for details.
24087 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24088 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24089 $as_echo_n "checking whether printf supports argument control... " >&6; }
24090 if test "${pgac_cv_printf_arg_control+set}" = set; then
24091 $as_echo_n "(cached) " >&6
24093 if test "$cross_compiling" = yes; then
24094 pgac_cv_printf_arg_control=cross
24096 cat >conftest.$ac_ext <<_ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24103 #include <string.h>
24109 /* can it swap arguments? */
24110 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24111 if (strcmp(buf, "4 3") != 0)
24116 rm -f conftest$ac_exeext
24117 if { (ac_try="$ac_link"
24118 case "(($ac_try" in
24119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120 *) ac_try_echo=$ac_try;;
24122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24123 $as_echo "$ac_try_echo") >&5
24124 (eval "$ac_link") 2>&5
24126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24128 { (case "(($ac_try" in
24129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130 *) ac_try_echo=$ac_try;;
24132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24133 $as_echo "$ac_try_echo") >&5
24134 (eval "$ac_try") 2>&5
24136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; }; then
24138 pgac_cv_printf_arg_control=yes
24140 $as_echo "$as_me: program exited with status $ac_status" >&5
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 ( exit $ac_status )
24145 pgac_cv_printf_arg_control=no
24147 rm -rf conftest.dSYM
24148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24154 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24155 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24157 if test $pgac_cv_printf_arg_control != yes ; then
24158 pgac_need_repl_snprintf=yes
24165 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24166 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24167 if test "${pgac_cv_type_long_int_64+set}" = set; then
24168 $as_echo_n "(cached) " >&6
24170 if test "$cross_compiling" = yes; then
24171 # If cross-compiling, check the size reported by the compiler and
24172 # trust that the arithmetic works.
24173 cat >conftest.$ac_ext <<_ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24183 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24190 rm -f conftest.$ac_objext
24191 if { (ac_try="$ac_compile"
24192 case "(($ac_try" in
24193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24197 $as_echo "$ac_try_echo") >&5
24198 (eval "$ac_compile") 2>conftest.er1
24200 grep -v '^ *+' conftest.er1 >conftest.err
24202 cat conftest.err >&5
24203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } && {
24205 test -z "$ac_c_werror_flag" ||
24206 test ! -s conftest.err
24207 } && test -s conftest.$ac_objext; then
24208 pgac_cv_type_long_int_64=yes
24210 $as_echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 pgac_cv_type_long_int_64=no
24216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218 cat >conftest.$ac_ext <<_ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h. */
24224 typedef long int ac_int64;
24227 * These are globals to discourage the compiler from folding all the
24228 * arithmetic tests down to compile-time constants.
24230 ac_int64 a = 20000001;
24231 ac_int64 b = 40000005;
24233 int does_int64_work()
24237 if (sizeof(ac_int64) != 8)
24238 return 0; /* definitely not the right size */
24240 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24248 exit(! does_int64_work());
24251 rm -f conftest$ac_exeext
24252 if { (ac_try="$ac_link"
24253 case "(($ac_try" in
24254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255 *) ac_try_echo=$ac_try;;
24257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24258 $as_echo "$ac_try_echo") >&5
24259 (eval "$ac_link") 2>&5
24261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24263 { (case "(($ac_try" in
24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24268 $as_echo "$ac_try_echo") >&5
24269 (eval "$ac_try") 2>&5
24271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; }; then
24273 pgac_cv_type_long_int_64=yes
24275 $as_echo "$as_me: program exited with status $ac_status" >&5
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ( exit $ac_status )
24280 pgac_cv_type_long_int_64=no
24282 rm -rf conftest.dSYM
24283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24288 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24289 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24291 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24292 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24294 cat >>confdefs.h <<\_ACEOF
24295 #define HAVE_LONG_INT_64 1
24301 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24302 pg_int64_type="long int"
24304 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24305 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24306 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24307 $as_echo_n "(cached) " >&6
24309 if test "$cross_compiling" = yes; then
24310 # If cross-compiling, check the size reported by the compiler and
24311 # trust that the arithmetic works.
24312 cat >conftest.$ac_ext <<_ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h. */
24322 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24329 rm -f conftest.$ac_objext
24330 if { (ac_try="$ac_compile"
24331 case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24336 $as_echo "$ac_try_echo") >&5
24337 (eval "$ac_compile") 2>conftest.er1
24339 grep -v '^ *+' conftest.er1 >conftest.err
24341 cat conftest.err >&5
24342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); } && {
24344 test -z "$ac_c_werror_flag" ||
24345 test ! -s conftest.err
24346 } && test -s conftest.$ac_objext; then
24347 pgac_cv_type_long_long_int_64=yes
24349 $as_echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 pgac_cv_type_long_long_int_64=no
24355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357 cat >conftest.$ac_ext <<_ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 typedef long long int ac_int64;
24366 * These are globals to discourage the compiler from folding all the
24367 * arithmetic tests down to compile-time constants.
24369 ac_int64 a = 20000001;
24370 ac_int64 b = 40000005;
24372 int does_int64_work()
24376 if (sizeof(ac_int64) != 8)
24377 return 0; /* definitely not the right size */
24379 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24387 exit(! does_int64_work());
24390 rm -f conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24397 $as_echo "$ac_try_echo") >&5
24398 (eval "$ac_link") 2>&5
24400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24402 { (case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24407 $as_echo "$ac_try_echo") >&5
24408 (eval "$ac_try") 2>&5
24410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412 pgac_cv_type_long_long_int_64=yes
24414 $as_echo "$as_me: program exited with status $ac_status" >&5
24415 $as_echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ( exit $ac_status )
24419 pgac_cv_type_long_long_int_64=no
24421 rm -rf conftest.dSYM
24422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24428 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24430 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24431 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24433 cat >>confdefs.h <<\_ACEOF
24434 #define HAVE_LONG_LONG_INT_64 1
24439 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24440 pg_int64_type="long long int"
24442 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24443 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24444 { (exit 1); exit 1; }; }
24449 cat >>confdefs.h <<_ACEOF
24450 #define PG_INT64_TYPE $pg_int64_type
24455 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24463 #define INT64CONST(x) x##LL
24464 long long int foo = INT64CONST(0x1234567890123456);
24474 rm -f conftest.$ac_objext
24475 if { (ac_try="$ac_compile"
24476 case "(($ac_try" in
24477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24478 *) ac_try_echo=$ac_try;;
24480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24481 $as_echo "$ac_try_echo") >&5
24482 (eval "$ac_compile") 2>conftest.er1
24484 grep -v '^ *+' conftest.er1 >conftest.err
24486 cat conftest.err >&5
24487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } && {
24489 test -z "$ac_c_werror_flag" ||
24490 test ! -s conftest.err
24491 } && test -s conftest.$ac_objext; then
24493 cat >>confdefs.h <<\_ACEOF
24494 #define HAVE_LL_CONSTANTS 1
24498 $as_echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24508 # If we found "long int" is 64 bits, assume snprintf handles it. If
24509 # we found we need to use "long long int", better check. We cope with
24510 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24511 # work, fall back to our own snprintf emulation (which we know uses %lld).
24513 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24514 if test $pgac_need_repl_snprintf = no; then
24515 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24516 $as_echo_n "checking snprintf format for long long int... " >&6; }
24517 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24518 $as_echo_n "(cached) " >&6
24520 for pgac_format in '%lld' '%qd' '%I64d'; do
24521 if test "$cross_compiling" = yes; then
24522 pgac_cv_snprintf_long_long_int_format=cross; break
24524 cat >conftest.$ac_ext <<_ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h. */
24531 typedef long long int ac_int64;
24532 #define INT64_FORMAT "$pgac_format"
24534 ac_int64 a = 20000001;
24535 ac_int64 b = 40000005;
24537 int does_int64_snprintf_work()
24542 if (sizeof(ac_int64) != 8)
24543 return 0; /* doesn't look like the right size */
24546 snprintf(buf, 100, INT64_FORMAT, c);
24547 if (strcmp(buf, "800000140000005") != 0)
24548 return 0; /* either multiply or snprintf is busted */
24552 exit(! does_int64_snprintf_work());
24555 rm -f conftest$ac_exeext
24556 if { (ac_try="$ac_link"
24557 case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563 (eval "$ac_link") 2>&5
24565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24567 { (case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24572 $as_echo "$ac_try_echo") >&5
24573 (eval "$ac_try") 2>&5
24575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24579 $as_echo "$as_me: program exited with status $ac_status" >&5
24580 $as_echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24584 rm -rf conftest.dSYM
24585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24592 LONG_LONG_INT_FORMAT=''
24594 case $pgac_cv_snprintf_long_long_int_format in
24595 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24596 $as_echo "cannot test (not on host machine)" >&6; };;
24597 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24598 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24599 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24600 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24601 $as_echo "none" >&6; };;
24603 if test "$LONG_LONG_INT_FORMAT" = ""; then
24604 # Force usage of our own snprintf, since system snprintf is broken
24605 pgac_need_repl_snprintf=yes
24606 LONG_LONG_INT_FORMAT='%lld'
24609 # Here if we previously decided we needed to use our own snprintf
24610 LONG_LONG_INT_FORMAT='%lld'
24612 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24613 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24614 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24616 # Here if we are not using 'long long int' at all
24617 INT64_FORMAT='"%ld"'
24618 UINT64_FORMAT='"%lu"'
24622 cat >>confdefs.h <<_ACEOF
24623 #define INT64_FORMAT $INT64_FORMAT
24628 cat >>confdefs.h <<_ACEOF
24629 #define UINT64_FORMAT $UINT64_FORMAT
24633 # Now we have checked all the reasons to replace snprintf
24634 if test $pgac_need_repl_snprintf = yes; then
24636 cat >>confdefs.h <<\_ACEOF
24637 #define USE_REPL_SNPRINTF 1
24640 case " $LIBOBJS " in
24641 *" snprintf.$ac_objext "* ) ;;
24642 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24648 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24649 # The cast to long int works around a bug in the HP C Compiler
24650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24652 # This bug is HP SR number 8606223364.
24653 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24654 $as_echo_n "checking size of void *... " >&6; }
24655 if test "${ac_cv_sizeof_void_p+set}" = set; then
24656 $as_echo_n "(cached) " >&6
24658 if test "$cross_compiling" = yes; then
24659 # Depending upon the size, compute the lo and hi bounds.
24660 cat >conftest.$ac_ext <<_ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h. */
24666 $ac_includes_default
24670 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24677 rm -f conftest.$ac_objext
24678 if { (ac_try="$ac_compile"
24679 case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24684 $as_echo "$ac_try_echo") >&5
24685 (eval "$ac_compile") 2>conftest.er1
24687 grep -v '^ *+' conftest.er1 >conftest.err
24689 cat conftest.err >&5
24690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } && {
24692 test -z "$ac_c_werror_flag" ||
24693 test ! -s conftest.err
24694 } && test -s conftest.$ac_objext; then
24697 cat >conftest.$ac_ext <<_ACEOF
24700 cat confdefs.h >>conftest.$ac_ext
24701 cat >>conftest.$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24703 $ac_includes_default
24707 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24714 rm -f conftest.$ac_objext
24715 if { (ac_try="$ac_compile"
24716 case "(($ac_try" in
24717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718 *) ac_try_echo=$ac_try;;
24720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24721 $as_echo "$ac_try_echo") >&5
24722 (eval "$ac_compile") 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && {
24729 test -z "$ac_c_werror_flag" ||
24730 test ! -s conftest.err
24731 } && test -s conftest.$ac_objext; then
24732 ac_hi=$ac_mid; break
24734 $as_echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24737 ac_lo=`expr $ac_mid + 1`
24738 if test $ac_lo -le $ac_mid; then
24742 ac_mid=`expr 2 '*' $ac_mid + 1`
24745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748 $as_echo "$as_me: failed program was:" >&5
24749 sed 's/^/| /' conftest.$ac_ext >&5
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 $ac_includes_default
24761 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24768 rm -f conftest.$ac_objext
24769 if { (ac_try="$ac_compile"
24770 case "(($ac_try" in
24771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24772 *) ac_try_echo=$ac_try;;
24774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24775 $as_echo "$ac_try_echo") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24798 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24805 rm -f conftest.$ac_objext
24806 if { (ac_try="$ac_compile"
24807 case "(($ac_try" in
24808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809 *) ac_try_echo=$ac_try;;
24811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24812 $as_echo "$ac_try_echo") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24815 grep -v '^ *+' conftest.er1 >conftest.err
24817 cat conftest.err >&5
24818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24823 ac_lo=$ac_mid; break
24825 $as_echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 ac_hi=`expr '(' $ac_mid ')' - 1`
24829 if test $ac_mid -le $ac_hi; then
24833 ac_mid=`expr 2 '*' $ac_mid`
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 $as_echo "$as_me: failed program was:" >&5
24840 sed 's/^/| /' conftest.$ac_ext >&5
24845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 # Binary search between lo and hi bounds.
24850 while test "x$ac_lo" != "x$ac_hi"; do
24851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24852 cat >conftest.$ac_ext <<_ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h. */
24858 $ac_includes_default
24862 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24869 rm -f conftest.$ac_objext
24870 if { (ac_try="$ac_compile"
24871 case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24876 $as_echo "$ac_try_echo") >&5
24877 (eval "$ac_compile") 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } && {
24884 test -z "$ac_c_werror_flag" ||
24885 test ! -s conftest.err
24886 } && test -s conftest.$ac_objext; then
24889 $as_echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ac_lo=`expr '(' $ac_mid ')' + 1`
24895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24899 '') if test "$ac_cv_type_void_p" = yes; then
24900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24902 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24903 See \`config.log' for more details." >&5
24904 $as_echo "$as_me: error: cannot compute sizeof (void *)
24905 See \`config.log' for more details." >&2;}
24906 { (exit 77); exit 77; }; }; }
24908 ac_cv_sizeof_void_p=0
24912 cat >conftest.$ac_ext <<_ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h. */
24918 $ac_includes_default
24919 static long int longval () { return (long int) (sizeof (void *)); }
24920 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24922 #include <stdlib.h>
24927 FILE *f = fopen ("conftest.val", "w");
24930 if (((long int) (sizeof (void *))) < 0)
24932 long int i = longval ();
24933 if (i != ((long int) (sizeof (void *))))
24935 fprintf (f, "%ld", i);
24939 unsigned long int i = ulongval ();
24940 if (i != ((long int) (sizeof (void *))))
24942 fprintf (f, "%lu", i);
24944 /* Do not output a trailing newline, as this causes \r\n confusion
24945 on some platforms. */
24946 return ferror (f) || fclose (f) != 0;
24952 rm -f conftest$ac_exeext
24953 if { (ac_try="$ac_link"
24954 case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24959 $as_echo "$ac_try_echo") >&5
24960 (eval "$ac_link") 2>&5
24962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24964 { (case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24969 $as_echo "$ac_try_echo") >&5
24970 (eval "$ac_try") 2>&5
24972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_sizeof_void_p=`cat conftest.val`
24976 $as_echo "$as_me: program exited with status $ac_status" >&5
24977 $as_echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ( exit $ac_status )
24981 if test "$ac_cv_type_void_p" = yes; then
24982 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24984 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24985 See \`config.log' for more details." >&5
24986 $as_echo "$as_me: error: cannot compute sizeof (void *)
24987 See \`config.log' for more details." >&2;}
24988 { (exit 77); exit 77; }; }; }
24990 ac_cv_sizeof_void_p=0
24993 rm -rf conftest.dSYM
24994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24998 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24999 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25003 cat >>confdefs.h <<_ACEOF
25004 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25008 # The cast to long int works around a bug in the HP C Compiler
25009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25011 # This bug is HP SR number 8606223364.
25012 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25013 $as_echo_n "checking size of size_t... " >&6; }
25014 if test "${ac_cv_sizeof_size_t+set}" = set; then
25015 $as_echo_n "(cached) " >&6
25017 if test "$cross_compiling" = yes; then
25018 # Depending upon the size, compute the lo and hi bounds.
25019 cat >conftest.$ac_ext <<_ACEOF
25022 cat confdefs.h >>conftest.$ac_ext
25023 cat >>conftest.$ac_ext <<_ACEOF
25024 /* end confdefs.h. */
25025 $ac_includes_default
25029 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25036 rm -f conftest.$ac_objext
25037 if { (ac_try="$ac_compile"
25038 case "(($ac_try" in
25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040 *) ac_try_echo=$ac_try;;
25042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25043 $as_echo "$ac_try_echo") >&5
25044 (eval "$ac_compile") 2>conftest.er1
25046 grep -v '^ *+' conftest.er1 >conftest.err
25048 cat conftest.err >&5
25049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && {
25051 test -z "$ac_c_werror_flag" ||
25052 test ! -s conftest.err
25053 } && test -s conftest.$ac_objext; then
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 $ac_includes_default
25066 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25073 rm -f conftest.$ac_objext
25074 if { (ac_try="$ac_compile"
25075 case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25080 $as_echo "$ac_try_echo") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25083 grep -v '^ *+' conftest.er1 >conftest.err
25085 cat conftest.err >&5
25086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25091 ac_hi=$ac_mid; break
25093 $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_lo=`expr $ac_mid + 1`
25097 if test $ac_lo -le $ac_mid; then
25101 ac_mid=`expr 2 '*' $ac_mid + 1`
25104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 $as_echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 cat >conftest.$ac_ext <<_ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 $ac_includes_default
25120 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25147 cat >conftest.$ac_ext <<_ACEOF
25150 cat confdefs.h >>conftest.$ac_ext
25151 cat >>conftest.$ac_ext <<_ACEOF
25152 /* end confdefs.h. */
25153 $ac_includes_default
25157 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25164 rm -f conftest.$ac_objext
25165 if { (ac_try="$ac_compile"
25166 case "(($ac_try" in
25167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25168 *) ac_try_echo=$ac_try;;
25170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25171 $as_echo "$ac_try_echo") >&5
25172 (eval "$ac_compile") 2>conftest.er1
25174 grep -v '^ *+' conftest.er1 >conftest.err
25176 cat conftest.err >&5
25177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); } && {
25179 test -z "$ac_c_werror_flag" ||
25180 test ! -s conftest.err
25181 } && test -s conftest.$ac_objext; then
25182 ac_lo=$ac_mid; break
25184 $as_echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25187 ac_hi=`expr '(' $ac_mid ')' - 1`
25188 if test $ac_mid -le $ac_hi; then
25192 ac_mid=`expr 2 '*' $ac_mid`
25195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25198 $as_echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25208 # Binary search between lo and hi bounds.
25209 while test "x$ac_lo" != "x$ac_hi"; do
25210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25211 cat >conftest.$ac_ext <<_ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h. */
25217 $ac_includes_default
25221 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25228 rm -f conftest.$ac_objext
25229 if { (ac_try="$ac_compile"
25230 case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236 (eval "$ac_compile") 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest.$ac_objext; then
25248 $as_echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25251 ac_lo=`expr '(' $ac_mid ')' + 1`
25254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25257 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25258 '') if test "$ac_cv_type_size_t" = yes; then
25259 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25261 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25262 See \`config.log' for more details." >&5
25263 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25264 See \`config.log' for more details." >&2;}
25265 { (exit 77); exit 77; }; }; }
25267 ac_cv_sizeof_size_t=0
25271 cat >conftest.$ac_ext <<_ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h. */
25277 $ac_includes_default
25278 static long int longval () { return (long int) (sizeof (size_t)); }
25279 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25281 #include <stdlib.h>
25286 FILE *f = fopen ("conftest.val", "w");
25289 if (((long int) (sizeof (size_t))) < 0)
25291 long int i = longval ();
25292 if (i != ((long int) (sizeof (size_t))))
25294 fprintf (f, "%ld", i);
25298 unsigned long int i = ulongval ();
25299 if (i != ((long int) (sizeof (size_t))))
25301 fprintf (f, "%lu", i);
25303 /* Do not output a trailing newline, as this causes \r\n confusion
25304 on some platforms. */
25305 return ferror (f) || fclose (f) != 0;
25311 rm -f conftest$ac_exeext
25312 if { (ac_try="$ac_link"
25313 case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25318 $as_echo "$ac_try_echo") >&5
25319 (eval "$ac_link") 2>&5
25321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25323 { (case "(($ac_try" in
25324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325 *) ac_try_echo=$ac_try;;
25327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25328 $as_echo "$ac_try_echo") >&5
25329 (eval "$ac_try") 2>&5
25331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; }; then
25333 ac_cv_sizeof_size_t=`cat conftest.val`
25335 $as_echo "$as_me: program exited with status $ac_status" >&5
25336 $as_echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25339 ( exit $ac_status )
25340 if test "$ac_cv_type_size_t" = yes; then
25341 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25343 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25344 See \`config.log' for more details." >&5
25345 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25346 See \`config.log' for more details." >&2;}
25347 { (exit 77); exit 77; }; }; }
25349 ac_cv_sizeof_size_t=0
25352 rm -rf conftest.dSYM
25353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25357 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25358 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25362 cat >>confdefs.h <<_ACEOF
25363 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25367 # The cast to long int works around a bug in the HP C Compiler
25368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25370 # This bug is HP SR number 8606223364.
25371 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25372 $as_echo_n "checking size of long... " >&6; }
25373 if test "${ac_cv_sizeof_long+set}" = set; then
25374 $as_echo_n "(cached) " >&6
25376 if test "$cross_compiling" = yes; then
25377 # Depending upon the size, compute the lo and hi bounds.
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25388 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25395 rm -f conftest.$ac_objext
25396 if { (ac_try="$ac_compile"
25397 case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25402 $as_echo "$ac_try_echo") >&5
25403 (eval "$ac_compile") 2>conftest.er1
25405 grep -v '^ *+' conftest.er1 >conftest.err
25407 cat conftest.err >&5
25408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } && {
25410 test -z "$ac_c_werror_flag" ||
25411 test ! -s conftest.err
25412 } && test -s conftest.$ac_objext; then
25415 cat >conftest.$ac_ext <<_ACEOF
25418 cat confdefs.h >>conftest.$ac_ext
25419 cat >>conftest.$ac_ext <<_ACEOF
25420 /* end confdefs.h. */
25421 $ac_includes_default
25425 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25432 rm -f conftest.$ac_objext
25433 if { (ac_try="$ac_compile"
25434 case "(($ac_try" in
25435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436 *) ac_try_echo=$ac_try;;
25438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25439 $as_echo "$ac_try_echo") >&5
25440 (eval "$ac_compile") 2>conftest.er1
25442 grep -v '^ *+' conftest.er1 >conftest.err
25444 cat conftest.err >&5
25445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); } && {
25447 test -z "$ac_c_werror_flag" ||
25448 test ! -s conftest.err
25449 } && test -s conftest.$ac_objext; then
25450 ac_hi=$ac_mid; break
25452 $as_echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_lo=`expr $ac_mid + 1`
25456 if test $ac_lo -le $ac_mid; then
25460 ac_mid=`expr 2 '*' $ac_mid + 1`
25463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25466 $as_echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25469 cat >conftest.$ac_ext <<_ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25475 $ac_includes_default
25479 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25493 $as_echo "$ac_try_echo") >&5
25494 (eval "$ac_compile") 2>conftest.er1
25496 grep -v '^ *+' conftest.er1 >conftest.err
25498 cat conftest.err >&5
25499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); } && {
25501 test -z "$ac_c_werror_flag" ||
25502 test ! -s conftest.err
25503 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25516 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25523 rm -f conftest.$ac_objext
25524 if { (ac_try="$ac_compile"
25525 case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25530 $as_echo "$ac_try_echo") >&5
25531 (eval "$ac_compile") 2>conftest.er1
25533 grep -v '^ *+' conftest.er1 >conftest.err
25535 cat conftest.err >&5
25536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest.$ac_objext; then
25541 ac_lo=$ac_mid; break
25543 $as_echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_hi=`expr '(' $ac_mid ')' - 1`
25547 if test $ac_mid -le $ac_hi; then
25551 ac_mid=`expr 2 '*' $ac_mid`
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557 $as_echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25567 # Binary search between lo and hi bounds.
25568 while test "x$ac_lo" != "x$ac_hi"; do
25569 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25570 cat >conftest.$ac_ext <<_ACEOF
25573 cat confdefs.h >>conftest.$ac_ext
25574 cat >>conftest.$ac_ext <<_ACEOF
25575 /* end confdefs.h. */
25576 $ac_includes_default
25580 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25587 rm -f conftest.$ac_objext
25588 if { (ac_try="$ac_compile"
25589 case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25594 $as_echo "$ac_try_echo") >&5
25595 (eval "$ac_compile") 2>conftest.er1
25597 grep -v '^ *+' conftest.er1 >conftest.err
25599 cat conftest.err >&5
25600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } && {
25602 test -z "$ac_c_werror_flag" ||
25603 test ! -s conftest.err
25604 } && test -s conftest.$ac_objext; then
25607 $as_echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ac_lo=`expr '(' $ac_mid ')' + 1`
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25616 ?*) ac_cv_sizeof_long=$ac_lo;;
25617 '') if test "$ac_cv_type_long" = yes; then
25618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25620 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25621 See \`config.log' for more details." >&5
25622 $as_echo "$as_me: error: cannot compute sizeof (long)
25623 See \`config.log' for more details." >&2;}
25624 { (exit 77); exit 77; }; }; }
25626 ac_cv_sizeof_long=0
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25637 static long int longval () { return (long int) (sizeof (long)); }
25638 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25640 #include <stdlib.h>
25645 FILE *f = fopen ("conftest.val", "w");
25648 if (((long int) (sizeof (long))) < 0)
25650 long int i = longval ();
25651 if (i != ((long int) (sizeof (long))))
25653 fprintf (f, "%ld", i);
25657 unsigned long int i = ulongval ();
25658 if (i != ((long int) (sizeof (long))))
25660 fprintf (f, "%lu", i);
25662 /* Do not output a trailing newline, as this causes \r\n confusion
25663 on some platforms. */
25664 return ferror (f) || fclose (f) != 0;
25670 rm -f conftest$ac_exeext
25671 if { (ac_try="$ac_link"
25672 case "(($ac_try" in
25673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674 *) ac_try_echo=$ac_try;;
25676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25677 $as_echo "$ac_try_echo") >&5
25678 (eval "$ac_link") 2>&5
25680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25682 { (case "(($ac_try" in
25683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684 *) ac_try_echo=$ac_try;;
25686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25687 $as_echo "$ac_try_echo") >&5
25688 (eval "$ac_try") 2>&5
25690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; }; then
25692 ac_cv_sizeof_long=`cat conftest.val`
25694 $as_echo "$as_me: program exited with status $ac_status" >&5
25695 $as_echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 ( exit $ac_status )
25699 if test "$ac_cv_type_long" = yes; then
25700 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25702 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25703 See \`config.log' for more details." >&5
25704 $as_echo "$as_me: error: cannot compute sizeof (long)
25705 See \`config.log' for more details." >&2;}
25706 { (exit 77); exit 77; }; }; }
25708 ac_cv_sizeof_long=0
25711 rm -rf conftest.dSYM
25712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25716 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25717 $as_echo "$ac_cv_sizeof_long" >&6; }
25721 cat >>confdefs.h <<_ACEOF
25722 #define SIZEOF_LONG $ac_cv_sizeof_long
25727 # Decide whether float4 is passed by value: user-selectable, enabled by default
25728 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25729 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25732 # Check whether --enable-float4-byval was given.
25733 if test "${enable_float4_byval+set}" = set; then
25734 enableval=$enable_float4_byval;
25738 cat >>confdefs.h <<\_ACEOF
25739 #define USE_FLOAT4_BYVAL 1
25742 float4passbyval=true
25745 float4passbyval=false
25748 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25749 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25750 { (exit 1); exit 1; }; }
25755 enable_float4_byval=yes
25757 cat >>confdefs.h <<\_ACEOF
25758 #define USE_FLOAT4_BYVAL 1
25761 float4passbyval=true
25765 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25766 $as_echo "$enable_float4_byval" >&6; }
25768 cat >>confdefs.h <<_ACEOF
25769 #define FLOAT4PASSBYVAL $float4passbyval
25773 # Decide whether float8 is passed by value.
25774 # Note: this setting also controls int8 and related types such as timestamp.
25775 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25776 # If not, trying to select it is an error.
25777 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25778 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25779 if test $ac_cv_sizeof_void_p -ge 8 ; then
25782 # Check whether --enable-float8-byval was given.
25783 if test "${enable_float8_byval+set}" = set; then
25784 enableval=$enable_float8_byval;
25793 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25794 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25795 { (exit 1); exit 1; }; }
25800 enable_float8_byval=yes
25808 # Check whether --enable-float8-byval was given.
25809 if test "${enable_float8_byval+set}" = set; then
25810 enableval=$enable_float8_byval;
25819 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25820 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25821 { (exit 1); exit 1; }; }
25826 enable_float8_byval=no
25831 if test "$enable_float8_byval" = yes ; then
25832 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25833 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25834 { (exit 1); exit 1; }; }
25837 if test "$enable_float8_byval" = yes ; then
25839 cat >>confdefs.h <<\_ACEOF
25840 #define USE_FLOAT8_BYVAL 1
25843 float8passbyval=true
25845 float8passbyval=false
25847 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25848 $as_echo "$enable_float8_byval" >&6; }
25850 cat >>confdefs.h <<_ACEOF
25851 #define FLOAT8PASSBYVAL $float8passbyval
25855 # Determine memory alignment requirements for the basic C data types.
25857 # The cast to long int works around a bug in the HP C Compiler,
25858 # see AC_CHECK_SIZEOF for more information.
25859 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25860 $as_echo_n "checking alignment of short... " >&6; }
25861 if test "${ac_cv_alignof_short+set}" = set; then
25862 $as_echo_n "(cached) " >&6
25864 if test "$cross_compiling" = yes; then
25865 # Depending upon the size, compute the lo and hi bounds.
25866 cat >conftest.$ac_ext <<_ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25872 $ac_includes_default
25874 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25876 typedef struct { char x; short y; } ac__type_alignof_;
25880 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25887 rm -f conftest.$ac_objext
25888 if { (ac_try="$ac_compile"
25889 case "(($ac_try" in
25890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25891 *) ac_try_echo=$ac_try;;
25893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25894 $as_echo "$ac_try_echo") >&5
25895 (eval "$ac_compile") 2>conftest.er1
25897 grep -v '^ *+' conftest.er1 >conftest.err
25899 cat conftest.err >&5
25900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } && {
25902 test -z "$ac_c_werror_flag" ||
25903 test ! -s conftest.err
25904 } && test -s conftest.$ac_objext; then
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 $ac_includes_default
25915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25917 typedef struct { char x; short y; } ac__type_alignof_;
25921 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25928 rm -f conftest.$ac_objext
25929 if { (ac_try="$ac_compile"
25930 case "(($ac_try" in
25931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25932 *) ac_try_echo=$ac_try;;
25934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25935 $as_echo "$ac_try_echo") >&5
25936 (eval "$ac_compile") 2>conftest.er1
25938 grep -v '^ *+' conftest.er1 >conftest.err
25940 cat conftest.err >&5
25941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } && {
25943 test -z "$ac_c_werror_flag" ||
25944 test ! -s conftest.err
25945 } && test -s conftest.$ac_objext; then
25946 ac_hi=$ac_mid; break
25948 $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 ac_lo=`expr $ac_mid + 1`
25952 if test $ac_lo -le $ac_mid; then
25956 ac_mid=`expr 2 '*' $ac_mid + 1`
25959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 $as_echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 $ac_includes_default
25973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25975 typedef struct { char x; short y; } ac__type_alignof_;
25979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994 (eval "$ac_compile") 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && {
26001 test -z "$ac_c_werror_flag" ||
26002 test ! -s conftest.err
26003 } && test -s conftest.$ac_objext; then
26006 cat >conftest.$ac_ext <<_ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h. */
26012 $ac_includes_default
26014 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26016 typedef struct { char x; short y; } ac__type_alignof_;
26020 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031 *) ac_try_echo=$ac_try;;
26033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 $as_echo "$ac_try_echo") >&5
26035 (eval "$ac_compile") 2>conftest.er1
26037 grep -v '^ *+' conftest.er1 >conftest.err
26039 cat conftest.err >&5
26040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } && {
26042 test -z "$ac_c_werror_flag" ||
26043 test ! -s conftest.err
26044 } && test -s conftest.$ac_objext; then
26045 ac_lo=$ac_mid; break
26047 $as_echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_hi=`expr '(' $ac_mid ')' - 1`
26051 if test $ac_mid -le $ac_hi; then
26055 ac_mid=`expr 2 '*' $ac_mid`
26058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 $as_echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071 # Binary search between lo and hi bounds.
26072 while test "x$ac_lo" != "x$ac_hi"; do
26073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26074 cat >conftest.$ac_ext <<_ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h. */
26080 $ac_includes_default
26082 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26084 typedef struct { char x; short y; } ac__type_alignof_;
26088 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26095 rm -f conftest.$ac_objext
26096 if { (ac_try="$ac_compile"
26097 case "(($ac_try" in
26098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26099 *) ac_try_echo=$ac_try;;
26101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26102 $as_echo "$ac_try_echo") >&5
26103 (eval "$ac_compile") 2>conftest.er1
26105 grep -v '^ *+' conftest.er1 >conftest.err
26107 cat conftest.err >&5
26108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } && {
26110 test -z "$ac_c_werror_flag" ||
26111 test ! -s conftest.err
26112 } && test -s conftest.$ac_objext; then
26115 $as_echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 ac_lo=`expr '(' $ac_mid ')' + 1`
26121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124 ?*) ac_cv_alignof_short=$ac_lo;;
26125 '') if test "$ac_cv_type_short" = yes; then
26126 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26128 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26129 See \`config.log' for more details." >&5
26130 $as_echo "$as_me: error: cannot compute alignment of short
26131 See \`config.log' for more details." >&2;}
26132 { (exit 77); exit 77; }; }; }
26134 ac_cv_alignof_short=0
26138 cat >conftest.$ac_ext <<_ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144 $ac_includes_default
26146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26148 typedef struct { char x; short y; } ac__type_alignof_;
26149 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26150 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26152 #include <stdlib.h>
26157 FILE *f = fopen ("conftest.val", "w");
26160 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26162 long int i = longval ();
26163 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26165 fprintf (f, "%ld", i);
26169 unsigned long int i = ulongval ();
26170 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26172 fprintf (f, "%lu", i);
26174 /* Do not output a trailing newline, as this causes \r\n confusion
26175 on some platforms. */
26176 return ferror (f) || fclose (f) != 0;
26182 rm -f conftest$ac_exeext
26183 if { (ac_try="$ac_link"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190 (eval "$ac_link") 2>&5
26192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26194 { (case "(($ac_try" in
26195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196 *) ac_try_echo=$ac_try;;
26198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26199 $as_echo "$ac_try_echo") >&5
26200 (eval "$ac_try") 2>&5
26202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); }; }; then
26204 ac_cv_alignof_short=`cat conftest.val`
26206 $as_echo "$as_me: program exited with status $ac_status" >&5
26207 $as_echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26210 ( exit $ac_status )
26211 if test "$ac_cv_type_short" = yes; then
26212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26214 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26215 See \`config.log' for more details." >&5
26216 $as_echo "$as_me: error: cannot compute alignment of short
26217 See \`config.log' for more details." >&2;}
26218 { (exit 77); exit 77; }; }; }
26220 ac_cv_alignof_short=0
26223 rm -rf conftest.dSYM
26224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26228 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26229 $as_echo "$ac_cv_alignof_short" >&6; }
26233 cat >>confdefs.h <<_ACEOF
26234 #define ALIGNOF_SHORT $ac_cv_alignof_short
26238 # The cast to long int works around a bug in the HP C Compiler,
26239 # see AC_CHECK_SIZEOF for more information.
26240 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26241 $as_echo_n "checking alignment of int... " >&6; }
26242 if test "${ac_cv_alignof_int+set}" = set; then
26243 $as_echo_n "(cached) " >&6
26245 if test "$cross_compiling" = yes; then
26246 # Depending upon the size, compute the lo and hi bounds.
26247 cat >conftest.$ac_ext <<_ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h. */
26253 $ac_includes_default
26255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26257 typedef struct { char x; int y; } ac__type_alignof_;
26261 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26268 rm -f conftest.$ac_objext
26269 if { (ac_try="$ac_compile"
26270 case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26275 $as_echo "$ac_try_echo") >&5
26276 (eval "$ac_compile") 2>conftest.er1
26278 grep -v '^ *+' conftest.er1 >conftest.err
26280 cat conftest.err >&5
26281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } && {
26283 test -z "$ac_c_werror_flag" ||
26284 test ! -s conftest.err
26285 } && test -s conftest.$ac_objext; then
26288 cat >conftest.$ac_ext <<_ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h. */
26294 $ac_includes_default
26296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26298 typedef struct { char x; int y; } ac__type_alignof_;
26302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26309 rm -f conftest.$ac_objext
26310 if { (ac_try="$ac_compile"
26311 case "(($ac_try" in
26312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26313 *) ac_try_echo=$ac_try;;
26315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26316 $as_echo "$ac_try_echo") >&5
26317 (eval "$ac_compile") 2>conftest.er1
26319 grep -v '^ *+' conftest.er1 >conftest.err
26321 cat conftest.err >&5
26322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } && {
26324 test -z "$ac_c_werror_flag" ||
26325 test ! -s conftest.err
26326 } && test -s conftest.$ac_objext; then
26327 ac_hi=$ac_mid; break
26329 $as_echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26332 ac_lo=`expr $ac_mid + 1`
26333 if test $ac_lo -le $ac_mid; then
26337 ac_mid=`expr 2 '*' $ac_mid + 1`
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26343 $as_echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26346 cat >conftest.$ac_ext <<_ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352 $ac_includes_default
26354 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26356 typedef struct { char x; int y; } ac__type_alignof_;
26360 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26367 rm -f conftest.$ac_objext
26368 if { (ac_try="$ac_compile"
26369 case "(($ac_try" in
26370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371 *) ac_try_echo=$ac_try;;
26373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26374 $as_echo "$ac_try_echo") >&5
26375 (eval "$ac_compile") 2>conftest.er1
26377 grep -v '^ *+' conftest.er1 >conftest.err
26379 cat conftest.err >&5
26380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } && {
26382 test -z "$ac_c_werror_flag" ||
26383 test ! -s conftest.err
26384 } && test -s conftest.$ac_objext; then
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26393 $ac_includes_default
26395 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26397 typedef struct { char x; int y; } ac__type_alignof_;
26401 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26408 rm -f conftest.$ac_objext
26409 if { (ac_try="$ac_compile"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26415 $as_echo "$ac_try_echo") >&5
26416 (eval "$ac_compile") 2>conftest.er1
26418 grep -v '^ *+' conftest.er1 >conftest.err
26420 cat conftest.err >&5
26421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } && {
26423 test -z "$ac_c_werror_flag" ||
26424 test ! -s conftest.err
26425 } && test -s conftest.$ac_objext; then
26426 ac_lo=$ac_mid; break
26428 $as_echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431 ac_hi=`expr '(' $ac_mid ')' - 1`
26432 if test $ac_mid -le $ac_hi; then
26436 ac_mid=`expr 2 '*' $ac_mid`
26439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 $as_echo "$as_me: failed program was:" >&5
26443 sed 's/^/| /' conftest.$ac_ext >&5
26448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26452 # Binary search between lo and hi bounds.
26453 while test "x$ac_lo" != "x$ac_hi"; do
26454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26455 cat >conftest.$ac_ext <<_ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461 $ac_includes_default
26463 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26465 typedef struct { char x; int y; } ac__type_alignof_;
26469 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26476 rm -f conftest.$ac_objext
26477 if { (ac_try="$ac_compile"
26478 case "(($ac_try" in
26479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26480 *) ac_try_echo=$ac_try;;
26482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26483 $as_echo "$ac_try_echo") >&5
26484 (eval "$ac_compile") 2>conftest.er1
26486 grep -v '^ *+' conftest.er1 >conftest.err
26488 cat conftest.err >&5
26489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); } && {
26491 test -z "$ac_c_werror_flag" ||
26492 test ! -s conftest.err
26493 } && test -s conftest.$ac_objext; then
26496 $as_echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ac_lo=`expr '(' $ac_mid ')' + 1`
26502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26505 ?*) ac_cv_alignof_int=$ac_lo;;
26506 '') if test "$ac_cv_type_int" = yes; then
26507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26509 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26510 See \`config.log' for more details." >&5
26511 $as_echo "$as_me: error: cannot compute alignment of int
26512 See \`config.log' for more details." >&2;}
26513 { (exit 77); exit 77; }; }; }
26515 ac_cv_alignof_int=0
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26525 $ac_includes_default
26527 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26529 typedef struct { char x; int y; } ac__type_alignof_;
26530 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26531 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26533 #include <stdlib.h>
26538 FILE *f = fopen ("conftest.val", "w");
26541 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26543 long int i = longval ();
26544 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26546 fprintf (f, "%ld", i);
26550 unsigned long int i = ulongval ();
26551 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26553 fprintf (f, "%lu", i);
26555 /* Do not output a trailing newline, as this causes \r\n confusion
26556 on some platforms. */
26557 return ferror (f) || fclose (f) != 0;
26563 rm -f conftest$ac_exeext
26564 if { (ac_try="$ac_link"
26565 case "(($ac_try" in
26566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567 *) ac_try_echo=$ac_try;;
26569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26570 $as_echo "$ac_try_echo") >&5
26571 (eval "$ac_link") 2>&5
26573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26575 { (case "(($ac_try" in
26576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26577 *) ac_try_echo=$ac_try;;
26579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26580 $as_echo "$ac_try_echo") >&5
26581 (eval "$ac_try") 2>&5
26583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); }; }; then
26585 ac_cv_alignof_int=`cat conftest.val`
26587 $as_echo "$as_me: program exited with status $ac_status" >&5
26588 $as_echo "$as_me: failed program was:" >&5
26589 sed 's/^/| /' conftest.$ac_ext >&5
26591 ( exit $ac_status )
26592 if test "$ac_cv_type_int" = yes; then
26593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26595 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26596 See \`config.log' for more details." >&5
26597 $as_echo "$as_me: error: cannot compute alignment of int
26598 See \`config.log' for more details." >&2;}
26599 { (exit 77); exit 77; }; }; }
26601 ac_cv_alignof_int=0
26604 rm -rf conftest.dSYM
26605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26609 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26610 $as_echo "$ac_cv_alignof_int" >&6; }
26614 cat >>confdefs.h <<_ACEOF
26615 #define ALIGNOF_INT $ac_cv_alignof_int
26619 # The cast to long int works around a bug in the HP C Compiler,
26620 # see AC_CHECK_SIZEOF for more information.
26621 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26622 $as_echo_n "checking alignment of long... " >&6; }
26623 if test "${ac_cv_alignof_long+set}" = set; then
26624 $as_echo_n "(cached) " >&6
26626 if test "$cross_compiling" = yes; then
26627 # Depending upon the size, compute the lo and hi bounds.
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26634 $ac_includes_default
26636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26638 typedef struct { char x; long y; } ac__type_alignof_;
26642 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26649 rm -f conftest.$ac_objext
26650 if { (ac_try="$ac_compile"
26651 case "(($ac_try" in
26652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653 *) ac_try_echo=$ac_try;;
26655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26656 $as_echo "$ac_try_echo") >&5
26657 (eval "$ac_compile") 2>conftest.er1
26659 grep -v '^ *+' conftest.er1 >conftest.err
26661 cat conftest.err >&5
26662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } && {
26664 test -z "$ac_c_werror_flag" ||
26665 test ! -s conftest.err
26666 } && test -s conftest.$ac_objext; then
26669 cat >conftest.$ac_ext <<_ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h. */
26675 $ac_includes_default
26677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26679 typedef struct { char x; long y; } ac__type_alignof_;
26683 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26690 rm -f conftest.$ac_objext
26691 if { (ac_try="$ac_compile"
26692 case "(($ac_try" in
26693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694 *) ac_try_echo=$ac_try;;
26696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26697 $as_echo "$ac_try_echo") >&5
26698 (eval "$ac_compile") 2>conftest.er1
26700 grep -v '^ *+' conftest.er1 >conftest.err
26702 cat conftest.err >&5
26703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); } && {
26705 test -z "$ac_c_werror_flag" ||
26706 test ! -s conftest.err
26707 } && test -s conftest.$ac_objext; then
26708 ac_hi=$ac_mid; break
26710 $as_echo "$as_me: failed program was:" >&5
26711 sed 's/^/| /' conftest.$ac_ext >&5
26713 ac_lo=`expr $ac_mid + 1`
26714 if test $ac_lo -le $ac_mid; then
26718 ac_mid=`expr 2 '*' $ac_mid + 1`
26721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26724 $as_echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26727 cat >conftest.$ac_ext <<_ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h. */
26733 $ac_includes_default
26735 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26737 typedef struct { char x; long y; } ac__type_alignof_;
26741 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26748 rm -f conftest.$ac_objext
26749 if { (ac_try="$ac_compile"
26750 case "(($ac_try" in
26751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752 *) ac_try_echo=$ac_try;;
26754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26755 $as_echo "$ac_try_echo") >&5
26756 (eval "$ac_compile") 2>conftest.er1
26758 grep -v '^ *+' conftest.er1 >conftest.err
26760 cat conftest.err >&5
26761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); } && {
26763 test -z "$ac_c_werror_flag" ||
26764 test ! -s conftest.err
26765 } && test -s conftest.$ac_objext; then
26768 cat >conftest.$ac_ext <<_ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h. */
26774 $ac_includes_default
26776 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26778 typedef struct { char x; long y; } ac__type_alignof_;
26782 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26789 rm -f conftest.$ac_objext
26790 if { (ac_try="$ac_compile"
26791 case "(($ac_try" in
26792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26793 *) ac_try_echo=$ac_try;;
26795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26796 $as_echo "$ac_try_echo") >&5
26797 (eval "$ac_compile") 2>conftest.er1
26799 grep -v '^ *+' conftest.er1 >conftest.err
26801 cat conftest.err >&5
26802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } && {
26804 test -z "$ac_c_werror_flag" ||
26805 test ! -s conftest.err
26806 } && test -s conftest.$ac_objext; then
26807 ac_lo=$ac_mid; break
26809 $as_echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26812 ac_hi=`expr '(' $ac_mid ')' - 1`
26813 if test $ac_mid -le $ac_hi; then
26817 ac_mid=`expr 2 '*' $ac_mid`
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823 $as_echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26833 # Binary search between lo and hi bounds.
26834 while test "x$ac_lo" != "x$ac_hi"; do
26835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26836 cat >conftest.$ac_ext <<_ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h. */
26842 $ac_includes_default
26844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26846 typedef struct { char x; long y; } ac__type_alignof_;
26850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26857 rm -f conftest.$ac_objext
26858 if { (ac_try="$ac_compile"
26859 case "(($ac_try" in
26860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861 *) ac_try_echo=$ac_try;;
26863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26864 $as_echo "$ac_try_echo") >&5
26865 (eval "$ac_compile") 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } && {
26872 test -z "$ac_c_werror_flag" ||
26873 test ! -s conftest.err
26874 } && test -s conftest.$ac_objext; then
26877 $as_echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26880 ac_lo=`expr '(' $ac_mid ')' + 1`
26883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26886 ?*) ac_cv_alignof_long=$ac_lo;;
26887 '') if test "$ac_cv_type_long" = yes; then
26888 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26890 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26891 See \`config.log' for more details." >&5
26892 $as_echo "$as_me: error: cannot compute alignment of long
26893 See \`config.log' for more details." >&2;}
26894 { (exit 77); exit 77; }; }; }
26896 ac_cv_alignof_long=0
26900 cat >conftest.$ac_ext <<_ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h. */
26906 $ac_includes_default
26908 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26910 typedef struct { char x; long y; } ac__type_alignof_;
26911 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26912 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26914 #include <stdlib.h>
26919 FILE *f = fopen ("conftest.val", "w");
26922 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26924 long int i = longval ();
26925 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26927 fprintf (f, "%ld", i);
26931 unsigned long int i = ulongval ();
26932 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26934 fprintf (f, "%lu", i);
26936 /* Do not output a trailing newline, as this causes \r\n confusion
26937 on some platforms. */
26938 return ferror (f) || fclose (f) != 0;
26944 rm -f conftest$ac_exeext
26945 if { (ac_try="$ac_link"
26946 case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26951 $as_echo "$ac_try_echo") >&5
26952 (eval "$ac_link") 2>&5
26954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26956 { (case "(($ac_try" in
26957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26958 *) ac_try_echo=$ac_try;;
26960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26961 $as_echo "$ac_try_echo") >&5
26962 (eval "$ac_try") 2>&5
26964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966 ac_cv_alignof_long=`cat conftest.val`
26968 $as_echo "$as_me: program exited with status $ac_status" >&5
26969 $as_echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26972 ( exit $ac_status )
26973 if test "$ac_cv_type_long" = yes; then
26974 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26976 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26977 See \`config.log' for more details." >&5
26978 $as_echo "$as_me: error: cannot compute alignment of long
26979 See \`config.log' for more details." >&2;}
26980 { (exit 77); exit 77; }; }; }
26982 ac_cv_alignof_long=0
26985 rm -rf conftest.dSYM
26986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26990 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26991 $as_echo "$ac_cv_alignof_long" >&6; }
26995 cat >>confdefs.h <<_ACEOF
26996 #define ALIGNOF_LONG $ac_cv_alignof_long
27000 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27001 # The cast to long int works around a bug in the HP C Compiler,
27002 # see AC_CHECK_SIZEOF for more information.
27003 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27004 $as_echo_n "checking alignment of long long int... " >&6; }
27005 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27006 $as_echo_n "(cached) " >&6
27008 if test "$cross_compiling" = yes; then
27009 # Depending upon the size, compute the lo and hi bounds.
27010 cat >conftest.$ac_ext <<_ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27016 $ac_includes_default
27018 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27020 typedef struct { char x; long long int y; } ac__type_alignof_;
27024 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27031 rm -f conftest.$ac_objext
27032 if { (ac_try="$ac_compile"
27033 case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27038 $as_echo "$ac_try_echo") >&5
27039 (eval "$ac_compile") 2>conftest.er1
27041 grep -v '^ *+' conftest.er1 >conftest.err
27043 cat conftest.err >&5
27044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } && {
27046 test -z "$ac_c_werror_flag" ||
27047 test ! -s conftest.err
27048 } && test -s conftest.$ac_objext; then
27051 cat >conftest.$ac_ext <<_ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h. */
27057 $ac_includes_default
27059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27061 typedef struct { char x; long long int y; } ac__type_alignof_;
27065 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27072 rm -f conftest.$ac_objext
27073 if { (ac_try="$ac_compile"
27074 case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27079 $as_echo "$ac_try_echo") >&5
27080 (eval "$ac_compile") 2>conftest.er1
27082 grep -v '^ *+' conftest.er1 >conftest.err
27084 cat conftest.err >&5
27085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } && {
27087 test -z "$ac_c_werror_flag" ||
27088 test ! -s conftest.err
27089 } && test -s conftest.$ac_objext; then
27090 ac_hi=$ac_mid; break
27092 $as_echo "$as_me: failed program was:" >&5
27093 sed 's/^/| /' conftest.$ac_ext >&5
27095 ac_lo=`expr $ac_mid + 1`
27096 if test $ac_lo -le $ac_mid; then
27100 ac_mid=`expr 2 '*' $ac_mid + 1`
27103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 $as_echo "$as_me: failed program was:" >&5
27107 sed 's/^/| /' conftest.$ac_ext >&5
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 $ac_includes_default
27117 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27119 typedef struct { char x; long long int y; } ac__type_alignof_;
27123 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27130 rm -f conftest.$ac_objext
27131 if { (ac_try="$ac_compile"
27132 case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27137 $as_echo "$ac_try_echo") >&5
27138 (eval "$ac_compile") 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } && {
27145 test -z "$ac_c_werror_flag" ||
27146 test ! -s conftest.err
27147 } && test -s conftest.$ac_objext; then
27150 cat >conftest.$ac_ext <<_ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h. */
27156 $ac_includes_default
27158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27160 typedef struct { char x; long long int y; } ac__type_alignof_;
27164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27171 rm -f conftest.$ac_objext
27172 if { (ac_try="$ac_compile"
27173 case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27178 $as_echo "$ac_try_echo") >&5
27179 (eval "$ac_compile") 2>conftest.er1
27181 grep -v '^ *+' conftest.er1 >conftest.err
27183 cat conftest.err >&5
27184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } && {
27186 test -z "$ac_c_werror_flag" ||
27187 test ! -s conftest.err
27188 } && test -s conftest.$ac_objext; then
27189 ac_lo=$ac_mid; break
27191 $as_echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27194 ac_hi=`expr '(' $ac_mid ')' - 1`
27195 if test $ac_mid -le $ac_hi; then
27199 ac_mid=`expr 2 '*' $ac_mid`
27202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 $as_echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27215 # Binary search between lo and hi bounds.
27216 while test "x$ac_lo" != "x$ac_hi"; do
27217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27218 cat >conftest.$ac_ext <<_ACEOF
27221 cat confdefs.h >>conftest.$ac_ext
27222 cat >>conftest.$ac_ext <<_ACEOF
27223 /* end confdefs.h. */
27224 $ac_includes_default
27226 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27228 typedef struct { char x; long long int y; } ac__type_alignof_;
27232 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27239 rm -f conftest.$ac_objext
27240 if { (ac_try="$ac_compile"
27241 case "(($ac_try" in
27242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243 *) ac_try_echo=$ac_try;;
27245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27246 $as_echo "$ac_try_echo") >&5
27247 (eval "$ac_compile") 2>conftest.er1
27249 grep -v '^ *+' conftest.er1 >conftest.err
27251 cat conftest.err >&5
27252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253 (exit $ac_status); } && {
27254 test -z "$ac_c_werror_flag" ||
27255 test ! -s conftest.err
27256 } && test -s conftest.$ac_objext; then
27259 $as_echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27262 ac_lo=`expr '(' $ac_mid ')' + 1`
27265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27269 '') if test "$ac_cv_type_long_long_int" = yes; then
27270 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27272 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27273 See \`config.log' for more details." >&5
27274 $as_echo "$as_me: error: cannot compute alignment of long long int
27275 See \`config.log' for more details." >&2;}
27276 { (exit 77); exit 77; }; }; }
27278 ac_cv_alignof_long_long_int=0
27282 cat >conftest.$ac_ext <<_ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h. */
27288 $ac_includes_default
27290 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27292 typedef struct { char x; long long int y; } ac__type_alignof_;
27293 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27294 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27296 #include <stdlib.h>
27301 FILE *f = fopen ("conftest.val", "w");
27304 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27306 long int i = longval ();
27307 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27309 fprintf (f, "%ld", i);
27313 unsigned long int i = ulongval ();
27314 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27316 fprintf (f, "%lu", i);
27318 /* Do not output a trailing newline, as this causes \r\n confusion
27319 on some platforms. */
27320 return ferror (f) || fclose (f) != 0;
27326 rm -f conftest$ac_exeext
27327 if { (ac_try="$ac_link"
27328 case "(($ac_try" in
27329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27333 $as_echo "$ac_try_echo") >&5
27334 (eval "$ac_link") 2>&5
27336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27338 { (case "(($ac_try" in
27339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340 *) ac_try_echo=$ac_try;;
27342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27343 $as_echo "$ac_try_echo") >&5
27344 (eval "$ac_try") 2>&5
27346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; }; then
27348 ac_cv_alignof_long_long_int=`cat conftest.val`
27350 $as_echo "$as_me: program exited with status $ac_status" >&5
27351 $as_echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27354 ( exit $ac_status )
27355 if test "$ac_cv_type_long_long_int" = yes; then
27356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27359 See \`config.log' for more details." >&5
27360 $as_echo "$as_me: error: cannot compute alignment of long long int
27361 See \`config.log' for more details." >&2;}
27362 { (exit 77); exit 77; }; }; }
27364 ac_cv_alignof_long_long_int=0
27367 rm -rf conftest.dSYM
27368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27372 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27373 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27377 cat >>confdefs.h <<_ACEOF
27378 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27383 # The cast to long int works around a bug in the HP C Compiler,
27384 # see AC_CHECK_SIZEOF for more information.
27385 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27386 $as_echo_n "checking alignment of double... " >&6; }
27387 if test "${ac_cv_alignof_double+set}" = set; then
27388 $as_echo_n "(cached) " >&6
27390 if test "$cross_compiling" = yes; then
27391 # Depending upon the size, compute the lo and hi bounds.
27392 cat >conftest.$ac_ext <<_ACEOF
27395 cat confdefs.h >>conftest.$ac_ext
27396 cat >>conftest.$ac_ext <<_ACEOF
27397 /* end confdefs.h. */
27398 $ac_includes_default
27400 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27402 typedef struct { char x; double y; } ac__type_alignof_;
27406 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27413 rm -f conftest.$ac_objext
27414 if { (ac_try="$ac_compile"
27415 case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27420 $as_echo "$ac_try_echo") >&5
27421 (eval "$ac_compile") 2>conftest.er1
27423 grep -v '^ *+' conftest.er1 >conftest.err
27425 cat conftest.err >&5
27426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); } && {
27428 test -z "$ac_c_werror_flag" ||
27429 test ! -s conftest.err
27430 } && test -s conftest.$ac_objext; then
27433 cat >conftest.$ac_ext <<_ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h. */
27439 $ac_includes_default
27441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27443 typedef struct { char x; double y; } ac__type_alignof_;
27447 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27454 rm -f conftest.$ac_objext
27455 if { (ac_try="$ac_compile"
27456 case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27461 $as_echo "$ac_try_echo") >&5
27462 (eval "$ac_compile") 2>conftest.er1
27464 grep -v '^ *+' conftest.er1 >conftest.err
27466 cat conftest.err >&5
27467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); } && {
27469 test -z "$ac_c_werror_flag" ||
27470 test ! -s conftest.err
27471 } && test -s conftest.$ac_objext; then
27472 ac_hi=$ac_mid; break
27474 $as_echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27477 ac_lo=`expr $ac_mid + 1`
27478 if test $ac_lo -le $ac_mid; then
27482 ac_mid=`expr 2 '*' $ac_mid + 1`
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27488 $as_echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27491 cat >conftest.$ac_ext <<_ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h. */
27497 $ac_includes_default
27499 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27501 typedef struct { char x; double y; } ac__type_alignof_;
27505 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27519 $as_echo "$ac_try_echo") >&5
27520 (eval "$ac_compile") 2>conftest.er1
27522 grep -v '^ *+' conftest.er1 >conftest.err
27524 cat conftest.err >&5
27525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } && {
27527 test -z "$ac_c_werror_flag" ||
27528 test ! -s conftest.err
27529 } && test -s conftest.$ac_objext; then
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27538 $ac_includes_default
27540 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27542 typedef struct { char x; double y; } ac__type_alignof_;
27546 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27560 $as_echo "$ac_try_echo") >&5
27561 (eval "$ac_compile") 2>conftest.er1
27563 grep -v '^ *+' conftest.er1 >conftest.err
27565 cat conftest.err >&5
27566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } && {
27568 test -z "$ac_c_werror_flag" ||
27569 test ! -s conftest.err
27570 } && test -s conftest.$ac_objext; then
27571 ac_lo=$ac_mid; break
27573 $as_echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27576 ac_hi=`expr '(' $ac_mid ')' - 1`
27577 if test $ac_mid -le $ac_hi; then
27581 ac_mid=`expr 2 '*' $ac_mid`
27584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27587 $as_echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27597 # Binary search between lo and hi bounds.
27598 while test "x$ac_lo" != "x$ac_hi"; do
27599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27600 cat >conftest.$ac_ext <<_ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h. */
27606 $ac_includes_default
27608 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27610 typedef struct { char x; double y; } ac__type_alignof_;
27614 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27621 rm -f conftest.$ac_objext
27622 if { (ac_try="$ac_compile"
27623 case "(($ac_try" in
27624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27625 *) ac_try_echo=$ac_try;;
27627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27628 $as_echo "$ac_try_echo") >&5
27629 (eval "$ac_compile") 2>conftest.er1
27631 grep -v '^ *+' conftest.er1 >conftest.err
27633 cat conftest.err >&5
27634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } && {
27636 test -z "$ac_c_werror_flag" ||
27637 test ! -s conftest.err
27638 } && test -s conftest.$ac_objext; then
27641 $as_echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27644 ac_lo=`expr '(' $ac_mid ')' + 1`
27647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27650 ?*) ac_cv_alignof_double=$ac_lo;;
27651 '') if test "$ac_cv_type_double" = yes; then
27652 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27654 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27655 See \`config.log' for more details." >&5
27656 $as_echo "$as_me: error: cannot compute alignment of double
27657 See \`config.log' for more details." >&2;}
27658 { (exit 77); exit 77; }; }; }
27660 ac_cv_alignof_double=0
27664 cat >conftest.$ac_ext <<_ACEOF
27667 cat confdefs.h >>conftest.$ac_ext
27668 cat >>conftest.$ac_ext <<_ACEOF
27669 /* end confdefs.h. */
27670 $ac_includes_default
27672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27674 typedef struct { char x; double y; } ac__type_alignof_;
27675 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27676 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27678 #include <stdlib.h>
27683 FILE *f = fopen ("conftest.val", "w");
27686 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27688 long int i = longval ();
27689 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27691 fprintf (f, "%ld", i);
27695 unsigned long int i = ulongval ();
27696 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27698 fprintf (f, "%lu", i);
27700 /* Do not output a trailing newline, as this causes \r\n confusion
27701 on some platforms. */
27702 return ferror (f) || fclose (f) != 0;
27708 rm -f conftest$ac_exeext
27709 if { (ac_try="$ac_link"
27710 case "(($ac_try" in
27711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712 *) ac_try_echo=$ac_try;;
27714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27715 $as_echo "$ac_try_echo") >&5
27716 (eval "$ac_link") 2>&5
27718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27720 { (case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27725 $as_echo "$ac_try_echo") >&5
27726 (eval "$ac_try") 2>&5
27728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; }; then
27730 ac_cv_alignof_double=`cat conftest.val`
27732 $as_echo "$as_me: program exited with status $ac_status" >&5
27733 $as_echo "$as_me: failed program was:" >&5
27734 sed 's/^/| /' conftest.$ac_ext >&5
27736 ( exit $ac_status )
27737 if test "$ac_cv_type_double" = yes; then
27738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27740 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27741 See \`config.log' for more details." >&5
27742 $as_echo "$as_me: error: cannot compute alignment of double
27743 See \`config.log' for more details." >&2;}
27744 { (exit 77); exit 77; }; }; }
27746 ac_cv_alignof_double=0
27749 rm -rf conftest.dSYM
27750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27754 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27755 $as_echo "$ac_cv_alignof_double" >&6; }
27759 cat >>confdefs.h <<_ACEOF
27760 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27765 # Compute maximum alignment of any basic type.
27766 # We assume long's alignment is at least as strong as char, short, or int;
27767 # but we must check long long (if it exists) and double.
27769 MAX_ALIGNOF=$ac_cv_alignof_long
27770 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27771 MAX_ALIGNOF=$ac_cv_alignof_double
27773 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27774 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27777 cat >>confdefs.h <<_ACEOF
27778 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27783 # Some platforms predefine the types int8, int16, etc. Only check
27784 # a (hopefully) representative subset.
27785 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27786 $as_echo_n "checking for int8... " >&6; }
27787 if test "${ac_cv_type_int8+set}" = set; then
27788 $as_echo_n "(cached) " >&6
27791 cat >conftest.$ac_ext <<_ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h. */
27808 rm -f conftest.$ac_objext
27809 if { (ac_try="$ac_compile"
27810 case "(($ac_try" in
27811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812 *) ac_try_echo=$ac_try;;
27814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27815 $as_echo "$ac_try_echo") >&5
27816 (eval "$ac_compile") 2>conftest.er1
27818 grep -v '^ *+' conftest.er1 >conftest.err
27820 cat conftest.err >&5
27821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); } && {
27823 test -z "$ac_c_werror_flag" ||
27824 test ! -s conftest.err
27825 } && test -s conftest.$ac_objext; then
27826 cat >conftest.$ac_ext <<_ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27837 if (sizeof ((int8)))
27843 rm -f conftest.$ac_objext
27844 if { (ac_try="$ac_compile"
27845 case "(($ac_try" in
27846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847 *) ac_try_echo=$ac_try;;
27849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27850 $as_echo "$ac_try_echo") >&5
27851 (eval "$ac_compile") 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } && {
27858 test -z "$ac_c_werror_flag" ||
27859 test ! -s conftest.err
27860 } && test -s conftest.$ac_objext; then
27863 $as_echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27866 ac_cv_type_int8=yes
27869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27871 $as_echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27880 $as_echo "$ac_cv_type_int8" >&6; }
27881 if test "x$ac_cv_type_int8" = x""yes; then
27883 cat >>confdefs.h <<_ACEOF
27884 #define HAVE_INT8 1
27889 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27890 $as_echo_n "checking for uint8... " >&6; }
27891 if test "${ac_cv_type_uint8+set}" = set; then
27892 $as_echo_n "(cached) " >&6
27894 ac_cv_type_uint8=no
27895 cat >conftest.$ac_ext <<_ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h. */
27906 if (sizeof (uint8))
27912 rm -f conftest.$ac_objext
27913 if { (ac_try="$ac_compile"
27914 case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27919 $as_echo "$ac_try_echo") >&5
27920 (eval "$ac_compile") 2>conftest.er1
27922 grep -v '^ *+' conftest.er1 >conftest.err
27924 cat conftest.err >&5
27925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } && {
27927 test -z "$ac_c_werror_flag" ||
27928 test ! -s conftest.err
27929 } && test -s conftest.$ac_objext; then
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27941 if (sizeof ((uint8)))
27947 rm -f conftest.$ac_objext
27948 if { (ac_try="$ac_compile"
27949 case "(($ac_try" in
27950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27951 *) ac_try_echo=$ac_try;;
27953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27954 $as_echo "$ac_try_echo") >&5
27955 (eval "$ac_compile") 2>conftest.er1
27957 grep -v '^ *+' conftest.er1 >conftest.err
27959 cat conftest.err >&5
27960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); } && {
27962 test -z "$ac_c_werror_flag" ||
27963 test ! -s conftest.err
27964 } && test -s conftest.$ac_objext; then
27967 $as_echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27970 ac_cv_type_uint8=yes
27973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27975 $as_echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27984 $as_echo "$ac_cv_type_uint8" >&6; }
27985 if test "x$ac_cv_type_uint8" = x""yes; then
27987 cat >>confdefs.h <<_ACEOF
27988 #define HAVE_UINT8 1
27993 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27994 $as_echo_n "checking for int64... " >&6; }
27995 if test "${ac_cv_type_int64+set}" = set; then
27996 $as_echo_n "(cached) " >&6
27998 ac_cv_type_int64=no
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28010 if (sizeof (int64))
28016 rm -f conftest.$ac_objext
28017 if { (ac_try="$ac_compile"
28018 case "(($ac_try" in
28019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28020 *) ac_try_echo=$ac_try;;
28022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28023 $as_echo "$ac_try_echo") >&5
28024 (eval "$ac_compile") 2>conftest.er1
28026 grep -v '^ *+' conftest.er1 >conftest.err
28028 cat conftest.err >&5
28029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } && {
28031 test -z "$ac_c_werror_flag" ||
28032 test ! -s conftest.err
28033 } && test -s conftest.$ac_objext; then
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28045 if (sizeof ((int64)))
28051 rm -f conftest.$ac_objext
28052 if { (ac_try="$ac_compile"
28053 case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28058 $as_echo "$ac_try_echo") >&5
28059 (eval "$ac_compile") 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } && {
28066 test -z "$ac_c_werror_flag" ||
28067 test ! -s conftest.err
28068 } && test -s conftest.$ac_objext; then
28071 $as_echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28074 ac_cv_type_int64=yes
28077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28079 $as_echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28088 $as_echo "$ac_cv_type_int64" >&6; }
28089 if test "x$ac_cv_type_int64" = x""yes; then
28091 cat >>confdefs.h <<_ACEOF
28092 #define HAVE_INT64 1
28097 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28098 $as_echo_n "checking for uint64... " >&6; }
28099 if test "${ac_cv_type_uint64+set}" = set; then
28100 $as_echo_n "(cached) " >&6
28102 ac_cv_type_uint64=no
28103 cat >conftest.$ac_ext <<_ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h. */
28114 if (sizeof (uint64))
28120 rm -f conftest.$ac_objext
28121 if { (ac_try="$ac_compile"
28122 case "(($ac_try" in
28123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28124 *) ac_try_echo=$ac_try;;
28126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28127 $as_echo "$ac_try_echo") >&5
28128 (eval "$ac_compile") 2>conftest.er1
28130 grep -v '^ *+' conftest.er1 >conftest.err
28132 cat conftest.err >&5
28133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } && {
28135 test -z "$ac_c_werror_flag" ||
28136 test ! -s conftest.err
28137 } && test -s conftest.$ac_objext; then
28138 cat >conftest.$ac_ext <<_ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h. */
28149 if (sizeof ((uint64)))
28155 rm -f conftest.$ac_objext
28156 if { (ac_try="$ac_compile"
28157 case "(($ac_try" in
28158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28159 *) ac_try_echo=$ac_try;;
28161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28162 $as_echo "$ac_try_echo") >&5
28163 (eval "$ac_compile") 2>conftest.er1
28165 grep -v '^ *+' conftest.er1 >conftest.err
28167 cat conftest.err >&5
28168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } && {
28170 test -z "$ac_c_werror_flag" ||
28171 test ! -s conftest.err
28172 } && test -s conftest.$ac_objext; then
28175 $as_echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28178 ac_cv_type_uint64=yes
28181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28183 $as_echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28192 $as_echo "$ac_cv_type_uint64" >&6; }
28193 if test "x$ac_cv_type_uint64" = x""yes; then
28195 cat >>confdefs.h <<_ACEOF
28196 #define HAVE_UINT64 1
28203 # We also check for sig_atomic_t, which *should* be defined per ANSI
28204 # C, but is missing on some old platforms.
28205 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28206 $as_echo_n "checking for sig_atomic_t... " >&6; }
28207 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28208 $as_echo_n "(cached) " >&6
28210 ac_cv_type_sig_atomic_t=no
28211 cat >conftest.$ac_ext <<_ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h. */
28217 #include <signal.h>
28222 if (sizeof (sig_atomic_t))
28228 rm -f conftest.$ac_objext
28229 if { (ac_try="$ac_compile"
28230 case "(($ac_try" in
28231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232 *) ac_try_echo=$ac_try;;
28234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28235 $as_echo "$ac_try_echo") >&5
28236 (eval "$ac_compile") 2>conftest.er1
28238 grep -v '^ *+' conftest.er1 >conftest.err
28240 cat conftest.err >&5
28241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } && {
28243 test -z "$ac_c_werror_flag" ||
28244 test ! -s conftest.err
28245 } && test -s conftest.$ac_objext; then
28246 cat >conftest.$ac_ext <<_ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 #include <signal.h>
28257 if (sizeof ((sig_atomic_t)))
28263 rm -f conftest.$ac_objext
28264 if { (ac_try="$ac_compile"
28265 case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28270 $as_echo "$ac_try_echo") >&5
28271 (eval "$ac_compile") 2>conftest.er1
28273 grep -v '^ *+' conftest.er1 >conftest.err
28275 cat conftest.err >&5
28276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); } && {
28278 test -z "$ac_c_werror_flag" ||
28279 test ! -s conftest.err
28280 } && test -s conftest.$ac_objext; then
28283 $as_echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28286 ac_cv_type_sig_atomic_t=yes
28289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291 $as_echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28300 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28301 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28303 cat >>confdefs.h <<_ACEOF
28304 #define HAVE_SIG_ATOMIC_T 1
28312 if test "$PORTNAME" != "win32"
28314 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28315 $as_echo_n "checking for POSIX signal interface... " >&6; }
28316 if test "${pgac_cv_func_posix_signals+set}" = set; then
28317 $as_echo_n "(cached) " >&6
28319 cat >conftest.$ac_ext <<_ACEOF
28322 cat confdefs.h >>conftest.$ac_ext
28323 cat >>conftest.$ac_ext <<_ACEOF
28324 /* end confdefs.h. */
28325 #include <signal.h>
28330 struct sigaction act, oact;
28331 sigemptyset(&act.sa_mask);
28332 act.sa_flags = SA_RESTART;
28333 sigaction(0, &act, &oact);
28338 rm -f conftest.$ac_objext conftest$ac_exeext
28339 if { (ac_try="$ac_link"
28340 case "(($ac_try" in
28341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342 *) ac_try_echo=$ac_try;;
28344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28345 $as_echo "$ac_try_echo") >&5
28346 (eval "$ac_link") 2>conftest.er1
28348 grep -v '^ *+' conftest.er1 >conftest.err
28350 cat conftest.err >&5
28351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } && {
28353 test -z "$ac_c_werror_flag" ||
28354 test ! -s conftest.err
28355 } && test -s conftest$ac_exeext && {
28356 test "$cross_compiling" = yes ||
28357 $as_test_x conftest$ac_exeext
28359 pgac_cv_func_posix_signals=yes
28361 $as_echo "$as_me: failed program was:" >&5
28362 sed 's/^/| /' conftest.$ac_ext >&5
28364 pgac_cv_func_posix_signals=no
28367 rm -rf conftest.dSYM
28368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28369 conftest$ac_exeext conftest.$ac_ext
28371 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28372 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28373 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28375 cat >>confdefs.h <<\_ACEOF
28376 #define HAVE_POSIX_SIGNALS /**/
28380 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28382 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28383 { { $as_echo "$as_me:$LINENO: error:
28384 Thread-safety requires POSIX signals, which are not supported by this
28385 operating system; use --disable-thread-safety to disable thread safety." >&5
28386 $as_echo "$as_me: error:
28387 Thread-safety requires POSIX signals, which are not supported by this
28388 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28389 { (exit 1); exit 1; }; }
28393 # SunOS doesn't handle negative byte comparisons properly with +/- return
28394 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28395 $as_echo_n "checking for working memcmp... " >&6; }
28396 if test "${ac_cv_func_memcmp_working+set}" = set; then
28397 $as_echo_n "(cached) " >&6
28399 if test "$cross_compiling" = yes; then
28400 ac_cv_func_memcmp_working=no
28402 cat >conftest.$ac_ext <<_ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h. */
28408 $ac_includes_default
28413 /* Some versions of memcmp are not 8-bit clean. */
28414 char c0 = '\100', c1 = '\200', c2 = '\201';
28415 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28418 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28419 or more and with at least one buffer not starting on a 4-byte boundary.
28420 William Lewis provided this test program. */
28425 for (i = 0; i < 4; i++)
28429 strcpy (a, "--------01111111");
28430 strcpy (b, "--------10000000");
28431 if (memcmp (a, b, 16) >= 0)
28441 rm -f conftest$ac_exeext
28442 if { (ac_try="$ac_link"
28443 case "(($ac_try" in
28444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445 *) ac_try_echo=$ac_try;;
28447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28448 $as_echo "$ac_try_echo") >&5
28449 (eval "$ac_link") 2>&5
28451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28453 { (case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28458 $as_echo "$ac_try_echo") >&5
28459 (eval "$ac_try") 2>&5
28461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 ac_cv_func_memcmp_working=yes
28465 $as_echo "$as_me: program exited with status $ac_status" >&5
28466 $as_echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28469 ( exit $ac_status )
28470 ac_cv_func_memcmp_working=no
28472 rm -rf conftest.dSYM
28473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28478 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28479 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28480 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28481 *" memcmp.$ac_objext "* ) ;;
28482 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28489 # Select semaphore implementation type.
28490 if test "$PORTNAME" != "win32"; then
28491 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28493 cat >>confdefs.h <<\_ACEOF
28494 #define USE_NAMED_POSIX_SEMAPHORES 1
28497 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28499 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28501 cat >>confdefs.h <<\_ACEOF
28502 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28505 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28508 cat >>confdefs.h <<\_ACEOF
28509 #define USE_SYSV_SEMAPHORES 1
28512 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28517 cat >>confdefs.h <<\_ACEOF
28518 #define USE_WIN32_SEMAPHORES 1
28521 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28525 # Select shared-memory implementation type.
28526 if test "$PORTNAME" != "win32"; then
28528 cat >>confdefs.h <<\_ACEOF
28529 #define USE_SYSV_SHARED_MEMORY 1
28532 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28535 cat >>confdefs.h <<\_ACEOF
28536 #define USE_WIN32_SHARED_MEMORY 1
28539 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28542 # Select latch implementation type.
28543 if test "$PORTNAME" != "win32"; then
28544 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28546 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28549 # If not set in template file, set bytes to use libc memset()
28550 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28551 MEMSET_LOOP_LIMIT=1024
28554 cat >>confdefs.h <<_ACEOF
28555 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28560 if test "$enable_nls" = yes ; then
28562 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28563 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28564 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28565 $as_echo_n "(cached) " >&6
28567 ac_func_search_save_LIBS=$LIBS
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28575 /* Override any GCC internal prototype to avoid an error.
28576 Use char because int might match the return type of a GCC
28577 builtin and then its argument prototype would still apply. */
28581 char bind_textdomain_codeset ();
28585 return bind_textdomain_codeset ();
28590 for ac_lib in '' intl; do
28591 if test -z "$ac_lib"; then
28592 ac_res="none required"
28595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28597 rm -f conftest.$ac_objext conftest$ac_exeext
28598 if { (ac_try="$ac_link"
28599 case "(($ac_try" in
28600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601 *) ac_try_echo=$ac_try;;
28603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28604 $as_echo "$ac_try_echo") >&5
28605 (eval "$ac_link") 2>conftest.er1
28607 grep -v '^ *+' conftest.er1 >conftest.err
28609 cat conftest.err >&5
28610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } && {
28612 test -z "$ac_c_werror_flag" ||
28613 test ! -s conftest.err
28614 } && test -s conftest$ac_exeext && {
28615 test "$cross_compiling" = yes ||
28616 $as_test_x conftest$ac_exeext
28618 ac_cv_search_bind_textdomain_codeset=$ac_res
28620 $as_echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28626 rm -rf conftest.dSYM
28627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28629 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28633 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28636 ac_cv_search_bind_textdomain_codeset=no
28638 rm conftest.$ac_ext
28639 LIBS=$ac_func_search_save_LIBS
28641 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28642 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28643 ac_res=$ac_cv_search_bind_textdomain_codeset
28644 if test "$ac_res" != no; then
28645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28648 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28649 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28650 { (exit 1); exit 1; }; }
28653 if test "${ac_cv_header_libintl_h+set}" = set; then
28654 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28655 $as_echo_n "checking for libintl.h... " >&6; }
28656 if test "${ac_cv_header_libintl_h+set}" = set; then
28657 $as_echo_n "(cached) " >&6
28659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28660 $as_echo "$ac_cv_header_libintl_h" >&6; }
28662 # Is the header compilable?
28663 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28664 $as_echo_n "checking libintl.h usability... " >&6; }
28665 cat >conftest.$ac_ext <<_ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h. */
28671 $ac_includes_default
28672 #include <libintl.h>
28674 rm -f conftest.$ac_objext
28675 if { (ac_try="$ac_compile"
28676 case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681 $as_echo "$ac_try_echo") >&5
28682 (eval "$ac_compile") 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } && {
28689 test -z "$ac_c_werror_flag" ||
28690 test ! -s conftest.err
28691 } && test -s conftest.$ac_objext; then
28692 ac_header_compiler=yes
28694 $as_echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28697 ac_header_compiler=no
28700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28702 $as_echo "$ac_header_compiler" >&6; }
28704 # Is the header present?
28705 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28706 $as_echo_n "checking libintl.h presence... " >&6; }
28707 cat >conftest.$ac_ext <<_ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h. */
28713 #include <libintl.h>
28715 if { (ac_try="$ac_cpp conftest.$ac_ext"
28716 case "(($ac_try" in
28717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718 *) ac_try_echo=$ac_try;;
28720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28721 $as_echo "$ac_try_echo") >&5
28722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28724 grep -v '^ *+' conftest.er1 >conftest.err
28726 cat conftest.err >&5
28727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); } >/dev/null && {
28729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28730 test ! -s conftest.err
28732 ac_header_preproc=yes
28734 $as_echo "$as_me: failed program was:" >&5
28735 sed 's/^/| /' conftest.$ac_ext >&5
28737 ac_header_preproc=no
28740 rm -f conftest.err conftest.$ac_ext
28741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28742 $as_echo "$ac_header_preproc" >&6; }
28744 # So? What about this header?
28745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28747 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28748 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28749 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28750 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28751 ac_header_preproc=yes
28754 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28755 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28756 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28757 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28758 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28759 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28760 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28761 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28762 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28763 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28764 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28765 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28767 ## ---------------------------------------- ##
28768 ## Report this to pgsql-bugs@postgresql.org ##
28769 ## ---------------------------------------- ##
28771 ) | sed "s/^/$as_me: WARNING: /" >&2
28774 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28775 $as_echo_n "checking for libintl.h... " >&6; }
28776 if test "${ac_cv_header_libintl_h+set}" = set; then
28777 $as_echo_n "(cached) " >&6
28779 ac_cv_header_libintl_h=$ac_header_preproc
28781 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28782 $as_echo "$ac_cv_header_libintl_h" >&6; }
28785 if test "x$ac_cv_header_libintl_h" = x""yes; then
28788 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28789 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28790 { (exit 1); exit 1; }; }
28794 for ac_prog in msgfmt
28796 # Extract the first word of "$ac_prog", so it can be a program name with args.
28797 set dummy $ac_prog; ac_word=$2
28798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28799 $as_echo_n "checking for $ac_word... " >&6; }
28800 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28801 $as_echo_n "(cached) " >&6
28803 if test -n "$MSGFMT"; then
28804 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28807 for as_dir in $PATH
28810 test -z "$as_dir" && as_dir=.
28811 for ac_exec_ext in '' $ac_executable_extensions; do
28812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28813 ac_cv_prog_MSGFMT="$ac_prog"
28814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28823 MSGFMT=$ac_cv_prog_MSGFMT
28824 if test -n "$MSGFMT"; then
28825 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28826 $as_echo "$MSGFMT" >&6; }
28828 { $as_echo "$as_me:$LINENO: result: no" >&5
28829 $as_echo "no" >&6; }
28833 test -n "$MSGFMT" && break
28836 if test -z "$MSGFMT"; then
28837 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28838 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28839 { (exit 1); exit 1; }; }
28841 for ac_prog in msgmerge
28843 # Extract the first word of "$ac_prog", so it can be a program name with args.
28844 set dummy $ac_prog; ac_word=$2
28845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28846 $as_echo_n "checking for $ac_word... " >&6; }
28847 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28848 $as_echo_n "(cached) " >&6
28850 if test -n "$MSGMERGE"; then
28851 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28854 for as_dir in $PATH
28857 test -z "$as_dir" && as_dir=.
28858 for ac_exec_ext in '' $ac_executable_extensions; do
28859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28860 ac_cv_prog_MSGMERGE="$ac_prog"
28861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28870 MSGMERGE=$ac_cv_prog_MSGMERGE
28871 if test -n "$MSGMERGE"; then
28872 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28873 $as_echo "$MSGMERGE" >&6; }
28875 { $as_echo "$as_me:$LINENO: result: no" >&5
28876 $as_echo "no" >&6; }
28880 test -n "$MSGMERGE" && break
28883 for ac_prog in xgettext
28885 # Extract the first word of "$ac_prog", so it can be a program name with args.
28886 set dummy $ac_prog; ac_word=$2
28887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28888 $as_echo_n "checking for $ac_word... " >&6; }
28889 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28890 $as_echo_n "(cached) " >&6
28892 if test -n "$XGETTEXT"; then
28893 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28896 for as_dir in $PATH
28899 test -z "$as_dir" && as_dir=.
28900 for ac_exec_ext in '' $ac_executable_extensions; do
28901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28902 ac_cv_prog_XGETTEXT="$ac_prog"
28903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28912 XGETTEXT=$ac_cv_prog_XGETTEXT
28913 if test -n "$XGETTEXT"; then
28914 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28915 $as_echo "$XGETTEXT" >&6; }
28917 { $as_echo "$as_me:$LINENO: result: no" >&5
28918 $as_echo "no" >&6; }
28922 test -n "$XGETTEXT" && break
28928 # Check for Tcl configuration script tclConfig.sh
28929 if test "$with_tcl" = yes; then
28930 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28932 # Extract the first word of "$ac_prog", so it can be a program name with args.
28933 set dummy $ac_prog; ac_word=$2
28934 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28935 $as_echo_n "checking for $ac_word... " >&6; }
28936 if test "${ac_cv_path_TCLSH+set}" = set; then
28937 $as_echo_n "(cached) " >&6
28941 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28945 for as_dir in $PATH
28948 test -z "$as_dir" && as_dir=.
28949 for ac_exec_ext in '' $ac_executable_extensions; do
28950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28951 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28962 TCLSH=$ac_cv_path_TCLSH
28963 if test -n "$TCLSH"; then
28964 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28965 $as_echo "$TCLSH" >&6; }
28967 { $as_echo "$as_me:$LINENO: result: no" >&5
28968 $as_echo "no" >&6; }
28972 test -n "$TCLSH" && break
28975 if test x"$TCLSH" = x""; then
28976 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28977 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28978 { (exit 1); exit 1; }; }
28981 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28982 $as_echo_n "checking for tclConfig.sh... " >&6; }
28983 # Let user override test
28984 if test -z "$TCL_CONFIG_SH"; then
28985 pgac_test_dirs="$with_tclconfig"
28987 set X $pgac_test_dirs; shift
28988 if test $# -eq 0; then
28989 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28990 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28991 { (exit 1); exit 1; }; }
28992 set X `echo 'puts $auto_path' | $TCLSH`; shift
28996 if test -r "$pgac_dir/tclConfig.sh"; then
28997 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29003 if test -z "$TCL_CONFIG_SH"; then
29004 { $as_echo "$as_me:$LINENO: result: no" >&5
29005 $as_echo "no" >&6; }
29006 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29007 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29008 { (exit 1); exit 1; }; }
29010 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29011 $as_echo "$TCL_CONFIG_SH" >&6; }
29017 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29018 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29019 eval TCL_LIBS=\"$TCL_LIBS\"
29020 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29021 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29023 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29024 ac_save_CPPFLAGS=$CPPFLAGS
29025 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29026 if test "${ac_cv_header_tcl_h+set}" = set; then
29027 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29028 $as_echo_n "checking for tcl.h... " >&6; }
29029 if test "${ac_cv_header_tcl_h+set}" = set; then
29030 $as_echo_n "(cached) " >&6
29032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29033 $as_echo "$ac_cv_header_tcl_h" >&6; }
29035 # Is the header compilable?
29036 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29037 $as_echo_n "checking tcl.h usability... " >&6; }
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29044 $ac_includes_default
29047 rm -f conftest.$ac_objext
29048 if { (ac_try="$ac_compile"
29049 case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29054 $as_echo "$ac_try_echo") >&5
29055 (eval "$ac_compile") 2>conftest.er1
29057 grep -v '^ *+' conftest.er1 >conftest.err
29059 cat conftest.err >&5
29060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); } && {
29062 test -z "$ac_c_werror_flag" ||
29063 test ! -s conftest.err
29064 } && test -s conftest.$ac_objext; then
29065 ac_header_compiler=yes
29067 $as_echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29070 ac_header_compiler=no
29073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29074 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29075 $as_echo "$ac_header_compiler" >&6; }
29077 # Is the header present?
29078 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29079 $as_echo_n "checking tcl.h presence... " >&6; }
29080 cat >conftest.$ac_ext <<_ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h. */
29088 if { (ac_try="$ac_cpp conftest.$ac_ext"
29089 case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29094 $as_echo "$ac_try_echo") >&5
29095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } >/dev/null && {
29102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29103 test ! -s conftest.err
29105 ac_header_preproc=yes
29107 $as_echo "$as_me: failed program was:" >&5
29108 sed 's/^/| /' conftest.$ac_ext >&5
29110 ac_header_preproc=no
29113 rm -f conftest.err conftest.$ac_ext
29114 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29115 $as_echo "$ac_header_preproc" >&6; }
29117 # So? What about this header?
29118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29120 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29121 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29122 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29123 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29124 ac_header_preproc=yes
29127 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29128 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29129 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29130 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29131 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29132 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29133 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29134 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29135 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29136 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29137 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29138 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29140 ## ---------------------------------------- ##
29141 ## Report this to pgsql-bugs@postgresql.org ##
29142 ## ---------------------------------------- ##
29144 ) | sed "s/^/$as_me: WARNING: /" >&2
29147 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29148 $as_echo_n "checking for tcl.h... " >&6; }
29149 if test "${ac_cv_header_tcl_h+set}" = set; then
29150 $as_echo_n "(cached) " >&6
29152 ac_cv_header_tcl_h=$ac_header_preproc
29154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29155 $as_echo "$ac_cv_header_tcl_h" >&6; }
29158 if test "x$ac_cv_header_tcl_h" = x""yes; then
29161 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29162 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29163 { (exit 1); exit 1; }; }
29167 CPPFLAGS=$ac_save_CPPFLAGS
29170 # check for <Python.h>
29171 if test "$with_python" = yes; then
29172 ac_save_CPPFLAGS=$CPPFLAGS
29173 CPPFLAGS="$python_includespec $CPPFLAGS"
29174 if test "${ac_cv_header_Python_h+set}" = set; then
29175 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29176 $as_echo_n "checking for Python.h... " >&6; }
29177 if test "${ac_cv_header_Python_h+set}" = set; then
29178 $as_echo_n "(cached) " >&6
29180 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29181 $as_echo "$ac_cv_header_Python_h" >&6; }
29183 # Is the header compilable?
29184 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29185 $as_echo_n "checking Python.h usability... " >&6; }
29186 cat >conftest.$ac_ext <<_ACEOF
29189 cat confdefs.h >>conftest.$ac_ext
29190 cat >>conftest.$ac_ext <<_ACEOF
29191 /* end confdefs.h. */
29192 $ac_includes_default
29193 #include <Python.h>
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29202 $as_echo "$ac_try_echo") >&5
29203 (eval "$ac_compile") 2>conftest.er1
29205 grep -v '^ *+' conftest.er1 >conftest.err
29207 cat conftest.err >&5
29208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); } && {
29210 test -z "$ac_c_werror_flag" ||
29211 test ! -s conftest.err
29212 } && test -s conftest.$ac_objext; then
29213 ac_header_compiler=yes
29215 $as_echo "$as_me: failed program was:" >&5
29216 sed 's/^/| /' conftest.$ac_ext >&5
29218 ac_header_compiler=no
29221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29223 $as_echo "$ac_header_compiler" >&6; }
29225 # Is the header present?
29226 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29227 $as_echo_n "checking Python.h presence... " >&6; }
29228 cat >conftest.$ac_ext <<_ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29234 #include <Python.h>
29236 if { (ac_try="$ac_cpp conftest.$ac_ext"
29237 case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29242 $as_echo "$ac_try_echo") >&5
29243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29245 grep -v '^ *+' conftest.er1 >conftest.err
29247 cat conftest.err >&5
29248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } >/dev/null && {
29250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29251 test ! -s conftest.err
29253 ac_header_preproc=yes
29255 $as_echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29258 ac_header_preproc=no
29261 rm -f conftest.err conftest.$ac_ext
29262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29263 $as_echo "$ac_header_preproc" >&6; }
29265 # So? What about this header?
29266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29268 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29269 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29270 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29271 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29272 ac_header_preproc=yes
29275 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29276 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29277 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29278 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29279 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29280 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29281 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29282 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29283 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29284 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29285 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29286 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29288 ## ---------------------------------------- ##
29289 ## Report this to pgsql-bugs@postgresql.org ##
29290 ## ---------------------------------------- ##
29292 ) | sed "s/^/$as_me: WARNING: /" >&2
29295 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29296 $as_echo_n "checking for Python.h... " >&6; }
29297 if test "${ac_cv_header_Python_h+set}" = set; then
29298 $as_echo_n "(cached) " >&6
29300 ac_cv_header_Python_h=$ac_header_preproc
29302 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29303 $as_echo "$ac_cv_header_Python_h" >&6; }
29306 if test "x$ac_cv_header_Python_h" = x""yes; then
29309 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29310 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29311 { (exit 1); exit 1; }; }
29315 CPPFLAGS=$ac_save_CPPFLAGS
29319 # Check for DocBook and tools
29321 for ac_prog in onsgmls nsgmls
29323 # Extract the first word of "$ac_prog", so it can be a program name with args.
29324 set dummy $ac_prog; ac_word=$2
29325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29326 $as_echo_n "checking for $ac_word... " >&6; }
29327 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29328 $as_echo_n "(cached) " >&6
29330 if test -n "$NSGMLS"; then
29331 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29334 for as_dir in $PATH
29337 test -z "$as_dir" && as_dir=.
29338 for ac_exec_ext in '' $ac_executable_extensions; do
29339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29340 ac_cv_prog_NSGMLS="$ac_prog"
29341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29350 NSGMLS=$ac_cv_prog_NSGMLS
29351 if test -n "$NSGMLS"; then
29352 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29353 $as_echo "$NSGMLS" >&6; }
29355 { $as_echo "$as_me:$LINENO: result: no" >&5
29356 $as_echo "no" >&6; }
29360 test -n "$NSGMLS" && break
29363 for ac_prog in openjade jade
29365 # Extract the first word of "$ac_prog", so it can be a program name with args.
29366 set dummy $ac_prog; ac_word=$2
29367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29368 $as_echo_n "checking for $ac_word... " >&6; }
29369 if test "${ac_cv_prog_JADE+set}" = set; then
29370 $as_echo_n "(cached) " >&6
29372 if test -n "$JADE"; then
29373 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29376 for as_dir in $PATH
29379 test -z "$as_dir" && as_dir=.
29380 for ac_exec_ext in '' $ac_executable_extensions; do
29381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29382 ac_cv_prog_JADE="$ac_prog"
29383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29392 JADE=$ac_cv_prog_JADE
29393 if test -n "$JADE"; then
29394 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29395 $as_echo "$JADE" >&6; }
29397 { $as_echo "$as_me:$LINENO: result: no" >&5
29398 $as_echo "no" >&6; }
29402 test -n "$JADE" && break
29406 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29407 $as_echo_n "checking for DocBook V4.2... " >&6; }
29408 if test "${pgac_cv_check_docbook+set}" = set; then
29409 $as_echo_n "(cached) " >&6
29411 cat >conftest.sgml <<EOF
29412 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29414 <title>test</title>
29416 <title>random</title>
29418 <title>testsect</title>
29425 pgac_cv_check_docbook=no
29427 if test -n "$NSGMLS"; then
29428 $NSGMLS -s conftest.sgml 1>&5 2>&1
29429 if test $? -eq 0; then
29430 pgac_cv_check_docbook=yes
29433 rm -f conftest.sgml
29435 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29436 $as_echo "$pgac_cv_check_docbook" >&6; }
29438 have_docbook=$pgac_cv_check_docbook
29441 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29442 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29443 if test "${pgac_cv_path_stylesheets+set}" = set; then
29444 $as_echo_n "(cached) " >&6
29446 if test -n "$DOCBOOKSTYLE"; then
29447 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29449 for pgac_prefix in /usr /usr/local /opt /sw; do
29450 for pgac_infix in share lib; do
29451 for pgac_postfix in \
29452 sgml/stylesheets/nwalsh-modular \
29453 sgml/stylesheets/docbook \
29454 sgml/stylesheets/dsssl/docbook \
29455 sgml/docbook-dsssl \
29456 sgml/docbook/dsssl/modular \
29457 sgml/docbook/stylesheet/dsssl/modular \
29458 sgml/docbook/dsssl-stylesheets \
29459 sgml/dsssl/docbook-dsssl-nwalsh
29461 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29462 if test -r "$pgac_candidate/html/docbook.dsl" \
29463 && test -r "$pgac_candidate/print/docbook.dsl"
29465 pgac_cv_path_stylesheets=$pgac_candidate
29474 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29476 if test -n "$DOCBOOKSTYLE"; then
29477 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29478 $as_echo "$DOCBOOKSTYLE" >&6; }
29480 { $as_echo "$as_me:$LINENO: result: no" >&5
29481 $as_echo "no" >&6; }
29483 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29484 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29487 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29488 set dummy collateindex.pl; ac_word=$2
29489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29490 $as_echo_n "checking for $ac_word... " >&6; }
29491 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29492 $as_echo_n "(cached) " >&6
29494 case $COLLATEINDEX in
29496 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29500 for as_dir in $PATH
29503 test -z "$as_dir" && as_dir=.
29504 for ac_exec_ext in '' $ac_executable_extensions; do
29505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29506 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29517 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29518 if test -n "$COLLATEINDEX"; then
29519 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29520 $as_echo "$COLLATEINDEX" >&6; }
29522 { $as_echo "$as_me:$LINENO: result: no" >&5
29523 $as_echo "no" >&6; }
29528 for ac_prog in xsltproc
29530 # Extract the first word of "$ac_prog", so it can be a program name with args.
29531 set dummy $ac_prog; ac_word=$2
29532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29533 $as_echo_n "checking for $ac_word... " >&6; }
29534 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29535 $as_echo_n "(cached) " >&6
29537 if test -n "$XSLTPROC"; then
29538 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29541 for as_dir in $PATH
29544 test -z "$as_dir" && as_dir=.
29545 for ac_exec_ext in '' $ac_executable_extensions; do
29546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29547 ac_cv_prog_XSLTPROC="$ac_prog"
29548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29557 XSLTPROC=$ac_cv_prog_XSLTPROC
29558 if test -n "$XSLTPROC"; then
29559 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29560 $as_echo "$XSLTPROC" >&6; }
29562 { $as_echo "$as_me:$LINENO: result: no" >&5
29563 $as_echo "no" >&6; }
29567 test -n "$XSLTPROC" && break
29570 for ac_prog in osx sgml2xml sx
29572 # Extract the first word of "$ac_prog", so it can be a program name with args.
29573 set dummy $ac_prog; ac_word=$2
29574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29575 $as_echo_n "checking for $ac_word... " >&6; }
29576 if test "${ac_cv_prog_OSX+set}" = set; then
29577 $as_echo_n "(cached) " >&6
29579 if test -n "$OSX"; then
29580 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29583 for as_dir in $PATH
29586 test -z "$as_dir" && as_dir=.
29587 for ac_exec_ext in '' $ac_executable_extensions; do
29588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29589 ac_cv_prog_OSX="$ac_prog"
29590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29599 OSX=$ac_cv_prog_OSX
29600 if test -n "$OSX"; then
29601 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29602 $as_echo "$OSX" >&6; }
29604 { $as_echo "$as_me:$LINENO: result: no" >&5
29605 $as_echo "no" >&6; }
29609 test -n "$OSX" && break
29615 # We have to run the thread test near the end so we have all our symbols
29616 # defined. Cross compiling throws a warning.
29618 if test "$enable_thread_safety" = yes; then
29619 if test "$PORTNAME" != "win32"
29621 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29622 $as_echo_n "checking thread safety of required library functions... " >&6; }
29626 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29627 LIBS="$LIBS $PTHREAD_LIBS"
29628 if test "$cross_compiling" = yes; then
29629 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29630 $as_echo "maybe" >&6; }
29631 { $as_echo "$as_me:$LINENO: WARNING:
29632 *** Skipping thread test program because of cross-compile build.
29633 *** Run the program in src/test/thread on the target machine.
29635 $as_echo "$as_me: WARNING:
29636 *** Skipping thread test program because of cross-compile build.
29637 *** Run the program in src/test/thread on the target machine.
29640 cat >conftest.$ac_ext <<_ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h. */
29646 #include "$srcdir/src/test/thread/thread_test.c"
29648 rm -f conftest$ac_exeext
29649 if { (ac_try="$ac_link"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29655 $as_echo "$ac_try_echo") >&5
29656 (eval "$ac_link") 2>&5
29658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29660 { (case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29665 $as_echo "$ac_try_echo") >&5
29666 (eval "$ac_try") 2>&5
29668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; }; then
29670 { $as_echo "$as_me:$LINENO: result: yes" >&5
29671 $as_echo "yes" >&6; }
29673 $as_echo "$as_me: program exited with status $ac_status" >&5
29674 $as_echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ( exit $ac_status )
29678 { $as_echo "$as_me:$LINENO: result: no" >&5
29679 $as_echo "no" >&6; }
29680 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29681 This platform is not thread-safe. Check the file 'config.log' or compile
29682 and run src/test/thread/thread_test for the exact reason.
29683 Use --disable-thread-safety to disable thread safety." >&5
29684 $as_echo "$as_me: error: thread test program failed
29685 This platform is not thread-safe. Check the file 'config.log' or compile
29686 and run src/test/thread/thread_test for the exact reason.
29687 Use --disable-thread-safety to disable thread safety." >&2;}
29688 { (exit 1); exit 1; }; }
29690 rm -rf conftest.dSYM
29691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29698 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29699 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29703 # If compiler will take -Wl,--as-needed (or various platform-specific
29704 # spellings thereof) then add that to LDFLAGS. This is much easier than
29705 # trying to filter LIBS to the minimum for each executable.
29706 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29707 # libreadline; therefore we postpone testing it until we know what library
29708 # dependencies readline has. The test code will try to link with $LIBS.
29709 if test "$with_readline" = yes; then
29710 link_test_func=readline
29712 link_test_func=exit
29715 if test "$PORTNAME" = "darwin"; then
29716 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29717 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29718 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29719 $as_echo_n "(cached) " >&6
29721 pgac_save_LDFLAGS=$LDFLAGS
29722 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29723 if test "$cross_compiling" = yes; then
29724 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29726 cat >conftest.$ac_ext <<_ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h. */
29732 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29741 rm -f conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29748 $as_echo "$ac_try_echo") >&5
29749 (eval "$ac_link") 2>&5
29751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29753 { (case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29758 $as_echo "$ac_try_echo") >&5
29759 (eval "$ac_try") 2>&5
29761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); }; }; then
29763 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29765 $as_echo "$as_me: program exited with status $ac_status" >&5
29766 $as_echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29769 ( exit $ac_status )
29770 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29772 rm -rf conftest.dSYM
29773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29777 LDFLAGS="$pgac_save_LDFLAGS"
29779 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29780 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29781 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29782 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29785 elif test "$PORTNAME" = "openbsd"; then
29786 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29787 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29788 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29789 $as_echo_n "(cached) " >&6
29791 pgac_save_LDFLAGS=$LDFLAGS
29792 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29793 if test "$cross_compiling" = yes; then
29794 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29796 cat >conftest.$ac_ext <<_ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h. */
29802 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29811 rm -f conftest$ac_exeext
29812 if { (ac_try="$ac_link"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29818 $as_echo "$ac_try_echo") >&5
29819 (eval "$ac_link") 2>&5
29821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29823 { (case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29828 $as_echo "$ac_try_echo") >&5
29829 (eval "$ac_try") 2>&5
29831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29835 $as_echo "$as_me: program exited with status $ac_status" >&5
29836 $as_echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29839 ( exit $ac_status )
29840 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29842 rm -rf conftest.dSYM
29843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29847 LDFLAGS="$pgac_save_LDFLAGS"
29849 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29850 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29851 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29852 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29856 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29857 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29858 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29859 $as_echo_n "(cached) " >&6
29861 pgac_save_LDFLAGS=$LDFLAGS
29862 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29863 if test "$cross_compiling" = yes; then
29864 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29866 cat >conftest.$ac_ext <<_ACEOF
29869 cat confdefs.h >>conftest.$ac_ext
29870 cat >>conftest.$ac_ext <<_ACEOF
29871 /* end confdefs.h. */
29872 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29881 rm -f conftest$ac_exeext
29882 if { (ac_try="$ac_link"
29883 case "(($ac_try" in
29884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885 *) ac_try_echo=$ac_try;;
29887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29888 $as_echo "$ac_try_echo") >&5
29889 (eval "$ac_link") 2>&5
29891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29893 { (case "(($ac_try" in
29894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29895 *) ac_try_echo=$ac_try;;
29897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29898 $as_echo "$ac_try_echo") >&5
29899 (eval "$ac_try") 2>&5
29901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; }; then
29903 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29905 $as_echo "$as_me: program exited with status $ac_status" >&5
29906 $as_echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29909 ( exit $ac_status )
29910 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29912 rm -rf conftest.dSYM
29913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29917 LDFLAGS="$pgac_save_LDFLAGS"
29919 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29920 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29921 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29922 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29927 # Create compiler version string
29928 if test x"$GCC" = x"yes" ; then
29929 cc_string=`${CC} --version | sed q`
29930 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29931 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29932 cc_string=`${CC} -V 2>&1 | sed q`
29938 cat >>confdefs.h <<_ACEOF
29939 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29943 # Supply a numeric version string for use by 3rd party add-ons
29944 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29945 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29947 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29949 cat >>confdefs.h <<_ACEOF
29950 #define PG_VERSION_NUM $PG_VERSION_NUM
29955 # Begin output steps
29957 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29958 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29959 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29960 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29961 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29962 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29963 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29964 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29966 # prepare build tree if outside source tree
29967 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29968 # Note 2: /bin/pwd might be better than shell's built-in at getting
29969 # a symlink-free name.
29970 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29974 if test "$no_create" != yes; then
29975 $as_echo_n "preparing build tree... " >&6
29976 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29977 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29978 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29979 $as_echo "$as_me: error: failed" >&2;}
29980 { (exit 1); exit 1; }; }
29981 { $as_echo "$as_me:$LINENO: result: done" >&5
29982 $as_echo "done" >&6; }
29988 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29991 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}"
29994 if test "$PORTNAME" = "win32"; then
29995 ac_config_commands="$ac_config_commands check_win32_symlinks"
29999 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30002 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30005 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30008 cat >confcache <<\_ACEOF
30009 # This file is a shell script that caches the results of configure
30010 # tests run on this system so they can be shared between configure
30011 # scripts and configure runs, see configure's option --config-cache.
30012 # It is not useful on other systems. If it contains results you don't
30013 # want to keep, you may remove or edit it.
30015 # config.status only pays attention to the cache file if you give it
30016 # the --recheck option to rerun configure.
30018 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30020 # following values.
30024 # The following way of writing the cache mishandles newlines in values,
30025 # but we know of no workaround that is simple, portable, and efficient.
30026 # So, we kill variables containing newlines.
30027 # Ultrix sh set writes to stderr and can't be redirected directly,
30028 # and sets the high bit in the cache file unless we assign to the vars.
30030 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30031 eval ac_val=\$$ac_var
30035 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30039 _ | IFS | as_nl) ;; #(
30040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30041 *) $as_unset $ac_var ;;
30047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30048 *${as_nl}ac_space=\ *)
30049 # `set' does not quote correctly, so add quotes (double-quote
30050 # substitution turns \\\\ into \\, and sed turns \\ into \).
30053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30056 # `set' quotes correctly as required by POSIX, so do not add quotes.
30057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30071 if test -w "$cache_file"; then
30072 test "x$cache_file" != "x/dev/null" &&
30073 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30074 $as_echo "$as_me: updating cache $cache_file" >&6;}
30075 cat confcache >$cache_file
30077 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30084 # Let make expand exec_prefix.
30085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30087 DEFS=-DHAVE_CONFIG_H
30091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30092 # 1. Remove the extension, and $U if already installed.
30093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30094 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30096 # will be set to the directory where LIBOBJS objects are built.
30097 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30098 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30100 LIBOBJS=$ac_libobjs
30102 LTLIBOBJS=$ac_ltlibobjs
30107 : ${CONFIG_STATUS=./config.status}
30109 ac_clean_files_save=$ac_clean_files
30110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30111 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30112 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30113 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30115 # Generated by $as_me.
30116 # Run this file to recreate the current configuration.
30117 # Compiler output produced by configure, useful for debugging
30118 # configure, is in config.log if it exists.
30121 ac_cs_recheck=false
30123 SHELL=\${CONFIG_SHELL-$SHELL}
30126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30127 ## --------------------- ##
30128 ## M4sh Initialization. ##
30129 ## --------------------- ##
30131 # Be more Bourne compatible
30132 DUALCASE=1; export DUALCASE # for MKS sh
30133 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30136 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30137 # is contrary to our usage. Disable this feature.
30138 alias -g '${1+"$@"}'='"$@"'
30139 setopt NO_GLOB_SUBST
30141 case `(set -o) 2>/dev/null` in
30142 *posix*) set -o posix ;;
30151 # Avoid depending upon Character Ranges.
30152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30155 as_cr_digits='0123456789'
30156 as_cr_alnum=$as_cr_Letters$as_cr_digits
30161 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30162 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30165 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30166 as_echo='printf %s\n'
30167 as_echo_n='printf %s'
30169 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30170 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30171 as_echo_n='/usr/ucb/echo -n'
30173 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30174 as_echo_n_body='eval
30178 expr "X$arg" : "X\\(.*\\)$as_nl";
30179 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30181 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30183 export as_echo_n_body
30184 as_echo_n='sh -c $as_echo_n_body as_echo'
30186 export as_echo_body
30187 as_echo='sh -c $as_echo_body as_echo'
30190 # The user is always right.
30191 if test "${PATH_SEPARATOR+set}" != set; then
30193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30199 # Support unset when possible.
30200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30208 # We need space, tab and new line, in precisely that order. Quoting is
30209 # there to prevent editors from complaining about space-tab.
30210 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30211 # splitting by setting IFS to empty value.)
30214 # Find who we are. Look in the path if we contain no directory separator.
30216 *[\\/]* ) as_myself=$0 ;;
30217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30218 for as_dir in $PATH
30221 test -z "$as_dir" && as_dir=.
30222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30228 # We did not find ourselves, most probably we were run as `sh COMMAND'
30229 # in which case we are not to be found in the path.
30230 if test "x$as_myself" = x; then
30233 if test ! -f "$as_myself"; then
30234 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30235 { (exit 1); exit 1; }
30238 # Work around bugs in pre-3.0 UWIN ksh.
30239 for as_var in ENV MAIL MAILPATH
30240 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30252 # Required to use basename.
30253 if expr a : '\(a\)' >/dev/null 2>&1 &&
30254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30261 as_basename=basename
30267 # Name of the executable.
30268 as_me=`$as_basename -- "$0" ||
30269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30270 X"$0" : 'X\(//\)$' \| \
30271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30273 sed '/^.*\/\([^/][^/]*\)\/*$/{
30292 as_lineno_1=$LINENO
30293 as_lineno_2=$LINENO
30294 test "x$as_lineno_1" != "x$as_lineno_2" &&
30295 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30297 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30298 # uniformly replaced by the line number. The first 'sed' inserts a
30299 # line-number line after each line using $LINENO; the second 'sed'
30300 # does the real work. The second script uses 'N' to pair each
30301 # line-number line with the line containing $LINENO, and appends
30302 # trailing '-' during substitution so that $LINENO is not a special
30303 # case at line end.
30304 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30305 # scripts with optimization help from Paolo Bonzini. Blame Lee
30306 # E. McMahon (1931-1989) for sed's syntax. :-)
30318 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30321 ' >$as_me.lineno &&
30322 chmod +x "$as_me.lineno" ||
30323 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30324 { (exit 1); exit 1; }; }
30326 # Don't try to exec as it changes $[0], causing all sort of problems
30327 # (the dirname of $[0] is not the place where we might find the
30328 # original and so on. Autoconf is especially sensitive to this).
30329 . "./$as_me.lineno"
30330 # Exit status is that of the last command.
30335 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30341 ECHO_C= ECHO_N= ECHO_T=
30342 case `echo -n x` in
30344 case `echo 'x\c'` in
30345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30351 if expr a : '\(a\)' >/dev/null 2>&1 &&
30352 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30358 rm -f conf$$ conf$$.exe conf$$.file
30359 if test -d conf$$.dir; then
30360 rm -f conf$$.dir/conf$$.file
30363 mkdir conf$$.dir 2>/dev/null
30365 if (echo >conf$$.file) 2>/dev/null; then
30366 if ln -s conf$$.file conf$$ 2>/dev/null; then
30368 # ... but there are two gotchas:
30369 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30370 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30371 # In both cases, we have to default to `cp -p'.
30372 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30374 elif ln conf$$.file conf$$ 2>/dev/null; then
30382 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30383 rmdir conf$$.dir 2>/dev/null
30385 if mkdir -p . 2>/dev/null; then
30388 test -d ./-p && rmdir ./-p
30392 if test -x / >/dev/null 2>&1; then
30393 as_test_x='test -x'
30395 if ls -dL / >/dev/null 2>&1; then
30402 if test -d "$1"; then
30408 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30409 ???[sx]*):;;*)false;;esac;fi
30413 as_executable_p=$as_test_x
30415 # Sed expression to map a string onto a valid CPP name.
30416 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30418 # Sed expression to map a string onto a valid variable name.
30419 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30424 # Save the log message, to keep $[0] and so on meaningful, and to
30425 # report actual input values of CONFIG_FILES etc. instead of their
30426 # values after options handling.
30428 This file was extended by PostgreSQL $as_me 9.3devel, which was
30429 generated by GNU Autoconf 2.63. Invocation command line was
30431 CONFIG_FILES = $CONFIG_FILES
30432 CONFIG_HEADERS = $CONFIG_HEADERS
30433 CONFIG_LINKS = $CONFIG_LINKS
30434 CONFIG_COMMANDS = $CONFIG_COMMANDS
30437 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30442 case $ac_config_files in *"
30443 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30446 case $ac_config_headers in *"
30447 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30452 # Files that config.status was made for.
30453 config_files="$ac_config_files"
30454 config_headers="$ac_config_headers"
30455 config_links="$ac_config_links"
30456 config_commands="$ac_config_commands"
30460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30462 \`$as_me' instantiates files from templates according to the
30463 current configuration.
30465 Usage: $0 [OPTION]... [FILE]...
30467 -h, --help print this help, then exit
30468 -V, --version print version number and configuration settings, then exit
30469 -q, --quiet, --silent
30470 do not print progress messages
30471 -d, --debug don't remove temporary files
30472 --recheck update $as_me by reconfiguring in the same conditions
30473 --file=FILE[:TEMPLATE]
30474 instantiate the configuration file FILE
30475 --header=FILE[:TEMPLATE]
30476 instantiate the configuration header FILE
30478 Configuration files:
30481 Configuration headers:
30484 Configuration links:
30487 Configuration commands:
30490 Report bugs to <bug-autoconf@gnu.org>."
30493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30495 PostgreSQL config.status 9.3devel
30496 configured by $0, generated by GNU Autoconf 2.63,
30497 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30499 Copyright (C) 2008 Free Software Foundation, Inc.
30500 This config.status script is free software; the Free Software Foundation
30501 gives unlimited permission to copy, distribute and modify it."
30508 test -n "\$AWK" || AWK=awk
30511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30512 # The default lists apply if the user does not specify any file.
30518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30530 # Handling of the options.
30531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30534 $as_echo "$ac_cs_version"; exit ;;
30535 --debug | --debu | --deb | --de | --d | -d )
30537 --file | --fil | --fi | --f )
30540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30542 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30543 ac_need_defaults=false;;
30544 --header | --heade | --head | --hea )
30547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30549 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30550 ac_need_defaults=false;;
30552 # Conflict between --help and --header
30553 { $as_echo "$as_me: error: ambiguous option: $1
30554 Try \`$0 --help' for more information." >&2
30555 { (exit 1); exit 1; }; };;
30556 --help | --hel | -h )
30557 $as_echo "$ac_cs_usage"; exit ;;
30558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30562 # This is an error.
30563 -*) { $as_echo "$as_me: error: unrecognized option: $1
30564 Try \`$0 --help' for more information." >&2
30565 { (exit 1); exit 1; }; } ;;
30567 *) ac_config_targets="$ac_config_targets $1"
30568 ac_need_defaults=false ;;
30574 ac_configure_extra_args=
30576 if $ac_cs_silent; then
30578 ac_configure_extra_args="$ac_configure_extra_args --silent"
30582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30583 if \$ac_cs_recheck; then
30584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30587 CONFIG_SHELL='$SHELL'
30588 export CONFIG_SHELL
30593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30598 ## Running $as_me. ##
30604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30609 # Handling of arguments.
30610 for ac_config_target in $ac_config_targets
30612 case $ac_config_target in
30613 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30614 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30615 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30616 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30617 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30618 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30619 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30620 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30621 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30622 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30623 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30624 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30625 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
30626 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30628 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30629 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30630 { (exit 1); exit 1; }; };;
30635 # If the user did not use the arguments to specify the items to instantiate,
30636 # then the envvar interface is used. Set only those that are not.
30637 # We use the long form for the default assignment because of an extremely
30638 # bizarre bug on SunOS 4.1.3.
30639 if $ac_need_defaults; then
30640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30642 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30646 # Have a temporary directory for convenience. Make it in the build tree
30647 # simply because there is no reason against having it here, and in addition,
30648 # creating and moving files from /tmp can sometimes cause problems.
30649 # Hook for its removal unless debugging.
30650 # Note that there is a small window in which the directory will not be cleaned:
30651 # after its creation but before its name has been assigned to `$tmp'.
30655 trap 'exit_status=$?
30656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30658 trap '{ (exit 1); exit 1; }' 1 2 13 15
30660 # Create a (secure) tmp directory for tmp files.
30663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30664 test -n "$tmp" && test -d "$tmp"
30667 tmp=./conf$$-$RANDOM
30668 (umask 077 && mkdir "$tmp")
30671 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30672 { (exit 1); exit 1; }
30675 # Set up the scripts for CONFIG_FILES section.
30676 # No need to generate them if there are no CONFIG_FILES.
30677 # This happens for instance with `./config.status config.h'.
30678 if test -n "$CONFIG_FILES"; then
30682 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30686 ac_cs_awk_cr=$ac_cr
30689 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30694 echo "cat >conf$$subs.awk <<_ACEOF" &&
30695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30697 } >conf$$subs.sh ||
30698 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30699 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30700 { (exit 1); exit 1; }; }
30701 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30703 for ac_last_try in false false false false false :; do
30704 . ./conf$$subs.sh ||
30705 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30706 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30707 { (exit 1); exit 1; }; }
30709 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30710 if test $ac_delim_n = $ac_delim_num; then
30712 elif $ac_last_try; then
30713 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30714 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30715 { (exit 1); exit 1; }; }
30717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30720 rm -f conf$$subs.sh
30722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30723 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30727 s/^/S["/; s/!.*/"]=/
30737 s/\(.\{148\}\).*/\1/
30739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30751 s/\(.\{148\}\).*/\1/
30753 s/["\\]/\\&/g; s/^/"/; s/$/"/
30757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30762 ' <conf$$subs.awk | sed '
30767 ' >>$CONFIG_STATUS || ac_write_fail=1
30768 rm -f conf$$subs.awk
30769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30771 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30772 for (key in S) S_is_set[key] = 1
30778 nfields = split(line, field, "@")
30780 len = length(field[1])
30781 for (i = 2; i < nfields; i++) {
30783 keylen = length(key)
30784 if (S_is_set[key]) {
30786 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30787 len += length(value) + length(field[++i])
30798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30800 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30803 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30804 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30805 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30806 { (exit 1); exit 1; }; }
30809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30811 # trailing colons and then remove the whole line if VPATH becomes empty
30812 # (actually we leave an empty line to preserve line numbers).
30813 if test "x$srcdir" = x.; then
30814 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30815 s/:*\$(srcdir):*/:/
30816 s/:*\${srcdir}:*/:/
30818 s/^\([^=]*=[ ]*\):*/\1/
30824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30825 fi # test -n "$CONFIG_FILES"
30827 # Set up the scripts for CONFIG_HEADERS section.
30828 # No need to generate them if there are no CONFIG_HEADERS.
30829 # This happens for instance with `./config.status Makefile'.
30830 if test -n "$CONFIG_HEADERS"; then
30831 cat >"$tmp/defines.awk" <<\_ACAWK ||
30835 # Transform confdefs.h into an awk script `defines.awk', embedded as
30836 # here-document in config.status, that substitutes the proper values into
30837 # config.h.in to produce config.h.
30839 # Create a delimiter string that does not exist in confdefs.h, to ease
30840 # handling of long lines.
30842 for ac_last_try in false false :; do
30843 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30844 if test -z "$ac_t"; then
30846 elif $ac_last_try; then
30847 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30848 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30849 { (exit 1); exit 1; }; }
30851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30855 # For the awk script, D is an array of macro values keyed by name,
30856 # likewise P contains macro parameters if any. Preserve backslash
30857 # newline sequences.
30859 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30861 s/.\{148\}/&'"$ac_delim"'/g
30864 s/^[ ]*#[ ]*define[ ][ ]*/ /
30871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30873 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30878 D["\1"]=" \3\\\\\\n"\\/p
30880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30885 s/.\{148\}/&'"$ac_delim"'/g
30890 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30893 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30895 ' <confdefs.h | sed '
30896 s/'"$ac_delim"'/"\\\
30897 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30900 for (key in D) D_is_set[key] = 1
30903 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30905 split(line, arg, " ")
30906 if (arg[1] == "#") {
30910 defundef = substr(arg[1], 2)
30913 split(mac1, mac2, "(") #)
30915 prefix = substr(line, 1, index(line, defundef) - 1)
30916 if (D_is_set[macro]) {
30917 # Preserve the white space surrounding the "#".
30918 print prefix "define", macro P[macro] D[macro]
30921 # Replace #undef with comments. This is necessary, for example,
30922 # in the case of _POSIX_SOURCE, which is predefined and required
30923 # on some systems where configure will not decide to define it.
30924 if (defundef == "undef") {
30925 print "/*", prefix defundef, macro, "*/"
30933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30934 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30935 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30936 { (exit 1); exit 1; }; }
30937 fi # test -n "$CONFIG_HEADERS"
30940 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30945 :[FHLC]) ac_mode=$ac_tag; continue;;
30947 case $ac_mode$ac_tag in
30949 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30950 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30951 { (exit 1); exit 1; }; };;
30952 :[FH]-) ac_tag=-:-;;
30953 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30970 -) ac_f="$tmp/stdin";;
30971 *) # Look for the file first in the build tree, then in the source tree
30972 # (if the path is not absolute). The absolute path cannot be DOS-style,
30973 # because $ac_f cannot contain `:'.
30977 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30979 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30980 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30981 { (exit 1); exit 1; }; };;
30983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30984 ac_file_inputs="$ac_file_inputs '$ac_f'"
30987 # Let's still pretend it is `configure' which instantiates (i.e., don't
30988 # use $as_me), people would be surprised to read:
30989 # /* config.h. Generated by config.status. */
30990 configure_input='Generated from '`
30991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30993 if test x"$ac_file" != x-; then
30994 configure_input="$ac_file. $configure_input"
30995 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30996 $as_echo "$as_me: creating $ac_file" >&6;}
30998 # Neutralize special characters interpreted by sed in replacement strings.
30999 case $configure_input in #(
31000 *\&* | *\|* | *\\* )
31001 ac_sed_conf_input=`$as_echo "$configure_input" |
31002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31003 *) ac_sed_conf_input=$configure_input;;
31007 *:-:* | *:-) cat >"$tmp/stdin" \
31008 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31009 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31010 { (exit 1); exit 1; }; } ;;
31015 ac_dir=`$as_dirname -- "$ac_file" ||
31016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31017 X"$ac_file" : 'X\(//\)[^/]' \| \
31018 X"$ac_file" : 'X\(//\)$' \| \
31019 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31020 $as_echo X"$ac_file" |
31021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31025 /^X\(\/\/\)[^/].*/{
31040 -*) as_dir=./$as_dir;;
31042 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31047 *) as_qdir=$as_dir;;
31049 as_dirs="'$as_qdir' $as_dirs"
31050 as_dir=`$as_dirname -- "$as_dir" ||
31051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31052 X"$as_dir" : 'X\(//\)[^/]' \| \
31053 X"$as_dir" : 'X\(//\)$' \| \
31054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31055 $as_echo X"$as_dir" |
31056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31060 /^X\(\/\/\)[^/].*/{
31073 test -d "$as_dir" && break
31075 test -z "$as_dirs" || eval "mkdir $as_dirs"
31076 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31077 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31078 { (exit 1); exit 1; }; }; }
31082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31084 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31085 # A ".." for each directory in $ac_dir_suffix.
31086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31087 case $ac_top_builddir_sub in
31088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31092 ac_abs_top_builddir=$ac_pwd
31093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31094 # for backward compatibility:
31095 ac_top_builddir=$ac_top_build_prefix
31098 .) # We are building in place.
31100 ac_top_srcdir=$ac_top_builddir_sub
31101 ac_abs_top_srcdir=$ac_pwd ;;
31102 [\\/]* | ?:[\\/]* ) # Absolute name.
31103 ac_srcdir=$srcdir$ac_dir_suffix;
31104 ac_top_srcdir=$srcdir
31105 ac_abs_top_srcdir=$srcdir ;;
31106 *) # Relative name.
31107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31108 ac_top_srcdir=$ac_top_build_prefix$srcdir
31109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31121 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31122 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31124 ac_MKDIR_P=$MKDIR_P
31126 [\\/$]* | ?:[\\/]* ) ;;
31127 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31132 # If the template does not know about datarootdir, expand it.
31133 # FIXME: This hack should be removed a few years after 2.60.
31134 ac_datarootdir_hack=; ac_datarootdir_seen=
31147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31148 *datarootdir*) ac_datarootdir_seen=yes;;
31149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31150 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31154 ac_datarootdir_hack='
31155 s&@datadir@&$datadir&g
31156 s&@docdir@&$docdir&g
31157 s&@infodir@&$infodir&g
31158 s&@localedir@&$localedir&g
31159 s&@mandir@&$mandir&g
31160 s&\\\${datarootdir}&$datarootdir&g' ;;
31164 # Neutralize VPATH when `$srcdir' = `.'.
31165 # Shell code in configure.ac might set extrasub.
31166 # FIXME: do we really want to maintain this feature?
31167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31168 ac_sed_extra="$ac_vpsub
31171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31174 s|@configure_input@|$ac_sed_conf_input|;t t
31175 s&@top_builddir@&$ac_top_builddir_sub&;t t
31176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31177 s&@srcdir@&$ac_srcdir&;t t
31178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31179 s&@top_srcdir@&$ac_top_srcdir&;t t
31180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31181 s&@builddir@&$ac_builddir&;t t
31182 s&@abs_builddir@&$ac_abs_builddir&;t t
31183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31184 s&@INSTALL@&$ac_INSTALL&;t t
31185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31186 $ac_datarootdir_hack
31188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31189 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31190 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31191 { (exit 1); exit 1; }; }
31193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31194 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31196 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31197 which seems to be undefined. Please make sure it is defined." >&5
31198 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31199 which seems to be undefined. Please make sure it is defined." >&2;}
31203 -) cat "$tmp/out" && rm -f "$tmp/out";;
31204 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31206 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31207 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31208 { (exit 1); exit 1; }; }
31214 if test x"$ac_file" != x-; then
31216 $as_echo "/* $configure_input */" \
31217 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31218 } >"$tmp/config.h" \
31219 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31220 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31221 { (exit 1); exit 1; }; }
31222 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31223 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31224 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31227 mv "$tmp/config.h" "$ac_file" \
31228 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31229 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31230 { (exit 1); exit 1; }; }
31233 $as_echo "/* $configure_input */" \
31234 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31235 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31236 $as_echo "$as_me: error: could not create -" >&2;}
31237 { (exit 1); exit 1; }; }
31245 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31248 # Prefer the file from the source tree if names are identical.
31249 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31250 ac_source=$srcdir/$ac_source
31253 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31254 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31256 if test ! -r "$ac_source"; then
31257 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31258 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31259 { (exit 1); exit 1; }; }
31263 # Try a relative symlink, then a hard link, then a copy.
31265 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31266 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31268 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31269 ln "$ac_source" "$ac_file" 2>/dev/null ||
31270 cp -p "$ac_source" "$ac_file" ||
31271 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31272 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31273 { (exit 1); exit 1; }; }
31276 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31277 $as_echo "$as_me: executing $ac_file commands" >&6;}
31282 case $ac_file$ac_mode in
31283 "check_win32_symlinks":C)
31284 # Links sometimes fail undetected on Mingw -
31285 # so here we detect it and warn the user
31286 for FILE in $CONFIG_LINKS
31288 # test -e works for symlinks in the MinGW console
31289 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31290 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31293 "src/include/pg_config.h":H)
31294 # Update timestamp for pg_config.h (see Makefile.global)
31295 echo >src/include/stamp-h
31297 "src/include/pg_config_ext.h":H)
31298 # Update timestamp for pg_config_ext.h (see Makefile.global)
31299 echo >src/include/stamp-ext-h
31301 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31307 { (exit 0); exit 0; }
31309 chmod +x $CONFIG_STATUS
31310 ac_clean_files=$ac_clean_files_save
31312 test $ac_write_fail = 0 ||
31313 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31314 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31315 { (exit 1); exit 1; }; }
31318 # configure is writing to config.log, and then calls config.status.
31319 # config.status does its own redirection, appending to config.log.
31320 # Unfortunately, on DOS this fails, as config.log is still kept open
31321 # by configure, so config.status won't be able to write to it; its
31322 # output is simply discarded. So we exec the FD to /dev/null,
31323 # effectively closing config.log, so it can be properly (re)opened and
31324 # appended to by config.status. When coming back to configure, we
31325 # need to make the FD available again.
31326 if test "$no_create" != yes; then
31328 ac_config_status_args=
31329 test "$silent" = yes &&
31330 ac_config_status_args="$ac_config_status_args --quiet"
31332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31335 # would make configure fail if this is the last instruction.
31336 $ac_cs_success || { (exit 1); exit 1; }
31338 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31339 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31340 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}