2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2013, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
643 ac_subst_vars='LTLIBOBJS
676 python_additional_libs
792 program_transform_name
804 enable_option_checking
809 enable_integer_datetimes
839 with_libedit_preferred
850 ac_precious_vars='build_alias
864 # Initialize some variables set by options.
866 ac_init_version=false
867 ac_unrecognized_opts=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name=s,x,x,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971 { (exit 1); exit 1; }; }
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 htmldir=$ac_optarg ;;
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1053 -libdir | --libdir | --libdi | --libd)
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1144 -psdir | --psdir | --psdi | --psd | --ps)
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1172 -site=* | --site=* | --sit=*)
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=no ;;
1233 # Obsolete; use --with-x.
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-integer-datetimes
1488 disable 64-bit integer date/time support
1489 --enable-nls[=LANGUAGES]
1490 enable Native Language Support
1491 --disable-rpath do not embed shared library search path in
1493 --disable-spinlocks do not use spinlocks
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-depend turn on automatic dependency tracking
1499 --enable-cassert enable assertion checks (for debugging)
1500 --disable-thread-safety disable thread-safety in client libraries
1501 --disable-largefile omit support for large files
1502 --disable-float4-byval disable float4 passed by value
1503 --disable-float8-byval disable float8 passed by value
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-template=NAME override operating system template
1509 --with-includes=DIRS look for additional header files in DIRS
1510 --with-libraries=DIRS look for additional libraries in DIRS
1511 --with-libs=DIRS alternative spelling of --with-libraries
1512 --with-pgport=PORTNUM set default port number [5432]
1513 --with-blocksize=BLOCKSIZE
1514 set table block size in kB [8]
1515 --with-segsize=SEGSIZE set table segment size in GB [1]
1516 --with-wal-blocksize=BLOCKSIZE
1517 set WAL block size in kB [8]
1518 --with-wal-segsize=SEGSIZE
1519 set WAL segment size in MB [16]
1520 --with-CC=CMD set compiler (deprecated)
1521 --with-tcl build Tcl modules (PL/Tcl)
1522 --with-tclconfig=DIR tclConfig.sh is in DIR
1523 --with-perl build Perl modules (PL/Perl)
1524 --with-python build Python modules (PL/Python)
1525 --with-gssapi build with GSSAPI support
1526 --with-krb5 build with Kerberos 5 support
1527 --with-krb-srvnam=NAME default service principal name in Kerberos
1529 --with-pam build with PAM support
1530 --with-ldap build with LDAP support
1531 --with-bonjour build with Bonjour support
1532 --with-openssl build with OpenSSL support
1533 --with-selinux build with SELinux support
1534 --without-readline do not use GNU Readline nor BSD Libedit for editing
1535 --with-libedit-preferred
1536 prefer BSD Libedit over GNU Readline
1537 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1538 --with-libxml build with XML support
1539 --with-libxslt use XSLT support when building contrib/xml2
1540 --with-system-tzdata=DIR
1541 use system time zone data in DIR
1542 --without-zlib do not use Zlib
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 LDFLAGS_EX extra linker flags for linking executables only
1555 LDFLAGS_SL extra linker flags for linking shared libraries only
1557 location of DocBook stylesheets
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1592 .) # We are building in place.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1625 PostgreSQL configure 9.3devel
1626 generated by GNU Autoconf 2.63
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1633 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by PostgreSQL $as_me 9.3devel, which was
1642 generated by GNU Autoconf 2.63. Invocation command line was
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1664 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_must_keep_next=false
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 -* ) ac_must_keep_next=true ;;
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 $as_echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 $as_echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 for ac_dir in config "$srcdir"/config; do
2015 if test -f "$ac_dir/install-sh"; then
2017 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 elif test -f "$ac_dir/install.sh"; then
2021 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 elif test -f "$ac_dir/shtool"; then
2025 ac_install_sh="$ac_aux_dir/shtool install -c"
2029 if test -z "$ac_aux_dir"; then
2030 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032 { (exit 1); exit 1; }; }
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 configure_args=$ac_configure_args
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065 { (exit 1); exit 1; }; }
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070 $as_echo_n "(cached) " >&6
2072 ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078 { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091 { (exit 1); exit 1; }; };;
2094 ac_save_IFS=$IFS; IFS='-'
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110 $as_echo_n "(cached) " >&6
2112 if test "x$host_alias" = x; then
2113 ac_cv_host=$ac_cv_build
2115 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128 { (exit 1); exit 1; }; };;
2131 ac_save_IFS=$IFS; IFS='-'
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154 withval=$with_template;
2157 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159 { (exit 1); exit 1; }; }
2162 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164 { (exit 1); exit 1; }; }
2169 list) echo; ls "$srcdir/src/template"; exit;;
2170 *) if test -f "$srcdir/src/template/$with_template" ; then
2173 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175 { (exit 1); exit 1; }; }
2184 # --with-template not given
2187 aix*) template=aix ;;
2188 cygwin*) template=cygwin ;;
2189 darwin*) template=darwin ;;
2190 dragonfly*) template=netbsd ;;
2191 freebsd*) template=freebsd ;;
2192 hpux*) template=hpux ;;
2193 irix*) template=irix ;;
2194 linux*|gnu*|k*bsd*-gnu)
2196 mingw*) template=win32 ;;
2197 netbsd*) template=netbsd ;;
2198 openbsd*) template=openbsd ;;
2199 osf*) template=osf ;;
2200 sco*) template=sco ;;
2201 solaris*) template=solaris ;;
2202 sysv5*) template=unixware ;;
2205 if test x"$template" = x"" ; then
2206 { { $as_echo "$as_me:$LINENO: error:
2207 *******************************************************************
2208 PostgreSQL has apparently not been ported to your platform yet.
2209 To try a manual configuration, look into the src/template directory
2210 for a similar platform and use the '--with-template=' option.
2212 Please also contact <pgsql-bugs@postgresql.org> to see about
2213 rectifying this. Include the above 'checking host system type...'
2215 *******************************************************************
2217 $as_echo "$as_me: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this. Include the above 'checking host system type...'
2226 *******************************************************************
2228 { (exit 1); exit 1; }; }
2236 { $as_echo "$as_me:$LINENO: result: $template" >&5
2237 $as_echo "$template" >&6; }
2242 # Initialize default assumption that we do not need separate assembly code
2243 # for TAS (test-and-set). This can be overridden by the template file
2244 # when it's executed.
2251 ## Command line options
2255 # Add non-standard directories to the include path
2260 # Check whether --with-includes was given.
2261 if test "${with_includes+set}" = set; then
2262 withval=$with_includes;
2265 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2266 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2267 { (exit 1); exit 1; }; }
2270 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2271 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2272 { (exit 1); exit 1; }; }
2285 # Add non-standard directories to the library search path
2290 # Check whether --with-libraries was given.
2291 if test "${with_libraries+set}" = set; then
2292 withval=$with_libraries;
2295 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2296 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2297 { (exit 1); exit 1; }; }
2300 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2301 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2302 { (exit 1); exit 1; }; }
2305 LIBRARY_DIRS=$withval
2316 # Check whether --with-libs was given.
2317 if test "${with_libs+set}" = set; then
2321 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2322 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2323 { (exit 1); exit 1; }; }
2326 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2327 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2328 { (exit 1); exit 1; }; }
2331 LIBRARY_DIRS=$withval
2341 # 64-bit integer date/time storage: enabled by default.
2343 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2344 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2347 # Check whether --enable-integer-datetimes was given.
2348 if test "${enable_integer_datetimes+set}" = set; then
2349 enableval=$enable_integer_datetimes;
2353 cat >>confdefs.h <<\_ACEOF
2354 #define USE_INTEGER_DATETIMES 1
2362 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2363 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2364 { (exit 1); exit 1; }; }
2369 enable_integer_datetimes=yes
2371 cat >>confdefs.h <<\_ACEOF
2372 #define USE_INTEGER_DATETIMES 1
2378 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2379 $as_echo "$enable_integer_datetimes" >&6; }
2385 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2386 $as_echo_n "checking whether NLS is wanted... " >&6; }
2389 # Check whether --enable-nls was given.
2390 if test "${enable_nls+set}" = set; then
2391 enableval=$enable_nls;
2401 WANTED_LANGUAGES=$enableval
2411 if test "$enable_nls" = yes; then
2413 cat >>confdefs.h <<\_ACEOF
2414 #define ENABLE_NLS 1
2419 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2420 $as_echo "$enable_nls" >&6; }
2425 # Default port number (--with-pgport), default 5432
2427 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2428 $as_echo_n "checking for default port number... " >&6; }
2432 # Check whether --with-pgport was given.
2433 if test "${with_pgport+set}" = set; then
2434 withval=$with_pgport;
2437 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2438 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2439 { (exit 1); exit 1; }; }
2442 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2443 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2444 { (exit 1); exit 1; }; }
2447 default_port=$withval
2456 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2457 $as_echo "$default_port" >&6; }
2458 # Need both of these because some places want an integer and some a string
2460 cat >>confdefs.h <<_ACEOF
2461 #define DEF_PGPORT ${default_port}
2465 cat >>confdefs.h <<_ACEOF
2466 #define DEF_PGPORT_STR "${default_port}"
2472 # '-rpath'-like feature can be disabled
2476 # Check whether --enable-rpath was given.
2477 if test "${enable_rpath+set}" = set; then
2478 enableval=$enable_rpath;
2487 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2488 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2489 { (exit 1); exit 1; }; }
2506 # Check whether --enable-spinlocks was given.
2507 if test "${enable_spinlocks+set}" = set; then
2508 enableval=$enable_spinlocks;
2517 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2518 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2519 { (exit 1); exit 1; }; }
2524 enable_spinlocks=yes
2531 # --enable-debug adds -g to compiler flags
2535 # Check whether --enable-debug was given.
2536 if test "${enable_debug+set}" = set; then
2537 enableval=$enable_debug;
2546 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2547 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2548 { (exit 1); exit 1; }; }
2561 # --enable-profiling enables gcc profiling
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567 enableval=$enable_profiling;
2576 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2577 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2578 { (exit 1); exit 1; }; }
2590 # --enable-coverage enables generation of code coverage metrics with gcov
2594 # Check whether --enable-coverage was given.
2595 if test "${enable_coverage+set}" = set; then
2596 enableval=$enable_coverage;
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_GCOV+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$GCOV"; then
2609 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_GCOV="$ac_prog"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 GCOV=$ac_cv_prog_GCOV
2629 if test -n "$GCOV"; then
2630 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2631 $as_echo "$GCOV" >&6; }
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2638 test -n "$GCOV" && break
2641 if test -z "$GCOV"; then
2642 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2643 $as_echo "$as_me: error: gcov not found" >&2;}
2644 { (exit 1); exit 1; }; }
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_LCOV+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$LCOV"; then
2656 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_LCOV="$ac_prog"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 LCOV=$ac_cv_prog_LCOV
2676 if test -n "$LCOV"; then
2677 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2678 $as_echo "$LCOV" >&6; }
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$LCOV" && break
2688 if test -z "$LCOV"; then
2689 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2690 $as_echo "$as_me: error: lcov not found" >&2;}
2691 { (exit 1); exit 1; }; }
2693 for ac_prog in genhtml
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_GENHTML+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$GENHTML"; then
2703 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_GENHTML="$ac_prog"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 GENHTML=$ac_cv_prog_GENHTML
2723 if test -n "$GENHTML"; then
2724 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2725 $as_echo "$GENHTML" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$GENHTML" && break
2735 if test -z "$GENHTML"; then
2736 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2737 $as_echo "$as_me: error: genhtml not found" >&2;}
2738 { (exit 1); exit 1; }; }
2745 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2746 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2747 { (exit 1); exit 1; }; }
2764 # Check whether --enable-dtrace was given.
2765 if test "${enable_dtrace+set}" = set; then
2766 enableval=$enable_dtrace;
2769 for ac_prog in dtrace
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_DTRACE+set}" = set; then
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$DTRACE"; then
2779 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_DTRACE="$ac_prog"
2789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 DTRACE=$ac_cv_prog_DTRACE
2799 if test -n "$DTRACE"; then
2800 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2801 $as_echo "$DTRACE" >&6; }
2803 { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2808 test -n "$DTRACE" && break
2811 if test -z "$DTRACE"; then
2812 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2813 $as_echo "$as_me: error: dtrace not found" >&2;}
2814 { (exit 1); exit 1; }; }
2822 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2823 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2824 { (exit 1); exit 1; }; }
2839 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2840 $as_echo_n "checking for block size... " >&6; }
2844 # Check whether --with-blocksize was given.
2845 if test "${with_blocksize+set}" = set; then
2846 withval=$with_blocksize;
2849 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2850 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2851 { (exit 1); exit 1; }; }
2854 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2855 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2856 { (exit 1); exit 1; }; }
2868 case ${blocksize} in
2875 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2876 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2877 { (exit 1); exit 1; }; }
2879 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2880 $as_echo "${blocksize}kB" >&6; }
2883 cat >>confdefs.h <<_ACEOF
2884 #define BLCKSZ ${BLCKSZ}
2889 # Relation segment size
2891 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2892 $as_echo_n "checking for segment size... " >&6; }
2896 # Check whether --with-segsize was given.
2897 if test "${with_segsize+set}" = set; then
2898 withval=$with_segsize;
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2903 { (exit 1); exit 1; }; }
2906 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2908 { (exit 1); exit 1; }; }
2920 # this expression is set up to avoid unnecessary integer overflow
2921 # blocksize is already guaranteed to be a factor of 1024
2922 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2923 test $? -eq 0 || exit 1
2924 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2925 $as_echo "${segsize}GB" >&6; }
2928 cat >>confdefs.h <<_ACEOF
2929 #define RELSEG_SIZE ${RELSEG_SIZE}
2936 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2937 $as_echo_n "checking for WAL block size... " >&6; }
2941 # Check whether --with-wal-blocksize was given.
2942 if test "${with_wal_blocksize+set}" = set; then
2943 withval=$with_wal_blocksize;
2946 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2948 { (exit 1); exit 1; }; }
2951 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2953 { (exit 1); exit 1; }; }
2956 wal_blocksize=$withval
2965 case ${wal_blocksize} in
2966 1) XLOG_BLCKSZ=1024;;
2967 2) XLOG_BLCKSZ=2048;;
2968 4) XLOG_BLCKSZ=4096;;
2969 8) XLOG_BLCKSZ=8192;;
2970 16) XLOG_BLCKSZ=16384;;
2971 32) XLOG_BLCKSZ=32768;;
2972 64) XLOG_BLCKSZ=65536;;
2973 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2974 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2975 { (exit 1); exit 1; }; }
2977 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2978 $as_echo "${wal_blocksize}kB" >&6; }
2981 cat >>confdefs.h <<_ACEOF
2982 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2989 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2990 $as_echo_n "checking for WAL segment size... " >&6; }
2994 # Check whether --with-wal-segsize was given.
2995 if test "${with_wal_segsize+set}" = set; then
2996 withval=$with_wal_segsize;
2999 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3001 { (exit 1); exit 1; }; }
3004 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3005 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3006 { (exit 1); exit 1; }; }
3009 wal_segsize=$withval
3018 case ${wal_segsize} in
3026 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3027 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3028 { (exit 1); exit 1; }; }
3030 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3031 $as_echo "${wal_segsize}MB" >&6; }
3034 cat >>confdefs.h <<_ACEOF
3035 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3043 # For historical reasons you can also use --with-CC to specify the C compiler
3044 # to use, although the standard way to do this is to set the CC environment
3049 # Check whether --with-CC was given.
3050 if test "${with_CC+set}" = set; then
3054 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3055 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3056 { (exit 1); exit 1; }; }
3059 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3060 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3061 { (exit 1); exit 1; }; }
3073 aix) pgac_cc_list="gcc xlc";;
3074 irix) pgac_cc_list="cc";; # no gcc
3075 *) pgac_cc_list="gcc cc";;
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $pgac_cc_list
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3118 { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$CC" && break
3126 if test -z "$CC"; then
3128 for ac_prog in $pgac_cc_list
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$ac_ct_CC" && break
3170 if test "x$ac_ct_CC" = x; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3196 { (ac_try="$ac_compiler --version >&5"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compiler --version >&5") 2>&5
3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_compiler -v >&5") 2>&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compiler -V >&5") 2>&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258 for ac_file in $ac_files
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 if { (ac_try="$ac_link_default"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274 (eval "$ac_link_default") 2>&5
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3283 for ac_file in $ac_files ''
3285 test -f "$ac_file" || continue
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290 # We found the default executable, but exeext='' is most
3294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298 # We set ac_cv_exeext here because the later test for it is not
3299 # safe: cross compilers may not add the suffix if given an `-o'
3300 # argument, so we may need to know it at that point already.
3301 # Even if this section looks crufty: it has the advantage of
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326 { (exit 77); exit 77; }; }; }
3329 ac_exeext=$ac_cv_exeext
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338 if { ac_try='./$ac_file'
3339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_try") 2>&5
3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3351 if test "$cross_compiling" = maybe; then
3354 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362 { (exit 1); exit 1; }; }; }
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387 (eval "$ac_link") 2>&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }; }
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424 $as_echo_n "(cached) " >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_compile") 2>&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; then
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }; }
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483 $as_echo_n "(cached) " >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } && {
3518 test -z "$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 } && test -s conftest.$ac_objext; then
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545 $as_echo_n "(cached) " >&6
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3691 if test "$GCC" = yes; then
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3702 ac_cv_prog_cc_c89=no
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3728 s = g (p, va_arg (v,int));
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3734 function prototypes and stuff, but not '\xHH' hex character constants.
3735 These don't provoke an error unfortunately, instead are silently treated
3736 as 'x'. The following induces an error, until -std is added to get
3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3738 array size at least. It's necessary to write '\x00'==0 to get something
3739 that's true only with -std. */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743 inside strings and character constants. */
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 CC="$ac_save_CC $ac_arg"
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 ac_cv_prog_cc_c89=$ac_arg
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.$ac_ext
3799 case "x$ac_cv_prog_cc_c89" in
3801 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3804 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own. We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3834 #ifndef __INTEL_COMPILER
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 . "$srcdir/src/template/$template" || exit
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else: If the template file set something, that is used.
3928 # else: If coverage was enabled, don't set anything.
3929 # else: If the compiler is GCC, then we use -O2.
3930 # else: If the compiler is something else, then we use -O, unless debugging.
3932 if test "$ac_env_CFLAGS_set" = set; then
3933 CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935 : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937 : # no optimization by default
3938 elif test "$GCC" = yes; then
3941 # if the user selected debug mode, don't use -O
3942 if test "$enable_debug" != yes; then
3947 # Some versions of GCC support some additional useful warning flags.
3948 # Check whether they are supported, and add them to CFLAGS if so.
3949 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3950 # but has its own. Also check other compiler-specific flags here.
3952 if test "$GCC" = yes -a "$ICC" = no; then
3953 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3954 # These work in some but not all gcc versions
3955 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3956 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3957 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3960 pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="$pgac_save_CFLAGS"
4009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4010 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4011 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4012 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4015 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4016 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4017 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4020 pgac_save_CFLAGS=$CFLAGS
4021 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4059 $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 pgac_cv_prog_cc_cflags__Wendif_labels=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="$pgac_save_CFLAGS"
4069 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4070 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4071 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4072 CFLAGS="$CFLAGS -Wendif-labels"
4075 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4076 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4078 $as_echo_n "(cached) " >&6
4080 pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106 $as_echo "$ac_try_echo") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4117 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="$pgac_save_CFLAGS"
4129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4132 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4135 # This was included in -Wall/-Wformat in older GCC versions
4136 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4137 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4138 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4139 $as_echo_n "(cached) " >&6
4141 pgac_save_CFLAGS=$CFLAGS
4142 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167 $as_echo "$ac_try_echo") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 pgac_cv_prog_cc_cflags__Wformat_security=yes
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 pgac_cv_prog_cc_cflags__Wformat_security=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="$pgac_save_CFLAGS"
4190 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4191 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4192 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4193 CFLAGS="$CFLAGS -Wformat-security"
4196 # Disable strict-aliasing rules; needed for gcc 3.3+
4197 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4198 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4199 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4202 pgac_save_CFLAGS=$CFLAGS
4203 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4204 ac_save_c_werror_flag=$ac_c_werror_flag
4205 ac_c_werror_flag=yes
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4228 $as_echo "$ac_try_echo") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest.$ac_objext; then
4239 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4241 $as_echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="$pgac_save_CFLAGS"
4251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4252 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4253 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4254 CFLAGS="$CFLAGS -fno-strict-aliasing"
4257 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4258 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4259 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4260 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4263 pgac_save_CFLAGS=$CFLAGS
4264 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4300 pgac_cv_prog_cc_cflags__fwrapv=yes
4302 $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 pgac_cv_prog_cc_cflags__fwrapv=no
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310 CFLAGS="$pgac_save_CFLAGS"
4312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4313 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4314 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4315 CFLAGS="$CFLAGS -fwrapv"
4318 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4319 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4320 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4321 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4324 pgac_save_CFLAGS=$CFLAGS
4325 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4326 ac_save_c_werror_flag=$ac_c_werror_flag
4327 ac_c_werror_flag=yes
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350 $as_echo "$ac_try_echo") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4363 $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_c_werror_flag=$ac_save_c_werror_flag
4371 CFLAGS="$pgac_save_CFLAGS"
4373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4374 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4375 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4376 CFLAGS="$CFLAGS -fexcess-precision=standard"
4379 elif test "$ICC" = yes; then
4380 # Intel's compiler has a bug/misoptimization in checking for
4381 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4382 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4383 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4384 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4385 $as_echo_n "(cached) " >&6
4387 pgac_save_CFLAGS=$CFLAGS
4388 CFLAGS="$pgac_save_CFLAGS -mp1"
4389 ac_save_c_werror_flag=$ac_c_werror_flag
4390 ac_c_werror_flag=yes
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4406 rm -f conftest.$ac_objext
4407 if { (ac_try="$ac_compile"
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414 (eval "$ac_compile") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest.$ac_objext; then
4424 pgac_cv_prog_cc_cflags__mp1=yes
4426 $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 pgac_cv_prog_cc_cflags__mp1=no
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4434 CFLAGS="$pgac_save_CFLAGS"
4436 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4437 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4438 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4439 CFLAGS="$CFLAGS -mp1"
4442 # Make sure strict aliasing is off (though this is said to be the default)
4443 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4444 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4445 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4446 $as_echo_n "(cached) " >&6
4448 pgac_save_CFLAGS=$CFLAGS
4449 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4450 ac_save_c_werror_flag=$ac_c_werror_flag
4451 ac_c_werror_flag=yes
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_c_werror_flag=$ac_save_c_werror_flag
4495 CFLAGS="$pgac_save_CFLAGS"
4497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4498 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4499 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4500 CFLAGS="$CFLAGS -fno-strict-aliasing"
4503 elif test "$PORTNAME" = "aix"; then
4504 # AIX's xlc has to have strict aliasing turned off too
4505 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4506 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4507 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4508 $as_echo_n "(cached) " >&6
4510 pgac_save_CFLAGS=$CFLAGS
4511 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4512 ac_save_c_werror_flag=$ac_c_werror_flag
4513 ac_c_werror_flag=yes
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
4547 pgac_cv_prog_cc_cflags__qnoansialias=yes
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 pgac_cv_prog_cc_cflags__qnoansialias=no
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_c_werror_flag=$ac_save_c_werror_flag
4557 CFLAGS="$pgac_save_CFLAGS"
4559 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4560 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4561 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4562 CFLAGS="$CFLAGS -qnoansialias"
4565 elif test "$PORTNAME" = "hpux"; then
4566 # On some versions of HP-UX, libm functions do not set errno by default.
4567 # Fix that by using +Olibmerrno if the compiler recognizes it.
4568 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4569 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4570 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4571 $as_echo_n "(cached) " >&6
4573 pgac_save_CFLAGS=$CFLAGS
4574 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4575 ac_save_c_werror_flag=$ac_c_werror_flag
4576 ac_c_werror_flag=yes
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4612 $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="$pgac_save_CFLAGS"
4622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4623 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4624 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4625 CFLAGS="$CFLAGS +Olibmerrno"
4630 # supply -g if --enable-debug
4631 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4635 # enable code coverage if --enable-coverage
4636 if test "$enable_coverage" = yes; then
4637 if test "$GCC" = yes; then
4638 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4640 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4641 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4642 { (exit 1); exit 1; }; }
4646 # enable profiling if --enable-profiling
4647 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4648 if test "$GCC" = yes; then
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROFILE_PID_DIR 1
4654 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4656 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4657 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4658 { (exit 1); exit 1; }; }
4662 # We already have this in Makefile.win32, but configure needs it too
4663 if test "$PORTNAME" = "win32"; then
4664 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4667 # Check if the compiler still works with the template settings
4668 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4669 $as_echo_n "checking whether the C compiler still works... " >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693 (eval "$ac_link") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest$ac_exeext && {
4703 test "$cross_compiling" = yes ||
4704 $as_test_x conftest$ac_exeext
4706 { $as_echo "$as_me:$LINENO: result: yes" >&5
4707 $as_echo "yes" >&6; }
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 { $as_echo "$as_me:$LINENO: result: no" >&5
4713 $as_echo "no" >&6; }
4714 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4715 $as_echo "$as_me: error: cannot proceed" >&2;}
4716 { (exit 1); exit 1; }; }
4719 rm -rf conftest.dSYM
4720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4721 conftest$ac_exeext conftest.$ac_ext
4723 # Defend against gcc -ffast-math
4724 if test "$GCC" = yes; then
4725 cat >conftest.$ac_ext <<_ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4735 #ifdef __FAST_MATH__
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compile") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
4762 $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4766 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4767 { (exit 1); exit 1; }; }
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4784 if test -z "$CPP"; then
4785 if test "${ac_cv_prog_CPP+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4788 # Double quotes because CPP needs to be expanded
4789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792 for ac_c_preproc_warn_flag in '' yes
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4807 # include <limits.h>
4809 # include <assert.h>
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4819 $as_echo "$ac_try_echo") >&5
4820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822 grep -v '^ *+' conftest.er1 >conftest.err
4824 cat conftest.err >&5
4825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } >/dev/null && {
4827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4832 $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 # Broken: fails on valid input.
4839 rm -f conftest.err conftest.$ac_ext
4841 # OK, works on sane cases. Now check whether nonexistent headers
4842 # can be detected and how.
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <ac_nonexistent.h>
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null && {
4865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4868 # Broken: success on invalid input.
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 # Passes both tests.
4879 rm -f conftest.err conftest.$ac_ext
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then
4896 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4899 for ac_c_preproc_warn_flag in '' yes
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 # include <limits.h>
4916 # include <assert.h>
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev/null && {
4934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 # Broken: fails on valid input.
4946 rm -f conftest.err conftest.$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <ac_nonexistent.h>
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4975 # Broken: success on invalid input.
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 # Passes both tests.
4986 rm -f conftest.err conftest.$ac_ext
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }; }
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 # Set up TAS assembly code if needed; the template file has now had its
5014 # chance to request this.
5016 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5019 if test "$need_tas" = yes ; then
5028 # Automatic dependency tracking
5032 # Check whether --enable-depend was given.
5033 if test "${enable_depend+set}" = set; then
5034 enableval=$enable_depend;
5043 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5044 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5045 { (exit 1); exit 1; }; }
5059 # Enable assert checks
5063 # Check whether --enable-cassert was given.
5064 if test "${enable_cassert+set}" = set; then
5065 enableval=$enable_cassert;
5069 cat >>confdefs.h <<\_ACEOF
5070 #define USE_ASSERT_CHECKING 1
5078 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5079 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5080 { (exit 1); exit 1; }; }
5093 # Include directories
5096 IFS="${IFS}${PATH_SEPARATOR}"
5097 # SRCH_INC comes from the template file
5098 for dir in $with_includes $SRCH_INC; do
5099 if test -d "$dir"; then
5100 INCLUDES="$INCLUDES -I$dir"
5102 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5103 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5111 # Library directories
5114 IFS="${IFS}${PATH_SEPARATOR}"
5115 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5116 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5117 if test -d "$dir"; then
5118 LIBDIRS="$LIBDIRS -L$dir"
5120 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5121 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5127 # Enable thread-safe client libraries
5129 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5130 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5133 # Check whether --enable-thread-safety was given.
5134 if test "${enable_thread_safety+set}" = set; then
5135 enableval=$enable_thread_safety;
5144 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5145 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5146 { (exit 1); exit 1; }; }
5151 enable_thread_safety=yes
5156 if test "$enable_thread_safety" = yes; then
5158 cat >>confdefs.h <<\_ACEOF
5159 #define ENABLE_THREAD_SAFETY 1
5163 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5164 $as_echo "$enable_thread_safety" >&6; }
5168 # Optionally build Tcl modules (PL/Tcl)
5170 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5171 $as_echo_n "checking whether to build with Tcl... " >&6; }
5175 # Check whether --with-tcl was given.
5176 if test "${with_tcl+set}" = set; then
5186 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5187 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5188 { (exit 1); exit 1; }; }
5198 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5199 $as_echo "$with_tcl" >&6; }
5202 # We see if the path to the Tcl/Tk configuration scripts is specified.
5203 # This will override the use of tclsh to find the paths to search.
5208 # Check whether --with-tclconfig was given.
5209 if test "${with_tclconfig+set}" = set; then
5210 withval=$with_tclconfig;
5213 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5214 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5215 { (exit 1); exit 1; }; }
5218 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5219 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5220 { (exit 1); exit 1; }; }
5232 # Optionally build Perl modules (PL/Perl)
5234 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5235 $as_echo_n "checking whether to build Perl modules... " >&6; }
5239 # Check whether --with-perl was given.
5240 if test "${with_perl+set}" = set; then
5250 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5251 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5252 { (exit 1); exit 1; }; }
5262 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5263 $as_echo "$with_perl" >&6; }
5267 # Optionally build Python modules (PL/Python)
5269 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5270 $as_echo_n "checking whether to build Python modules... " >&6; }
5274 # Check whether --with-python was given.
5275 if test "${with_python+set}" = set; then
5276 withval=$with_python;
5285 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5286 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5287 { (exit 1); exit 1; }; }
5297 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5298 $as_echo "$with_python" >&6; }
5304 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5305 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5309 # Check whether --with-gssapi was given.
5310 if test "${with_gssapi+set}" = set; then
5311 withval=$with_gssapi;
5316 cat >>confdefs.h <<\_ACEOF
5317 #define ENABLE_GSS 1
5320 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5327 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5328 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5329 { (exit 1); exit 1; }; }
5339 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5340 $as_echo "$with_gssapi" >&6; }
5345 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5346 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5350 # Check whether --with-krb5 was given.
5351 if test "${with_krb5+set}" = set; then
5357 cat >>confdefs.h <<\_ACEOF
5361 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5368 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5369 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5370 { (exit 1); exit 1; }; }
5380 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5381 $as_echo "$with_krb5" >&6; }
5388 # Kerberos configuration parameters
5393 # Check whether --with-krb-srvnam was given.
5394 if test "${with_krb_srvnam+set}" = set; then
5395 withval=$with_krb_srvnam;
5398 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5399 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5400 { (exit 1); exit 1; }; }
5403 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5404 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5405 { (exit 1); exit 1; }; }
5413 with_krb_srvnam="postgres"
5418 cat >>confdefs.h <<_ACEOF
5419 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5427 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5428 $as_echo_n "checking whether to build with PAM support... " >&6; }
5432 # Check whether --with-pam was given.
5433 if test "${with_pam+set}" = set; then
5438 cat >>confdefs.h <<\_ACEOF
5447 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5449 { (exit 1); exit 1; }; }
5459 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5460 $as_echo "$with_pam" >&6; }
5466 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5467 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5471 # Check whether --with-ldap was given.
5472 if test "${with_ldap+set}" = set; then
5477 cat >>confdefs.h <<\_ACEOF
5486 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5487 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5488 { (exit 1); exit 1; }; }
5498 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5499 $as_echo "$with_ldap" >&6; }
5505 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5506 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5510 # Check whether --with-bonjour was given.
5511 if test "${with_bonjour+set}" = set; then
5512 withval=$with_bonjour;
5516 cat >>confdefs.h <<\_ACEOF
5517 #define USE_BONJOUR 1
5525 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5526 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5527 { (exit 1); exit 1; }; }
5537 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5538 $as_echo "$with_bonjour" >&6; }
5544 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5545 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5549 # Check whether --with-openssl was given.
5550 if test "${with_openssl+set}" = set; then
5551 withval=$with_openssl;
5555 cat >>confdefs.h <<\_ACEOF
5564 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5565 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5566 { (exit 1); exit 1; }; }
5576 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5577 $as_echo "$with_openssl" >&6; }
5583 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5584 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5588 # Check whether --with-selinux was given.
5589 if test "${with_selinux+set}" = set; then
5590 withval=$with_selinux;
5599 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5601 { (exit 1); exit 1; }; }
5612 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5613 $as_echo "$with_selinux" >&6; }
5621 # Check whether --with-readline was given.
5622 if test "${with_readline+set}" = set; then
5623 withval=$with_readline;
5632 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5634 { (exit 1); exit 1; }; }
5644 # readline on MinGW has problems with backslashes in psql and other bugs.
5645 # This is particularly a problem with non-US code pages.
5646 # Therefore disable its use until we understand the cause. 2004-07-20
5647 if test "$PORTNAME" = "win32"; then
5648 if test "$with_readline" = yes; then
5649 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5650 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5662 # Check whether --with-libedit-preferred was given.
5663 if test "${with_libedit_preferred+set}" = set; then
5664 withval=$with_libedit_preferred;
5673 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5674 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5675 { (exit 1); exit 1; }; }
5680 with_libedit_preferred=no
5693 # Check whether --with-ossp-uuid was given.
5694 if test "${with_ossp_uuid+set}" = set; then
5695 withval=$with_ossp_uuid;
5704 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5705 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5706 { (exit 1); exit 1; }; }
5725 # Check whether --with-libxml was given.
5726 if test "${with_libxml+set}" = set; then
5727 withval=$with_libxml;
5731 cat >>confdefs.h <<\_ACEOF
5732 #define USE_LIBXML 1
5740 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5741 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5742 { (exit 1); exit 1; }; }
5753 if test "$with_libxml" = yes ; then
5754 for ac_prog in xml2-config
5756 # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$XML2_CONFIG"; then
5764 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_XML2_CONFIG="$ac_prog"
5774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5784 if test -n "$XML2_CONFIG"; then
5785 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5786 $as_echo "$XML2_CONFIG" >&6; }
5788 { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$XML2_CONFIG" && break
5796 if test -n "$XML2_CONFIG"; then
5797 for pgac_option in `$XML2_CONFIG --cflags`; do
5798 case $pgac_option in
5799 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5802 for pgac_option in `$XML2_CONFIG --libs`; do
5803 case $pgac_option in
5804 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5818 # Check whether --with-libxslt was given.
5819 if test "${with_libxslt+set}" = set; then
5820 withval=$with_libxslt;
5824 cat >>confdefs.h <<\_ACEOF
5825 #define USE_LIBXSLT 1
5833 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5835 { (exit 1); exit 1; }; }
5855 # Check whether --with-system-tzdata was given.
5856 if test "${with_system_tzdata+set}" = set; then
5857 withval=$with_system_tzdata;
5860 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5861 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5862 { (exit 1); exit 1; }; }
5865 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5866 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5867 { (exit 1); exit 1; }; }
5885 # Check whether --with-zlib was given.
5886 if test "${with_zlib+set}" = set; then
5896 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5897 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5898 { (exit 1); exit 1; }; }
5914 # Assume system is ELF if it predefines __ELF__ as 1,
5915 # otherwise believe host_os based default.
5917 freebsd1*|freebsd2*) elf=no;;
5918 freebsd3*|freebsd4*) elf=yes;;
5922 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5927 if test -z "$GREP"; then
5928 ac_path_GREP_found=false
5929 # Loop through the user's path and test for each of PROGNAME-LIST
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5934 test -z "$as_dir" && as_dir=.
5935 for ac_prog in grep ggrep; do
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5939 # Check for GNU ac_path_GREP and select it if it is found.
5940 # Check for GNU $ac_path_GREP
5941 case `"$ac_path_GREP" --version 2>&1` in
5943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5946 $as_echo_n 0123456789 >"conftest.in"
5949 cat "conftest.in" "conftest.in" >"conftest.tmp"
5950 mv "conftest.tmp" "conftest.in"
5951 cp "conftest.in" "conftest.nl"
5952 $as_echo 'GREP' >> "conftest.nl"
5953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955 ac_count=`expr $ac_count + 1`
5956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5957 # Best one so far, save it but keep looking for a better one
5958 ac_cv_path_GREP="$ac_path_GREP"
5959 ac_path_GREP_max=$ac_count
5961 # 10*(2^10) chars as input seems more than enough
5962 test $ac_count -gt 10 && break
5964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5967 $ac_path_GREP_found && break 3
5972 if test -z "$ac_cv_path_GREP"; then
5973 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5974 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5975 { (exit 1); exit 1; }; }
5978 ac_cv_path_GREP=$GREP
5982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5983 $as_echo "$ac_cv_path_GREP" >&6; }
5984 GREP="$ac_cv_path_GREP"
5987 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5988 $as_echo_n "checking for egrep... " >&6; }
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5993 then ac_cv_path_EGREP="$GREP -E"
5995 if test -z "$EGREP"; then
5996 ac_path_EGREP_found=false
5997 # Loop through the user's path and test for each of PROGNAME-LIST
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6002 test -z "$as_dir" && as_dir=.
6003 for ac_prog in egrep; do
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6007 # Check for GNU ac_path_EGREP and select it if it is found.
6008 # Check for GNU $ac_path_EGREP
6009 case `"$ac_path_EGREP" --version 2>&1` in
6011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6014 $as_echo_n 0123456789 >"conftest.in"
6017 cat "conftest.in" "conftest.in" >"conftest.tmp"
6018 mv "conftest.tmp" "conftest.in"
6019 cp "conftest.in" "conftest.nl"
6020 $as_echo 'EGREP' >> "conftest.nl"
6021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6023 ac_count=`expr $ac_count + 1`
6024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6025 # Best one so far, save it but keep looking for a better one
6026 ac_cv_path_EGREP="$ac_path_EGREP"
6027 ac_path_EGREP_max=$ac_count
6029 # 10*(2^10) chars as input seems more than enough
6030 test $ac_count -gt 10 && break
6032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6035 $ac_path_EGREP_found && break 3
6040 if test -z "$ac_cv_path_EGREP"; then
6041 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6042 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6043 { (exit 1); exit 1; }; }
6046 ac_cv_path_EGREP=$EGREP
6051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053 EGREP="$ac_cv_path_EGREP"
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "yes" >/dev/null 2>&1; then
6071 if test "X$elf" = "Xyes" ; then
6085 CPPFLAGS="$CPPFLAGS $INCLUDES"
6086 LDFLAGS="$LDFLAGS $LIBDIRS"
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6100 if test "$GCC" = yes; then
6101 # Check if gcc -print-prog-name=ld gives a path.
6102 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 $as_echo_n "checking for ld used by GCC... " >&6; }
6106 # gcc leaves a trailing carriage return which upsets mingw
6107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112 # Accept absolute paths.
6113 [\\/]* | [A-Za-z]:[\\/]*)
6114 re_direlt='/[^/][^/]*/\.\./'
6115 # Canonicalize the path of ld
6116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120 test -z "$LD" && LD="$ac_prog"
6123 # If it fails, then pretend we aren't using GCC.
6127 # If it is relative, then search for the first ld in PATH.
6131 elif test "$with_gnu_ld" = yes; then
6132 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 $as_echo_n "checking for GNU ld... " >&6; }
6135 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 $as_echo_n "checking for non-GNU ld... " >&6; }
6138 if test "${ac_cv_path_LD+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6141 if test -z "$LD"; then
6142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143 for ac_dir in $PATH; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146 ac_cv_path_LD="$ac_dir/$ac_prog"
6147 # Check to see if the program is GNU ld. I'd rather use --version,
6148 # but apparently some GNU ld's only accept -v.
6149 # Break only if it was the GNU/non-GNU ld that we prefer.
6150 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6151 test "$with_gnu_ld" != no && break
6153 test "$with_gnu_ld" != yes && break
6159 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6164 if test -n "$LD"; then
6165 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6166 $as_echo "$LD" >&6; }
6168 { $as_echo "$as_me:$LINENO: result: no" >&5
6169 $as_echo "no" >&6; }
6171 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173 { (exit 1); exit 1; }; }
6174 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6181 ac_cv_prog_gnu_ld=yes
6183 ac_cv_prog_gnu_ld=no
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6187 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6188 with_gnu_ld=$ac_cv_prog_gnu_ld
6193 case $host_os in sysv5*)
6194 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6195 $as_echo_n "checking whether ld -R works... " >&6; }
6196 if test "${pgac_cv_prog_ld_R+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6200 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224 (eval "$ac_link") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest$ac_exeext && {
6234 test "$cross_compiling" = yes ||
6235 $as_test_x conftest$ac_exeext
6237 pgac_cv_prog_ld_R=yes
6239 $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 pgac_cv_prog_ld_R=no
6245 rm -rf conftest.dSYM
6246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6247 conftest$ac_exeext conftest.$ac_ext
6248 LDFLAGS=$pgac_save_LDFLAGS
6251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6252 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6253 ld_R_works=$pgac_cv_prog_ld_R
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$RANLIB"; then
6265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6289 { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296 ac_ct_RANLIB=$RANLIB
6297 # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6304 if test -n "$ac_ct_RANLIB"; then
6305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_RANLIB="ranlib"
6315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6329 { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6333 if test "x$ac_ct_RANLIB" = x; then
6336 case $cross_compiling:$ac_tool_warned in
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6342 RANLIB=$ac_ct_RANLIB
6345 RANLIB="$ac_cv_prog_RANLIB"
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_STRIP+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$STRIP"; then
6358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6382 { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_STRIP"; then
6390 # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$ac_ct_STRIP"; then
6398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_STRIP="strip"
6408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_STRIP" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6438 STRIP="$ac_cv_prog_STRIP"
6442 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6443 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6444 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6445 STRIP_STATIC_LIB="$STRIP -x"
6446 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6447 { $as_echo "$as_me:$LINENO: result: yes" >&5
6448 $as_echo "yes" >&6; }
6453 STRIP_STATIC_LIB=$STRIP
6454 STRIP_SHARED_LIB=$STRIP
6455 { $as_echo "$as_me:$LINENO: result: yes" >&5
6456 $as_echo "yes" >&6; }
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ar; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_AR+set}" = set; then
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$AR"; then
6478 ac_cv_prog_AR="$AR" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_AR="${ac_tool_prefix}ar"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 if test -n "$AR"; then
6499 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6500 $as_echo "$AR" >&6; }
6502 { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_AR"; then
6510 # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$ac_ct_AR"; then
6518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_AR="ar"
6528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6538 if test -n "$ac_ct_AR"; then
6539 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6540 $as_echo "$ac_ct_AR" >&6; }
6542 { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$ac_ct_AR" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6561 if test "$PORTNAME" = "win32"; then
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6570 if test -n "$DLLTOOL"; then
6571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 DLLTOOL=$ac_cv_prog_DLLTOOL
6591 if test -n "$DLLTOOL"; then
6592 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6593 $as_echo "$DLLTOOL" >&6; }
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6601 if test -z "$ac_cv_prog_DLLTOOL"; then
6602 ac_ct_DLLTOOL=$DLLTOOL
6603 # Extract the first word of "dlltool", so it can be a program name with args.
6604 set dummy dlltool; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$ac_ct_DLLTOOL"; then
6611 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6631 if test -n "$ac_ct_DLLTOOL"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6633 $as_echo "$ac_ct_DLLTOOL" >&6; }
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6639 if test "x$ac_ct_DLLTOOL" = x; then
6642 case $cross_compiling:$ac_tool_warned in
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6648 DLLTOOL=$ac_ct_DLLTOOL
6651 DLLTOOL="$ac_cv_prog_DLLTOOL"
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$DLLWRAP"; then
6663 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 DLLWRAP=$ac_cv_prog_DLLWRAP
6683 if test -n "$DLLWRAP"; then
6684 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6685 $as_echo "$DLLWRAP" >&6; }
6687 { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6693 if test -z "$ac_cv_prog_DLLWRAP"; then
6694 ac_ct_DLLWRAP=$DLLWRAP
6695 # Extract the first word of "dllwrap", so it can be a program name with args.
6696 set dummy dllwrap; ac_word=$2
6697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$ac_ct_DLLWRAP"; then
6703 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6723 if test -n "$ac_ct_DLLWRAP"; then
6724 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6725 $as_echo "$ac_ct_DLLWRAP" >&6; }
6727 { $as_echo "$as_me:$LINENO: result: no" >&5
6728 $as_echo "no" >&6; }
6731 if test "x$ac_ct_DLLWRAP" = x; then
6734 case $cross_compiling:$ac_tool_warned in
6736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6740 DLLWRAP=$ac_ct_DLLWRAP
6743 DLLWRAP="$ac_cv_prog_DLLWRAP"
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}windres; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_WINDRES+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$WINDRES"; then
6755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 WINDRES=$ac_cv_prog_WINDRES
6775 if test -n "$WINDRES"; then
6776 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6777 $as_echo "$WINDRES" >&6; }
6779 { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6785 if test -z "$ac_cv_prog_WINDRES"; then
6786 ac_ct_WINDRES=$WINDRES
6787 # Extract the first word of "windres", so it can be a program name with args.
6788 set dummy windres; ac_word=$2
6789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6794 if test -n "$ac_ct_WINDRES"; then
6795 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_WINDRES="windres"
6805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6815 if test -n "$ac_ct_WINDRES"; then
6816 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6817 $as_echo "$ac_ct_WINDRES" >&6; }
6819 { $as_echo "$as_me:$LINENO: result: no" >&5
6820 $as_echo "no" >&6; }
6823 if test "x$ac_ct_WINDRES" = x; then
6826 case $cross_compiling:$ac_tool_warned in
6828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6832 WINDRES=$ac_ct_WINDRES
6835 WINDRES="$ac_cv_prog_WINDRES"
6840 # Find a good install program. We prefer a C program (faster),
6841 # so one script is as good as another. But avoid the broken or
6842 # incompatible versions:
6843 # SysV /etc/install, /usr/sbin/install
6844 # SunOS /usr/etc/install
6845 # IRIX /sbin/install
6847 # AmigaOS /C/install, which installs bootblocks on floppy discs
6848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6851 # OS/2's system install, which has a completely different semantic
6852 # ./install, which can be erroneously created by make from ./install.sh.
6853 # Reject install programs that cannot install multiple files.
6854 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6855 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6856 if test -z "$INSTALL"; then
6857 if test "${ac_cv_path_install+set}" = set; then
6858 $as_echo_n "(cached) " >&6
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 # Account for people who put trailing slashes in PATH elements.
6867 ./ | .// | /cC/* | \
6868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6872 # OSF1 and SCO ODT 3.0 have their own names for install.
6873 # Don't use installbsd from OSF since it installs stuff as root
6875 for ac_prog in ginstall scoinst install; do
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6878 if test $ac_prog = install &&
6879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6880 # AIX install. It has an incompatible calling convention.
6882 elif test $ac_prog = install &&
6883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884 # program-specific install script used by HP pwplus--don't use.
6887 rm -rf conftest.one conftest.two conftest.dir
6888 echo one > conftest.one
6889 echo two > conftest.two
6891 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6892 test -s conftest.one && test -s conftest.two &&
6893 test -s conftest.dir/conftest.one &&
6894 test -s conftest.dir/conftest.two
6896 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6909 rm -rf conftest.one conftest.two conftest.dir
6912 if test "${ac_cv_path_install+set}" = set; then
6913 INSTALL=$ac_cv_path_install
6915 # As a last resort, use the slow shell script. Don't cache a
6916 # value for INSTALL within a source directory, because that will
6917 # break other packages using the cache if that directory is
6918 # removed, or if the value is a relative name.
6919 INSTALL=$ac_install_sh
6922 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 $as_echo "$INSTALL" >&6; }
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6933 # When Autoconf chooses install-sh as install program it tries to generate
6934 # a relative path to it in each makefile where it subsitutes it. This clashes
6935 # with our Makefile.global concept. This workaround helps.
6937 *install-sh*) install_bin='';;
6938 *) install_bin=$INSTALL;;
6942 # Extract the first word of "tar", so it can be a program name with args.
6943 set dummy tar; ac_word=$2
6944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_path_TAR+set}" = set; then
6947 $as_echo_n "(cached) " >&6
6951 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 if test -n "$TAR"; then
6974 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6975 $as_echo "$TAR" >&6; }
6977 { $as_echo "$as_me:$LINENO: result: no" >&5
6978 $as_echo "no" >&6; }
6982 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6983 $as_echo_n "checking whether ln -s works... " >&6; }
6985 if test "$LN_S" = "ln -s"; then
6986 { $as_echo "$as_me:$LINENO: result: yes" >&5
6987 $as_echo "yes" >&6; }
6989 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6990 $as_echo "no, using $LN_S" >&6; }
6993 for ac_prog in gawk mawk nawk awk
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_AWK+set}" = set; then
7000 $as_echo_n "(cached) " >&6
7002 if test -n "$AWK"; then
7003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_AWK="$ac_prog"
7013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 if test -n "$AWK"; then
7024 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7025 $as_echo "$AWK" >&6; }
7027 { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7032 test -n "$AWK" && break
7035 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7037 if test -z "$MKDIR_P"; then
7038 if test "${ac_cv_path_mkdir+set}" = set; then
7039 $as_echo_n "(cached) " >&6
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7045 test -z "$as_dir" && as_dir=.
7046 for ac_prog in mkdir gmkdir; do
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7050 'mkdir (GNU coreutils) '* | \
7051 'mkdir (coreutils) '* | \
7052 'mkdir (fileutils) '4.1*)
7053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7063 if test "${ac_cv_path_mkdir+set}" = set; then
7064 MKDIR_P="$ac_cv_path_mkdir -p"
7066 # As a last resort, use the slow shell script. Don't cache a
7067 # value for MKDIR_P within a source directory, because that will
7068 # break other packages using the cache if that directory is
7069 # removed, or if the value is a relative name.
7070 test -d ./--version && rmdir ./--version
7071 MKDIR_P="$ac_install_sh -d"
7074 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7075 $as_echo "$MKDIR_P" >&6; }
7077 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7078 # a relative path to it in each makefile where it subsitutes it. This clashes
7079 # with our Makefile.global concept. This workaround helps.
7081 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7084 # Let the user override the search
7085 if test -z "$BISON"; then
7086 for ac_prog in bison
7088 # Extract the first word of "$ac_prog", so it can be a program name with args.
7089 set dummy $ac_prog; ac_word=$2
7090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if test "${ac_cv_path_BISON+set}" = set; then
7093 $as_echo_n "(cached) " >&6
7097 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 BISON=$ac_cv_path_BISON
7119 if test -n "$BISON"; then
7120 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7121 $as_echo "$BISON" >&6; }
7123 { $as_echo "$as_me:$LINENO: result: no" >&5
7124 $as_echo "no" >&6; }
7128 test -n "$BISON" && break
7133 if test "$BISON"; then
7134 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7135 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7136 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7137 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7139 { $as_echo "$as_me:$LINENO: WARNING:
7140 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7141 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7142 $as_echo "$as_me: WARNING:
7143 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7144 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7149 if test -z "$BISON"; then
7150 { $as_echo "$as_me:$LINENO: WARNING:
7151 *** Without Bison you will not be able to build PostgreSQL from Git nor
7152 *** change any of the parser definition files. You can obtain Bison from
7153 *** a GNU mirror site. (If you are using the official distribution of
7154 *** PostgreSQL then you do not need to worry about this, because the Bison
7155 *** output is pre-generated.)" >&5
7156 $as_echo "$as_me: WARNING:
7157 *** Without Bison you will not be able to build PostgreSQL from Git nor
7158 *** change any of the parser definition files. You can obtain Bison from
7159 *** a GNU mirror site. (If you are using the official distribution of
7160 *** PostgreSQL then you do not need to worry about this, because the Bison
7161 *** output is pre-generated.)" >&2;}
7163 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7166 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7167 $as_echo_n "checking for flex... " >&6; }
7168 if test "${pgac_cv_path_flex+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7171 # Let the user override the test
7172 if test -n "$FLEX"; then
7173 pgac_cv_path_flex=$FLEX
7177 for pgac_dir in $PATH; do
7179 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7182 for pgac_prog in flex lex; do
7183 pgac_candidate="$pgac_dir/$pgac_prog"
7184 if test -f "$pgac_candidate" \
7185 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7187 echo '%%' > conftest.l
7188 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7189 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7190 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7192 pgac_cv_path_flex=$pgac_candidate
7195 { $as_echo "$as_me:$LINENO: WARNING:
7196 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7197 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7198 $as_echo "$as_me: WARNING:
7199 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7200 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7206 rm -f conftest.l lex.yy.c
7207 : ${pgac_cv_path_flex=no}
7211 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7212 $as_echo "$pgac_cv_path_flex" >&6; }
7213 if test x"$pgac_cv_path_flex" = x"no"; then
7214 { $as_echo "$as_me:$LINENO: WARNING:
7215 *** Without Flex you will not be able to build PostgreSQL from Git nor
7216 *** change any of the scanner definition files. You can obtain Flex from
7217 *** a GNU mirror site. (If you are using the official distribution of
7218 *** PostgreSQL then you do not need to worry about this because the Flex
7219 *** output is pre-generated.)" >&5
7220 $as_echo "$as_me: WARNING:
7221 *** Without Flex you will not be able to build PostgreSQL from Git nor
7222 *** change any of the scanner definition files. You can obtain Flex from
7223 *** a GNU mirror site. (If you are using the official distribution of
7224 *** PostgreSQL then you do not need to worry about this because the Flex
7225 *** output is pre-generated.)" >&2;}
7229 FLEX=$pgac_cv_path_flex
7230 pgac_flex_version=`$FLEX --version 2>/dev/null`
7231 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7232 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7239 # Let the user override the search
7240 if test -z "$PERL"; then
7241 # Extract the first word of "perl", so it can be a program name with args.
7242 set dummy perl; ac_word=$2
7243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_path_PERL+set}" = set; then
7246 $as_echo_n "(cached) " >&6
7250 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 PERL=$ac_cv_path_PERL
7272 if test -n "$PERL"; then
7273 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7274 $as_echo "$PERL" >&6; }
7276 { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7283 if test "$PERL"; then
7284 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7285 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7286 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7287 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7288 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7290 { $as_echo "$as_me:$LINENO: WARNING:
7291 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7292 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7293 $as_echo "$as_me: WARNING:
7294 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7295 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7300 if test -z "$PERL"; then
7301 { $as_echo "$as_me:$LINENO: WARNING:
7302 *** Without Perl you will not be able to build PostgreSQL from Git.
7303 *** You can obtain Perl from any CPAN mirror site.
7304 *** (If you are using the official distribution of PostgreSQL then you do not
7305 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7306 $as_echo "$as_me: WARNING:
7307 *** Without Perl you will not be able to build PostgreSQL from Git.
7308 *** You can obtain Perl from any CPAN mirror site.
7309 *** (If you are using the official distribution of PostgreSQL then you do not
7310 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7313 if test "$with_perl" = yes; then
7314 if test -z "$PERL"; then
7315 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7316 $as_echo "$as_me: error: Perl not found" >&2;}
7317 { (exit 1); exit 1; }; }
7320 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7321 $as_echo_n "checking for Perl archlibexp... " >&6; }
7322 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7324 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7325 $as_echo "$perl_archlibexp" >&6; }
7326 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7327 $as_echo_n "checking for Perl privlibexp... " >&6; }
7328 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7329 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7330 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7331 $as_echo "$perl_privlibexp" >&6; }
7332 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7333 $as_echo_n "checking for Perl useshrplib... " >&6; }
7334 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7335 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7336 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7337 $as_echo "$perl_useshrplib" >&6; }
7339 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7340 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7341 if test "$PORTNAME" = "win32" ; then
7342 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7343 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7345 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7346 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7347 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7349 if test -z "$perl_embed_ldflags" ; then
7350 { $as_echo "$as_me:$LINENO: result: no" >&5
7351 $as_echo "no" >&6; }
7352 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7353 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7355 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7356 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7358 { (exit 1); exit 1; }; }
7360 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7361 $as_echo "$perl_embed_ldflags" >&6; }
7366 if test "$with_python" = yes; then
7367 # Extract the first word of "python", so it can be a program name with args.
7368 set dummy python; ac_word=$2
7369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_path_PYTHON+set}" = set; then
7372 $as_echo_n "(cached) " >&6
7376 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 PYTHON=$ac_cv_path_PYTHON
7398 if test -n "$PYTHON"; then
7399 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7400 $as_echo "$PYTHON" >&6; }
7402 { $as_echo "$as_me:$LINENO: result: no" >&5
7403 $as_echo "no" >&6; }
7407 if test x"$PYTHON" = x""; then
7408 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7409 $as_echo "$as_me: error: Python not found" >&2;}
7410 { (exit 1); exit 1; }; }
7414 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7415 $as_echo_n "checking for Python distutils module... " >&6; }
7416 if "${PYTHON}" -c 'import distutils' 2>&5
7418 { $as_echo "$as_me:$LINENO: result: yes" >&5
7419 $as_echo "yes" >&6; }
7421 { $as_echo "$as_me:$LINENO: result: no" >&5
7422 $as_echo "no" >&6; }
7423 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7424 $as_echo "$as_me: error: distutils module not found" >&2;}
7425 { (exit 1); exit 1; }; }
7427 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7428 $as_echo_n "checking Python configuration directory... " >&6; }
7429 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7430 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7431 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7432 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7433 $as_echo "$python_configdir" >&6; }
7435 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7436 $as_echo_n "checking Python include directories... " >&6; }
7437 python_includespec=`${PYTHON} -c "
7438 import distutils.sysconfig
7439 a = '-I' + distutils.sysconfig.get_python_inc(False)
7440 b = '-I' + distutils.sysconfig.get_python_inc(True)
7444 print(a + ' ' + b)"`
7445 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7446 $as_echo "$python_includespec" >&6; }
7450 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7451 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7453 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7454 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7455 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7456 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7457 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7458 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7460 if test -n "$python_framework"; then
7461 python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7462 python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7463 python_enable_shared=1
7464 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7466 # New way: use the official shared library
7467 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7468 python_libspec="-L${python_libdir} -l${ldlibrary}"
7470 # Old way: use libpython from python_configdir
7471 python_libdir="${python_configdir}"
7472 # LDVERSION was introduced in Python 3.2.
7473 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7474 if test x"${python_ldversion}" = x""; then
7475 python_ldversion=$python_version
7477 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7480 if test -z "$python_framework"; then
7481 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7484 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7485 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7488 # threaded python is not supported on OpenBSD
7489 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7490 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7491 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7492 if test "$pythreads" = "1"; then
7493 { $as_echo "$as_me:$LINENO: result: yes" >&5
7494 $as_echo "yes" >&6; }
7497 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7498 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7499 { (exit 1); exit 1; }; }
7503 { $as_echo "$as_me:$LINENO: result: no" >&5
7504 $as_echo "no" >&6; }
7510 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7511 # Extract the first word of "zic", so it can be a program name with args.
7512 set dummy zic; ac_word=$2
7513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_path_ZIC+set}" = set; then
7516 $as_echo_n "(cached) " >&6
7520 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 if test -n "$ZIC"; then
7543 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7544 $as_echo "$ZIC" >&6; }
7546 { $as_echo "$as_me:$LINENO: result: no" >&5
7547 $as_echo "no" >&6; }
7551 if test -z "$ZIC"; then
7552 { { $as_echo "$as_me:$LINENO: error:
7553 When cross-compiling, either use the option --with-system-tzdata to use
7554 existing time-zone data, or set the environment variable ZIC to a zic
7555 program to use during the build." >&5
7556 $as_echo "$as_me: error:
7557 When cross-compiling, either use the option --with-system-tzdata to use
7558 existing time-zone data, or set the environment variable ZIC to a zic
7559 program to use during the build." >&2;}
7560 { (exit 1); exit 1; }; }
7568 ## Most libraries are included only if they demonstrably provide a function
7569 ## we need, but libm is an exception: always include it, because there are
7570 ## too many compilers that play cute optimization games that will break
7571 ## probes for standard functions such as pow().
7575 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7576 $as_echo_n "checking for main in -lm... " >&6; }
7577 if test "${ac_cv_lib_m_main+set}" = set; then
7578 $as_echo_n "(cached) " >&6
7580 ac_check_lib_save_LIBS=$LIBS
7582 cat >conftest.$ac_ext <<_ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (ac_try="$ac_link"
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7605 $as_echo "$ac_try_echo") >&5
7606 (eval "$ac_link") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest$ac_exeext && {
7616 test "$cross_compiling" = yes ||
7617 $as_test_x conftest$ac_exeext
7619 ac_cv_lib_m_main=yes
7621 $as_echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7627 rm -rf conftest.dSYM
7628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7629 conftest$ac_exeext conftest.$ac_ext
7630 LIBS=$ac_check_lib_save_LIBS
7632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7633 $as_echo "$ac_cv_lib_m_main" >&6; }
7634 if test "x$ac_cv_lib_m_main" = x""yes; then
7635 cat >>confdefs.h <<_ACEOF
7643 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7644 $as_echo_n "checking for library containing setproctitle... " >&6; }
7645 if test "${ac_cv_search_setproctitle+set}" = set; then
7646 $as_echo_n "(cached) " >&6
7648 ac_func_search_save_LIBS=$LIBS
7649 cat >conftest.$ac_ext <<_ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7656 /* Override any GCC internal prototype to avoid an error.
7657 Use char because int might match the return type of a GCC
7658 builtin and then its argument prototype would still apply. */
7662 char setproctitle ();
7666 return setproctitle ();
7671 for ac_lib in '' util; do
7672 if test -z "$ac_lib"; then
7673 ac_res="none required"
7676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7685 $as_echo "$ac_try_echo") >&5
7686 (eval "$ac_link") 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest$ac_exeext && {
7696 test "$cross_compiling" = yes ||
7697 $as_test_x conftest$ac_exeext
7699 ac_cv_search_setproctitle=$ac_res
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7707 rm -rf conftest.dSYM
7708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7710 if test "${ac_cv_search_setproctitle+set}" = set; then
7714 if test "${ac_cv_search_setproctitle+set}" = set; then
7717 ac_cv_search_setproctitle=no
7720 LIBS=$ac_func_search_save_LIBS
7722 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7723 $as_echo "$ac_cv_search_setproctitle" >&6; }
7724 ac_res=$ac_cv_search_setproctitle
7725 if test "$ac_res" != no; then
7726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7730 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7731 $as_echo_n "checking for library containing dlopen... " >&6; }
7732 if test "${ac_cv_search_dlopen+set}" = set; then
7733 $as_echo_n "(cached) " >&6
7735 ac_func_search_save_LIBS=$LIBS
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7743 /* Override any GCC internal prototype to avoid an error.
7744 Use char because int might match the return type of a GCC
7745 builtin and then its argument prototype would still apply. */
7758 for ac_lib in '' dl; do
7759 if test -z "$ac_lib"; then
7760 ac_res="none required"
7763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (ac_try="$ac_link"
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7772 $as_echo "$ac_try_echo") >&5
7773 (eval "$ac_link") 2>conftest.er1
7775 grep -v '^ *+' conftest.er1 >conftest.err
7777 cat conftest.err >&5
7778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest$ac_exeext && {
7783 test "$cross_compiling" = yes ||
7784 $as_test_x conftest$ac_exeext
7786 ac_cv_search_dlopen=$ac_res
7788 $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7794 rm -rf conftest.dSYM
7795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7797 if test "${ac_cv_search_dlopen+set}" = set; then
7801 if test "${ac_cv_search_dlopen+set}" = set; then
7804 ac_cv_search_dlopen=no
7807 LIBS=$ac_func_search_save_LIBS
7809 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7810 $as_echo "$ac_cv_search_dlopen" >&6; }
7811 ac_res=$ac_cv_search_dlopen
7812 if test "$ac_res" != no; then
7813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7817 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7818 $as_echo_n "checking for library containing socket... " >&6; }
7819 if test "${ac_cv_search_socket+set}" = set; then
7820 $as_echo_n "(cached) " >&6
7822 ac_func_search_save_LIBS=$LIBS
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7830 /* Override any GCC internal prototype to avoid an error.
7831 Use char because int might match the return type of a GCC
7832 builtin and then its argument prototype would still apply. */
7845 for ac_lib in '' socket wsock32; do
7846 if test -z "$ac_lib"; then
7847 ac_res="none required"
7850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7859 $as_echo "$ac_try_echo") >&5
7860 (eval "$ac_link") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest$ac_exeext && {
7870 test "$cross_compiling" = yes ||
7871 $as_test_x conftest$ac_exeext
7873 ac_cv_search_socket=$ac_res
7875 $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7881 rm -rf conftest.dSYM
7882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7884 if test "${ac_cv_search_socket+set}" = set; then
7888 if test "${ac_cv_search_socket+set}" = set; then
7891 ac_cv_search_socket=no
7894 LIBS=$ac_func_search_save_LIBS
7896 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7897 $as_echo "$ac_cv_search_socket" >&6; }
7898 ac_res=$ac_cv_search_socket
7899 if test "$ac_res" != no; then
7900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7904 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7905 $as_echo_n "checking for library containing shl_load... " >&6; }
7906 if test "${ac_cv_search_shl_load+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7909 ac_func_search_save_LIBS=$LIBS
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7917 /* Override any GCC internal prototype to avoid an error.
7918 Use char because int might match the return type of a GCC
7919 builtin and then its argument prototype would still apply. */
7932 for ac_lib in '' dld; do
7933 if test -z "$ac_lib"; then
7934 ac_res="none required"
7937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (ac_try="$ac_link"
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7946 $as_echo "$ac_try_echo") >&5
7947 (eval "$ac_link") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest$ac_exeext && {
7957 test "$cross_compiling" = yes ||
7958 $as_test_x conftest$ac_exeext
7960 ac_cv_search_shl_load=$ac_res
7962 $as_echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7968 rm -rf conftest.dSYM
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7971 if test "${ac_cv_search_shl_load+set}" = set; then
7975 if test "${ac_cv_search_shl_load+set}" = set; then
7978 ac_cv_search_shl_load=no
7981 LIBS=$ac_func_search_save_LIBS
7983 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7984 $as_echo "$ac_cv_search_shl_load" >&6; }
7985 ac_res=$ac_cv_search_shl_load
7986 if test "$ac_res" != no; then
7987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7991 # We only use libld in port/dynloader/aix.c
7994 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7995 $as_echo_n "checking for library containing ldopen... " >&6; }
7996 if test "${ac_cv_search_ldopen+set}" = set; then
7997 $as_echo_n "(cached) " >&6
7999 ac_func_search_save_LIBS=$LIBS
8000 cat >conftest.$ac_ext <<_ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8007 /* Override any GCC internal prototype to avoid an error.
8008 Use char because int might match the return type of a GCC
8009 builtin and then its argument prototype would still apply. */
8022 for ac_lib in '' ld; do
8023 if test -z "$ac_lib"; then
8024 ac_res="none required"
8027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8036 $as_echo "$ac_try_echo") >&5
8037 (eval "$ac_link") 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest$ac_exeext && {
8047 test "$cross_compiling" = yes ||
8048 $as_test_x conftest$ac_exeext
8050 ac_cv_search_ldopen=$ac_res
8052 $as_echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -rf conftest.dSYM
8059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8061 if test "${ac_cv_search_ldopen+set}" = set; then
8065 if test "${ac_cv_search_ldopen+set}" = set; then
8068 ac_cv_search_ldopen=no
8071 LIBS=$ac_func_search_save_LIBS
8073 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8074 $as_echo "$ac_cv_search_ldopen" >&6; }
8075 ac_res=$ac_cv_search_ldopen
8076 if test "$ac_res" != no; then
8077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8083 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8084 $as_echo_n "checking for library containing getopt_long... " >&6; }
8085 if test "${ac_cv_search_getopt_long+set}" = set; then
8086 $as_echo_n "(cached) " >&6
8088 ac_func_search_save_LIBS=$LIBS
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8096 /* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8102 char getopt_long ();
8106 return getopt_long ();
8111 for ac_lib in '' getopt gnugetopt; do
8112 if test -z "$ac_lib"; then
8113 ac_res="none required"
8116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8118 rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (ac_try="$ac_link"
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8125 $as_echo "$ac_try_echo") >&5
8126 (eval "$ac_link") 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } && {
8133 test -z "$ac_c_werror_flag" ||
8134 test ! -s conftest.err
8135 } && test -s conftest$ac_exeext && {
8136 test "$cross_compiling" = yes ||
8137 $as_test_x conftest$ac_exeext
8139 ac_cv_search_getopt_long=$ac_res
8141 $as_echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8147 rm -rf conftest.dSYM
8148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8150 if test "${ac_cv_search_getopt_long+set}" = set; then
8154 if test "${ac_cv_search_getopt_long+set}" = set; then
8157 ac_cv_search_getopt_long=no
8160 LIBS=$ac_func_search_save_LIBS
8162 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8163 $as_echo "$ac_cv_search_getopt_long" >&6; }
8164 ac_res=$ac_cv_search_getopt_long
8165 if test "$ac_res" != no; then
8166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8170 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8171 $as_echo_n "checking for library containing crypt... " >&6; }
8172 if test "${ac_cv_search_crypt+set}" = set; then
8173 $as_echo_n "(cached) " >&6
8175 ac_func_search_save_LIBS=$LIBS
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8183 /* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8198 for ac_lib in '' crypt; do
8199 if test -z "$ac_lib"; then
8200 ac_res="none required"
8203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (ac_try="$ac_link"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8212 $as_echo "$ac_try_echo") >&5
8213 (eval "$ac_link") 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest$ac_exeext && {
8223 test "$cross_compiling" = yes ||
8224 $as_test_x conftest$ac_exeext
8226 ac_cv_search_crypt=$ac_res
8228 $as_echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8234 rm -rf conftest.dSYM
8235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8237 if test "${ac_cv_search_crypt+set}" = set; then
8241 if test "${ac_cv_search_crypt+set}" = set; then
8244 ac_cv_search_crypt=no
8247 LIBS=$ac_func_search_save_LIBS
8249 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8250 $as_echo "$ac_cv_search_crypt" >&6; }
8251 ac_res=$ac_cv_search_crypt
8252 if test "$ac_res" != no; then
8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8258 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8259 $as_echo_n "checking for library containing fdatasync... " >&6; }
8260 if test "${ac_cv_search_fdatasync+set}" = set; then
8261 $as_echo_n "(cached) " >&6
8263 ac_func_search_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8271 /* Override any GCC internal prototype to avoid an error.
8272 Use char because int might match the return type of a GCC
8273 builtin and then its argument prototype would still apply. */
8281 return fdatasync ();
8286 for ac_lib in '' rt posix4; do
8287 if test -z "$ac_lib"; then
8288 ac_res="none required"
8291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8300 $as_echo "$ac_try_echo") >&5
8301 (eval "$ac_link") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest$ac_exeext && {
8311 test "$cross_compiling" = yes ||
8312 $as_test_x conftest$ac_exeext
8314 ac_cv_search_fdatasync=$ac_res
8316 $as_echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -rf conftest.dSYM
8323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8325 if test "${ac_cv_search_fdatasync+set}" = set; then
8329 if test "${ac_cv_search_fdatasync+set}" = set; then
8332 ac_cv_search_fdatasync=no
8335 LIBS=$ac_func_search_save_LIBS
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8338 $as_echo "$ac_cv_search_fdatasync" >&6; }
8339 ac_res=$ac_cv_search_fdatasync
8340 if test "$ac_res" != no; then
8341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8345 # Required for thread_test.c on Solaris 2.5:
8346 # Other ports use it too (HP-UX) so test unconditionally
8347 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8348 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8349 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8350 $as_echo_n "(cached) " >&6
8352 ac_func_search_save_LIBS=$LIBS
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8360 /* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
8366 char gethostbyname_r ();
8370 return gethostbyname_r ();
8375 for ac_lib in '' nsl; do
8376 if test -z "$ac_lib"; then
8377 ac_res="none required"
8380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8382 rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (ac_try="$ac_link"
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8389 $as_echo "$ac_try_echo") >&5
8390 (eval "$ac_link") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest$ac_exeext && {
8400 test "$cross_compiling" = yes ||
8401 $as_test_x conftest$ac_exeext
8403 ac_cv_search_gethostbyname_r=$ac_res
8405 $as_echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8411 rm -rf conftest.dSYM
8412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8414 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8418 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8421 ac_cv_search_gethostbyname_r=no
8424 LIBS=$ac_func_search_save_LIBS
8426 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8427 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8428 ac_res=$ac_cv_search_gethostbyname_r
8429 if test "$ac_res" != no; then
8430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8435 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8436 $as_echo_n "checking for library containing shmget... " >&6; }
8437 if test "${ac_cv_search_shmget+set}" = set; then
8438 $as_echo_n "(cached) " >&6
8440 ac_func_search_save_LIBS=$LIBS
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 /* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8463 for ac_lib in '' cygipc; do
8464 if test -z "$ac_lib"; then
8465 ac_res="none required"
8468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_link") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest$ac_exeext && {
8488 test "$cross_compiling" = yes ||
8489 $as_test_x conftest$ac_exeext
8491 ac_cv_search_shmget=$ac_res
8493 $as_echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8499 rm -rf conftest.dSYM
8500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8502 if test "${ac_cv_search_shmget+set}" = set; then
8506 if test "${ac_cv_search_shmget+set}" = set; then
8509 ac_cv_search_shmget=no
8512 LIBS=$ac_func_search_save_LIBS
8514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8515 $as_echo "$ac_cv_search_shmget" >&6; }
8516 ac_res=$ac_cv_search_shmget
8517 if test "$ac_res" != no; then
8518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8523 if test "$with_readline" = yes; then
8526 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8527 $as_echo_n "checking for library containing readline... " >&6; }
8528 if test "${pgac_cv_check_readline+set}" = set; then
8529 $as_echo_n "(cached) " >&6
8531 pgac_cv_check_readline=no
8532 pgac_save_LIBS=$LIBS
8533 if test x"$with_libedit_preferred" != x"yes"
8534 then READLINE_ORDER="-lreadline -ledit"
8535 else READLINE_ORDER="-ledit -lreadline"
8537 for pgac_rllib in $READLINE_ORDER ; do
8538 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8539 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any GCC internal prototype to avoid an error.
8548 Use char because int might match the return type of a GCC
8549 builtin and then its argument prototype would still apply. */
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569 $as_echo "$ac_try_echo") >&5
8570 (eval "$ac_link") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest$ac_exeext && {
8580 test "$cross_compiling" = yes ||
8581 $as_test_x conftest$ac_exeext
8584 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8585 # recognize dependent libraries; assume curses is needed if we didn't
8586 # find any dependency.
8588 netbsd* | openbsd* | irix*)
8589 if test x"$pgac_lib" = x"" ; then
8590 pgac_lib=" -lcurses"
8594 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8598 $as_echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8604 rm -rf conftest.dSYM
8605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606 conftest$ac_exeext conftest.$ac_ext
8608 if test "$pgac_cv_check_readline" != no ; then
8612 LIBS=$pgac_save_LIBS
8615 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8616 $as_echo "$pgac_cv_check_readline" >&6; }
8617 if test "$pgac_cv_check_readline" != no ; then
8618 LIBS="$pgac_cv_check_readline $LIBS"
8620 cat >>confdefs.h <<\_ACEOF
8621 #define HAVE_LIBREADLINE 1
8627 if test x"$pgac_cv_check_readline" = x"no"; then
8628 { { $as_echo "$as_me:$LINENO: error: readline library not found
8629 If you have readline already installed, see config.log for details on the
8630 failure. It is possible the compiler isn't looking in the proper directory.
8631 Use --without-readline to disable readline support." >&5
8632 $as_echo "$as_me: error: readline library not found
8633 If you have readline already installed, see config.log for details on the
8634 failure. It is possible the compiler isn't looking in the proper directory.
8635 Use --without-readline to disable readline support." >&2;}
8636 { (exit 1); exit 1; }; }
8640 if test "$with_zlib" = yes; then
8642 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8643 $as_echo_n "checking for inflate in -lz... " >&6; }
8644 if test "${ac_cv_lib_z_inflate+set}" = set; then
8645 $as_echo_n "(cached) " >&6
8647 ac_check_lib_save_LIBS=$LIBS
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8656 /* Override any GCC internal prototype to avoid an error.
8657 Use char because int might match the return type of a GCC
8658 builtin and then its argument prototype would still apply. */
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (ac_try="$ac_link"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_link") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest$ac_exeext && {
8689 test "$cross_compiling" = yes ||
8690 $as_test_x conftest$ac_exeext
8692 ac_cv_lib_z_inflate=yes
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_z_inflate=no
8700 rm -rf conftest.dSYM
8701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8706 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8707 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8708 cat >>confdefs.h <<_ACEOF
8715 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8716 If you have zlib already installed, see config.log for details on the
8717 failure. It is possible the compiler isn't looking in the proper directory.
8718 Use --without-zlib to disable zlib support." >&5
8719 $as_echo "$as_me: error: zlib library not found
8720 If you have zlib already installed, see config.log for details on the
8721 failure. It is possible the compiler isn't looking in the proper directory.
8722 Use --without-zlib to disable zlib support." >&2;}
8723 { (exit 1); exit 1; }; }
8728 if test "$enable_spinlocks" = yes; then
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_SPINLOCKS 1
8735 { $as_echo "$as_me:$LINENO: WARNING:
8736 *** Not using spinlocks will cause poor performance." >&5
8737 $as_echo "$as_me: WARNING:
8738 *** Not using spinlocks will cause poor performance." >&2;}
8741 if test "$with_gssapi" = yes ; then
8742 if test "$PORTNAME" != "win32"; then
8743 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8744 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8745 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8746 $as_echo_n "(cached) " >&6
8748 ac_func_search_save_LIBS=$LIBS
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8762 char gss_init_sec_context ();
8766 return gss_init_sec_context ();
8771 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8772 if test -z "$ac_lib"; then
8773 ac_res="none required"
8776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (ac_try="$ac_link"
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8785 $as_echo "$ac_try_echo") >&5
8786 (eval "$ac_link") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest$ac_exeext && {
8796 test "$cross_compiling" = yes ||
8797 $as_test_x conftest$ac_exeext
8799 ac_cv_search_gss_init_sec_context=$ac_res
8801 $as_echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8807 rm -rf conftest.dSYM
8808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8810 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8814 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8817 ac_cv_search_gss_init_sec_context=no
8820 LIBS=$ac_func_search_save_LIBS
8822 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8823 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8824 ac_res=$ac_cv_search_gss_init_sec_context
8825 if test "$ac_res" != no; then
8826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8829 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8830 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8831 { (exit 1); exit 1; }; }
8835 LIBS="$LIBS -lgssapi32"
8839 if test "$with_krb5" = yes ; then
8840 if test "$PORTNAME" != "win32"; then
8841 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8842 $as_echo_n "checking for library containing com_err... " >&6; }
8843 if test "${ac_cv_search_com_err+set}" = set; then
8844 $as_echo_n "(cached) " >&6
8846 ac_func_search_save_LIBS=$LIBS
8847 cat >conftest.$ac_ext <<_ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8854 /* Override any GCC internal prototype to avoid an error.
8855 Use char because int might match the return type of a GCC
8856 builtin and then its argument prototype would still apply. */
8869 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8870 if test -z "$ac_lib"; then
8871 ac_res="none required"
8874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8876 rm -f conftest.$ac_objext conftest$ac_exeext
8877 if { (ac_try="$ac_link"
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8883 $as_echo "$ac_try_echo") >&5
8884 (eval "$ac_link") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1 >conftest.err
8888 cat conftest.err >&5
8889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest$ac_exeext && {
8894 test "$cross_compiling" = yes ||
8895 $as_test_x conftest$ac_exeext
8897 ac_cv_search_com_err=$ac_res
8899 $as_echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8905 rm -rf conftest.dSYM
8906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8908 if test "${ac_cv_search_com_err+set}" = set; then
8912 if test "${ac_cv_search_com_err+set}" = set; then
8915 ac_cv_search_com_err=no
8918 LIBS=$ac_func_search_save_LIBS
8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8921 $as_echo "$ac_cv_search_com_err" >&6; }
8922 ac_res=$ac_cv_search_com_err
8923 if test "$ac_res" != no; then
8924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8927 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8928 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8929 { (exit 1); exit 1; }; }
8932 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8933 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8934 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8935 $as_echo_n "(cached) " >&6
8937 ac_func_search_save_LIBS=$LIBS
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8945 /* Override any GCC internal prototype to avoid an error.
8946 Use char because int might match the return type of a GCC
8947 builtin and then its argument prototype would still apply. */
8951 char krb5_sendauth ();
8955 return krb5_sendauth ();
8960 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8961 if test -z "$ac_lib"; then
8962 ac_res="none required"
8965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8974 $as_echo "$ac_try_echo") >&5
8975 (eval "$ac_link") 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest$ac_exeext && {
8985 test "$cross_compiling" = yes ||
8986 $as_test_x conftest$ac_exeext
8988 ac_cv_search_krb5_sendauth=$ac_res
8990 $as_echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8996 rm -rf conftest.dSYM
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9003 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9006 ac_cv_search_krb5_sendauth=no
9009 LIBS=$ac_func_search_save_LIBS
9011 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9012 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9013 ac_res=$ac_cv_search_krb5_sendauth
9014 if test "$ac_res" != no; then
9015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9018 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9019 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9020 { (exit 1); exit 1; }; }
9024 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9025 $as_echo_n "checking for library containing com_err... " >&6; }
9026 if test "${ac_cv_search_com_err+set}" = set; then
9027 $as_echo_n "(cached) " >&6
9029 ac_func_search_save_LIBS=$LIBS
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9037 /* Override any GCC internal prototype to avoid an error.
9038 Use char because int might match the return type of a GCC
9039 builtin and then its argument prototype would still apply. */
9052 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9053 if test -z "$ac_lib"; then
9054 ac_res="none required"
9057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9066 $as_echo "$ac_try_echo") >&5
9067 (eval "$ac_link") 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && {
9074 test -z "$ac_c_werror_flag" ||
9075 test ! -s conftest.err
9076 } && test -s conftest$ac_exeext && {
9077 test "$cross_compiling" = yes ||
9078 $as_test_x conftest$ac_exeext
9080 ac_cv_search_com_err=$ac_res
9082 $as_echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -rf conftest.dSYM
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 if test "${ac_cv_search_com_err+set}" = set; then
9095 if test "${ac_cv_search_com_err+set}" = set; then
9098 ac_cv_search_com_err=no
9101 LIBS=$ac_func_search_save_LIBS
9103 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9104 $as_echo "$ac_cv_search_com_err" >&6; }
9105 ac_res=$ac_cv_search_com_err
9106 if test "$ac_res" != no; then
9107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9110 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9111 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9112 { (exit 1); exit 1; }; }
9118 if test "$with_openssl" = yes ; then
9119 if test "$PORTNAME" != "win32"; then
9121 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9122 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9123 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9124 $as_echo_n "(cached) " >&6
9126 ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-lcrypto $LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9141 char CRYPTO_new_ex_data ();
9145 return CRYPTO_new_ex_data ();
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9157 $as_echo "$ac_try_echo") >&5
9158 (eval "$ac_link") 2>conftest.er1
9160 grep -v '^ *+' conftest.er1 >conftest.err
9162 cat conftest.err >&5
9163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } && {
9165 test -z "$ac_c_werror_flag" ||
9166 test ! -s conftest.err
9167 } && test -s conftest$ac_exeext && {
9168 test "$cross_compiling" = yes ||
9169 $as_test_x conftest$ac_exeext
9171 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9173 $as_echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9179 rm -rf conftest.dSYM
9180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9184 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9185 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9186 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_LIBCRYPTO 1
9191 LIBS="-lcrypto $LIBS"
9194 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9195 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9196 { (exit 1); exit 1; }; }
9200 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9201 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9202 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9203 $as_echo_n "(cached) " >&6
9205 ac_check_lib_save_LIBS=$LIBS
9207 cat >conftest.$ac_ext <<_ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9220 char SSL_library_init ();
9224 return SSL_library_init ();
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (ac_try="$ac_link"
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9236 $as_echo "$ac_try_echo") >&5
9237 (eval "$ac_link") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext && {
9247 test "$cross_compiling" = yes ||
9248 $as_test_x conftest$ac_exeext
9250 ac_cv_lib_ssl_SSL_library_init=yes
9252 $as_echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_lib_ssl_SSL_library_init=no
9258 rm -rf conftest.dSYM
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9264 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9265 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_LIBSSL 1
9273 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9274 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9275 { (exit 1); exit 1; }; }
9279 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9280 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9281 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9282 $as_echo_n "(cached) " >&6
9284 ac_func_search_save_LIBS=$LIBS
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9298 char CRYPTO_new_ex_data ();
9302 return CRYPTO_new_ex_data ();
9307 for ac_lib in '' eay32 crypto; do
9308 if test -z "$ac_lib"; then
9309 ac_res="none required"
9312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (ac_try="$ac_link"
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9321 $as_echo "$ac_try_echo") >&5
9322 (eval "$ac_link") 2>conftest.er1
9324 grep -v '^ *+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest$ac_exeext && {
9332 test "$cross_compiling" = yes ||
9333 $as_test_x conftest$ac_exeext
9335 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9337 $as_echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9343 rm -rf conftest.dSYM
9344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9346 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9350 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9353 ac_cv_search_CRYPTO_new_ex_data=no
9356 LIBS=$ac_func_search_save_LIBS
9358 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9359 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9360 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9361 if test "$ac_res" != no; then
9362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9365 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9366 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9367 { (exit 1); exit 1; }; }
9370 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9371 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9372 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9373 $as_echo_n "(cached) " >&6
9375 ac_func_search_save_LIBS=$LIBS
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9389 char SSL_library_init ();
9393 return SSL_library_init ();
9398 for ac_lib in '' ssleay32 ssl; do
9399 if test -z "$ac_lib"; then
9400 ac_res="none required"
9403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9412 $as_echo "$ac_try_echo") >&5
9413 (eval "$ac_link") 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest$ac_exeext && {
9423 test "$cross_compiling" = yes ||
9424 $as_test_x conftest$ac_exeext
9426 ac_cv_search_SSL_library_init=$ac_res
9428 $as_echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9434 rm -rf conftest.dSYM
9435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9441 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9444 ac_cv_search_SSL_library_init=no
9447 LIBS=$ac_func_search_save_LIBS
9449 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9450 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9451 ac_res=$ac_cv_search_SSL_library_init
9452 if test "$ac_res" != no; then
9453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9456 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9457 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9458 { (exit 1); exit 1; }; }
9464 if test "$with_pam" = yes ; then
9466 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9467 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9468 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9469 $as_echo_n "(cached) " >&6
9471 ac_check_lib_save_LIBS=$LIBS
9473 cat >conftest.$ac_ext <<_ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9490 return pam_start ();
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9505 grep -v '^ *+' conftest.er1 >conftest.err
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest$ac_exeext
9516 ac_cv_lib_pam_pam_start=yes
9518 $as_echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_lib_pam_pam_start=no
9524 rm -rf conftest.dSYM
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9530 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9531 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE_LIBPAM 1
9539 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9540 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9541 { (exit 1); exit 1; }; }
9546 if test "$with_libxml" = yes ; then
9548 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9549 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9550 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9551 $as_echo_n "(cached) " >&6
9553 ac_check_lib_save_LIBS=$LIBS
9555 cat >conftest.$ac_ext <<_ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9568 char xmlSaveToBuffer ();
9572 return xmlSaveToBuffer ();
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_link") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest$ac_exeext && {
9595 test "$cross_compiling" = yes ||
9596 $as_test_x conftest$ac_exeext
9598 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9600 $as_echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9603 ac_cv_lib_xml2_xmlSaveToBuffer=no
9606 rm -rf conftest.dSYM
9607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9612 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9613 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9614 cat >>confdefs.h <<_ACEOF
9615 #define HAVE_LIBXML2 1
9621 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9622 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9623 { (exit 1); exit 1; }; }
9628 if test "$with_libxslt" = yes ; then
9630 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9631 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9632 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9633 $as_echo_n "(cached) " >&6
9635 ac_check_lib_save_LIBS=$LIBS
9637 cat >conftest.$ac_ext <<_ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9650 char xsltCleanupGlobals ();
9654 return xsltCleanupGlobals ();
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9666 $as_echo "$ac_try_echo") >&5
9667 (eval "$ac_link") 2>conftest.er1
9669 grep -v '^ *+' conftest.er1 >conftest.err
9671 cat conftest.err >&5
9672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext && {
9677 test "$cross_compiling" = yes ||
9678 $as_test_x conftest$ac_exeext
9680 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9682 $as_echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_lib_xslt_xsltCleanupGlobals=no
9688 rm -rf conftest.dSYM
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9694 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9695 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9696 cat >>confdefs.h <<_ACEOF
9697 #define HAVE_LIBXSLT 1
9703 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9704 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9705 { (exit 1); exit 1; }; }
9710 # for contrib/sepgsql
9711 if test "$with_selinux" = yes; then
9713 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9714 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9715 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9716 $as_echo_n "(cached) " >&6
9718 ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-lselinux $LIBS"
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9727 /* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
9733 char selinux_status_open ();
9737 return selinux_status_open ();
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9749 $as_echo "$ac_try_echo") >&5
9750 (eval "$ac_link") 2>conftest.er1
9752 grep -v '^ *+' conftest.er1 >conftest.err
9754 cat conftest.err >&5
9755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } && {
9757 test -z "$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 } && test -s conftest$ac_exeext && {
9760 test "$cross_compiling" = yes ||
9761 $as_test_x conftest$ac_exeext
9763 ac_cv_lib_selinux_selinux_status_open=yes
9765 $as_echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_lib_selinux_selinux_status_open=no
9771 rm -rf conftest.dSYM
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9776 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9777 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9778 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9779 cat >>confdefs.h <<_ACEOF
9780 #define HAVE_LIBSELINUX 1
9783 LIBS="-lselinux $LIBS"
9786 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9787 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9788 { (exit 1); exit 1; }; }
9793 # for contrib/uuid-ossp
9794 if test "$with_ossp_uuid" = yes ; then
9795 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9796 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9797 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9798 $as_echo_n "(cached) " >&6
9800 ac_check_lib_save_LIBS=$LIBS
9801 LIBS="-lossp-uuid $LIBS"
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9815 char uuid_export ();
9819 return uuid_export ();
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (ac_try="$ac_link"
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831 $as_echo "$ac_try_echo") >&5
9832 (eval "$ac_link") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest$ac_exeext && {
9842 test "$cross_compiling" = yes ||
9843 $as_test_x conftest$ac_exeext
9845 ac_cv_lib_ossp_uuid_uuid_export=yes
9847 $as_echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_cv_lib_ossp_uuid_uuid_export=no
9853 rm -rf conftest.dSYM
9854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9859 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9860 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9861 OSSP_UUID_LIBS="-lossp-uuid"
9863 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9864 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9865 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9866 $as_echo_n "(cached) " >&6
9868 ac_check_lib_save_LIBS=$LIBS
9870 cat >conftest.$ac_ext <<_ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9883 char uuid_export ();
9887 return uuid_export ();
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899 $as_echo "$ac_try_echo") >&5
9900 (eval "$ac_link") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest$ac_exeext && {
9910 test "$cross_compiling" = yes ||
9911 $as_test_x conftest$ac_exeext
9913 ac_cv_lib_uuid_uuid_export=yes
9915 $as_echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_lib_uuid_uuid_export=no
9921 rm -rf conftest.dSYM
9922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9927 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9928 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9929 OSSP_UUID_LIBS="-luuid"
9931 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9932 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9933 { (exit 1); exit 1; }; }
9946 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9947 $as_echo_n "checking for ANSI C header files... " >&6; }
9948 if test "${ac_cv_header_stdc+set}" = set; then
9949 $as_echo_n "(cached) " >&6
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9977 $as_echo "$ac_try_echo") >&5
9978 (eval "$ac_compile") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest.$ac_objext; then
9988 ac_cv_header_stdc=yes
9990 $as_echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_header_stdc=no
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 if test $ac_cv_header_stdc = yes; then
9999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 #include <string.h>
10009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10010 $EGREP "memchr" >/dev/null 2>&1; then
10013 ac_cv_header_stdc=no
10019 if test $ac_cv_header_stdc = yes; then
10020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <stdlib.h>
10030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10031 $EGREP "free" >/dev/null 2>&1; then
10034 ac_cv_header_stdc=no
10040 if test $ac_cv_header_stdc = yes; then
10041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10042 if test "$cross_compiling" = yes; then
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10052 #include <stdlib.h>
10053 #if ((' ' & 0x0FF) == 0x020)
10054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10057 # define ISLOWER(c) \
10058 (('a' <= (c) && (c) <= 'i') \
10059 || ('j' <= (c) && (c) <= 'r') \
10060 || ('s' <= (c) && (c) <= 'z'))
10061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10069 for (i = 0; i < 256; i++)
10070 if (XOR (islower (i), ISLOWER (i))
10071 || toupper (i) != TOUPPER (i))
10076 rm -f conftest$ac_exeext
10077 if { (ac_try="$ac_link"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083 $as_echo "$ac_try_echo") >&5
10084 (eval "$ac_link") 2>&5
10086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10088 { (case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10093 $as_echo "$ac_try_echo") >&5
10094 (eval "$ac_try") 2>&5
10096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10100 $as_echo "$as_me: program exited with status $ac_status" >&5
10101 $as_echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10104 ( exit $ac_status )
10105 ac_cv_header_stdc=no
10107 rm -rf conftest.dSYM
10108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10115 $as_echo "$ac_cv_header_stdc" >&6; }
10116 if test $ac_cv_header_stdc = yes; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define STDC_HEADERS 1
10124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10135 inttypes.h stdint.h unistd.h
10137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10139 $as_echo_n "checking for $ac_header... " >&6; }
10140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10141 $as_echo_n "(cached) " >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10149 $ac_includes_default
10151 #include <$ac_header>
10153 rm -f conftest.$ac_objext
10154 if { (ac_try="$ac_compile"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10160 $as_echo "$ac_try_echo") >&5
10161 (eval "$ac_compile") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest.$ac_objext; then
10171 eval "$as_ac_Header=yes"
10173 $as_echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 eval "$as_ac_Header=no"
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181 ac_res=`eval 'as_val=${'$as_ac_Header'}
10182 $as_echo "$as_val"'`
10183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10184 $as_echo "$ac_res" >&6; }
10185 as_val=`eval 'as_val=${'$as_ac_Header'}
10186 $as_echo "$as_val"'`
10187 if test "x$as_val" = x""yes; then
10188 cat >>confdefs.h <<_ACEOF
10189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10225 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
10227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10230 $as_echo_n "checking for $ac_header... " >&6; }
10231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10232 $as_echo_n "(cached) " >&6
10234 ac_res=`eval 'as_val=${'$as_ac_Header'}
10235 $as_echo "$as_val"'`
10236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10237 $as_echo "$ac_res" >&6; }
10239 # Is the header compilable?
10240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 $as_echo_n "checking $ac_header usability... " >&6; }
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 #include <$ac_header>
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10258 $as_echo "$ac_try_echo") >&5
10259 (eval "$ac_compile") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest.$ac_objext; then
10269 ac_header_compiler=yes
10271 $as_echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_header_compiler=no
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279 $as_echo "$ac_header_compiler" >&6; }
10281 # Is the header present?
10282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10283 $as_echo_n "checking $ac_header presence... " >&6; }
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 #include <$ac_header>
10292 if { (ac_try="$ac_cpp conftest.$ac_ext"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } >/dev/null && {
10306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10307 test ! -s conftest.err
10309 ac_header_preproc=yes
10311 $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_header_preproc=no
10317 rm -f conftest.err conftest.$ac_ext
10318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10319 $as_echo "$ac_header_preproc" >&6; }
10321 # So? What about this header?
10322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10328 ac_header_preproc=yes
10331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10344 ## ---------------------------------------- ##
10345 ## Report this to pgsql-bugs@postgresql.org ##
10346 ## ---------------------------------------- ##
10348 ) | sed "s/^/$as_me: WARNING: /" >&2
10351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10352 $as_echo_n "checking for $ac_header... " >&6; }
10353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10354 $as_echo_n "(cached) " >&6
10356 eval "$as_ac_Header=\$ac_header_preproc"
10358 ac_res=`eval 'as_val=${'$as_ac_Header'}
10359 $as_echo "$as_val"'`
10360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10361 $as_echo "$ac_res" >&6; }
10364 as_val=`eval 'as_val=${'$as_ac_Header'}
10365 $as_echo "$as_val"'`
10366 if test "x$as_val" = x""yes; then
10367 cat >>confdefs.h <<_ACEOF
10368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10377 # is included first.
10379 for ac_header in net/if.h
10381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10383 $as_echo_n "checking for $ac_header... " >&6; }
10384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10385 $as_echo_n "(cached) " >&6
10387 cat >conftest.$ac_ext <<_ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393 $ac_includes_default
10394 #ifdef HAVE_SYS_SOCKET_H
10395 #include <sys/socket.h>
10399 #include <$ac_header>
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_compile") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest.$ac_objext; then
10419 eval "$as_ac_Header=yes"
10421 $as_echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 eval "$as_ac_Header=no"
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 ac_res=`eval 'as_val=${'$as_ac_Header'}
10430 $as_echo "$as_val"'`
10431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10432 $as_echo "$ac_res" >&6; }
10433 as_val=`eval 'as_val=${'$as_ac_Header'}
10434 $as_echo "$as_val"'`
10435 if test "x$as_val" = x""yes; then
10436 cat >>confdefs.h <<_ACEOF
10437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10445 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10446 # netinet/in.h is included first.
10448 for ac_header in netinet/in.h
10450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10453 $as_echo_n "checking for $ac_header... " >&6; }
10454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10455 $as_echo_n "(cached) " >&6
10457 ac_res=`eval 'as_val=${'$as_ac_Header'}
10458 $as_echo "$as_val"'`
10459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10460 $as_echo "$ac_res" >&6; }
10462 # Is the header compilable?
10463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10464 $as_echo_n "checking $ac_header usability... " >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 #include <$ac_header>
10474 rm -f conftest.$ac_objext
10475 if { (ac_try="$ac_compile"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10481 $as_echo "$ac_try_echo") >&5
10482 (eval "$ac_compile") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest.$ac_objext; then
10492 ac_header_compiler=yes
10494 $as_echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 ac_header_compiler=no
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10502 $as_echo "$ac_header_compiler" >&6; }
10504 # Is the header present?
10505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10506 $as_echo_n "checking $ac_header presence... " >&6; }
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 #include <$ac_header>
10515 if { (ac_try="$ac_cpp conftest.$ac_ext"
10516 case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10521 $as_echo "$ac_try_echo") >&5
10522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1 >conftest.err
10526 cat conftest.err >&5
10527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } >/dev/null && {
10529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10532 ac_header_preproc=yes
10534 $as_echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 ac_header_preproc=no
10540 rm -f conftest.err conftest.$ac_ext
10541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10542 $as_echo "$ac_header_preproc" >&6; }
10544 # So? What about this header?
10545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10551 ac_header_preproc=yes
10554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10557 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10561 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10567 ## ---------------------------------------- ##
10568 ## Report this to pgsql-bugs@postgresql.org ##
10569 ## ---------------------------------------- ##
10571 ) | sed "s/^/$as_me: WARNING: /" >&2
10574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10575 $as_echo_n "checking for $ac_header... " >&6; }
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577 $as_echo_n "(cached) " >&6
10579 eval "$as_ac_Header=\$ac_header_preproc"
10581 ac_res=`eval 'as_val=${'$as_ac_Header'}
10582 $as_echo "$as_val"'`
10583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10584 $as_echo "$ac_res" >&6; }
10587 as_val=`eval 'as_val=${'$as_ac_Header'}
10588 $as_echo "$as_val"'`
10589 if test "x$as_val" = x""yes; then
10590 cat >>confdefs.h <<_ACEOF
10591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10599 for ac_header in netinet/tcp.h
10601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10603 $as_echo_n "checking for $ac_header... " >&6; }
10604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10605 $as_echo_n "(cached) " >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 $ac_includes_default
10614 #ifdef HAVE_NETINET_IN_H
10615 #include <netinet/in.h>
10619 #include <$ac_header>
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10628 $as_echo "$ac_try_echo") >&5
10629 (eval "$ac_compile") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest.$ac_objext; then
10639 eval "$as_ac_Header=yes"
10641 $as_echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 eval "$as_ac_Header=no"
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 ac_res=`eval 'as_val=${'$as_ac_Header'}
10650 $as_echo "$as_val"'`
10651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10652 $as_echo "$ac_res" >&6; }
10653 as_val=`eval 'as_val=${'$as_ac_Header'}
10654 $as_echo "$as_val"'`
10655 if test "x$as_val" = x""yes; then
10656 cat >>confdefs.h <<_ACEOF
10657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10665 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10667 for ac_header in readline/readline.h
10669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10672 $as_echo_n "checking for $ac_header... " >&6; }
10673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10674 $as_echo_n "(cached) " >&6
10676 ac_res=`eval 'as_val=${'$as_ac_Header'}
10677 $as_echo "$as_val"'`
10678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10679 $as_echo "$ac_res" >&6; }
10681 # Is the header compilable?
10682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10683 $as_echo_n "checking $ac_header usability... " >&6; }
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 $ac_includes_default
10691 #include <$ac_header>
10693 rm -f conftest.$ac_objext
10694 if { (ac_try="$ac_compile"
10695 case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10700 $as_echo "$ac_try_echo") >&5
10701 (eval "$ac_compile") 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 ac_header_compiler=yes
10713 $as_echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_header_compiler=no
10719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721 $as_echo "$ac_header_compiler" >&6; }
10723 # Is the header present?
10724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10725 $as_echo_n "checking $ac_header presence... " >&6; }
10726 cat >conftest.$ac_ext <<_ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <$ac_header>
10734 if { (ac_try="$ac_cpp conftest.$ac_ext"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10740 $as_echo "$ac_try_echo") >&5
10741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10743 grep -v '^ *+' conftest.er1 >conftest.err
10745 cat conftest.err >&5
10746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } >/dev/null && {
10748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10749 test ! -s conftest.err
10751 ac_header_preproc=yes
10753 $as_echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_header_preproc=no
10759 rm -f conftest.err conftest.$ac_ext
10760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10761 $as_echo "$ac_header_preproc" >&6; }
10763 # So? What about this header?
10764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10770 ac_header_preproc=yes
10773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10776 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10780 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10786 ## ---------------------------------------- ##
10787 ## Report this to pgsql-bugs@postgresql.org ##
10788 ## ---------------------------------------- ##
10790 ) | sed "s/^/$as_me: WARNING: /" >&2
10793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 $as_echo_n "checking for $ac_header... " >&6; }
10795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10796 $as_echo_n "(cached) " >&6
10798 eval "$as_ac_Header=\$ac_header_preproc"
10800 ac_res=`eval 'as_val=${'$as_ac_Header'}
10801 $as_echo "$as_val"'`
10802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10803 $as_echo "$ac_res" >&6; }
10806 as_val=`eval 'as_val=${'$as_ac_Header'}
10807 $as_echo "$as_val"'`
10808 if test "x$as_val" = x""yes; then
10809 cat >>confdefs.h <<_ACEOF
10810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10815 for ac_header in readline.h
10817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10819 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 $as_echo_n "checking for $ac_header... " >&6; }
10821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10822 $as_echo_n "(cached) " >&6
10824 ac_res=`eval 'as_val=${'$as_ac_Header'}
10825 $as_echo "$as_val"'`
10826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10827 $as_echo "$ac_res" >&6; }
10829 # Is the header compilable?
10830 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10831 $as_echo_n "checking $ac_header usability... " >&6; }
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 $ac_includes_default
10839 #include <$ac_header>
10841 rm -f conftest.$ac_objext
10842 if { (ac_try="$ac_compile"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10848 $as_echo "$ac_try_echo") >&5
10849 (eval "$ac_compile") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest.$ac_objext; then
10859 ac_header_compiler=yes
10861 $as_echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_header_compiler=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10869 $as_echo "$ac_header_compiler" >&6; }
10871 # Is the header present?
10872 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10873 $as_echo_n "checking $ac_header presence... " >&6; }
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <$ac_header>
10882 if { (ac_try="$ac_cpp conftest.$ac_ext"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888 $as_echo "$ac_try_echo") >&5
10889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } >/dev/null && {
10896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10899 ac_header_preproc=yes
10901 $as_echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_header_preproc=no
10907 rm -f conftest.err conftest.$ac_ext
10908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10909 $as_echo "$ac_header_preproc" >&6; }
10911 # So? What about this header?
10912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10915 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10918 ac_header_preproc=yes
10921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10922 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10928 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10934 ## ---------------------------------------- ##
10935 ## Report this to pgsql-bugs@postgresql.org ##
10936 ## ---------------------------------------- ##
10938 ) | sed "s/^/$as_me: WARNING: /" >&2
10941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 $as_echo_n "checking for $ac_header... " >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944 $as_echo_n "(cached) " >&6
10946 eval "$as_ac_Header=\$ac_header_preproc"
10948 ac_res=`eval 'as_val=${'$as_ac_Header'}
10949 $as_echo "$as_val"'`
10950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10951 $as_echo "$ac_res" >&6; }
10954 as_val=`eval 'as_val=${'$as_ac_Header'}
10955 $as_echo "$as_val"'`
10956 if test "x$as_val" = x""yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10962 { { $as_echo "$as_me:$LINENO: error: readline header not found
10963 If you have readline already installed, see config.log for details on the
10964 failure. It is possible the compiler isn't looking in the proper directory.
10965 Use --without-readline to disable readline support." >&5
10966 $as_echo "$as_me: error: readline header not found
10967 If you have readline already installed, see config.log for details on the
10968 failure. It is possible the compiler isn't looking in the proper directory.
10969 Use --without-readline to disable readline support." >&2;}
10970 { (exit 1); exit 1; }; }
10980 for ac_header in readline/history.h
10982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10985 $as_echo_n "checking for $ac_header... " >&6; }
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987 $as_echo_n "(cached) " >&6
10989 ac_res=`eval 'as_val=${'$as_ac_Header'}
10990 $as_echo "$as_val"'`
10991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10992 $as_echo "$ac_res" >&6; }
10994 # Is the header compilable?
10995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996 $as_echo_n "checking $ac_header usability... " >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 $ac_includes_default
11004 #include <$ac_header>
11006 rm -f conftest.$ac_objext
11007 if { (ac_try="$ac_compile"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11013 $as_echo "$ac_try_echo") >&5
11014 (eval "$ac_compile") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest.$ac_objext; then
11024 ac_header_compiler=yes
11026 $as_echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_header_compiler=no
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11034 $as_echo "$ac_header_compiler" >&6; }
11036 # Is the header present?
11037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11038 $as_echo_n "checking $ac_header presence... " >&6; }
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <$ac_header>
11047 if { (ac_try="$ac_cpp conftest.$ac_ext"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11053 $as_echo "$ac_try_echo") >&5
11054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } >/dev/null && {
11061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11062 test ! -s conftest.err
11064 ac_header_preproc=yes
11066 $as_echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_header_preproc=no
11072 rm -f conftest.err conftest.$ac_ext
11073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 $as_echo "$ac_header_preproc" >&6; }
11076 # So? What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083 ac_header_preproc=yes
11086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099 ## ---------------------------------------- ##
11100 ## Report this to pgsql-bugs@postgresql.org ##
11101 ## ---------------------------------------- ##
11103 ) | sed "s/^/$as_me: WARNING: /" >&2
11106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 $as_echo_n "checking for $ac_header... " >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 $as_echo_n "(cached) " >&6
11111 eval "$as_ac_Header=\$ac_header_preproc"
11113 ac_res=`eval 'as_val=${'$as_ac_Header'}
11114 $as_echo "$as_val"'`
11115 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11116 $as_echo "$ac_res" >&6; }
11119 as_val=`eval 'as_val=${'$as_ac_Header'}
11120 $as_echo "$as_val"'`
11121 if test "x$as_val" = x""yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 for ac_header in history.h
11130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 $as_echo_n "checking for $ac_header... " >&6; }
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135 $as_echo_n "(cached) " >&6
11137 ac_res=`eval 'as_val=${'$as_ac_Header'}
11138 $as_echo "$as_val"'`
11139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11140 $as_echo "$ac_res" >&6; }
11142 # Is the header compilable?
11143 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11144 $as_echo_n "checking $ac_header usability... " >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 $ac_includes_default
11152 #include <$ac_header>
11154 rm -f conftest.$ac_objext
11155 if { (ac_try="$ac_compile"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162 (eval "$ac_compile") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest.$ac_objext; then
11172 ac_header_compiler=yes
11174 $as_echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 ac_header_compiler=no
11180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182 $as_echo "$ac_header_compiler" >&6; }
11184 # Is the header present?
11185 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186 $as_echo_n "checking $ac_header presence... " >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 #include <$ac_header>
11195 if { (ac_try="$ac_cpp conftest.$ac_ext"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } >/dev/null && {
11209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11212 ac_header_preproc=yes
11214 $as_echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_header_preproc=no
11220 rm -f conftest.err conftest.$ac_ext
11221 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222 $as_echo "$ac_header_preproc" >&6; }
11224 # So? What about this header?
11225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231 ac_header_preproc=yes
11234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11237 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11241 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11247 ## ---------------------------------------- ##
11248 ## Report this to pgsql-bugs@postgresql.org ##
11249 ## ---------------------------------------- ##
11251 ) | sed "s/^/$as_me: WARNING: /" >&2
11254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 $as_echo_n "checking for $ac_header... " >&6; }
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 $as_echo_n "(cached) " >&6
11259 eval "$as_ac_Header=\$ac_header_preproc"
11261 ac_res=`eval 'as_val=${'$as_ac_Header'}
11262 $as_echo "$as_val"'`
11263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11264 $as_echo "$ac_res" >&6; }
11267 as_val=`eval 'as_val=${'$as_ac_Header'}
11268 $as_echo "$as_val"'`
11269 if test "x$as_val" = x""yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11275 { { $as_echo "$as_me:$LINENO: error: history header not found
11276 If you have readline already installed, see config.log for details on the
11277 failure. It is possible the compiler isn't looking in the proper directory.
11278 Use --without-readline to disable readline support." >&5
11279 $as_echo "$as_me: error: history header not found
11280 If you have readline already installed, see config.log for details on the
11281 failure. It is possible the compiler isn't looking in the proper directory.
11282 Use --without-readline to disable readline support." >&2;}
11283 { (exit 1); exit 1; }; }
11294 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11295 # Some installations of libedit usurp /usr/include/readline/, which seems
11296 # bad practice, since in combined installations readline will have its headers
11297 # there. We might have to resort to AC_EGREP checks to make sure we found
11298 # the proper header...
11300 for ac_header in editline/readline.h
11302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11305 $as_echo_n "checking for $ac_header... " >&6; }
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307 $as_echo_n "(cached) " >&6
11309 ac_res=`eval 'as_val=${'$as_ac_Header'}
11310 $as_echo "$as_val"'`
11311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11314 # Is the header compilable?
11315 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 $as_echo_n "checking $ac_header usability... " >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 $ac_includes_default
11324 #include <$ac_header>
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333 $as_echo "$ac_try_echo") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
11344 ac_header_compiler=yes
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 ac_header_compiler=no
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 $as_echo "$ac_header_compiler" >&6; }
11356 # Is the header present?
11357 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 $as_echo_n "checking $ac_header presence... " >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <$ac_header>
11367 if { (ac_try="$ac_cpp conftest.$ac_ext"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11373 $as_echo "$ac_try_echo") >&5
11374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11376 grep -v '^ *+' conftest.er1 >conftest.err
11378 cat conftest.err >&5
11379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } >/dev/null && {
11381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11384 ac_header_preproc=yes
11386 $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_header_preproc=no
11392 rm -f conftest.err conftest.$ac_ext
11393 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 $as_echo "$ac_header_preproc" >&6; }
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11419 ## ---------------------------------------- ##
11420 ## Report this to pgsql-bugs@postgresql.org ##
11421 ## ---------------------------------------- ##
11423 ) | sed "s/^/$as_me: WARNING: /" >&2
11426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 $as_echo_n "checking for $ac_header... " >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 $as_echo_n "(cached) " >&6
11431 eval "$as_ac_Header=\$ac_header_preproc"
11433 ac_res=`eval 'as_val=${'$as_ac_Header'}
11434 $as_echo "$as_val"'`
11435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436 $as_echo "$ac_res" >&6; }
11439 as_val=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 if test "x$as_val" = x""yes; then
11442 cat >>confdefs.h <<_ACEOF
11443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448 for ac_header in readline.h
11450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11453 $as_echo_n "checking for $ac_header... " >&6; }
11454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11455 $as_echo_n "(cached) " >&6
11457 ac_res=`eval 'as_val=${'$as_ac_Header'}
11458 $as_echo "$as_val"'`
11459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11460 $as_echo "$ac_res" >&6; }
11462 # Is the header compilable?
11463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11464 $as_echo_n "checking $ac_header usability... " >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 #include <$ac_header>
11474 rm -f conftest.$ac_objext
11475 if { (ac_try="$ac_compile"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11481 $as_echo "$ac_try_echo") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11492 ac_header_compiler=yes
11494 $as_echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 $as_echo "$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 $as_echo_n "checking $ac_header presence... " >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11521 $as_echo "$ac_try_echo") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null && {
11529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11532 ac_header_preproc=yes
11534 $as_echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_preproc=no
11540 rm -f conftest.err conftest.$ac_ext
11541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 $as_echo "$ac_header_preproc" >&6; }
11544 # So? What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551 ac_header_preproc=yes
11554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11557 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11561 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11567 ## ---------------------------------------- ##
11568 ## Report this to pgsql-bugs@postgresql.org ##
11569 ## ---------------------------------------- ##
11571 ) | sed "s/^/$as_me: WARNING: /" >&2
11574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 $as_echo_n "checking for $ac_header... " >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577 $as_echo_n "(cached) " >&6
11579 eval "$as_ac_Header=\$ac_header_preproc"
11581 ac_res=`eval 'as_val=${'$as_ac_Header'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11587 as_val=`eval 'as_val=${'$as_ac_Header'}
11588 $as_echo "$as_val"'`
11589 if test "x$as_val" = x""yes; then
11590 cat >>confdefs.h <<_ACEOF
11591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596 for ac_header in readline/readline.h
11598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11601 $as_echo_n "checking for $ac_header... " >&6; }
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603 $as_echo_n "(cached) " >&6
11605 ac_res=`eval 'as_val=${'$as_ac_Header'}
11606 $as_echo "$as_val"'`
11607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11608 $as_echo "$ac_res" >&6; }
11610 # Is the header compilable?
11611 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11612 $as_echo_n "checking $ac_header usability... " >&6; }
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 $ac_includes_default
11620 #include <$ac_header>
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11629 $as_echo "$ac_try_echo") >&5
11630 (eval "$ac_compile") 2>conftest.er1
11632 grep -v '^ *+' conftest.er1 >conftest.err
11634 cat conftest.err >&5
11635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } && {
11637 test -z "$ac_c_werror_flag" ||
11638 test ! -s conftest.err
11639 } && test -s conftest.$ac_objext; then
11640 ac_header_compiler=yes
11642 $as_echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 ac_header_compiler=no
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11650 $as_echo "$ac_header_compiler" >&6; }
11652 # Is the header present?
11653 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11654 $as_echo_n "checking $ac_header presence... " >&6; }
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <$ac_header>
11663 if { (ac_try="$ac_cpp conftest.$ac_ext"
11664 case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11669 $as_echo "$ac_try_echo") >&5
11670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } >/dev/null && {
11677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11680 ac_header_preproc=yes
11682 $as_echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 ac_header_preproc=no
11688 rm -f conftest.err conftest.$ac_ext
11689 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690 $as_echo "$ac_header_preproc" >&6; }
11692 # So? What about this header?
11693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11699 ac_header_preproc=yes
11702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11703 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11705 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11707 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11709 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11711 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11713 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11715 ## ---------------------------------------- ##
11716 ## Report this to pgsql-bugs@postgresql.org ##
11717 ## ---------------------------------------- ##
11719 ) | sed "s/^/$as_me: WARNING: /" >&2
11722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11723 $as_echo_n "checking for $ac_header... " >&6; }
11724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725 $as_echo_n "(cached) " >&6
11727 eval "$as_ac_Header=\$ac_header_preproc"
11729 ac_res=`eval 'as_val=${'$as_ac_Header'}
11730 $as_echo "$as_val"'`
11731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11732 $as_echo "$ac_res" >&6; }
11735 as_val=`eval 'as_val=${'$as_ac_Header'}
11736 $as_echo "$as_val"'`
11737 if test "x$as_val" = x""yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11743 { { $as_echo "$as_me:$LINENO: error: readline header not found
11744 If you have libedit already installed, see config.log for details on the
11745 failure. It is possible the compiler isn't looking in the proper directory.
11746 Use --without-readline to disable libedit support." >&5
11747 $as_echo "$as_me: error: readline header not found
11748 If you have libedit already installed, see config.log for details on the
11749 failure. It is possible the compiler isn't looking in the proper directory.
11750 Use --without-readline to disable libedit support." >&2;}
11751 { (exit 1); exit 1; }; }
11764 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11765 # not be there at all. Hence, don't complain if not found. We must check
11766 # though, since in yet other versions it is an independent header.
11768 for ac_header in editline/history.h
11770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11773 $as_echo_n "checking for $ac_header... " >&6; }
11774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11775 $as_echo_n "(cached) " >&6
11777 ac_res=`eval 'as_val=${'$as_ac_Header'}
11778 $as_echo "$as_val"'`
11779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11782 # Is the header compilable?
11783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11784 $as_echo_n "checking $ac_header usability... " >&6; }
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11792 #include <$ac_header>
11794 rm -f conftest.$ac_objext
11795 if { (ac_try="$ac_compile"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11801 $as_echo "$ac_try_echo") >&5
11802 (eval "$ac_compile") 2>conftest.er1
11804 grep -v '^ *+' conftest.er1 >conftest.err
11806 cat conftest.err >&5
11807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest.$ac_objext; then
11812 ac_header_compiler=yes
11814 $as_echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ac_header_compiler=no
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11822 $as_echo "$ac_header_compiler" >&6; }
11824 # Is the header present?
11825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11826 $as_echo_n "checking $ac_header presence... " >&6; }
11827 cat >conftest.$ac_ext <<_ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 #include <$ac_header>
11835 if { (ac_try="$ac_cpp conftest.$ac_ext"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11841 $as_echo "$ac_try_echo") >&5
11842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } >/dev/null && {
11849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11852 ac_header_preproc=yes
11854 $as_echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 ac_header_preproc=no
11860 rm -f conftest.err conftest.$ac_ext
11861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11862 $as_echo "$ac_header_preproc" >&6; }
11864 # So? What about this header?
11865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11871 ac_header_preproc=yes
11874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11887 ## ---------------------------------------- ##
11888 ## Report this to pgsql-bugs@postgresql.org ##
11889 ## ---------------------------------------- ##
11891 ) | sed "s/^/$as_me: WARNING: /" >&2
11894 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 $as_echo_n "checking for $ac_header... " >&6; }
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897 $as_echo_n "(cached) " >&6
11899 eval "$as_ac_Header=\$ac_header_preproc"
11901 ac_res=`eval 'as_val=${'$as_ac_Header'}
11902 $as_echo "$as_val"'`
11903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11904 $as_echo "$ac_res" >&6; }
11907 as_val=`eval 'as_val=${'$as_ac_Header'}
11908 $as_echo "$as_val"'`
11909 if test "x$as_val" = x""yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11916 for ac_header in history.h
11918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 $as_echo_n "checking for $ac_header... " >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923 $as_echo_n "(cached) " >&6
11925 ac_res=`eval 'as_val=${'$as_ac_Header'}
11926 $as_echo "$as_val"'`
11927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11928 $as_echo "$ac_res" >&6; }
11930 # Is the header compilable?
11931 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932 $as_echo_n "checking $ac_header usability... " >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 $ac_includes_default
11940 #include <$ac_header>
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11949 $as_echo "$ac_try_echo") >&5
11950 (eval "$ac_compile") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest.$ac_objext; then
11960 ac_header_compiler=yes
11962 $as_echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_header_compiler=no
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11970 $as_echo "$ac_header_compiler" >&6; }
11972 # Is the header present?
11973 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11974 $as_echo_n "checking $ac_header presence... " >&6; }
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 #include <$ac_header>
11983 if { (ac_try="$ac_cpp conftest.$ac_ext"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11989 $as_echo "$ac_try_echo") >&5
11990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11992 grep -v '^ *+' conftest.er1 >conftest.err
11994 cat conftest.err >&5
11995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } >/dev/null && {
11997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11998 test ! -s conftest.err
12000 ac_header_preproc=yes
12002 $as_echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_header_preproc=no
12008 rm -f conftest.err conftest.$ac_ext
12009 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12010 $as_echo "$ac_header_preproc" >&6; }
12012 # So? What about this header?
12013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12016 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12019 ac_header_preproc=yes
12022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12023 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12025 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12027 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12029 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12031 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12033 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12035 ## ---------------------------------------- ##
12036 ## Report this to pgsql-bugs@postgresql.org ##
12037 ## ---------------------------------------- ##
12039 ) | sed "s/^/$as_me: WARNING: /" >&2
12042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 $as_echo_n "checking for $ac_header... " >&6; }
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045 $as_echo_n "(cached) " >&6
12047 eval "$as_ac_Header=\$ac_header_preproc"
12049 ac_res=`eval 'as_val=${'$as_ac_Header'}
12050 $as_echo "$as_val"'`
12051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12052 $as_echo "$ac_res" >&6; }
12055 as_val=`eval 'as_val=${'$as_ac_Header'}
12056 $as_echo "$as_val"'`
12057 if test "x$as_val" = x""yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12064 for ac_header in readline/history.h
12066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12069 $as_echo_n "checking for $ac_header... " >&6; }
12070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12071 $as_echo_n "(cached) " >&6
12073 ac_res=`eval 'as_val=${'$as_ac_Header'}
12074 $as_echo "$as_val"'`
12075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12076 $as_echo "$ac_res" >&6; }
12078 # Is the header compilable?
12079 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12080 $as_echo_n "checking $ac_header usability... " >&6; }
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 $ac_includes_default
12088 #include <$ac_header>
12090 rm -f conftest.$ac_objext
12091 if { (ac_try="$ac_compile"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097 $as_echo "$ac_try_echo") >&5
12098 (eval "$ac_compile") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest.$ac_objext; then
12108 ac_header_compiler=yes
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_header_compiler=no
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12118 $as_echo "$ac_header_compiler" >&6; }
12120 # Is the header present?
12121 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12122 $as_echo_n "checking $ac_header presence... " >&6; }
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 #include <$ac_header>
12131 if { (ac_try="$ac_cpp conftest.$ac_ext"
12132 case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12137 $as_echo "$ac_try_echo") >&5
12138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1 >conftest.err
12142 cat conftest.err >&5
12143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } >/dev/null && {
12145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12146 test ! -s conftest.err
12148 ac_header_preproc=yes
12150 $as_echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_header_preproc=no
12156 rm -f conftest.err conftest.$ac_ext
12157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12158 $as_echo "$ac_header_preproc" >&6; }
12160 # So? What about this header?
12161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12164 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12167 ac_header_preproc=yes
12170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12171 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12173 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12175 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12177 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12179 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12181 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12183 ## ---------------------------------------- ##
12184 ## Report this to pgsql-bugs@postgresql.org ##
12185 ## ---------------------------------------- ##
12187 ) | sed "s/^/$as_me: WARNING: /" >&2
12190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12191 $as_echo_n "checking for $ac_header... " >&6; }
12192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12193 $as_echo_n "(cached) " >&6
12195 eval "$as_ac_Header=\$ac_header_preproc"
12197 ac_res=`eval 'as_val=${'$as_ac_Header'}
12198 $as_echo "$as_val"'`
12199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12200 $as_echo "$ac_res" >&6; }
12203 as_val=`eval 'as_val=${'$as_ac_Header'}
12204 $as_echo "$as_val"'`
12205 if test "x$as_val" = x""yes; then
12206 cat >>confdefs.h <<_ACEOF
12207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224 if test "$with_zlib" = yes; then
12225 if test "${ac_cv_header_zlib_h+set}" = set; then
12226 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12227 $as_echo_n "checking for zlib.h... " >&6; }
12228 if test "${ac_cv_header_zlib_h+set}" = set; then
12229 $as_echo_n "(cached) " >&6
12231 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12232 $as_echo "$ac_cv_header_zlib_h" >&6; }
12234 # Is the header compilable?
12235 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12236 $as_echo_n "checking zlib.h usability... " >&6; }
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12246 rm -f conftest.$ac_objext
12247 if { (ac_try="$ac_compile"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12253 $as_echo "$ac_try_echo") >&5
12254 (eval "$ac_compile") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest.$ac_objext; then
12264 ac_header_compiler=yes
12266 $as_echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_header_compiler=no
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12274 $as_echo "$ac_header_compiler" >&6; }
12276 # Is the header present?
12277 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12278 $as_echo_n "checking zlib.h presence... " >&6; }
12279 cat >conftest.$ac_ext <<_ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12287 if { (ac_try="$ac_cpp conftest.$ac_ext"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null && {
12301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12304 ac_header_preproc=yes
12306 $as_echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_header_preproc=no
12312 rm -f conftest.err conftest.$ac_ext
12313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12314 $as_echo "$ac_header_preproc" >&6; }
12316 # So? What about this header?
12317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12319 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12320 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12321 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12322 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12323 ac_header_preproc=yes
12326 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12327 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12328 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12329 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12331 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12333 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12334 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12335 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12336 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12337 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12339 ## ---------------------------------------- ##
12340 ## Report this to pgsql-bugs@postgresql.org ##
12341 ## ---------------------------------------- ##
12343 ) | sed "s/^/$as_me: WARNING: /" >&2
12346 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12347 $as_echo_n "checking for zlib.h... " >&6; }
12348 if test "${ac_cv_header_zlib_h+set}" = set; then
12349 $as_echo_n "(cached) " >&6
12351 ac_cv_header_zlib_h=$ac_header_preproc
12353 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12354 $as_echo "$ac_cv_header_zlib_h" >&6; }
12357 if test "x$ac_cv_header_zlib_h" = x""yes; then
12360 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12361 If you have zlib already installed, see config.log for details on the
12362 failure. It is possible the compiler isn't looking in the proper directory.
12363 Use --without-zlib to disable zlib support." >&5
12364 $as_echo "$as_me: error: zlib header not found
12365 If you have zlib already installed, see config.log for details on the
12366 failure. It is possible the compiler isn't looking in the proper directory.
12367 Use --without-zlib to disable zlib support." >&2;}
12368 { (exit 1); exit 1; }; }
12374 if test "$with_gssapi" = yes ; then
12376 for ac_header in gssapi/gssapi.h
12378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12380 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 $as_echo_n "checking for $ac_header... " >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 $as_echo_n "(cached) " >&6
12385 ac_res=`eval 'as_val=${'$as_ac_Header'}
12386 $as_echo "$as_val"'`
12387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12388 $as_echo "$ac_res" >&6; }
12390 # Is the header compilable?
12391 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12392 $as_echo_n "checking $ac_header usability... " >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_includes_default
12400 #include <$ac_header>
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.$ac_objext; then
12420 ac_header_compiler=yes
12422 $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 ac_header_compiler=no
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12430 $as_echo "$ac_header_compiler" >&6; }
12432 # Is the header present?
12433 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12434 $as_echo_n "checking $ac_header presence... " >&6; }
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 #include <$ac_header>
12443 if { (ac_try="$ac_cpp conftest.$ac_ext"
12444 case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } >/dev/null && {
12457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12460 ac_header_preproc=yes
12462 $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_header_preproc=no
12468 rm -f conftest.err conftest.$ac_ext
12469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12470 $as_echo "$ac_header_preproc" >&6; }
12472 # So? What about this header?
12473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12476 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12479 ac_header_preproc=yes
12482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12483 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12485 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12487 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12489 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12491 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12493 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12495 ## ---------------------------------------- ##
12496 ## Report this to pgsql-bugs@postgresql.org ##
12497 ## ---------------------------------------- ##
12499 ) | sed "s/^/$as_me: WARNING: /" >&2
12502 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12503 $as_echo_n "checking for $ac_header... " >&6; }
12504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12505 $as_echo_n "(cached) " >&6
12507 eval "$as_ac_Header=\$ac_header_preproc"
12509 ac_res=`eval 'as_val=${'$as_ac_Header'}
12510 $as_echo "$as_val"'`
12511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12512 $as_echo "$ac_res" >&6; }
12515 as_val=`eval 'as_val=${'$as_ac_Header'}
12516 $as_echo "$as_val"'`
12517 if test "x$as_val" = x""yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12524 for ac_header in gssapi.h
12526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 $as_echo_n "checking for $ac_header... " >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 $as_echo_n "(cached) " >&6
12533 ac_res=`eval 'as_val=${'$as_ac_Header'}
12534 $as_echo "$as_val"'`
12535 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12536 $as_echo "$ac_res" >&6; }
12538 # Is the header compilable?
12539 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12540 $as_echo_n "checking $ac_header usability... " >&6; }
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12547 $ac_includes_default
12548 #include <$ac_header>
12550 rm -f conftest.$ac_objext
12551 if { (ac_try="$ac_compile"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12557 $as_echo "$ac_try_echo") >&5
12558 (eval "$ac_compile") 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest.$ac_objext; then
12568 ac_header_compiler=yes
12570 $as_echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 ac_header_compiler=no
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12578 $as_echo "$ac_header_compiler" >&6; }
12580 # Is the header present?
12581 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12582 $as_echo_n "checking $ac_header presence... " >&6; }
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 #include <$ac_header>
12591 if { (ac_try="$ac_cpp conftest.$ac_ext"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12597 $as_echo "$ac_try_echo") >&5
12598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12600 grep -v '^ *+' conftest.er1 >conftest.err
12602 cat conftest.err >&5
12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } >/dev/null && {
12605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12606 test ! -s conftest.err
12608 ac_header_preproc=yes
12610 $as_echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ac_header_preproc=no
12616 rm -f conftest.err conftest.$ac_ext
12617 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618 $as_echo "$ac_header_preproc" >&6; }
12620 # So? What about this header?
12621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12624 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12627 ac_header_preproc=yes
12630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12631 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12633 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12635 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12637 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12641 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12643 ## ---------------------------------------- ##
12644 ## Report this to pgsql-bugs@postgresql.org ##
12645 ## ---------------------------------------- ##
12647 ) | sed "s/^/$as_me: WARNING: /" >&2
12650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12651 $as_echo_n "checking for $ac_header... " >&6; }
12652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12653 $as_echo_n "(cached) " >&6
12655 eval "$as_ac_Header=\$ac_header_preproc"
12657 ac_res=`eval 'as_val=${'$as_ac_Header'}
12658 $as_echo "$as_val"'`
12659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12660 $as_echo "$ac_res" >&6; }
12663 as_val=`eval 'as_val=${'$as_ac_Header'}
12664 $as_echo "$as_val"'`
12665 if test "x$as_val" = x""yes; then
12666 cat >>confdefs.h <<_ACEOF
12667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12671 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12672 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12673 { (exit 1); exit 1; }; }
12684 if test "$with_krb5" = yes ; then
12685 if test "${ac_cv_header_krb5_h+set}" = set; then
12686 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12687 $as_echo_n "checking for krb5.h... " >&6; }
12688 if test "${ac_cv_header_krb5_h+set}" = set; then
12689 $as_echo_n "(cached) " >&6
12691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12692 $as_echo "$ac_cv_header_krb5_h" >&6; }
12694 # Is the header compilable?
12695 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12696 $as_echo_n "checking krb5.h usability... " >&6; }
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 $ac_includes_default
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12713 $as_echo "$ac_try_echo") >&5
12714 (eval "$ac_compile") 2>conftest.er1
12716 grep -v '^ *+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && {
12721 test -z "$ac_c_werror_flag" ||
12722 test ! -s conftest.err
12723 } && test -s conftest.$ac_objext; then
12724 ac_header_compiler=yes
12726 $as_echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 ac_header_compiler=no
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12734 $as_echo "$ac_header_compiler" >&6; }
12736 # Is the header present?
12737 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12738 $as_echo_n "checking krb5.h presence... " >&6; }
12739 cat >conftest.$ac_ext <<_ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12747 if { (ac_try="$ac_cpp conftest.$ac_ext"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12756 grep -v '^ *+' conftest.er1 >conftest.err
12758 cat conftest.err >&5
12759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } >/dev/null && {
12761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12764 ac_header_preproc=yes
12766 $as_echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_header_preproc=no
12772 rm -f conftest.err conftest.$ac_ext
12773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774 $as_echo "$ac_header_preproc" >&6; }
12776 # So? What about this header?
12777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12779 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12780 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12782 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12783 ac_header_preproc=yes
12786 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12787 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12788 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12789 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12790 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12791 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12792 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12793 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12794 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12795 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12796 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12797 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12799 ## ---------------------------------------- ##
12800 ## Report this to pgsql-bugs@postgresql.org ##
12801 ## ---------------------------------------- ##
12803 ) | sed "s/^/$as_me: WARNING: /" >&2
12806 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12807 $as_echo_n "checking for krb5.h... " >&6; }
12808 if test "${ac_cv_header_krb5_h+set}" = set; then
12809 $as_echo_n "(cached) " >&6
12811 ac_cv_header_krb5_h=$ac_header_preproc
12813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12814 $as_echo "$ac_cv_header_krb5_h" >&6; }
12817 if test "x$ac_cv_header_krb5_h" = x""yes; then
12820 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12821 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12822 { (exit 1); exit 1; }; }
12828 if test "$with_openssl" = yes ; then
12829 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12830 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12831 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12832 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12833 $as_echo_n "(cached) " >&6
12835 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12836 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12838 # Is the header compilable?
12839 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12840 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12847 $ac_includes_default
12848 #include <openssl/ssl.h>
12850 rm -f conftest.$ac_objext
12851 if { (ac_try="$ac_compile"
12852 case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12857 $as_echo "$ac_try_echo") >&5
12858 (eval "$ac_compile") 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest.$ac_objext; then
12868 ac_header_compiler=yes
12870 $as_echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_header_compiler=no
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12878 $as_echo "$ac_header_compiler" >&6; }
12880 # Is the header present?
12881 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12882 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <openssl/ssl.h>
12891 if { (ac_try="$ac_cpp conftest.$ac_ext"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1 >conftest.err
12902 cat conftest.err >&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } >/dev/null && {
12905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12908 ac_header_preproc=yes
12910 $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ac_header_preproc=no
12916 rm -f conftest.err conftest.$ac_ext
12917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12918 $as_echo "$ac_header_preproc" >&6; }
12920 # So? What about this header?
12921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12923 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12924 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12925 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12926 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12927 ac_header_preproc=yes
12930 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12931 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12932 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12933 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12934 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12935 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12936 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12937 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12938 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12939 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12940 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12941 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12943 ## ---------------------------------------- ##
12944 ## Report this to pgsql-bugs@postgresql.org ##
12945 ## ---------------------------------------- ##
12947 ) | sed "s/^/$as_me: WARNING: /" >&2
12950 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12951 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12952 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12953 $as_echo_n "(cached) " >&6
12955 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12958 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12961 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12964 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12965 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12966 { (exit 1); exit 1; }; }
12970 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12971 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12972 $as_echo_n "checking for openssl/err.h... " >&6; }
12973 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12974 $as_echo_n "(cached) " >&6
12976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12977 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12979 # Is the header compilable?
12980 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12981 $as_echo_n "checking openssl/err.h usability... " >&6; }
12982 cat >conftest.$ac_ext <<_ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 $ac_includes_default
12989 #include <openssl/err.h>
12991 rm -f conftest.$ac_objext
12992 if { (ac_try="$ac_compile"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_compile") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest.$ac_objext; then
13009 ac_header_compiler=yes
13011 $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 ac_header_compiler=no
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13019 $as_echo "$ac_header_compiler" >&6; }
13021 # Is the header present?
13022 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13023 $as_echo_n "checking openssl/err.h presence... " >&6; }
13024 cat >conftest.$ac_ext <<_ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 #include <openssl/err.h>
13032 if { (ac_try="$ac_cpp conftest.$ac_ext"
13033 case "(($ac_try" in
13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035 *) ac_try_echo=$ac_try;;
13037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13038 $as_echo "$ac_try_echo") >&5
13039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } >/dev/null && {
13046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13049 ac_header_preproc=yes
13051 $as_echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_header_preproc=no
13057 rm -f conftest.err conftest.$ac_ext
13058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13059 $as_echo "$ac_header_preproc" >&6; }
13061 # So? What about this header?
13062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13064 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13065 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13066 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13067 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13068 ac_header_preproc=yes
13071 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13072 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13073 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13074 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13075 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13076 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13077 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13078 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13079 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13080 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13081 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13082 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13084 ## ---------------------------------------- ##
13085 ## Report this to pgsql-bugs@postgresql.org ##
13086 ## ---------------------------------------- ##
13088 ) | sed "s/^/$as_me: WARNING: /" >&2
13091 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13092 $as_echo_n "checking for openssl/err.h... " >&6; }
13093 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13094 $as_echo_n "(cached) " >&6
13096 ac_cv_header_openssl_err_h=$ac_header_preproc
13098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13099 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13102 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13105 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13106 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13107 { (exit 1); exit 1; }; }
13113 if test "$with_pam" = yes ; then
13115 for ac_header in security/pam_appl.h
13117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13120 $as_echo_n "checking for $ac_header... " >&6; }
13121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122 $as_echo_n "(cached) " >&6
13124 ac_res=`eval 'as_val=${'$as_ac_Header'}
13125 $as_echo "$as_val"'`
13126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13127 $as_echo "$ac_res" >&6; }
13129 # Is the header compilable?
13130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13131 $as_echo_n "checking $ac_header usability... " >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 $ac_includes_default
13139 #include <$ac_header>
13141 rm -f conftest.$ac_objext
13142 if { (ac_try="$ac_compile"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13148 $as_echo "$ac_try_echo") >&5
13149 (eval "$ac_compile") 2>conftest.er1
13151 grep -v '^ *+' conftest.er1 >conftest.err
13153 cat conftest.err >&5
13154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } && {
13156 test -z "$ac_c_werror_flag" ||
13157 test ! -s conftest.err
13158 } && test -s conftest.$ac_objext; then
13159 ac_header_compiler=yes
13161 $as_echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 ac_header_compiler=no
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13169 $as_echo "$ac_header_compiler" >&6; }
13171 # Is the header present?
13172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13173 $as_echo_n "checking $ac_header presence... " >&6; }
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 #include <$ac_header>
13182 if { (ac_try="$ac_cpp conftest.$ac_ext"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13188 $as_echo "$ac_try_echo") >&5
13189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } >/dev/null && {
13196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13199 ac_header_preproc=yes
13201 $as_echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13204 ac_header_preproc=no
13207 rm -f conftest.err conftest.$ac_ext
13208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13209 $as_echo "$ac_header_preproc" >&6; }
13211 # So? What about this header?
13212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13218 ac_header_preproc=yes
13221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13224 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13228 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13234 ## ---------------------------------------- ##
13235 ## Report this to pgsql-bugs@postgresql.org ##
13236 ## ---------------------------------------- ##
13238 ) | sed "s/^/$as_me: WARNING: /" >&2
13241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13242 $as_echo_n "checking for $ac_header... " >&6; }
13243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13244 $as_echo_n "(cached) " >&6
13246 eval "$as_ac_Header=\$ac_header_preproc"
13248 ac_res=`eval 'as_val=${'$as_ac_Header'}
13249 $as_echo "$as_val"'`
13250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13251 $as_echo "$ac_res" >&6; }
13254 as_val=`eval 'as_val=${'$as_ac_Header'}
13255 $as_echo "$as_val"'`
13256 if test "x$as_val" = x""yes; then
13257 cat >>confdefs.h <<_ACEOF
13258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13263 for ac_header in pam/pam_appl.h
13265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13268 $as_echo_n "checking for $ac_header... " >&6; }
13269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13270 $as_echo_n "(cached) " >&6
13272 ac_res=`eval 'as_val=${'$as_ac_Header'}
13273 $as_echo "$as_val"'`
13274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13275 $as_echo "$ac_res" >&6; }
13277 # Is the header compilable?
13278 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13279 $as_echo_n "checking $ac_header usability... " >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13287 #include <$ac_header>
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296 $as_echo "$ac_try_echo") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest.$ac_objext; then
13307 ac_header_compiler=yes
13309 $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_header_compiler=no
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13317 $as_echo "$ac_header_compiler" >&6; }
13319 # Is the header present?
13320 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13321 $as_echo_n "checking $ac_header presence... " >&6; }
13322 cat >conftest.$ac_ext <<_ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 #include <$ac_header>
13330 if { (ac_try="$ac_cpp conftest.$ac_ext"
13331 case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336 $as_echo "$ac_try_echo") >&5
13337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } >/dev/null && {
13344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13347 ac_header_preproc=yes
13349 $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_header_preproc=no
13355 rm -f conftest.err conftest.$ac_ext
13356 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13357 $as_echo "$ac_header_preproc" >&6; }
13359 # So? What about this header?
13360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13363 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13366 ac_header_preproc=yes
13369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13380 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13382 ## ---------------------------------------- ##
13383 ## Report this to pgsql-bugs@postgresql.org ##
13384 ## ---------------------------------------- ##
13386 ) | sed "s/^/$as_me: WARNING: /" >&2
13389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13390 $as_echo_n "checking for $ac_header... " >&6; }
13391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13392 $as_echo_n "(cached) " >&6
13394 eval "$as_ac_Header=\$ac_header_preproc"
13396 ac_res=`eval 'as_val=${'$as_ac_Header'}
13397 $as_echo "$as_val"'`
13398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13399 $as_echo "$ac_res" >&6; }
13402 as_val=`eval 'as_val=${'$as_ac_Header'}
13403 $as_echo "$as_val"'`
13404 if test "x$as_val" = x""yes; then
13405 cat >>confdefs.h <<_ACEOF
13406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13410 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13411 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13412 { (exit 1); exit 1; }; }
13423 if test "$with_libxml" = yes ; then
13424 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13425 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13426 $as_echo_n "checking for libxml/parser.h... " >&6; }
13427 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13428 $as_echo_n "(cached) " >&6
13430 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13431 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13433 # Is the header compilable?
13434 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13435 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 #include <libxml/parser.h>
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13452 $as_echo "$ac_try_echo") >&5
13453 (eval "$ac_compile") 2>conftest.er1
13455 grep -v '^ *+' conftest.er1 >conftest.err
13457 cat conftest.err >&5
13458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } && {
13460 test -z "$ac_c_werror_flag" ||
13461 test ! -s conftest.err
13462 } && test -s conftest.$ac_objext; then
13463 ac_header_compiler=yes
13465 $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_header_compiler=no
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13473 $as_echo "$ac_header_compiler" >&6; }
13475 # Is the header present?
13476 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13477 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13478 cat >conftest.$ac_ext <<_ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h. */
13484 #include <libxml/parser.h>
13486 if { (ac_try="$ac_cpp conftest.$ac_ext"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } >/dev/null && {
13500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13503 ac_header_preproc=yes
13505 $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_header_preproc=no
13511 rm -f conftest.err conftest.$ac_ext
13512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13513 $as_echo "$ac_header_preproc" >&6; }
13515 # So? What about this header?
13516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13518 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13519 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13520 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13521 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13522 ac_header_preproc=yes
13525 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13526 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13527 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13528 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13529 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13530 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13531 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13532 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13533 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13534 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13535 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13536 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13538 ## ---------------------------------------- ##
13539 ## Report this to pgsql-bugs@postgresql.org ##
13540 ## ---------------------------------------- ##
13542 ) | sed "s/^/$as_me: WARNING: /" >&2
13545 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13546 $as_echo_n "checking for libxml/parser.h... " >&6; }
13547 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13548 $as_echo_n "(cached) " >&6
13550 ac_cv_header_libxml_parser_h=$ac_header_preproc
13552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13553 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13556 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13559 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13560 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13561 { (exit 1); exit 1; }; }
13567 if test "$with_libxslt" = yes ; then
13568 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13569 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13570 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13571 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13572 $as_echo_n "(cached) " >&6
13574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13575 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13577 # Is the header compilable?
13578 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13579 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13587 #include <libxslt/xslt.h>
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13596 $as_echo "$ac_try_echo") >&5
13597 (eval "$ac_compile") 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest.$ac_objext; then
13607 ac_header_compiler=yes
13609 $as_echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 ac_header_compiler=no
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13617 $as_echo "$ac_header_compiler" >&6; }
13619 # Is the header present?
13620 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13621 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 #include <libxslt/xslt.h>
13630 if { (ac_try="$ac_cpp conftest.$ac_ext"
13631 case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13636 $as_echo "$ac_try_echo") >&5
13637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } >/dev/null && {
13644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13647 ac_header_preproc=yes
13649 $as_echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_header_preproc=no
13655 rm -f conftest.err conftest.$ac_ext
13656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13657 $as_echo "$ac_header_preproc" >&6; }
13659 # So? What about this header?
13660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13662 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13663 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13664 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13665 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13666 ac_header_preproc=yes
13669 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13670 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13671 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13672 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13673 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13674 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13675 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13676 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13677 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13678 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13679 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13680 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13682 ## ---------------------------------------- ##
13683 ## Report this to pgsql-bugs@postgresql.org ##
13684 ## ---------------------------------------- ##
13686 ) | sed "s/^/$as_me: WARNING: /" >&2
13689 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13690 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13691 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13692 $as_echo_n "(cached) " >&6
13694 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13697 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13700 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13703 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13704 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13705 { (exit 1); exit 1; }; }
13711 if test "$with_ldap" = yes ; then
13712 if test "$PORTNAME" != "win32"; then
13714 for ac_header in ldap.h
13716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13719 $as_echo_n "checking for $ac_header... " >&6; }
13720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13721 $as_echo_n "(cached) " >&6
13723 ac_res=`eval 'as_val=${'$as_ac_Header'}
13724 $as_echo "$as_val"'`
13725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13726 $as_echo "$ac_res" >&6; }
13728 # Is the header compilable?
13729 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13730 $as_echo_n "checking $ac_header usability... " >&6; }
13731 cat >conftest.$ac_ext <<_ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 $ac_includes_default
13738 #include <$ac_header>
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13747 $as_echo "$ac_try_echo") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && {
13755 test -z "$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13757 } && test -s conftest.$ac_objext; then
13758 ac_header_compiler=yes
13760 $as_echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_header_compiler=no
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 $as_echo "$ac_header_compiler" >&6; }
13770 # Is the header present?
13771 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13772 $as_echo_n "checking $ac_header presence... " >&6; }
13773 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <$ac_header>
13781 if { (ac_try="$ac_cpp conftest.$ac_ext"
13782 case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13787 $as_echo "$ac_try_echo") >&5
13788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1 >conftest.err
13792 cat conftest.err >&5
13793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } >/dev/null && {
13795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13798 ac_header_preproc=yes
13800 $as_echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_header_preproc=no
13806 rm -f conftest.err conftest.$ac_ext
13807 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13808 $as_echo "$ac_header_preproc" >&6; }
13810 # So? What about this header?
13811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13814 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13816 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13817 ac_header_preproc=yes
13820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13821 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13823 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13825 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13827 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13831 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13833 ## ---------------------------------------- ##
13834 ## Report this to pgsql-bugs@postgresql.org ##
13835 ## ---------------------------------------- ##
13837 ) | sed "s/^/$as_me: WARNING: /" >&2
13840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13841 $as_echo_n "checking for $ac_header... " >&6; }
13842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13843 $as_echo_n "(cached) " >&6
13845 eval "$as_ac_Header=\$ac_header_preproc"
13847 ac_res=`eval 'as_val=${'$as_ac_Header'}
13848 $as_echo "$as_val"'`
13849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13850 $as_echo "$ac_res" >&6; }
13853 as_val=`eval 'as_val=${'$as_ac_Header'}
13854 $as_echo "$as_val"'`
13855 if test "x$as_val" = x""yes; then
13856 cat >>confdefs.h <<_ACEOF
13857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13861 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13862 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13863 { (exit 1); exit 1; }; }
13870 for ac_header in winldap.h
13872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 $as_echo_n "checking for $ac_header... " >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876 $as_echo_n "(cached) " >&6
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13885 #include <windows.h>
13888 #include <$ac_header>
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 eval "$as_ac_Header=yes"
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 eval "$as_ac_Header=no"
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 ac_res=`eval 'as_val=${'$as_ac_Header'}
13919 $as_echo "$as_val"'`
13920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13921 $as_echo "$ac_res" >&6; }
13922 as_val=`eval 'as_val=${'$as_ac_Header'}
13923 $as_echo "$as_val"'`
13924 if test "x$as_val" = x""yes; then
13925 cat >>confdefs.h <<_ACEOF
13926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13930 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13931 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13932 { (exit 1); exit 1; }; }
13940 if test "$with_bonjour" = yes ; then
13941 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13942 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13943 $as_echo_n "checking for dns_sd.h... " >&6; }
13944 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13945 $as_echo_n "(cached) " >&6
13947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13948 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13950 # Is the header compilable?
13951 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13952 $as_echo_n "checking dns_sd.h usability... " >&6; }
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 $ac_includes_default
13960 #include <dns_sd.h>
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13969 $as_echo "$ac_try_echo") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_header_compiler=yes
13982 $as_echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_header_compiler=no
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 $as_echo "$ac_header_compiler" >&6; }
13992 # Is the header present?
13993 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13994 $as_echo_n "checking dns_sd.h presence... " >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <dns_sd.h>
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14009 $as_echo "$ac_try_echo") >&5
14010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14012 grep -v '^ *+' conftest.er1 >conftest.err
14014 cat conftest.err >&5
14015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } >/dev/null && {
14017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14018 test ! -s conftest.err
14020 ac_header_preproc=yes
14022 $as_echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_header_preproc=no
14028 rm -f conftest.err conftest.$ac_ext
14029 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14030 $as_echo "$ac_header_preproc" >&6; }
14032 # So? What about this header?
14033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14035 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14036 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14037 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14038 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14039 ac_header_preproc=yes
14042 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14043 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14044 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14045 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14046 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14047 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14048 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14049 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14050 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14051 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14052 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14053 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14055 ## ---------------------------------------- ##
14056 ## Report this to pgsql-bugs@postgresql.org ##
14057 ## ---------------------------------------- ##
14059 ) | sed "s/^/$as_me: WARNING: /" >&2
14062 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14063 $as_echo_n "checking for dns_sd.h... " >&6; }
14064 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14065 $as_echo_n "(cached) " >&6
14067 ac_cv_header_dns_sd_h=$ac_header_preproc
14069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14070 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14073 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14076 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14077 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14078 { (exit 1); exit 1; }; }
14084 # for contrib/uuid-ossp
14085 if test "$with_ossp_uuid" = yes ; then
14087 for ac_header in ossp/uuid.h
14089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14092 $as_echo_n "checking for $ac_header... " >&6; }
14093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14094 $as_echo_n "(cached) " >&6
14096 ac_res=`eval 'as_val=${'$as_ac_Header'}
14097 $as_echo "$as_val"'`
14098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14099 $as_echo "$ac_res" >&6; }
14101 # Is the header compilable?
14102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 $as_echo_n "checking $ac_header usability... " >&6; }
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14111 #include <$ac_header>
14113 rm -f conftest.$ac_objext
14114 if { (ac_try="$ac_compile"
14115 case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120 $as_echo "$ac_try_echo") >&5
14121 (eval "$ac_compile") 2>conftest.er1
14123 grep -v '^ *+' conftest.er1 >conftest.err
14125 cat conftest.err >&5
14126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } && {
14128 test -z "$ac_c_werror_flag" ||
14129 test ! -s conftest.err
14130 } && test -s conftest.$ac_objext; then
14131 ac_header_compiler=yes
14133 $as_echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 ac_header_compiler=no
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14141 $as_echo "$ac_header_compiler" >&6; }
14143 # Is the header present?
14144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14145 $as_echo_n "checking $ac_header presence... " >&6; }
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 #include <$ac_header>
14154 if { (ac_try="$ac_cpp conftest.$ac_ext"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14160 $as_echo "$ac_try_echo") >&5
14161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } >/dev/null && {
14168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14171 ac_header_preproc=yes
14173 $as_echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ac_header_preproc=no
14179 rm -f conftest.err conftest.$ac_ext
14180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14181 $as_echo "$ac_header_preproc" >&6; }
14183 # So? What about this header?
14184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14190 ac_header_preproc=yes
14193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14206 ## ---------------------------------------- ##
14207 ## Report this to pgsql-bugs@postgresql.org ##
14208 ## ---------------------------------------- ##
14210 ) | sed "s/^/$as_me: WARNING: /" >&2
14213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 $as_echo_n "checking for $ac_header... " >&6; }
14215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14216 $as_echo_n "(cached) " >&6
14218 eval "$as_ac_Header=\$ac_header_preproc"
14220 ac_res=`eval 'as_val=${'$as_ac_Header'}
14221 $as_echo "$as_val"'`
14222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14223 $as_echo "$ac_res" >&6; }
14226 as_val=`eval 'as_val=${'$as_ac_Header'}
14227 $as_echo "$as_val"'`
14228 if test "x$as_val" = x""yes; then
14229 cat >>confdefs.h <<_ACEOF
14230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14236 for ac_header in uuid.h
14238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 $as_echo_n "checking for $ac_header... " >&6; }
14242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14243 $as_echo_n "(cached) " >&6
14245 ac_res=`eval 'as_val=${'$as_ac_Header'}
14246 $as_echo "$as_val"'`
14247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14248 $as_echo "$ac_res" >&6; }
14250 # Is the header compilable?
14251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14252 $as_echo_n "checking $ac_header usability... " >&6; }
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 $ac_includes_default
14260 #include <$ac_header>
14262 rm -f conftest.$ac_objext
14263 if { (ac_try="$ac_compile"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14269 $as_echo "$ac_try_echo") >&5
14270 (eval "$ac_compile") 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest.$ac_objext; then
14280 ac_header_compiler=yes
14282 $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_header_compiler=no
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290 $as_echo "$ac_header_compiler" >&6; }
14292 # Is the header present?
14293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294 $as_echo_n "checking $ac_header presence... " >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <$ac_header>
14303 if { (ac_try="$ac_cpp conftest.$ac_ext"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1 >conftest.err
14314 cat conftest.err >&5
14315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } >/dev/null && {
14317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14318 test ! -s conftest.err
14320 ac_header_preproc=yes
14322 $as_echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14325 ac_header_preproc=no
14328 rm -f conftest.err conftest.$ac_ext
14329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14330 $as_echo "$ac_header_preproc" >&6; }
14332 # So? What about this header?
14333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14339 ac_header_preproc=yes
14342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14355 ## ---------------------------------------- ##
14356 ## Report this to pgsql-bugs@postgresql.org ##
14357 ## ---------------------------------------- ##
14359 ) | sed "s/^/$as_me: WARNING: /" >&2
14362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 $as_echo_n "checking for $ac_header... " >&6; }
14364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14365 $as_echo_n "(cached) " >&6
14367 eval "$as_ac_Header=\$ac_header_preproc"
14369 ac_res=`eval 'as_val=${'$as_ac_Header'}
14370 $as_echo "$as_val"'`
14371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14372 $as_echo "$ac_res" >&6; }
14375 as_val=`eval 'as_val=${'$as_ac_Header'}
14376 $as_echo "$as_val"'`
14377 if test "x$as_val" = x""yes; then
14378 cat >>confdefs.h <<_ACEOF
14379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14383 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14384 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14385 { (exit 1); exit 1; }; }
14396 if test "$PORTNAME" = "win32" ; then
14398 for ac_header in crtdefs.h
14400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14403 $as_echo_n "checking for $ac_header... " >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 $as_echo_n "(cached) " >&6
14407 ac_res=`eval 'as_val=${'$as_ac_Header'}
14408 $as_echo "$as_val"'`
14409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14410 $as_echo "$ac_res" >&6; }
14412 # Is the header compilable?
14413 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14414 $as_echo_n "checking $ac_header usability... " >&6; }
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 $ac_includes_default
14422 #include <$ac_header>
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14431 $as_echo "$ac_try_echo") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && {
14439 test -z "$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest.$ac_objext; then
14442 ac_header_compiler=yes
14444 $as_echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_header_compiler=no
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14452 $as_echo "$ac_header_compiler" >&6; }
14454 # Is the header present?
14455 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14456 $as_echo_n "checking $ac_header presence... " >&6; }
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <$ac_header>
14465 if { (ac_try="$ac_cpp conftest.$ac_ext"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14471 $as_echo "$ac_try_echo") >&5
14472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14474 grep -v '^ *+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev/null && {
14479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14480 test ! -s conftest.err
14482 ac_header_preproc=yes
14484 $as_echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_header_preproc=no
14490 rm -f conftest.err conftest.$ac_ext
14491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14492 $as_echo "$ac_header_preproc" >&6; }
14494 # So? What about this header?
14495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14498 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14501 ac_header_preproc=yes
14504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14505 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14507 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14509 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14511 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14515 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14517 ## ---------------------------------------- ##
14518 ## Report this to pgsql-bugs@postgresql.org ##
14519 ## ---------------------------------------- ##
14521 ) | sed "s/^/$as_me: WARNING: /" >&2
14524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14525 $as_echo_n "checking for $ac_header... " >&6; }
14526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527 $as_echo_n "(cached) " >&6
14529 eval "$as_ac_Header=\$ac_header_preproc"
14531 ac_res=`eval 'as_val=${'$as_ac_Header'}
14532 $as_echo "$as_val"'`
14533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14534 $as_echo "$ac_res" >&6; }
14537 as_val=`eval 'as_val=${'$as_ac_Header'}
14538 $as_echo "$as_val"'`
14539 if test "x$as_val" = x""yes; then
14540 cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14551 ## Types, structures, compiler characteristics
14555 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14556 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14557 if test "${ac_cv_c_bigendian+set}" = set; then
14558 $as_echo_n "(cached) " >&6
14560 ac_cv_c_bigendian=unknown
14561 # See if we're dealing with a universal compiler.
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #ifndef __APPLE_CC__
14569 not a universal capable compiler
14574 rm -f conftest.$ac_objext
14575 if { (ac_try="$ac_compile"
14576 case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14581 $as_echo "$ac_try_echo") >&5
14582 (eval "$ac_compile") 2>conftest.er1
14584 grep -v '^ *+' conftest.er1 >conftest.err
14586 cat conftest.err >&5
14587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest.$ac_objext; then
14593 # Check for potential -arch flags. It is not universal unless
14594 # there are some -arch flags. Note that *ppc* also matches
14595 # ppc64. This check is also rather less than ideal.
14596 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14597 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14600 $as_echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 if test $ac_cv_c_bigendian = unknown; then
14608 # See if sys/param.h defines the BYTE_ORDER macro.
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 #include <sys/types.h>
14616 #include <sys/param.h>
14621 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14622 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14624 bogus endian macros
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14638 $as_echo "$ac_try_echo") >&5
14639 (eval "$ac_compile") 2>conftest.er1
14641 grep -v '^ *+' conftest.er1 >conftest.err
14643 cat conftest.err >&5
14644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_c_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest.$ac_objext; then
14649 # It does; now see whether it defined to BIG_ENDIAN or not.
14650 cat >conftest.$ac_ext <<_ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <sys/types.h>
14657 #include <sys/param.h>
14662 #if BYTE_ORDER != BIG_ENDIAN
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678 (eval "$ac_compile") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } && {
14685 test -z "$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 } && test -s conftest.$ac_objext; then
14688 ac_cv_c_bigendian=yes
14690 $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_cv_c_bigendian=no
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 $as_echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 if test $ac_cv_c_bigendian = unknown; then
14707 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <limits.h>
14719 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14720 bogus endian macros
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14734 $as_echo "$ac_try_echo") >&5
14735 (eval "$ac_compile") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest.$ac_objext; then
14745 # It does; now see whether it defined to _BIG_ENDIAN or not.
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 #include <limits.h>
14757 #ifndef _BIG_ENDIAN
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14772 $as_echo "$ac_try_echo") >&5
14773 (eval "$ac_compile") 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest.$ac_objext; then
14783 ac_cv_c_bigendian=yes
14785 $as_echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_cv_c_bigendian=no
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 $as_echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801 if test $ac_cv_c_bigendian = unknown; then
14802 # Compile a test program.
14803 if test "$cross_compiling" = yes; then
14804 # Try to guess by grepping values from an object file.
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 short int ascii_mm[] =
14812 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14813 short int ascii_ii[] =
14814 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14815 int use_ascii (int i) {
14816 return ascii_mm[i] + ascii_ii[i];
14818 short int ebcdic_ii[] =
14819 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14820 short int ebcdic_mm[] =
14821 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14822 int use_ebcdic (int i) {
14823 return ebcdic_mm[i] + ebcdic_ii[i];
14830 return use_ascii (foo) == use_ebcdic (foo);
14835 rm -f conftest.$ac_objext
14836 if { (ac_try="$ac_compile"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14842 $as_echo "$ac_try_echo") >&5
14843 (eval "$ac_compile") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest.$ac_objext; then
14853 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14854 ac_cv_c_bigendian=yes
14856 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14857 if test "$ac_cv_c_bigendian" = unknown; then
14858 ac_cv_c_bigendian=no
14860 # finding both strings is unlikely to happen, but who knows?
14861 ac_cv_c_bigendian=unknown
14865 $as_echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14884 /* Are we little or big endian? From Harbison&Steele. */
14888 char c[sizeof (long int)];
14891 return u.c[sizeof (long int) - 1] == 1;
14897 rm -f conftest$ac_exeext
14898 if { (ac_try="$ac_link"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14904 $as_echo "$ac_try_echo") >&5
14905 (eval "$ac_link") 2>&5
14907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14909 { (case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14914 $as_echo "$ac_try_echo") >&5
14915 (eval "$ac_try") 2>&5
14917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_cv_c_bigendian=no
14921 $as_echo "$as_me: program exited with status $ac_status" >&5
14922 $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ( exit $ac_status )
14926 ac_cv_c_bigendian=yes
14928 rm -rf conftest.dSYM
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14935 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14936 $as_echo "$ac_cv_c_bigendian" >&6; }
14937 case $ac_cv_c_bigendian in #(
14939 cat >>confdefs.h <<\_ACEOF
14940 #define WORDS_BIGENDIAN 1
14947 cat >>confdefs.h <<\_ACEOF
14948 #define AC_APPLE_UNIVERSAL_BUILD 1
14953 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14954 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14955 $as_echo "$as_me: error: unknown endianness
14956 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14957 { (exit 1); exit 1; }; } ;;
14960 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14961 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14962 if test "${ac_cv_c_const+set}" = set; then
14963 $as_echo_n "(cached) " >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14975 /* FIXME: Include the comments suggested by Paul. */
14976 #ifndef __cplusplus
14977 /* Ultrix mips cc rejects this. */
14978 typedef int charset[2];
14980 /* SunOS 4.1.1 cc rejects this. */
14981 char const *const *pcpcc;
14983 /* NEC SVR4.0.2 mips cc rejects this. */
14984 struct point {int x, y;};
14985 static struct point const zero = {0,0};
14986 /* AIX XL C 1.02.0.0 rejects this.
14987 It does not let you subtract one const X* pointer from another in
14988 an arm of an if-expression whose if-part is not a constant
14990 const char *g = "string";
14991 pcpcc = &g + (g ? g-g : 0);
14992 /* HPUX 7.0 cc rejects these. */
14994 ppc = (char**) pcpcc;
14995 pcpcc = (char const *const *) ppc;
14996 { /* SCO 3.2v4 cc rejects this. */
14998 char const *s = 0 ? (char *) 0 : (char const *) 0;
15003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15004 int x[] = {25, 17};
15005 const int *foo = &x[0];
15008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15009 typedef const int *iptr;
15013 { /* AIX XL C 1.02.0.0 rejects this saying
15014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15015 struct s { int j; const int *ap[3]; };
15016 struct s *b; b->j = 5;
15018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15019 const int foo = 10;
15020 if (!foo) return 0;
15022 return !cs[0] && !zero.x;
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15036 $as_echo "$ac_try_echo") >&5
15037 (eval "$ac_compile") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest.$ac_objext; then
15049 $as_echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15058 $as_echo "$ac_cv_c_const" >&6; }
15059 if test $ac_cv_c_const = no; then
15061 cat >>confdefs.h <<\_ACEOF
15067 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15068 $as_echo_n "checking for inline... " >&6; }
15069 if test "${ac_cv_c_inline+set}" = set; then
15070 $as_echo_n "(cached) " >&6
15073 for ac_kw in inline __inline__ __inline; do
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #ifndef __cplusplus
15082 static $ac_kw foo_t static_foo () {return 0; }
15083 $ac_kw foo_t foo () {return 0; }
15087 rm -f conftest.$ac_objext
15088 if { (ac_try="$ac_compile"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15094 $as_echo "$ac_try_echo") >&5
15095 (eval "$ac_compile") 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } && {
15102 test -z "$ac_c_werror_flag" ||
15103 test ! -s conftest.err
15104 } && test -s conftest.$ac_objext; then
15105 ac_cv_c_inline=$ac_kw
15107 $as_echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 test "$ac_cv_c_inline" != no && break
15118 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15119 $as_echo "$ac_cv_c_inline" >&6; }
15122 case $ac_cv_c_inline in
15125 case $ac_cv_c_inline in
15127 *) ac_val=$ac_cv_c_inline;;
15129 cat >>confdefs.h <<_ACEOF
15130 #ifndef __cplusplus
15131 #define inline $ac_val
15137 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15138 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15139 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15140 $as_echo_n "(cached) " >&6
15142 pgac_cv_c_inline_quietly=no
15143 if test "$ac_cv_c_inline" != no; then
15144 pgac_c_inline_save_werror=$ac_c_werror_flag
15145 ac_c_werror_flag=yes
15146 cat >conftest.$ac_ext <<_ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 static inline int fun () {return 0;}
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15168 $as_echo "$ac_try_echo") >&5
15169 (eval "$ac_link") 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } && {
15176 test -z "$ac_c_werror_flag" ||
15177 test ! -s conftest.err
15178 } && test -s conftest$ac_exeext && {
15179 test "$cross_compiling" = yes ||
15180 $as_test_x conftest$ac_exeext
15182 pgac_cv_c_inline_quietly=yes
15184 $as_echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15190 rm -rf conftest.dSYM
15191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15192 conftest$ac_exeext conftest.$ac_ext
15193 ac_c_werror_flag=$pgac_c_inline_save_werror
15196 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15197 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15198 if test "$pgac_cv_c_inline_quietly" != no; then
15200 cat >>confdefs.h <<_ACEOF
15201 #define PG_USE_INLINE 1
15206 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15207 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15208 if test "${ac_cv_c_stringize+set}" = set; then
15209 $as_echo_n "(cached) " >&6
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15219 char *s = x(teststring);
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "#teststring" >/dev/null 2>&1; then
15223 ac_cv_c_stringize=no
15225 ac_cv_c_stringize=yes
15230 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15231 $as_echo "$ac_cv_c_stringize" >&6; }
15232 if test $ac_cv_c_stringize = yes; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_STRINGIZE 1
15241 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15242 $as_echo_n "checking for flexible array members... " >&6; }
15243 if test "${ac_cv_c_flexmember+set}" = set; then
15244 $as_echo_n "(cached) " >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <stdlib.h>
15254 #include <stddef.h>
15255 struct s { int n; double d[]; };
15259 int m = getchar ();
15260 struct s *p = malloc (offsetof (struct s, d)
15261 + m * sizeof (double));
15263 return p->d != (double *) NULL;
15268 rm -f conftest.$ac_objext
15269 if { (ac_try="$ac_compile"
15270 case "(($ac_try" in
15271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15275 $as_echo "$ac_try_echo") >&5
15276 (eval "$ac_compile") 2>conftest.er1
15278 grep -v '^ *+' conftest.er1 >conftest.err
15280 cat conftest.err >&5
15281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_c_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest.$ac_objext; then
15286 ac_cv_c_flexmember=yes
15288 $as_echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 ac_cv_c_flexmember=no
15294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15296 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15297 $as_echo "$ac_cv_c_flexmember" >&6; }
15298 if test $ac_cv_c_flexmember = yes; then
15300 cat >>confdefs.h <<\_ACEOF
15301 #define FLEXIBLE_ARRAY_MEMBER /**/
15305 cat >>confdefs.h <<\_ACEOF
15306 #define FLEXIBLE_ARRAY_MEMBER 1
15311 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15312 $as_echo_n "checking for signed types... " >&6; }
15313 if test "${pgac_cv_c_signed+set}" = set; then
15314 $as_echo_n "(cached) " >&6
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15326 signed char c; signed short s; signed int i;
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15338 $as_echo "$ac_try_echo") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest.$ac_objext; then
15349 pgac_cv_c_signed=yes
15351 $as_echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 pgac_cv_c_signed=no
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15360 $as_echo "$pgac_cv_c_signed" >&6; }
15361 if test x"$pgac_cv_c_signed" = xno ; then
15363 cat >>confdefs.h <<\_ACEOF
15364 #define signed /**/
15368 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15369 $as_echo_n "checking for working volatile... " >&6; }
15370 if test "${ac_cv_c_volatile+set}" = set; then
15371 $as_echo_n "(cached) " >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15385 int * volatile y = (int *) 0;
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15398 $as_echo "$ac_try_echo") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } && {
15406 test -z "$ac_c_werror_flag" ||
15407 test ! -s conftest.err
15408 } && test -s conftest.$ac_objext; then
15409 ac_cv_c_volatile=yes
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_c_volatile=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15420 $as_echo "$ac_cv_c_volatile" >&6; }
15421 if test $ac_cv_c_volatile = no; then
15423 cat >>confdefs.h <<\_ACEOF
15424 #define volatile /**/
15429 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15430 $as_echo_n "checking for __func__... " >&6; }
15431 if test "${pgac_cv_funcname_func_support+set}" = set; then
15432 $as_echo_n "(cached) " >&6
15434 cat >conftest.$ac_ext <<_ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15444 printf("%s\n", __func__);
15449 rm -f conftest.$ac_objext
15450 if { (ac_try="$ac_compile"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15456 $as_echo "$ac_try_echo") >&5
15457 (eval "$ac_compile") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest.$ac_objext; then
15467 pgac_cv_funcname_func_support=yes
15469 $as_echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 pgac_cv_funcname_func_support=no
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15478 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15479 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_FUNCNAME__FUNC 1
15486 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15487 $as_echo_n "checking for __FUNCTION__... " >&6; }
15488 if test "${pgac_cv_funcname_function_support+set}" = set; then
15489 $as_echo_n "(cached) " >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15501 printf("%s\n", __FUNCTION__);
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15513 $as_echo "$ac_try_echo") >&5
15514 (eval "$ac_compile") 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest.$ac_objext; then
15524 pgac_cv_funcname_function_support=yes
15526 $as_echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 pgac_cv_funcname_function_support=no
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15534 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15535 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15536 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_FUNCNAME__FUNCTION 1
15544 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15545 $as_echo_n "checking for _Static_assert... " >&6; }
15546 if test "${pgac_cv__static_assert+set}" = set; then
15547 $as_echo_n "(cached) " >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15559 ({ _Static_assert(1, "foo"); })
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (ac_try="$ac_link"
15566 case "(($ac_try" in
15567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568 *) ac_try_echo=$ac_try;;
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572 (eval "$ac_link") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } && {
15579 test -z "$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 } && test -s conftest$ac_exeext && {
15582 test "$cross_compiling" = yes ||
15583 $as_test_x conftest$ac_exeext
15585 pgac_cv__static_assert=yes
15587 $as_echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15590 pgac_cv__static_assert=no
15593 rm -rf conftest.dSYM
15594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15595 conftest$ac_exeext conftest.$ac_ext
15597 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15598 $as_echo "$pgac_cv__static_assert" >&6; }
15599 if test x"$pgac_cv__static_assert" = xyes ; then
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE__STATIC_ASSERT 1
15606 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15607 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15608 if test "${pgac_cv__types_compatible+set}" = set; then
15609 $as_echo_n "(cached) " >&6
15611 cat >conftest.$ac_ext <<_ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15621 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15626 rm -f conftest.$ac_objext
15627 if { (ac_try="$ac_compile"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15633 $as_echo "$ac_try_echo") >&5
15634 (eval "$ac_compile") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest.$ac_objext; then
15644 pgac_cv__types_compatible=yes
15646 $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 pgac_cv__types_compatible=no
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15655 $as_echo "$pgac_cv__types_compatible" >&6; }
15656 if test x"$pgac_cv__types_compatible" = xyes ; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15663 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15664 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15665 if test "${ac_cv_struct_tm+set}" = set; then
15666 $as_echo_n "(cached) " >&6
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 #include <sys/types.h>
15681 int *p = &tm.tm_sec;
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15694 $as_echo "$ac_try_echo") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15697 grep -v '^ *+' conftest.er1 >conftest.err
15699 cat conftest.err >&5
15700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } && {
15702 test -z "$ac_c_werror_flag" ||
15703 test ! -s conftest.err
15704 } && test -s conftest.$ac_objext; then
15705 ac_cv_struct_tm=time.h
15707 $as_echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 ac_cv_struct_tm=sys/time.h
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15716 $as_echo "$ac_cv_struct_tm" >&6; }
15717 if test $ac_cv_struct_tm = sys/time.h; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define TM_IN_SYS_TIME 1
15725 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15726 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15727 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15728 $as_echo_n "(cached) " >&6
15730 cat >conftest.$ac_ext <<_ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 #include <sys/types.h>
15737 #include <$ac_cv_struct_tm>
15743 static struct tm ac_aggr;
15744 if (ac_aggr.tm_zone)
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15757 $as_echo "$ac_try_echo") >&5
15758 (eval "$ac_compile") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } && {
15765 test -z "$ac_c_werror_flag" ||
15766 test ! -s conftest.err
15767 } && test -s conftest.$ac_objext; then
15768 ac_cv_member_struct_tm_tm_zone=yes
15770 $as_echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 cat >conftest.$ac_ext <<_ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 #include <sys/types.h>
15780 #include <$ac_cv_struct_tm>
15786 static struct tm ac_aggr;
15787 if (sizeof ac_aggr.tm_zone)
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15800 $as_echo "$ac_try_echo") >&5
15801 (eval "$ac_compile") 2>conftest.er1
15803 grep -v '^ *+' conftest.er1 >conftest.err
15805 cat conftest.err >&5
15806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest.$ac_objext; then
15811 ac_cv_member_struct_tm_tm_zone=yes
15813 $as_echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_member_struct_tm_tm_zone=no
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15825 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15826 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_STRUCT_TM_TM_ZONE 1
15835 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_TM_ZONE 1
15842 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15843 $as_echo_n "checking for tzname... " >&6; }
15844 if test "${ac_cv_var_tzname+set}" = set; then
15845 $as_echo_n "(cached) " >&6
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15854 #ifndef tzname /* For SGI. */
15855 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15873 $as_echo "$ac_try_echo") >&5
15874 (eval "$ac_link") 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } && {
15881 test -z "$ac_c_werror_flag" ||
15882 test ! -s conftest.err
15883 } && test -s conftest$ac_exeext && {
15884 test "$cross_compiling" = yes ||
15885 $as_test_x conftest$ac_exeext
15887 ac_cv_var_tzname=yes
15889 $as_echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 ac_cv_var_tzname=no
15895 rm -rf conftest.dSYM
15896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15897 conftest$ac_exeext conftest.$ac_ext
15899 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15900 $as_echo "$ac_cv_var_tzname" >&6; }
15901 if test $ac_cv_var_tzname = yes; then
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAVE_TZNAME 1
15909 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15910 $as_echo_n "checking for union semun... " >&6; }
15911 if test "${ac_cv_type_union_semun+set}" = set; then
15912 $as_echo_n "(cached) " >&6
15914 ac_cv_type_union_semun=no
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 #include <sys/types.h>
15922 #include <sys/ipc.h>
15923 #include <sys/sem.h>
15928 if (sizeof (union semun))
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941 $as_echo "$ac_try_echo") >&5
15942 (eval "$ac_compile") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest.$ac_objext; then
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15958 #include <sys/types.h>
15959 #include <sys/ipc.h>
15960 #include <sys/sem.h>
15965 if (sizeof ((union semun)))
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979 (eval "$ac_compile") 2>conftest.er1
15981 grep -v '^ *+' conftest.er1 >conftest.err
15983 cat conftest.err >&5
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest.$ac_objext; then
15991 $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ac_cv_type_union_semun=yes
15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999 $as_echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16008 $as_echo "$ac_cv_type_union_semun" >&6; }
16009 if test "x$ac_cv_type_union_semun" = x""yes; then
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_UNION_SEMUN 1
16018 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16019 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16020 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16021 $as_echo_n "(cached) " >&6
16023 ac_cv_type_struct_sockaddr_un=no
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 #include <sys/types.h>
16031 #ifdef HAVE_SYS_UN_H
16032 #include <sys/un.h>
16039 if (sizeof (struct sockaddr_un))
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16052 $as_echo "$ac_try_echo") >&5
16053 (eval "$ac_compile") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && {
16060 test -z "$ac_c_werror_flag" ||
16061 test ! -s conftest.err
16062 } && test -s conftest.$ac_objext; then
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <sys/types.h>
16070 #ifdef HAVE_SYS_UN_H
16071 #include <sys/un.h>
16078 if (sizeof ((struct sockaddr_un)))
16084 rm -f conftest.$ac_objext
16085 if { (ac_try="$ac_compile"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16091 $as_echo "$ac_try_echo") >&5
16092 (eval "$ac_compile") 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest.$ac_objext; then
16104 $as_echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_cv_type_struct_sockaddr_un=yes
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16121 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16122 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_UNIX_SOCKETS 1
16130 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16131 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16132 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16133 $as_echo_n "(cached) " >&6
16135 ac_cv_type_struct_sockaddr_storage=no
16136 cat >conftest.$ac_ext <<_ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 #include <sys/types.h>
16143 #ifdef HAVE_SYS_SOCKET_H
16144 #include <sys/socket.h>
16151 if (sizeof (struct sockaddr_storage))
16157 rm -f conftest.$ac_objext
16158 if { (ac_try="$ac_compile"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16164 $as_echo "$ac_try_echo") >&5
16165 (eval "$ac_compile") 2>conftest.er1
16167 grep -v '^ *+' conftest.er1 >conftest.err
16169 cat conftest.err >&5
16170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest.$ac_objext; then
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 #include <sys/socket.h>
16190 if (sizeof ((struct sockaddr_storage)))
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16203 $as_echo "$ac_try_echo") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16216 $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_cv_type_struct_sockaddr_storage=yes
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 $as_echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16233 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16234 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16243 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16244 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16245 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16248 cat >conftest.$ac_ext <<_ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16254 #include <sys/types.h>
16255 #ifdef HAVE_SYS_SOCKET_H
16256 #include <sys/socket.h>
16263 static struct sockaddr_storage ac_aggr;
16264 if (ac_aggr.ss_family)
16270 rm -f conftest.$ac_objext
16271 if { (ac_try="$ac_compile"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16277 $as_echo "$ac_try_echo") >&5
16278 (eval "$ac_compile") 2>conftest.er1
16280 grep -v '^ *+' conftest.er1 >conftest.err
16282 cat conftest.err >&5
16283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && {
16285 test -z "$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16287 } && test -s conftest.$ac_objext; then
16288 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16290 $as_echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 cat >conftest.$ac_ext <<_ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <sys/types.h>
16300 #ifdef HAVE_SYS_SOCKET_H
16301 #include <sys/socket.h>
16308 static struct sockaddr_storage ac_aggr;
16309 if (sizeof ac_aggr.ss_family)
16315 rm -f conftest.$ac_objext
16316 if { (ac_try="$ac_compile"
16317 case "(($ac_try" in
16318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16322 $as_echo "$ac_try_echo") >&5
16323 (eval "$ac_compile") 2>conftest.er1
16325 grep -v '^ *+' conftest.er1 >conftest.err
16327 cat conftest.err >&5
16328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } && {
16330 test -z "$ac_c_werror_flag" ||
16331 test ! -s conftest.err
16332 } && test -s conftest.$ac_objext; then
16333 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 ac_cv_member_struct_sockaddr_storage_ss_family=no
16341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16347 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16348 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16356 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16357 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16358 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16359 $as_echo_n "(cached) " >&6
16361 cat >conftest.$ac_ext <<_ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h. */
16367 #include <sys/types.h>
16368 #ifdef HAVE_SYS_SOCKET_H
16369 #include <sys/socket.h>
16376 static struct sockaddr_storage ac_aggr;
16377 if (ac_aggr.__ss_family)
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16390 $as_echo "$ac_try_echo") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } && {
16398 test -z "$ac_c_werror_flag" ||
16399 test ! -s conftest.err
16400 } && test -s conftest.$ac_objext; then
16401 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16403 $as_echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 #include <sys/types.h>
16413 #ifdef HAVE_SYS_SOCKET_H
16414 #include <sys/socket.h>
16421 static struct sockaddr_storage ac_aggr;
16422 if (sizeof ac_aggr.__ss_family)
16428 rm -f conftest.$ac_objext
16429 if { (ac_try="$ac_compile"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436 (eval "$ac_compile") 2>conftest.er1
16438 grep -v '^ *+' conftest.er1 >conftest.err
16440 cat conftest.err >&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_c_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest.$ac_objext; then
16446 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_member_struct_sockaddr_storage___ss_family=no
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16460 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16461 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16469 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16470 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16471 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16472 $as_echo_n "(cached) " >&6
16474 cat >conftest.$ac_ext <<_ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 #include <sys/types.h>
16481 #ifdef HAVE_SYS_SOCKET_H
16482 #include <sys/socket.h>
16489 static struct sockaddr_storage ac_aggr;
16490 if (ac_aggr.ss_len)
16496 rm -f conftest.$ac_objext
16497 if { (ac_try="$ac_compile"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16503 $as_echo "$ac_try_echo") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && {
16511 test -z "$ac_c_werror_flag" ||
16512 test ! -s conftest.err
16513 } && test -s conftest.$ac_objext; then
16514 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16516 $as_echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 cat >conftest.$ac_ext <<_ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 #include <sys/types.h>
16526 #ifdef HAVE_SYS_SOCKET_H
16527 #include <sys/socket.h>
16534 static struct sockaddr_storage ac_aggr;
16535 if (sizeof ac_aggr.ss_len)
16541 rm -f conftest.$ac_objext
16542 if { (ac_try="$ac_compile"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548 $as_echo "$ac_try_echo") >&5
16549 (eval "$ac_compile") 2>conftest.er1
16551 grep -v '^ *+' conftest.er1 >conftest.err
16553 cat conftest.err >&5
16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && {
16556 test -z "$ac_c_werror_flag" ||
16557 test ! -s conftest.err
16558 } && test -s conftest.$ac_objext; then
16559 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16561 $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_member_struct_sockaddr_storage_ss_len=no
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16573 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16574 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16576 cat >>confdefs.h <<_ACEOF
16577 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16582 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16583 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16584 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16585 $as_echo_n "(cached) " >&6
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 #include <sys/types.h>
16594 #ifdef HAVE_SYS_SOCKET_H
16595 #include <sys/socket.h>
16602 static struct sockaddr_storage ac_aggr;
16603 if (ac_aggr.__ss_len)
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16616 $as_echo "$ac_try_echo") >&5
16617 (eval "$ac_compile") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest.$ac_objext; then
16627 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16629 $as_echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <sys/types.h>
16639 #ifdef HAVE_SYS_SOCKET_H
16640 #include <sys/socket.h>
16647 static struct sockaddr_storage ac_aggr;
16648 if (sizeof ac_aggr.__ss_len)
16654 rm -f conftest.$ac_objext
16655 if { (ac_try="$ac_compile"
16656 case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661 $as_echo "$ac_try_echo") >&5
16662 (eval "$ac_compile") 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest.$ac_objext; then
16672 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16674 $as_echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_member_struct_sockaddr_storage___ss_len=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16686 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16687 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16689 cat >>confdefs.h <<_ACEOF
16690 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16695 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16696 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16697 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16698 $as_echo_n "(cached) " >&6
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 #include <sys/types.h>
16707 #ifdef HAVE_SYS_SOCKET_H
16708 #include <sys/socket.h>
16715 static struct sockaddr ac_aggr;
16716 if (ac_aggr.sa_len)
16722 rm -f conftest.$ac_objext
16723 if { (ac_try="$ac_compile"
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729 $as_echo "$ac_try_echo") >&5
16730 (eval "$ac_compile") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest.$ac_objext; then
16740 ac_cv_member_struct_sockaddr_sa_len=yes
16742 $as_echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 cat >conftest.$ac_ext <<_ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <sys/types.h>
16752 #ifdef HAVE_SYS_SOCKET_H
16753 #include <sys/socket.h>
16760 static struct sockaddr ac_aggr;
16761 if (sizeof ac_aggr.sa_len)
16767 rm -f conftest.$ac_objext
16768 if { (ac_try="$ac_compile"
16769 case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16774 $as_echo "$ac_try_echo") >&5
16775 (eval "$ac_compile") 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } && {
16782 test -z "$ac_c_werror_flag" ||
16783 test ! -s conftest.err
16784 } && test -s conftest.$ac_objext; then
16785 ac_cv_member_struct_sockaddr_sa_len=yes
16787 $as_echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16790 ac_cv_member_struct_sockaddr_sa_len=no
16793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16799 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16800 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16802 cat >>confdefs.h <<_ACEOF
16803 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16809 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16810 $as_echo_n "checking for struct addrinfo... " >&6; }
16811 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16812 $as_echo_n "(cached) " >&6
16814 ac_cv_type_struct_addrinfo=no
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 #include <sys/types.h>
16822 #include <sys/socket.h>
16829 if (sizeof (struct addrinfo))
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16842 $as_echo "$ac_try_echo") >&5
16843 (eval "$ac_compile") 2>conftest.er1
16845 grep -v '^ *+' conftest.er1 >conftest.err
16847 cat conftest.err >&5
16848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } && {
16850 test -z "$ac_c_werror_flag" ||
16851 test ! -s conftest.err
16852 } && test -s conftest.$ac_objext; then
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <sys/types.h>
16860 #include <sys/socket.h>
16867 if (sizeof ((struct addrinfo)))
16873 rm -f conftest.$ac_objext
16874 if { (ac_try="$ac_compile"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16880 $as_echo "$ac_try_echo") >&5
16881 (eval "$ac_compile") 2>conftest.er1
16883 grep -v '^ *+' conftest.er1 >conftest.err
16885 cat conftest.err >&5
16886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } && {
16888 test -z "$ac_c_werror_flag" ||
16889 test ! -s conftest.err
16890 } && test -s conftest.$ac_objext; then
16893 $as_echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 ac_cv_type_struct_addrinfo=yes
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 $as_echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16910 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16911 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_STRUCT_ADDRINFO 1
16921 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16922 $as_echo_n "checking for intptr_t... " >&6; }
16923 if test "${ac_cv_type_intptr_t+set}" = set; then
16924 $as_echo_n "(cached) " >&6
16926 ac_cv_type_intptr_t=no
16927 cat >conftest.$ac_ext <<_ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933 $ac_includes_default
16937 if (sizeof (intptr_t))
16943 rm -f conftest.$ac_objext
16944 if { (ac_try="$ac_compile"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16950 $as_echo "$ac_try_echo") >&5
16951 (eval "$ac_compile") 2>conftest.er1
16953 grep -v '^ *+' conftest.er1 >conftest.err
16955 cat conftest.err >&5
16956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } && {
16958 test -z "$ac_c_werror_flag" ||
16959 test ! -s conftest.err
16960 } && test -s conftest.$ac_objext; then
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 $ac_includes_default
16971 if (sizeof ((intptr_t)))
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
16997 $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_cv_type_intptr_t=yes
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 $as_echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17014 $as_echo "$ac_cv_type_intptr_t" >&6; }
17015 if test "x$ac_cv_type_intptr_t" = x""yes; then
17017 cat >>confdefs.h <<\_ACEOF
17018 #define HAVE_INTPTR_T 1
17022 for ac_type in 'int' 'long int' 'long long int'; do
17023 cat >conftest.$ac_ext <<_ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 $ac_includes_default
17033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17040 rm -f conftest.$ac_objext
17041 if { (ac_try="$ac_compile"
17042 case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17047 $as_echo "$ac_try_echo") >&5
17048 (eval "$ac_compile") 2>conftest.er1
17050 grep -v '^ *+' conftest.er1 >conftest.err
17052 cat conftest.err >&5
17053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && {
17055 test -z "$ac_c_werror_flag" ||
17056 test ! -s conftest.err
17057 } && test -s conftest.$ac_objext; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define intptr_t $ac_type
17065 $as_echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 test -z "$ac_type" && break
17078 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17079 $as_echo_n "checking for uintptr_t... " >&6; }
17080 if test "${ac_cv_type_uintptr_t+set}" = set; then
17081 $as_echo_n "(cached) " >&6
17083 ac_cv_type_uintptr_t=no
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 $ac_includes_default
17094 if (sizeof (uintptr_t))
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17107 $as_echo "$ac_try_echo") >&5
17108 (eval "$ac_compile") 2>conftest.er1
17110 grep -v '^ *+' conftest.er1 >conftest.err
17112 cat conftest.err >&5
17113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } && {
17115 test -z "$ac_c_werror_flag" ||
17116 test ! -s conftest.err
17117 } && test -s conftest.$ac_objext; then
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 $ac_includes_default
17128 if (sizeof ((uintptr_t)))
17134 rm -f conftest.$ac_objext
17135 if { (ac_try="$ac_compile"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17141 $as_echo "$ac_try_echo") >&5
17142 (eval "$ac_compile") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest.$ac_objext; then
17154 $as_echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ac_cv_type_uintptr_t=yes
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162 $as_echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17171 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17172 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17174 cat >>confdefs.h <<\_ACEOF
17175 #define HAVE_UINTPTR_T 1
17179 for ac_type in 'unsigned int' 'unsigned long int' \
17180 'unsigned long long int'; do
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 $ac_includes_default
17191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17198 rm -f conftest.$ac_objext
17199 if { (ac_try="$ac_compile"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17205 $as_echo "$ac_try_echo") >&5
17206 (eval "$ac_compile") 2>conftest.er1
17208 grep -v '^ *+' conftest.er1 >conftest.err
17210 cat conftest.err >&5
17211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest.$ac_objext; then
17217 cat >>confdefs.h <<_ACEOF
17218 #define uintptr_t $ac_type
17223 $as_echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 test -z "$ac_type" && break
17236 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17237 $as_echo_n "checking for long long int... " >&6; }
17238 if test "${ac_cv_type_long_long_int+set}" = set; then
17239 $as_echo_n "(cached) " >&6
17241 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17248 /* For now, do not test the preprocessor; as of 2007 there are too many
17249 implementations with broken preprocessors. Perhaps this can
17250 be revisited in 2012. In the meantime, code should not expect
17251 #if to work with literals wider than 32 bits. */
17252 /* Test literals. */
17253 long long int ll = 9223372036854775807ll;
17254 long long int nll = -9223372036854775807LL;
17255 unsigned long long int ull = 18446744073709551615ULL;
17256 /* Test constant expressions. */
17257 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17259 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17265 /* Test availability of runtime routines for shift and division. */
17266 long long int llmax = 9223372036854775807ll;
17267 unsigned long long int ullmax = 18446744073709551615ull;
17268 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17269 | (llmax / ll) | (llmax % ll)
17270 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17271 | (ullmax / ull) | (ullmax % ull));
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17284 $as_echo "$ac_try_echo") >&5
17285 (eval "$ac_link") 2>conftest.er1
17287 grep -v '^ *+' conftest.er1 >conftest.err
17289 cat conftest.err >&5
17290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest$ac_exeext && {
17295 test "$cross_compiling" = yes ||
17296 $as_test_x conftest$ac_exeext
17298 if test "$cross_compiling" = yes; then
17299 ac_cv_type_long_long_int=yes
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #include <limits.h>
17310 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17311 # define LLONG_MAX (HALF - 1 + HALF)
17316 long long int n = 1;
17320 long long int m = n << i;
17323 if (LLONG_MAX / 2 < m)
17331 rm -f conftest$ac_exeext
17332 if { (ac_try="$ac_link"
17333 case "(($ac_try" in
17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335 *) ac_try_echo=$ac_try;;
17337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338 $as_echo "$ac_try_echo") >&5
17339 (eval "$ac_link") 2>&5
17341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17348 $as_echo "$ac_try_echo") >&5
17349 (eval "$ac_try") 2>&5
17351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_type_long_long_int=yes
17355 $as_echo "$as_me: program exited with status $ac_status" >&5
17356 $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 ( exit $ac_status )
17360 ac_cv_type_long_long_int=no
17362 rm -rf conftest.dSYM
17363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_cv_type_long_long_int=no
17374 rm -rf conftest.dSYM
17375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17376 conftest$ac_exeext conftest.$ac_ext
17378 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17379 $as_echo "$ac_cv_type_long_long_int" >&6; }
17380 if test $ac_cv_type_long_long_int = yes; then
17382 cat >>confdefs.h <<\_ACEOF
17383 #define HAVE_LONG_LONG_INT 1
17389 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17390 $as_echo_n "checking for locale_t... " >&6; }
17391 if test "${pgac_cv_type_locale_t+set}" = set; then
17392 $as_echo_n "(cached) " >&6
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 #include <locale.h>
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17417 $as_echo "$ac_try_echo") >&5
17418 (eval "$ac_compile") 2>conftest.er1
17420 grep -v '^ *+' conftest.er1 >conftest.err
17422 cat conftest.err >&5
17423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest.$ac_objext; then
17428 pgac_cv_type_locale_t=yes
17430 $as_echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 #include <xlocale.h>
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17456 $as_echo "$ac_try_echo") >&5
17457 (eval "$ac_compile") 2>conftest.er1
17459 grep -v '^ *+' conftest.er1 >conftest.err
17461 cat conftest.err >&5
17462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } && {
17464 test -z "$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 } && test -s conftest.$ac_objext; then
17467 pgac_cv_type_locale_t='yes (in xlocale.h)'
17469 $as_echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17472 pgac_cv_type_locale_t=no
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17481 $as_echo "$pgac_cv_type_locale_t" >&6; }
17482 if test "$pgac_cv_type_locale_t" != no; then
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_LOCALE_T 1
17489 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17491 cat >>confdefs.h <<\_ACEOF
17492 #define LOCALE_T_IN_XLOCALE 1
17497 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17498 $as_echo_n "checking for struct cmsgcred... " >&6; }
17499 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17500 $as_echo_n "(cached) " >&6
17502 ac_cv_type_struct_cmsgcred=no
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <sys/socket.h>
17510 #ifdef HAVE_SYS_UCRED_H
17511 #include <sys/ucred.h>
17517 if (sizeof (struct cmsgcred))
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17530 $as_echo "$ac_try_echo") >&5
17531 (eval "$ac_compile") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest.$ac_objext; then
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 #include <sys/socket.h>
17548 #ifdef HAVE_SYS_UCRED_H
17549 #include <sys/ucred.h>
17555 if (sizeof ((struct cmsgcred)))
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17568 $as_echo "$ac_try_echo") >&5
17569 (eval "$ac_compile") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest.$ac_objext; then
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 ac_cv_type_struct_cmsgcred=yes
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 $as_echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17598 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17599 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_STRUCT_CMSGCRED 1
17609 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17610 $as_echo_n "checking for struct option... " >&6; }
17611 if test "${ac_cv_type_struct_option+set}" = set; then
17612 $as_echo_n "(cached) " >&6
17614 ac_cv_type_struct_option=no
17615 cat >conftest.$ac_ext <<_ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 #ifdef HAVE_GETOPT_H
17622 #include <getopt.h>
17628 if (sizeof (struct option))
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17641 $as_echo "$ac_try_echo") >&5
17642 (eval "$ac_compile") 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } && {
17649 test -z "$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 } && test -s conftest.$ac_objext; then
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 #ifdef HAVE_GETOPT_H
17659 #include <getopt.h>
17665 if (sizeof ((struct option)))
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17678 $as_echo "$ac_try_echo") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17691 $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ac_cv_type_struct_option=yes
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 $as_echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17708 $as_echo "$ac_cv_type_struct_option" >&6; }
17709 if test "x$ac_cv_type_struct_option" = x""yes; then
17711 cat >>confdefs.h <<_ACEOF
17712 #define HAVE_STRUCT_OPTION 1
17719 if test "$with_zlib" = yes; then
17720 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17721 # did not). While we could work around the lack of z_streamp, it
17722 # seems unwise to encourage people to use such old zlib versions...
17723 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17724 $as_echo_n "checking for z_streamp... " >&6; }
17725 if test "${ac_cv_type_z_streamp+set}" = set; then
17726 $as_echo_n "(cached) " >&6
17728 ac_cv_type_z_streamp=no
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17740 if (sizeof (z_streamp))
17746 rm -f conftest.$ac_objext
17747 if { (ac_try="$ac_compile"
17748 case "(($ac_try" in
17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753 $as_echo "$ac_try_echo") >&5
17754 (eval "$ac_compile") 2>conftest.er1
17756 grep -v '^ *+' conftest.er1 >conftest.err
17758 cat conftest.err >&5
17759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } && {
17761 test -z "$ac_c_werror_flag" ||
17762 test ! -s conftest.err
17763 } && test -s conftest.$ac_objext; then
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17775 if (sizeof ((z_streamp)))
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789 (eval "$ac_compile") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest.$ac_objext; then
17801 $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17804 ac_cv_type_z_streamp=yes
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 $as_echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17818 $as_echo "$ac_cv_type_z_streamp" >&6; }
17819 if test "x$ac_cv_type_z_streamp" = x""yes; then
17822 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17823 Use --without-zlib to disable zlib support." >&5
17824 $as_echo "$as_me: error: zlib version is too old
17825 Use --without-zlib to disable zlib support." >&2;}
17826 { (exit 1); exit 1; }; }
17831 if test "$with_krb5" = yes; then
17832 # Check for differences between MIT and Heimdal (KTH) releases
17833 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17834 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17835 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17836 $as_echo_n "(cached) " >&6
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17849 static krb5_ticket ac_aggr;
17850 if (ac_aggr.enc_part2)
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17863 $as_echo "$ac_try_echo") >&5
17864 (eval "$ac_compile") 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && {
17871 test -z "$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17873 } && test -s conftest.$ac_objext; then
17874 ac_cv_member_krb5_ticket_enc_part2=yes
17876 $as_echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17890 static krb5_ticket ac_aggr;
17891 if (sizeof ac_aggr.enc_part2)
17897 rm -f conftest.$ac_objext
17898 if { (ac_try="$ac_compile"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904 $as_echo "$ac_try_echo") >&5
17905 (eval "$ac_compile") 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest.$ac_objext; then
17915 ac_cv_member_krb5_ticket_enc_part2=yes
17917 $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_cv_member_krb5_ticket_enc_part2=no
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17929 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17930 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define HAVE_KRB5_TICKET_ENC_PART2 1
17938 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17939 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17940 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17941 $as_echo_n "(cached) " >&6
17943 cat >conftest.$ac_ext <<_ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17954 static krb5_ticket ac_aggr;
17955 if (ac_aggr.client)
17961 rm -f conftest.$ac_objext
17962 if { (ac_try="$ac_compile"
17963 case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17968 $as_echo "$ac_try_echo") >&5
17969 (eval "$ac_compile") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } && {
17976 test -z "$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 } && test -s conftest.$ac_objext; then
17979 ac_cv_member_krb5_ticket_client=yes
17981 $as_echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17995 static krb5_ticket ac_aggr;
17996 if (sizeof ac_aggr.client)
18002 rm -f conftest.$ac_objext
18003 if { (ac_try="$ac_compile"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18009 $as_echo "$ac_try_echo") >&5
18010 (eval "$ac_compile") 2>conftest.er1
18012 grep -v '^ *+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } && {
18017 test -z "$ac_c_werror_flag" ||
18018 test ! -s conftest.err
18019 } && test -s conftest.$ac_objext; then
18020 ac_cv_member_krb5_ticket_client=yes
18022 $as_echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 ac_cv_member_krb5_ticket_client=no
18028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18033 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18034 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18035 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18037 cat >>confdefs.h <<_ACEOF
18038 #define HAVE_KRB5_TICKET_CLIENT 1
18043 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18044 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18045 { (exit 1); exit 1; }; }
18050 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18051 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18052 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18053 $as_echo_n "(cached) " >&6
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18066 static krb5_error ac_aggr;
18067 if (ac_aggr.text.data)
18073 rm -f conftest.$ac_objext
18074 if { (ac_try="$ac_compile"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18080 $as_echo "$ac_try_echo") >&5
18081 (eval "$ac_compile") 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest.$ac_objext; then
18091 ac_cv_member_krb5_error_text_data=yes
18093 $as_echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 cat >conftest.$ac_ext <<_ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18107 static krb5_error ac_aggr;
18108 if (sizeof ac_aggr.text.data)
18114 rm -f conftest.$ac_objext
18115 if { (ac_try="$ac_compile"
18116 case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18121 $as_echo "$ac_try_echo") >&5
18122 (eval "$ac_compile") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && {
18129 test -z "$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 } && test -s conftest.$ac_objext; then
18132 ac_cv_member_krb5_error_text_data=yes
18134 $as_echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18137 ac_cv_member_krb5_error_text_data=no
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18146 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18147 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18155 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18156 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18157 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18158 $as_echo_n "(cached) " >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18171 static krb5_error ac_aggr;
18172 if (ac_aggr.e_data)
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186 (eval "$ac_compile") 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest.$ac_objext; then
18196 ac_cv_member_krb5_error_e_data=yes
18198 $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 cat >conftest.$ac_ext <<_ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18212 static krb5_error ac_aggr;
18213 if (sizeof ac_aggr.e_data)
18219 rm -f conftest.$ac_objext
18220 if { (ac_try="$ac_compile"
18221 case "(($ac_try" in
18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223 *) ac_try_echo=$ac_try;;
18225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18226 $as_echo "$ac_try_echo") >&5
18227 (eval "$ac_compile") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } && {
18234 test -z "$ac_c_werror_flag" ||
18235 test ! -s conftest.err
18236 } && test -s conftest.$ac_objext; then
18237 ac_cv_member_krb5_error_e_data=yes
18239 $as_echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_cv_member_krb5_error_e_data=no
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18251 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18252 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18254 cat >>confdefs.h <<_ACEOF
18255 #define HAVE_KRB5_ERROR_E_DATA 1
18260 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18261 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18262 { (exit 1); exit 1; }; }
18268 # Win32 requires headers to be loaded for __stdcall, so can't use
18269 # AC_CHECK_FUNCS here.
18270 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18271 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18272 cat >conftest.$ac_ext <<_ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18282 krb5_free_unparsed_name(NULL,NULL);
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18294 $as_echo "$ac_try_echo") >&5
18295 (eval "$ac_link") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && {
18302 test -z "$ac_c_werror_flag" ||
18303 test ! -s conftest.err
18304 } && test -s conftest$ac_exeext && {
18305 test "$cross_compiling" = yes ||
18306 $as_test_x conftest$ac_exeext
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18313 { $as_echo "$as_me:$LINENO: result: yes" >&5
18314 $as_echo "yes" >&6; }
18316 $as_echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 { $as_echo "$as_me:$LINENO: result: no" >&5
18320 $as_echo "no" >&6; }
18323 rm -rf conftest.dSYM
18324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18325 conftest$ac_exeext conftest.$ac_ext
18328 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18331 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18332 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18333 cat >conftest.$ac_ext <<_ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18343 int a = 0; int *p = &a; int r;
18344 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18356 $as_echo "$ac_try_echo") >&5
18357 (eval "$ac_compile") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } && {
18364 test -z "$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 } && test -s conftest.$ac_objext; then
18367 pgac_cv_have_ppc_mutex_hint=yes
18369 $as_echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 pgac_cv_have_ppc_mutex_hint=no
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18376 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18377 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18378 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18380 cat >>confdefs.h <<\_ACEOF
18381 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18388 # Check largefile support. You might think this is a system service not a
18389 # compiler characteristic, but you'd be wrong. We must check this before
18390 # probing existence of related functions such as fseeko, since the largefile
18391 # defines can affect what is generated for that.
18392 if test "$PORTNAME" != "win32"; then
18393 # Check whether --enable-largefile was given.
18394 if test "${enable_largefile+set}" = set; then
18395 enableval=$enable_largefile;
18398 if test "$enable_largefile" != no; then
18400 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18401 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18402 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18403 $as_echo_n "(cached) " >&6
18405 ac_cv_sys_largefile_CC=no
18406 if test "$GCC" != yes; then
18409 # IRIX 6.2 and later do not support large files by default,
18410 # so use the C compiler's -n32 option if that helps.
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 #include <sys/types.h>
18418 /* Check that off_t can represent 2**63 - 1 correctly.
18419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18420 since some C++ compilers masquerading as C compilers
18421 incorrectly reject 9223372036854775807. */
18422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18424 && LARGE_OFF_T % 2147483647 == 1)
18434 rm -f conftest.$ac_objext
18435 if { (ac_try="$ac_compile"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18441 $as_echo "$ac_try_echo") >&5
18442 (eval "$ac_compile") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } && {
18449 test -z "$ac_c_werror_flag" ||
18450 test ! -s conftest.err
18451 } && test -s conftest.$ac_objext; then
18454 $as_echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18460 rm -f core conftest.err conftest.$ac_objext
18462 rm -f conftest.$ac_objext
18463 if { (ac_try="$ac_compile"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18469 $as_echo "$ac_try_echo") >&5
18470 (eval "$ac_compile") 2>conftest.er1
18472 grep -v '^ *+' conftest.er1 >conftest.err
18474 cat conftest.err >&5
18475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } && {
18477 test -z "$ac_c_werror_flag" ||
18478 test ! -s conftest.err
18479 } && test -s conftest.$ac_objext; then
18480 ac_cv_sys_largefile_CC=' -n32'; break
18482 $as_echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18488 rm -f core conftest.err conftest.$ac_objext
18492 rm -f conftest.$ac_ext
18495 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18496 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18497 if test "$ac_cv_sys_largefile_CC" != no; then
18498 CC=$CC$ac_cv_sys_largefile_CC
18501 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18502 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18503 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18504 $as_echo_n "(cached) " >&6
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 #include <sys/types.h>
18514 /* Check that off_t can represent 2**63 - 1 correctly.
18515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18516 since some C++ compilers masquerading as C compilers
18517 incorrectly reject 9223372036854775807. */
18518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18520 && LARGE_OFF_T % 2147483647 == 1)
18530 rm -f conftest.$ac_objext
18531 if { (ac_try="$ac_compile"
18532 case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18537 $as_echo "$ac_try_echo") >&5
18538 (eval "$ac_compile") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest.$ac_objext; then
18548 ac_cv_sys_file_offset_bits=no; break
18550 $as_echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 #define _FILE_OFFSET_BITS 64
18564 #include <sys/types.h>
18565 /* Check that off_t can represent 2**63 - 1 correctly.
18566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18567 since some C++ compilers masquerading as C compilers
18568 incorrectly reject 9223372036854775807. */
18569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18571 && LARGE_OFF_T % 2147483647 == 1)
18581 rm -f conftest.$ac_objext
18582 if { (ac_try="$ac_compile"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18588 $as_echo "$ac_try_echo") >&5
18589 (eval "$ac_compile") 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && {
18596 test -z "$ac_c_werror_flag" ||
18597 test ! -s conftest.err
18598 } && test -s conftest.$ac_objext; then
18599 ac_cv_sys_file_offset_bits=64; break
18601 $as_echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608 ac_cv_sys_file_offset_bits=unknown
18612 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18613 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18614 case $ac_cv_sys_file_offset_bits in #(
18617 cat >>confdefs.h <<_ACEOF
18618 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18623 if test $ac_cv_sys_file_offset_bits = unknown; then
18624 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18625 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18626 if test "${ac_cv_sys_large_files+set}" = set; then
18627 $as_echo_n "(cached) " >&6
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #include <sys/types.h>
18637 /* Check that off_t can represent 2**63 - 1 correctly.
18638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18639 since some C++ compilers masquerading as C compilers
18640 incorrectly reject 9223372036854775807. */
18641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18643 && LARGE_OFF_T % 2147483647 == 1)
18653 rm -f conftest.$ac_objext
18654 if { (ac_try="$ac_compile"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18660 $as_echo "$ac_try_echo") >&5
18661 (eval "$ac_compile") 2>conftest.er1
18663 grep -v '^ *+' conftest.er1 >conftest.err
18665 cat conftest.err >&5
18666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && {
18668 test -z "$ac_c_werror_flag" ||
18669 test ! -s conftest.err
18670 } && test -s conftest.$ac_objext; then
18671 ac_cv_sys_large_files=no; break
18673 $as_echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 #define _LARGE_FILES 1
18687 #include <sys/types.h>
18688 /* Check that off_t can represent 2**63 - 1 correctly.
18689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18690 since some C++ compilers masquerading as C compilers
18691 incorrectly reject 9223372036854775807. */
18692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18694 && LARGE_OFF_T % 2147483647 == 1)
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18711 $as_echo "$ac_try_echo") >&5
18712 (eval "$ac_compile") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest.$ac_objext; then
18722 ac_cv_sys_large_files=1; break
18724 $as_echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 ac_cv_sys_large_files=unknown
18735 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18736 $as_echo "$ac_cv_sys_large_files" >&6; }
18737 case $ac_cv_sys_large_files in #(
18740 cat >>confdefs.h <<_ACEOF
18741 #define _LARGE_FILES $ac_cv_sys_large_files
18751 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18752 # The cast to long int works around a bug in the HP C Compiler
18753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18755 # This bug is HP SR number 8606223364.
18756 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18757 $as_echo_n "checking size of off_t... " >&6; }
18758 if test "${ac_cv_sizeof_off_t+set}" = set; then
18759 $as_echo_n "(cached) " >&6
18761 if test "$cross_compiling" = yes; then
18762 # Depending upon the size, compute the lo and hi bounds.
18763 cat >conftest.$ac_ext <<_ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 $ac_includes_default
18773 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18780 rm -f conftest.$ac_objext
18781 if { (ac_try="$ac_compile"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788 (eval "$ac_compile") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest.$ac_objext; then
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 $ac_includes_default
18810 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18817 rm -f conftest.$ac_objext
18818 if { (ac_try="$ac_compile"
18819 case "(($ac_try" in
18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821 *) ac_try_echo=$ac_try;;
18823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18824 $as_echo "$ac_try_echo") >&5
18825 (eval "$ac_compile") 2>conftest.er1
18827 grep -v '^ *+' conftest.er1 >conftest.err
18829 cat conftest.err >&5
18830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest.$ac_objext; then
18835 ac_hi=$ac_mid; break
18837 $as_echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18840 ac_lo=`expr $ac_mid + 1`
18841 if test $ac_lo -le $ac_mid; then
18845 ac_mid=`expr 2 '*' $ac_mid + 1`
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851 $as_echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 $ac_includes_default
18864 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18871 rm -f conftest.$ac_objext
18872 if { (ac_try="$ac_compile"
18873 case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18878 $as_echo "$ac_try_echo") >&5
18879 (eval "$ac_compile") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest.$ac_objext; then
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18901 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916 (eval "$ac_compile") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest.$ac_objext; then
18926 ac_lo=$ac_mid; break
18928 $as_echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_hi=`expr '(' $ac_mid ')' - 1`
18932 if test $ac_mid -le $ac_hi; then
18936 ac_mid=`expr 2 '*' $ac_mid`
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18942 $as_echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 # Binary search between lo and hi bounds.
18953 while test "x$ac_lo" != "x$ac_hi"; do
18954 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18965 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18979 $as_echo "$ac_try_echo") >&5
18980 (eval "$ac_compile") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest.$ac_objext; then
18992 $as_echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_lo=`expr '(' $ac_mid ')' + 1`
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19002 '') if test "$ac_cv_type_off_t" = yes; then
19003 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19005 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19006 See \`config.log' for more details." >&5
19007 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19008 See \`config.log' for more details." >&2;}
19009 { (exit 77); exit 77; }; }; }
19011 ac_cv_sizeof_off_t=0
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 $ac_includes_default
19022 static long int longval () { return (long int) (sizeof (off_t)); }
19023 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19025 #include <stdlib.h>
19030 FILE *f = fopen ("conftest.val", "w");
19033 if (((long int) (sizeof (off_t))) < 0)
19035 long int i = longval ();
19036 if (i != ((long int) (sizeof (off_t))))
19038 fprintf (f, "%ld", i);
19042 unsigned long int i = ulongval ();
19043 if (i != ((long int) (sizeof (off_t))))
19045 fprintf (f, "%lu", i);
19047 /* Do not output a trailing newline, as this causes \r\n confusion
19048 on some platforms. */
19049 return ferror (f) || fclose (f) != 0;
19055 rm -f conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_link") 2>&5
19065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19067 { (case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19072 $as_echo "$ac_try_echo") >&5
19073 (eval "$ac_try") 2>&5
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077 ac_cv_sizeof_off_t=`cat conftest.val`
19079 $as_echo "$as_me: program exited with status $ac_status" >&5
19080 $as_echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ( exit $ac_status )
19084 if test "$ac_cv_type_off_t" = yes; then
19085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19087 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19088 See \`config.log' for more details." >&5
19089 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19090 See \`config.log' for more details." >&2;}
19091 { (exit 77); exit 77; }; }; }
19093 ac_cv_sizeof_off_t=0
19096 rm -rf conftest.dSYM
19097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19101 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19102 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19106 cat >>confdefs.h <<_ACEOF
19107 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19112 # If we don't have largefile support, can't handle segsize >= 2GB.
19113 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19114 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19115 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19116 { (exit 1); exit 1; }; }
19121 ## Functions, global variables
19124 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19125 $as_echo_n "checking for int timezone... " >&6; }
19126 if test "${pgac_cv_var_int_timezone+set}" = set; then
19127 $as_echo_n "(cached) " >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19141 res = timezone / 60;
19143 res = _timezone / 60;
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (ac_try="$ac_link"
19151 case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19156 $as_echo "$ac_try_echo") >&5
19157 (eval "$ac_link") 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } && {
19164 test -z "$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 } && test -s conftest$ac_exeext && {
19167 test "$cross_compiling" = yes ||
19168 $as_test_x conftest$ac_exeext
19170 pgac_cv_var_int_timezone=yes
19172 $as_echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19175 pgac_cv_var_int_timezone=no
19178 rm -rf conftest.dSYM
19179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19180 conftest$ac_exeext conftest.$ac_ext
19182 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19183 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19184 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_INT_TIMEZONE /**/
19191 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19192 $as_echo_n "checking types of arguments for accept()... " >&6; }
19193 if test "${ac_cv_func_accept_return+set}" = set; then
19194 $as_echo_n "(cached) " >&6
19196 if test "${ac_cv_func_accept_arg1+set}" = set; then
19197 $as_echo_n "(cached) " >&6
19199 if test "${ac_cv_func_accept_arg2+set}" = set; then
19200 $as_echo_n "(cached) " >&6
19202 if test "${ac_cv_func_accept_arg3+set}" = set; then
19203 $as_echo_n "(cached) " >&6
19205 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19206 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19207 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19208 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 #ifdef HAVE_SYS_TYPES_H
19216 #include <sys/types.h>
19218 #ifdef HAVE_SYS_SOCKET_H
19219 #include <sys/socket.h>
19221 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19230 rm -f conftest.$ac_objext
19231 if { (ac_try="$ac_compile"
19232 case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19237 $as_echo "$ac_try_echo") >&5
19238 (eval "$ac_compile") 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } && {
19245 test -z "$ac_c_werror_flag" ||
19246 test ! -s conftest.err
19247 } && test -s conftest.$ac_objext; then
19248 ac_not_found=no; break 4
19250 $as_echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19261 if test "$ac_not_found" = yes; then
19262 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19263 $as_echo "$as_me: error: could not determine argument types" >&2;}
19264 { (exit 1); exit 1; }; }
19266 if test "$ac_cv_func_accept_arg3" = "void"; then
19267 ac_cv_func_accept_arg3=int
19277 { $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
19278 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19280 cat >>confdefs.h <<_ACEOF
19281 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19285 cat >>confdefs.h <<_ACEOF
19286 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19290 cat >>confdefs.h <<_ACEOF
19291 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19295 cat >>confdefs.h <<_ACEOF
19296 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19300 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19301 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19302 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19303 $as_echo_n "(cached) " >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 #include <sys/time.h>
19315 struct timeval *tp;
19316 struct timezone *tzp;
19317 gettimeofday(tp,tzp);
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19329 $as_echo "$ac_try_echo") >&5
19330 (eval "$ac_compile") 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } && {
19337 test -z "$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19339 } && test -s conftest.$ac_objext; then
19340 pgac_cv_func_gettimeofday_1arg=no
19342 $as_echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 pgac_cv_func_gettimeofday_1arg=yes
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19351 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19352 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19354 cat >>confdefs.h <<\_ACEOF
19355 #define GETTIMEOFDAY_1ARG /**/
19362 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19363 # symbols that that library has no business exposing to the world. Pending
19364 # acquisition of a clue by those developers, ignore libedit (including its
19365 # possible alias of libreadline) while checking for everything else.
19366 LIBS_including_readline="$LIBS"
19367 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19390 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
19392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19394 $as_echo_n "checking for $ac_func... " >&6; }
19395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19396 $as_echo_n "(cached) " >&6
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19406 #define $ac_func innocuous_$ac_func
19408 /* System header to define __stub macros and hopefully few prototypes,
19409 which can conflict with char $ac_func (); below.
19410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411 <limits.h> exists even on freestanding compilers. */
19414 # include <limits.h>
19416 # include <assert.h>
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19428 /* The GNU C library defines this for functions which it implements
19429 to always fail with ENOSYS. Some functions are actually named
19430 something starting with __ and the normal name is an alias. */
19431 #if defined __stub_$ac_func || defined __stub___$ac_func
19438 return $ac_func ();
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (ac_try="$ac_link"
19445 case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19450 $as_echo "$ac_try_echo") >&5
19451 (eval "$ac_link") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && {
19458 test -z "$ac_c_werror_flag" ||
19459 test ! -s conftest.err
19460 } && test -s conftest$ac_exeext && {
19461 test "$cross_compiling" = yes ||
19462 $as_test_x conftest$ac_exeext
19464 eval "$as_ac_var=yes"
19466 $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 eval "$as_ac_var=no"
19472 rm -rf conftest.dSYM
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19476 ac_res=`eval 'as_val=${'$as_ac_var'}
19477 $as_echo "$as_val"'`
19478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19479 $as_echo "$ac_res" >&6; }
19480 as_val=`eval 'as_val=${'$as_ac_var'}
19481 $as_echo "$as_val"'`
19482 if test "x$as_val" = x""yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19492 for ac_func in fseeko
19494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19495 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19496 $as_echo_n "checking for $ac_func... " >&6; }
19497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19498 $as_echo_n "(cached) " >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19508 #define $ac_func innocuous_$ac_func
19510 /* System header to define __stub macros and hopefully few prototypes,
19511 which can conflict with char $ac_func (); below.
19512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19513 <limits.h> exists even on freestanding compilers. */
19516 # include <limits.h>
19518 # include <assert.h>
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19530 /* The GNU C library defines this for functions which it implements
19531 to always fail with ENOSYS. Some functions are actually named
19532 something starting with __ and the normal name is an alias. */
19533 #if defined __stub_$ac_func || defined __stub___$ac_func
19540 return $ac_func ();
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19552 $as_echo "$ac_try_echo") >&5
19553 (eval "$ac_link") 2>conftest.er1
19555 grep -v '^ *+' conftest.er1 >conftest.err
19557 cat conftest.err >&5
19558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext && {
19563 test "$cross_compiling" = yes ||
19564 $as_test_x conftest$ac_exeext
19566 eval "$as_ac_var=yes"
19568 $as_echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 eval "$as_ac_var=no"
19574 rm -rf conftest.dSYM
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576 conftest$ac_exeext conftest.$ac_ext
19578 ac_res=`eval 'as_val=${'$as_ac_var'}
19579 $as_echo "$as_val"'`
19580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19581 $as_echo "$ac_res" >&6; }
19582 as_val=`eval 'as_val=${'$as_ac_var'}
19583 $as_echo "$as_val"'`
19584 if test "x$as_val" = x""yes; then
19585 cat >>confdefs.h <<_ACEOF
19586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19590 case " $LIBOBJS " in
19591 *" $ac_func.$ac_objext "* ) ;;
19592 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19601 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19602 # Mingw uses macros to access Win32 API calls
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_FSEEKO 1
19609 ac_cv_func_fseeko=yes;;
19611 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19612 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19613 if test "${ac_cv_sys_largefile_source+set}" = set; then
19614 $as_echo_n "(cached) " >&6
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 #include <sys/types.h> /* for off_t */
19628 int (*fp) (FILE *, off_t, int) = fseeko;
19629 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_link") 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest$ac_exeext && {
19652 test "$cross_compiling" = yes ||
19653 $as_test_x conftest$ac_exeext
19655 ac_cv_sys_largefile_source=no; break
19657 $as_echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19663 rm -rf conftest.dSYM
19664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19665 conftest$ac_exeext conftest.$ac_ext
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #define _LARGEFILE_SOURCE 1
19673 #include <sys/types.h> /* for off_t */
19678 int (*fp) (FILE *, off_t, int) = fseeko;
19679 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19691 $as_echo "$ac_try_echo") >&5
19692 (eval "$ac_link") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext && {
19702 test "$cross_compiling" = yes ||
19703 $as_test_x conftest$ac_exeext
19705 ac_cv_sys_largefile_source=1; break
19707 $as_echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19713 rm -rf conftest.dSYM
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19716 ac_cv_sys_largefile_source=unknown
19720 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19721 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19722 case $ac_cv_sys_largefile_source in #(
19725 cat >>confdefs.h <<_ACEOF
19726 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19732 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19733 # in glibc 2.1.3, but that breaks too many other things.
19734 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19735 if test $ac_cv_sys_largefile_source != unknown; then
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_FSEEKO 1
19745 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19746 # by calling it, 2009-04-02
19747 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19748 if test "$PORTNAME" != "solaris"; then
19750 for ac_func in posix_fadvise
19752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19754 $as_echo_n "checking for $ac_func... " >&6; }
19755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19756 $as_echo_n "(cached) " >&6
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19766 #define $ac_func innocuous_$ac_func
19768 /* System header to define __stub macros and hopefully few prototypes,
19769 which can conflict with char $ac_func (); below.
19770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19771 <limits.h> exists even on freestanding compilers. */
19774 # include <limits.h>
19776 # include <assert.h>
19781 /* Override any GCC internal prototype to avoid an error.
19782 Use char because int might match the return type of a GCC
19783 builtin and then its argument prototype would still apply. */
19788 /* The GNU C library defines this for functions which it implements
19789 to always fail with ENOSYS. Some functions are actually named
19790 something starting with __ and the normal name is an alias. */
19791 #if defined __stub_$ac_func || defined __stub___$ac_func
19798 return $ac_func ();
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (ac_try="$ac_link"
19805 case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19810 $as_echo "$ac_try_echo") >&5
19811 (eval "$ac_link") 2>conftest.er1
19813 grep -v '^ *+' conftest.er1 >conftest.err
19815 cat conftest.err >&5
19816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest$ac_exeext && {
19821 test "$cross_compiling" = yes ||
19822 $as_test_x conftest$ac_exeext
19824 eval "$as_ac_var=yes"
19826 $as_echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 eval "$as_ac_var=no"
19832 rm -rf conftest.dSYM
19833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19834 conftest$ac_exeext conftest.$ac_ext
19836 ac_res=`eval 'as_val=${'$as_ac_var'}
19837 $as_echo "$as_val"'`
19838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19839 $as_echo "$ac_res" >&6; }
19840 as_val=`eval 'as_val=${'$as_ac_var'}
19841 $as_echo "$as_val"'`
19842 if test "x$as_val" = x""yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19850 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19851 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19852 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19853 $as_echo_n "(cached) " >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19866 #ifndef posix_fadvise
19867 (void) posix_fadvise;
19874 rm -f conftest.$ac_objext
19875 if { (ac_try="$ac_compile"
19876 case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19881 $as_echo "$ac_try_echo") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19884 grep -v '^ *+' conftest.er1 >conftest.err
19886 cat conftest.err >&5
19887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest.$ac_objext; then
19892 ac_cv_have_decl_posix_fadvise=yes
19894 $as_echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ac_cv_have_decl_posix_fadvise=no
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19903 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19904 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_DECL_POSIX_FADVISE 1
19912 cat >>confdefs.h <<_ACEOF
19913 #define HAVE_DECL_POSIX_FADVISE 0
19922 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19923 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19924 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19925 $as_echo_n "(cached) " >&6
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 #include <unistd.h>
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19953 $as_echo "$ac_try_echo") >&5
19954 (eval "$ac_compile") 2>conftest.er1
19956 grep -v '^ *+' conftest.er1 >conftest.err
19958 cat conftest.err >&5
19959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } && {
19961 test -z "$ac_c_werror_flag" ||
19962 test ! -s conftest.err
19963 } && test -s conftest.$ac_objext; then
19964 ac_cv_have_decl_fdatasync=yes
19966 $as_echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 ac_cv_have_decl_fdatasync=no
19972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19975 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19976 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19978 cat >>confdefs.h <<_ACEOF
19979 #define HAVE_DECL_FDATASYNC 1
19984 cat >>confdefs.h <<_ACEOF
19985 #define HAVE_DECL_FDATASYNC 0
19992 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19993 $as_echo_n "checking whether strlcat is declared... " >&6; }
19994 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19995 $as_echo_n "(cached) " >&6
19997 cat >conftest.$ac_ext <<_ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 $ac_includes_default
20015 rm -f conftest.$ac_objext
20016 if { (ac_try="$ac_compile"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20022 $as_echo "$ac_try_echo") >&5
20023 (eval "$ac_compile") 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } && {
20030 test -z "$ac_c_werror_flag" ||
20031 test ! -s conftest.err
20032 } && test -s conftest.$ac_objext; then
20033 ac_cv_have_decl_strlcat=yes
20035 $as_echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_have_decl_strlcat=no
20041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20044 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20045 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20047 cat >>confdefs.h <<_ACEOF
20048 #define HAVE_DECL_STRLCAT 1
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_DECL_STRLCAT 0
20059 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20060 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20061 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20062 $as_echo_n "(cached) " >&6
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 $ac_includes_default
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20089 $as_echo "$ac_try_echo") >&5
20090 (eval "$ac_compile") 2>conftest.er1
20092 grep -v '^ *+' conftest.er1 >conftest.err
20094 cat conftest.err >&5
20095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } && {
20097 test -z "$ac_c_werror_flag" ||
20098 test ! -s conftest.err
20099 } && test -s conftest.$ac_objext; then
20100 ac_cv_have_decl_strlcpy=yes
20102 $as_echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20105 ac_cv_have_decl_strlcpy=no
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20111 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20112 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20114 cat >>confdefs.h <<_ACEOF
20115 #define HAVE_DECL_STRLCPY 1
20120 cat >>confdefs.h <<_ACEOF
20121 #define HAVE_DECL_STRLCPY 0
20128 # This is probably only present on Darwin, but may as well check always
20129 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20130 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20131 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20132 $as_echo_n "(cached) " >&6
20134 cat >conftest.$ac_ext <<_ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20145 #ifndef F_FULLFSYNC
20146 (void) F_FULLFSYNC;
20153 rm -f conftest.$ac_objext
20154 if { (ac_try="$ac_compile"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20160 $as_echo "$ac_try_echo") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20163 grep -v '^ *+' conftest.er1 >conftest.err
20165 cat conftest.err >&5
20166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } && {
20168 test -z "$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 } && test -s conftest.$ac_objext; then
20171 ac_cv_have_decl_F_FULLFSYNC=yes
20173 $as_echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_cv_have_decl_F_FULLFSYNC=no
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20182 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20183 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20185 cat >>confdefs.h <<_ACEOF
20186 #define HAVE_DECL_F_FULLFSYNC 1
20191 cat >>confdefs.h <<_ACEOF
20192 #define HAVE_DECL_F_FULLFSYNC 0
20201 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20202 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20203 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20204 $as_echo_n "(cached) " >&6
20206 ac_cv_type_struct_sockaddr_in6=no
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 #include <netinet/in.h>
20219 if (sizeof (struct sockaddr_in6))
20225 rm -f conftest.$ac_objext
20226 if { (ac_try="$ac_compile"
20227 case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232 $as_echo "$ac_try_echo") >&5
20233 (eval "$ac_compile") 2>conftest.er1
20235 grep -v '^ *+' conftest.er1 >conftest.err
20237 cat conftest.err >&5
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); } && {
20240 test -z "$ac_c_werror_flag" ||
20241 test ! -s conftest.err
20242 } && test -s conftest.$ac_objext; then
20243 cat >conftest.$ac_ext <<_ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 $ac_includes_default
20250 #include <netinet/in.h>
20255 if (sizeof ((struct sockaddr_in6)))
20261 rm -f conftest.$ac_objext
20262 if { (ac_try="$ac_compile"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20268 $as_echo "$ac_try_echo") >&5
20269 (eval "$ac_compile") 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } && {
20276 test -z "$ac_c_werror_flag" ||
20277 test ! -s conftest.err
20278 } && test -s conftest.$ac_objext; then
20281 $as_echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284 ac_cv_type_struct_sockaddr_in6=yes
20287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20289 $as_echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20298 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20299 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20301 cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_IPV6 1
20310 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20311 $as_echo_n "checking for PS_STRINGS... " >&6; }
20312 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20313 $as_echo_n "(cached) " >&6
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <machine/vmparam.h>
20322 #include <sys/exec.h>
20327 PS_STRINGS->ps_nargvstr = 1;
20328 PS_STRINGS->ps_argvstr = "foo";
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20340 $as_echo "$ac_try_echo") >&5
20341 (eval "$ac_link") 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } && {
20348 test -z "$ac_c_werror_flag" ||
20349 test ! -s conftest.err
20350 } && test -s conftest$ac_exeext && {
20351 test "$cross_compiling" = yes ||
20352 $as_test_x conftest$ac_exeext
20354 pgac_cv_var_PS_STRINGS=yes
20356 $as_echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 pgac_cv_var_PS_STRINGS=no
20362 rm -rf conftest.dSYM
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20366 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20367 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20368 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20370 cat >>confdefs.h <<\_ACEOF
20371 #define HAVE_PS_STRINGS /**/
20377 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20378 # is missing. Yes, there are machines that have only one. We may
20379 # also decide to use snprintf.c if snprintf() is present but does not
20380 # have all the features we need --- see below.
20382 if test "$PORTNAME" = "win32"; then
20383 # Win32 gets snprintf.c built unconditionally.
20385 # To properly translate all NLS languages strings, we must support the
20386 # *printf() %$ format, which allows *printf() arguments to be selected
20387 # by position in the translated string.
20389 # libintl versions < 0.13 use the native *printf() functions, and Win32
20390 # *printf() doesn't understand %$, so we must use our /port versions,
20391 # which do understand %$. libintl versions >= 0.13 include their own
20392 # *printf versions on Win32. The libintl 0.13 release note text is:
20394 # C format strings with positions, as they arise when a translator
20395 # needs to reorder a sentence, are now supported on all platforms.
20396 # On those few platforms (NetBSD and Woe32) for which the native
20397 # printf()/fprintf()/... functions don't support such format
20398 # strings, replacements are provided through <libintl.h>.
20400 # We could use libintl >= 0.13's *printf() if we were sure that we had
20401 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20402 # to guarantee that, it is best to just use our own, so we are sure to
20403 # get %$ support. In include/port.h we disable the *printf() macros
20404 # that might have been defined by libintl.
20406 # We do this unconditionally whether NLS is used or not so we are sure
20407 # that all Win32 libraries and binaries behave the same.
20408 pgac_need_repl_snprintf=yes
20410 pgac_need_repl_snprintf=no
20412 for ac_func in snprintf
20414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20416 $as_echo_n "checking for $ac_func... " >&6; }
20417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20418 $as_echo_n "(cached) " >&6
20420 cat >conftest.$ac_ext <<_ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20428 #define $ac_func innocuous_$ac_func
20430 /* System header to define __stub macros and hopefully few prototypes,
20431 which can conflict with char $ac_func (); below.
20432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20433 <limits.h> exists even on freestanding compilers. */
20436 # include <limits.h>
20438 # include <assert.h>
20443 /* Override any GCC internal prototype to avoid an error.
20444 Use char because int might match the return type of a GCC
20445 builtin and then its argument prototype would still apply. */
20450 /* The GNU C library defines this for functions which it implements
20451 to always fail with ENOSYS. Some functions are actually named
20452 something starting with __ and the normal name is an alias. */
20453 #if defined __stub_$ac_func || defined __stub___$ac_func
20460 return $ac_func ();
20465 rm -f conftest.$ac_objext conftest$ac_exeext
20466 if { (ac_try="$ac_link"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20472 $as_echo "$ac_try_echo") >&5
20473 (eval "$ac_link") 2>conftest.er1
20475 grep -v '^ *+' conftest.er1 >conftest.err
20477 cat conftest.err >&5
20478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext && {
20483 test "$cross_compiling" = yes ||
20484 $as_test_x conftest$ac_exeext
20486 eval "$as_ac_var=yes"
20488 $as_echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 eval "$as_ac_var=no"
20494 rm -rf conftest.dSYM
20495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20496 conftest$ac_exeext conftest.$ac_ext
20498 ac_res=`eval 'as_val=${'$as_ac_var'}
20499 $as_echo "$as_val"'`
20500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20501 $as_echo "$ac_res" >&6; }
20502 as_val=`eval 'as_val=${'$as_ac_var'}
20503 $as_echo "$as_val"'`
20504 if test "x$as_val" = x""yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20510 pgac_need_repl_snprintf=yes
20515 for ac_func in vsnprintf
20517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20519 $as_echo_n "checking for $ac_func... " >&6; }
20520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20521 $as_echo_n "(cached) " >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define $ac_func innocuous_$ac_func
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char $ac_func (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20539 # include <limits.h>
20541 # include <assert.h>
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20553 /* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556 #if defined __stub_$ac_func || defined __stub___$ac_func
20563 return $ac_func ();
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576 (eval "$ac_link") 2>conftest.er1
20578 grep -v '^ *+' conftest.er1 >conftest.err
20580 cat conftest.err >&5
20581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && {
20583 test -z "$ac_c_werror_flag" ||
20584 test ! -s conftest.err
20585 } && test -s conftest$ac_exeext && {
20586 test "$cross_compiling" = yes ||
20587 $as_test_x conftest$ac_exeext
20589 eval "$as_ac_var=yes"
20591 $as_echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 eval "$as_ac_var=no"
20597 rm -rf conftest.dSYM
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599 conftest$ac_exeext conftest.$ac_ext
20601 ac_res=`eval 'as_val=${'$as_ac_var'}
20602 $as_echo "$as_val"'`
20603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20604 $as_echo "$ac_res" >&6; }
20605 as_val=`eval 'as_val=${'$as_ac_var'}
20606 $as_echo "$as_val"'`
20607 if test "x$as_val" = x""yes; then
20608 cat >>confdefs.h <<_ACEOF
20609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20613 pgac_need_repl_snprintf=yes
20620 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20621 # include/c.h will provide declarations. Note this is a separate test
20622 # from whether the functions exist in the C library --- there are
20623 # systems that have the functions but don't bother to declare them :-(
20625 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20626 $as_echo_n "checking whether snprintf is declared... " >&6; }
20627 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20628 $as_echo_n "(cached) " >&6
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 $ac_includes_default
20648 rm -f conftest.$ac_objext
20649 if { (ac_try="$ac_compile"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20655 $as_echo "$ac_try_echo") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20666 ac_cv_have_decl_snprintf=yes
20668 $as_echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_have_decl_snprintf=no
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20677 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20678 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_DECL_SNPRINTF 1
20686 cat >>confdefs.h <<_ACEOF
20687 #define HAVE_DECL_SNPRINTF 0
20692 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20693 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20694 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20695 $as_echo_n "(cached) " >&6
20697 cat >conftest.$ac_ext <<_ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 $ac_includes_default
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20722 $as_echo "$ac_try_echo") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest.$ac_objext; then
20733 ac_cv_have_decl_vsnprintf=yes
20735 $as_echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ac_cv_have_decl_vsnprintf=no
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20744 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20745 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20747 cat >>confdefs.h <<_ACEOF
20748 #define HAVE_DECL_VSNPRINTF 1
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_DECL_VSNPRINTF 0
20763 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20764 $as_echo_n "checking for isinf... " >&6; }
20765 if test "${ac_cv_func_isinf+set}" = set; then
20766 $as_echo_n "(cached) " >&6
20768 cat >conftest.$ac_ext <<_ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20776 double glob_double;
20781 return isinf(glob_double) ? 0 : 1;
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20793 $as_echo "$ac_try_echo") >&5
20794 (eval "$ac_link") 2>conftest.er1
20796 grep -v '^ *+' conftest.er1 >conftest.err
20798 cat conftest.err >&5
20799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest$ac_exeext && {
20804 test "$cross_compiling" = yes ||
20805 $as_test_x conftest$ac_exeext
20807 ac_cv_func_isinf=yes
20809 $as_echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_func_isinf=no
20815 rm -rf conftest.dSYM
20816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20819 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20820 $as_echo "$ac_cv_func_isinf" >&6; }
20822 if test $ac_cv_func_isinf = yes ; then
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_ISINF 1
20829 case " $LIBOBJS " in
20830 *" isinf.$ac_objext "* ) ;;
20831 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20835 # Look for a way to implement a substitute for isinf()
20840 for ac_func in fpclass fp_class fp_class_d class
20842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20844 $as_echo_n "checking for $ac_func... " >&6; }
20845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20846 $as_echo_n "(cached) " >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20856 #define $ac_func innocuous_$ac_func
20858 /* System header to define __stub macros and hopefully few prototypes,
20859 which can conflict with char $ac_func (); below.
20860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20861 <limits.h> exists even on freestanding compilers. */
20864 # include <limits.h>
20866 # include <assert.h>
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20878 /* The GNU C library defines this for functions which it implements
20879 to always fail with ENOSYS. Some functions are actually named
20880 something starting with __ and the normal name is an alias. */
20881 #if defined __stub_$ac_func || defined __stub___$ac_func
20888 return $ac_func ();
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20914 eval "$as_ac_var=yes"
20916 $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 eval "$as_ac_var=no"
20922 rm -rf conftest.dSYM
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924 conftest$ac_exeext conftest.$ac_ext
20926 ac_res=`eval 'as_val=${'$as_ac_var'}
20927 $as_echo "$as_val"'`
20928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20929 $as_echo "$ac_res" >&6; }
20930 as_val=`eval 'as_val=${'$as_ac_var'}
20931 $as_echo "$as_val"'`
20932 if test "x$as_val" = x""yes; then
20933 cat >>confdefs.h <<_ACEOF
20934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20953 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20957 $as_echo_n "checking for $ac_func... " >&6; }
20958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20959 $as_echo_n "(cached) " >&6
20961 cat >conftest.$ac_ext <<_ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20969 #define $ac_func innocuous_$ac_func
20971 /* System header to define __stub macros and hopefully few prototypes,
20972 which can conflict with char $ac_func (); below.
20973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20974 <limits.h> exists even on freestanding compilers. */
20977 # include <limits.h>
20979 # include <assert.h>
20984 /* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20991 /* The GNU C library defines this for functions which it implements
20992 to always fail with ENOSYS. Some functions are actually named
20993 something starting with __ and the normal name is an alias. */
20994 #if defined __stub_$ac_func || defined __stub___$ac_func
21001 return $ac_func ();
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21013 $as_echo "$ac_try_echo") >&5
21014 (eval "$ac_link") 2>conftest.er1
21016 grep -v '^ *+' conftest.er1 >conftest.err
21018 cat conftest.err >&5
21019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } && {
21021 test -z "$ac_c_werror_flag" ||
21022 test ! -s conftest.err
21023 } && test -s conftest$ac_exeext && {
21024 test "$cross_compiling" = yes ||
21025 $as_test_x conftest$ac_exeext
21027 eval "$as_ac_var=yes"
21029 $as_echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 eval "$as_ac_var=no"
21035 rm -rf conftest.dSYM
21036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21037 conftest$ac_exeext conftest.$ac_ext
21039 ac_res=`eval 'as_val=${'$as_ac_var'}
21040 $as_echo "$as_val"'`
21041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21042 $as_echo "$ac_res" >&6; }
21043 as_val=`eval 'as_val=${'$as_ac_var'}
21044 $as_echo "$as_val"'`
21045 if test "x$as_val" = x""yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21051 case " $LIBOBJS " in
21052 *" $ac_func.$ac_objext "* ) ;;
21053 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21064 # Windows uses a specialised env handler
21065 # and doesn't need a replacement getpeereid because it doesn't use
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_UNSETENV 1
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GETPEEREID 1
21078 ac_cv_func_unsetenv=yes
21079 ac_cv_func_getpeereid=yes;;
21083 for ac_func in unsetenv getpeereid
21085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21087 $as_echo_n "checking for $ac_func... " >&6; }
21088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21089 $as_echo_n "(cached) " >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21099 #define $ac_func innocuous_$ac_func
21101 /* System header to define __stub macros and hopefully few prototypes,
21102 which can conflict with char $ac_func (); below.
21103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21104 <limits.h> exists even on freestanding compilers. */
21107 # include <limits.h>
21109 # include <assert.h>
21114 /* Override any GCC internal prototype to avoid an error.
21115 Use char because int might match the return type of a GCC
21116 builtin and then its argument prototype would still apply. */
21121 /* The GNU C library defines this for functions which it implements
21122 to always fail with ENOSYS. Some functions are actually named
21123 something starting with __ and the normal name is an alias. */
21124 #if defined __stub_$ac_func || defined __stub___$ac_func
21131 return $ac_func ();
21136 rm -f conftest.$ac_objext conftest$ac_exeext
21137 if { (ac_try="$ac_link"
21138 case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21143 $as_echo "$ac_try_echo") >&5
21144 (eval "$ac_link") 2>conftest.er1
21146 grep -v '^ *+' conftest.er1 >conftest.err
21148 cat conftest.err >&5
21149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } && {
21151 test -z "$ac_c_werror_flag" ||
21152 test ! -s conftest.err
21153 } && test -s conftest$ac_exeext && {
21154 test "$cross_compiling" = yes ||
21155 $as_test_x conftest$ac_exeext
21157 eval "$as_ac_var=yes"
21159 $as_echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 eval "$as_ac_var=no"
21165 rm -rf conftest.dSYM
21166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21167 conftest$ac_exeext conftest.$ac_ext
21169 ac_res=`eval 'as_val=${'$as_ac_var'}
21170 $as_echo "$as_val"'`
21171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21172 $as_echo "$ac_res" >&6; }
21173 as_val=`eval 'as_val=${'$as_ac_var'}
21174 $as_echo "$as_val"'`
21175 if test "x$as_val" = x""yes; then
21176 cat >>confdefs.h <<_ACEOF
21177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21181 case " $LIBOBJS " in
21182 *" $ac_func.$ac_objext "* ) ;;
21183 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21194 # System's version of getaddrinfo(), if any, may be used only if we found
21195 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21196 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21197 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21198 # because we want to use our own getaddrinfo.c on Windows anyway.)
21199 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21201 for ac_func in getaddrinfo
21203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21205 $as_echo_n "checking for $ac_func... " >&6; }
21206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21207 $as_echo_n "(cached) " >&6
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21217 #define $ac_func innocuous_$ac_func
21219 /* System header to define __stub macros and hopefully few prototypes,
21220 which can conflict with char $ac_func (); below.
21221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21222 <limits.h> exists even on freestanding compilers. */
21225 # include <limits.h>
21227 # include <assert.h>
21232 /* Override any GCC internal prototype to avoid an error.
21233 Use char because int might match the return type of a GCC
21234 builtin and then its argument prototype would still apply. */
21239 /* The GNU C library defines this for functions which it implements
21240 to always fail with ENOSYS. Some functions are actually named
21241 something starting with __ and the normal name is an alias. */
21242 #if defined __stub_$ac_func || defined __stub___$ac_func
21249 return $ac_func ();
21254 rm -f conftest.$ac_objext conftest$ac_exeext
21255 if { (ac_try="$ac_link"
21256 case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21261 $as_echo "$ac_try_echo") >&5
21262 (eval "$ac_link") 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest$ac_exeext && {
21272 test "$cross_compiling" = yes ||
21273 $as_test_x conftest$ac_exeext
21275 eval "$as_ac_var=yes"
21277 $as_echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 eval "$as_ac_var=no"
21283 rm -rf conftest.dSYM
21284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21285 conftest$ac_exeext conftest.$ac_ext
21287 ac_res=`eval 'as_val=${'$as_ac_var'}
21288 $as_echo "$as_val"'`
21289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21290 $as_echo "$ac_res" >&6; }
21291 as_val=`eval 'as_val=${'$as_ac_var'}
21292 $as_echo "$as_val"'`
21293 if test "x$as_val" = x""yes; then
21294 cat >>confdefs.h <<_ACEOF
21295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21299 case " $LIBOBJS " in
21300 *" $ac_func.$ac_objext "* ) ;;
21301 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21310 case " $LIBOBJS " in
21311 *" getaddrinfo.$ac_objext "* ) ;;
21312 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21318 # Similarly, use system's getopt_long() only if system provides struct option.
21319 if test x"$ac_cv_type_struct_option" = xyes ; then
21321 for ac_func in getopt_long
21323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21325 $as_echo_n "checking for $ac_func... " >&6; }
21326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21327 $as_echo_n "(cached) " >&6
21329 cat >conftest.$ac_ext <<_ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21337 #define $ac_func innocuous_$ac_func
21339 /* System header to define __stub macros and hopefully few prototypes,
21340 which can conflict with char $ac_func (); below.
21341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21342 <limits.h> exists even on freestanding compilers. */
21345 # include <limits.h>
21347 # include <assert.h>
21352 /* Override any GCC internal prototype to avoid an error.
21353 Use char because int might match the return type of a GCC
21354 builtin and then its argument prototype would still apply. */
21359 /* The GNU C library defines this for functions which it implements
21360 to always fail with ENOSYS. Some functions are actually named
21361 something starting with __ and the normal name is an alias. */
21362 #if defined __stub_$ac_func || defined __stub___$ac_func
21369 return $ac_func ();
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21381 $as_echo "$ac_try_echo") >&5
21382 (eval "$ac_link") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest$ac_exeext && {
21392 test "$cross_compiling" = yes ||
21393 $as_test_x conftest$ac_exeext
21395 eval "$as_ac_var=yes"
21397 $as_echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 eval "$as_ac_var=no"
21403 rm -rf conftest.dSYM
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405 conftest$ac_exeext conftest.$ac_ext
21407 ac_res=`eval 'as_val=${'$as_ac_var'}
21408 $as_echo "$as_val"'`
21409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21410 $as_echo "$ac_res" >&6; }
21411 as_val=`eval 'as_val=${'$as_ac_var'}
21412 $as_echo "$as_val"'`
21413 if test "x$as_val" = x""yes; then
21414 cat >>confdefs.h <<_ACEOF
21415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21419 case " $LIBOBJS " in
21420 *" $ac_func.$ac_objext "* ) ;;
21421 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21430 case " $LIBOBJS " in
21431 *" getopt_long.$ac_objext "* ) ;;
21432 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21438 # Solaris' getopt() doesn't do what we want for long options, so always use
21439 # our version on that platform.
21440 if test "$PORTNAME" = "solaris"; then
21441 case " $LIBOBJS " in
21442 *" getopt.$ac_objext "* ) ;;
21443 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21449 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21450 # so always use our version on Windows.
21451 if test "$PORTNAME" = "win32"; then
21452 case " $LIBOBJS " in
21453 *" getopt.$ac_objext "* ) ;;
21454 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21458 case " $LIBOBJS " in
21459 *" getopt_long.$ac_objext "* ) ;;
21460 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21467 if test "$PORTNAME" = "win32"; then
21469 for ac_func in gettimeofday
21471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21472 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21473 $as_echo_n "checking for $ac_func... " >&6; }
21474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21475 $as_echo_n "(cached) " >&6
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21485 #define $ac_func innocuous_$ac_func
21487 /* System header to define __stub macros and hopefully few prototypes,
21488 which can conflict with char $ac_func (); below.
21489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21490 <limits.h> exists even on freestanding compilers. */
21493 # include <limits.h>
21495 # include <assert.h>
21500 /* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21507 /* The GNU C library defines this for functions which it implements
21508 to always fail with ENOSYS. Some functions are actually named
21509 something starting with __ and the normal name is an alias. */
21510 #if defined __stub_$ac_func || defined __stub___$ac_func
21517 return $ac_func ();
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (ac_try="$ac_link"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530 (eval "$ac_link") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest$ac_exeext && {
21540 test "$cross_compiling" = yes ||
21541 $as_test_x conftest$ac_exeext
21543 eval "$as_ac_var=yes"
21545 $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21548 eval "$as_ac_var=no"
21551 rm -rf conftest.dSYM
21552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21553 conftest$ac_exeext conftest.$ac_ext
21555 ac_res=`eval 'as_val=${'$as_ac_var'}
21556 $as_echo "$as_val"'`
21557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21558 $as_echo "$ac_res" >&6; }
21559 as_val=`eval 'as_val=${'$as_ac_var'}
21560 $as_echo "$as_val"'`
21561 if test "x$as_val" = x""yes; then
21562 cat >>confdefs.h <<_ACEOF
21563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21567 case " $LIBOBJS " in
21568 *" $ac_func.$ac_objext "* ) ;;
21569 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21577 case " $LIBOBJS " in
21578 *" kill.$ac_objext "* ) ;;
21579 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21583 case " $LIBOBJS " in
21584 *" open.$ac_objext "* ) ;;
21585 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21589 case " $LIBOBJS " in
21590 *" win32env.$ac_objext "* ) ;;
21591 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21595 case " $LIBOBJS " in
21596 *" win32error.$ac_objext "* ) ;;
21597 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21601 case " $LIBOBJS " in
21602 *" win32setlocale.$ac_objext "* ) ;;
21603 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_SYMLINK 1
21612 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21613 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21614 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21615 $as_echo_n "(cached) " >&6
21617 ac_cv_type_MINIDUMP_TYPE=no
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21625 #define WIN32_LEAN_AND_MEAN
21626 #include <windows.h>
21627 #include <string.h>
21628 #include <dbghelp.h>
21633 if (sizeof (MINIDUMP_TYPE))
21639 rm -f conftest.$ac_objext
21640 if { (ac_try="$ac_compile"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21646 $as_echo "$ac_try_echo") >&5
21647 (eval "$ac_compile") 2>conftest.er1
21649 grep -v '^ *+' conftest.er1 >conftest.err
21651 cat conftest.err >&5
21652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } && {
21654 test -z "$ac_c_werror_flag" ||
21655 test ! -s conftest.err
21656 } && test -s conftest.$ac_objext; then
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21664 #define WIN32_LEAN_AND_MEAN
21665 #include <windows.h>
21666 #include <string.h>
21667 #include <dbghelp.h>
21672 if (sizeof ((MINIDUMP_TYPE)))
21678 rm -f conftest.$ac_objext
21679 if { (ac_try="$ac_compile"
21680 case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21685 $as_echo "$ac_try_echo") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21698 $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_cv_type_MINIDUMP_TYPE=yes
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21714 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21715 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21716 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21718 cat >>confdefs.h <<_ACEOF
21719 #define HAVE_MINIDUMP_TYPE 1
21722 pgac_minidump_type=yes
21724 pgac_minidump_type=no
21728 if test x"$pgac_minidump_type" = x"yes" ; then
21729 have_win32_dbghelp=yes
21732 have_win32_dbghelp=no
21736 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21737 $as_echo_n "checking for sigsetjmp... " >&6; }
21738 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21739 $as_echo_n "(cached) " >&6
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 #include <setjmp.h>
21751 sigjmp_buf x; sigsetjmp(x, 1);
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21763 $as_echo "$ac_try_echo") >&5
21764 (eval "$ac_link") 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest$ac_exeext && {
21774 test "$cross_compiling" = yes ||
21775 $as_test_x conftest$ac_exeext
21777 pgac_cv_func_sigsetjmp=yes
21779 $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 pgac_cv_func_sigsetjmp=no
21785 rm -rf conftest.dSYM
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787 conftest$ac_exeext conftest.$ac_ext
21789 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21790 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21791 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_SIGSETJMP 1
21799 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21800 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21801 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21802 $as_echo_n "(cached) " >&6
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 #include <signal.h>
21811 /* NetBSD declares sys_siglist in unistd.h. */
21812 #ifdef HAVE_UNISTD_H
21813 # include <unistd.h>
21820 #ifndef sys_siglist
21821 (void) sys_siglist;
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21835 $as_echo "$ac_try_echo") >&5
21836 (eval "$ac_compile") 2>conftest.er1
21838 grep -v '^ *+' conftest.er1 >conftest.err
21840 cat conftest.err >&5
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && {
21843 test -z "$ac_c_werror_flag" ||
21844 test ! -s conftest.err
21845 } && test -s conftest.$ac_objext; then
21846 ac_cv_have_decl_sys_siglist=yes
21848 $as_echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 ac_cv_have_decl_sys_siglist=no
21854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21857 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21858 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21860 cat >>confdefs.h <<_ACEOF
21861 #define HAVE_DECL_SYS_SIGLIST 1
21866 cat >>confdefs.h <<_ACEOF
21867 #define HAVE_DECL_SYS_SIGLIST 0
21876 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21877 $as_echo_n "checking for syslog... " >&6; }
21878 if test "${ac_cv_func_syslog+set}" = set; then
21879 $as_echo_n "(cached) " >&6
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21889 #define syslog innocuous_syslog
21891 /* System header to define __stub macros and hopefully few prototypes,
21892 which can conflict with char syslog (); below.
21893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21894 <limits.h> exists even on freestanding compilers. */
21897 # include <limits.h>
21899 # include <assert.h>
21904 /* Override any GCC internal prototype to avoid an error.
21905 Use char because int might match the return type of a GCC
21906 builtin and then its argument prototype would still apply. */
21911 /* The GNU C library defines this for functions which it implements
21912 to always fail with ENOSYS. Some functions are actually named
21913 something starting with __ and the normal name is an alias. */
21914 #if defined __stub_syslog || defined __stub___syslog
21926 rm -f conftest.$ac_objext conftest$ac_exeext
21927 if { (ac_try="$ac_link"
21928 case "(($ac_try" in
21929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930 *) ac_try_echo=$ac_try;;
21932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21933 $as_echo "$ac_try_echo") >&5
21934 (eval "$ac_link") 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } && {
21941 test -z "$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 } && test -s conftest$ac_exeext && {
21944 test "$cross_compiling" = yes ||
21945 $as_test_x conftest$ac_exeext
21947 ac_cv_func_syslog=yes
21949 $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ac_cv_func_syslog=no
21955 rm -rf conftest.dSYM
21956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21957 conftest$ac_exeext conftest.$ac_ext
21959 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21960 $as_echo "$ac_cv_func_syslog" >&6; }
21961 if test "x$ac_cv_func_syslog" = x""yes; then
21962 if test "${ac_cv_header_syslog_h+set}" = set; then
21963 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21964 $as_echo_n "checking for syslog.h... " >&6; }
21965 if test "${ac_cv_header_syslog_h+set}" = set; then
21966 $as_echo_n "(cached) " >&6
21968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21969 $as_echo "$ac_cv_header_syslog_h" >&6; }
21971 # Is the header compilable?
21972 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21973 $as_echo_n "checking syslog.h usability... " >&6; }
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 $ac_includes_default
21981 #include <syslog.h>
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
21991 (eval "$ac_compile") 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest.$ac_objext; then
22001 ac_header_compiler=yes
22003 $as_echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_header_compiler=no
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22011 $as_echo "$ac_header_compiler" >&6; }
22013 # Is the header present?
22014 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22015 $as_echo_n "checking syslog.h presence... " >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022 #include <syslog.h>
22024 if { (ac_try="$ac_cpp conftest.$ac_ext"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22030 $as_echo "$ac_try_echo") >&5
22031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22033 grep -v '^ *+' conftest.er1 >conftest.err
22035 cat conftest.err >&5
22036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); } >/dev/null && {
22038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22039 test ! -s conftest.err
22041 ac_header_preproc=yes
22043 $as_echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22046 ac_header_preproc=no
22049 rm -f conftest.err conftest.$ac_ext
22050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22051 $as_echo "$ac_header_preproc" >&6; }
22053 # So? What about this header?
22054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22056 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22057 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22058 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22059 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22060 ac_header_preproc=yes
22063 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22064 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22065 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22066 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22067 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22068 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22070 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22071 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22072 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22073 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22074 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22076 ## ---------------------------------------- ##
22077 ## Report this to pgsql-bugs@postgresql.org ##
22078 ## ---------------------------------------- ##
22080 ) | sed "s/^/$as_me: WARNING: /" >&2
22083 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22084 $as_echo_n "checking for syslog.h... " >&6; }
22085 if test "${ac_cv_header_syslog_h+set}" = set; then
22086 $as_echo_n "(cached) " >&6
22088 ac_cv_header_syslog_h=$ac_header_preproc
22090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22091 $as_echo "$ac_cv_header_syslog_h" >&6; }
22094 if test "x$ac_cv_header_syslog_h" = x""yes; then
22096 cat >>confdefs.h <<\_ACEOF
22097 #define HAVE_SYSLOG 1
22106 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22107 $as_echo_n "checking for opterr... " >&6; }
22108 if test "${pgac_cv_var_int_opterr+set}" = set; then
22109 $as_echo_n "(cached) " >&6
22111 cat >conftest.$ac_ext <<_ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 #include <unistd.h>
22121 extern int opterr; opterr = 1;
22126 rm -f conftest.$ac_objext conftest$ac_exeext
22127 if { (ac_try="$ac_link"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22133 $as_echo "$ac_try_echo") >&5
22134 (eval "$ac_link") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext && {
22144 test "$cross_compiling" = yes ||
22145 $as_test_x conftest$ac_exeext
22147 pgac_cv_var_int_opterr=yes
22149 $as_echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 pgac_cv_var_int_opterr=no
22155 rm -rf conftest.dSYM
22156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22157 conftest$ac_exeext conftest.$ac_ext
22159 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22160 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22161 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_INT_OPTERR 1
22169 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22170 $as_echo_n "checking for optreset... " >&6; }
22171 if test "${pgac_cv_var_int_optreset+set}" = set; then
22172 $as_echo_n "(cached) " >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 #include <unistd.h>
22184 extern int optreset; optreset = 1;
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197 (eval "$ac_link") 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } && {
22204 test -z "$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 } && test -s conftest$ac_exeext && {
22207 test "$cross_compiling" = yes ||
22208 $as_test_x conftest$ac_exeext
22210 pgac_cv_var_int_optreset=yes
22212 $as_echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 pgac_cv_var_int_optreset=no
22218 rm -rf conftest.dSYM
22219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22220 conftest$ac_exeext conftest.$ac_ext
22222 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22223 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22224 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22226 cat >>confdefs.h <<\_ACEOF
22227 #define HAVE_INT_OPTRESET 1
22234 for ac_func in strtoll strtoq
22236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 $as_echo_n "checking for $ac_func... " >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240 $as_echo_n "(cached) " >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22250 #define $ac_func innocuous_$ac_func
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func (); below.
22254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 <limits.h> exists even on freestanding compilers. */
22258 # include <limits.h>
22260 # include <assert.h>
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 return $ac_func ();
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22294 $as_echo "$ac_try_echo") >&5
22295 (eval "$ac_link") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest$ac_exeext && {
22305 test "$cross_compiling" = yes ||
22306 $as_test_x conftest$ac_exeext
22308 eval "$as_ac_var=yes"
22310 $as_echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 eval "$as_ac_var=no"
22316 rm -rf conftest.dSYM
22317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22318 conftest$ac_exeext conftest.$ac_ext
22320 ac_res=`eval 'as_val=${'$as_ac_var'}
22321 $as_echo "$as_val"'`
22322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22323 $as_echo "$ac_res" >&6; }
22324 as_val=`eval 'as_val=${'$as_ac_var'}
22325 $as_echo "$as_val"'`
22326 if test "x$as_val" = x""yes; then
22327 cat >>confdefs.h <<_ACEOF
22328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22336 for ac_func in strtoull strtouq
22338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 $as_echo_n "checking for $ac_func... " >&6; }
22341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342 $as_echo_n "(cached) " >&6
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22352 #define $ac_func innocuous_$ac_func
22354 /* System header to define __stub macros and hopefully few prototypes,
22355 which can conflict with char $ac_func (); below.
22356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357 <limits.h> exists even on freestanding compilers. */
22360 # include <limits.h>
22362 # include <assert.h>
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22374 /* The GNU C library defines this for functions which it implements
22375 to always fail with ENOSYS. Some functions are actually named
22376 something starting with __ and the normal name is an alias. */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22384 return $ac_func ();
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397 (eval "$ac_link") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext && {
22407 test "$cross_compiling" = yes ||
22408 $as_test_x conftest$ac_exeext
22410 eval "$as_ac_var=yes"
22412 $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 eval "$as_ac_var=no"
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420 conftest$ac_exeext conftest.$ac_ext
22422 ac_res=`eval 'as_val=${'$as_ac_var'}
22423 $as_echo "$as_val"'`
22424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22425 $as_echo "$ac_res" >&6; }
22426 as_val=`eval 'as_val=${'$as_ac_var'}
22427 $as_echo "$as_val"'`
22428 if test "x$as_val" = x""yes; then
22429 cat >>confdefs.h <<_ACEOF
22430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22437 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22438 $as_echo_n "checking for builtin locking functions... " >&6; }
22439 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22440 $as_echo_n "(cached) " >&6
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22453 __sync_lock_test_and_set(&lock, 1);
22454 __sync_lock_release(&lock);
22459 rm -f conftest.$ac_objext conftest$ac_exeext
22460 if { (ac_try="$ac_link"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22466 $as_echo "$ac_try_echo") >&5
22467 (eval "$ac_link") 2>conftest.er1
22469 grep -v '^ *+' conftest.er1 >conftest.err
22471 cat conftest.err >&5
22472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && {
22474 test -z "$ac_c_werror_flag" ||
22475 test ! -s conftest.err
22476 } && test -s conftest$ac_exeext && {
22477 test "$cross_compiling" = yes ||
22478 $as_test_x conftest$ac_exeext
22480 pgac_cv_gcc_int_atomics="yes"
22482 $as_echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22485 pgac_cv_gcc_int_atomics="no"
22488 rm -rf conftest.dSYM
22489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22490 conftest$ac_exeext conftest.$ac_ext
22492 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22493 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22494 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22496 cat >>confdefs.h <<\_ACEOF
22497 #define HAVE_GCC_INT_ATOMICS 1
22502 # Lastly, restore full LIBS list and check for readline/libedit symbols
22503 LIBS="$LIBS_including_readline"
22505 if test "$with_readline" = yes; then
22506 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22507 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22508 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22509 $as_echo_n "(cached) " >&6
22511 cat >conftest.$ac_ext <<_ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h. */
22518 #ifdef HAVE_READLINE_READLINE_H
22519 # include <readline/readline.h>
22520 #elif defined(HAVE_READLINE_H)
22521 # include <readline.h>
22527 rl_completion_append_character = 'x';
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539 $as_echo "$ac_try_echo") >&5
22540 (eval "$ac_link") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext && {
22550 test "$cross_compiling" = yes ||
22551 $as_test_x conftest$ac_exeext
22553 pgac_cv_var_rl_completion_append_character=yes
22555 $as_echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 pgac_cv_var_rl_completion_append_character=no
22561 rm -rf conftest.dSYM
22562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22563 conftest$ac_exeext conftest.$ac_ext
22565 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22566 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22567 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22569 cat >>confdefs.h <<\_ACEOF
22570 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22576 for ac_func in rl_completion_matches rl_filename_completion_function
22578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22580 $as_echo_n "checking for $ac_func... " >&6; }
22581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22582 $as_echo_n "(cached) " >&6
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22592 #define $ac_func innocuous_$ac_func
22594 /* System header to define __stub macros and hopefully few prototypes,
22595 which can conflict with char $ac_func (); below.
22596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22597 <limits.h> exists even on freestanding compilers. */
22600 # include <limits.h>
22602 # include <assert.h>
22607 /* Override any GCC internal prototype to avoid an error.
22608 Use char because int might match the return type of a GCC
22609 builtin and then its argument prototype would still apply. */
22614 /* The GNU C library defines this for functions which it implements
22615 to always fail with ENOSYS. Some functions are actually named
22616 something starting with __ and the normal name is an alias. */
22617 #if defined __stub_$ac_func || defined __stub___$ac_func
22624 return $ac_func ();
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (ac_try="$ac_link"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22636 $as_echo "$ac_try_echo") >&5
22637 (eval "$ac_link") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1 >conftest.err
22641 cat conftest.err >&5
22642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest$ac_exeext && {
22647 test "$cross_compiling" = yes ||
22648 $as_test_x conftest$ac_exeext
22650 eval "$as_ac_var=yes"
22652 $as_echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 eval "$as_ac_var=no"
22658 rm -rf conftest.dSYM
22659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22660 conftest$ac_exeext conftest.$ac_ext
22662 ac_res=`eval 'as_val=${'$as_ac_var'}
22663 $as_echo "$as_val"'`
22664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22665 $as_echo "$ac_res" >&6; }
22666 as_val=`eval 'as_val=${'$as_ac_var'}
22667 $as_echo "$as_val"'`
22668 if test "x$as_val" = x""yes; then
22669 cat >>confdefs.h <<_ACEOF
22670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22678 for ac_func in append_history history_truncate_file
22680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22682 $as_echo_n "checking for $ac_func... " >&6; }
22683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22684 $as_echo_n "(cached) " >&6
22686 cat >conftest.$ac_ext <<_ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h. */
22692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22694 #define $ac_func innocuous_$ac_func
22696 /* System header to define __stub macros and hopefully few prototypes,
22697 which can conflict with char $ac_func (); below.
22698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22699 <limits.h> exists even on freestanding compilers. */
22702 # include <limits.h>
22704 # include <assert.h>
22709 /* Override any GCC internal prototype to avoid an error.
22710 Use char because int might match the return type of a GCC
22711 builtin and then its argument prototype would still apply. */
22716 /* The GNU C library defines this for functions which it implements
22717 to always fail with ENOSYS. Some functions are actually named
22718 something starting with __ and the normal name is an alias. */
22719 #if defined __stub_$ac_func || defined __stub___$ac_func
22726 return $ac_func ();
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22738 $as_echo "$ac_try_echo") >&5
22739 (eval "$ac_link") 2>conftest.er1
22741 grep -v '^ *+' conftest.er1 >conftest.err
22743 cat conftest.err >&5
22744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } && {
22746 test -z "$ac_c_werror_flag" ||
22747 test ! -s conftest.err
22748 } && test -s conftest$ac_exeext && {
22749 test "$cross_compiling" = yes ||
22750 $as_test_x conftest$ac_exeext
22752 eval "$as_ac_var=yes"
22754 $as_echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 eval "$as_ac_var=no"
22760 rm -rf conftest.dSYM
22761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22762 conftest$ac_exeext conftest.$ac_ext
22764 ac_res=`eval 'as_val=${'$as_ac_var'}
22765 $as_echo "$as_val"'`
22766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22767 $as_echo "$ac_res" >&6; }
22768 as_val=`eval 'as_val=${'$as_ac_var'}
22769 $as_echo "$as_val"'`
22770 if test "x$as_val" = x""yes; then
22771 cat >>confdefs.h <<_ACEOF
22772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22784 # For each platform, we need to know about any special compile and link
22785 # libraries, and whether the normal C function names are thread-safe.
22786 # See the comment at the top of src/port/thread.c for more information.
22787 # WIN32 doesn't need the pthread tests; it always uses threads
22788 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22793 ac_cpp='$CPP $CPPFLAGS'
22794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22800 # We used to check for pthread.h first, but this fails if pthread.h
22801 # requires special compiler flags (e.g. on True64 or Sequent).
22802 # It gets checked for in the link test anyway.
22804 # First of all, check if the user has set any of the PTHREAD_LIBS,
22805 # etcetera environment variables, and if threads linking works using
22807 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22808 save_CFLAGS="$CFLAGS"
22809 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22811 LIBS="$PTHREAD_LIBS $LIBS"
22812 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22813 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22814 cat >conftest.$ac_ext <<_ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22821 /* Override any GCC internal prototype to avoid an error.
22822 Use char because int might match the return type of a GCC
22823 builtin and then its argument prototype would still apply. */
22827 char pthread_join ();
22831 return pthread_join ();
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (ac_try="$ac_link"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844 (eval "$ac_link") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest$ac_exeext && {
22854 test "$cross_compiling" = yes ||
22855 $as_test_x conftest$ac_exeext
22859 $as_echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22865 rm -rf conftest.dSYM
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867 conftest$ac_exeext conftest.$ac_ext
22868 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22869 $as_echo "$acx_pthread_ok" >&6; }
22870 if test x"$acx_pthread_ok" = xno; then
22875 CFLAGS="$save_CFLAGS"
22878 # We must check for the threads library under a number of different
22879 # names; the ordering is very important because some systems
22880 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22881 # libraries is broken (non-POSIX).
22883 # Create a list of thread flags to try. Items starting with a "-" are
22884 # C compiler flags, and other items are library names, except for "none"
22885 # which indicates that we try without any flags at all, and "pthread-config"
22886 # which is a program returning the flags for the Pth emulation library.
22888 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22890 # The ordering *is* (sometimes) important. Some notes on the
22891 # individual items follow:
22893 # pthreads: AIX (must check this before -lpthread)
22894 # none: in case threads are in libc; should be tried before -Kthread and
22895 # other compiler flags to prevent continual compiler warnings
22896 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22897 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22898 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22899 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22900 # -pthreads: Solaris/gcc
22901 # -mthreads: Mingw32/gcc, Lynx/gcc
22902 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22903 # doesn't hurt to check since this sometimes defines pthreads too;
22904 # also defines -D_REENTRANT)
22905 # pthread: Linux, etcetera
22906 # --thread-safe: KAI C++
22907 # pthread-config: use pthread-config program (for GNU Pth library)
22909 case "${host_cpu}-${host_os}" in
22912 # On Solaris (at least, for some versions), libc contains stubbed
22913 # (non-functional) versions of the pthreads routines, so link-based
22914 # tests will erroneously succeed. (We need to link with -pthread or
22915 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22916 # a function called by this macro, so we could check for that, but
22917 # who knows whether they'll stub that too in a future libc.) So,
22918 # we'll just look for -pthreads and -lpthread first:
22920 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22924 if test x"$acx_pthread_ok" = xno; then
22925 for flag in $acx_pthread_flags; do
22927 tryPTHREAD_CFLAGS=""
22931 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22932 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22936 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22937 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22938 tryPTHREAD_CFLAGS="$flag"
22942 # skip this if we already have flags defined, for PostgreSQL
22943 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22944 # Extract the first word of "pthread-config", so it can be a program name with args.
22945 set dummy pthread-config; ac_word=$2
22946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22949 $as_echo_n "(cached) " >&6
22951 if test -n "$acx_pthread_config"; then
22952 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22955 for as_dir in $PATH
22958 test -z "$as_dir" && as_dir=.
22959 for ac_exec_ext in '' $ac_executable_extensions; do
22960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22961 ac_cv_prog_acx_pthread_config="yes"
22962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22969 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22972 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22973 if test -n "$acx_pthread_config"; then
22974 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22975 $as_echo "$acx_pthread_config" >&6; }
22977 { $as_echo "$as_me:$LINENO: result: no" >&5
22978 $as_echo "no" >&6; }
22982 if test x"$acx_pthread_config" = xno; then continue; fi
22983 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22984 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22988 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22989 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22990 tryPTHREAD_LIBS="-l$flag"
22995 save_CFLAGS="$CFLAGS"
22996 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22997 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22999 # Check for various functions. We must include pthread.h,
23000 # since some functions may be macros. (On the Sequent, we
23001 # need a special flag -Kthread to make this header compile.)
23002 # We check for pthread_join because it is in -lpthread on IRIX
23003 # while pthread_create is in libc. We check for pthread_attr_init
23004 # due to DEC craziness with -lpthreads. We check for
23005 # pthread_cleanup_push because it is one of the few pthread
23006 # functions on Solaris that doesn't have a non-functional libc stub.
23007 # We try pthread_create on general principles.
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <pthread.h>
23018 pthread_t th; pthread_join(th, 0);
23019 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23020 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23025 rm -f conftest.$ac_objext conftest$ac_exeext
23026 if { (ac_try="$ac_link"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23032 $as_echo "$ac_try_echo") >&5
23033 (eval "$ac_link") 2>conftest.er1
23035 grep -v '^ *+' conftest.er1 >conftest.err
23037 cat conftest.err >&5
23038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } && {
23040 test -z "$ac_c_werror_flag" ||
23041 test ! -s conftest.err
23042 } && test -s conftest$ac_exeext && {
23043 test "$cross_compiling" = yes ||
23044 $as_test_x conftest$ac_exeext
23048 $as_echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23054 rm -rf conftest.dSYM
23055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23056 conftest$ac_exeext conftest.$ac_ext
23058 if test "x$acx_pthread_ok" = xyes; then
23059 # Don't use options that are ignored by the compiler.
23060 # We find them by checking stderror.
23061 cat >conftest.$ac_ext <<_ACEOF
23063 main (int argc, char **argv)
23070 rm -f conftest.$ac_objext conftest$ac_exeext
23071 # Check both linking and compiling, because they might tolerate different options.
23072 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23073 # we continue with more flags because Linux needs -lpthread
23074 # for libpq builds on PostgreSQL. The test above only
23075 # tests for building binaries, not shared libraries.
23076 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23077 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23078 else acx_pthread_ok=no
23083 CFLAGS="$save_CFLAGS"
23085 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23086 $as_echo "$acx_pthread_ok" >&6; }
23090 # Various other checks:
23091 if test "x$acx_pthread_ok" = xyes; then
23093 LIBS="$PTHREAD_LIBS $LIBS"
23094 save_CFLAGS="$CFLAGS"
23095 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23097 # Detect AIX lossage: threads are created detached by default
23098 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23099 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23100 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23101 cat >conftest.$ac_ext <<_ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 #include <pthread.h>
23111 int attr=PTHREAD_CREATE_JOINABLE;
23116 rm -f conftest.$ac_objext conftest$ac_exeext
23117 if { (ac_try="$ac_link"
23118 case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124 (eval "$ac_link") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest$ac_exeext && {
23134 test "$cross_compiling" = yes ||
23135 $as_test_x conftest$ac_exeext
23137 ok=PTHREAD_CREATE_JOINABLE
23139 $as_echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23145 rm -rf conftest.dSYM
23146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23147 conftest$ac_exeext conftest.$ac_ext
23148 if test x"$ok" = xunknown; then
23149 cat >conftest.$ac_ext <<_ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 #include <pthread.h>
23159 int attr=PTHREAD_CREATE_UNDETACHED;
23164 rm -f conftest.$ac_objext conftest$ac_exeext
23165 if { (ac_try="$ac_link"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23171 $as_echo "$ac_try_echo") >&5
23172 (eval "$ac_link") 2>conftest.er1
23174 grep -v '^ *+' conftest.er1 >conftest.err
23176 cat conftest.err >&5
23177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } && {
23179 test -z "$ac_c_werror_flag" ||
23180 test ! -s conftest.err
23181 } && test -s conftest$ac_exeext && {
23182 test "$cross_compiling" = yes ||
23183 $as_test_x conftest$ac_exeext
23185 ok=PTHREAD_CREATE_UNDETACHED
23187 $as_echo "$as_me: failed program was:" >&5
23188 sed 's/^/| /' conftest.$ac_ext >&5
23193 rm -rf conftest.dSYM
23194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23195 conftest$ac_exeext conftest.$ac_ext
23197 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23199 cat >>confdefs.h <<\_ACEOF
23200 #define PTHREAD_CREATE_JOINABLE $ok
23204 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23205 $as_echo "${ok}" >&6; }
23206 if test x"$ok" = xunknown; then
23207 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23208 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23211 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23212 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23214 # We always add these in PostgreSQL
23215 # case "${host_cpu}-${host_os}" in
23216 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23217 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23219 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23220 $as_echo "${flag}" >&6; }
23221 if test "x$flag" != xno; then
23222 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23226 CFLAGS="$save_CFLAGS"
23228 # Supporting cc_r would require a special CC in all places that
23229 # use libpq, and that is ugly, so we don't do it. Users can still
23230 # define their compiler as cc_r to do thread builds of everything.
23231 # More AIX lossage: must compile with cc_r
23232 # Extract the first word of "cc_r", so it can be a program name with args.
23233 set dummy cc_r; ac_word=$2
23234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23235 $as_echo_n "checking for $ac_word... " >&6; }
23236 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23237 $as_echo_n "(cached) " >&6
23239 if test -n "$PTHREAD_CC"; then
23240 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23243 for as_dir in $PATH
23246 test -z "$as_dir" && as_dir=.
23247 for ac_exec_ext in '' $ac_executable_extensions; do
23248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23249 ac_cv_prog_PTHREAD_CC="cc_r"
23250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23257 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23260 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23261 if test -n "$PTHREAD_CC"; then
23262 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23263 $as_echo "$PTHREAD_CC" >&6; }
23265 { $as_echo "$as_me:$LINENO: result: no" >&5
23266 $as_echo "no" >&6; }
23278 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23279 if test x"$acx_pthread_ok" = xyes; then
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_PTHREAD 1
23291 ac_cpp='$CPP $CPPFLAGS'
23292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23298 # Some platforms use these, so just define them. They can't hurt if they
23299 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23300 # enables 5-arg getpwuid_r, among other things.
23301 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23304 # At this point, we don't want to muck with the compiler name for threading.
23305 # Let's see who fails, perhaps AIX. 2004-04-23
23306 if test "$PTHREAD_CC" != "$CC"; then
23307 { { $as_echo "$as_me:$LINENO: error:
23308 PostgreSQL does not support platforms that require a special compiler
23309 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23310 $as_echo "$as_me: error:
23311 PostgreSQL does not support platforms that require a special compiler
23312 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23313 { (exit 1); exit 1; }; }
23316 # Check for *_r functions
23319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23320 LIBS="$LIBS $PTHREAD_LIBS"
23322 if test "$PORTNAME" != "win32"; then
23323 if test "${ac_cv_header_pthread_h+set}" = set; then
23324 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23325 $as_echo_n "checking for pthread.h... " >&6; }
23326 if test "${ac_cv_header_pthread_h+set}" = set; then
23327 $as_echo_n "(cached) " >&6
23329 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23330 $as_echo "$ac_cv_header_pthread_h" >&6; }
23332 # Is the header compilable?
23333 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23334 $as_echo_n "checking pthread.h usability... " >&6; }
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23341 $ac_includes_default
23342 #include <pthread.h>
23344 rm -f conftest.$ac_objext
23345 if { (ac_try="$ac_compile"
23346 case "(($ac_try" in
23347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348 *) ac_try_echo=$ac_try;;
23350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23351 $as_echo "$ac_try_echo") >&5
23352 (eval "$ac_compile") 2>conftest.er1
23354 grep -v '^ *+' conftest.er1 >conftest.err
23356 cat conftest.err >&5
23357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } && {
23359 test -z "$ac_c_werror_flag" ||
23360 test ! -s conftest.err
23361 } && test -s conftest.$ac_objext; then
23362 ac_header_compiler=yes
23364 $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23367 ac_header_compiler=no
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23372 $as_echo "$ac_header_compiler" >&6; }
23374 # Is the header present?
23375 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23376 $as_echo_n "checking pthread.h presence... " >&6; }
23377 cat >conftest.$ac_ext <<_ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #include <pthread.h>
23385 if { (ac_try="$ac_cpp conftest.$ac_ext"
23386 case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23391 $as_echo "$ac_try_echo") >&5
23392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } >/dev/null && {
23399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23402 ac_header_preproc=yes
23404 $as_echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_header_preproc=no
23410 rm -f conftest.err conftest.$ac_ext
23411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23412 $as_echo "$ac_header_preproc" >&6; }
23414 # So? What about this header?
23415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23417 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23418 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23419 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23420 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23421 ac_header_preproc=yes
23424 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23425 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23427 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23428 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23429 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23430 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23431 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23432 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23433 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23434 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23435 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23437 ## ---------------------------------------- ##
23438 ## Report this to pgsql-bugs@postgresql.org ##
23439 ## ---------------------------------------- ##
23441 ) | sed "s/^/$as_me: WARNING: /" >&2
23444 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23445 $as_echo_n "checking for pthread.h... " >&6; }
23446 if test "${ac_cv_header_pthread_h+set}" = set; then
23447 $as_echo_n "(cached) " >&6
23449 ac_cv_header_pthread_h=$ac_header_preproc
23451 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23452 $as_echo "$ac_cv_header_pthread_h" >&6; }
23455 if test "x$ac_cv_header_pthread_h" = x""yes; then
23458 { { $as_echo "$as_me:$LINENO: error:
23459 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23460 $as_echo "$as_me: error:
23461 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23462 { (exit 1); exit 1; }; }
23471 for ac_func in strerror_r getpwuid_r gethostbyname_r
23473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23475 $as_echo_n "checking for $ac_func... " >&6; }
23476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23477 $as_echo_n "(cached) " >&6
23479 cat >conftest.$ac_ext <<_ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23487 #define $ac_func innocuous_$ac_func
23489 /* System header to define __stub macros and hopefully few prototypes,
23490 which can conflict with char $ac_func (); below.
23491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23492 <limits.h> exists even on freestanding compilers. */
23495 # include <limits.h>
23497 # include <assert.h>
23502 /* Override any GCC internal prototype to avoid an error.
23503 Use char because int might match the return type of a GCC
23504 builtin and then its argument prototype would still apply. */
23509 /* The GNU C library defines this for functions which it implements
23510 to always fail with ENOSYS. Some functions are actually named
23511 something starting with __ and the normal name is an alias. */
23512 #if defined __stub_$ac_func || defined __stub___$ac_func
23519 return $ac_func ();
23524 rm -f conftest.$ac_objext conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23531 $as_echo "$ac_try_echo") >&5
23532 (eval "$ac_link") 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } && {
23539 test -z "$ac_c_werror_flag" ||
23540 test ! -s conftest.err
23541 } && test -s conftest$ac_exeext && {
23542 test "$cross_compiling" = yes ||
23543 $as_test_x conftest$ac_exeext
23545 eval "$as_ac_var=yes"
23547 $as_echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 eval "$as_ac_var=no"
23553 rm -rf conftest.dSYM
23554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23555 conftest$ac_exeext conftest.$ac_ext
23557 ac_res=`eval 'as_val=${'$as_ac_var'}
23558 $as_echo "$as_val"'`
23559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23560 $as_echo "$ac_res" >&6; }
23561 as_val=`eval 'as_val=${'$as_ac_var'}
23562 $as_echo "$as_val"'`
23563 if test "x$as_val" = x""yes; then
23564 cat >>confdefs.h <<_ACEOF
23565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23572 # Do test here with the proper thread flags
23573 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23574 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23575 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23576 $as_echo_n "(cached) " >&6
23578 cat >conftest.$ac_ext <<_ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 #include <sys/types.h>
23590 struct passwd *space;
23593 struct passwd **result;
23594 getpwuid_r(uid, space, buf, bufsize, result);
23599 rm -f conftest.$ac_objext
23600 if { (ac_try="$ac_compile"
23601 case "(($ac_try" in
23602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603 *) ac_try_echo=$ac_try;;
23605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23606 $as_echo "$ac_try_echo") >&5
23607 (eval "$ac_compile") 2>conftest.er1
23609 grep -v '^ *+' conftest.er1 >conftest.err
23611 cat conftest.err >&5
23612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && {
23614 test -z "$ac_c_werror_flag" ||
23615 test ! -s conftest.err
23616 } && test -s conftest.$ac_objext; then
23617 pgac_cv_func_getpwuid_r_5arg=yes
23619 $as_echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23622 pgac_cv_func_getpwuid_r_5arg=no
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23627 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23628 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23629 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23631 cat >>confdefs.h <<\_ACEOF
23632 #define GETPWUID_R_5ARG /**/
23637 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23638 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23639 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23640 $as_echo_n "(cached) " >&6
23642 cat >conftest.$ac_ext <<_ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23648 #include <string.h>
23653 int strerror_r(int, char *, size_t);
23655 /* Older AIX has 'int' for the third argument so we don't test the args. */
23662 rm -f conftest.$ac_objext
23663 if { (ac_try="$ac_compile"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670 (eval "$ac_compile") 2>conftest.er1
23672 grep -v '^ *+' conftest.er1 >conftest.err
23674 cat conftest.err >&5
23675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest.$ac_objext; then
23680 pgac_cv_func_strerror_r_int=yes
23682 $as_echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 pgac_cv_func_strerror_r_int=no
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23691 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23692 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23694 cat >>confdefs.h <<\_ACEOF
23695 #define STRERROR_R_INT /**/
23705 # do not use values from template file
23714 # We can test for libldap_r only after we know PTHREAD_LIBS
23715 if test "$with_ldap" = yes ; then
23717 if test "$PORTNAME" != "win32"; then
23719 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23720 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23721 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23722 $as_echo_n "(cached) " >&6
23724 ac_check_lib_save_LIBS=$LIBS
23725 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23726 cat >conftest.$ac_ext <<_ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h. */
23733 /* Override any GCC internal prototype to avoid an error.
23734 Use char because int might match the return type of a GCC
23735 builtin and then its argument prototype would still apply. */
23743 return ldap_bind ();
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752 *) ac_try_echo=$ac_try;;
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756 (eval "$ac_link") 2>conftest.er1
23758 grep -v '^ *+' conftest.er1 >conftest.err
23760 cat conftest.err >&5
23761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && {
23763 test -z "$ac_c_werror_flag" ||
23764 test ! -s conftest.err
23765 } && test -s conftest$ac_exeext && {
23766 test "$cross_compiling" = yes ||
23767 $as_test_x conftest$ac_exeext
23769 ac_cv_lib_ldap_ldap_bind=yes
23771 $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 ac_cv_lib_ldap_ldap_bind=no
23777 rm -rf conftest.dSYM
23778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23779 conftest$ac_exeext conftest.$ac_ext
23780 LIBS=$ac_check_lib_save_LIBS
23782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23783 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23784 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23785 cat >>confdefs.h <<_ACEOF
23786 #define HAVE_LIBLDAP 1
23789 LIBS="-lldap $LIBS"
23792 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23793 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23794 { (exit 1); exit 1; }; }
23797 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23798 if test "$enable_thread_safety" = yes; then
23799 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23801 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23802 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23803 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23804 $as_echo_n "(cached) " >&6
23806 ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 /* Override any GCC internal prototype to avoid an error.
23816 Use char because int might match the return type of a GCC
23817 builtin and then its argument prototype would still apply. */
23821 char ldap_simple_bind ();
23825 return ldap_simple_bind ();
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23837 $as_echo "$ac_try_echo") >&5
23838 (eval "$ac_link") 2>conftest.er1
23840 grep -v '^ *+' conftest.er1 >conftest.err
23842 cat conftest.err >&5
23843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } && {
23845 test -z "$ac_c_werror_flag" ||
23846 test ! -s conftest.err
23847 } && test -s conftest$ac_exeext && {
23848 test "$cross_compiling" = yes ||
23849 $as_test_x conftest$ac_exeext
23851 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23853 $as_echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23856 ac_cv_lib_ldap_r_ldap_simple_bind=no
23859 rm -rf conftest.dSYM
23860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23861 conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23865 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23866 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23867 cat >>confdefs.h <<_ACEOF
23868 #define HAVE_LIBLDAP_R 1
23871 LIBS="-lldap_r $LIBS"
23874 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23875 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23876 { (exit 1); exit 1; }; }
23879 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23881 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23885 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23886 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23887 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23888 $as_echo_n "(cached) " >&6
23890 ac_check_lib_save_LIBS=$LIBS
23891 LIBS="-lwldap32 $LIBS"
23892 cat >conftest.$ac_ext <<_ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h. */
23899 /* Override any GCC internal prototype to avoid an error.
23900 Use char because int might match the return type of a GCC
23901 builtin and then its argument prototype would still apply. */
23909 return ldap_bind ();
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922 (eval "$ac_link") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest$ac_exeext && {
23932 test "$cross_compiling" = yes ||
23933 $as_test_x conftest$ac_exeext
23935 ac_cv_lib_wldap32_ldap_bind=yes
23937 $as_echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23940 ac_cv_lib_wldap32_ldap_bind=no
23943 rm -rf conftest.dSYM
23944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23945 conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23949 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23950 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23951 cat >>confdefs.h <<_ACEOF
23952 #define HAVE_LIBWLDAP32 1
23955 LIBS="-lwldap32 $LIBS"
23958 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23959 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23960 { (exit 1); exit 1; }; }
23963 LDAP_LIBS_FE="-lwldap32"
23964 LDAP_LIBS_BE="-lwldap32"
23972 # This test makes sure that run tests work at all. Sometimes a shared
23973 # library is found by the linker, but the runtime linker can't find it.
23974 # This check should come after all modifications of compiler or linker
23975 # variables, and before any other run tests.
23976 { $as_echo "$as_me:$LINENO: checking test program" >&5
23977 $as_echo_n "checking test program... " >&6; }
23978 if test "$cross_compiling" = yes; then
23979 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23980 $as_echo "cross-compiling" >&6; }
23982 cat >conftest.$ac_ext <<_ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 int main() { return 0; }
23990 rm -f conftest$ac_exeext
23991 if { (ac_try="$ac_link"
23992 case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23997 $as_echo "$ac_try_echo") >&5
23998 (eval "$ac_link") 2>&5
24000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24002 { (case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24007 $as_echo "$ac_try_echo") >&5
24008 (eval "$ac_try") 2>&5
24010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 { $as_echo "$as_me:$LINENO: result: ok" >&5
24013 $as_echo "ok" >&6; }
24015 $as_echo "$as_me: program exited with status $ac_status" >&5
24016 $as_echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24019 ( exit $ac_status )
24020 { $as_echo "$as_me:$LINENO: result: failed" >&5
24021 $as_echo "failed" >&6; }
24022 { { $as_echo "$as_me:$LINENO: error:
24023 Could not execute a simple test program. This may be a problem
24024 related to locating shared libraries. Check the file 'config.log'
24025 for the exact reason." >&5
24026 $as_echo "$as_me: error:
24027 Could not execute a simple test program. This may be a problem
24028 related to locating shared libraries. Check the file 'config.log'
24029 for the exact reason." >&2;}
24030 { (exit 1); exit 1; }; }
24032 rm -rf conftest.dSYM
24033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24038 # --------------------
24039 # Run tests below here
24040 # --------------------
24042 # Force use of our snprintf if system's doesn't do arg control
24043 # See comment above at snprintf test for details.
24044 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24045 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24046 $as_echo_n "checking whether printf supports argument control... " >&6; }
24047 if test "${pgac_cv_printf_arg_control+set}" = set; then
24048 $as_echo_n "(cached) " >&6
24050 if test "$cross_compiling" = yes; then
24051 pgac_cv_printf_arg_control=cross
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24060 #include <string.h>
24066 /* can it swap arguments? */
24067 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24068 if (strcmp(buf, "4 3") != 0)
24073 rm -f conftest$ac_exeext
24074 if { (ac_try="$ac_link"
24075 case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24080 $as_echo "$ac_try_echo") >&5
24081 (eval "$ac_link") 2>&5
24083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085 { (case "(($ac_try" in
24086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087 *) ac_try_echo=$ac_try;;
24089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24090 $as_echo "$ac_try_echo") >&5
24091 (eval "$ac_try") 2>&5
24093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095 pgac_cv_printf_arg_control=yes
24097 $as_echo "$as_me: program exited with status $ac_status" >&5
24098 $as_echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24101 ( exit $ac_status )
24102 pgac_cv_printf_arg_control=no
24104 rm -rf conftest.dSYM
24105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24111 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24112 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24114 if test $pgac_cv_printf_arg_control != yes ; then
24115 pgac_need_repl_snprintf=yes
24122 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24123 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24124 if test "${pgac_cv_type_long_int_64+set}" = set; then
24125 $as_echo_n "(cached) " >&6
24127 if test "$cross_compiling" = yes; then
24128 # If cross-compiling, check the size reported by the compiler and
24129 # trust that the arithmetic works.
24130 cat >conftest.$ac_ext <<_ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24140 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 pgac_cv_type_long_int_64=yes
24167 $as_echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 pgac_cv_type_long_int_64=no
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 cat >conftest.$ac_ext <<_ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24181 typedef long int ac_int64;
24184 * These are globals to discourage the compiler from folding all the
24185 * arithmetic tests down to compile-time constants.
24187 ac_int64 a = 20000001;
24188 ac_int64 b = 40000005;
24190 int does_int64_work()
24194 if (sizeof(ac_int64) != 8)
24195 return 0; /* definitely not the right size */
24197 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24205 exit(! does_int64_work());
24208 rm -f conftest$ac_exeext
24209 if { (ac_try="$ac_link"
24210 case "(($ac_try" in
24211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24212 *) ac_try_echo=$ac_try;;
24214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24215 $as_echo "$ac_try_echo") >&5
24216 (eval "$ac_link") 2>&5
24218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24220 { (case "(($ac_try" in
24221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222 *) ac_try_echo=$ac_try;;
24224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24225 $as_echo "$ac_try_echo") >&5
24226 (eval "$ac_try") 2>&5
24228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); }; }; then
24230 pgac_cv_type_long_int_64=yes
24232 $as_echo "$as_me: program exited with status $ac_status" >&5
24233 $as_echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24236 ( exit $ac_status )
24237 pgac_cv_type_long_int_64=no
24239 rm -rf conftest.dSYM
24240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24245 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24246 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24248 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24249 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define HAVE_LONG_INT_64 1
24258 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24259 pg_int64_type="long int"
24261 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24262 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24263 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24264 $as_echo_n "(cached) " >&6
24266 if test "$cross_compiling" = yes; then
24267 # If cross-compiling, check the size reported by the compiler and
24268 # trust that the arithmetic works.
24269 cat >conftest.$ac_ext <<_ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h. */
24279 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24286 rm -f conftest.$ac_objext
24287 if { (ac_try="$ac_compile"
24288 case "(($ac_try" in
24289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290 *) ac_try_echo=$ac_try;;
24292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24293 $as_echo "$ac_try_echo") >&5
24294 (eval "$ac_compile") 2>conftest.er1
24296 grep -v '^ *+' conftest.er1 >conftest.err
24298 cat conftest.err >&5
24299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); } && {
24301 test -z "$ac_c_werror_flag" ||
24302 test ! -s conftest.err
24303 } && test -s conftest.$ac_objext; then
24304 pgac_cv_type_long_long_int_64=yes
24306 $as_echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24309 pgac_cv_type_long_long_int_64=no
24312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 typedef long long int ac_int64;
24323 * These are globals to discourage the compiler from folding all the
24324 * arithmetic tests down to compile-time constants.
24326 ac_int64 a = 20000001;
24327 ac_int64 b = 40000005;
24329 int does_int64_work()
24333 if (sizeof(ac_int64) != 8)
24334 return 0; /* definitely not the right size */
24336 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24344 exit(! does_int64_work());
24347 rm -f conftest$ac_exeext
24348 if { (ac_try="$ac_link"
24349 case "(($ac_try" in
24350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351 *) ac_try_echo=$ac_try;;
24353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24354 $as_echo "$ac_try_echo") >&5
24355 (eval "$ac_link") 2>&5
24357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24359 { (case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365 (eval "$ac_try") 2>&5
24367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24369 pgac_cv_type_long_long_int_64=yes
24371 $as_echo "$as_me: program exited with status $ac_status" >&5
24372 $as_echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24375 ( exit $ac_status )
24376 pgac_cv_type_long_long_int_64=no
24378 rm -rf conftest.dSYM
24379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24384 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24385 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24387 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24388 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24390 cat >>confdefs.h <<\_ACEOF
24391 #define HAVE_LONG_LONG_INT_64 1
24396 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24397 pg_int64_type="long long int"
24399 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24400 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24401 { (exit 1); exit 1; }; }
24406 cat >>confdefs.h <<_ACEOF
24407 #define PG_INT64_TYPE $pg_int64_type
24412 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24420 #define INT64CONST(x) x##LL
24421 long long int foo = INT64CONST(0x1234567890123456);
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24438 $as_echo "$ac_try_echo") >&5
24439 (eval "$ac_compile") 2>conftest.er1
24441 grep -v '^ *+' conftest.er1 >conftest.err
24443 cat conftest.err >&5
24444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest.$ac_objext; then
24450 cat >>confdefs.h <<\_ACEOF
24451 #define HAVE_LL_CONSTANTS 1
24455 $as_echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 # If we found "long int" is 64 bits, assume snprintf handles it. If
24466 # we found we need to use "long long int", better check. We cope with
24467 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24468 # work, fall back to our own snprintf emulation (which we know uses %lld).
24470 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24471 if test $pgac_need_repl_snprintf = no; then
24472 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24473 $as_echo_n "checking snprintf format for long long int... " >&6; }
24474 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24475 $as_echo_n "(cached) " >&6
24477 for pgac_format in '%lld' '%qd' '%I64d'; do
24478 if test "$cross_compiling" = yes; then
24479 pgac_cv_snprintf_long_long_int_format=cross; break
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24488 typedef long long int ac_int64;
24489 #define INT64_FORMAT "$pgac_format"
24491 ac_int64 a = 20000001;
24492 ac_int64 b = 40000005;
24494 int does_int64_snprintf_work()
24499 if (sizeof(ac_int64) != 8)
24500 return 0; /* doesn't look like the right size */
24503 snprintf(buf, 100, INT64_FORMAT, c);
24504 if (strcmp(buf, "800000140000005") != 0)
24505 return 0; /* either multiply or snprintf is busted */
24509 exit(! does_int64_snprintf_work());
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_link") 2>&5
24522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24524 { (case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24529 $as_echo "$ac_try_echo") >&5
24530 (eval "$ac_try") 2>&5
24532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24534 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24536 $as_echo "$as_me: program exited with status $ac_status" >&5
24537 $as_echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24541 rm -rf conftest.dSYM
24542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24549 LONG_LONG_INT_FORMAT=''
24551 case $pgac_cv_snprintf_long_long_int_format in
24552 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24553 $as_echo "cannot test (not on host machine)" >&6; };;
24554 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24555 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24556 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24557 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24558 $as_echo "none" >&6; };;
24560 if test "$LONG_LONG_INT_FORMAT" = ""; then
24561 # Force usage of our own snprintf, since system snprintf is broken
24562 pgac_need_repl_snprintf=yes
24563 LONG_LONG_INT_FORMAT='%lld'
24566 # Here if we previously decided we needed to use our own snprintf
24567 LONG_LONG_INT_FORMAT='%lld'
24569 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24570 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24571 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24573 # Here if we are not using 'long long int' at all
24574 INT64_FORMAT='"%ld"'
24575 UINT64_FORMAT='"%lu"'
24579 cat >>confdefs.h <<_ACEOF
24580 #define INT64_FORMAT $INT64_FORMAT
24585 cat >>confdefs.h <<_ACEOF
24586 #define UINT64_FORMAT $UINT64_FORMAT
24590 # Now we have checked all the reasons to replace snprintf
24591 if test $pgac_need_repl_snprintf = yes; then
24593 cat >>confdefs.h <<\_ACEOF
24594 #define USE_REPL_SNPRINTF 1
24597 case " $LIBOBJS " in
24598 *" snprintf.$ac_objext "* ) ;;
24599 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24605 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24606 # The cast to long int works around a bug in the HP C Compiler
24607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24609 # This bug is HP SR number 8606223364.
24610 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24611 $as_echo_n "checking size of void *... " >&6; }
24612 if test "${ac_cv_sizeof_void_p+set}" = set; then
24613 $as_echo_n "(cached) " >&6
24615 if test "$cross_compiling" = yes; then
24616 # Depending upon the size, compute the lo and hi bounds.
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24623 $ac_includes_default
24627 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638 *) ac_try_echo=$ac_try;;
24640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24641 $as_echo "$ac_try_echo") >&5
24642 (eval "$ac_compile") 2>conftest.er1
24644 grep -v '^ *+' conftest.er1 >conftest.err
24646 cat conftest.err >&5
24647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); } && {
24649 test -z "$ac_c_werror_flag" ||
24650 test ! -s conftest.err
24651 } && test -s conftest.$ac_objext; then
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 $ac_includes_default
24664 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24671 rm -f conftest.$ac_objext
24672 if { (ac_try="$ac_compile"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24678 $as_echo "$ac_try_echo") >&5
24679 (eval "$ac_compile") 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest.$ac_objext; then
24689 ac_hi=$ac_mid; break
24691 $as_echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24694 ac_lo=`expr $ac_mid + 1`
24695 if test $ac_lo -le $ac_mid; then
24699 ac_mid=`expr 2 '*' $ac_mid + 1`
24702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705 $as_echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24714 $ac_includes_default
24718 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24725 rm -f conftest.$ac_objext
24726 if { (ac_try="$ac_compile"
24727 case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24732 $as_echo "$ac_try_echo") >&5
24733 (eval "$ac_compile") 2>conftest.er1
24735 grep -v '^ *+' conftest.er1 >conftest.err
24737 cat conftest.err >&5
24738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } && {
24740 test -z "$ac_c_werror_flag" ||
24741 test ! -s conftest.err
24742 } && test -s conftest.$ac_objext; then
24745 cat >conftest.$ac_ext <<_ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24751 $ac_includes_default
24755 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24762 rm -f conftest.$ac_objext
24763 if { (ac_try="$ac_compile"
24764 case "(($ac_try" in
24765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766 *) ac_try_echo=$ac_try;;
24768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24769 $as_echo "$ac_try_echo") >&5
24770 (eval "$ac_compile") 2>conftest.er1
24772 grep -v '^ *+' conftest.er1 >conftest.err
24774 cat conftest.err >&5
24775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } && {
24777 test -z "$ac_c_werror_flag" ||
24778 test ! -s conftest.err
24779 } && test -s conftest.$ac_objext; then
24780 ac_lo=$ac_mid; break
24782 $as_echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24785 ac_hi=`expr '(' $ac_mid ')' - 1`
24786 if test $ac_mid -le $ac_hi; then
24790 ac_mid=`expr 2 '*' $ac_mid`
24793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 $as_echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24806 # Binary search between lo and hi bounds.
24807 while test "x$ac_lo" != "x$ac_hi"; do
24808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24809 cat >conftest.$ac_ext <<_ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h. */
24815 $ac_includes_default
24819 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24833 $as_echo "$ac_try_echo") >&5
24834 (eval "$ac_compile") 2>conftest.er1
24836 grep -v '^ *+' conftest.er1 >conftest.err
24838 cat conftest.err >&5
24839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } && {
24841 test -z "$ac_c_werror_flag" ||
24842 test ! -s conftest.err
24843 } && test -s conftest.$ac_objext; then
24846 $as_echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24849 ac_lo=`expr '(' $ac_mid ')' + 1`
24852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24855 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24856 '') if test "$ac_cv_type_void_p" = yes; then
24857 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24859 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24860 See \`config.log' for more details." >&5
24861 $as_echo "$as_me: error: cannot compute sizeof (void *)
24862 See \`config.log' for more details." >&2;}
24863 { (exit 77); exit 77; }; }; }
24865 ac_cv_sizeof_void_p=0
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 $ac_includes_default
24876 static long int longval () { return (long int) (sizeof (void *)); }
24877 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24879 #include <stdlib.h>
24884 FILE *f = fopen ("conftest.val", "w");
24887 if (((long int) (sizeof (void *))) < 0)
24889 long int i = longval ();
24890 if (i != ((long int) (sizeof (void *))))
24892 fprintf (f, "%ld", i);
24896 unsigned long int i = ulongval ();
24897 if (i != ((long int) (sizeof (void *))))
24899 fprintf (f, "%lu", i);
24901 /* Do not output a trailing newline, as this causes \r\n confusion
24902 on some platforms. */
24903 return ferror (f) || fclose (f) != 0;
24909 rm -f conftest$ac_exeext
24910 if { (ac_try="$ac_link"
24911 case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24916 $as_echo "$ac_try_echo") >&5
24917 (eval "$ac_link") 2>&5
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24921 { (case "(($ac_try" in
24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923 *) ac_try_echo=$ac_try;;
24925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926 $as_echo "$ac_try_echo") >&5
24927 (eval "$ac_try") 2>&5
24929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); }; }; then
24931 ac_cv_sizeof_void_p=`cat conftest.val`
24933 $as_echo "$as_me: program exited with status $ac_status" >&5
24934 $as_echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ( exit $ac_status )
24938 if test "$ac_cv_type_void_p" = yes; then
24939 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24941 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24942 See \`config.log' for more details." >&5
24943 $as_echo "$as_me: error: cannot compute sizeof (void *)
24944 See \`config.log' for more details." >&2;}
24945 { (exit 77); exit 77; }; }; }
24947 ac_cv_sizeof_void_p=0
24950 rm -rf conftest.dSYM
24951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24955 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24956 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24960 cat >>confdefs.h <<_ACEOF
24961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24965 # The cast to long int works around a bug in the HP C Compiler
24966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24968 # This bug is HP SR number 8606223364.
24969 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24970 $as_echo_n "checking size of size_t... " >&6; }
24971 if test "${ac_cv_sizeof_size_t+set}" = set; then
24972 $as_echo_n "(cached) " >&6
24974 if test "$cross_compiling" = yes; then
24975 # Depending upon the size, compute the lo and hi bounds.
24976 cat >conftest.$ac_ext <<_ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h. */
24982 $ac_includes_default
24986 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24993 rm -f conftest.$ac_objext
24994 if { (ac_try="$ac_compile"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000 $as_echo "$ac_try_echo") >&5
25001 (eval "$ac_compile") 2>conftest.er1
25003 grep -v '^ *+' conftest.er1 >conftest.err
25005 cat conftest.err >&5
25006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25013 cat >conftest.$ac_ext <<_ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25019 $ac_includes_default
25023 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25037 $as_echo "$ac_try_echo") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25040 grep -v '^ *+' conftest.er1 >conftest.err
25042 cat conftest.err >&5
25043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest.$ac_objext; then
25048 ac_hi=$ac_mid; break
25050 $as_echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25053 ac_lo=`expr $ac_mid + 1`
25054 if test $ac_lo -le $ac_mid; then
25058 ac_mid=`expr 2 '*' $ac_mid + 1`
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 $as_echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 $ac_includes_default
25077 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25084 rm -f conftest.$ac_objext
25085 if { (ac_try="$ac_compile"
25086 case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25091 $as_echo "$ac_try_echo") >&5
25092 (eval "$ac_compile") 2>conftest.er1
25094 grep -v '^ *+' conftest.er1 >conftest.err
25096 cat conftest.err >&5
25097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } && {
25099 test -z "$ac_c_werror_flag" ||
25100 test ! -s conftest.err
25101 } && test -s conftest.$ac_objext; then
25104 cat >conftest.$ac_ext <<_ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 $ac_includes_default
25114 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25121 rm -f conftest.$ac_objext
25122 if { (ac_try="$ac_compile"
25123 case "(($ac_try" in
25124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125 *) ac_try_echo=$ac_try;;
25127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25128 $as_echo "$ac_try_echo") >&5
25129 (eval "$ac_compile") 2>conftest.er1
25131 grep -v '^ *+' conftest.er1 >conftest.err
25133 cat conftest.err >&5
25134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); } && {
25136 test -z "$ac_c_werror_flag" ||
25137 test ! -s conftest.err
25138 } && test -s conftest.$ac_objext; then
25139 ac_lo=$ac_mid; break
25141 $as_echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25144 ac_hi=`expr '(' $ac_mid ')' - 1`
25145 if test $ac_mid -le $ac_hi; then
25149 ac_mid=`expr 2 '*' $ac_mid`
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155 $as_echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165 # Binary search between lo and hi bounds.
25166 while test "x$ac_lo" != "x$ac_hi"; do
25167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 $ac_includes_default
25178 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25185 rm -f conftest.$ac_objext
25186 if { (ac_try="$ac_compile"
25187 case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25192 $as_echo "$ac_try_echo") >&5
25193 (eval "$ac_compile") 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } && {
25200 test -z "$ac_c_werror_flag" ||
25201 test ! -s conftest.err
25202 } && test -s conftest.$ac_objext; then
25205 $as_echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25208 ac_lo=`expr '(' $ac_mid ')' + 1`
25211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25214 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25215 '') if test "$ac_cv_type_size_t" = yes; then
25216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25218 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25219 See \`config.log' for more details." >&5
25220 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25221 See \`config.log' for more details." >&2;}
25222 { (exit 77); exit 77; }; }; }
25224 ac_cv_sizeof_size_t=0
25228 cat >conftest.$ac_ext <<_ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h. */
25234 $ac_includes_default
25235 static long int longval () { return (long int) (sizeof (size_t)); }
25236 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25238 #include <stdlib.h>
25243 FILE *f = fopen ("conftest.val", "w");
25246 if (((long int) (sizeof (size_t))) < 0)
25248 long int i = longval ();
25249 if (i != ((long int) (sizeof (size_t))))
25251 fprintf (f, "%ld", i);
25255 unsigned long int i = ulongval ();
25256 if (i != ((long int) (sizeof (size_t))))
25258 fprintf (f, "%lu", i);
25260 /* Do not output a trailing newline, as this causes \r\n confusion
25261 on some platforms. */
25262 return ferror (f) || fclose (f) != 0;
25268 rm -f conftest$ac_exeext
25269 if { (ac_try="$ac_link"
25270 case "(($ac_try" in
25271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272 *) ac_try_echo=$ac_try;;
25274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25275 $as_echo "$ac_try_echo") >&5
25276 (eval "$ac_link") 2>&5
25278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25280 { (case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285 $as_echo "$ac_try_echo") >&5
25286 (eval "$ac_try") 2>&5
25288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_cv_sizeof_size_t=`cat conftest.val`
25292 $as_echo "$as_me: program exited with status $ac_status" >&5
25293 $as_echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25296 ( exit $ac_status )
25297 if test "$ac_cv_type_size_t" = yes; then
25298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25300 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25301 See \`config.log' for more details." >&5
25302 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25303 See \`config.log' for more details." >&2;}
25304 { (exit 77); exit 77; }; }; }
25306 ac_cv_sizeof_size_t=0
25309 rm -rf conftest.dSYM
25310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25314 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25315 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25319 cat >>confdefs.h <<_ACEOF
25320 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25324 # The cast to long int works around a bug in the HP C Compiler
25325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25327 # This bug is HP SR number 8606223364.
25328 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25329 $as_echo_n "checking size of long... " >&6; }
25330 if test "${ac_cv_sizeof_long+set}" = set; then
25331 $as_echo_n "(cached) " >&6
25333 if test "$cross_compiling" = yes; then
25334 # Depending upon the size, compute the lo and hi bounds.
25335 cat >conftest.$ac_ext <<_ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 $ac_includes_default
25345 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25352 rm -f conftest.$ac_objext
25353 if { (ac_try="$ac_compile"
25354 case "(($ac_try" in
25355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356 *) ac_try_echo=$ac_try;;
25358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25359 $as_echo "$ac_try_echo") >&5
25360 (eval "$ac_compile") 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } && {
25367 test -z "$ac_c_werror_flag" ||
25368 test ! -s conftest.err
25369 } && test -s conftest.$ac_objext; then
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25378 $ac_includes_default
25382 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25389 rm -f conftest.$ac_objext
25390 if { (ac_try="$ac_compile"
25391 case "(($ac_try" in
25392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393 *) ac_try_echo=$ac_try;;
25395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25396 $as_echo "$ac_try_echo") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.$ac_objext; then
25407 ac_hi=$ac_mid; break
25409 $as_echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ac_lo=`expr $ac_mid + 1`
25413 if test $ac_lo -le $ac_mid; then
25417 ac_mid=`expr 2 '*' $ac_mid + 1`
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25423 $as_echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25426 cat >conftest.$ac_ext <<_ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h. */
25432 $ac_includes_default
25436 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25450 $as_echo "$ac_try_echo") >&5
25451 (eval "$ac_compile") 2>conftest.er1
25453 grep -v '^ *+' conftest.er1 >conftest.err
25455 cat conftest.err >&5
25456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); } && {
25458 test -z "$ac_c_werror_flag" ||
25459 test ! -s conftest.err
25460 } && test -s conftest.$ac_objext; then
25463 cat >conftest.$ac_ext <<_ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h. */
25469 $ac_includes_default
25473 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25480 rm -f conftest.$ac_objext
25481 if { (ac_try="$ac_compile"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25487 $as_echo "$ac_try_echo") >&5
25488 (eval "$ac_compile") 2>conftest.er1
25490 grep -v '^ *+' conftest.er1 >conftest.err
25492 cat conftest.err >&5
25493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && {
25495 test -z "$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25497 } && test -s conftest.$ac_objext; then
25498 ac_lo=$ac_mid; break
25500 $as_echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 ac_hi=`expr '(' $ac_mid ')' - 1`
25504 if test $ac_mid -le $ac_hi; then
25508 ac_mid=`expr 2 '*' $ac_mid`
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524 # Binary search between lo and hi bounds.
25525 while test "x$ac_lo" != "x$ac_hi"; do
25526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25527 cat >conftest.$ac_ext <<_ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h. */
25533 $ac_includes_default
25537 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25544 rm -f conftest.$ac_objext
25545 if { (ac_try="$ac_compile"
25546 case "(($ac_try" in
25547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25548 *) ac_try_echo=$ac_try;;
25550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25551 $as_echo "$ac_try_echo") >&5
25552 (eval "$ac_compile") 2>conftest.er1
25554 grep -v '^ *+' conftest.er1 >conftest.err
25556 cat conftest.err >&5
25557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } && {
25559 test -z "$ac_c_werror_flag" ||
25560 test ! -s conftest.err
25561 } && test -s conftest.$ac_objext; then
25564 $as_echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25567 ac_lo=`expr '(' $ac_mid ')' + 1`
25570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573 ?*) ac_cv_sizeof_long=$ac_lo;;
25574 '') if test "$ac_cv_type_long" = yes; then
25575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25577 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25578 See \`config.log' for more details." >&5
25579 $as_echo "$as_me: error: cannot compute sizeof (long)
25580 See \`config.log' for more details." >&2;}
25581 { (exit 77); exit 77; }; }; }
25583 ac_cv_sizeof_long=0
25587 cat >conftest.$ac_ext <<_ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 $ac_includes_default
25594 static long int longval () { return (long int) (sizeof (long)); }
25595 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25597 #include <stdlib.h>
25602 FILE *f = fopen ("conftest.val", "w");
25605 if (((long int) (sizeof (long))) < 0)
25607 long int i = longval ();
25608 if (i != ((long int) (sizeof (long))))
25610 fprintf (f, "%ld", i);
25614 unsigned long int i = ulongval ();
25615 if (i != ((long int) (sizeof (long))))
25617 fprintf (f, "%lu", i);
25619 /* Do not output a trailing newline, as this causes \r\n confusion
25620 on some platforms. */
25621 return ferror (f) || fclose (f) != 0;
25627 rm -f conftest$ac_exeext
25628 if { (ac_try="$ac_link"
25629 case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635 (eval "$ac_link") 2>&5
25637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25639 { (case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645 (eval "$ac_try") 2>&5
25647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; }; then
25649 ac_cv_sizeof_long=`cat conftest.val`
25651 $as_echo "$as_me: program exited with status $ac_status" >&5
25652 $as_echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25655 ( exit $ac_status )
25656 if test "$ac_cv_type_long" = yes; then
25657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25660 See \`config.log' for more details." >&5
25661 $as_echo "$as_me: error: cannot compute sizeof (long)
25662 See \`config.log' for more details." >&2;}
25663 { (exit 77); exit 77; }; }; }
25665 ac_cv_sizeof_long=0
25668 rm -rf conftest.dSYM
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25673 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25674 $as_echo "$ac_cv_sizeof_long" >&6; }
25678 cat >>confdefs.h <<_ACEOF
25679 #define SIZEOF_LONG $ac_cv_sizeof_long
25684 # Decide whether float4 is passed by value: user-selectable, enabled by default
25685 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25686 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25689 # Check whether --enable-float4-byval was given.
25690 if test "${enable_float4_byval+set}" = set; then
25691 enableval=$enable_float4_byval;
25695 cat >>confdefs.h <<\_ACEOF
25696 #define USE_FLOAT4_BYVAL 1
25699 float4passbyval=true
25702 float4passbyval=false
25705 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25706 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25707 { (exit 1); exit 1; }; }
25712 enable_float4_byval=yes
25714 cat >>confdefs.h <<\_ACEOF
25715 #define USE_FLOAT4_BYVAL 1
25718 float4passbyval=true
25722 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25723 $as_echo "$enable_float4_byval" >&6; }
25725 cat >>confdefs.h <<_ACEOF
25726 #define FLOAT4PASSBYVAL $float4passbyval
25730 # Decide whether float8 is passed by value.
25731 # Note: this setting also controls int8 and related types such as timestamp.
25732 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25733 # If not, trying to select it is an error.
25734 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25735 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25736 if test $ac_cv_sizeof_void_p -ge 8 ; then
25739 # Check whether --enable-float8-byval was given.
25740 if test "${enable_float8_byval+set}" = set; then
25741 enableval=$enable_float8_byval;
25750 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25751 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25752 { (exit 1); exit 1; }; }
25757 enable_float8_byval=yes
25765 # Check whether --enable-float8-byval was given.
25766 if test "${enable_float8_byval+set}" = set; then
25767 enableval=$enable_float8_byval;
25776 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25777 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25778 { (exit 1); exit 1; }; }
25783 enable_float8_byval=no
25788 if test "$enable_float8_byval" = yes ; then
25789 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25790 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25791 { (exit 1); exit 1; }; }
25794 if test "$enable_float8_byval" = yes ; then
25796 cat >>confdefs.h <<\_ACEOF
25797 #define USE_FLOAT8_BYVAL 1
25800 float8passbyval=true
25802 float8passbyval=false
25804 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25805 $as_echo "$enable_float8_byval" >&6; }
25807 cat >>confdefs.h <<_ACEOF
25808 #define FLOAT8PASSBYVAL $float8passbyval
25812 # Determine memory alignment requirements for the basic C data types.
25814 # The cast to long int works around a bug in the HP C Compiler,
25815 # see AC_CHECK_SIZEOF for more information.
25816 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25817 $as_echo_n "checking alignment of short... " >&6; }
25818 if test "${ac_cv_alignof_short+set}" = set; then
25819 $as_echo_n "(cached) " >&6
25821 if test "$cross_compiling" = yes; then
25822 # Depending upon the size, compute the lo and hi bounds.
25823 cat >conftest.$ac_ext <<_ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h. */
25829 $ac_includes_default
25831 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25833 typedef struct { char x; short y; } ac__type_alignof_;
25837 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25844 rm -f conftest.$ac_objext
25845 if { (ac_try="$ac_compile"
25846 case "(($ac_try" in
25847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848 *) ac_try_echo=$ac_try;;
25850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25851 $as_echo "$ac_try_echo") >&5
25852 (eval "$ac_compile") 2>conftest.er1
25854 grep -v '^ *+' conftest.er1 >conftest.err
25856 cat conftest.err >&5
25857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); } && {
25859 test -z "$ac_c_werror_flag" ||
25860 test ! -s conftest.err
25861 } && test -s conftest.$ac_objext; then
25864 cat >conftest.$ac_ext <<_ACEOF
25867 cat confdefs.h >>conftest.$ac_ext
25868 cat >>conftest.$ac_ext <<_ACEOF
25869 /* end confdefs.h. */
25870 $ac_includes_default
25872 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25874 typedef struct { char x; short y; } ac__type_alignof_;
25878 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25885 rm -f conftest.$ac_objext
25886 if { (ac_try="$ac_compile"
25887 case "(($ac_try" in
25888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25889 *) ac_try_echo=$ac_try;;
25891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25892 $as_echo "$ac_try_echo") >&5
25893 (eval "$ac_compile") 2>conftest.er1
25895 grep -v '^ *+' conftest.er1 >conftest.err
25897 cat conftest.err >&5
25898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); } && {
25900 test -z "$ac_c_werror_flag" ||
25901 test ! -s conftest.err
25902 } && test -s conftest.$ac_objext; then
25903 ac_hi=$ac_mid; break
25905 $as_echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25908 ac_lo=`expr $ac_mid + 1`
25909 if test $ac_lo -le $ac_mid; then
25913 ac_mid=`expr 2 '*' $ac_mid + 1`
25916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919 $as_echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 cat >conftest.$ac_ext <<_ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25930 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25932 typedef struct { char x; short y; } ac__type_alignof_;
25936 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951 (eval "$ac_compile") 2>conftest.er1
25953 grep -v '^ *+' conftest.er1 >conftest.err
25955 cat conftest.err >&5
25956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); } && {
25958 test -z "$ac_c_werror_flag" ||
25959 test ! -s conftest.err
25960 } && test -s conftest.$ac_objext; then
25963 cat >conftest.$ac_ext <<_ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h. */
25969 $ac_includes_default
25971 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25973 typedef struct { char x; short y; } ac__type_alignof_;
25977 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25984 rm -f conftest.$ac_objext
25985 if { (ac_try="$ac_compile"
25986 case "(($ac_try" in
25987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988 *) ac_try_echo=$ac_try;;
25990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25991 $as_echo "$ac_try_echo") >&5
25992 (eval "$ac_compile") 2>conftest.er1
25994 grep -v '^ *+' conftest.er1 >conftest.err
25996 cat conftest.err >&5
25997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } && {
25999 test -z "$ac_c_werror_flag" ||
26000 test ! -s conftest.err
26001 } && test -s conftest.$ac_objext; then
26002 ac_lo=$ac_mid; break
26004 $as_echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26007 ac_hi=`expr '(' $ac_mid ')' - 1`
26008 if test $ac_mid -le $ac_hi; then
26012 ac_mid=`expr 2 '*' $ac_mid`
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26018 $as_echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 # Binary search between lo and hi bounds.
26029 while test "x$ac_lo" != "x$ac_hi"; do
26030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26031 cat >conftest.$ac_ext <<_ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26037 $ac_includes_default
26039 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26041 typedef struct { char x; short y; } ac__type_alignof_;
26045 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056 *) ac_try_echo=$ac_try;;
26058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26059 $as_echo "$ac_try_echo") >&5
26060 (eval "$ac_compile") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest.$ac_objext; then
26072 $as_echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26075 ac_lo=`expr '(' $ac_mid ')' + 1`
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081 ?*) ac_cv_alignof_short=$ac_lo;;
26082 '') if test "$ac_cv_type_short" = yes; then
26083 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26085 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26086 See \`config.log' for more details." >&5
26087 $as_echo "$as_me: error: cannot compute alignment of short
26088 See \`config.log' for more details." >&2;}
26089 { (exit 77); exit 77; }; }; }
26091 ac_cv_alignof_short=0
26095 cat >conftest.$ac_ext <<_ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h. */
26101 $ac_includes_default
26103 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26105 typedef struct { char x; short y; } ac__type_alignof_;
26106 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26107 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26109 #include <stdlib.h>
26114 FILE *f = fopen ("conftest.val", "w");
26117 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26119 long int i = longval ();
26120 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26122 fprintf (f, "%ld", i);
26126 unsigned long int i = ulongval ();
26127 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26129 fprintf (f, "%lu", i);
26131 /* Do not output a trailing newline, as this causes \r\n confusion
26132 on some platforms. */
26133 return ferror (f) || fclose (f) != 0;
26139 rm -f conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26146 $as_echo "$ac_try_echo") >&5
26147 (eval "$ac_link") 2>&5
26149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26151 { (case "(($ac_try" in
26152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153 *) ac_try_echo=$ac_try;;
26155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26156 $as_echo "$ac_try_echo") >&5
26157 (eval "$ac_try") 2>&5
26159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); }; }; then
26161 ac_cv_alignof_short=`cat conftest.val`
26163 $as_echo "$as_me: program exited with status $ac_status" >&5
26164 $as_echo "$as_me: failed program was:" >&5
26165 sed 's/^/| /' conftest.$ac_ext >&5
26167 ( exit $ac_status )
26168 if test "$ac_cv_type_short" = yes; then
26169 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26171 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26172 See \`config.log' for more details." >&5
26173 $as_echo "$as_me: error: cannot compute alignment of short
26174 See \`config.log' for more details." >&2;}
26175 { (exit 77); exit 77; }; }; }
26177 ac_cv_alignof_short=0
26180 rm -rf conftest.dSYM
26181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26185 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26186 $as_echo "$ac_cv_alignof_short" >&6; }
26190 cat >>confdefs.h <<_ACEOF
26191 #define ALIGNOF_SHORT $ac_cv_alignof_short
26195 # The cast to long int works around a bug in the HP C Compiler,
26196 # see AC_CHECK_SIZEOF for more information.
26197 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26198 $as_echo_n "checking alignment of int... " >&6; }
26199 if test "${ac_cv_alignof_int+set}" = set; then
26200 $as_echo_n "(cached) " >&6
26202 if test "$cross_compiling" = yes; then
26203 # Depending upon the size, compute the lo and hi bounds.
26204 cat >conftest.$ac_ext <<_ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h. */
26210 $ac_includes_default
26212 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26214 typedef struct { char x; int y; } ac__type_alignof_;
26218 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26225 rm -f conftest.$ac_objext
26226 if { (ac_try="$ac_compile"
26227 case "(($ac_try" in
26228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229 *) ac_try_echo=$ac_try;;
26231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26232 $as_echo "$ac_try_echo") >&5
26233 (eval "$ac_compile") 2>conftest.er1
26235 grep -v '^ *+' conftest.er1 >conftest.err
26237 cat conftest.err >&5
26238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } && {
26240 test -z "$ac_c_werror_flag" ||
26241 test ! -s conftest.err
26242 } && test -s conftest.$ac_objext; then
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 $ac_includes_default
26253 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26255 typedef struct { char x; int y; } ac__type_alignof_;
26259 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270 *) ac_try_echo=$ac_try;;
26272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26273 $as_echo "$ac_try_echo") >&5
26274 (eval "$ac_compile") 2>conftest.er1
26276 grep -v '^ *+' conftest.er1 >conftest.err
26278 cat conftest.err >&5
26279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); } && {
26281 test -z "$ac_c_werror_flag" ||
26282 test ! -s conftest.err
26283 } && test -s conftest.$ac_objext; then
26284 ac_hi=$ac_mid; break
26286 $as_echo "$as_me: failed program was:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26289 ac_lo=`expr $ac_mid + 1`
26290 if test $ac_lo -le $ac_mid; then
26294 ac_mid=`expr 2 '*' $ac_mid + 1`
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26300 $as_echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26303 cat >conftest.$ac_ext <<_ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h. */
26309 $ac_includes_default
26311 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26313 typedef struct { char x; int y; } ac__type_alignof_;
26317 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26324 rm -f conftest.$ac_objext
26325 if { (ac_try="$ac_compile"
26326 case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26331 $as_echo "$ac_try_echo") >&5
26332 (eval "$ac_compile") 2>conftest.er1
26334 grep -v '^ *+' conftest.er1 >conftest.err
26336 cat conftest.err >&5
26337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); } && {
26339 test -z "$ac_c_werror_flag" ||
26340 test ! -s conftest.err
26341 } && test -s conftest.$ac_objext; then
26344 cat >conftest.$ac_ext <<_ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 $ac_includes_default
26352 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26354 typedef struct { char x; int y; } ac__type_alignof_;
26358 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26365 rm -f conftest.$ac_objext
26366 if { (ac_try="$ac_compile"
26367 case "(($ac_try" in
26368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369 *) ac_try_echo=$ac_try;;
26371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26372 $as_echo "$ac_try_echo") >&5
26373 (eval "$ac_compile") 2>conftest.er1
26375 grep -v '^ *+' conftest.er1 >conftest.err
26377 cat conftest.err >&5
26378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379 (exit $ac_status); } && {
26380 test -z "$ac_c_werror_flag" ||
26381 test ! -s conftest.err
26382 } && test -s conftest.$ac_objext; then
26383 ac_lo=$ac_mid; break
26385 $as_echo "$as_me: failed program was:" >&5
26386 sed 's/^/| /' conftest.$ac_ext >&5
26388 ac_hi=`expr '(' $ac_mid ')' - 1`
26389 if test $ac_mid -le $ac_hi; then
26393 ac_mid=`expr 2 '*' $ac_mid`
26396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26399 $as_echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409 # Binary search between lo and hi bounds.
26410 while test "x$ac_lo" != "x$ac_hi"; do
26411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26412 cat >conftest.$ac_ext <<_ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h. */
26418 $ac_includes_default
26420 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26422 typedef struct { char x; int y; } ac__type_alignof_;
26426 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26433 rm -f conftest.$ac_objext
26434 if { (ac_try="$ac_compile"
26435 case "(($ac_try" in
26436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26440 $as_echo "$ac_try_echo") >&5
26441 (eval "$ac_compile") 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } && {
26448 test -z "$ac_c_werror_flag" ||
26449 test ! -s conftest.err
26450 } && test -s conftest.$ac_objext; then
26453 $as_echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26456 ac_lo=`expr '(' $ac_mid ')' + 1`
26459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26462 ?*) ac_cv_alignof_int=$ac_lo;;
26463 '') if test "$ac_cv_type_int" = yes; then
26464 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26466 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26467 See \`config.log' for more details." >&5
26468 $as_echo "$as_me: error: cannot compute alignment of int
26469 See \`config.log' for more details." >&2;}
26470 { (exit 77); exit 77; }; }; }
26472 ac_cv_alignof_int=0
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 $ac_includes_default
26484 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26486 typedef struct { char x; int y; } ac__type_alignof_;
26487 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26488 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26490 #include <stdlib.h>
26495 FILE *f = fopen ("conftest.val", "w");
26498 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26500 long int i = longval ();
26501 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26503 fprintf (f, "%ld", i);
26507 unsigned long int i = ulongval ();
26508 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26510 fprintf (f, "%lu", i);
26512 /* Do not output a trailing newline, as this causes \r\n confusion
26513 on some platforms. */
26514 return ferror (f) || fclose (f) != 0;
26520 rm -f conftest$ac_exeext
26521 if { (ac_try="$ac_link"
26522 case "(($ac_try" in
26523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26527 $as_echo "$ac_try_echo") >&5
26528 (eval "$ac_link") 2>&5
26530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26532 { (case "(($ac_try" in
26533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534 *) ac_try_echo=$ac_try;;
26536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26537 $as_echo "$ac_try_echo") >&5
26538 (eval "$ac_try") 2>&5
26540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; }; then
26542 ac_cv_alignof_int=`cat conftest.val`
26544 $as_echo "$as_me: program exited with status $ac_status" >&5
26545 $as_echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26548 ( exit $ac_status )
26549 if test "$ac_cv_type_int" = yes; then
26550 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26552 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26553 See \`config.log' for more details." >&5
26554 $as_echo "$as_me: error: cannot compute alignment of int
26555 See \`config.log' for more details." >&2;}
26556 { (exit 77); exit 77; }; }; }
26558 ac_cv_alignof_int=0
26561 rm -rf conftest.dSYM
26562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26566 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26567 $as_echo "$ac_cv_alignof_int" >&6; }
26571 cat >>confdefs.h <<_ACEOF
26572 #define ALIGNOF_INT $ac_cv_alignof_int
26576 # The cast to long int works around a bug in the HP C Compiler,
26577 # see AC_CHECK_SIZEOF for more information.
26578 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26579 $as_echo_n "checking alignment of long... " >&6; }
26580 if test "${ac_cv_alignof_long+set}" = set; then
26581 $as_echo_n "(cached) " >&6
26583 if test "$cross_compiling" = yes; then
26584 # Depending upon the size, compute the lo and hi bounds.
26585 cat >conftest.$ac_ext <<_ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h. */
26591 $ac_includes_default
26593 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26595 typedef struct { char x; long y; } ac__type_alignof_;
26599 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26606 rm -f conftest.$ac_objext
26607 if { (ac_try="$ac_compile"
26608 case "(($ac_try" in
26609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26610 *) ac_try_echo=$ac_try;;
26612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26613 $as_echo "$ac_try_echo") >&5
26614 (eval "$ac_compile") 2>conftest.er1
26616 grep -v '^ *+' conftest.er1 >conftest.err
26618 cat conftest.err >&5
26619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); } && {
26621 test -z "$ac_c_werror_flag" ||
26622 test ! -s conftest.err
26623 } && test -s conftest.$ac_objext; then
26626 cat >conftest.$ac_ext <<_ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h. */
26632 $ac_includes_default
26634 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26636 typedef struct { char x; long y; } ac__type_alignof_;
26640 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26647 rm -f conftest.$ac_objext
26648 if { (ac_try="$ac_compile"
26649 case "(($ac_try" in
26650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26651 *) ac_try_echo=$ac_try;;
26653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26654 $as_echo "$ac_try_echo") >&5
26655 (eval "$ac_compile") 2>conftest.er1
26657 grep -v '^ *+' conftest.er1 >conftest.err
26659 cat conftest.err >&5
26660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); } && {
26662 test -z "$ac_c_werror_flag" ||
26663 test ! -s conftest.err
26664 } && test -s conftest.$ac_objext; then
26665 ac_hi=$ac_mid; break
26667 $as_echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 ac_lo=`expr $ac_mid + 1`
26671 if test $ac_lo -le $ac_mid; then
26675 ac_mid=`expr 2 '*' $ac_mid + 1`
26678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681 $as_echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26684 cat >conftest.$ac_ext <<_ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26690 $ac_includes_default
26692 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26694 typedef struct { char x; long y; } ac__type_alignof_;
26698 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26705 rm -f conftest.$ac_objext
26706 if { (ac_try="$ac_compile"
26707 case "(($ac_try" in
26708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709 *) ac_try_echo=$ac_try;;
26711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26712 $as_echo "$ac_try_echo") >&5
26713 (eval "$ac_compile") 2>conftest.er1
26715 grep -v '^ *+' conftest.er1 >conftest.err
26717 cat conftest.err >&5
26718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); } && {
26720 test -z "$ac_c_werror_flag" ||
26721 test ! -s conftest.err
26722 } && test -s conftest.$ac_objext; then
26725 cat >conftest.$ac_ext <<_ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h. */
26731 $ac_includes_default
26733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26735 typedef struct { char x; long y; } ac__type_alignof_;
26739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26746 rm -f conftest.$ac_objext
26747 if { (ac_try="$ac_compile"
26748 case "(($ac_try" in
26749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750 *) ac_try_echo=$ac_try;;
26752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26753 $as_echo "$ac_try_echo") >&5
26754 (eval "$ac_compile") 2>conftest.er1
26756 grep -v '^ *+' conftest.er1 >conftest.err
26758 cat conftest.err >&5
26759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); } && {
26761 test -z "$ac_c_werror_flag" ||
26762 test ! -s conftest.err
26763 } && test -s conftest.$ac_objext; then
26764 ac_lo=$ac_mid; break
26766 $as_echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26769 ac_hi=`expr '(' $ac_mid ')' - 1`
26770 if test $ac_mid -le $ac_hi; then
26774 ac_mid=`expr 2 '*' $ac_mid`
26777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 $as_echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26790 # Binary search between lo and hi bounds.
26791 while test "x$ac_lo" != "x$ac_hi"; do
26792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26793 cat >conftest.$ac_ext <<_ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h. */
26799 $ac_includes_default
26801 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26803 typedef struct { char x; long y; } ac__type_alignof_;
26807 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26814 rm -f conftest.$ac_objext
26815 if { (ac_try="$ac_compile"
26816 case "(($ac_try" in
26817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26821 $as_echo "$ac_try_echo") >&5
26822 (eval "$ac_compile") 2>conftest.er1
26824 grep -v '^ *+' conftest.er1 >conftest.err
26826 cat conftest.err >&5
26827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } && {
26829 test -z "$ac_c_werror_flag" ||
26830 test ! -s conftest.err
26831 } && test -s conftest.$ac_objext; then
26834 $as_echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26837 ac_lo=`expr '(' $ac_mid ')' + 1`
26840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 ?*) ac_cv_alignof_long=$ac_lo;;
26844 '') if test "$ac_cv_type_long" = yes; then
26845 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26847 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26848 See \`config.log' for more details." >&5
26849 $as_echo "$as_me: error: cannot compute alignment of long
26850 See \`config.log' for more details." >&2;}
26851 { (exit 77); exit 77; }; }; }
26853 ac_cv_alignof_long=0
26857 cat >conftest.$ac_ext <<_ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h. */
26863 $ac_includes_default
26865 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26867 typedef struct { char x; long y; } ac__type_alignof_;
26868 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26869 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26871 #include <stdlib.h>
26876 FILE *f = fopen ("conftest.val", "w");
26879 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26881 long int i = longval ();
26882 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26884 fprintf (f, "%ld", i);
26888 unsigned long int i = ulongval ();
26889 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26891 fprintf (f, "%lu", i);
26893 /* Do not output a trailing newline, as this causes \r\n confusion
26894 on some platforms. */
26895 return ferror (f) || fclose (f) != 0;
26901 rm -f conftest$ac_exeext
26902 if { (ac_try="$ac_link"
26903 case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26908 $as_echo "$ac_try_echo") >&5
26909 (eval "$ac_link") 2>&5
26911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26918 $as_echo "$ac_try_echo") >&5
26919 (eval "$ac_try") 2>&5
26921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; }; then
26923 ac_cv_alignof_long=`cat conftest.val`
26925 $as_echo "$as_me: program exited with status $ac_status" >&5
26926 $as_echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26929 ( exit $ac_status )
26930 if test "$ac_cv_type_long" = yes; then
26931 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26933 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26934 See \`config.log' for more details." >&5
26935 $as_echo "$as_me: error: cannot compute alignment of long
26936 See \`config.log' for more details." >&2;}
26937 { (exit 77); exit 77; }; }; }
26939 ac_cv_alignof_long=0
26942 rm -rf conftest.dSYM
26943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26947 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26948 $as_echo "$ac_cv_alignof_long" >&6; }
26952 cat >>confdefs.h <<_ACEOF
26953 #define ALIGNOF_LONG $ac_cv_alignof_long
26957 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26958 # The cast to long int works around a bug in the HP C Compiler,
26959 # see AC_CHECK_SIZEOF for more information.
26960 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26961 $as_echo_n "checking alignment of long long int... " >&6; }
26962 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26963 $as_echo_n "(cached) " >&6
26965 if test "$cross_compiling" = yes; then
26966 # Depending upon the size, compute the lo and hi bounds.
26967 cat >conftest.$ac_ext <<_ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h. */
26973 $ac_includes_default
26975 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26977 typedef struct { char x; long long int y; } ac__type_alignof_;
26981 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26988 rm -f conftest.$ac_objext
26989 if { (ac_try="$ac_compile"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996 (eval "$ac_compile") 2>conftest.er1
26998 grep -v '^ *+' conftest.er1 >conftest.err
27000 cat conftest.err >&5
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } && {
27003 test -z "$ac_c_werror_flag" ||
27004 test ! -s conftest.err
27005 } && test -s conftest.$ac_objext; then
27008 cat >conftest.$ac_ext <<_ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h. */
27014 $ac_includes_default
27016 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27018 typedef struct { char x; long long int y; } ac__type_alignof_;
27022 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27029 rm -f conftest.$ac_objext
27030 if { (ac_try="$ac_compile"
27031 case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27036 $as_echo "$ac_try_echo") >&5
27037 (eval "$ac_compile") 2>conftest.er1
27039 grep -v '^ *+' conftest.er1 >conftest.err
27041 cat conftest.err >&5
27042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); } && {
27044 test -z "$ac_c_werror_flag" ||
27045 test ! -s conftest.err
27046 } && test -s conftest.$ac_objext; then
27047 ac_hi=$ac_mid; break
27049 $as_echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27052 ac_lo=`expr $ac_mid + 1`
27053 if test $ac_lo -le $ac_mid; then
27057 ac_mid=`expr 2 '*' $ac_mid + 1`
27060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063 $as_echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27066 cat >conftest.$ac_ext <<_ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h. */
27072 $ac_includes_default
27074 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27076 typedef struct { char x; long long int y; } ac__type_alignof_;
27080 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27094 $as_echo "$ac_try_echo") >&5
27095 (eval "$ac_compile") 2>conftest.er1
27097 grep -v '^ *+' conftest.er1 >conftest.err
27099 cat conftest.err >&5
27100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } && {
27102 test -z "$ac_c_werror_flag" ||
27103 test ! -s conftest.err
27104 } && test -s conftest.$ac_objext; then
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 $ac_includes_default
27115 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27117 typedef struct { char x; long long int y; } ac__type_alignof_;
27121 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27128 rm -f conftest.$ac_objext
27129 if { (ac_try="$ac_compile"
27130 case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27135 $as_echo "$ac_try_echo") >&5
27136 (eval "$ac_compile") 2>conftest.er1
27138 grep -v '^ *+' conftest.er1 >conftest.err
27140 cat conftest.err >&5
27141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); } && {
27143 test -z "$ac_c_werror_flag" ||
27144 test ! -s conftest.err
27145 } && test -s conftest.$ac_objext; then
27146 ac_lo=$ac_mid; break
27148 $as_echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27151 ac_hi=`expr '(' $ac_mid ')' - 1`
27152 if test $ac_mid -le $ac_hi; then
27156 ac_mid=`expr 2 '*' $ac_mid`
27159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27162 $as_echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27172 # Binary search between lo and hi bounds.
27173 while test "x$ac_lo" != "x$ac_hi"; do
27174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27175 cat >conftest.$ac_ext <<_ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27181 $ac_includes_default
27183 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27185 typedef struct { char x; long long int y; } ac__type_alignof_;
27189 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27196 rm -f conftest.$ac_objext
27197 if { (ac_try="$ac_compile"
27198 case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27203 $as_echo "$ac_try_echo") >&5
27204 (eval "$ac_compile") 2>conftest.er1
27206 grep -v '^ *+' conftest.er1 >conftest.err
27208 cat conftest.err >&5
27209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } && {
27211 test -z "$ac_c_werror_flag" ||
27212 test ! -s conftest.err
27213 } && test -s conftest.$ac_objext; then
27216 $as_echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27219 ac_lo=`expr '(' $ac_mid ')' + 1`
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27226 '') if test "$ac_cv_type_long_long_int" = yes; then
27227 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27229 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27230 See \`config.log' for more details." >&5
27231 $as_echo "$as_me: error: cannot compute alignment of long long int
27232 See \`config.log' for more details." >&2;}
27233 { (exit 77); exit 77; }; }; }
27235 ac_cv_alignof_long_long_int=0
27239 cat >conftest.$ac_ext <<_ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h. */
27245 $ac_includes_default
27247 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27249 typedef struct { char x; long long int y; } ac__type_alignof_;
27250 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27251 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27253 #include <stdlib.h>
27258 FILE *f = fopen ("conftest.val", "w");
27261 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27263 long int i = longval ();
27264 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27266 fprintf (f, "%ld", i);
27270 unsigned long int i = ulongval ();
27271 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27273 fprintf (f, "%lu", i);
27275 /* Do not output a trailing newline, as this causes \r\n confusion
27276 on some platforms. */
27277 return ferror (f) || fclose (f) != 0;
27283 rm -f conftest$ac_exeext
27284 if { (ac_try="$ac_link"
27285 case "(($ac_try" in
27286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287 *) ac_try_echo=$ac_try;;
27289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27290 $as_echo "$ac_try_echo") >&5
27291 (eval "$ac_link") 2>&5
27293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27300 $as_echo "$ac_try_echo") >&5
27301 (eval "$ac_try") 2>&5
27303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); }; }; then
27305 ac_cv_alignof_long_long_int=`cat conftest.val`
27307 $as_echo "$as_me: program exited with status $ac_status" >&5
27308 $as_echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27311 ( exit $ac_status )
27312 if test "$ac_cv_type_long_long_int" = yes; then
27313 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27315 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27316 See \`config.log' for more details." >&5
27317 $as_echo "$as_me: error: cannot compute alignment of long long int
27318 See \`config.log' for more details." >&2;}
27319 { (exit 77); exit 77; }; }; }
27321 ac_cv_alignof_long_long_int=0
27324 rm -rf conftest.dSYM
27325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27329 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27330 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27334 cat >>confdefs.h <<_ACEOF
27335 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27340 # The cast to long int works around a bug in the HP C Compiler,
27341 # see AC_CHECK_SIZEOF for more information.
27342 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27343 $as_echo_n "checking alignment of double... " >&6; }
27344 if test "${ac_cv_alignof_double+set}" = set; then
27345 $as_echo_n "(cached) " >&6
27347 if test "$cross_compiling" = yes; then
27348 # Depending upon the size, compute the lo and hi bounds.
27349 cat >conftest.$ac_ext <<_ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h. */
27355 $ac_includes_default
27357 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27359 typedef struct { char x; double y; } ac__type_alignof_;
27363 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27370 rm -f conftest.$ac_objext
27371 if { (ac_try="$ac_compile"
27372 case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27377 $as_echo "$ac_try_echo") >&5
27378 (eval "$ac_compile") 2>conftest.er1
27380 grep -v '^ *+' conftest.er1 >conftest.err
27382 cat conftest.err >&5
27383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); } && {
27385 test -z "$ac_c_werror_flag" ||
27386 test ! -s conftest.err
27387 } && test -s conftest.$ac_objext; then
27390 cat >conftest.$ac_ext <<_ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h. */
27396 $ac_includes_default
27398 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27400 typedef struct { char x; double y; } ac__type_alignof_;
27404 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27418 $as_echo "$ac_try_echo") >&5
27419 (eval "$ac_compile") 2>conftest.er1
27421 grep -v '^ *+' conftest.er1 >conftest.err
27423 cat conftest.err >&5
27424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } && {
27426 test -z "$ac_c_werror_flag" ||
27427 test ! -s conftest.err
27428 } && test -s conftest.$ac_objext; then
27429 ac_hi=$ac_mid; break
27431 $as_echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27434 ac_lo=`expr $ac_mid + 1`
27435 if test $ac_lo -le $ac_mid; then
27439 ac_mid=`expr 2 '*' $ac_mid + 1`
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27445 $as_echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27448 cat >conftest.$ac_ext <<_ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h. */
27454 $ac_includes_default
27456 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27458 typedef struct { char x; double y; } ac__type_alignof_;
27462 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27469 rm -f conftest.$ac_objext
27470 if { (ac_try="$ac_compile"
27471 case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27476 $as_echo "$ac_try_echo") >&5
27477 (eval "$ac_compile") 2>conftest.er1
27479 grep -v '^ *+' conftest.er1 >conftest.err
27481 cat conftest.err >&5
27482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); } && {
27484 test -z "$ac_c_werror_flag" ||
27485 test ! -s conftest.err
27486 } && test -s conftest.$ac_objext; then
27489 cat >conftest.$ac_ext <<_ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h. */
27495 $ac_includes_default
27497 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27499 typedef struct { char x; double y; } ac__type_alignof_;
27503 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27510 rm -f conftest.$ac_objext
27511 if { (ac_try="$ac_compile"
27512 case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27517 $as_echo "$ac_try_echo") >&5
27518 (eval "$ac_compile") 2>conftest.er1
27520 grep -v '^ *+' conftest.er1 >conftest.err
27522 cat conftest.err >&5
27523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } && {
27525 test -z "$ac_c_werror_flag" ||
27526 test ! -s conftest.err
27527 } && test -s conftest.$ac_objext; then
27528 ac_lo=$ac_mid; break
27530 $as_echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27533 ac_hi=`expr '(' $ac_mid ')' - 1`
27534 if test $ac_mid -le $ac_hi; then
27538 ac_mid=`expr 2 '*' $ac_mid`
27541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27544 $as_echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 # Binary search between lo and hi bounds.
27555 while test "x$ac_lo" != "x$ac_hi"; do
27556 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27557 cat >conftest.$ac_ext <<_ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27563 $ac_includes_default
27565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27567 typedef struct { char x; double y; } ac__type_alignof_;
27571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27578 rm -f conftest.$ac_objext
27579 if { (ac_try="$ac_compile"
27580 case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27585 $as_echo "$ac_try_echo") >&5
27586 (eval "$ac_compile") 2>conftest.er1
27588 grep -v '^ *+' conftest.er1 >conftest.err
27590 cat conftest.err >&5
27591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } && {
27593 test -z "$ac_c_werror_flag" ||
27594 test ! -s conftest.err
27595 } && test -s conftest.$ac_objext; then
27598 $as_echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27601 ac_lo=`expr '(' $ac_mid ')' + 1`
27604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27607 ?*) ac_cv_alignof_double=$ac_lo;;
27608 '') if test "$ac_cv_type_double" = yes; then
27609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27611 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27612 See \`config.log' for more details." >&5
27613 $as_echo "$as_me: error: cannot compute alignment of double
27614 See \`config.log' for more details." >&2;}
27615 { (exit 77); exit 77; }; }; }
27617 ac_cv_alignof_double=0
27621 cat >conftest.$ac_ext <<_ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h. */
27627 $ac_includes_default
27629 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27631 typedef struct { char x; double y; } ac__type_alignof_;
27632 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27633 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27635 #include <stdlib.h>
27640 FILE *f = fopen ("conftest.val", "w");
27643 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27645 long int i = longval ();
27646 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27648 fprintf (f, "%ld", i);
27652 unsigned long int i = ulongval ();
27653 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27655 fprintf (f, "%lu", i);
27657 /* Do not output a trailing newline, as this causes \r\n confusion
27658 on some platforms. */
27659 return ferror (f) || fclose (f) != 0;
27665 rm -f conftest$ac_exeext
27666 if { (ac_try="$ac_link"
27667 case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27672 $as_echo "$ac_try_echo") >&5
27673 (eval "$ac_link") 2>&5
27675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27677 { (case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27682 $as_echo "$ac_try_echo") >&5
27683 (eval "$ac_try") 2>&5
27685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687 ac_cv_alignof_double=`cat conftest.val`
27689 $as_echo "$as_me: program exited with status $ac_status" >&5
27690 $as_echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27693 ( exit $ac_status )
27694 if test "$ac_cv_type_double" = yes; then
27695 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27697 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27698 See \`config.log' for more details." >&5
27699 $as_echo "$as_me: error: cannot compute alignment of double
27700 See \`config.log' for more details." >&2;}
27701 { (exit 77); exit 77; }; }; }
27703 ac_cv_alignof_double=0
27706 rm -rf conftest.dSYM
27707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27711 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27712 $as_echo "$ac_cv_alignof_double" >&6; }
27716 cat >>confdefs.h <<_ACEOF
27717 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27722 # Compute maximum alignment of any basic type.
27723 # We assume long's alignment is at least as strong as char, short, or int;
27724 # but we must check long long (if it exists) and double.
27726 MAX_ALIGNOF=$ac_cv_alignof_long
27727 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27728 MAX_ALIGNOF=$ac_cv_alignof_double
27730 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27731 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27734 cat >>confdefs.h <<_ACEOF
27735 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27740 # Some platforms predefine the types int8, int16, etc. Only check
27741 # a (hopefully) representative subset.
27742 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27743 $as_echo_n "checking for int8... " >&6; }
27744 if test "${ac_cv_type_int8+set}" = set; then
27745 $as_echo_n "(cached) " >&6
27748 cat >conftest.$ac_ext <<_ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h. */
27765 rm -f conftest.$ac_objext
27766 if { (ac_try="$ac_compile"
27767 case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27772 $as_echo "$ac_try_echo") >&5
27773 (eval "$ac_compile") 2>conftest.er1
27775 grep -v '^ *+' conftest.er1 >conftest.err
27777 cat conftest.err >&5
27778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } && {
27780 test -z "$ac_c_werror_flag" ||
27781 test ! -s conftest.err
27782 } && test -s conftest.$ac_objext; then
27783 cat >conftest.$ac_ext <<_ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h. */
27794 if (sizeof ((int8)))
27800 rm -f conftest.$ac_objext
27801 if { (ac_try="$ac_compile"
27802 case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808 (eval "$ac_compile") 2>conftest.er1
27810 grep -v '^ *+' conftest.er1 >conftest.err
27812 cat conftest.err >&5
27813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } && {
27815 test -z "$ac_c_werror_flag" ||
27816 test ! -s conftest.err
27817 } && test -s conftest.$ac_objext; then
27820 $as_echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27823 ac_cv_type_int8=yes
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27828 $as_echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27836 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27837 $as_echo "$ac_cv_type_int8" >&6; }
27838 if test "x$ac_cv_type_int8" = x""yes; then
27840 cat >>confdefs.h <<_ACEOF
27841 #define HAVE_INT8 1
27846 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27847 $as_echo_n "checking for uint8... " >&6; }
27848 if test "${ac_cv_type_uint8+set}" = set; then
27849 $as_echo_n "(cached) " >&6
27851 ac_cv_type_uint8=no
27852 cat >conftest.$ac_ext <<_ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27863 if (sizeof (uint8))
27869 rm -f conftest.$ac_objext
27870 if { (ac_try="$ac_compile"
27871 case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27876 $as_echo "$ac_try_echo") >&5
27877 (eval "$ac_compile") 2>conftest.er1
27879 grep -v '^ *+' conftest.er1 >conftest.err
27881 cat conftest.err >&5
27882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } && {
27884 test -z "$ac_c_werror_flag" ||
27885 test ! -s conftest.err
27886 } && test -s conftest.$ac_objext; then
27887 cat >conftest.$ac_ext <<_ACEOF
27890 cat confdefs.h >>conftest.$ac_ext
27891 cat >>conftest.$ac_ext <<_ACEOF
27892 /* end confdefs.h. */
27898 if (sizeof ((uint8)))
27904 rm -f conftest.$ac_objext
27905 if { (ac_try="$ac_compile"
27906 case "(($ac_try" in
27907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27908 *) ac_try_echo=$ac_try;;
27910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27911 $as_echo "$ac_try_echo") >&5
27912 (eval "$ac_compile") 2>conftest.er1
27914 grep -v '^ *+' conftest.er1 >conftest.err
27916 cat conftest.err >&5
27917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); } && {
27919 test -z "$ac_c_werror_flag" ||
27920 test ! -s conftest.err
27921 } && test -s conftest.$ac_objext; then
27924 $as_echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27927 ac_cv_type_uint8=yes
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932 $as_echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27940 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27941 $as_echo "$ac_cv_type_uint8" >&6; }
27942 if test "x$ac_cv_type_uint8" = x""yes; then
27944 cat >>confdefs.h <<_ACEOF
27945 #define HAVE_UINT8 1
27950 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27951 $as_echo_n "checking for int64... " >&6; }
27952 if test "${ac_cv_type_int64+set}" = set; then
27953 $as_echo_n "(cached) " >&6
27955 ac_cv_type_int64=no
27956 cat >conftest.$ac_ext <<_ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h. */
27967 if (sizeof (int64))
27973 rm -f conftest.$ac_objext
27974 if { (ac_try="$ac_compile"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27980 $as_echo "$ac_try_echo") >&5
27981 (eval "$ac_compile") 2>conftest.er1
27983 grep -v '^ *+' conftest.er1 >conftest.err
27985 cat conftest.err >&5
27986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); } && {
27988 test -z "$ac_c_werror_flag" ||
27989 test ! -s conftest.err
27990 } && test -s conftest.$ac_objext; then
27991 cat >conftest.$ac_ext <<_ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h. */
28002 if (sizeof ((int64)))
28008 rm -f conftest.$ac_objext
28009 if { (ac_try="$ac_compile"
28010 case "(($ac_try" in
28011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28012 *) ac_try_echo=$ac_try;;
28014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28015 $as_echo "$ac_try_echo") >&5
28016 (eval "$ac_compile") 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } && {
28023 test -z "$ac_c_werror_flag" ||
28024 test ! -s conftest.err
28025 } && test -s conftest.$ac_objext; then
28028 $as_echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28031 ac_cv_type_int64=yes
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28036 $as_echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28045 $as_echo "$ac_cv_type_int64" >&6; }
28046 if test "x$ac_cv_type_int64" = x""yes; then
28048 cat >>confdefs.h <<_ACEOF
28049 #define HAVE_INT64 1
28054 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28055 $as_echo_n "checking for uint64... " >&6; }
28056 if test "${ac_cv_type_uint64+set}" = set; then
28057 $as_echo_n "(cached) " >&6
28059 ac_cv_type_uint64=no
28060 cat >conftest.$ac_ext <<_ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h. */
28071 if (sizeof (uint64))
28077 rm -f conftest.$ac_objext
28078 if { (ac_try="$ac_compile"
28079 case "(($ac_try" in
28080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081 *) ac_try_echo=$ac_try;;
28083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28084 $as_echo "$ac_try_echo") >&5
28085 (eval "$ac_compile") 2>conftest.er1
28087 grep -v '^ *+' conftest.er1 >conftest.err
28089 cat conftest.err >&5
28090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } && {
28092 test -z "$ac_c_werror_flag" ||
28093 test ! -s conftest.err
28094 } && test -s conftest.$ac_objext; then
28095 cat >conftest.$ac_ext <<_ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h. */
28106 if (sizeof ((uint64)))
28112 rm -f conftest.$ac_objext
28113 if { (ac_try="$ac_compile"
28114 case "(($ac_try" in
28115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116 *) ac_try_echo=$ac_try;;
28118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28119 $as_echo "$ac_try_echo") >&5
28120 (eval "$ac_compile") 2>conftest.er1
28122 grep -v '^ *+' conftest.er1 >conftest.err
28124 cat conftest.err >&5
28125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } && {
28127 test -z "$ac_c_werror_flag" ||
28128 test ! -s conftest.err
28129 } && test -s conftest.$ac_objext; then
28132 $as_echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28135 ac_cv_type_uint64=yes
28138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28140 $as_echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28149 $as_echo "$ac_cv_type_uint64" >&6; }
28150 if test "x$ac_cv_type_uint64" = x""yes; then
28152 cat >>confdefs.h <<_ACEOF
28153 #define HAVE_UINT64 1
28160 # We also check for sig_atomic_t, which *should* be defined per ANSI
28161 # C, but is missing on some old platforms.
28162 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28163 $as_echo_n "checking for sig_atomic_t... " >&6; }
28164 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28165 $as_echo_n "(cached) " >&6
28167 ac_cv_type_sig_atomic_t=no
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28174 #include <signal.h>
28179 if (sizeof (sig_atomic_t))
28185 rm -f conftest.$ac_objext
28186 if { (ac_try="$ac_compile"
28187 case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28192 $as_echo "$ac_try_echo") >&5
28193 (eval "$ac_compile") 2>conftest.er1
28195 grep -v '^ *+' conftest.er1 >conftest.err
28197 cat conftest.err >&5
28198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } && {
28200 test -z "$ac_c_werror_flag" ||
28201 test ! -s conftest.err
28202 } && test -s conftest.$ac_objext; then
28203 cat >conftest.$ac_ext <<_ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h. */
28209 #include <signal.h>
28214 if (sizeof ((sig_atomic_t)))
28220 rm -f conftest.$ac_objext
28221 if { (ac_try="$ac_compile"
28222 case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28227 $as_echo "$ac_try_echo") >&5
28228 (eval "$ac_compile") 2>conftest.er1
28230 grep -v '^ *+' conftest.er1 >conftest.err
28232 cat conftest.err >&5
28233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); } && {
28235 test -z "$ac_c_werror_flag" ||
28236 test ! -s conftest.err
28237 } && test -s conftest.$ac_objext; then
28240 $as_echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ac_cv_type_sig_atomic_t=yes
28246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28248 $as_echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28257 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28258 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28260 cat >>confdefs.h <<_ACEOF
28261 #define HAVE_SIG_ATOMIC_T 1
28269 if test "$PORTNAME" != "win32"
28271 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28272 $as_echo_n "checking for POSIX signal interface... " >&6; }
28273 if test "${pgac_cv_func_posix_signals+set}" = set; then
28274 $as_echo_n "(cached) " >&6
28276 cat >conftest.$ac_ext <<_ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28282 #include <signal.h>
28287 struct sigaction act, oact;
28288 sigemptyset(&act.sa_mask);
28289 act.sa_flags = SA_RESTART;
28290 sigaction(0, &act, &oact);
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (ac_try="$ac_link"
28297 case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28302 $as_echo "$ac_try_echo") >&5
28303 (eval "$ac_link") 2>conftest.er1
28305 grep -v '^ *+' conftest.er1 >conftest.err
28307 cat conftest.err >&5
28308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); } && {
28310 test -z "$ac_c_werror_flag" ||
28311 test ! -s conftest.err
28312 } && test -s conftest$ac_exeext && {
28313 test "$cross_compiling" = yes ||
28314 $as_test_x conftest$ac_exeext
28316 pgac_cv_func_posix_signals=yes
28318 $as_echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 pgac_cv_func_posix_signals=no
28324 rm -rf conftest.dSYM
28325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28326 conftest$ac_exeext conftest.$ac_ext
28328 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28329 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28330 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28332 cat >>confdefs.h <<\_ACEOF
28333 #define HAVE_POSIX_SIGNALS /**/
28337 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28339 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28340 { { $as_echo "$as_me:$LINENO: error:
28341 Thread-safety requires POSIX signals, which are not supported by this
28342 operating system; use --disable-thread-safety to disable thread safety." >&5
28343 $as_echo "$as_me: error:
28344 Thread-safety requires POSIX signals, which are not supported by this
28345 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28346 { (exit 1); exit 1; }; }
28350 # SunOS doesn't handle negative byte comparisons properly with +/- return
28351 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28352 $as_echo_n "checking for working memcmp... " >&6; }
28353 if test "${ac_cv_func_memcmp_working+set}" = set; then
28354 $as_echo_n "(cached) " >&6
28356 if test "$cross_compiling" = yes; then
28357 ac_cv_func_memcmp_working=no
28359 cat >conftest.$ac_ext <<_ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h. */
28365 $ac_includes_default
28370 /* Some versions of memcmp are not 8-bit clean. */
28371 char c0 = '\100', c1 = '\200', c2 = '\201';
28372 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28375 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28376 or more and with at least one buffer not starting on a 4-byte boundary.
28377 William Lewis provided this test program. */
28382 for (i = 0; i < 4; i++)
28386 strcpy (a, "--------01111111");
28387 strcpy (b, "--------10000000");
28388 if (memcmp (a, b, 16) >= 0)
28398 rm -f conftest$ac_exeext
28399 if { (ac_try="$ac_link"
28400 case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28405 $as_echo "$ac_try_echo") >&5
28406 (eval "$ac_link") 2>&5
28408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28410 { (case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28415 $as_echo "$ac_try_echo") >&5
28416 (eval "$ac_try") 2>&5
28418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; }; then
28420 ac_cv_func_memcmp_working=yes
28422 $as_echo "$as_me: program exited with status $ac_status" >&5
28423 $as_echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28426 ( exit $ac_status )
28427 ac_cv_func_memcmp_working=no
28429 rm -rf conftest.dSYM
28430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28435 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28436 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28437 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28438 *" memcmp.$ac_objext "* ) ;;
28439 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28446 # Select semaphore implementation type.
28447 if test "$PORTNAME" != "win32"; then
28448 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28450 cat >>confdefs.h <<\_ACEOF
28451 #define USE_NAMED_POSIX_SEMAPHORES 1
28454 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28456 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28458 cat >>confdefs.h <<\_ACEOF
28459 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28462 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28465 cat >>confdefs.h <<\_ACEOF
28466 #define USE_SYSV_SEMAPHORES 1
28469 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28474 cat >>confdefs.h <<\_ACEOF
28475 #define USE_WIN32_SEMAPHORES 1
28478 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28482 # Select shared-memory implementation type.
28483 if test "$PORTNAME" != "win32"; then
28485 cat >>confdefs.h <<\_ACEOF
28486 #define USE_SYSV_SHARED_MEMORY 1
28489 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28492 cat >>confdefs.h <<\_ACEOF
28493 #define USE_WIN32_SHARED_MEMORY 1
28496 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28499 # Select latch implementation type.
28500 if test "$PORTNAME" != "win32"; then
28501 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28503 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28506 # If not set in template file, set bytes to use libc memset()
28507 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28508 MEMSET_LOOP_LIMIT=1024
28511 cat >>confdefs.h <<_ACEOF
28512 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28517 if test "$enable_nls" = yes ; then
28519 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28520 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28521 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28522 $as_echo_n "(cached) " >&6
28524 ac_func_search_save_LIBS=$LIBS
28525 cat >conftest.$ac_ext <<_ACEOF
28528 cat confdefs.h >>conftest.$ac_ext
28529 cat >>conftest.$ac_ext <<_ACEOF
28530 /* end confdefs.h. */
28532 /* Override any GCC internal prototype to avoid an error.
28533 Use char because int might match the return type of a GCC
28534 builtin and then its argument prototype would still apply. */
28538 char bind_textdomain_codeset ();
28542 return bind_textdomain_codeset ();
28547 for ac_lib in '' intl; do
28548 if test -z "$ac_lib"; then
28549 ac_res="none required"
28552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (ac_try="$ac_link"
28556 case "(($ac_try" in
28557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558 *) ac_try_echo=$ac_try;;
28560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28561 $as_echo "$ac_try_echo") >&5
28562 (eval "$ac_link") 2>conftest.er1
28564 grep -v '^ *+' conftest.er1 >conftest.err
28566 cat conftest.err >&5
28567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); } && {
28569 test -z "$ac_c_werror_flag" ||
28570 test ! -s conftest.err
28571 } && test -s conftest$ac_exeext && {
28572 test "$cross_compiling" = yes ||
28573 $as_test_x conftest$ac_exeext
28575 ac_cv_search_bind_textdomain_codeset=$ac_res
28577 $as_echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28583 rm -rf conftest.dSYM
28584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28586 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28590 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28593 ac_cv_search_bind_textdomain_codeset=no
28595 rm conftest.$ac_ext
28596 LIBS=$ac_func_search_save_LIBS
28598 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28599 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28600 ac_res=$ac_cv_search_bind_textdomain_codeset
28601 if test "$ac_res" != no; then
28602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28605 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28606 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28607 { (exit 1); exit 1; }; }
28610 if test "${ac_cv_header_libintl_h+set}" = set; then
28611 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28612 $as_echo_n "checking for libintl.h... " >&6; }
28613 if test "${ac_cv_header_libintl_h+set}" = set; then
28614 $as_echo_n "(cached) " >&6
28616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28617 $as_echo "$ac_cv_header_libintl_h" >&6; }
28619 # Is the header compilable?
28620 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28621 $as_echo_n "checking libintl.h usability... " >&6; }
28622 cat >conftest.$ac_ext <<_ACEOF
28625 cat confdefs.h >>conftest.$ac_ext
28626 cat >>conftest.$ac_ext <<_ACEOF
28627 /* end confdefs.h. */
28628 $ac_includes_default
28629 #include <libintl.h>
28631 rm -f conftest.$ac_objext
28632 if { (ac_try="$ac_compile"
28633 case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28638 $as_echo "$ac_try_echo") >&5
28639 (eval "$ac_compile") 2>conftest.er1
28641 grep -v '^ *+' conftest.er1 >conftest.err
28643 cat conftest.err >&5
28644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } && {
28646 test -z "$ac_c_werror_flag" ||
28647 test ! -s conftest.err
28648 } && test -s conftest.$ac_objext; then
28649 ac_header_compiler=yes
28651 $as_echo "$as_me: failed program was:" >&5
28652 sed 's/^/| /' conftest.$ac_ext >&5
28654 ac_header_compiler=no
28657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28659 $as_echo "$ac_header_compiler" >&6; }
28661 # Is the header present?
28662 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28663 $as_echo_n "checking libintl.h presence... " >&6; }
28664 cat >conftest.$ac_ext <<_ACEOF
28667 cat confdefs.h >>conftest.$ac_ext
28668 cat >>conftest.$ac_ext <<_ACEOF
28669 /* end confdefs.h. */
28670 #include <libintl.h>
28672 if { (ac_try="$ac_cpp conftest.$ac_ext"
28673 case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28678 $as_echo "$ac_try_echo") >&5
28679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28681 grep -v '^ *+' conftest.er1 >conftest.err
28683 cat conftest.err >&5
28684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } >/dev/null && {
28686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28687 test ! -s conftest.err
28689 ac_header_preproc=yes
28691 $as_echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28694 ac_header_preproc=no
28697 rm -f conftest.err conftest.$ac_ext
28698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28699 $as_echo "$ac_header_preproc" >&6; }
28701 # So? What about this header?
28702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28704 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28705 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28706 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28707 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28708 ac_header_preproc=yes
28711 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28712 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28713 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28714 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28715 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28716 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28717 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28718 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28719 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28720 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28721 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28722 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28724 ## ---------------------------------------- ##
28725 ## Report this to pgsql-bugs@postgresql.org ##
28726 ## ---------------------------------------- ##
28728 ) | sed "s/^/$as_me: WARNING: /" >&2
28731 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28732 $as_echo_n "checking for libintl.h... " >&6; }
28733 if test "${ac_cv_header_libintl_h+set}" = set; then
28734 $as_echo_n "(cached) " >&6
28736 ac_cv_header_libintl_h=$ac_header_preproc
28738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28739 $as_echo "$ac_cv_header_libintl_h" >&6; }
28742 if test "x$ac_cv_header_libintl_h" = x""yes; then
28745 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28746 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28747 { (exit 1); exit 1; }; }
28751 for ac_prog in msgfmt
28753 # Extract the first word of "$ac_prog", so it can be a program name with args.
28754 set dummy $ac_prog; ac_word=$2
28755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28756 $as_echo_n "checking for $ac_word... " >&6; }
28757 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28758 $as_echo_n "(cached) " >&6
28760 if test -n "$MSGFMT"; then
28761 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28764 for as_dir in $PATH
28767 test -z "$as_dir" && as_dir=.
28768 for ac_exec_ext in '' $ac_executable_extensions; do
28769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28770 ac_cv_prog_MSGFMT="$ac_prog"
28771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28780 MSGFMT=$ac_cv_prog_MSGFMT
28781 if test -n "$MSGFMT"; then
28782 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28783 $as_echo "$MSGFMT" >&6; }
28785 { $as_echo "$as_me:$LINENO: result: no" >&5
28786 $as_echo "no" >&6; }
28790 test -n "$MSGFMT" && break
28793 if test -z "$MSGFMT"; then
28794 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28795 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28796 { (exit 1); exit 1; }; }
28798 for ac_prog in msgmerge
28800 # Extract the first word of "$ac_prog", so it can be a program name with args.
28801 set dummy $ac_prog; ac_word=$2
28802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28803 $as_echo_n "checking for $ac_word... " >&6; }
28804 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28805 $as_echo_n "(cached) " >&6
28807 if test -n "$MSGMERGE"; then
28808 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28811 for as_dir in $PATH
28814 test -z "$as_dir" && as_dir=.
28815 for ac_exec_ext in '' $ac_executable_extensions; do
28816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28817 ac_cv_prog_MSGMERGE="$ac_prog"
28818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28827 MSGMERGE=$ac_cv_prog_MSGMERGE
28828 if test -n "$MSGMERGE"; then
28829 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28830 $as_echo "$MSGMERGE" >&6; }
28832 { $as_echo "$as_me:$LINENO: result: no" >&5
28833 $as_echo "no" >&6; }
28837 test -n "$MSGMERGE" && break
28840 for ac_prog in xgettext
28842 # Extract the first word of "$ac_prog", so it can be a program name with args.
28843 set dummy $ac_prog; ac_word=$2
28844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28845 $as_echo_n "checking for $ac_word... " >&6; }
28846 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28847 $as_echo_n "(cached) " >&6
28849 if test -n "$XGETTEXT"; then
28850 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28853 for as_dir in $PATH
28856 test -z "$as_dir" && as_dir=.
28857 for ac_exec_ext in '' $ac_executable_extensions; do
28858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28859 ac_cv_prog_XGETTEXT="$ac_prog"
28860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28869 XGETTEXT=$ac_cv_prog_XGETTEXT
28870 if test -n "$XGETTEXT"; then
28871 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28872 $as_echo "$XGETTEXT" >&6; }
28874 { $as_echo "$as_me:$LINENO: result: no" >&5
28875 $as_echo "no" >&6; }
28879 test -n "$XGETTEXT" && break
28885 # Check for Tcl configuration script tclConfig.sh
28886 if test "$with_tcl" = yes; then
28887 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28889 # Extract the first word of "$ac_prog", so it can be a program name with args.
28890 set dummy $ac_prog; ac_word=$2
28891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28892 $as_echo_n "checking for $ac_word... " >&6; }
28893 if test "${ac_cv_path_TCLSH+set}" = set; then
28894 $as_echo_n "(cached) " >&6
28898 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28902 for as_dir in $PATH
28905 test -z "$as_dir" && as_dir=.
28906 for ac_exec_ext in '' $ac_executable_extensions; do
28907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28908 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28919 TCLSH=$ac_cv_path_TCLSH
28920 if test -n "$TCLSH"; then
28921 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28922 $as_echo "$TCLSH" >&6; }
28924 { $as_echo "$as_me:$LINENO: result: no" >&5
28925 $as_echo "no" >&6; }
28929 test -n "$TCLSH" && break
28932 if test x"$TCLSH" = x""; then
28933 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28934 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28935 { (exit 1); exit 1; }; }
28938 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28939 $as_echo_n "checking for tclConfig.sh... " >&6; }
28940 # Let user override test
28941 if test -z "$TCL_CONFIG_SH"; then
28942 pgac_test_dirs="$with_tclconfig"
28944 set X $pgac_test_dirs; shift
28945 if test $# -eq 0; then
28946 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28947 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28948 { (exit 1); exit 1; }; }
28949 set X `echo 'puts $auto_path' | $TCLSH`; shift
28953 if test -r "$pgac_dir/tclConfig.sh"; then
28954 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28960 if test -z "$TCL_CONFIG_SH"; then
28961 { $as_echo "$as_me:$LINENO: result: no" >&5
28962 $as_echo "no" >&6; }
28963 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28964 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28965 { (exit 1); exit 1; }; }
28967 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28968 $as_echo "$TCL_CONFIG_SH" >&6; }
28974 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28975 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28976 eval TCL_LIBS=\"$TCL_LIBS\"
28977 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28978 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28980 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28981 ac_save_CPPFLAGS=$CPPFLAGS
28982 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28983 if test "${ac_cv_header_tcl_h+set}" = set; then
28984 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28985 $as_echo_n "checking for tcl.h... " >&6; }
28986 if test "${ac_cv_header_tcl_h+set}" = set; then
28987 $as_echo_n "(cached) " >&6
28989 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28990 $as_echo "$ac_cv_header_tcl_h" >&6; }
28992 # Is the header compilable?
28993 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28994 $as_echo_n "checking tcl.h usability... " >&6; }
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 $ac_includes_default
29004 rm -f conftest.$ac_objext
29005 if { (ac_try="$ac_compile"
29006 case "(($ac_try" in
29007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29011 $as_echo "$ac_try_echo") >&5
29012 (eval "$ac_compile") 2>conftest.er1
29014 grep -v '^ *+' conftest.er1 >conftest.err
29016 cat conftest.err >&5
29017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } && {
29019 test -z "$ac_c_werror_flag" ||
29020 test ! -s conftest.err
29021 } && test -s conftest.$ac_objext; then
29022 ac_header_compiler=yes
29024 $as_echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29027 ac_header_compiler=no
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29032 $as_echo "$ac_header_compiler" >&6; }
29034 # Is the header present?
29035 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29036 $as_echo_n "checking tcl.h presence... " >&6; }
29037 cat >conftest.$ac_ext <<_ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29045 if { (ac_try="$ac_cpp conftest.$ac_ext"
29046 case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29051 $as_echo "$ac_try_echo") >&5
29052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29054 grep -v '^ *+' conftest.er1 >conftest.err
29056 cat conftest.err >&5
29057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } >/dev/null && {
29059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29060 test ! -s conftest.err
29062 ac_header_preproc=yes
29064 $as_echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29067 ac_header_preproc=no
29070 rm -f conftest.err conftest.$ac_ext
29071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29072 $as_echo "$ac_header_preproc" >&6; }
29074 # So? What about this header?
29075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29077 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29078 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29079 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29080 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29081 ac_header_preproc=yes
29084 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29085 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29086 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29087 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29088 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29089 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29090 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29091 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29092 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29093 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29094 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29095 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29097 ## ---------------------------------------- ##
29098 ## Report this to pgsql-bugs@postgresql.org ##
29099 ## ---------------------------------------- ##
29101 ) | sed "s/^/$as_me: WARNING: /" >&2
29104 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29105 $as_echo_n "checking for tcl.h... " >&6; }
29106 if test "${ac_cv_header_tcl_h+set}" = set; then
29107 $as_echo_n "(cached) " >&6
29109 ac_cv_header_tcl_h=$ac_header_preproc
29111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29112 $as_echo "$ac_cv_header_tcl_h" >&6; }
29115 if test "x$ac_cv_header_tcl_h" = x""yes; then
29118 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29119 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29120 { (exit 1); exit 1; }; }
29124 CPPFLAGS=$ac_save_CPPFLAGS
29127 # check for <Python.h>
29128 if test "$with_python" = yes; then
29129 ac_save_CPPFLAGS=$CPPFLAGS
29130 CPPFLAGS="$python_includespec $CPPFLAGS"
29131 if test "${ac_cv_header_Python_h+set}" = set; then
29132 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29133 $as_echo_n "checking for Python.h... " >&6; }
29134 if test "${ac_cv_header_Python_h+set}" = set; then
29135 $as_echo_n "(cached) " >&6
29137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29138 $as_echo "$ac_cv_header_Python_h" >&6; }
29140 # Is the header compilable?
29141 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29142 $as_echo_n "checking Python.h usability... " >&6; }
29143 cat >conftest.$ac_ext <<_ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h. */
29149 $ac_includes_default
29150 #include <Python.h>
29152 rm -f conftest.$ac_objext
29153 if { (ac_try="$ac_compile"
29154 case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29159 $as_echo "$ac_try_echo") >&5
29160 (eval "$ac_compile") 2>conftest.er1
29162 grep -v '^ *+' conftest.er1 >conftest.err
29164 cat conftest.err >&5
29165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } && {
29167 test -z "$ac_c_werror_flag" ||
29168 test ! -s conftest.err
29169 } && test -s conftest.$ac_objext; then
29170 ac_header_compiler=yes
29172 $as_echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29175 ac_header_compiler=no
29178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29179 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29180 $as_echo "$ac_header_compiler" >&6; }
29182 # Is the header present?
29183 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29184 $as_echo_n "checking Python.h presence... " >&6; }
29185 cat >conftest.$ac_ext <<_ACEOF
29188 cat confdefs.h >>conftest.$ac_ext
29189 cat >>conftest.$ac_ext <<_ACEOF
29190 /* end confdefs.h. */
29191 #include <Python.h>
29193 if { (ac_try="$ac_cpp conftest.$ac_ext"
29194 case "(($ac_try" in
29195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196 *) ac_try_echo=$ac_try;;
29198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29199 $as_echo "$ac_try_echo") >&5
29200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29202 grep -v '^ *+' conftest.er1 >conftest.err
29204 cat conftest.err >&5
29205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } >/dev/null && {
29207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29208 test ! -s conftest.err
29210 ac_header_preproc=yes
29212 $as_echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29215 ac_header_preproc=no
29218 rm -f conftest.err conftest.$ac_ext
29219 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220 $as_echo "$ac_header_preproc" >&6; }
29222 # So? What about this header?
29223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29225 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29226 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29228 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29229 ac_header_preproc=yes
29232 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29233 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29234 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29235 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29236 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29237 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29238 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29239 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29240 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29241 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29242 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29243 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29245 ## ---------------------------------------- ##
29246 ## Report this to pgsql-bugs@postgresql.org ##
29247 ## ---------------------------------------- ##
29249 ) | sed "s/^/$as_me: WARNING: /" >&2
29252 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29253 $as_echo_n "checking for Python.h... " >&6; }
29254 if test "${ac_cv_header_Python_h+set}" = set; then
29255 $as_echo_n "(cached) " >&6
29257 ac_cv_header_Python_h=$ac_header_preproc
29259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29260 $as_echo "$ac_cv_header_Python_h" >&6; }
29263 if test "x$ac_cv_header_Python_h" = x""yes; then
29266 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29267 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29268 { (exit 1); exit 1; }; }
29272 CPPFLAGS=$ac_save_CPPFLAGS
29276 # Check for DocBook and tools
29278 for ac_prog in onsgmls nsgmls
29280 # Extract the first word of "$ac_prog", so it can be a program name with args.
29281 set dummy $ac_prog; ac_word=$2
29282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29283 $as_echo_n "checking for $ac_word... " >&6; }
29284 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29285 $as_echo_n "(cached) " >&6
29287 if test -n "$NSGMLS"; then
29288 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29291 for as_dir in $PATH
29294 test -z "$as_dir" && as_dir=.
29295 for ac_exec_ext in '' $ac_executable_extensions; do
29296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29297 ac_cv_prog_NSGMLS="$ac_prog"
29298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29307 NSGMLS=$ac_cv_prog_NSGMLS
29308 if test -n "$NSGMLS"; then
29309 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29310 $as_echo "$NSGMLS" >&6; }
29312 { $as_echo "$as_me:$LINENO: result: no" >&5
29313 $as_echo "no" >&6; }
29317 test -n "$NSGMLS" && break
29320 for ac_prog in openjade jade
29322 # Extract the first word of "$ac_prog", so it can be a program name with args.
29323 set dummy $ac_prog; ac_word=$2
29324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29325 $as_echo_n "checking for $ac_word... " >&6; }
29326 if test "${ac_cv_prog_JADE+set}" = set; then
29327 $as_echo_n "(cached) " >&6
29329 if test -n "$JADE"; then
29330 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29333 for as_dir in $PATH
29336 test -z "$as_dir" && as_dir=.
29337 for ac_exec_ext in '' $ac_executable_extensions; do
29338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29339 ac_cv_prog_JADE="$ac_prog"
29340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29349 JADE=$ac_cv_prog_JADE
29350 if test -n "$JADE"; then
29351 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29352 $as_echo "$JADE" >&6; }
29354 { $as_echo "$as_me:$LINENO: result: no" >&5
29355 $as_echo "no" >&6; }
29359 test -n "$JADE" && break
29363 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29364 $as_echo_n "checking for DocBook V4.2... " >&6; }
29365 if test "${pgac_cv_check_docbook+set}" = set; then
29366 $as_echo_n "(cached) " >&6
29368 cat >conftest.sgml <<EOF
29369 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29371 <title>test</title>
29373 <title>random</title>
29375 <title>testsect</title>
29382 pgac_cv_check_docbook=no
29384 if test -n "$NSGMLS"; then
29385 $NSGMLS -s conftest.sgml 1>&5 2>&1
29386 if test $? -eq 0; then
29387 pgac_cv_check_docbook=yes
29390 rm -f conftest.sgml
29392 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29393 $as_echo "$pgac_cv_check_docbook" >&6; }
29395 have_docbook=$pgac_cv_check_docbook
29398 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29399 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29400 if test "${pgac_cv_path_stylesheets+set}" = set; then
29401 $as_echo_n "(cached) " >&6
29403 if test -n "$DOCBOOKSTYLE"; then
29404 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29406 for pgac_prefix in /usr /usr/local /opt /sw; do
29407 for pgac_infix in share lib; do
29408 for pgac_postfix in \
29409 sgml/stylesheets/nwalsh-modular \
29410 sgml/stylesheets/docbook \
29411 sgml/stylesheets/dsssl/docbook \
29412 sgml/docbook-dsssl \
29413 sgml/docbook/dsssl/modular \
29414 sgml/docbook/stylesheet/dsssl/modular \
29415 sgml/docbook/dsssl-stylesheets \
29416 sgml/dsssl/docbook-dsssl-nwalsh
29418 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29419 if test -r "$pgac_candidate/html/docbook.dsl" \
29420 && test -r "$pgac_candidate/print/docbook.dsl"
29422 pgac_cv_path_stylesheets=$pgac_candidate
29431 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29433 if test -n "$DOCBOOKSTYLE"; then
29434 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29435 $as_echo "$DOCBOOKSTYLE" >&6; }
29437 { $as_echo "$as_me:$LINENO: result: no" >&5
29438 $as_echo "no" >&6; }
29440 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29441 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29444 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29445 set dummy collateindex.pl; ac_word=$2
29446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29447 $as_echo_n "checking for $ac_word... " >&6; }
29448 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29449 $as_echo_n "(cached) " >&6
29451 case $COLLATEINDEX in
29453 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29457 for as_dir in $PATH
29460 test -z "$as_dir" && as_dir=.
29461 for ac_exec_ext in '' $ac_executable_extensions; do
29462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29463 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29474 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29475 if test -n "$COLLATEINDEX"; then
29476 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29477 $as_echo "$COLLATEINDEX" >&6; }
29479 { $as_echo "$as_me:$LINENO: result: no" >&5
29480 $as_echo "no" >&6; }
29485 for ac_prog in xsltproc
29487 # Extract the first word of "$ac_prog", so it can be a program name with args.
29488 set dummy $ac_prog; 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_prog_XSLTPROC+set}" = set; then
29492 $as_echo_n "(cached) " >&6
29494 if test -n "$XSLTPROC"; then
29495 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29498 for as_dir in $PATH
29501 test -z "$as_dir" && as_dir=.
29502 for ac_exec_ext in '' $ac_executable_extensions; do
29503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29504 ac_cv_prog_XSLTPROC="$ac_prog"
29505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29514 XSLTPROC=$ac_cv_prog_XSLTPROC
29515 if test -n "$XSLTPROC"; then
29516 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29517 $as_echo "$XSLTPROC" >&6; }
29519 { $as_echo "$as_me:$LINENO: result: no" >&5
29520 $as_echo "no" >&6; }
29524 test -n "$XSLTPROC" && break
29527 for ac_prog in osx sgml2xml sx
29529 # Extract the first word of "$ac_prog", so it can be a program name with args.
29530 set dummy $ac_prog; ac_word=$2
29531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29532 $as_echo_n "checking for $ac_word... " >&6; }
29533 if test "${ac_cv_prog_OSX+set}" = set; then
29534 $as_echo_n "(cached) " >&6
29536 if test -n "$OSX"; then
29537 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29540 for as_dir in $PATH
29543 test -z "$as_dir" && as_dir=.
29544 for ac_exec_ext in '' $ac_executable_extensions; do
29545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29546 ac_cv_prog_OSX="$ac_prog"
29547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29556 OSX=$ac_cv_prog_OSX
29557 if test -n "$OSX"; then
29558 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29559 $as_echo "$OSX" >&6; }
29561 { $as_echo "$as_me:$LINENO: result: no" >&5
29562 $as_echo "no" >&6; }
29566 test -n "$OSX" && break
29572 # We have to run the thread test near the end so we have all our symbols
29573 # defined. Cross compiling throws a warning.
29575 if test "$enable_thread_safety" = yes; then
29576 if test "$PORTNAME" != "win32"
29578 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29579 $as_echo_n "checking thread safety of required library functions... " >&6; }
29583 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29584 LIBS="$LIBS $PTHREAD_LIBS"
29585 if test "$cross_compiling" = yes; then
29586 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29587 $as_echo "maybe" >&6; }
29588 { $as_echo "$as_me:$LINENO: WARNING:
29589 *** Skipping thread test program because of cross-compile build.
29590 *** Run the program in src/test/thread on the target machine.
29592 $as_echo "$as_me: WARNING:
29593 *** Skipping thread test program because of cross-compile build.
29594 *** Run the program in src/test/thread on the target machine.
29597 cat >conftest.$ac_ext <<_ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h. */
29603 #include "$srcdir/src/test/thread/thread_test.c"
29605 rm -f conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29612 $as_echo "$ac_try_echo") >&5
29613 (eval "$ac_link") 2>&5
29615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29617 { (case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29622 $as_echo "$ac_try_echo") >&5
29623 (eval "$ac_try") 2>&5
29625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; }; then
29627 { $as_echo "$as_me:$LINENO: result: yes" >&5
29628 $as_echo "yes" >&6; }
29630 $as_echo "$as_me: program exited with status $ac_status" >&5
29631 $as_echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29634 ( exit $ac_status )
29635 { $as_echo "$as_me:$LINENO: result: no" >&5
29636 $as_echo "no" >&6; }
29637 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29638 This platform is not thread-safe. Check the file 'config.log' or compile
29639 and run src/test/thread/thread_test for the exact reason.
29640 Use --disable-thread-safety to disable thread safety." >&5
29641 $as_echo "$as_me: error: thread test program failed
29642 This platform is not thread-safe. Check the file 'config.log' or compile
29643 and run src/test/thread/thread_test for the exact reason.
29644 Use --disable-thread-safety to disable thread safety." >&2;}
29645 { (exit 1); exit 1; }; }
29647 rm -rf conftest.dSYM
29648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29655 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29656 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29660 # If compiler will take -Wl,--as-needed (or various platform-specific
29661 # spellings thereof) then add that to LDFLAGS. This is much easier than
29662 # trying to filter LIBS to the minimum for each executable.
29663 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29664 # libreadline; therefore we postpone testing it until we know what library
29665 # dependencies readline has. The test code will try to link with $LIBS.
29666 if test "$with_readline" = yes; then
29667 link_test_func=readline
29669 link_test_func=exit
29672 if test "$PORTNAME" = "darwin"; then
29673 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29674 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29675 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29676 $as_echo_n "(cached) " >&6
29678 pgac_save_LDFLAGS=$LDFLAGS
29679 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29680 if test "$cross_compiling" = yes; then
29681 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29683 cat >conftest.$ac_ext <<_ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h. */
29689 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29698 rm -f conftest$ac_exeext
29699 if { (ac_try="$ac_link"
29700 case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29705 $as_echo "$ac_try_echo") >&5
29706 (eval "$ac_link") 2>&5
29708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29710 { (case "(($ac_try" in
29711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712 *) ac_try_echo=$ac_try;;
29714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29715 $as_echo "$ac_try_echo") >&5
29716 (eval "$ac_try") 2>&5
29718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); }; }; then
29720 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29722 $as_echo "$as_me: program exited with status $ac_status" >&5
29723 $as_echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29726 ( exit $ac_status )
29727 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29729 rm -rf conftest.dSYM
29730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29734 LDFLAGS="$pgac_save_LDFLAGS"
29736 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29737 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29738 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29739 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29742 elif test "$PORTNAME" = "openbsd"; then
29743 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29744 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29745 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29746 $as_echo_n "(cached) " >&6
29748 pgac_save_LDFLAGS=$LDFLAGS
29749 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29750 if test "$cross_compiling" = yes; then
29751 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29753 cat >conftest.$ac_ext <<_ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h. */
29759 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29768 rm -f conftest$ac_exeext
29769 if { (ac_try="$ac_link"
29770 case "(($ac_try" in
29771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772 *) ac_try_echo=$ac_try;;
29774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29775 $as_echo "$ac_try_echo") >&5
29776 (eval "$ac_link") 2>&5
29778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29780 { (case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29785 $as_echo "$ac_try_echo") >&5
29786 (eval "$ac_try") 2>&5
29788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29792 $as_echo "$as_me: program exited with status $ac_status" >&5
29793 $as_echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29796 ( exit $ac_status )
29797 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29799 rm -rf conftest.dSYM
29800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29804 LDFLAGS="$pgac_save_LDFLAGS"
29806 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29807 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29808 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29809 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29813 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29814 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29815 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29816 $as_echo_n "(cached) " >&6
29818 pgac_save_LDFLAGS=$LDFLAGS
29819 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29820 if test "$cross_compiling" = yes; then
29821 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29823 cat >conftest.$ac_ext <<_ACEOF
29826 cat confdefs.h >>conftest.$ac_ext
29827 cat >>conftest.$ac_ext <<_ACEOF
29828 /* end confdefs.h. */
29829 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29838 rm -f conftest$ac_exeext
29839 if { (ac_try="$ac_link"
29840 case "(($ac_try" in
29841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842 *) ac_try_echo=$ac_try;;
29844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29845 $as_echo "$ac_try_echo") >&5
29846 (eval "$ac_link") 2>&5
29848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29850 { (case "(($ac_try" in
29851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852 *) ac_try_echo=$ac_try;;
29854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29855 $as_echo "$ac_try_echo") >&5
29856 (eval "$ac_try") 2>&5
29858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; }; then
29860 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29862 $as_echo "$as_me: program exited with status $ac_status" >&5
29863 $as_echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29866 ( exit $ac_status )
29867 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29869 rm -rf conftest.dSYM
29870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29874 LDFLAGS="$pgac_save_LDFLAGS"
29876 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29877 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29878 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29879 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29884 # Create compiler version string
29885 if test x"$GCC" = x"yes" ; then
29886 cc_string=`${CC} --version | sed q`
29887 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29888 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29889 cc_string=`${CC} -V 2>&1 | sed q`
29895 cat >>confdefs.h <<_ACEOF
29896 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29900 # Supply a numeric version string for use by 3rd party add-ons
29901 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29902 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29904 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29906 cat >>confdefs.h <<_ACEOF
29907 #define PG_VERSION_NUM $PG_VERSION_NUM
29912 # Begin output steps
29914 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29915 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29916 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29917 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29918 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29919 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29920 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29921 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29923 # prepare build tree if outside source tree
29924 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29925 # Note 2: /bin/pwd might be better than shell's built-in at getting
29926 # a symlink-free name.
29927 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29931 if test "$no_create" != yes; then
29932 $as_echo_n "preparing build tree... " >&6
29933 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29934 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29935 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29936 $as_echo "$as_me: error: failed" >&2;}
29937 { (exit 1); exit 1; }; }
29938 { $as_echo "$as_me:$LINENO: result: done" >&5
29939 $as_echo "done" >&6; }
29945 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29948 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}"
29951 if test "$PORTNAME" = "win32"; then
29952 ac_config_commands="$ac_config_commands check_win32_symlinks"
29956 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29959 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
29962 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29965 cat >confcache <<\_ACEOF
29966 # This file is a shell script that caches the results of configure
29967 # tests run on this system so they can be shared between configure
29968 # scripts and configure runs, see configure's option --config-cache.
29969 # It is not useful on other systems. If it contains results you don't
29970 # want to keep, you may remove or edit it.
29972 # config.status only pays attention to the cache file if you give it
29973 # the --recheck option to rerun configure.
29975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29977 # following values.
29981 # The following way of writing the cache mishandles newlines in values,
29982 # but we know of no workaround that is simple, portable, and efficient.
29983 # So, we kill variables containing newlines.
29984 # Ultrix sh set writes to stderr and can't be redirected directly,
29985 # and sets the high bit in the cache file unless we assign to the vars.
29987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29988 eval ac_val=\$$ac_var
29992 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29996 _ | IFS | as_nl) ;; #(
29997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29998 *) $as_unset $ac_var ;;
30004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30005 *${as_nl}ac_space=\ *)
30006 # `set' does not quote correctly, so add quotes (double-quote
30007 # substitution turns \\\\ into \\, and sed turns \\ into \).
30010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30013 # `set' quotes correctly as required by POSIX, so do not add quotes.
30014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30028 if test -w "$cache_file"; then
30029 test "x$cache_file" != "x/dev/null" &&
30030 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30031 $as_echo "$as_me: updating cache $cache_file" >&6;}
30032 cat confcache >$cache_file
30034 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30041 # Let make expand exec_prefix.
30042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30044 DEFS=-DHAVE_CONFIG_H
30048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30049 # 1. Remove the extension, and $U if already installed.
30050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30053 # will be set to the directory where LIBOBJS objects are built.
30054 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30055 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30057 LIBOBJS=$ac_libobjs
30059 LTLIBOBJS=$ac_ltlibobjs
30064 : ${CONFIG_STATUS=./config.status}
30066 ac_clean_files_save=$ac_clean_files
30067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30068 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30070 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30072 # Generated by $as_me.
30073 # Run this file to recreate the current configuration.
30074 # Compiler output produced by configure, useful for debugging
30075 # configure, is in config.log if it exists.
30078 ac_cs_recheck=false
30080 SHELL=\${CONFIG_SHELL-$SHELL}
30083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30084 ## --------------------- ##
30085 ## M4sh Initialization. ##
30086 ## --------------------- ##
30088 # Be more Bourne compatible
30089 DUALCASE=1; export DUALCASE # for MKS sh
30090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30094 # is contrary to our usage. Disable this feature.
30095 alias -g '${1+"$@"}'='"$@"'
30096 setopt NO_GLOB_SUBST
30098 case `(set -o) 2>/dev/null` in
30099 *posix*) set -o posix ;;
30108 # Avoid depending upon Character Ranges.
30109 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30112 as_cr_digits='0123456789'
30113 as_cr_alnum=$as_cr_Letters$as_cr_digits
30118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30122 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30123 as_echo='printf %s\n'
30124 as_echo_n='printf %s'
30126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30128 as_echo_n='/usr/ucb/echo -n'
30130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30131 as_echo_n_body='eval
30135 expr "X$arg" : "X\\(.*\\)$as_nl";
30136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30140 export as_echo_n_body
30141 as_echo_n='sh -c $as_echo_n_body as_echo'
30143 export as_echo_body
30144 as_echo='sh -c $as_echo_body as_echo'
30147 # The user is always right.
30148 if test "${PATH_SEPARATOR+set}" != set; then
30150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30156 # Support unset when possible.
30157 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30165 # We need space, tab and new line, in precisely that order. Quoting is
30166 # there to prevent editors from complaining about space-tab.
30167 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30168 # splitting by setting IFS to empty value.)
30171 # Find who we are. Look in the path if we contain no directory separator.
30173 *[\\/]* ) as_myself=$0 ;;
30174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175 for as_dir in $PATH
30178 test -z "$as_dir" && as_dir=.
30179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30185 # We did not find ourselves, most probably we were run as `sh COMMAND'
30186 # in which case we are not to be found in the path.
30187 if test "x$as_myself" = x; then
30190 if test ! -f "$as_myself"; then
30191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30192 { (exit 1); exit 1; }
30195 # Work around bugs in pre-3.0 UWIN ksh.
30196 for as_var in ENV MAIL MAILPATH
30197 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30209 # Required to use basename.
30210 if expr a : '\(a\)' >/dev/null 2>&1 &&
30211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30218 as_basename=basename
30224 # Name of the executable.
30225 as_me=`$as_basename -- "$0" ||
30226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30227 X"$0" : 'X\(//\)$' \| \
30228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30230 sed '/^.*\/\([^/][^/]*\)\/*$/{
30249 as_lineno_1=$LINENO
30250 as_lineno_2=$LINENO
30251 test "x$as_lineno_1" != "x$as_lineno_2" &&
30252 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30254 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30255 # uniformly replaced by the line number. The first 'sed' inserts a
30256 # line-number line after each line using $LINENO; the second 'sed'
30257 # does the real work. The second script uses 'N' to pair each
30258 # line-number line with the line containing $LINENO, and appends
30259 # trailing '-' during substitution so that $LINENO is not a special
30260 # case at line end.
30261 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30262 # scripts with optimization help from Paolo Bonzini. Blame Lee
30263 # E. McMahon (1931-1989) for sed's syntax. :-)
30275 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30278 ' >$as_me.lineno &&
30279 chmod +x "$as_me.lineno" ||
30280 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30281 { (exit 1); exit 1; }; }
30283 # Don't try to exec as it changes $[0], causing all sort of problems
30284 # (the dirname of $[0] is not the place where we might find the
30285 # original and so on. Autoconf is especially sensitive to this).
30286 . "./$as_me.lineno"
30287 # Exit status is that of the last command.
30292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30298 ECHO_C= ECHO_N= ECHO_T=
30299 case `echo -n x` in
30301 case `echo 'x\c'` in
30302 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30308 if expr a : '\(a\)' >/dev/null 2>&1 &&
30309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30315 rm -f conf$$ conf$$.exe conf$$.file
30316 if test -d conf$$.dir; then
30317 rm -f conf$$.dir/conf$$.file
30320 mkdir conf$$.dir 2>/dev/null
30322 if (echo >conf$$.file) 2>/dev/null; then
30323 if ln -s conf$$.file conf$$ 2>/dev/null; then
30325 # ... but there are two gotchas:
30326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30328 # In both cases, we have to default to `cp -p'.
30329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30331 elif ln conf$$.file conf$$ 2>/dev/null; then
30339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30340 rmdir conf$$.dir 2>/dev/null
30342 if mkdir -p . 2>/dev/null; then
30345 test -d ./-p && rmdir ./-p
30349 if test -x / >/dev/null 2>&1; then
30350 as_test_x='test -x'
30352 if ls -dL / >/dev/null 2>&1; then
30359 if test -d "$1"; then
30365 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30366 ???[sx]*):;;*)false;;esac;fi
30370 as_executable_p=$as_test_x
30372 # Sed expression to map a string onto a valid CPP name.
30373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30375 # Sed expression to map a string onto a valid variable name.
30376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30381 # Save the log message, to keep $[0] and so on meaningful, and to
30382 # report actual input values of CONFIG_FILES etc. instead of their
30383 # values after options handling.
30385 This file was extended by PostgreSQL $as_me 9.3devel, which was
30386 generated by GNU Autoconf 2.63. Invocation command line was
30388 CONFIG_FILES = $CONFIG_FILES
30389 CONFIG_HEADERS = $CONFIG_HEADERS
30390 CONFIG_LINKS = $CONFIG_LINKS
30391 CONFIG_COMMANDS = $CONFIG_COMMANDS
30394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30399 case $ac_config_files in *"
30400 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30403 case $ac_config_headers in *"
30404 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30409 # Files that config.status was made for.
30410 config_files="$ac_config_files"
30411 config_headers="$ac_config_headers"
30412 config_links="$ac_config_links"
30413 config_commands="$ac_config_commands"
30417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30419 \`$as_me' instantiates files from templates according to the
30420 current configuration.
30422 Usage: $0 [OPTION]... [FILE]...
30424 -h, --help print this help, then exit
30425 -V, --version print version number and configuration settings, then exit
30426 -q, --quiet, --silent
30427 do not print progress messages
30428 -d, --debug don't remove temporary files
30429 --recheck update $as_me by reconfiguring in the same conditions
30430 --file=FILE[:TEMPLATE]
30431 instantiate the configuration file FILE
30432 --header=FILE[:TEMPLATE]
30433 instantiate the configuration header FILE
30435 Configuration files:
30438 Configuration headers:
30441 Configuration links:
30444 Configuration commands:
30447 Report bugs to <bug-autoconf@gnu.org>."
30450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30452 PostgreSQL config.status 9.3devel
30453 configured by $0, generated by GNU Autoconf 2.63,
30454 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30456 Copyright (C) 2008 Free Software Foundation, Inc.
30457 This config.status script is free software; the Free Software Foundation
30458 gives unlimited permission to copy, distribute and modify it."
30465 test -n "\$AWK" || AWK=awk
30468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30469 # The default lists apply if the user does not specify any file.
30475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30487 # Handling of the options.
30488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30491 $as_echo "$ac_cs_version"; exit ;;
30492 --debug | --debu | --deb | --de | --d | -d )
30494 --file | --fil | --fi | --f )
30497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30499 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30500 ac_need_defaults=false;;
30501 --header | --heade | --head | --hea )
30504 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30506 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30507 ac_need_defaults=false;;
30509 # Conflict between --help and --header
30510 { $as_echo "$as_me: error: ambiguous option: $1
30511 Try \`$0 --help' for more information." >&2
30512 { (exit 1); exit 1; }; };;
30513 --help | --hel | -h )
30514 $as_echo "$ac_cs_usage"; exit ;;
30515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30519 # This is an error.
30520 -*) { $as_echo "$as_me: error: unrecognized option: $1
30521 Try \`$0 --help' for more information." >&2
30522 { (exit 1); exit 1; }; } ;;
30524 *) ac_config_targets="$ac_config_targets $1"
30525 ac_need_defaults=false ;;
30531 ac_configure_extra_args=
30533 if $ac_cs_silent; then
30535 ac_configure_extra_args="$ac_configure_extra_args --silent"
30539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30540 if \$ac_cs_recheck; then
30541 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30543 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30544 CONFIG_SHELL='$SHELL'
30545 export CONFIG_SHELL
30550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30555 ## Running $as_me. ##
30561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30566 # Handling of arguments.
30567 for ac_config_target in $ac_config_targets
30569 case $ac_config_target in
30570 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30571 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30572 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30573 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30574 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30575 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30576 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30577 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30578 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30579 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30580 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30581 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30582 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
30583 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30585 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30586 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30587 { (exit 1); exit 1; }; };;
30592 # If the user did not use the arguments to specify the items to instantiate,
30593 # then the envvar interface is used. Set only those that are not.
30594 # We use the long form for the default assignment because of an extremely
30595 # bizarre bug on SunOS 4.1.3.
30596 if $ac_need_defaults; then
30597 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30598 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30599 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30600 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30603 # Have a temporary directory for convenience. Make it in the build tree
30604 # simply because there is no reason against having it here, and in addition,
30605 # creating and moving files from /tmp can sometimes cause problems.
30606 # Hook for its removal unless debugging.
30607 # Note that there is a small window in which the directory will not be cleaned:
30608 # after its creation but before its name has been assigned to `$tmp'.
30612 trap 'exit_status=$?
30613 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30615 trap '{ (exit 1); exit 1; }' 1 2 13 15
30617 # Create a (secure) tmp directory for tmp files.
30620 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30621 test -n "$tmp" && test -d "$tmp"
30624 tmp=./conf$$-$RANDOM
30625 (umask 077 && mkdir "$tmp")
30628 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30629 { (exit 1); exit 1; }
30632 # Set up the scripts for CONFIG_FILES section.
30633 # No need to generate them if there are no CONFIG_FILES.
30634 # This happens for instance with `./config.status config.h'.
30635 if test -n "$CONFIG_FILES"; then
30639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30643 ac_cs_awk_cr=$ac_cr
30646 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30651 echo "cat >conf$$subs.awk <<_ACEOF" &&
30652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30654 } >conf$$subs.sh ||
30655 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30656 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30657 { (exit 1); exit 1; }; }
30658 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30660 for ac_last_try in false false false false false :; do
30661 . ./conf$$subs.sh ||
30662 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30663 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30664 { (exit 1); exit 1; }; }
30666 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30667 if test $ac_delim_n = $ac_delim_num; then
30669 elif $ac_last_try; then
30670 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30671 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30672 { (exit 1); exit 1; }; }
30674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30677 rm -f conf$$subs.sh
30679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30680 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30684 s/^/S["/; s/!.*/"]=/
30694 s/\(.\{148\}\).*/\1/
30696 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30708 s/\(.\{148\}\).*/\1/
30710 s/["\\]/\\&/g; s/^/"/; s/$/"/
30714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30719 ' <conf$$subs.awk | sed '
30724 ' >>$CONFIG_STATUS || ac_write_fail=1
30725 rm -f conf$$subs.awk
30726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30728 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30729 for (key in S) S_is_set[key] = 1
30735 nfields = split(line, field, "@")
30737 len = length(field[1])
30738 for (i = 2; i < nfields; i++) {
30740 keylen = length(key)
30741 if (S_is_set[key]) {
30743 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30744 len += length(value) + length(field[++i])
30755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30756 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30757 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30760 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30761 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30762 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30763 { (exit 1); exit 1; }; }
30766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30768 # trailing colons and then remove the whole line if VPATH becomes empty
30769 # (actually we leave an empty line to preserve line numbers).
30770 if test "x$srcdir" = x.; then
30771 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30772 s/:*\$(srcdir):*/:/
30773 s/:*\${srcdir}:*/:/
30775 s/^\([^=]*=[ ]*\):*/\1/
30781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30782 fi # test -n "$CONFIG_FILES"
30784 # Set up the scripts for CONFIG_HEADERS section.
30785 # No need to generate them if there are no CONFIG_HEADERS.
30786 # This happens for instance with `./config.status Makefile'.
30787 if test -n "$CONFIG_HEADERS"; then
30788 cat >"$tmp/defines.awk" <<\_ACAWK ||
30792 # Transform confdefs.h into an awk script `defines.awk', embedded as
30793 # here-document in config.status, that substitutes the proper values into
30794 # config.h.in to produce config.h.
30796 # Create a delimiter string that does not exist in confdefs.h, to ease
30797 # handling of long lines.
30799 for ac_last_try in false false :; do
30800 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30801 if test -z "$ac_t"; then
30803 elif $ac_last_try; then
30804 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30805 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30806 { (exit 1); exit 1; }; }
30808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30812 # For the awk script, D is an array of macro values keyed by name,
30813 # likewise P contains macro parameters if any. Preserve backslash
30814 # newline sequences.
30816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30818 s/.\{148\}/&'"$ac_delim"'/g
30821 s/^[ ]*#[ ]*define[ ][ ]*/ /
30828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30830 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30835 D["\1"]=" \3\\\\\\n"\\/p
30837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30842 s/.\{148\}/&'"$ac_delim"'/g
30847 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30850 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30852 ' <confdefs.h | sed '
30853 s/'"$ac_delim"'/"\\\
30854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 for (key in D) D_is_set[key] = 1
30860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30862 split(line, arg, " ")
30863 if (arg[1] == "#") {
30867 defundef = substr(arg[1], 2)
30870 split(mac1, mac2, "(") #)
30872 prefix = substr(line, 1, index(line, defundef) - 1)
30873 if (D_is_set[macro]) {
30874 # Preserve the white space surrounding the "#".
30875 print prefix "define", macro P[macro] D[macro]
30878 # Replace #undef with comments. This is necessary, for example,
30879 # in the case of _POSIX_SOURCE, which is predefined and required
30880 # on some systems where configure will not decide to define it.
30881 if (defundef == "undef") {
30882 print "/*", prefix defundef, macro, "*/"
30890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30891 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30892 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30893 { (exit 1); exit 1; }; }
30894 fi # test -n "$CONFIG_HEADERS"
30897 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30902 :[FHLC]) ac_mode=$ac_tag; continue;;
30904 case $ac_mode$ac_tag in
30906 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30907 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30908 { (exit 1); exit 1; }; };;
30909 :[FH]-) ac_tag=-:-;;
30910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30927 -) ac_f="$tmp/stdin";;
30928 *) # Look for the file first in the build tree, then in the source tree
30929 # (if the path is not absolute). The absolute path cannot be DOS-style,
30930 # because $ac_f cannot contain `:'.
30934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30936 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30937 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30938 { (exit 1); exit 1; }; };;
30940 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30941 ac_file_inputs="$ac_file_inputs '$ac_f'"
30944 # Let's still pretend it is `configure' which instantiates (i.e., don't
30945 # use $as_me), people would be surprised to read:
30946 # /* config.h. Generated by config.status. */
30947 configure_input='Generated from '`
30948 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30950 if test x"$ac_file" != x-; then
30951 configure_input="$ac_file. $configure_input"
30952 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30953 $as_echo "$as_me: creating $ac_file" >&6;}
30955 # Neutralize special characters interpreted by sed in replacement strings.
30956 case $configure_input in #(
30957 *\&* | *\|* | *\\* )
30958 ac_sed_conf_input=`$as_echo "$configure_input" |
30959 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30960 *) ac_sed_conf_input=$configure_input;;
30964 *:-:* | *:-) cat >"$tmp/stdin" \
30965 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30966 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30967 { (exit 1); exit 1; }; } ;;
30972 ac_dir=`$as_dirname -- "$ac_file" ||
30973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30974 X"$ac_file" : 'X\(//\)[^/]' \| \
30975 X"$ac_file" : 'X\(//\)$' \| \
30976 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30977 $as_echo X"$ac_file" |
30978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30982 /^X\(\/\/\)[^/].*/{
30997 -*) as_dir=./$as_dir;;
30999 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31003 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31004 *) as_qdir=$as_dir;;
31006 as_dirs="'$as_qdir' $as_dirs"
31007 as_dir=`$as_dirname -- "$as_dir" ||
31008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31009 X"$as_dir" : 'X\(//\)[^/]' \| \
31010 X"$as_dir" : 'X\(//\)$' \| \
31011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31012 $as_echo X"$as_dir" |
31013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31017 /^X\(\/\/\)[^/].*/{
31030 test -d "$as_dir" && break
31032 test -z "$as_dirs" || eval "mkdir $as_dirs"
31033 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31034 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31035 { (exit 1); exit 1; }; }; }
31039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31042 # A ".." for each directory in $ac_dir_suffix.
31043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31044 case $ac_top_builddir_sub in
31045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31049 ac_abs_top_builddir=$ac_pwd
31050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31051 # for backward compatibility:
31052 ac_top_builddir=$ac_top_build_prefix
31055 .) # We are building in place.
31057 ac_top_srcdir=$ac_top_builddir_sub
31058 ac_abs_top_srcdir=$ac_pwd ;;
31059 [\\/]* | ?:[\\/]* ) # Absolute name.
31060 ac_srcdir=$srcdir$ac_dir_suffix;
31061 ac_top_srcdir=$srcdir
31062 ac_abs_top_srcdir=$srcdir ;;
31063 *) # Relative name.
31064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31065 ac_top_srcdir=$ac_top_build_prefix$srcdir
31066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31081 ac_MKDIR_P=$MKDIR_P
31083 [\\/$]* | ?:[\\/]* ) ;;
31084 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31089 # If the template does not know about datarootdir, expand it.
31090 # FIXME: This hack should be removed a few years after 2.60.
31091 ac_datarootdir_hack=; ac_datarootdir_seen=
31104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31105 *datarootdir*) ac_datarootdir_seen=yes;;
31106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31107 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31111 ac_datarootdir_hack='
31112 s&@datadir@&$datadir&g
31113 s&@docdir@&$docdir&g
31114 s&@infodir@&$infodir&g
31115 s&@localedir@&$localedir&g
31116 s&@mandir@&$mandir&g
31117 s&\\\${datarootdir}&$datarootdir&g' ;;
31121 # Neutralize VPATH when `$srcdir' = `.'.
31122 # Shell code in configure.ac might set extrasub.
31123 # FIXME: do we really want to maintain this feature?
31124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31125 ac_sed_extra="$ac_vpsub
31128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31131 s|@configure_input@|$ac_sed_conf_input|;t t
31132 s&@top_builddir@&$ac_top_builddir_sub&;t t
31133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31134 s&@srcdir@&$ac_srcdir&;t t
31135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31136 s&@top_srcdir@&$ac_top_srcdir&;t t
31137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31138 s&@builddir@&$ac_builddir&;t t
31139 s&@abs_builddir@&$ac_abs_builddir&;t t
31140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31141 s&@INSTALL@&$ac_INSTALL&;t t
31142 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31143 $ac_datarootdir_hack
31145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31146 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31147 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31148 { (exit 1); exit 1; }; }
31150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31151 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31153 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31154 which seems to be undefined. Please make sure it is defined." >&5
31155 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31156 which seems to be undefined. Please make sure it is defined." >&2;}
31160 -) cat "$tmp/out" && rm -f "$tmp/out";;
31161 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31163 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31164 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31165 { (exit 1); exit 1; }; }
31171 if test x"$ac_file" != x-; then
31173 $as_echo "/* $configure_input */" \
31174 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31175 } >"$tmp/config.h" \
31176 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31177 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31178 { (exit 1); exit 1; }; }
31179 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31180 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31181 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31184 mv "$tmp/config.h" "$ac_file" \
31185 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31186 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31187 { (exit 1); exit 1; }; }
31190 $as_echo "/* $configure_input */" \
31191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31192 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31193 $as_echo "$as_me: error: could not create -" >&2;}
31194 { (exit 1); exit 1; }; }
31202 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31205 # Prefer the file from the source tree if names are identical.
31206 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31207 ac_source=$srcdir/$ac_source
31210 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31211 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31213 if test ! -r "$ac_source"; then
31214 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31215 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31216 { (exit 1); exit 1; }; }
31220 # Try a relative symlink, then a hard link, then a copy.
31222 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31223 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31225 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31226 ln "$ac_source" "$ac_file" 2>/dev/null ||
31227 cp -p "$ac_source" "$ac_file" ||
31228 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31229 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31230 { (exit 1); exit 1; }; }
31233 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31234 $as_echo "$as_me: executing $ac_file commands" >&6;}
31239 case $ac_file$ac_mode in
31240 "check_win32_symlinks":C)
31241 # Links sometimes fail undetected on Mingw -
31242 # so here we detect it and warn the user
31243 for FILE in $CONFIG_LINKS
31245 # test -e works for symlinks in the MinGW console
31246 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31247 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31250 "src/include/pg_config.h":H)
31251 # Update timestamp for pg_config.h (see Makefile.global)
31252 echo >src/include/stamp-h
31254 "src/include/pg_config_ext.h":H)
31255 # Update timestamp for pg_config_ext.h (see Makefile.global)
31256 echo >src/include/stamp-ext-h
31258 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31264 { (exit 0); exit 0; }
31266 chmod +x $CONFIG_STATUS
31267 ac_clean_files=$ac_clean_files_save
31269 test $ac_write_fail = 0 ||
31270 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31271 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31272 { (exit 1); exit 1; }; }
31275 # configure is writing to config.log, and then calls config.status.
31276 # config.status does its own redirection, appending to config.log.
31277 # Unfortunately, on DOS this fails, as config.log is still kept open
31278 # by configure, so config.status won't be able to write to it; its
31279 # output is simply discarded. So we exec the FD to /dev/null,
31280 # effectively closing config.log, so it can be properly (re)opened and
31281 # appended to by config.status. When coming back to configure, we
31282 # need to make the FD available again.
31283 if test "$no_create" != yes; then
31285 ac_config_status_args=
31286 test "$silent" = yes &&
31287 ac_config_status_args="$ac_config_status_args --quiet"
31289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31292 # would make configure fail if this is the last instruction.
31293 $ac_cs_success || { (exit 1); exit 1; }
31295 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31296 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31297 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}