2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2012, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir=.
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
281 CONFIG_SHELL=$as_shell
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
309 as_func_ret_success () {
312 as_func_ret_failure () {
317 if as_func_success; then
321 echo as_func_success failed.
324 if as_func_failure; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure; then
338 echo as_func_ret_failure succeeded.
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) || { (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496 ECHO_C= ECHO_N= ECHO_T=
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
543 test -d ./-p && rmdir ./-p
547 if test -x / >/dev/null 2>&1; then
550 if ls -dL / >/dev/null 2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev/null 6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix=/usr/local
590 ac_config_libobj_dir=.
596 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
643 ac_subst_vars='LTLIBOBJS
675 python_additional_libs
792 program_transform_name
804 enable_option_checking
809 enable_integer_datetimes
839 with_libedit_preferred
850 ac_precious_vars='build_alias
864 # Initialize some variables set by options.
866 ac_init_version=false
867 ac_unrecognized_opts=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name=s,x,x,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971 { (exit 1); exit 1; }; }
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 htmldir=$ac_optarg ;;
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1053 -libdir | --libdir | --libdi | --libd)
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1144 -psdir | --psdir | --psdi | --psd | --ps)
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1172 -site=* | --site=* | --sit=*)
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=no ;;
1233 # Obsolete; use --with-x.
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-integer-datetimes
1488 disable 64-bit integer date/time support
1489 --enable-nls[=LANGUAGES]
1490 enable Native Language Support
1491 --disable-rpath do not embed shared library search path in
1493 --disable-spinlocks do not use spinlocks
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-depend turn on automatic dependency tracking
1499 --enable-cassert enable assertion checks (for debugging)
1500 --disable-thread-safety disable thread-safety in client libraries
1501 --disable-largefile omit support for large files
1502 --disable-float4-byval disable float4 passed by value
1503 --disable-float8-byval disable float8 passed by value
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-template=NAME override operating system template
1509 --with-includes=DIRS look for additional header files in DIRS
1510 --with-libraries=DIRS look for additional libraries in DIRS
1511 --with-libs=DIRS alternative spelling of --with-libraries
1512 --with-pgport=PORTNUM set default port number [5432]
1513 --with-blocksize=BLOCKSIZE
1514 set table block size in kB [8]
1515 --with-segsize=SEGSIZE set table segment size in GB [1]
1516 --with-wal-blocksize=BLOCKSIZE
1517 set WAL block size in kB [8]
1518 --with-wal-segsize=SEGSIZE
1519 set WAL segment size in MB [16]
1520 --with-CC=CMD set compiler (deprecated)
1521 --with-tcl build Tcl modules (PL/Tcl)
1522 --with-tclconfig=DIR tclConfig.sh is in DIR
1523 --with-perl build Perl modules (PL/Perl)
1524 --with-python build Python modules (PL/Python)
1525 --with-gssapi build with GSSAPI support
1526 --with-krb5 build with Kerberos 5 support
1527 --with-krb-srvnam=NAME default service principal name in Kerberos
1529 --with-pam build with PAM support
1530 --with-ldap build with LDAP support
1531 --with-bonjour build with Bonjour support
1532 --with-openssl build with OpenSSL support
1533 --with-selinux build with SELinux support
1534 --without-readline do not use GNU Readline nor BSD Libedit for editing
1535 --with-libedit-preferred
1536 prefer BSD Libedit over GNU Readline
1537 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1538 --with-libxml build with XML support
1539 --with-libxslt use XSLT support when building contrib/xml2
1540 --with-system-tzdata=DIR
1541 use system time zone data in DIR
1542 --without-zlib do not use Zlib
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 LDFLAGS_EX extra linker flags for linking executables only
1555 LDFLAGS_SL extra linker flags for linking shared libraries only
1557 location of DocBook stylesheets
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1592 .) # We are building in place.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1625 PostgreSQL configure 9.3devel
1626 generated by GNU Autoconf 2.63
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1633 Copyright (c) 1996-2012, PostgreSQL Global Development Group
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by PostgreSQL $as_me 9.3devel, which was
1642 generated by GNU Autoconf 2.63. Invocation command line was
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1664 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1667 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1668 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1669 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_must_keep_next=false
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 -* ) ac_must_keep_next=true ;;
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761 eval ac_val=\$$ac_var
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 $as_echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 $as_echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x $ac_old_val`
1940 ac_new_val_w=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted=:
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 for ac_dir in config "$srcdir"/config; do
2015 if test -f "$ac_dir/install-sh"; then
2017 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 elif test -f "$ac_dir/install.sh"; then
2021 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 elif test -f "$ac_dir/shtool"; then
2025 ac_install_sh="$ac_aux_dir/shtool install -c"
2029 if test -z "$ac_aux_dir"; then
2030 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032 { (exit 1); exit 1; }; }
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2045 configure_args=$ac_configure_args
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065 { (exit 1); exit 1; }; }
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070 $as_echo_n "(cached) " >&6
2072 ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078 { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091 { (exit 1); exit 1; }; };;
2094 ac_save_IFS=$IFS; IFS='-'
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110 $as_echo_n "(cached) " >&6
2112 if test "x$host_alias" = x; then
2113 ac_cv_host=$ac_cv_build
2115 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118 { (exit 1); exit 1; }; }
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128 { (exit 1); exit 1; }; };;
2131 ac_save_IFS=$IFS; IFS='-'
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154 withval=$with_template;
2157 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159 { (exit 1); exit 1; }; }
2162 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164 { (exit 1); exit 1; }; }
2169 list) echo; ls "$srcdir/src/template"; exit;;
2170 *) if test -f "$srcdir/src/template/$with_template" ; then
2173 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175 { (exit 1); exit 1; }; }
2184 # --with-template not given
2187 aix*) template=aix ;;
2188 cygwin*) template=cygwin ;;
2189 darwin*) template=darwin ;;
2190 dragonfly*) template=netbsd ;;
2191 freebsd*) template=freebsd ;;
2192 hpux*) template=hpux ;;
2193 irix*) template=irix ;;
2194 linux*|gnu*|k*bsd*-gnu)
2196 mingw*) template=win32 ;;
2197 netbsd*) template=netbsd ;;
2198 openbsd*) template=openbsd ;;
2199 osf*) template=osf ;;
2200 sco*) template=sco ;;
2201 solaris*) template=solaris ;;
2202 sysv5*) template=unixware ;;
2205 if test x"$template" = x"" ; then
2206 { { $as_echo "$as_me:$LINENO: error:
2207 *******************************************************************
2208 PostgreSQL has apparently not been ported to your platform yet.
2209 To try a manual configuration, look into the src/template directory
2210 for a similar platform and use the '--with-template=' option.
2212 Please also contact <pgsql-bugs@postgresql.org> to see about
2213 rectifying this. Include the above 'checking host system type...'
2215 *******************************************************************
2217 $as_echo "$as_me: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this. Include the above 'checking host system type...'
2226 *******************************************************************
2228 { (exit 1); exit 1; }; }
2236 { $as_echo "$as_me:$LINENO: result: $template" >&5
2237 $as_echo "$template" >&6; }
2242 # Initialize default assumption that we do not need separate assembly code
2243 # for TAS (test-and-set). This can be overridden by the template file
2244 # when it's executed.
2251 ## Command line options
2255 # Add non-standard directories to the include path
2260 # Check whether --with-includes was given.
2261 if test "${with_includes+set}" = set; then
2262 withval=$with_includes;
2265 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2266 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2267 { (exit 1); exit 1; }; }
2270 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2271 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2272 { (exit 1); exit 1; }; }
2285 # Add non-standard directories to the library search path
2290 # Check whether --with-libraries was given.
2291 if test "${with_libraries+set}" = set; then
2292 withval=$with_libraries;
2295 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2296 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2297 { (exit 1); exit 1; }; }
2300 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2301 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2302 { (exit 1); exit 1; }; }
2305 LIBRARY_DIRS=$withval
2316 # Check whether --with-libs was given.
2317 if test "${with_libs+set}" = set; then
2321 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2322 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2323 { (exit 1); exit 1; }; }
2326 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2327 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2328 { (exit 1); exit 1; }; }
2331 LIBRARY_DIRS=$withval
2341 # 64-bit integer date/time storage: enabled by default.
2343 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2344 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2347 # Check whether --enable-integer-datetimes was given.
2348 if test "${enable_integer_datetimes+set}" = set; then
2349 enableval=$enable_integer_datetimes;
2353 cat >>confdefs.h <<\_ACEOF
2354 #define USE_INTEGER_DATETIMES 1
2362 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2363 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2364 { (exit 1); exit 1; }; }
2369 enable_integer_datetimes=yes
2371 cat >>confdefs.h <<\_ACEOF
2372 #define USE_INTEGER_DATETIMES 1
2378 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2379 $as_echo "$enable_integer_datetimes" >&6; }
2385 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2386 $as_echo_n "checking whether NLS is wanted... " >&6; }
2389 # Check whether --enable-nls was given.
2390 if test "${enable_nls+set}" = set; then
2391 enableval=$enable_nls;
2401 WANTED_LANGUAGES=$enableval
2411 if test "$enable_nls" = yes; then
2413 cat >>confdefs.h <<\_ACEOF
2414 #define ENABLE_NLS 1
2419 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2420 $as_echo "$enable_nls" >&6; }
2425 # Default port number (--with-pgport), default 5432
2427 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2428 $as_echo_n "checking for default port number... " >&6; }
2432 # Check whether --with-pgport was given.
2433 if test "${with_pgport+set}" = set; then
2434 withval=$with_pgport;
2437 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2438 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2439 { (exit 1); exit 1; }; }
2442 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2443 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2444 { (exit 1); exit 1; }; }
2447 default_port=$withval
2456 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2457 $as_echo "$default_port" >&6; }
2458 # Need both of these because some places want an integer and some a string
2460 cat >>confdefs.h <<_ACEOF
2461 #define DEF_PGPORT ${default_port}
2465 cat >>confdefs.h <<_ACEOF
2466 #define DEF_PGPORT_STR "${default_port}"
2472 # '-rpath'-like feature can be disabled
2476 # Check whether --enable-rpath was given.
2477 if test "${enable_rpath+set}" = set; then
2478 enableval=$enable_rpath;
2487 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2488 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2489 { (exit 1); exit 1; }; }
2506 # Check whether --enable-spinlocks was given.
2507 if test "${enable_spinlocks+set}" = set; then
2508 enableval=$enable_spinlocks;
2517 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2518 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2519 { (exit 1); exit 1; }; }
2524 enable_spinlocks=yes
2531 # --enable-debug adds -g to compiler flags
2535 # Check whether --enable-debug was given.
2536 if test "${enable_debug+set}" = set; then
2537 enableval=$enable_debug;
2546 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2547 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2548 { (exit 1); exit 1; }; }
2561 # --enable-profiling enables gcc profiling
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567 enableval=$enable_profiling;
2576 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2577 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2578 { (exit 1); exit 1; }; }
2590 # --enable-coverage enables generation of code coverage metrics with gcov
2594 # Check whether --enable-coverage was given.
2595 if test "${enable_coverage+set}" = set; then
2596 enableval=$enable_coverage;
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_GCOV+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$GCOV"; then
2609 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_GCOV="$ac_prog"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 GCOV=$ac_cv_prog_GCOV
2629 if test -n "$GCOV"; then
2630 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2631 $as_echo "$GCOV" >&6; }
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2638 test -n "$GCOV" && break
2641 if test -z "$GCOV"; then
2642 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2643 $as_echo "$as_me: error: gcov not found" >&2;}
2644 { (exit 1); exit 1; }; }
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_LCOV+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$LCOV"; then
2656 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_LCOV="$ac_prog"
2666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 LCOV=$ac_cv_prog_LCOV
2676 if test -n "$LCOV"; then
2677 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2678 $as_echo "$LCOV" >&6; }
2680 { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$LCOV" && break
2688 if test -z "$LCOV"; then
2689 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2690 $as_echo "$as_me: error: lcov not found" >&2;}
2691 { (exit 1); exit 1; }; }
2693 for ac_prog in genhtml
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_GENHTML+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test -n "$GENHTML"; then
2703 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_GENHTML="$ac_prog"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 GENHTML=$ac_cv_prog_GENHTML
2723 if test -n "$GENHTML"; then
2724 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2725 $as_echo "$GENHTML" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$GENHTML" && break
2735 if test -z "$GENHTML"; then
2736 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2737 $as_echo "$as_me: error: genhtml not found" >&2;}
2738 { (exit 1); exit 1; }; }
2745 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2746 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2747 { (exit 1); exit 1; }; }
2764 # Check whether --enable-dtrace was given.
2765 if test "${enable_dtrace+set}" = set; then
2766 enableval=$enable_dtrace;
2769 for ac_prog in dtrace
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_DTRACE+set}" = set; then
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$DTRACE"; then
2779 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_DTRACE="$ac_prog"
2789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 DTRACE=$ac_cv_prog_DTRACE
2799 if test -n "$DTRACE"; then
2800 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2801 $as_echo "$DTRACE" >&6; }
2803 { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2808 test -n "$DTRACE" && break
2811 if test -z "$DTRACE"; then
2812 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2813 $as_echo "$as_me: error: dtrace not found" >&2;}
2814 { (exit 1); exit 1; }; }
2822 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2823 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2824 { (exit 1); exit 1; }; }
2839 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2840 $as_echo_n "checking for block size... " >&6; }
2844 # Check whether --with-blocksize was given.
2845 if test "${with_blocksize+set}" = set; then
2846 withval=$with_blocksize;
2849 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2850 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2851 { (exit 1); exit 1; }; }
2854 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2855 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2856 { (exit 1); exit 1; }; }
2868 case ${blocksize} in
2875 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2876 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2877 { (exit 1); exit 1; }; }
2879 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2880 $as_echo "${blocksize}kB" >&6; }
2883 cat >>confdefs.h <<_ACEOF
2884 #define BLCKSZ ${BLCKSZ}
2889 # Relation segment size
2891 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2892 $as_echo_n "checking for segment size... " >&6; }
2896 # Check whether --with-segsize was given.
2897 if test "${with_segsize+set}" = set; then
2898 withval=$with_segsize;
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2903 { (exit 1); exit 1; }; }
2906 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2908 { (exit 1); exit 1; }; }
2920 # this expression is set up to avoid unnecessary integer overflow
2921 # blocksize is already guaranteed to be a factor of 1024
2922 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2923 test $? -eq 0 || exit 1
2924 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2925 $as_echo "${segsize}GB" >&6; }
2928 cat >>confdefs.h <<_ACEOF
2929 #define RELSEG_SIZE ${RELSEG_SIZE}
2936 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2937 $as_echo_n "checking for WAL block size... " >&6; }
2941 # Check whether --with-wal-blocksize was given.
2942 if test "${with_wal_blocksize+set}" = set; then
2943 withval=$with_wal_blocksize;
2946 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2948 { (exit 1); exit 1; }; }
2951 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2953 { (exit 1); exit 1; }; }
2956 wal_blocksize=$withval
2965 case ${wal_blocksize} in
2966 1) XLOG_BLCKSZ=1024;;
2967 2) XLOG_BLCKSZ=2048;;
2968 4) XLOG_BLCKSZ=4096;;
2969 8) XLOG_BLCKSZ=8192;;
2970 16) XLOG_BLCKSZ=16384;;
2971 32) XLOG_BLCKSZ=32768;;
2972 64) XLOG_BLCKSZ=65536;;
2973 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2974 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2975 { (exit 1); exit 1; }; }
2977 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2978 $as_echo "${wal_blocksize}kB" >&6; }
2981 cat >>confdefs.h <<_ACEOF
2982 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2989 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2990 $as_echo_n "checking for WAL segment size... " >&6; }
2994 # Check whether --with-wal-segsize was given.
2995 if test "${with_wal_segsize+set}" = set; then
2996 withval=$with_wal_segsize;
2999 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3001 { (exit 1); exit 1; }; }
3004 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3005 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3006 { (exit 1); exit 1; }; }
3009 wal_segsize=$withval
3018 case ${wal_segsize} in
3026 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3027 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3028 { (exit 1); exit 1; }; }
3030 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3031 $as_echo "${wal_segsize}MB" >&6; }
3034 cat >>confdefs.h <<_ACEOF
3035 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3043 # For historical reasons you can also use --with-CC to specify the C compiler
3044 # to use, although the standard way to do this is to set the CC environment
3049 # Check whether --with-CC was given.
3050 if test "${with_CC+set}" = set; then
3054 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3055 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3056 { (exit 1); exit 1; }; }
3059 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3060 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3061 { (exit 1); exit 1; }; }
3073 aix) pgac_cc_list="gcc xlc";;
3074 irix) pgac_cc_list="cc";; # no gcc
3075 *) pgac_cc_list="gcc cc";;
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $pgac_cc_list
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3118 { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$CC" && break
3126 if test -z "$CC"; then
3128 for ac_prog in $pgac_cc_list
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$ac_ct_CC" && break
3170 if test "x$ac_ct_CC" = x; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3196 { (ac_try="$ac_compiler --version >&5"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compiler --version >&5") 2>&5
3205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214 (eval "$ac_compiler -v >&5") 2>&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_compiler -V >&5") 2>&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258 for ac_file in $ac_files
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267 if { (ac_try="$ac_link_default"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274 (eval "$ac_link_default") 2>&5
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3283 for ac_file in $ac_files ''
3285 test -f "$ac_file" || continue
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290 # We found the default executable, but exeext='' is most
3294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298 # We set ac_cv_exeext here because the later test for it is not
3299 # safe: cross compilers may not add the suffix if given an `-o'
3300 # argument, so we may need to know it at that point already.
3301 # Even if this section looks crufty: it has the advantage of
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326 { (exit 77); exit 77; }; }; }
3329 ac_exeext=$ac_cv_exeext
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338 if { ac_try='./$ac_file'
3339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_try") 2>&5
3347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3351 if test "$cross_compiling" = maybe; then
3354 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362 { (exit 1); exit 1; }; }; }
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run. If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387 (eval "$ac_link") 2>&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }; }
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424 $as_echo_n "(cached) " >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449 (eval "$ac_compile") 2>&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; then
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }; }
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483 $as_echo_n "(cached) " >&6
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } && {
3518 test -z "$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 } && test -s conftest.$ac_objext; then
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545 $as_echo_n "(cached) " >&6
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613 (eval "$ac_compile") 2>conftest.er1
3615 grep -v '^ *+' conftest.er1 >conftest.err
3617 cat conftest.err >&5
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } && {
3620 test -z "$ac_c_werror_flag" ||
3621 test ! -s conftest.err
3622 } && test -s conftest.$ac_objext; then
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3691 if test "$GCC" = yes; then
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3702 ac_cv_prog_cc_c89=no
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3728 s = g (p, va_arg (v,int));
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3734 function prototypes and stuff, but not '\xHH' hex character constants.
3735 These don't provoke an error unfortunately, instead are silently treated
3736 as 'x'. The following induces an error, until -std is added to get
3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3738 array size at least. It's necessary to write '\x00'==0 to get something
3739 that's true only with -std. */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743 inside strings and character constants. */
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 CC="$ac_save_CC $ac_arg"
3765 rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } && {
3780 test -z "$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 } && test -s conftest.$ac_objext; then
3783 ac_cv_prog_cc_c89=$ac_arg
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 rm -f conftest.$ac_ext
3799 case "x$ac_cv_prog_cc_c89" in
3801 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3804 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own. We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3824 cat >conftest.$ac_ext <<_ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3834 #ifndef __INTEL_COMPILER
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 . "$srcdir/src/template/$template" || exit
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else: If the template file set something, that is used.
3928 # else: If coverage was enabled, don't set anything.
3929 # else: If the compiler is GCC, then we use -O2.
3930 # else: If the compiler is something else, then we use -O, unless debugging.
3932 if test "$ac_env_CFLAGS_set" = set; then
3933 CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935 : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937 : # no optimization by default
3938 elif test "$GCC" = yes; then
3941 # if the user selected debug mode, don't use -O
3942 if test "$enable_debug" != yes; then
3947 # Some versions of GCC support some additional useful warning flags.
3948 # Check whether they are supported, and add them to CFLAGS if so.
3949 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3950 # but has its own. Also check other compiler-specific flags here.
3952 if test "$GCC" = yes -a "$ICC" = no; then
3953 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3954 # These work in some but not all gcc versions
3955 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3956 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3957 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3960 pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="$pgac_save_CFLAGS"
4009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4010 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4011 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4012 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4015 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4016 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4017 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4018 $as_echo_n "(cached) " >&6
4020 pgac_save_CFLAGS=$CFLAGS
4021 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } && {
4054 test -z "$ac_c_werror_flag" ||
4055 test ! -s conftest.err
4056 } && test -s conftest.$ac_objext; then
4057 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4059 $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 pgac_cv_prog_cc_cflags__Wendif_labels=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="$pgac_save_CFLAGS"
4069 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4070 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4071 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4072 CFLAGS="$CFLAGS -Wendif-labels"
4075 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4076 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4078 $as_echo_n "(cached) " >&6
4080 pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106 $as_echo "$ac_try_echo") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4117 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="$pgac_save_CFLAGS"
4129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4132 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4135 # This was included in -Wall/-Wformat in older GCC versions
4136 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4137 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4138 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4139 $as_echo_n "(cached) " >&6
4141 pgac_save_CFLAGS=$CFLAGS
4142 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167 $as_echo "$ac_try_echo") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4170 grep -v '^ *+' conftest.er1 >conftest.err
4172 cat conftest.err >&5
4173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 pgac_cv_prog_cc_cflags__Wformat_security=yes
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 pgac_cv_prog_cc_cflags__Wformat_security=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="$pgac_save_CFLAGS"
4190 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4191 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4192 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4193 CFLAGS="$CFLAGS -Wformat-security"
4196 # Disable strict-aliasing rules; needed for gcc 3.3+
4197 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4198 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4199 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4202 pgac_save_CFLAGS=$CFLAGS
4203 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4204 ac_save_c_werror_flag=$ac_c_werror_flag
4205 ac_c_werror_flag=yes
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4228 $as_echo "$ac_try_echo") >&5
4229 (eval "$ac_compile") 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest.$ac_objext; then
4239 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4241 $as_echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="$pgac_save_CFLAGS"
4251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4252 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4253 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4254 CFLAGS="$CFLAGS -fno-strict-aliasing"
4257 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4258 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4259 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4260 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4263 pgac_save_CFLAGS=$CFLAGS
4264 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4300 pgac_cv_prog_cc_cflags__fwrapv=yes
4302 $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 pgac_cv_prog_cc_cflags__fwrapv=no
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310 CFLAGS="$pgac_save_CFLAGS"
4312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4313 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4314 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4315 CFLAGS="$CFLAGS -fwrapv"
4318 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4319 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4320 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4321 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4322 $as_echo_n "(cached) " >&6
4324 pgac_save_CFLAGS=$CFLAGS
4325 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4326 ac_save_c_werror_flag=$ac_c_werror_flag
4327 ac_c_werror_flag=yes
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350 $as_echo "$ac_try_echo") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4363 $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_c_werror_flag=$ac_save_c_werror_flag
4371 CFLAGS="$pgac_save_CFLAGS"
4373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4374 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4375 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4376 CFLAGS="$CFLAGS -fexcess-precision=standard"
4379 elif test "$ICC" = yes; then
4380 # Intel's compiler has a bug/misoptimization in checking for
4381 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4382 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4383 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4384 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4385 $as_echo_n "(cached) " >&6
4387 pgac_save_CFLAGS=$CFLAGS
4388 CFLAGS="$pgac_save_CFLAGS -mp1"
4389 ac_save_c_werror_flag=$ac_c_werror_flag
4390 ac_c_werror_flag=yes
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4406 rm -f conftest.$ac_objext
4407 if { (ac_try="$ac_compile"
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414 (eval "$ac_compile") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest.$ac_objext; then
4424 pgac_cv_prog_cc_cflags__mp1=yes
4426 $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 pgac_cv_prog_cc_cflags__mp1=no
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4434 CFLAGS="$pgac_save_CFLAGS"
4436 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4437 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4438 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4439 CFLAGS="$CFLAGS -mp1"
4442 # Make sure strict aliasing is off (though this is said to be the default)
4443 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4444 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4445 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4446 $as_echo_n "(cached) " >&6
4448 pgac_save_CFLAGS=$CFLAGS
4449 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4450 ac_save_c_werror_flag=$ac_c_werror_flag
4451 ac_c_werror_flag=yes
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest.$ac_objext; then
4485 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4487 $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_c_werror_flag=$ac_save_c_werror_flag
4495 CFLAGS="$pgac_save_CFLAGS"
4497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4498 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4499 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4500 CFLAGS="$CFLAGS -fno-strict-aliasing"
4503 elif test "$PORTNAME" = "aix"; then
4504 # AIX's xlc has to have strict aliasing turned off too
4505 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4506 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4507 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4508 $as_echo_n "(cached) " >&6
4510 pgac_save_CFLAGS=$CFLAGS
4511 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4512 ac_save_c_werror_flag=$ac_c_werror_flag
4513 ac_c_werror_flag=yes
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && {
4544 test -z "$ac_c_werror_flag" ||
4545 test ! -s conftest.err
4546 } && test -s conftest.$ac_objext; then
4547 pgac_cv_prog_cc_cflags__qnoansialias=yes
4549 $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 pgac_cv_prog_cc_cflags__qnoansialias=no
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_c_werror_flag=$ac_save_c_werror_flag
4557 CFLAGS="$pgac_save_CFLAGS"
4559 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4560 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4561 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4562 CFLAGS="$CFLAGS -qnoansialias"
4565 elif test "$PORTNAME" = "hpux"; then
4566 # On some versions of HP-UX, libm functions do not set errno by default.
4567 # Fix that by using +Olibmerrno if the compiler recognizes it.
4568 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4569 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4570 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4571 $as_echo_n "(cached) " >&6
4573 pgac_save_CFLAGS=$CFLAGS
4574 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4575 ac_save_c_werror_flag=$ac_c_werror_flag
4576 ac_c_werror_flag=yes
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4612 $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="$pgac_save_CFLAGS"
4622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4623 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4624 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4625 CFLAGS="$CFLAGS +Olibmerrno"
4630 # supply -g if --enable-debug
4631 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4635 # enable code coverage if --enable-coverage
4636 if test "$enable_coverage" = yes; then
4637 if test "$GCC" = yes; then
4638 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4640 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4641 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4642 { (exit 1); exit 1; }; }
4646 # enable profiling if --enable-profiling
4647 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4648 if test "$GCC" = yes; then
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROFILE_PID_DIR 1
4654 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4656 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4657 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4658 { (exit 1); exit 1; }; }
4662 # We already have this in Makefile.win32, but configure needs it too
4663 if test "$PORTNAME" = "win32"; then
4664 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4667 # Check if the compiler still works with the template settings
4668 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4669 $as_echo_n "checking whether the C compiler still works... " >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693 (eval "$ac_link") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest$ac_exeext && {
4703 test "$cross_compiling" = yes ||
4704 $as_test_x conftest$ac_exeext
4706 { $as_echo "$as_me:$LINENO: result: yes" >&5
4707 $as_echo "yes" >&6; }
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 { $as_echo "$as_me:$LINENO: result: no" >&5
4713 $as_echo "no" >&6; }
4714 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4715 $as_echo "$as_me: error: cannot proceed" >&2;}
4716 { (exit 1); exit 1; }; }
4719 rm -rf conftest.dSYM
4720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4721 conftest$ac_exeext conftest.$ac_ext
4723 # Defend against gcc -ffast-math
4724 if test "$GCC" = yes; then
4725 cat >conftest.$ac_ext <<_ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4735 #ifdef __FAST_MATH__
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compile") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
4762 $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4766 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4767 { (exit 1); exit 1; }; }
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4784 if test -z "$CPP"; then
4785 if test "${ac_cv_prog_CPP+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4788 # Double quotes because CPP needs to be expanded
4789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4792 for ac_c_preproc_warn_flag in '' yes
4794 # Use a header file that comes with gcc, so configuring glibc
4795 # with a fresh cross-compiler works.
4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797 # <limits.h> exists even on freestanding compilers.
4798 # On the NeXT, cc -E runs the code through the compiler's parser,
4799 # not just through cpp. "Syntax error" is here to catch this case.
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4807 # include <limits.h>
4809 # include <assert.h>
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4819 $as_echo "$ac_try_echo") >&5
4820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822 grep -v '^ *+' conftest.er1 >conftest.err
4824 cat conftest.err >&5
4825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } >/dev/null && {
4827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4832 $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 # Broken: fails on valid input.
4839 rm -f conftest.err conftest.$ac_ext
4841 # OK, works on sane cases. Now check whether nonexistent headers
4842 # can be detected and how.
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #include <ac_nonexistent.h>
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } >/dev/null && {
4865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4868 # Broken: success on invalid input.
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 # Passes both tests.
4879 rm -f conftest.err conftest.$ac_ext
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then
4896 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4899 for ac_c_preproc_warn_flag in '' yes
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4914 # include <limits.h>
4916 # include <assert.h>
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } >/dev/null && {
4934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 # Broken: fails on valid input.
4946 rm -f conftest.err conftest.$ac_ext
4948 # OK, works on sane cases. Now check whether nonexistent headers
4949 # can be detected and how.
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <ac_nonexistent.h>
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4975 # Broken: success on invalid input.
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 # Passes both tests.
4986 rm -f conftest.err conftest.$ac_ext
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000 { (exit 1); exit 1; }; }; }
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 # Set up TAS assembly code if needed; the template file has now had its
5014 # chance to request this.
5016 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5019 if test "$need_tas" = yes ; then
5028 # Automatic dependency tracking
5032 # Check whether --enable-depend was given.
5033 if test "${enable_depend+set}" = set; then
5034 enableval=$enable_depend;
5043 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5044 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5045 { (exit 1); exit 1; }; }
5059 # Enable assert checks
5063 # Check whether --enable-cassert was given.
5064 if test "${enable_cassert+set}" = set; then
5065 enableval=$enable_cassert;
5069 cat >>confdefs.h <<\_ACEOF
5070 #define USE_ASSERT_CHECKING 1
5078 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5079 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5080 { (exit 1); exit 1; }; }
5093 # Include directories
5096 IFS="${IFS}${PATH_SEPARATOR}"
5097 # SRCH_INC comes from the template file
5098 for dir in $with_includes $SRCH_INC; do
5099 if test -d "$dir"; then
5100 INCLUDES="$INCLUDES -I$dir"
5102 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5103 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5111 # Library directories
5114 IFS="${IFS}${PATH_SEPARATOR}"
5115 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5116 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5117 if test -d "$dir"; then
5118 LIBDIRS="$LIBDIRS -L$dir"
5120 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5121 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5127 # Enable thread-safe client libraries
5129 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5130 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5133 # Check whether --enable-thread-safety was given.
5134 if test "${enable_thread_safety+set}" = set; then
5135 enableval=$enable_thread_safety;
5144 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5145 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5146 { (exit 1); exit 1; }; }
5151 enable_thread_safety=yes
5156 if test "$enable_thread_safety" = yes; then
5158 cat >>confdefs.h <<\_ACEOF
5159 #define ENABLE_THREAD_SAFETY 1
5163 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5164 $as_echo "$enable_thread_safety" >&6; }
5168 # Optionally build Tcl modules (PL/Tcl)
5170 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5171 $as_echo_n "checking whether to build with Tcl... " >&6; }
5175 # Check whether --with-tcl was given.
5176 if test "${with_tcl+set}" = set; then
5186 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5187 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5188 { (exit 1); exit 1; }; }
5198 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5199 $as_echo "$with_tcl" >&6; }
5202 # We see if the path to the Tcl/Tk configuration scripts is specified.
5203 # This will override the use of tclsh to find the paths to search.
5208 # Check whether --with-tclconfig was given.
5209 if test "${with_tclconfig+set}" = set; then
5210 withval=$with_tclconfig;
5213 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5214 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5215 { (exit 1); exit 1; }; }
5218 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5219 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5220 { (exit 1); exit 1; }; }
5232 # Optionally build Perl modules (PL/Perl)
5234 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5235 $as_echo_n "checking whether to build Perl modules... " >&6; }
5239 # Check whether --with-perl was given.
5240 if test "${with_perl+set}" = set; then
5250 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5251 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5252 { (exit 1); exit 1; }; }
5262 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5263 $as_echo "$with_perl" >&6; }
5267 # Optionally build Python modules (PL/Python)
5269 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5270 $as_echo_n "checking whether to build Python modules... " >&6; }
5274 # Check whether --with-python was given.
5275 if test "${with_python+set}" = set; then
5276 withval=$with_python;
5285 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5286 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5287 { (exit 1); exit 1; }; }
5297 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5298 $as_echo "$with_python" >&6; }
5304 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5305 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5309 # Check whether --with-gssapi was given.
5310 if test "${with_gssapi+set}" = set; then
5311 withval=$with_gssapi;
5316 cat >>confdefs.h <<\_ACEOF
5317 #define ENABLE_GSS 1
5320 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5327 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5328 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5329 { (exit 1); exit 1; }; }
5339 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5340 $as_echo "$with_gssapi" >&6; }
5345 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5346 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5350 # Check whether --with-krb5 was given.
5351 if test "${with_krb5+set}" = set; then
5357 cat >>confdefs.h <<\_ACEOF
5361 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5368 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5369 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5370 { (exit 1); exit 1; }; }
5380 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5381 $as_echo "$with_krb5" >&6; }
5388 # Kerberos configuration parameters
5393 # Check whether --with-krb-srvnam was given.
5394 if test "${with_krb_srvnam+set}" = set; then
5395 withval=$with_krb_srvnam;
5398 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5399 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5400 { (exit 1); exit 1; }; }
5403 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5404 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5405 { (exit 1); exit 1; }; }
5413 with_krb_srvnam="postgres"
5418 cat >>confdefs.h <<_ACEOF
5419 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5427 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5428 $as_echo_n "checking whether to build with PAM support... " >&6; }
5432 # Check whether --with-pam was given.
5433 if test "${with_pam+set}" = set; then
5438 cat >>confdefs.h <<\_ACEOF
5447 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5449 { (exit 1); exit 1; }; }
5459 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5460 $as_echo "$with_pam" >&6; }
5466 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5467 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5471 # Check whether --with-ldap was given.
5472 if test "${with_ldap+set}" = set; then
5477 cat >>confdefs.h <<\_ACEOF
5486 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5487 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5488 { (exit 1); exit 1; }; }
5498 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5499 $as_echo "$with_ldap" >&6; }
5505 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5506 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5510 # Check whether --with-bonjour was given.
5511 if test "${with_bonjour+set}" = set; then
5512 withval=$with_bonjour;
5516 cat >>confdefs.h <<\_ACEOF
5517 #define USE_BONJOUR 1
5525 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5526 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5527 { (exit 1); exit 1; }; }
5537 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5538 $as_echo "$with_bonjour" >&6; }
5544 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5545 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5549 # Check whether --with-openssl was given.
5550 if test "${with_openssl+set}" = set; then
5551 withval=$with_openssl;
5555 cat >>confdefs.h <<\_ACEOF
5564 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5565 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5566 { (exit 1); exit 1; }; }
5576 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5577 $as_echo "$with_openssl" >&6; }
5583 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5584 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5588 # Check whether --with-selinux was given.
5589 if test "${with_selinux+set}" = set; then
5590 withval=$with_selinux;
5599 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5601 { (exit 1); exit 1; }; }
5612 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5613 $as_echo "$with_selinux" >&6; }
5621 # Check whether --with-readline was given.
5622 if test "${with_readline+set}" = set; then
5623 withval=$with_readline;
5632 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5634 { (exit 1); exit 1; }; }
5644 # readline on MinGW has problems with backslashes in psql and other bugs.
5645 # This is particularly a problem with non-US code pages.
5646 # Therefore disable its use until we understand the cause. 2004-07-20
5647 if test "$PORTNAME" = "win32"; then
5648 if test "$with_readline" = yes; then
5649 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5650 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5662 # Check whether --with-libedit-preferred was given.
5663 if test "${with_libedit_preferred+set}" = set; then
5664 withval=$with_libedit_preferred;
5673 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5674 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5675 { (exit 1); exit 1; }; }
5680 with_libedit_preferred=no
5693 # Check whether --with-ossp-uuid was given.
5694 if test "${with_ossp_uuid+set}" = set; then
5695 withval=$with_ossp_uuid;
5704 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5705 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5706 { (exit 1); exit 1; }; }
5725 # Check whether --with-libxml was given.
5726 if test "${with_libxml+set}" = set; then
5727 withval=$with_libxml;
5731 cat >>confdefs.h <<\_ACEOF
5732 #define USE_LIBXML 1
5740 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5741 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5742 { (exit 1); exit 1; }; }
5753 if test "$with_libxml" = yes ; then
5754 for ac_prog in xml2-config
5756 # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5761 $as_echo_n "(cached) " >&6
5763 if test -n "$XML2_CONFIG"; then
5764 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_XML2_CONFIG="$ac_prog"
5774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5784 if test -n "$XML2_CONFIG"; then
5785 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5786 $as_echo "$XML2_CONFIG" >&6; }
5788 { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$XML2_CONFIG" && break
5796 if test -n "$XML2_CONFIG"; then
5797 for pgac_option in `$XML2_CONFIG --cflags`; do
5798 case $pgac_option in
5799 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5802 for pgac_option in `$XML2_CONFIG --libs`; do
5803 case $pgac_option in
5804 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5818 # Check whether --with-libxslt was given.
5819 if test "${with_libxslt+set}" = set; then
5820 withval=$with_libxslt;
5824 cat >>confdefs.h <<\_ACEOF
5825 #define USE_LIBXSLT 1
5833 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5835 { (exit 1); exit 1; }; }
5855 # Check whether --with-system-tzdata was given.
5856 if test "${with_system_tzdata+set}" = set; then
5857 withval=$with_system_tzdata;
5860 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5861 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5862 { (exit 1); exit 1; }; }
5865 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5866 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5867 { (exit 1); exit 1; }; }
5885 # Check whether --with-zlib was given.
5886 if test "${with_zlib+set}" = set; then
5896 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5897 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5898 { (exit 1); exit 1; }; }
5914 # Assume system is ELF if it predefines __ELF__ as 1,
5915 # otherwise believe host_os based default.
5917 freebsd1*|freebsd2*) elf=no;;
5918 freebsd3*|freebsd4*) elf=yes;;
5922 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925 $as_echo_n "(cached) " >&6
5927 if test -z "$GREP"; then
5928 ac_path_GREP_found=false
5929 # Loop through the user's path and test for each of PROGNAME-LIST
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5934 test -z "$as_dir" && as_dir=.
5935 for ac_prog in grep ggrep; do
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5939 # Check for GNU ac_path_GREP and select it if it is found.
5940 # Check for GNU $ac_path_GREP
5941 case `"$ac_path_GREP" --version 2>&1` in
5943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5946 $as_echo_n 0123456789 >"conftest.in"
5949 cat "conftest.in" "conftest.in" >"conftest.tmp"
5950 mv "conftest.tmp" "conftest.in"
5951 cp "conftest.in" "conftest.nl"
5952 $as_echo 'GREP' >> "conftest.nl"
5953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955 ac_count=`expr $ac_count + 1`
5956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5957 # Best one so far, save it but keep looking for a better one
5958 ac_cv_path_GREP="$ac_path_GREP"
5959 ac_path_GREP_max=$ac_count
5961 # 10*(2^10) chars as input seems more than enough
5962 test $ac_count -gt 10 && break
5964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5967 $ac_path_GREP_found && break 3
5972 if test -z "$ac_cv_path_GREP"; then
5973 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5974 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5975 { (exit 1); exit 1; }; }
5978 ac_cv_path_GREP=$GREP
5982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5983 $as_echo "$ac_cv_path_GREP" >&6; }
5984 GREP="$ac_cv_path_GREP"
5987 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5988 $as_echo_n "checking for egrep... " >&6; }
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5993 then ac_cv_path_EGREP="$GREP -E"
5995 if test -z "$EGREP"; then
5996 ac_path_EGREP_found=false
5997 # Loop through the user's path and test for each of PROGNAME-LIST
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6002 test -z "$as_dir" && as_dir=.
6003 for ac_prog in egrep; do
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6007 # Check for GNU ac_path_EGREP and select it if it is found.
6008 # Check for GNU $ac_path_EGREP
6009 case `"$ac_path_EGREP" --version 2>&1` in
6011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6014 $as_echo_n 0123456789 >"conftest.in"
6017 cat "conftest.in" "conftest.in" >"conftest.tmp"
6018 mv "conftest.tmp" "conftest.in"
6019 cp "conftest.in" "conftest.nl"
6020 $as_echo 'EGREP' >> "conftest.nl"
6021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6023 ac_count=`expr $ac_count + 1`
6024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6025 # Best one so far, save it but keep looking for a better one
6026 ac_cv_path_EGREP="$ac_path_EGREP"
6027 ac_path_EGREP_max=$ac_count
6029 # 10*(2^10) chars as input seems more than enough
6030 test $ac_count -gt 10 && break
6032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6035 $ac_path_EGREP_found && break 3
6040 if test -z "$ac_cv_path_EGREP"; then
6041 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6042 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6043 { (exit 1); exit 1; }; }
6046 ac_cv_path_EGREP=$EGREP
6051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053 EGREP="$ac_cv_path_EGREP"
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "yes" >/dev/null 2>&1; then
6071 if test "X$elf" = "Xyes" ; then
6085 CPPFLAGS="$CPPFLAGS $INCLUDES"
6086 LDFLAGS="$LDFLAGS $LIBDIRS"
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6100 if test "$GCC" = yes; then
6101 # Check if gcc -print-prog-name=ld gives a path.
6102 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 $as_echo_n "checking for ld used by GCC... " >&6; }
6106 # gcc leaves a trailing carriage return which upsets mingw
6107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6112 # Accept absolute paths.
6113 [\\/]* | [A-Za-z]:[\\/]*)
6114 re_direlt='/[^/][^/]*/\.\./'
6115 # Canonicalize the path of ld
6116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120 test -z "$LD" && LD="$ac_prog"
6123 # If it fails, then pretend we aren't using GCC.
6127 # If it is relative, then search for the first ld in PATH.
6131 elif test "$with_gnu_ld" = yes; then
6132 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 $as_echo_n "checking for GNU ld... " >&6; }
6135 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 $as_echo_n "checking for non-GNU ld... " >&6; }
6138 if test "${ac_cv_path_LD+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6141 if test -z "$LD"; then
6142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143 for ac_dir in $PATH; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146 ac_cv_path_LD="$ac_dir/$ac_prog"
6147 # Check to see if the program is GNU ld. I'd rather use --version,
6148 # but apparently some GNU ld's only accept -v.
6149 # Break only if it was the GNU/non-GNU ld that we prefer.
6150 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6151 test "$with_gnu_ld" != no && break
6153 test "$with_gnu_ld" != yes && break
6159 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6164 if test -n "$LD"; then
6165 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6166 $as_echo "$LD" >&6; }
6168 { $as_echo "$as_me:$LINENO: result: no" >&5
6169 $as_echo "no" >&6; }
6171 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173 { (exit 1); exit 1; }; }
6174 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6181 ac_cv_prog_gnu_ld=yes
6183 ac_cv_prog_gnu_ld=no
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6187 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6188 with_gnu_ld=$ac_cv_prog_gnu_ld
6193 case $host_os in sysv5*)
6194 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6195 $as_echo_n "checking whether ld -R works... " >&6; }
6196 if test "${pgac_cv_prog_ld_R+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6200 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224 (eval "$ac_link") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && {
6231 test -z "$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6233 } && test -s conftest$ac_exeext && {
6234 test "$cross_compiling" = yes ||
6235 $as_test_x conftest$ac_exeext
6237 pgac_cv_prog_ld_R=yes
6239 $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 pgac_cv_prog_ld_R=no
6245 rm -rf conftest.dSYM
6246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6247 conftest$ac_exeext conftest.$ac_ext
6248 LDFLAGS=$pgac_save_LDFLAGS
6251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6252 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6253 ld_R_works=$pgac_cv_prog_ld_R
6256 if test -n "$ac_tool_prefix"; then
6257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$RANLIB"; then
6265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6289 { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296 ac_ct_RANLIB=$RANLIB
6297 # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6304 if test -n "$ac_ct_RANLIB"; then
6305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_ac_ct_RANLIB="ranlib"
6315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6329 { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6333 if test "x$ac_ct_RANLIB" = x; then
6336 case $cross_compiling:$ac_tool_warned in
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6342 RANLIB=$ac_ct_RANLIB
6345 RANLIB="$ac_cv_prog_RANLIB"
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_STRIP+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$STRIP"; then
6358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6382 { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_STRIP"; then
6390 # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$ac_ct_STRIP"; then
6398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_STRIP="strip"
6408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_STRIP" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6438 STRIP="$ac_cv_prog_STRIP"
6442 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6443 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6444 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6445 STRIP_STATIC_LIB="$STRIP -x"
6446 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6447 { $as_echo "$as_me:$LINENO: result: yes" >&5
6448 $as_echo "yes" >&6; }
6453 STRIP_STATIC_LIB=$STRIP
6454 STRIP_SHARED_LIB=$STRIP
6455 { $as_echo "$as_me:$LINENO: result: yes" >&5
6456 $as_echo "yes" >&6; }
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ar; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_AR+set}" = set; then
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$AR"; then
6478 ac_cv_prog_AR="$AR" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_AR="${ac_tool_prefix}ar"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 if test -n "$AR"; then
6499 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6500 $as_echo "$AR" >&6; }
6502 { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_AR"; then
6510 # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$ac_ct_AR"; then
6518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_AR="ar"
6528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6538 if test -n "$ac_ct_AR"; then
6539 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6540 $as_echo "$ac_ct_AR" >&6; }
6542 { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$ac_ct_AR" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6561 if test "$PORTNAME" = "win32"; then
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6570 if test -n "$DLLTOOL"; then
6571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 DLLTOOL=$ac_cv_prog_DLLTOOL
6591 if test -n "$DLLTOOL"; then
6592 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6593 $as_echo "$DLLTOOL" >&6; }
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6601 if test -z "$ac_cv_prog_DLLTOOL"; then
6602 ac_ct_DLLTOOL=$DLLTOOL
6603 # Extract the first word of "dlltool", so it can be a program name with args.
6604 set dummy dlltool; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$ac_ct_DLLTOOL"; then
6611 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6631 if test -n "$ac_ct_DLLTOOL"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6633 $as_echo "$ac_ct_DLLTOOL" >&6; }
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6639 if test "x$ac_ct_DLLTOOL" = x; then
6642 case $cross_compiling:$ac_tool_warned in
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6648 DLLTOOL=$ac_ct_DLLTOOL
6651 DLLTOOL="$ac_cv_prog_DLLTOOL"
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$DLLWRAP"; then
6663 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 DLLWRAP=$ac_cv_prog_DLLWRAP
6683 if test -n "$DLLWRAP"; then
6684 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6685 $as_echo "$DLLWRAP" >&6; }
6687 { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6693 if test -z "$ac_cv_prog_DLLWRAP"; then
6694 ac_ct_DLLWRAP=$DLLWRAP
6695 # Extract the first word of "dllwrap", so it can be a program name with args.
6696 set dummy dllwrap; ac_word=$2
6697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$ac_ct_DLLWRAP"; then
6703 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6723 if test -n "$ac_ct_DLLWRAP"; then
6724 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6725 $as_echo "$ac_ct_DLLWRAP" >&6; }
6727 { $as_echo "$as_me:$LINENO: result: no" >&5
6728 $as_echo "no" >&6; }
6731 if test "x$ac_ct_DLLWRAP" = x; then
6734 case $cross_compiling:$ac_tool_warned in
6736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6740 DLLWRAP=$ac_ct_DLLWRAP
6743 DLLWRAP="$ac_cv_prog_DLLWRAP"
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}windres; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_WINDRES+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$WINDRES"; then
6755 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 WINDRES=$ac_cv_prog_WINDRES
6775 if test -n "$WINDRES"; then
6776 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6777 $as_echo "$WINDRES" >&6; }
6779 { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6785 if test -z "$ac_cv_prog_WINDRES"; then
6786 ac_ct_WINDRES=$WINDRES
6787 # Extract the first word of "windres", so it can be a program name with args.
6788 set dummy windres; ac_word=$2
6789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6794 if test -n "$ac_ct_WINDRES"; then
6795 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_WINDRES="windres"
6805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6815 if test -n "$ac_ct_WINDRES"; then
6816 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6817 $as_echo "$ac_ct_WINDRES" >&6; }
6819 { $as_echo "$as_me:$LINENO: result: no" >&5
6820 $as_echo "no" >&6; }
6823 if test "x$ac_ct_WINDRES" = x; then
6826 case $cross_compiling:$ac_tool_warned in
6828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6832 WINDRES=$ac_ct_WINDRES
6835 WINDRES="$ac_cv_prog_WINDRES"
6840 # Find a good install program. We prefer a C program (faster),
6841 # so one script is as good as another. But avoid the broken or
6842 # incompatible versions:
6843 # SysV /etc/install, /usr/sbin/install
6844 # SunOS /usr/etc/install
6845 # IRIX /sbin/install
6847 # AmigaOS /C/install, which installs bootblocks on floppy discs
6848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6851 # OS/2's system install, which has a completely different semantic
6852 # ./install, which can be erroneously created by make from ./install.sh.
6853 # Reject install programs that cannot install multiple files.
6854 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6855 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6856 if test -z "$INSTALL"; then
6857 if test "${ac_cv_path_install+set}" = set; then
6858 $as_echo_n "(cached) " >&6
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 # Account for people who put trailing slashes in PATH elements.
6867 ./ | .// | /cC/* | \
6868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6869 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6872 # OSF1 and SCO ODT 3.0 have their own names for install.
6873 # Don't use installbsd from OSF since it installs stuff as root
6875 for ac_prog in ginstall scoinst install; do
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6878 if test $ac_prog = install &&
6879 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6880 # AIX install. It has an incompatible calling convention.
6882 elif test $ac_prog = install &&
6883 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884 # program-specific install script used by HP pwplus--don't use.
6887 rm -rf conftest.one conftest.two conftest.dir
6888 echo one > conftest.one
6889 echo two > conftest.two
6891 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6892 test -s conftest.one && test -s conftest.two &&
6893 test -s conftest.dir/conftest.one &&
6894 test -s conftest.dir/conftest.two
6896 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6909 rm -rf conftest.one conftest.two conftest.dir
6912 if test "${ac_cv_path_install+set}" = set; then
6913 INSTALL=$ac_cv_path_install
6915 # As a last resort, use the slow shell script. Don't cache a
6916 # value for INSTALL within a source directory, because that will
6917 # break other packages using the cache if that directory is
6918 # removed, or if the value is a relative name.
6919 INSTALL=$ac_install_sh
6922 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 $as_echo "$INSTALL" >&6; }
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6933 # When Autoconf chooses install-sh as install program it tries to generate
6934 # a relative path to it in each makefile where it subsitutes it. This clashes
6935 # with our Makefile.global concept. This workaround helps.
6937 *install-sh*) install_bin='';;
6938 *) install_bin=$INSTALL;;
6942 # Extract the first word of "tar", so it can be a program name with args.
6943 set dummy tar; ac_word=$2
6944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_path_TAR+set}" = set; then
6947 $as_echo_n "(cached) " >&6
6951 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 if test -n "$TAR"; then
6974 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6975 $as_echo "$TAR" >&6; }
6977 { $as_echo "$as_me:$LINENO: result: no" >&5
6978 $as_echo "no" >&6; }
6982 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6983 $as_echo_n "checking whether ln -s works... " >&6; }
6985 if test "$LN_S" = "ln -s"; then
6986 { $as_echo "$as_me:$LINENO: result: yes" >&5
6987 $as_echo "yes" >&6; }
6989 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6990 $as_echo "no, using $LN_S" >&6; }
6993 for ac_prog in gawk mawk nawk awk
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_AWK+set}" = set; then
7000 $as_echo_n "(cached) " >&6
7002 if test -n "$AWK"; then
7003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_AWK="$ac_prog"
7013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 if test -n "$AWK"; then
7024 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7025 $as_echo "$AWK" >&6; }
7027 { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7032 test -n "$AWK" && break
7035 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7037 if test -z "$MKDIR_P"; then
7038 if test "${ac_cv_path_mkdir+set}" = set; then
7039 $as_echo_n "(cached) " >&6
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7045 test -z "$as_dir" && as_dir=.
7046 for ac_prog in mkdir gmkdir; do
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7050 'mkdir (GNU coreutils) '* | \
7051 'mkdir (coreutils) '* | \
7052 'mkdir (fileutils) '4.1*)
7053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7063 if test "${ac_cv_path_mkdir+set}" = set; then
7064 MKDIR_P="$ac_cv_path_mkdir -p"
7066 # As a last resort, use the slow shell script. Don't cache a
7067 # value for MKDIR_P within a source directory, because that will
7068 # break other packages using the cache if that directory is
7069 # removed, or if the value is a relative name.
7070 test -d ./--version && rmdir ./--version
7071 MKDIR_P="$ac_install_sh -d"
7074 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7075 $as_echo "$MKDIR_P" >&6; }
7077 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7078 # a relative path to it in each makefile where it subsitutes it. This clashes
7079 # with our Makefile.global concept. This workaround helps.
7081 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7084 # Let the user override the search
7085 if test -z "$BISON"; then
7086 for ac_prog in bison
7088 # Extract the first word of "$ac_prog", so it can be a program name with args.
7089 set dummy $ac_prog; ac_word=$2
7090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if test "${ac_cv_path_BISON+set}" = set; then
7093 $as_echo_n "(cached) " >&6
7097 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 BISON=$ac_cv_path_BISON
7119 if test -n "$BISON"; then
7120 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7121 $as_echo "$BISON" >&6; }
7123 { $as_echo "$as_me:$LINENO: result: no" >&5
7124 $as_echo "no" >&6; }
7128 test -n "$BISON" && break
7133 if test "$BISON"; then
7134 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7135 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7136 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7137 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7139 { $as_echo "$as_me:$LINENO: WARNING:
7140 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7141 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7142 $as_echo "$as_me: WARNING:
7143 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7144 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7149 if test -z "$BISON"; then
7150 { $as_echo "$as_me:$LINENO: WARNING:
7151 *** Without Bison you will not be able to build PostgreSQL from Git nor
7152 *** change any of the parser definition files. You can obtain Bison from
7153 *** a GNU mirror site. (If you are using the official distribution of
7154 *** PostgreSQL then you do not need to worry about this, because the Bison
7155 *** output is pre-generated.)" >&5
7156 $as_echo "$as_me: WARNING:
7157 *** Without Bison you will not be able to build PostgreSQL from Git nor
7158 *** change any of the parser definition files. You can obtain Bison from
7159 *** a GNU mirror site. (If you are using the official distribution of
7160 *** PostgreSQL then you do not need to worry about this, because the Bison
7161 *** output is pre-generated.)" >&2;}
7163 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7166 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7167 $as_echo_n "checking for flex... " >&6; }
7168 if test "${pgac_cv_path_flex+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7171 # Let the user override the test
7172 if test -n "$FLEX"; then
7173 pgac_cv_path_flex=$FLEX
7177 for pgac_dir in $PATH; do
7179 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7182 for pgac_prog in flex lex; do
7183 pgac_candidate="$pgac_dir/$pgac_prog"
7184 if test -f "$pgac_candidate" \
7185 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7187 echo '%%' > conftest.l
7188 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7189 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7190 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7192 pgac_cv_path_flex=$pgac_candidate
7195 { $as_echo "$as_me:$LINENO: WARNING:
7196 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7197 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7198 $as_echo "$as_me: WARNING:
7199 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7200 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7206 rm -f conftest.l lex.yy.c
7207 : ${pgac_cv_path_flex=no}
7211 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7212 $as_echo "$pgac_cv_path_flex" >&6; }
7213 if test x"$pgac_cv_path_flex" = x"no"; then
7214 { $as_echo "$as_me:$LINENO: WARNING:
7215 *** Without Flex you will not be able to build PostgreSQL from Git nor
7216 *** change any of the scanner definition files. You can obtain Flex from
7217 *** a GNU mirror site. (If you are using the official distribution of
7218 *** PostgreSQL then you do not need to worry about this because the Flex
7219 *** output is pre-generated.)" >&5
7220 $as_echo "$as_me: WARNING:
7221 *** Without Flex you will not be able to build PostgreSQL from Git nor
7222 *** change any of the scanner definition files. You can obtain Flex from
7223 *** a GNU mirror site. (If you are using the official distribution of
7224 *** PostgreSQL then you do not need to worry about this because the Flex
7225 *** output is pre-generated.)" >&2;}
7229 FLEX=$pgac_cv_path_flex
7230 pgac_flex_version=`$FLEX --version 2>/dev/null`
7231 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7232 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7239 # Let the user override the search
7240 if test -z "$PERL"; then
7241 # Extract the first word of "perl", so it can be a program name with args.
7242 set dummy perl; ac_word=$2
7243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_path_PERL+set}" = set; then
7246 $as_echo_n "(cached) " >&6
7250 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 PERL=$ac_cv_path_PERL
7272 if test -n "$PERL"; then
7273 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7274 $as_echo "$PERL" >&6; }
7276 { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7283 if test "$PERL"; then
7284 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7285 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7286 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7287 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7288 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7290 { $as_echo "$as_me:$LINENO: WARNING:
7291 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7292 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7293 $as_echo "$as_me: WARNING:
7294 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7295 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7300 if test -z "$PERL"; then
7301 { $as_echo "$as_me:$LINENO: WARNING:
7302 *** Without Perl you will not be able to build PostgreSQL from Git.
7303 *** You can obtain Perl from any CPAN mirror site.
7304 *** (If you are using the official distribution of PostgreSQL then you do not
7305 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7306 $as_echo "$as_me: WARNING:
7307 *** Without Perl you will not be able to build PostgreSQL from Git.
7308 *** You can obtain Perl from any CPAN mirror site.
7309 *** (If you are using the official distribution of PostgreSQL then you do not
7310 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7313 if test "$with_perl" = yes; then
7314 if test -z "$PERL"; then
7315 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7316 $as_echo "$as_me: error: Perl not found" >&2;}
7317 { (exit 1); exit 1; }; }
7320 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7321 $as_echo_n "checking for Perl archlibexp... " >&6; }
7322 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7324 $as_echo "$perl_archlibexp" >&6; }
7325 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7326 $as_echo_n "checking for Perl privlibexp... " >&6; }
7327 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7328 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7329 $as_echo "$perl_privlibexp" >&6; }
7330 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7331 $as_echo_n "checking for Perl useshrplib... " >&6; }
7332 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7333 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7334 $as_echo "$perl_useshrplib" >&6; }
7336 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7337 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7338 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7339 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7340 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7341 if test -z "$perl_embed_ldflags" ; then
7342 { $as_echo "$as_me:$LINENO: result: no" >&5
7343 $as_echo "no" >&6; }
7344 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7345 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7347 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7348 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7350 { (exit 1); exit 1; }; }
7352 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7353 $as_echo "$perl_embed_ldflags" >&6; }
7358 if test "$with_python" = yes; then
7359 # Extract the first word of "python", so it can be a program name with args.
7360 set dummy python; ac_word=$2
7361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if test "${ac_cv_path_PYTHON+set}" = set; then
7364 $as_echo_n "(cached) " >&6
7368 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 PYTHON=$ac_cv_path_PYTHON
7390 if test -n "$PYTHON"; then
7391 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7392 $as_echo "$PYTHON" >&6; }
7394 { $as_echo "$as_me:$LINENO: result: no" >&5
7395 $as_echo "no" >&6; }
7399 if test x"$PYTHON" = x""; then
7400 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7401 $as_echo "$as_me: error: Python not found" >&2;}
7402 { (exit 1); exit 1; }; }
7406 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7407 $as_echo_n "checking for Python distutils module... " >&6; }
7408 if "${PYTHON}" -c 'import distutils' 2>&5
7410 { $as_echo "$as_me:$LINENO: result: yes" >&5
7411 $as_echo "yes" >&6; }
7413 { $as_echo "$as_me:$LINENO: result: no" >&5
7414 $as_echo "no" >&6; }
7415 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7416 $as_echo "$as_me: error: distutils module not found" >&2;}
7417 { (exit 1); exit 1; }; }
7419 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7420 $as_echo_n "checking Python configuration directory... " >&6; }
7421 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7422 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7423 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7424 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7425 $as_echo "$python_configdir" >&6; }
7427 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7428 $as_echo_n "checking Python include directories... " >&6; }
7429 python_includespec=`${PYTHON} -c "
7430 import distutils.sysconfig
7431 a = '-I' + distutils.sysconfig.get_python_inc(False)
7432 b = '-I' + distutils.sysconfig.get_python_inc(True)
7436 print(a + ' ' + b)"`
7437 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7438 $as_echo "$python_includespec" >&6; }
7442 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7443 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7445 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7446 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7447 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7448 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7450 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7452 # New way: use the official shared library
7453 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7454 python_libspec="-L${python_libdir} -l${ldlibrary}"
7456 # Old way: use libpython from python_configdir
7457 python_libdir="${python_configdir}"
7458 # LDVERSION was introduced in Python 3.2.
7459 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7460 if test x"${python_ldversion}" = x""; then
7461 python_ldversion=$python_version
7463 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7466 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7468 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7469 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7472 # threaded python is not supported on OpenBSD
7473 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7474 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7475 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7476 if test "$pythreads" = "1"; then
7477 { $as_echo "$as_me:$LINENO: result: yes" >&5
7478 $as_echo "yes" >&6; }
7481 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7482 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7483 { (exit 1); exit 1; }; }
7487 { $as_echo "$as_me:$LINENO: result: no" >&5
7488 $as_echo "no" >&6; }
7494 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7495 # Extract the first word of "zic", so it can be a program name with args.
7496 set dummy zic; ac_word=$2
7497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if test "${ac_cv_path_ZIC+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7504 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 if test -n "$ZIC"; then
7527 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7528 $as_echo "$ZIC" >&6; }
7530 { $as_echo "$as_me:$LINENO: result: no" >&5
7531 $as_echo "no" >&6; }
7535 if test -z "$ZIC"; then
7536 { { $as_echo "$as_me:$LINENO: error:
7537 When cross-compiling, either use the option --with-system-tzdata to use
7538 existing time-zone data, or set the environment variable ZIC to a zic
7539 program to use during the build." >&5
7540 $as_echo "$as_me: error:
7541 When cross-compiling, either use the option --with-system-tzdata to use
7542 existing time-zone data, or set the environment variable ZIC to a zic
7543 program to use during the build." >&2;}
7544 { (exit 1); exit 1; }; }
7552 ## Most libraries are included only if they demonstrably provide a function
7553 ## we need, but libm is an exception: always include it, because there are
7554 ## too many compilers that play cute optimization games that will break
7555 ## probes for standard functions such as pow().
7559 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7560 $as_echo_n "checking for main in -lm... " >&6; }
7561 if test "${ac_cv_lib_m_main+set}" = set; then
7562 $as_echo_n "(cached) " >&6
7564 ac_check_lib_save_LIBS=$LIBS
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590 (eval "$ac_link") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest$ac_exeext && {
7600 test "$cross_compiling" = yes ||
7601 $as_test_x conftest$ac_exeext
7603 ac_cv_lib_m_main=yes
7605 $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7611 rm -rf conftest.dSYM
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7613 conftest$ac_exeext conftest.$ac_ext
7614 LIBS=$ac_check_lib_save_LIBS
7616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7617 $as_echo "$ac_cv_lib_m_main" >&6; }
7618 if test "x$ac_cv_lib_m_main" = x""yes; then
7619 cat >>confdefs.h <<_ACEOF
7627 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7628 $as_echo_n "checking for library containing setproctitle... " >&6; }
7629 if test "${ac_cv_search_setproctitle+set}" = set; then
7630 $as_echo_n "(cached) " >&6
7632 ac_func_search_save_LIBS=$LIBS
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7640 /* Override any GCC internal prototype to avoid an error.
7641 Use char because int might match the return type of a GCC
7642 builtin and then its argument prototype would still apply. */
7646 char setproctitle ();
7650 return setproctitle ();
7655 for ac_lib in '' util; do
7656 if test -z "$ac_lib"; then
7657 ac_res="none required"
7660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_link") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1 >conftest.err
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest$ac_exeext && {
7680 test "$cross_compiling" = yes ||
7681 $as_test_x conftest$ac_exeext
7683 ac_cv_search_setproctitle=$ac_res
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -rf conftest.dSYM
7692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694 if test "${ac_cv_search_setproctitle+set}" = set; then
7698 if test "${ac_cv_search_setproctitle+set}" = set; then
7701 ac_cv_search_setproctitle=no
7704 LIBS=$ac_func_search_save_LIBS
7706 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7707 $as_echo "$ac_cv_search_setproctitle" >&6; }
7708 ac_res=$ac_cv_search_setproctitle
7709 if test "$ac_res" != no; then
7710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7714 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7715 $as_echo_n "checking for library containing dlopen... " >&6; }
7716 if test "${ac_cv_search_dlopen+set}" = set; then
7717 $as_echo_n "(cached) " >&6
7719 ac_func_search_save_LIBS=$LIBS
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7742 for ac_lib in '' dl; do
7743 if test -z "$ac_lib"; then
7744 ac_res="none required"
7747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_link") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest$ac_exeext && {
7767 test "$cross_compiling" = yes ||
7768 $as_test_x conftest$ac_exeext
7770 ac_cv_search_dlopen=$ac_res
7772 $as_echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7778 rm -rf conftest.dSYM
7779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7781 if test "${ac_cv_search_dlopen+set}" = set; then
7785 if test "${ac_cv_search_dlopen+set}" = set; then
7788 ac_cv_search_dlopen=no
7791 LIBS=$ac_func_search_save_LIBS
7793 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7794 $as_echo "$ac_cv_search_dlopen" >&6; }
7795 ac_res=$ac_cv_search_dlopen
7796 if test "$ac_res" != no; then
7797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7801 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7802 $as_echo_n "checking for library containing socket... " >&6; }
7803 if test "${ac_cv_search_socket+set}" = set; then
7804 $as_echo_n "(cached) " >&6
7806 ac_func_search_save_LIBS=$LIBS
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 /* Override any GCC internal prototype to avoid an error.
7815 Use char because int might match the return type of a GCC
7816 builtin and then its argument prototype would still apply. */
7829 for ac_lib in '' socket wsock32; do
7830 if test -z "$ac_lib"; then
7831 ac_res="none required"
7834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (ac_try="$ac_link"
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7843 $as_echo "$ac_try_echo") >&5
7844 (eval "$ac_link") 2>conftest.er1
7846 grep -v '^ *+' conftest.er1 >conftest.err
7848 cat conftest.err >&5
7849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest$ac_exeext && {
7854 test "$cross_compiling" = yes ||
7855 $as_test_x conftest$ac_exeext
7857 ac_cv_search_socket=$ac_res
7859 $as_echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7865 rm -rf conftest.dSYM
7866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7868 if test "${ac_cv_search_socket+set}" = set; then
7872 if test "${ac_cv_search_socket+set}" = set; then
7875 ac_cv_search_socket=no
7878 LIBS=$ac_func_search_save_LIBS
7880 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7881 $as_echo "$ac_cv_search_socket" >&6; }
7882 ac_res=$ac_cv_search_socket
7883 if test "$ac_res" != no; then
7884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7888 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7889 $as_echo_n "checking for library containing shl_load... " >&6; }
7890 if test "${ac_cv_search_shl_load+set}" = set; then
7891 $as_echo_n "(cached) " >&6
7893 ac_func_search_save_LIBS=$LIBS
7894 cat >conftest.$ac_ext <<_ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7916 for ac_lib in '' dld; do
7917 if test -z "$ac_lib"; then
7918 ac_res="none required"
7921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_link") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest$ac_exeext && {
7941 test "$cross_compiling" = yes ||
7942 $as_test_x conftest$ac_exeext
7944 ac_cv_search_shl_load=$ac_res
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7952 rm -rf conftest.dSYM
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7955 if test "${ac_cv_search_shl_load+set}" = set; then
7959 if test "${ac_cv_search_shl_load+set}" = set; then
7962 ac_cv_search_shl_load=no
7965 LIBS=$ac_func_search_save_LIBS
7967 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7968 $as_echo "$ac_cv_search_shl_load" >&6; }
7969 ac_res=$ac_cv_search_shl_load
7970 if test "$ac_res" != no; then
7971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7975 # We only use libld in port/dynloader/aix.c
7978 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7979 $as_echo_n "checking for library containing ldopen... " >&6; }
7980 if test "${ac_cv_search_ldopen+set}" = set; then
7981 $as_echo_n "(cached) " >&6
7983 ac_func_search_save_LIBS=$LIBS
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
8006 for ac_lib in '' ld; do
8007 if test -z "$ac_lib"; then
8008 ac_res="none required"
8011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (ac_try="$ac_link"
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8020 $as_echo "$ac_try_echo") >&5
8021 (eval "$ac_link") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest$ac_exeext && {
8031 test "$cross_compiling" = yes ||
8032 $as_test_x conftest$ac_exeext
8034 ac_cv_search_ldopen=$ac_res
8036 $as_echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8042 rm -rf conftest.dSYM
8043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8045 if test "${ac_cv_search_ldopen+set}" = set; then
8049 if test "${ac_cv_search_ldopen+set}" = set; then
8052 ac_cv_search_ldopen=no
8055 LIBS=$ac_func_search_save_LIBS
8057 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8058 $as_echo "$ac_cv_search_ldopen" >&6; }
8059 ac_res=$ac_cv_search_ldopen
8060 if test "$ac_res" != no; then
8061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8067 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8068 $as_echo_n "checking for library containing getopt_long... " >&6; }
8069 if test "${ac_cv_search_getopt_long+set}" = set; then
8070 $as_echo_n "(cached) " >&6
8072 ac_func_search_save_LIBS=$LIBS
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8080 /* Override any GCC internal prototype to avoid an error.
8081 Use char because int might match the return type of a GCC
8082 builtin and then its argument prototype would still apply. */
8086 char getopt_long ();
8090 return getopt_long ();
8095 for ac_lib in '' getopt gnugetopt; do
8096 if test -z "$ac_lib"; then
8097 ac_res="none required"
8100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (ac_try="$ac_link"
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8109 $as_echo "$ac_try_echo") >&5
8110 (eval "$ac_link") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest$ac_exeext && {
8120 test "$cross_compiling" = yes ||
8121 $as_test_x conftest$ac_exeext
8123 ac_cv_search_getopt_long=$ac_res
8125 $as_echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8131 rm -rf conftest.dSYM
8132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 if test "${ac_cv_search_getopt_long+set}" = set; then
8138 if test "${ac_cv_search_getopt_long+set}" = set; then
8141 ac_cv_search_getopt_long=no
8144 LIBS=$ac_func_search_save_LIBS
8146 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8147 $as_echo "$ac_cv_search_getopt_long" >&6; }
8148 ac_res=$ac_cv_search_getopt_long
8149 if test "$ac_res" != no; then
8150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8154 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8155 $as_echo_n "checking for library containing crypt... " >&6; }
8156 if test "${ac_cv_search_crypt+set}" = set; then
8157 $as_echo_n "(cached) " >&6
8159 ac_func_search_save_LIBS=$LIBS
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8182 for ac_lib in '' crypt; do
8183 if test -z "$ac_lib"; then
8184 ac_res="none required"
8187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197 (eval "$ac_link") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest$ac_exeext && {
8207 test "$cross_compiling" = yes ||
8208 $as_test_x conftest$ac_exeext
8210 ac_cv_search_crypt=$ac_res
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8218 rm -rf conftest.dSYM
8219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8221 if test "${ac_cv_search_crypt+set}" = set; then
8225 if test "${ac_cv_search_crypt+set}" = set; then
8228 ac_cv_search_crypt=no
8231 LIBS=$ac_func_search_save_LIBS
8233 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8234 $as_echo "$ac_cv_search_crypt" >&6; }
8235 ac_res=$ac_cv_search_crypt
8236 if test "$ac_res" != no; then
8237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8242 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8243 $as_echo_n "checking for library containing fdatasync... " >&6; }
8244 if test "${ac_cv_search_fdatasync+set}" = set; then
8245 $as_echo_n "(cached) " >&6
8247 ac_func_search_save_LIBS=$LIBS
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8255 /* Override any GCC internal prototype to avoid an error.
8256 Use char because int might match the return type of a GCC
8257 builtin and then its argument prototype would still apply. */
8265 return fdatasync ();
8270 for ac_lib in '' rt posix4; do
8271 if test -z "$ac_lib"; then
8272 ac_res="none required"
8275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (ac_try="$ac_link"
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284 $as_echo "$ac_try_echo") >&5
8285 (eval "$ac_link") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest$ac_exeext && {
8295 test "$cross_compiling" = yes ||
8296 $as_test_x conftest$ac_exeext
8298 ac_cv_search_fdatasync=$ac_res
8300 $as_echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8306 rm -rf conftest.dSYM
8307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8309 if test "${ac_cv_search_fdatasync+set}" = set; then
8313 if test "${ac_cv_search_fdatasync+set}" = set; then
8316 ac_cv_search_fdatasync=no
8319 LIBS=$ac_func_search_save_LIBS
8321 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8322 $as_echo "$ac_cv_search_fdatasync" >&6; }
8323 ac_res=$ac_cv_search_fdatasync
8324 if test "$ac_res" != no; then
8325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8329 # Required for thread_test.c on Solaris 2.5:
8330 # Other ports use it too (HP-UX) so test unconditionally
8331 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8332 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8333 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8334 $as_echo_n "(cached) " >&6
8336 ac_func_search_save_LIBS=$LIBS
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8344 /* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply. */
8350 char gethostbyname_r ();
8354 return gethostbyname_r ();
8359 for ac_lib in '' nsl; do
8360 if test -z "$ac_lib"; then
8361 ac_res="none required"
8364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (ac_try="$ac_link"
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374 (eval "$ac_link") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest$ac_exeext && {
8384 test "$cross_compiling" = yes ||
8385 $as_test_x conftest$ac_exeext
8387 ac_cv_search_gethostbyname_r=$ac_res
8389 $as_echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -rf conftest.dSYM
8396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8398 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8402 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8405 ac_cv_search_gethostbyname_r=no
8408 LIBS=$ac_func_search_save_LIBS
8410 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8411 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8412 ac_res=$ac_cv_search_gethostbyname_r
8413 if test "$ac_res" != no; then
8414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8419 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8420 $as_echo_n "checking for library containing shmget... " >&6; }
8421 if test "${ac_cv_search_shmget+set}" = set; then
8422 $as_echo_n "(cached) " >&6
8424 ac_func_search_save_LIBS=$LIBS
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8432 /* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
8447 for ac_lib in '' cygipc; do
8448 if test -z "$ac_lib"; then
8449 ac_res="none required"
8452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (ac_try="$ac_link"
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462 (eval "$ac_link") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest$ac_exeext && {
8472 test "$cross_compiling" = yes ||
8473 $as_test_x conftest$ac_exeext
8475 ac_cv_search_shmget=$ac_res
8477 $as_echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8483 rm -rf conftest.dSYM
8484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486 if test "${ac_cv_search_shmget+set}" = set; then
8490 if test "${ac_cv_search_shmget+set}" = set; then
8493 ac_cv_search_shmget=no
8496 LIBS=$ac_func_search_save_LIBS
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8499 $as_echo "$ac_cv_search_shmget" >&6; }
8500 ac_res=$ac_cv_search_shmget
8501 if test "$ac_res" != no; then
8502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8507 if test "$with_readline" = yes; then
8510 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8511 $as_echo_n "checking for library containing readline... " >&6; }
8512 if test "${pgac_cv_check_readline+set}" = set; then
8513 $as_echo_n "(cached) " >&6
8515 pgac_cv_check_readline=no
8516 pgac_save_LIBS=$LIBS
8517 if test x"$with_libedit_preferred" != x"yes"
8518 then READLINE_ORDER="-lreadline -ledit"
8519 else READLINE_ORDER="-ledit -lreadline"
8521 for pgac_rllib in $READLINE_ORDER ; do
8522 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8523 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 /* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8553 $as_echo "$ac_try_echo") >&5
8554 (eval "$ac_link") 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } && {
8561 test -z "$ac_c_werror_flag" ||
8562 test ! -s conftest.err
8563 } && test -s conftest$ac_exeext && {
8564 test "$cross_compiling" = yes ||
8565 $as_test_x conftest$ac_exeext
8568 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8569 # recognize dependent libraries; assume curses is needed if we didn't
8570 # find any dependency.
8572 netbsd* | openbsd* | irix*)
8573 if test x"$pgac_lib" = x"" ; then
8574 pgac_lib=" -lcurses"
8578 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8588 rm -rf conftest.dSYM
8589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8590 conftest$ac_exeext conftest.$ac_ext
8592 if test "$pgac_cv_check_readline" != no ; then
8596 LIBS=$pgac_save_LIBS
8599 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8600 $as_echo "$pgac_cv_check_readline" >&6; }
8601 if test "$pgac_cv_check_readline" != no ; then
8602 LIBS="$pgac_cv_check_readline $LIBS"
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_LIBREADLINE 1
8611 if test x"$pgac_cv_check_readline" = x"no"; then
8612 { { $as_echo "$as_me:$LINENO: error: readline library not found
8613 If you have readline already installed, see config.log for details on the
8614 failure. It is possible the compiler isn't looking in the proper directory.
8615 Use --without-readline to disable readline support." >&5
8616 $as_echo "$as_me: error: readline library not found
8617 If you have readline already installed, see config.log for details on the
8618 failure. It is possible the compiler isn't looking in the proper directory.
8619 Use --without-readline to disable readline support." >&2;}
8620 { (exit 1); exit 1; }; }
8624 if test "$with_zlib" = yes; then
8626 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8627 $as_echo_n "checking for inflate in -lz... " >&6; }
8628 if test "${ac_cv_lib_z_inflate+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8631 ac_check_lib_save_LIBS=$LIBS
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8640 /* Override any GCC internal prototype to avoid an error.
8641 Use char because int might match the return type of a GCC
8642 builtin and then its argument prototype would still apply. */
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (ac_try="$ac_link"
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663 (eval "$ac_link") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest$ac_exeext && {
8673 test "$cross_compiling" = yes ||
8674 $as_test_x conftest$ac_exeext
8676 ac_cv_lib_z_inflate=yes
8678 $as_echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 ac_cv_lib_z_inflate=no
8684 rm -rf conftest.dSYM
8685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8686 conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8690 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8691 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8692 cat >>confdefs.h <<_ACEOF
8699 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8700 If you have zlib already installed, see config.log for details on the
8701 failure. It is possible the compiler isn't looking in the proper directory.
8702 Use --without-zlib to disable zlib support." >&5
8703 $as_echo "$as_me: error: zlib library not found
8704 If you have zlib already installed, see config.log for details on the
8705 failure. It is possible the compiler isn't looking in the proper directory.
8706 Use --without-zlib to disable zlib support." >&2;}
8707 { (exit 1); exit 1; }; }
8712 if test "$enable_spinlocks" = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define HAVE_SPINLOCKS 1
8719 { $as_echo "$as_me:$LINENO: WARNING:
8720 *** Not using spinlocks will cause poor performance." >&5
8721 $as_echo "$as_me: WARNING:
8722 *** Not using spinlocks will cause poor performance." >&2;}
8725 if test "$with_gssapi" = yes ; then
8726 if test "$PORTNAME" != "win32"; then
8727 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8728 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8729 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8730 $as_echo_n "(cached) " >&6
8732 ac_func_search_save_LIBS=$LIBS
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 /* Override any GCC internal prototype to avoid an error.
8741 Use char because int might match the return type of a GCC
8742 builtin and then its argument prototype would still apply. */
8746 char gss_init_sec_context ();
8750 return gss_init_sec_context ();
8755 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8756 if test -z "$ac_lib"; then
8757 ac_res="none required"
8760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770 (eval "$ac_link") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest$ac_exeext && {
8780 test "$cross_compiling" = yes ||
8781 $as_test_x conftest$ac_exeext
8783 ac_cv_search_gss_init_sec_context=$ac_res
8785 $as_echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8791 rm -rf conftest.dSYM
8792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8794 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8798 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8801 ac_cv_search_gss_init_sec_context=no
8804 LIBS=$ac_func_search_save_LIBS
8806 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8807 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8808 ac_res=$ac_cv_search_gss_init_sec_context
8809 if test "$ac_res" != no; then
8810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8813 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8814 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8815 { (exit 1); exit 1; }; }
8819 LIBS="$LIBS -lgssapi32"
8823 if test "$with_krb5" = yes ; then
8824 if test "$PORTNAME" != "win32"; then
8825 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8826 $as_echo_n "checking for library containing com_err... " >&6; }
8827 if test "${ac_cv_search_com_err+set}" = set; then
8828 $as_echo_n "(cached) " >&6
8830 ac_func_search_save_LIBS=$LIBS
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8838 /* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply. */
8853 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8854 if test -z "$ac_lib"; then
8855 ac_res="none required"
8858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868 (eval "$ac_link") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest$ac_exeext && {
8878 test "$cross_compiling" = yes ||
8879 $as_test_x conftest$ac_exeext
8881 ac_cv_search_com_err=$ac_res
8883 $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8889 rm -rf conftest.dSYM
8890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8892 if test "${ac_cv_search_com_err+set}" = set; then
8896 if test "${ac_cv_search_com_err+set}" = set; then
8899 ac_cv_search_com_err=no
8902 LIBS=$ac_func_search_save_LIBS
8904 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8905 $as_echo "$ac_cv_search_com_err" >&6; }
8906 ac_res=$ac_cv_search_com_err
8907 if test "$ac_res" != no; then
8908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8911 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8912 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8913 { (exit 1); exit 1; }; }
8916 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8917 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8918 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8919 $as_echo_n "(cached) " >&6
8921 ac_func_search_save_LIBS=$LIBS
8922 cat >conftest.$ac_ext <<_ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any GCC internal prototype to avoid an error.
8930 Use char because int might match the return type of a GCC
8931 builtin and then its argument prototype would still apply. */
8935 char krb5_sendauth ();
8939 return krb5_sendauth ();
8944 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8945 if test -z "$ac_lib"; then
8946 ac_res="none required"
8949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (ac_try="$ac_link"
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958 $as_echo "$ac_try_echo") >&5
8959 (eval "$ac_link") 2>conftest.er1
8961 grep -v '^ *+' conftest.er1 >conftest.err
8963 cat conftest.err >&5
8964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest$ac_exeext && {
8969 test "$cross_compiling" = yes ||
8970 $as_test_x conftest$ac_exeext
8972 ac_cv_search_krb5_sendauth=$ac_res
8974 $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8980 rm -rf conftest.dSYM
8981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8987 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8990 ac_cv_search_krb5_sendauth=no
8993 LIBS=$ac_func_search_save_LIBS
8995 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8996 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8997 ac_res=$ac_cv_search_krb5_sendauth
8998 if test "$ac_res" != no; then
8999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9002 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9003 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9004 { (exit 1); exit 1; }; }
9008 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9009 $as_echo_n "checking for library containing com_err... " >&6; }
9010 if test "${ac_cv_search_com_err+set}" = set; then
9011 $as_echo_n "(cached) " >&6
9013 ac_func_search_save_LIBS=$LIBS
9014 cat >conftest.$ac_ext <<_ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 /* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
9036 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9050 $as_echo "$ac_try_echo") >&5
9051 (eval "$ac_link") 2>conftest.er1
9053 grep -v '^ *+' conftest.er1 >conftest.err
9055 cat conftest.err >&5
9056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest$ac_exeext && {
9061 test "$cross_compiling" = yes ||
9062 $as_test_x conftest$ac_exeext
9064 ac_cv_search_com_err=$ac_res
9066 $as_echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9072 rm -rf conftest.dSYM
9073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9075 if test "${ac_cv_search_com_err+set}" = set; then
9079 if test "${ac_cv_search_com_err+set}" = set; then
9082 ac_cv_search_com_err=no
9085 LIBS=$ac_func_search_save_LIBS
9087 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9088 $as_echo "$ac_cv_search_com_err" >&6; }
9089 ac_res=$ac_cv_search_com_err
9090 if test "$ac_res" != no; then
9091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9094 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9095 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9096 { (exit 1); exit 1; }; }
9102 if test "$with_openssl" = yes ; then
9103 if test "$PORTNAME" != "win32"; then
9105 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9106 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9107 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9108 $as_echo_n "(cached) " >&6
9110 ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lcrypto $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9119 /* Override any GCC internal prototype to avoid an error.
9120 Use char because int might match the return type of a GCC
9121 builtin and then its argument prototype would still apply. */
9125 char CRYPTO_new_ex_data ();
9129 return CRYPTO_new_ex_data ();
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9141 $as_echo "$ac_try_echo") >&5
9142 (eval "$ac_link") 2>conftest.er1
9144 grep -v '^ *+' conftest.er1 >conftest.err
9146 cat conftest.err >&5
9147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && {
9149 test -z "$ac_c_werror_flag" ||
9150 test ! -s conftest.err
9151 } && test -s conftest$ac_exeext && {
9152 test "$cross_compiling" = yes ||
9153 $as_test_x conftest$ac_exeext
9155 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9157 $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9163 rm -rf conftest.dSYM
9164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9169 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9170 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_LIBCRYPTO 1
9175 LIBS="-lcrypto $LIBS"
9178 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9179 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9180 { (exit 1); exit 1; }; }
9184 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9185 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9186 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9187 $as_echo_n "(cached) " >&6
9189 ac_check_lib_save_LIBS=$LIBS
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9204 char SSL_library_init ();
9208 return SSL_library_init ();
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221 (eval "$ac_link") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest$ac_exeext && {
9231 test "$cross_compiling" = yes ||
9232 $as_test_x conftest$ac_exeext
9234 ac_cv_lib_ssl_SSL_library_init=yes
9236 $as_echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_cv_lib_ssl_SSL_library_init=no
9242 rm -rf conftest.dSYM
9243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9244 conftest$ac_exeext conftest.$ac_ext
9245 LIBS=$ac_check_lib_save_LIBS
9247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9248 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9249 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_LIBSSL 1
9257 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9258 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9259 { (exit 1); exit 1; }; }
9263 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9264 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9265 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9266 $as_echo_n "(cached) " >&6
9268 ac_func_search_save_LIBS=$LIBS
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9282 char CRYPTO_new_ex_data ();
9286 return CRYPTO_new_ex_data ();
9291 for ac_lib in '' eay32 crypto; do
9292 if test -z "$ac_lib"; then
9293 ac_res="none required"
9296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (ac_try="$ac_link"
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9305 $as_echo "$ac_try_echo") >&5
9306 (eval "$ac_link") 2>conftest.er1
9308 grep -v '^ *+' conftest.er1 >conftest.err
9310 cat conftest.err >&5
9311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && {
9313 test -z "$ac_c_werror_flag" ||
9314 test ! -s conftest.err
9315 } && test -s conftest$ac_exeext && {
9316 test "$cross_compiling" = yes ||
9317 $as_test_x conftest$ac_exeext
9319 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9321 $as_echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9327 rm -rf conftest.dSYM
9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9334 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9337 ac_cv_search_CRYPTO_new_ex_data=no
9340 LIBS=$ac_func_search_save_LIBS
9342 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9343 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9344 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9345 if test "$ac_res" != no; then
9346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9349 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9350 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9351 { (exit 1); exit 1; }; }
9354 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9355 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9356 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9357 $as_echo_n "(cached) " >&6
9359 ac_func_search_save_LIBS=$LIBS
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9373 char SSL_library_init ();
9377 return SSL_library_init ();
9382 for ac_lib in '' ssleay32 ssl; do
9383 if test -z "$ac_lib"; then
9384 ac_res="none required"
9387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9389 rm -f conftest.$ac_objext conftest$ac_exeext
9390 if { (ac_try="$ac_link"
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9396 $as_echo "$ac_try_echo") >&5
9397 (eval "$ac_link") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest$ac_exeext && {
9407 test "$cross_compiling" = yes ||
9408 $as_test_x conftest$ac_exeext
9410 ac_cv_search_SSL_library_init=$ac_res
9412 $as_echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9418 rm -rf conftest.dSYM
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9421 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9425 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9428 ac_cv_search_SSL_library_init=no
9431 LIBS=$ac_func_search_save_LIBS
9433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9434 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9435 ac_res=$ac_cv_search_SSL_library_init
9436 if test "$ac_res" != no; then
9437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9440 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9441 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9442 { (exit 1); exit 1; }; }
9448 if test "$with_pam" = yes ; then
9450 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9451 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9452 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9453 $as_echo_n "(cached) " >&6
9455 ac_check_lib_save_LIBS=$LIBS
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9474 return pam_start ();
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9486 $as_echo "$ac_try_echo") >&5
9487 (eval "$ac_link") 2>conftest.er1
9489 grep -v '^ *+' conftest.er1 >conftest.err
9491 cat conftest.err >&5
9492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest$ac_exeext && {
9497 test "$cross_compiling" = yes ||
9498 $as_test_x conftest$ac_exeext
9500 ac_cv_lib_pam_pam_start=yes
9502 $as_echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_cv_lib_pam_pam_start=no
9508 rm -rf conftest.dSYM
9509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LIBS=$ac_check_lib_save_LIBS
9513 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9514 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9515 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9516 cat >>confdefs.h <<_ACEOF
9517 #define HAVE_LIBPAM 1
9523 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9524 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9525 { (exit 1); exit 1; }; }
9530 if test "$with_libxml" = yes ; then
9532 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9533 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9534 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9535 $as_echo_n "(cached) " >&6
9537 ac_check_lib_save_LIBS=$LIBS
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9552 char xmlSaveToBuffer ();
9556 return xmlSaveToBuffer ();
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9568 $as_echo "$ac_try_echo") >&5
9569 (eval "$ac_link") 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest$ac_exeext && {
9579 test "$cross_compiling" = yes ||
9580 $as_test_x conftest$ac_exeext
9582 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9584 $as_echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9587 ac_cv_lib_xml2_xmlSaveToBuffer=no
9590 rm -rf conftest.dSYM
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9596 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9597 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_LIBXML2 1
9605 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9606 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9607 { (exit 1); exit 1; }; }
9612 if test "$with_libxslt" = yes ; then
9614 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9615 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9616 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9617 $as_echo_n "(cached) " >&6
9619 ac_check_lib_save_LIBS=$LIBS
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9628 /* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9634 char xsltCleanupGlobals ();
9638 return xsltCleanupGlobals ();
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9650 $as_echo "$ac_try_echo") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext && {
9661 test "$cross_compiling" = yes ||
9662 $as_test_x conftest$ac_exeext
9664 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9666 $as_echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_xslt_xsltCleanupGlobals=no
9672 rm -rf conftest.dSYM
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9678 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9679 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9680 cat >>confdefs.h <<_ACEOF
9681 #define HAVE_LIBXSLT 1
9687 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9688 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9689 { (exit 1); exit 1; }; }
9694 # for contrib/sepgsql
9695 if test "$with_selinux" = yes; then
9697 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9698 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9699 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9700 $as_echo_n "(cached) " >&6
9702 ac_check_lib_save_LIBS=$LIBS
9703 LIBS="-lselinux $LIBS"
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9717 char selinux_status_open ();
9721 return selinux_status_open ();
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9733 $as_echo "$ac_try_echo") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest$ac_exeext && {
9744 test "$cross_compiling" = yes ||
9745 $as_test_x conftest$ac_exeext
9747 ac_cv_lib_selinux_selinux_status_open=yes
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_lib_selinux_selinux_status_open=no
9755 rm -rf conftest.dSYM
9756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9757 conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9760 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9761 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9762 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9763 cat >>confdefs.h <<_ACEOF
9764 #define HAVE_LIBSELINUX 1
9767 LIBS="-lselinux $LIBS"
9770 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9771 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9772 { (exit 1); exit 1; }; }
9777 # for contrib/uuid-ossp
9778 if test "$with_ossp_uuid" = yes ; then
9779 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9780 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9781 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9782 $as_echo_n "(cached) " >&6
9784 ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-lossp-uuid $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9799 char uuid_export ();
9803 return uuid_export ();
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815 $as_echo "$ac_try_echo") >&5
9816 (eval "$ac_link") 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && {
9823 test -z "$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 } && test -s conftest$ac_exeext && {
9826 test "$cross_compiling" = yes ||
9827 $as_test_x conftest$ac_exeext
9829 ac_cv_lib_ossp_uuid_uuid_export=yes
9831 $as_echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_cv_lib_ossp_uuid_uuid_export=no
9837 rm -rf conftest.dSYM
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9842 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9843 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9844 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9845 OSSP_UUID_LIBS="-lossp-uuid"
9847 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9848 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9849 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9850 $as_echo_n "(cached) " >&6
9852 ac_check_lib_save_LIBS=$LIBS
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9867 char uuid_export ();
9871 return uuid_export ();
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9883 $as_echo "$ac_try_echo") >&5
9884 (eval "$ac_link") 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } && {
9891 test -z "$ac_c_werror_flag" ||
9892 test ! -s conftest.err
9893 } && test -s conftest$ac_exeext && {
9894 test "$cross_compiling" = yes ||
9895 $as_test_x conftest$ac_exeext
9897 ac_cv_lib_uuid_uuid_export=yes
9899 $as_echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_uuid_uuid_export=no
9905 rm -rf conftest.dSYM
9906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9911 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9912 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9913 OSSP_UUID_LIBS="-luuid"
9915 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9916 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9917 { (exit 1); exit 1; }; }
9930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9931 $as_echo_n "checking for ANSI C header files... " >&6; }
9932 if test "${ac_cv_header_stdc+set}" = set; then
9933 $as_echo_n "(cached) " >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9954 rm -f conftest.$ac_objext
9955 if { (ac_try="$ac_compile"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961 $as_echo "$ac_try_echo") >&5
9962 (eval "$ac_compile") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest.$ac_objext; then
9972 ac_cv_header_stdc=yes
9974 $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_cv_header_stdc=no
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 if test $ac_cv_header_stdc = yes; then
9983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "memchr" >/dev/null 2>&1; then
9997 ac_cv_header_stdc=no
10003 if test $ac_cv_header_stdc = yes; then
10004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <stdlib.h>
10014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015 $EGREP "free" >/dev/null 2>&1; then
10018 ac_cv_header_stdc=no
10024 if test $ac_cv_header_stdc = yes; then
10025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10026 if test "$cross_compiling" = yes; then
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10036 #include <stdlib.h>
10037 #if ((' ' & 0x0FF) == 0x020)
10038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10041 # define ISLOWER(c) \
10042 (('a' <= (c) && (c) <= 'i') \
10043 || ('j' <= (c) && (c) <= 'r') \
10044 || ('s' <= (c) && (c) <= 'z'))
10045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10053 for (i = 0; i < 256; i++)
10054 if (XOR (islower (i), ISLOWER (i))
10055 || toupper (i) != TOUPPER (i))
10060 rm -f conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068 (eval "$ac_link") 2>&5
10070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10077 $as_echo "$ac_try_echo") >&5
10078 (eval "$ac_try") 2>&5
10080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10084 $as_echo "$as_me: program exited with status $ac_status" >&5
10085 $as_echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ( exit $ac_status )
10089 ac_cv_header_stdc=no
10091 rm -rf conftest.dSYM
10092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10099 $as_echo "$ac_cv_header_stdc" >&6; }
10100 if test $ac_cv_header_stdc = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define STDC_HEADERS 1
10108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10119 inttypes.h stdint.h unistd.h
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 $as_echo_n "checking for $ac_header... " >&6; }
10124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10125 $as_echo_n "(cached) " >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 $ac_includes_default
10135 #include <$ac_header>
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145 (eval "$ac_compile") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest.$ac_objext; then
10155 eval "$as_ac_Header=yes"
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 eval "$as_ac_Header=no"
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 ac_res=`eval 'as_val=${'$as_ac_Header'}
10166 $as_echo "$as_val"'`
10167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10168 $as_echo "$ac_res" >&6; }
10169 as_val=`eval 'as_val=${'$as_ac_Header'}
10170 $as_echo "$as_val"'`
10171 if test "x$as_val" = x""yes; then
10172 cat >>confdefs.h <<_ACEOF
10173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10209 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10214 $as_echo_n "checking for $ac_header... " >&6; }
10215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216 $as_echo_n "(cached) " >&6
10218 ac_res=`eval 'as_val=${'$as_ac_Header'}
10219 $as_echo "$as_val"'`
10220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10221 $as_echo "$ac_res" >&6; }
10223 # Is the header compilable?
10224 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10225 $as_echo_n "checking $ac_header usability... " >&6; }
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10233 #include <$ac_header>
10235 rm -f conftest.$ac_objext
10236 if { (ac_try="$ac_compile"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10242 $as_echo "$ac_try_echo") >&5
10243 (eval "$ac_compile") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest.$ac_objext; then
10253 ac_header_compiler=yes
10255 $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_header_compiler=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263 $as_echo "$ac_header_compiler" >&6; }
10265 # Is the header present?
10266 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10267 $as_echo_n "checking $ac_header presence... " >&6; }
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <$ac_header>
10276 if { (ac_try="$ac_cpp conftest.$ac_ext"
10277 case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10282 $as_echo "$ac_try_echo") >&5
10283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } >/dev/null && {
10290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10293 ac_header_preproc=yes
10295 $as_echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_header_preproc=no
10301 rm -f conftest.err conftest.$ac_ext
10302 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10303 $as_echo "$ac_header_preproc" >&6; }
10305 # So? What about this header?
10306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10309 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10311 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10312 ac_header_preproc=yes
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10328 ## ---------------------------------------- ##
10329 ## Report this to pgsql-bugs@postgresql.org ##
10330 ## ---------------------------------------- ##
10332 ) | sed "s/^/$as_me: WARNING: /" >&2
10335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 $as_echo_n "checking for $ac_header... " >&6; }
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 $as_echo_n "(cached) " >&6
10340 eval "$as_ac_Header=\$ac_header_preproc"
10342 ac_res=`eval 'as_val=${'$as_ac_Header'}
10343 $as_echo "$as_val"'`
10344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10345 $as_echo "$ac_res" >&6; }
10348 as_val=`eval 'as_val=${'$as_ac_Header'}
10349 $as_echo "$as_val"'`
10350 if test "x$as_val" = x""yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10361 # is included first.
10363 for ac_header in net/if.h
10365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10367 $as_echo_n "checking for $ac_header... " >&6; }
10368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10369 $as_echo_n "(cached) " >&6
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10378 #ifdef HAVE_SYS_SOCKET_H
10379 #include <sys/socket.h>
10383 #include <$ac_header>
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.$ac_objext; then
10403 eval "$as_ac_Header=yes"
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 eval "$as_ac_Header=no"
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 ac_res=`eval 'as_val=${'$as_ac_Header'}
10414 $as_echo "$as_val"'`
10415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10416 $as_echo "$ac_res" >&6; }
10417 as_val=`eval 'as_val=${'$as_ac_Header'}
10418 $as_echo "$as_val"'`
10419 if test "x$as_val" = x""yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10430 # netinet/in.h is included first.
10432 for ac_header in netinet/in.h
10434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 $as_echo_n "checking for $ac_header... " >&6; }
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439 $as_echo_n "(cached) " >&6
10441 ac_res=`eval 'as_val=${'$as_ac_Header'}
10442 $as_echo "$as_val"'`
10443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10444 $as_echo "$ac_res" >&6; }
10446 # Is the header compilable?
10447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10448 $as_echo_n "checking $ac_header usability... " >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 #include <$ac_header>
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 $as_echo "$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 $as_echo_n "checking $ac_header presence... " >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <$ac_header>
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev/null && {
10513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10516 ac_header_preproc=yes
10518 $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_preproc=no
10524 rm -f conftest.err conftest.$ac_ext
10525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10526 $as_echo "$ac_header_preproc" >&6; }
10528 # So? What about this header?
10529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10535 ac_header_preproc=yes
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10551 ## ---------------------------------------- ##
10552 ## Report this to pgsql-bugs@postgresql.org ##
10553 ## ---------------------------------------- ##
10555 ) | sed "s/^/$as_me: WARNING: /" >&2
10558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 $as_echo_n "checking for $ac_header... " >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 $as_echo_n "(cached) " >&6
10563 eval "$as_ac_Header=\$ac_header_preproc"
10565 ac_res=`eval 'as_val=${'$as_ac_Header'}
10566 $as_echo "$as_val"'`
10567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10568 $as_echo "$ac_res" >&6; }
10571 as_val=`eval 'as_val=${'$as_ac_Header'}
10572 $as_echo "$as_val"'`
10573 if test "x$as_val" = x""yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10583 for ac_header in netinet/tcp.h
10585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10587 $as_echo_n "checking for $ac_header... " >&6; }
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589 $as_echo_n "(cached) " >&6
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 #ifdef HAVE_NETINET_IN_H
10599 #include <netinet/in.h>
10603 #include <$ac_header>
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_compile") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest.$ac_objext; then
10623 eval "$as_ac_Header=yes"
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 eval "$as_ac_Header=no"
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 ac_res=`eval 'as_val=${'$as_ac_Header'}
10634 $as_echo "$as_val"'`
10635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10636 $as_echo "$ac_res" >&6; }
10637 as_val=`eval 'as_val=${'$as_ac_Header'}
10638 $as_echo "$as_val"'`
10639 if test "x$as_val" = x""yes; then
10640 cat >>confdefs.h <<_ACEOF
10641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10649 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10651 for ac_header in readline/readline.h
10653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 $as_echo_n "(cached) " >&6
10660 ac_res=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10665 # Is the header compilable?
10666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 $as_echo_n "checking $ac_header usability... " >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 $ac_includes_default
10675 #include <$ac_header>
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_compile") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest.$ac_objext; then
10695 ac_header_compiler=yes
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_header_compiler=no
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 $as_echo "$ac_header_compiler" >&6; }
10707 # Is the header present?
10708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 $as_echo_n "checking $ac_header presence... " >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 #include <$ac_header>
10718 if { (ac_try="$ac_cpp conftest.$ac_ext"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } >/dev/null && {
10732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10735 ac_header_preproc=yes
10737 $as_echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10740 ac_header_preproc=no
10743 rm -f conftest.err conftest.$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 $as_echo "$ac_header_preproc" >&6; }
10747 # So? What about this header?
10748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10754 ac_header_preproc=yes
10757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10770 ## ---------------------------------------- ##
10771 ## Report this to pgsql-bugs@postgresql.org ##
10772 ## ---------------------------------------- ##
10774 ) | sed "s/^/$as_me: WARNING: /" >&2
10777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10778 $as_echo_n "checking for $ac_header... " >&6; }
10779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10780 $as_echo_n "(cached) " >&6
10782 eval "$as_ac_Header=\$ac_header_preproc"
10784 ac_res=`eval 'as_val=${'$as_ac_Header'}
10785 $as_echo "$as_val"'`
10786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10787 $as_echo "$ac_res" >&6; }
10790 as_val=`eval 'as_val=${'$as_ac_Header'}
10791 $as_echo "$as_val"'`
10792 if test "x$as_val" = x""yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10799 for ac_header in readline.h
10801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 $as_echo_n "checking for $ac_header... " >&6; }
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806 $as_echo_n "(cached) " >&6
10808 ac_res=`eval 'as_val=${'$as_ac_Header'}
10809 $as_echo "$as_val"'`
10810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10811 $as_echo "$ac_res" >&6; }
10813 # Is the header compilable?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 $as_echo_n "checking $ac_header usability... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 #include <$ac_header>
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_compile") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest.$ac_objext; then
10843 ac_header_compiler=yes
10845 $as_echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_header_compiler=no
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 $as_echo "$ac_header_compiler" >&6; }
10855 # Is the header present?
10856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 $as_echo_n "checking $ac_header presence... " >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <$ac_header>
10866 if { (ac_try="$ac_cpp conftest.$ac_ext"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } >/dev/null && {
10880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10883 ac_header_preproc=yes
10885 $as_echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10888 ac_header_preproc=no
10891 rm -f conftest.err conftest.$ac_ext
10892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 $as_echo "$ac_header_preproc" >&6; }
10895 # So? What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc=yes
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10918 ## ---------------------------------------- ##
10919 ## Report this to pgsql-bugs@postgresql.org ##
10920 ## ---------------------------------------- ##
10922 ) | sed "s/^/$as_me: WARNING: /" >&2
10925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 $as_echo_n "checking for $ac_header... " >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 $as_echo_n "(cached) " >&6
10930 eval "$as_ac_Header=\$ac_header_preproc"
10932 ac_res=`eval 'as_val=${'$as_ac_Header'}
10933 $as_echo "$as_val"'`
10934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10935 $as_echo "$ac_res" >&6; }
10938 as_val=`eval 'as_val=${'$as_ac_Header'}
10939 $as_echo "$as_val"'`
10940 if test "x$as_val" = x""yes; then
10941 cat >>confdefs.h <<_ACEOF
10942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10946 { { $as_echo "$as_me:$LINENO: error: readline header not found
10947 If you have readline already installed, see config.log for details on the
10948 failure. It is possible the compiler isn't looking in the proper directory.
10949 Use --without-readline to disable readline support." >&5
10950 $as_echo "$as_me: error: readline header not found
10951 If you have readline already installed, see config.log for details on the
10952 failure. It is possible the compiler isn't looking in the proper directory.
10953 Use --without-readline to disable readline support." >&2;}
10954 { (exit 1); exit 1; }; }
10964 for ac_header in readline/history.h
10966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10968 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10969 $as_echo_n "checking for $ac_header... " >&6; }
10970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10971 $as_echo_n "(cached) " >&6
10973 ac_res=`eval 'as_val=${'$as_ac_Header'}
10974 $as_echo "$as_val"'`
10975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10976 $as_echo "$ac_res" >&6; }
10978 # Is the header compilable?
10979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10980 $as_echo_n "checking $ac_header usability... " >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 $ac_includes_default
10988 #include <$ac_header>
10990 rm -f conftest.$ac_objext
10991 if { (ac_try="$ac_compile"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998 (eval "$ac_compile") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest.$ac_objext; then
11008 ac_header_compiler=yes
11010 $as_echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_header_compiler=no
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11018 $as_echo "$ac_header_compiler" >&6; }
11020 # Is the header present?
11021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11022 $as_echo_n "checking $ac_header presence... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <$ac_header>
11031 if { (ac_try="$ac_cpp conftest.$ac_ext"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11037 $as_echo "$ac_try_echo") >&5
11038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } >/dev/null && {
11045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11048 ac_header_preproc=yes
11050 $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_preproc=no
11056 rm -f conftest.err conftest.$ac_ext
11057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058 $as_echo "$ac_header_preproc" >&6; }
11060 # So? What about this header?
11061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067 ac_header_preproc=yes
11070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11073 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11083 ## ---------------------------------------- ##
11084 ## Report this to pgsql-bugs@postgresql.org ##
11085 ## ---------------------------------------- ##
11087 ) | sed "s/^/$as_me: WARNING: /" >&2
11090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11091 $as_echo_n "checking for $ac_header... " >&6; }
11092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093 $as_echo_n "(cached) " >&6
11095 eval "$as_ac_Header=\$ac_header_preproc"
11097 ac_res=`eval 'as_val=${'$as_ac_Header'}
11098 $as_echo "$as_val"'`
11099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11100 $as_echo "$ac_res" >&6; }
11103 as_val=`eval 'as_val=${'$as_ac_Header'}
11104 $as_echo "$as_val"'`
11105 if test "x$as_val" = x""yes; then
11106 cat >>confdefs.h <<_ACEOF
11107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11112 for ac_header in history.h
11114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11117 $as_echo_n "checking for $ac_header... " >&6; }
11118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119 $as_echo_n "(cached) " >&6
11121 ac_res=`eval 'as_val=${'$as_ac_Header'}
11122 $as_echo "$as_val"'`
11123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11124 $as_echo "$ac_res" >&6; }
11126 # Is the header compilable?
11127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11128 $as_echo_n "checking $ac_header usability... " >&6; }
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 $ac_includes_default
11136 #include <$ac_header>
11138 rm -f conftest.$ac_objext
11139 if { (ac_try="$ac_compile"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11145 $as_echo "$ac_try_echo") >&5
11146 (eval "$ac_compile") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && {
11153 test -z "$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11155 } && test -s conftest.$ac_objext; then
11156 ac_header_compiler=yes
11158 $as_echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11161 ac_header_compiler=no
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11166 $as_echo "$ac_header_compiler" >&6; }
11168 # Is the header present?
11169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11170 $as_echo_n "checking $ac_header presence... " >&6; }
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <$ac_header>
11179 if { (ac_try="$ac_cpp conftest.$ac_ext"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11185 $as_echo "$ac_try_echo") >&5
11186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11188 grep -v '^ *+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } >/dev/null && {
11193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11194 test ! -s conftest.err
11196 ac_header_preproc=yes
11198 $as_echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 $as_echo "$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ## ---------------------------------------- ##
11232 ## Report this to pgsql-bugs@postgresql.org ##
11233 ## ---------------------------------------- ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 $as_echo_n "checking for $ac_header... " >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 $as_echo_n "(cached) " >&6
11243 eval "$as_ac_Header=\$ac_header_preproc"
11245 ac_res=`eval 'as_val=${'$as_ac_Header'}
11246 $as_echo "$as_val"'`
11247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11248 $as_echo "$ac_res" >&6; }
11251 as_val=`eval 'as_val=${'$as_ac_Header'}
11252 $as_echo "$as_val"'`
11253 if test "x$as_val" = x""yes; then
11254 cat >>confdefs.h <<_ACEOF
11255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11259 { { $as_echo "$as_me:$LINENO: error: history header not found
11260 If you have readline already installed, see config.log for details on the
11261 failure. It is possible the compiler isn't looking in the proper directory.
11262 Use --without-readline to disable readline support." >&5
11263 $as_echo "$as_me: error: history header not found
11264 If you have readline already installed, see config.log for details on the
11265 failure. It is possible the compiler isn't looking in the proper directory.
11266 Use --without-readline to disable readline support." >&2;}
11267 { (exit 1); exit 1; }; }
11278 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11279 # Some installations of libedit usurp /usr/include/readline/, which seems
11280 # bad practice, since in combined installations readline will have its headers
11281 # there. We might have to resort to AC_EGREP checks to make sure we found
11282 # the proper header...
11284 for ac_header in editline/readline.h
11286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11288 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11289 $as_echo_n "checking for $ac_header... " >&6; }
11290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11291 $as_echo_n "(cached) " >&6
11293 ac_res=`eval 'as_val=${'$as_ac_Header'}
11294 $as_echo "$as_val"'`
11295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11296 $as_echo "$ac_res" >&6; }
11298 # Is the header compilable?
11299 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300 $as_echo_n "checking $ac_header usability... " >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 #include <$ac_header>
11310 rm -f conftest.$ac_objext
11311 if { (ac_try="$ac_compile"
11312 case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11317 $as_echo "$ac_try_echo") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11328 ac_header_compiler=yes
11330 $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11333 ac_header_compiler=no
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11338 $as_echo "$ac_header_compiler" >&6; }
11340 # Is the header present?
11341 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11342 $as_echo_n "checking $ac_header presence... " >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 #include <$ac_header>
11351 if { (ac_try="$ac_cpp conftest.$ac_ext"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11357 $as_echo "$ac_try_echo") >&5
11358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } >/dev/null && {
11365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11368 ac_header_preproc=yes
11370 $as_echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 $as_echo "$ac_header_preproc" >&6; }
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ---------------------------------------- ##
11404 ## Report this to pgsql-bugs@postgresql.org ##
11405 ## ---------------------------------------- ##
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 $as_echo_n "checking for $ac_header... " >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 $as_echo_n "(cached) " >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval 'as_val=${'$as_ac_Header'}
11418 $as_echo "$as_val"'`
11419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11420 $as_echo "$ac_res" >&6; }
11423 as_val=`eval 'as_val=${'$as_ac_Header'}
11424 $as_echo "$as_val"'`
11425 if test "x$as_val" = x""yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432 for ac_header in readline.h
11434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11437 $as_echo_n "checking for $ac_header... " >&6; }
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 $as_echo_n "(cached) " >&6
11441 ac_res=`eval 'as_val=${'$as_ac_Header'}
11442 $as_echo "$as_val"'`
11443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11444 $as_echo "$ac_res" >&6; }
11446 # Is the header compilable?
11447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 $as_echo_n "checking $ac_header usability... " >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 $ac_includes_default
11456 #include <$ac_header>
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11465 $as_echo "$ac_try_echo") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest.$ac_objext; then
11476 ac_header_compiler=yes
11478 $as_echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_header_compiler=no
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11486 $as_echo "$ac_header_compiler" >&6; }
11488 # Is the header present?
11489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11490 $as_echo_n "checking $ac_header presence... " >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <$ac_header>
11499 if { (ac_try="$ac_cpp conftest.$ac_ext"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11505 $as_echo "$ac_try_echo") >&5
11506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null && {
11513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11516 ac_header_preproc=yes
11518 $as_echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_preproc=no
11524 rm -f conftest.err conftest.$ac_ext
11525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11526 $as_echo "$ac_header_preproc" >&6; }
11528 # So? What about this header?
11529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11535 ac_header_preproc=yes
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11551 ## ---------------------------------------- ##
11552 ## Report this to pgsql-bugs@postgresql.org ##
11553 ## ---------------------------------------- ##
11555 ) | sed "s/^/$as_me: WARNING: /" >&2
11558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11559 $as_echo_n "checking for $ac_header... " >&6; }
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561 $as_echo_n "(cached) " >&6
11563 eval "$as_ac_Header=\$ac_header_preproc"
11565 ac_res=`eval 'as_val=${'$as_ac_Header'}
11566 $as_echo "$as_val"'`
11567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11568 $as_echo "$ac_res" >&6; }
11571 as_val=`eval 'as_val=${'$as_ac_Header'}
11572 $as_echo "$as_val"'`
11573 if test "x$as_val" = x""yes; then
11574 cat >>confdefs.h <<_ACEOF
11575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580 for ac_header in readline/readline.h
11582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 $as_echo_n "checking for $ac_header... " >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 $as_echo_n "(cached) " >&6
11589 ac_res=`eval 'as_val=${'$as_ac_Header'}
11590 $as_echo "$as_val"'`
11591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11592 $as_echo "$ac_res" >&6; }
11594 # Is the header compilable?
11595 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11596 $as_echo_n "checking $ac_header usability... " >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 #include <$ac_header>
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613 $as_echo "$ac_try_echo") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest.$ac_objext; then
11624 ac_header_compiler=yes
11626 $as_echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_header_compiler=no
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 $as_echo "$ac_header_compiler" >&6; }
11636 # Is the header present?
11637 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 $as_echo_n "checking $ac_header presence... " >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null && {
11661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11664 ac_header_preproc=yes
11666 $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 ac_header_preproc=no
11672 rm -f conftest.err conftest.$ac_ext
11673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11674 $as_echo "$ac_header_preproc" >&6; }
11676 # So? What about this header?
11677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11680 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11683 ac_header_preproc=yes
11686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11687 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11689 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11699 ## ---------------------------------------- ##
11700 ## Report this to pgsql-bugs@postgresql.org ##
11701 ## ---------------------------------------- ##
11703 ) | sed "s/^/$as_me: WARNING: /" >&2
11706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11707 $as_echo_n "checking for $ac_header... " >&6; }
11708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11709 $as_echo_n "(cached) " >&6
11711 eval "$as_ac_Header=\$ac_header_preproc"
11713 ac_res=`eval 'as_val=${'$as_ac_Header'}
11714 $as_echo "$as_val"'`
11715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716 $as_echo "$ac_res" >&6; }
11719 as_val=`eval 'as_val=${'$as_ac_Header'}
11720 $as_echo "$as_val"'`
11721 if test "x$as_val" = x""yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727 { { $as_echo "$as_me:$LINENO: error: readline header not found
11728 If you have libedit already installed, see config.log for details on the
11729 failure. It is possible the compiler isn't looking in the proper directory.
11730 Use --without-readline to disable libedit support." >&5
11731 $as_echo "$as_me: error: readline header not found
11732 If you have libedit already installed, see config.log for details on the
11733 failure. It is possible the compiler isn't looking in the proper directory.
11734 Use --without-readline to disable libedit support." >&2;}
11735 { (exit 1); exit 1; }; }
11748 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11749 # not be there at all. Hence, don't complain if not found. We must check
11750 # though, since in yet other versions it is an independent header.
11752 for ac_header in editline/history.h
11754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11757 $as_echo_n "checking for $ac_header... " >&6; }
11758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 $as_echo_n "(cached) " >&6
11761 ac_res=`eval 'as_val=${'$as_ac_Header'}
11762 $as_echo "$as_val"'`
11763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11764 $as_echo "$ac_res" >&6; }
11766 # Is the header compilable?
11767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11768 $as_echo_n "checking $ac_header usability... " >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 $ac_includes_default
11776 #include <$ac_header>
11778 rm -f conftest.$ac_objext
11779 if { (ac_try="$ac_compile"
11780 case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11785 $as_echo "$ac_try_echo") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_header_compiler=yes
11798 $as_echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_header_compiler=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 $as_echo "$ac_header_compiler" >&6; }
11808 # Is the header present?
11809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11810 $as_echo_n "checking $ac_header presence... " >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <$ac_header>
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } >/dev/null && {
11833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11836 ac_header_preproc=yes
11838 $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_header_preproc=no
11844 rm -f conftest.err conftest.$ac_ext
11845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11846 $as_echo "$ac_header_preproc" >&6; }
11848 # So? What about this header?
11849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11855 ac_header_preproc=yes
11858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11871 ## ---------------------------------------- ##
11872 ## Report this to pgsql-bugs@postgresql.org ##
11873 ## ---------------------------------------- ##
11875 ) | sed "s/^/$as_me: WARNING: /" >&2
11878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11879 $as_echo_n "checking for $ac_header... " >&6; }
11880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11881 $as_echo_n "(cached) " >&6
11883 eval "$as_ac_Header=\$ac_header_preproc"
11885 ac_res=`eval 'as_val=${'$as_ac_Header'}
11886 $as_echo "$as_val"'`
11887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11888 $as_echo "$ac_res" >&6; }
11891 as_val=`eval 'as_val=${'$as_ac_Header'}
11892 $as_echo "$as_val"'`
11893 if test "x$as_val" = x""yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900 for ac_header in history.h
11902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 $as_echo_n "checking for $ac_header... " >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 $as_echo_n "(cached) " >&6
11909 ac_res=`eval 'as_val=${'$as_ac_Header'}
11910 $as_echo "$as_val"'`
11911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11912 $as_echo "$ac_res" >&6; }
11914 # Is the header compilable?
11915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11916 $as_echo_n "checking $ac_header usability... " >&6; }
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 $ac_includes_default
11924 #include <$ac_header>
11926 rm -f conftest.$ac_objext
11927 if { (ac_try="$ac_compile"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest.$ac_objext; then
11944 ac_header_compiler=yes
11946 $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_header_compiler=no
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11954 $as_echo "$ac_header_compiler" >&6; }
11956 # Is the header present?
11957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11958 $as_echo_n "checking $ac_header presence... " >&6; }
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 #include <$ac_header>
11967 if { (ac_try="$ac_cpp conftest.$ac_ext"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973 $as_echo "$ac_try_echo") >&5
11974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } >/dev/null && {
11981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11982 test ! -s conftest.err
11984 ac_header_preproc=yes
11986 $as_echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_header_preproc=no
11992 rm -f conftest.err conftest.$ac_ext
11993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11994 $as_echo "$ac_header_preproc" >&6; }
11996 # So? What about this header?
11997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12003 ac_header_preproc=yes
12006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12019 ## ---------------------------------------- ##
12020 ## Report this to pgsql-bugs@postgresql.org ##
12021 ## ---------------------------------------- ##
12023 ) | sed "s/^/$as_me: WARNING: /" >&2
12026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12027 $as_echo_n "checking for $ac_header... " >&6; }
12028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12029 $as_echo_n "(cached) " >&6
12031 eval "$as_ac_Header=\$ac_header_preproc"
12033 ac_res=`eval 'as_val=${'$as_ac_Header'}
12034 $as_echo "$as_val"'`
12035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12036 $as_echo "$ac_res" >&6; }
12039 as_val=`eval 'as_val=${'$as_ac_Header'}
12040 $as_echo "$as_val"'`
12041 if test "x$as_val" = x""yes; then
12042 cat >>confdefs.h <<_ACEOF
12043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048 for ac_header in readline/history.h
12050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12053 $as_echo_n "checking for $ac_header... " >&6; }
12054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12055 $as_echo_n "(cached) " >&6
12057 ac_res=`eval 'as_val=${'$as_ac_Header'}
12058 $as_echo "$as_val"'`
12059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12060 $as_echo "$ac_res" >&6; }
12062 # Is the header compilable?
12063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12064 $as_echo_n "checking $ac_header usability... " >&6; }
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12071 $ac_includes_default
12072 #include <$ac_header>
12074 rm -f conftest.$ac_objext
12075 if { (ac_try="$ac_compile"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_compile") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } && {
12089 test -z "$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 } && test -s conftest.$ac_objext; then
12092 ac_header_compiler=yes
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_header_compiler=no
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12102 $as_echo "$ac_header_compiler" >&6; }
12104 # Is the header present?
12105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12106 $as_echo_n "checking $ac_header presence... " >&6; }
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 #include <$ac_header>
12115 if { (ac_try="$ac_cpp conftest.$ac_ext"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } >/dev/null && {
12129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12132 ac_header_preproc=yes
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_header_preproc=no
12140 rm -f conftest.err conftest.$ac_ext
12141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12142 $as_echo "$ac_header_preproc" >&6; }
12144 # So? What about this header?
12145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12151 ac_header_preproc=yes
12154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12167 ## ---------------------------------------- ##
12168 ## Report this to pgsql-bugs@postgresql.org ##
12169 ## ---------------------------------------- ##
12171 ) | sed "s/^/$as_me: WARNING: /" >&2
12174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 $as_echo_n "checking for $ac_header... " >&6; }
12176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177 $as_echo_n "(cached) " >&6
12179 eval "$as_ac_Header=\$ac_header_preproc"
12181 ac_res=`eval 'as_val=${'$as_ac_Header'}
12182 $as_echo "$as_val"'`
12183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12184 $as_echo "$ac_res" >&6; }
12187 as_val=`eval 'as_val=${'$as_ac_Header'}
12188 $as_echo "$as_val"'`
12189 if test "x$as_val" = x""yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 if test "$with_zlib" = yes; then
12209 if test "${ac_cv_header_zlib_h+set}" = set; then
12210 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12211 $as_echo_n "checking for zlib.h... " >&6; }
12212 if test "${ac_cv_header_zlib_h+set}" = set; then
12213 $as_echo_n "(cached) " >&6
12215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12216 $as_echo "$ac_cv_header_zlib_h" >&6; }
12218 # Is the header compilable?
12219 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12220 $as_echo_n "checking zlib.h usability... " >&6; }
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 $ac_includes_default
12230 rm -f conftest.$ac_objext
12231 if { (ac_try="$ac_compile"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12237 $as_echo "$ac_try_echo") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12248 ac_header_compiler=yes
12250 $as_echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ac_header_compiler=no
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12258 $as_echo "$ac_header_compiler" >&6; }
12260 # Is the header present?
12261 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12262 $as_echo_n "checking zlib.h presence... " >&6; }
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12271 if { (ac_try="$ac_cpp conftest.$ac_ext"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12277 $as_echo "$ac_try_echo") >&5
12278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1 >conftest.err
12282 cat conftest.err >&5
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } >/dev/null && {
12285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12288 ac_header_preproc=yes
12290 $as_echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_header_preproc=no
12296 rm -f conftest.err conftest.$ac_ext
12297 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12298 $as_echo "$ac_header_preproc" >&6; }
12300 # So? What about this header?
12301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12303 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12304 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12305 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12306 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12307 ac_header_preproc=yes
12310 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12311 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12312 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12313 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12314 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12315 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12317 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12319 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12321 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12323 ## ---------------------------------------- ##
12324 ## Report this to pgsql-bugs@postgresql.org ##
12325 ## ---------------------------------------- ##
12327 ) | sed "s/^/$as_me: WARNING: /" >&2
12330 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12331 $as_echo_n "checking for zlib.h... " >&6; }
12332 if test "${ac_cv_header_zlib_h+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12335 ac_cv_header_zlib_h=$ac_header_preproc
12337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12338 $as_echo "$ac_cv_header_zlib_h" >&6; }
12341 if test "x$ac_cv_header_zlib_h" = x""yes; then
12344 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12345 If you have zlib already installed, see config.log for details on the
12346 failure. It is possible the compiler isn't looking in the proper directory.
12347 Use --without-zlib to disable zlib support." >&5
12348 $as_echo "$as_me: error: zlib header not found
12349 If you have zlib already installed, see config.log for details on the
12350 failure. It is possible the compiler isn't looking in the proper directory.
12351 Use --without-zlib to disable zlib support." >&2;}
12352 { (exit 1); exit 1; }; }
12358 if test "$with_gssapi" = yes ; then
12360 for ac_header in gssapi/gssapi.h
12362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 $as_echo_n "checking for $ac_header... " >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 $as_echo_n "(cached) " >&6
12369 ac_res=`eval 'as_val=${'$as_ac_Header'}
12370 $as_echo "$as_val"'`
12371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12372 $as_echo "$ac_res" >&6; }
12374 # Is the header compilable?
12375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12376 $as_echo_n "checking $ac_header usability... " >&6; }
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12384 #include <$ac_header>
12386 rm -f conftest.$ac_objext
12387 if { (ac_try="$ac_compile"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
12404 ac_header_compiler=yes
12406 $as_echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_header_compiler=no
12412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12414 $as_echo "$ac_header_compiler" >&6; }
12416 # Is the header present?
12417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12418 $as_echo_n "checking $ac_header presence... " >&6; }
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 #include <$ac_header>
12427 if { (ac_try="$ac_cpp conftest.$ac_ext"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } >/dev/null && {
12441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12444 ac_header_preproc=yes
12446 $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_header_preproc=no
12452 rm -f conftest.err conftest.$ac_ext
12453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454 $as_echo "$ac_header_preproc" >&6; }
12456 # So? What about this header?
12457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463 ac_header_preproc=yes
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12479 ## ---------------------------------------- ##
12480 ## Report this to pgsql-bugs@postgresql.org ##
12481 ## ---------------------------------------- ##
12483 ) | sed "s/^/$as_me: WARNING: /" >&2
12486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12487 $as_echo_n "checking for $ac_header... " >&6; }
12488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489 $as_echo_n "(cached) " >&6
12491 eval "$as_ac_Header=\$ac_header_preproc"
12493 ac_res=`eval 'as_val=${'$as_ac_Header'}
12494 $as_echo "$as_val"'`
12495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12496 $as_echo "$ac_res" >&6; }
12499 as_val=`eval 'as_val=${'$as_ac_Header'}
12500 $as_echo "$as_val"'`
12501 if test "x$as_val" = x""yes; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12508 for ac_header in gssapi.h
12510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12513 $as_echo_n "checking for $ac_header... " >&6; }
12514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12515 $as_echo_n "(cached) " >&6
12517 ac_res=`eval 'as_val=${'$as_ac_Header'}
12518 $as_echo "$as_val"'`
12519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12520 $as_echo "$ac_res" >&6; }
12522 # Is the header compilable?
12523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12524 $as_echo_n "checking $ac_header usability... " >&6; }
12525 cat >conftest.$ac_ext <<_ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 $ac_includes_default
12532 #include <$ac_header>
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541 $as_echo "$ac_try_echo") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 ac_header_compiler=yes
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_compiler=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 $as_echo "$ac_header_compiler" >&6; }
12564 # Is the header present?
12565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566 $as_echo_n "checking $ac_header presence... " >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <$ac_header>
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12581 $as_echo "$ac_try_echo") >&5
12582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12584 grep -v '^ *+' conftest.er1 >conftest.err
12586 cat conftest.err >&5
12587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } >/dev/null && {
12589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590 test ! -s conftest.err
12592 ac_header_preproc=yes
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 ac_header_preproc=no
12600 rm -f conftest.err conftest.$ac_ext
12601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 $as_echo "$ac_header_preproc" >&6; }
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12617 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12627 ## ---------------------------------------- ##
12628 ## Report this to pgsql-bugs@postgresql.org ##
12629 ## ---------------------------------------- ##
12631 ) | sed "s/^/$as_me: WARNING: /" >&2
12634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 $as_echo_n "checking for $ac_header... " >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637 $as_echo_n "(cached) " >&6
12639 eval "$as_ac_Header=\$ac_header_preproc"
12641 ac_res=`eval 'as_val=${'$as_ac_Header'}
12642 $as_echo "$as_val"'`
12643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12644 $as_echo "$ac_res" >&6; }
12647 as_val=`eval 'as_val=${'$as_ac_Header'}
12648 $as_echo "$as_val"'`
12649 if test "x$as_val" = x""yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12655 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12656 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12657 { (exit 1); exit 1; }; }
12668 if test "$with_krb5" = yes ; then
12669 if test "${ac_cv_header_krb5_h+set}" = set; then
12670 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12671 $as_echo_n "checking for krb5.h... " >&6; }
12672 if test "${ac_cv_header_krb5_h+set}" = set; then
12673 $as_echo_n "(cached) " >&6
12675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12676 $as_echo "$ac_cv_header_krb5_h" >&6; }
12678 # Is the header compilable?
12679 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12680 $as_echo_n "checking krb5.h usability... " >&6; }
12681 cat >conftest.$ac_ext <<_ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12687 $ac_includes_default
12690 rm -f conftest.$ac_objext
12691 if { (ac_try="$ac_compile"
12692 case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12697 $as_echo "$ac_try_echo") >&5
12698 (eval "$ac_compile") 2>conftest.er1
12700 grep -v '^ *+' conftest.er1 >conftest.err
12702 cat conftest.err >&5
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && {
12705 test -z "$ac_c_werror_flag" ||
12706 test ! -s conftest.err
12707 } && test -s conftest.$ac_objext; then
12708 ac_header_compiler=yes
12710 $as_echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 ac_header_compiler=no
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12718 $as_echo "$ac_header_compiler" >&6; }
12720 # Is the header present?
12721 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12722 $as_echo_n "checking krb5.h presence... " >&6; }
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12731 if { (ac_try="$ac_cpp conftest.$ac_ext"
12732 case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737 $as_echo "$ac_try_echo") >&5
12738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } >/dev/null && {
12745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12746 test ! -s conftest.err
12748 ac_header_preproc=yes
12750 $as_echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12753 ac_header_preproc=no
12756 rm -f conftest.err conftest.$ac_ext
12757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12758 $as_echo "$ac_header_preproc" >&6; }
12760 # So? What about this header?
12761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12763 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12764 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12765 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12766 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12767 ac_header_preproc=yes
12770 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12771 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12772 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12773 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12775 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12776 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12777 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12778 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12779 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12780 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12781 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12783 ## ---------------------------------------- ##
12784 ## Report this to pgsql-bugs@postgresql.org ##
12785 ## ---------------------------------------- ##
12787 ) | sed "s/^/$as_me: WARNING: /" >&2
12790 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12791 $as_echo_n "checking for krb5.h... " >&6; }
12792 if test "${ac_cv_header_krb5_h+set}" = set; then
12793 $as_echo_n "(cached) " >&6
12795 ac_cv_header_krb5_h=$ac_header_preproc
12797 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12798 $as_echo "$ac_cv_header_krb5_h" >&6; }
12801 if test "x$ac_cv_header_krb5_h" = x""yes; then
12804 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12805 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12806 { (exit 1); exit 1; }; }
12812 if test "$with_openssl" = yes ; then
12813 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12814 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12815 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12816 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12817 $as_echo_n "(cached) " >&6
12819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12820 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12822 # Is the header compilable?
12823 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12824 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 $ac_includes_default
12832 #include <openssl/ssl.h>
12834 rm -f conftest.$ac_objext
12835 if { (ac_try="$ac_compile"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12841 $as_echo "$ac_try_echo") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12852 ac_header_compiler=yes
12854 $as_echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_header_compiler=no
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12862 $as_echo "$ac_header_compiler" >&6; }
12864 # Is the header present?
12865 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12866 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 #include <openssl/ssl.h>
12875 if { (ac_try="$ac_cpp conftest.$ac_ext"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12881 $as_echo "$ac_try_echo") >&5
12882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } >/dev/null && {
12889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12892 ac_header_preproc=yes
12894 $as_echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 ac_header_preproc=no
12900 rm -f conftest.err conftest.$ac_ext
12901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12902 $as_echo "$ac_header_preproc" >&6; }
12904 # So? What about this header?
12905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12907 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12908 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12909 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12910 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12911 ac_header_preproc=yes
12914 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12915 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12916 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12917 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12918 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12919 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12920 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12921 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12922 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12923 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12924 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12925 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12927 ## ---------------------------------------- ##
12928 ## Report this to pgsql-bugs@postgresql.org ##
12929 ## ---------------------------------------- ##
12931 ) | sed "s/^/$as_me: WARNING: /" >&2
12934 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12935 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12936 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12937 $as_echo_n "(cached) " >&6
12939 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12942 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12945 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12948 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12949 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12950 { (exit 1); exit 1; }; }
12954 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12955 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12956 $as_echo_n "checking for openssl/err.h... " >&6; }
12957 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12958 $as_echo_n "(cached) " >&6
12960 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12961 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12963 # Is the header compilable?
12964 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12965 $as_echo_n "checking openssl/err.h usability... " >&6; }
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 $ac_includes_default
12973 #include <openssl/err.h>
12975 rm -f conftest.$ac_objext
12976 if { (ac_try="$ac_compile"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12982 $as_echo "$ac_try_echo") >&5
12983 (eval "$ac_compile") 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && {
12990 test -z "$ac_c_werror_flag" ||
12991 test ! -s conftest.err
12992 } && test -s conftest.$ac_objext; then
12993 ac_header_compiler=yes
12995 $as_echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ac_header_compiler=no
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13003 $as_echo "$ac_header_compiler" >&6; }
13005 # Is the header present?
13006 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13007 $as_echo_n "checking openssl/err.h presence... " >&6; }
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 #include <openssl/err.h>
13016 if { (ac_try="$ac_cpp conftest.$ac_ext"
13017 case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13022 $as_echo "$ac_try_echo") >&5
13023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } >/dev/null && {
13030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13033 ac_header_preproc=yes
13035 $as_echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 ac_header_preproc=no
13041 rm -f conftest.err conftest.$ac_ext
13042 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13043 $as_echo "$ac_header_preproc" >&6; }
13045 # So? What about this header?
13046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13048 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13049 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13050 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13051 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13052 ac_header_preproc=yes
13055 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13056 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13057 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13058 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13059 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13060 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13061 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13062 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13063 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13064 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13065 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13066 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13068 ## ---------------------------------------- ##
13069 ## Report this to pgsql-bugs@postgresql.org ##
13070 ## ---------------------------------------- ##
13072 ) | sed "s/^/$as_me: WARNING: /" >&2
13075 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13076 $as_echo_n "checking for openssl/err.h... " >&6; }
13077 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13078 $as_echo_n "(cached) " >&6
13080 ac_cv_header_openssl_err_h=$ac_header_preproc
13082 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13083 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13086 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13089 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13090 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13091 { (exit 1); exit 1; }; }
13097 if test "$with_pam" = yes ; then
13099 for ac_header in security/pam_appl.h
13101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13104 $as_echo_n "checking for $ac_header... " >&6; }
13105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13106 $as_echo_n "(cached) " >&6
13108 ac_res=`eval 'as_val=${'$as_ac_Header'}
13109 $as_echo "$as_val"'`
13110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13111 $as_echo "$ac_res" >&6; }
13113 # Is the header compilable?
13114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13115 $as_echo_n "checking $ac_header usability... " >&6; }
13116 cat >conftest.$ac_ext <<_ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <$ac_header>
13125 rm -f conftest.$ac_objext
13126 if { (ac_try="$ac_compile"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_compile") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest.$ac_objext; then
13143 ac_header_compiler=yes
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 ac_header_compiler=no
13151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13153 $as_echo "$ac_header_compiler" >&6; }
13155 # Is the header present?
13156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13157 $as_echo_n "checking $ac_header presence... " >&6; }
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 #include <$ac_header>
13166 if { (ac_try="$ac_cpp conftest.$ac_ext"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13172 $as_echo "$ac_try_echo") >&5
13173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13175 grep -v '^ *+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } >/dev/null && {
13180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13181 test ! -s conftest.err
13183 ac_header_preproc=yes
13185 $as_echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_header_preproc=no
13191 rm -f conftest.err conftest.$ac_ext
13192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13193 $as_echo "$ac_header_preproc" >&6; }
13195 # So? What about this header?
13196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13202 ac_header_preproc=yes
13205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13208 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13212 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13218 ## ---------------------------------------- ##
13219 ## Report this to pgsql-bugs@postgresql.org ##
13220 ## ---------------------------------------- ##
13222 ) | sed "s/^/$as_me: WARNING: /" >&2
13225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13226 $as_echo_n "checking for $ac_header... " >&6; }
13227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13228 $as_echo_n "(cached) " >&6
13230 eval "$as_ac_Header=\$ac_header_preproc"
13232 ac_res=`eval 'as_val=${'$as_ac_Header'}
13233 $as_echo "$as_val"'`
13234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13235 $as_echo "$ac_res" >&6; }
13238 as_val=`eval 'as_val=${'$as_ac_Header'}
13239 $as_echo "$as_val"'`
13240 if test "x$as_val" = x""yes; then
13241 cat >>confdefs.h <<_ACEOF
13242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13247 for ac_header in pam/pam_appl.h
13249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 $as_echo_n "checking for $ac_header... " >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254 $as_echo_n "(cached) " >&6
13256 ac_res=`eval 'as_val=${'$as_ac_Header'}
13257 $as_echo "$as_val"'`
13258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13259 $as_echo "$ac_res" >&6; }
13261 # Is the header compilable?
13262 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13263 $as_echo_n "checking $ac_header usability... " >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <$ac_header>
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13280 $as_echo "$ac_try_echo") >&5
13281 (eval "$ac_compile") 2>conftest.er1
13283 grep -v '^ *+' conftest.er1 >conftest.err
13285 cat conftest.err >&5
13286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest.$ac_objext; then
13291 ac_header_compiler=yes
13293 $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 ac_header_compiler=no
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 $as_echo "$ac_header_compiler" >&6; }
13303 # Is the header present?
13304 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13305 $as_echo_n "checking $ac_header presence... " >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <$ac_header>
13314 if { (ac_try="$ac_cpp conftest.$ac_ext"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13320 $as_echo "$ac_try_echo") >&5
13321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } >/dev/null && {
13328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13331 ac_header_preproc=yes
13333 $as_echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 ac_header_preproc=no
13339 rm -f conftest.err conftest.$ac_ext
13340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341 $as_echo "$ac_header_preproc" >&6; }
13343 # So? What about this header?
13344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13347 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13349 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13350 ac_header_preproc=yes
13353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13354 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13356 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13358 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13360 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13364 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13366 ## ---------------------------------------- ##
13367 ## Report this to pgsql-bugs@postgresql.org ##
13368 ## ---------------------------------------- ##
13370 ) | sed "s/^/$as_me: WARNING: /" >&2
13373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13374 $as_echo_n "checking for $ac_header... " >&6; }
13375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13376 $as_echo_n "(cached) " >&6
13378 eval "$as_ac_Header=\$ac_header_preproc"
13380 ac_res=`eval 'as_val=${'$as_ac_Header'}
13381 $as_echo "$as_val"'`
13382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13383 $as_echo "$ac_res" >&6; }
13386 as_val=`eval 'as_val=${'$as_ac_Header'}
13387 $as_echo "$as_val"'`
13388 if test "x$as_val" = x""yes; then
13389 cat >>confdefs.h <<_ACEOF
13390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13394 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13395 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13396 { (exit 1); exit 1; }; }
13407 if test "$with_libxml" = yes ; then
13408 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13409 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13410 $as_echo_n "checking for libxml/parser.h... " >&6; }
13411 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13412 $as_echo_n "(cached) " >&6
13414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13415 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13417 # Is the header compilable?
13418 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13419 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13427 #include <libxml/parser.h>
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13436 $as_echo "$ac_try_echo") >&5
13437 (eval "$ac_compile") 2>conftest.er1
13439 grep -v '^ *+' conftest.er1 >conftest.err
13441 cat conftest.err >&5
13442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } && {
13444 test -z "$ac_c_werror_flag" ||
13445 test ! -s conftest.err
13446 } && test -s conftest.$ac_objext; then
13447 ac_header_compiler=yes
13449 $as_echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_header_compiler=no
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13457 $as_echo "$ac_header_compiler" >&6; }
13459 # Is the header present?
13460 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13461 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13462 cat >conftest.$ac_ext <<_ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 #include <libxml/parser.h>
13470 if { (ac_try="$ac_cpp conftest.$ac_ext"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13476 $as_echo "$ac_try_echo") >&5
13477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } >/dev/null && {
13484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13487 ac_header_preproc=yes
13489 $as_echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_header_preproc=no
13495 rm -f conftest.err conftest.$ac_ext
13496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 $as_echo "$ac_header_preproc" >&6; }
13499 # So? What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13502 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13505 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13506 ac_header_preproc=yes
13509 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13510 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13511 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13512 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13513 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13514 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13515 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13516 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13517 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13518 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13519 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13520 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13522 ## ---------------------------------------- ##
13523 ## Report this to pgsql-bugs@postgresql.org ##
13524 ## ---------------------------------------- ##
13526 ) | sed "s/^/$as_me: WARNING: /" >&2
13529 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13530 $as_echo_n "checking for libxml/parser.h... " >&6; }
13531 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13532 $as_echo_n "(cached) " >&6
13534 ac_cv_header_libxml_parser_h=$ac_header_preproc
13536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13537 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13540 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13543 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13544 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13545 { (exit 1); exit 1; }; }
13551 if test "$with_libxslt" = yes ; then
13552 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13553 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13554 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13555 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13556 $as_echo_n "(cached) " >&6
13558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13559 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13561 # Is the header compilable?
13562 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13563 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13564 cat >conftest.$ac_ext <<_ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 $ac_includes_default
13571 #include <libxslt/xslt.h>
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 ac_header_compiler=yes
13593 $as_echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_header_compiler=no
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13601 $as_echo "$ac_header_compiler" >&6; }
13603 # Is the header present?
13604 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13605 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <libxslt/xslt.h>
13614 if { (ac_try="$ac_cpp conftest.$ac_ext"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13620 $as_echo "$ac_try_echo") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev/null && {
13628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13631 ac_header_preproc=yes
13633 $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_header_preproc=no
13639 rm -f conftest.err conftest.$ac_ext
13640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641 $as_echo "$ac_header_preproc" >&6; }
13643 # So? What about this header?
13644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13646 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13649 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13650 ac_header_preproc=yes
13653 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13654 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13655 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13656 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13657 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13658 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13659 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13660 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13661 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13662 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13663 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13664 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13666 ## ---------------------------------------- ##
13667 ## Report this to pgsql-bugs@postgresql.org ##
13668 ## ---------------------------------------- ##
13670 ) | sed "s/^/$as_me: WARNING: /" >&2
13673 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13674 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13675 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13676 $as_echo_n "(cached) " >&6
13678 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13680 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13681 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13684 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13687 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13688 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13689 { (exit 1); exit 1; }; }
13695 if test "$with_ldap" = yes ; then
13696 if test "$PORTNAME" != "win32"; then
13698 for ac_header in ldap.h
13700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 $as_echo_n "checking for $ac_header... " >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705 $as_echo_n "(cached) " >&6
13707 ac_res=`eval 'as_val=${'$as_ac_Header'}
13708 $as_echo "$as_val"'`
13709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13710 $as_echo "$ac_res" >&6; }
13712 # Is the header compilable?
13713 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13714 $as_echo_n "checking $ac_header usability... " >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13722 #include <$ac_header>
13724 rm -f conftest.$ac_objext
13725 if { (ac_try="$ac_compile"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13731 $as_echo "$ac_try_echo") >&5
13732 (eval "$ac_compile") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest.$ac_objext; then
13742 ac_header_compiler=yes
13744 $as_echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_header_compiler=no
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 $as_echo "$ac_header_compiler" >&6; }
13754 # Is the header present?
13755 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13756 $as_echo_n "checking $ac_header presence... " >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <$ac_header>
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 $as_echo "$ac_try_echo") >&5
13772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } >/dev/null && {
13779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13780 test ! -s conftest.err
13782 ac_header_preproc=yes
13784 $as_echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 ac_header_preproc=no
13790 rm -f conftest.err conftest.$ac_ext
13791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 $as_echo "$ac_header_preproc" >&6; }
13794 # So? What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13798 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13800 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13801 ac_header_preproc=yes
13804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13809 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13811 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13813 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13815 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13817 ## ---------------------------------------- ##
13818 ## Report this to pgsql-bugs@postgresql.org ##
13819 ## ---------------------------------------- ##
13821 ) | sed "s/^/$as_me: WARNING: /" >&2
13824 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 $as_echo_n "checking for $ac_header... " >&6; }
13826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13827 $as_echo_n "(cached) " >&6
13829 eval "$as_ac_Header=\$ac_header_preproc"
13831 ac_res=`eval 'as_val=${'$as_ac_Header'}
13832 $as_echo "$as_val"'`
13833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13834 $as_echo "$ac_res" >&6; }
13837 as_val=`eval 'as_val=${'$as_ac_Header'}
13838 $as_echo "$as_val"'`
13839 if test "x$as_val" = x""yes; then
13840 cat >>confdefs.h <<_ACEOF
13841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13845 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13846 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13847 { (exit 1); exit 1; }; }
13854 for ac_header in winldap.h
13856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13858 $as_echo_n "checking for $ac_header... " >&6; }
13859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13860 $as_echo_n "(cached) " >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13869 #include <windows.h>
13872 #include <$ac_header>
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13881 $as_echo "$ac_try_echo") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 eval "$as_ac_Header=yes"
13894 $as_echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 eval "$as_ac_Header=no"
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902 ac_res=`eval 'as_val=${'$as_ac_Header'}
13903 $as_echo "$as_val"'`
13904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13905 $as_echo "$ac_res" >&6; }
13906 as_val=`eval 'as_val=${'$as_ac_Header'}
13907 $as_echo "$as_val"'`
13908 if test "x$as_val" = x""yes; then
13909 cat >>confdefs.h <<_ACEOF
13910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13915 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13916 { (exit 1); exit 1; }; }
13924 if test "$with_bonjour" = yes ; then
13925 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13926 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13927 $as_echo_n "checking for dns_sd.h... " >&6; }
13928 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13932 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13934 # Is the header compilable?
13935 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13936 $as_echo_n "checking dns_sd.h usability... " >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <dns_sd.h>
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953 $as_echo "$ac_try_echo") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13966 $as_echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 $as_echo "$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13978 $as_echo_n "checking dns_sd.h presence... " >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <dns_sd.h>
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993 $as_echo "$ac_try_echo") >&5
13994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13996 grep -v '^ *+' conftest.er1 >conftest.err
13998 cat conftest.err >&5
13999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } >/dev/null && {
14001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14004 ac_header_preproc=yes
14006 $as_echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_header_preproc=no
14012 rm -f conftest.err conftest.$ac_ext
14013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14014 $as_echo "$ac_header_preproc" >&6; }
14016 # So? What about this header?
14017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14019 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14020 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14022 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14023 ac_header_preproc=yes
14026 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14027 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14028 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14029 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14030 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14031 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14033 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14034 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14035 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14036 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14037 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14039 ## ---------------------------------------- ##
14040 ## Report this to pgsql-bugs@postgresql.org ##
14041 ## ---------------------------------------- ##
14043 ) | sed "s/^/$as_me: WARNING: /" >&2
14046 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14047 $as_echo_n "checking for dns_sd.h... " >&6; }
14048 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14049 $as_echo_n "(cached) " >&6
14051 ac_cv_header_dns_sd_h=$ac_header_preproc
14053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14054 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14057 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14060 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14061 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14062 { (exit 1); exit 1; }; }
14068 # for contrib/uuid-ossp
14069 if test "$with_ossp_uuid" = yes ; then
14071 for ac_header in ossp/uuid.h
14073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14076 $as_echo_n "checking for $ac_header... " >&6; }
14077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14078 $as_echo_n "(cached) " >&6
14080 ac_res=`eval 'as_val=${'$as_ac_Header'}
14081 $as_echo "$as_val"'`
14082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14083 $as_echo "$ac_res" >&6; }
14085 # Is the header compilable?
14086 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087 $as_echo_n "checking $ac_header usability... " >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 $ac_includes_default
14095 #include <$ac_header>
14097 rm -f conftest.$ac_objext
14098 if { (ac_try="$ac_compile"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14109 cat conftest.err >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.$ac_objext; then
14115 ac_header_compiler=yes
14117 $as_echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_header_compiler=no
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14125 $as_echo "$ac_header_compiler" >&6; }
14127 # Is the header present?
14128 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14129 $as_echo_n "checking $ac_header presence... " >&6; }
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 #include <$ac_header>
14138 if { (ac_try="$ac_cpp conftest.$ac_ext"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144 $as_echo "$ac_try_echo") >&5
14145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } >/dev/null && {
14152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14155 ac_header_preproc=yes
14157 $as_echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ac_header_preproc=no
14163 rm -f conftest.err conftest.$ac_ext
14164 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14165 $as_echo "$ac_header_preproc" >&6; }
14167 # So? What about this header?
14168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14171 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14173 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14174 ac_header_preproc=yes
14177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14178 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14180 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14182 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14184 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14188 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14190 ## ---------------------------------------- ##
14191 ## Report this to pgsql-bugs@postgresql.org ##
14192 ## ---------------------------------------- ##
14194 ) | sed "s/^/$as_me: WARNING: /" >&2
14197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 $as_echo_n "checking for $ac_header... " >&6; }
14199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14200 $as_echo_n "(cached) " >&6
14202 eval "$as_ac_Header=\$ac_header_preproc"
14204 ac_res=`eval 'as_val=${'$as_ac_Header'}
14205 $as_echo "$as_val"'`
14206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14207 $as_echo "$ac_res" >&6; }
14210 as_val=`eval 'as_val=${'$as_ac_Header'}
14211 $as_echo "$as_val"'`
14212 if test "x$as_val" = x""yes; then
14213 cat >>confdefs.h <<_ACEOF
14214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 for ac_header in uuid.h
14222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14225 $as_echo_n "checking for $ac_header... " >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227 $as_echo_n "(cached) " >&6
14229 ac_res=`eval 'as_val=${'$as_ac_Header'}
14230 $as_echo "$as_val"'`
14231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14232 $as_echo "$ac_res" >&6; }
14234 # Is the header compilable?
14235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236 $as_echo_n "checking $ac_header usability... " >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 $ac_includes_default
14244 #include <$ac_header>
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14253 $as_echo "$ac_try_echo") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 ac_header_compiler=yes
14266 $as_echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_header_compiler=no
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 $as_echo "$ac_header_compiler" >&6; }
14276 # Is the header present?
14277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14278 $as_echo_n "checking $ac_header presence... " >&6; }
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <$ac_header>
14287 if { (ac_try="$ac_cpp conftest.$ac_ext"
14288 case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14293 $as_echo "$ac_try_echo") >&5
14294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14296 grep -v '^ *+' conftest.er1 >conftest.err
14298 cat conftest.err >&5
14299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } >/dev/null && {
14301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14304 ac_header_preproc=yes
14306 $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 ac_header_preproc=no
14312 rm -f conftest.err conftest.$ac_ext
14313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14314 $as_echo "$ac_header_preproc" >&6; }
14316 # So? What about this header?
14317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14323 ac_header_preproc=yes
14326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14339 ## ---------------------------------------- ##
14340 ## Report this to pgsql-bugs@postgresql.org ##
14341 ## ---------------------------------------- ##
14343 ) | sed "s/^/$as_me: WARNING: /" >&2
14346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 $as_echo_n "checking for $ac_header... " >&6; }
14348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14349 $as_echo_n "(cached) " >&6
14351 eval "$as_ac_Header=\$ac_header_preproc"
14353 ac_res=`eval 'as_val=${'$as_ac_Header'}
14354 $as_echo "$as_val"'`
14355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14356 $as_echo "$ac_res" >&6; }
14359 as_val=`eval 'as_val=${'$as_ac_Header'}
14360 $as_echo "$as_val"'`
14361 if test "x$as_val" = x""yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14367 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14368 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14369 { (exit 1); exit 1; }; }
14380 if test "$PORTNAME" = "win32" ; then
14382 for ac_header in crtdefs.h
14384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 $as_echo_n "checking for $ac_header... " >&6; }
14388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14389 $as_echo_n "(cached) " >&6
14391 ac_res=`eval 'as_val=${'$as_ac_Header'}
14392 $as_echo "$as_val"'`
14393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14394 $as_echo "$ac_res" >&6; }
14396 # Is the header compilable?
14397 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14398 $as_echo_n "checking $ac_header usability... " >&6; }
14399 cat >conftest.$ac_ext <<_ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405 $ac_includes_default
14406 #include <$ac_header>
14408 rm -f conftest.$ac_objext
14409 if { (ac_try="$ac_compile"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416 (eval "$ac_compile") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest.$ac_objext; then
14426 ac_header_compiler=yes
14428 $as_echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 ac_header_compiler=no
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14436 $as_echo "$ac_header_compiler" >&6; }
14438 # Is the header present?
14439 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14440 $as_echo_n "checking $ac_header presence... " >&6; }
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 #include <$ac_header>
14449 if { (ac_try="$ac_cpp conftest.$ac_ext"
14450 case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14455 $as_echo "$ac_try_echo") >&5
14456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14458 grep -v '^ *+' conftest.er1 >conftest.err
14460 cat conftest.err >&5
14461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } >/dev/null && {
14463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14464 test ! -s conftest.err
14466 ac_header_preproc=yes
14468 $as_echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_header_preproc=no
14474 rm -f conftest.err conftest.$ac_ext
14475 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14476 $as_echo "$ac_header_preproc" >&6; }
14478 # So? What about this header?
14479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14482 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14485 ac_header_preproc=yes
14488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14489 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14491 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14493 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14495 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14499 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14501 ## ---------------------------------------- ##
14502 ## Report this to pgsql-bugs@postgresql.org ##
14503 ## ---------------------------------------- ##
14505 ) | sed "s/^/$as_me: WARNING: /" >&2
14508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 $as_echo_n "checking for $ac_header... " >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 $as_echo_n "(cached) " >&6
14513 eval "$as_ac_Header=\$ac_header_preproc"
14515 ac_res=`eval 'as_val=${'$as_ac_Header'}
14516 $as_echo "$as_val"'`
14517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14518 $as_echo "$ac_res" >&6; }
14521 as_val=`eval 'as_val=${'$as_ac_Header'}
14522 $as_echo "$as_val"'`
14523 if test "x$as_val" = x""yes; then
14524 cat >>confdefs.h <<_ACEOF
14525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14535 ## Types, structures, compiler characteristics
14539 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14540 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14541 if test "${ac_cv_c_bigendian+set}" = set; then
14542 $as_echo_n "(cached) " >&6
14544 ac_cv_c_bigendian=unknown
14545 # See if we're dealing with a universal compiler.
14546 cat >conftest.$ac_ext <<_ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #ifndef __APPLE_CC__
14553 not a universal capable compiler
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14565 $as_echo "$ac_try_echo") >&5
14566 (eval "$ac_compile") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest.$ac_objext; then
14577 # Check for potential -arch flags. It is not universal unless
14578 # there are some -arch flags. Note that *ppc* also matches
14579 # ppc64. This check is also rather less than ideal.
14580 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14581 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14584 $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 if test $ac_cv_c_bigendian = unknown; then
14592 # See if sys/param.h defines the BYTE_ORDER macro.
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 #include <sys/types.h>
14600 #include <sys/param.h>
14605 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14606 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14608 bogus endian macros
14615 rm -f conftest.$ac_objext
14616 if { (ac_try="$ac_compile"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14622 $as_echo "$ac_try_echo") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest.$ac_objext; then
14633 # It does; now see whether it defined to BIG_ENDIAN or not.
14634 cat >conftest.$ac_ext <<_ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 #include <sys/types.h>
14641 #include <sys/param.h>
14646 #if BYTE_ORDER != BIG_ENDIAN
14654 rm -f conftest.$ac_objext
14655 if { (ac_try="$ac_compile"
14656 case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14661 $as_echo "$ac_try_echo") >&5
14662 (eval "$ac_compile") 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest.$ac_objext; then
14672 ac_cv_c_bigendian=yes
14674 $as_echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 ac_cv_c_bigendian=no
14680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 $as_echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 if test $ac_cv_c_bigendian = unknown; then
14691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <limits.h>
14703 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14704 bogus endian macros
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14718 $as_echo "$ac_try_echo") >&5
14719 (eval "$ac_compile") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest.$ac_objext; then
14729 # It does; now see whether it defined to _BIG_ENDIAN or not.
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <limits.h>
14741 #ifndef _BIG_ENDIAN
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_cv_c_bigendian=yes
14769 $as_echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 ac_cv_c_bigendian=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 if test $ac_cv_c_bigendian = unknown; then
14786 # Compile a test program.
14787 if test "$cross_compiling" = yes; then
14788 # Try to guess by grepping values from an object file.
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 short int ascii_mm[] =
14796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14797 short int ascii_ii[] =
14798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14799 int use_ascii (int i) {
14800 return ascii_mm[i] + ascii_ii[i];
14802 short int ebcdic_ii[] =
14803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14804 short int ebcdic_mm[] =
14805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14806 int use_ebcdic (int i) {
14807 return ebcdic_mm[i] + ebcdic_ii[i];
14814 return use_ascii (foo) == use_ebcdic (foo);
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14826 $as_echo "$ac_try_echo") >&5
14827 (eval "$ac_compile") 2>conftest.er1
14829 grep -v '^ *+' conftest.er1 >conftest.err
14831 cat conftest.err >&5
14832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } && {
14834 test -z "$ac_c_werror_flag" ||
14835 test ! -s conftest.err
14836 } && test -s conftest.$ac_objext; then
14837 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14838 ac_cv_c_bigendian=yes
14840 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14841 if test "$ac_cv_c_bigendian" = unknown; then
14842 ac_cv_c_bigendian=no
14844 # finding both strings is unlikely to happen, but who knows?
14845 ac_cv_c_bigendian=unknown
14849 $as_echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 $ac_includes_default
14868 /* Are we little or big endian? From Harbison&Steele. */
14872 char c[sizeof (long int)];
14875 return u.c[sizeof (long int) - 1] == 1;
14881 rm -f conftest$ac_exeext
14882 if { (ac_try="$ac_link"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14888 $as_echo "$ac_try_echo") >&5
14889 (eval "$ac_link") 2>&5
14891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14893 { (case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898 $as_echo "$ac_try_echo") >&5
14899 (eval "$ac_try") 2>&5
14901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_cv_c_bigendian=no
14905 $as_echo "$as_me: program exited with status $ac_status" >&5
14906 $as_echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ( exit $ac_status )
14910 ac_cv_c_bigendian=yes
14912 rm -rf conftest.dSYM
14913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14920 $as_echo "$ac_cv_c_bigendian" >&6; }
14921 case $ac_cv_c_bigendian in #(
14923 cat >>confdefs.h <<\_ACEOF
14924 #define WORDS_BIGENDIAN 1
14931 cat >>confdefs.h <<\_ACEOF
14932 #define AC_APPLE_UNIVERSAL_BUILD 1
14937 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14938 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14939 $as_echo "$as_me: error: unknown endianness
14940 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14941 { (exit 1); exit 1; }; } ;;
14944 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14945 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14946 if test "${ac_cv_c_const+set}" = set; then
14947 $as_echo_n "(cached) " >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14959 /* FIXME: Include the comments suggested by Paul. */
14960 #ifndef __cplusplus
14961 /* Ultrix mips cc rejects this. */
14962 typedef int charset[2];
14964 /* SunOS 4.1.1 cc rejects this. */
14965 char const *const *pcpcc;
14967 /* NEC SVR4.0.2 mips cc rejects this. */
14968 struct point {int x, y;};
14969 static struct point const zero = {0,0};
14970 /* AIX XL C 1.02.0.0 rejects this.
14971 It does not let you subtract one const X* pointer from another in
14972 an arm of an if-expression whose if-part is not a constant
14974 const char *g = "string";
14975 pcpcc = &g + (g ? g-g : 0);
14976 /* HPUX 7.0 cc rejects these. */
14978 ppc = (char**) pcpcc;
14979 pcpcc = (char const *const *) ppc;
14980 { /* SCO 3.2v4 cc rejects this. */
14982 char const *s = 0 ? (char *) 0 : (char const *) 0;
14987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14988 int x[] = {25, 17};
14989 const int *foo = &x[0];
14992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14993 typedef const int *iptr;
14997 { /* AIX XL C 1.02.0.0 rejects this saying
14998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14999 struct s { int j; const int *ap[3]; };
15000 struct s *b; b->j = 5;
15002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15003 const int foo = 10;
15004 if (!foo) return 0;
15006 return !cs[0] && !zero.x;
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15020 $as_echo "$ac_try_echo") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15033 $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15042 $as_echo "$ac_cv_c_const" >&6; }
15043 if test $ac_cv_c_const = no; then
15045 cat >>confdefs.h <<\_ACEOF
15051 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15052 $as_echo_n "checking for inline... " >&6; }
15053 if test "${ac_cv_c_inline+set}" = set; then
15054 $as_echo_n "(cached) " >&6
15057 for ac_kw in inline __inline__ __inline; do
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #ifndef __cplusplus
15066 static $ac_kw foo_t static_foo () {return 0; }
15067 $ac_kw foo_t foo () {return 0; }
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15078 $as_echo "$ac_try_echo") >&5
15079 (eval "$ac_compile") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest.$ac_objext; then
15089 ac_cv_c_inline=$ac_kw
15091 $as_echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 test "$ac_cv_c_inline" != no && break
15102 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15103 $as_echo "$ac_cv_c_inline" >&6; }
15106 case $ac_cv_c_inline in
15109 case $ac_cv_c_inline in
15111 *) ac_val=$ac_cv_c_inline;;
15113 cat >>confdefs.h <<_ACEOF
15114 #ifndef __cplusplus
15115 #define inline $ac_val
15121 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15122 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15123 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15124 $as_echo_n "(cached) " >&6
15126 pgac_cv_c_inline_quietly=no
15127 if test "$ac_cv_c_inline" != no; then
15128 pgac_c_inline_save_werror=$ac_c_werror_flag
15129 ac_c_werror_flag=yes
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 static inline int fun () {return 0;}
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_link") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext && {
15163 test "$cross_compiling" = yes ||
15164 $as_test_x conftest$ac_exeext
15166 pgac_cv_c_inline_quietly=yes
15168 $as_echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15174 rm -rf conftest.dSYM
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176 conftest$ac_exeext conftest.$ac_ext
15177 ac_c_werror_flag=$pgac_c_inline_save_werror
15180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15181 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15182 if test "$pgac_cv_c_inline_quietly" != no; then
15184 cat >>confdefs.h <<_ACEOF
15185 #define USE_INLINE 1
15190 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15191 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15192 if test "${ac_cv_c_stringize+set}" = set; then
15193 $as_echo_n "(cached) " >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15203 char *s = x(teststring);
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206 $EGREP "#teststring" >/dev/null 2>&1; then
15207 ac_cv_c_stringize=no
15209 ac_cv_c_stringize=yes
15214 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15215 $as_echo "$ac_cv_c_stringize" >&6; }
15216 if test $ac_cv_c_stringize = yes; then
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_STRINGIZE 1
15225 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15226 $as_echo_n "checking for flexible array members... " >&6; }
15227 if test "${ac_cv_c_flexmember+set}" = set; then
15228 $as_echo_n "(cached) " >&6
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <stdlib.h>
15238 #include <stddef.h>
15239 struct s { int n; double d[]; };
15243 int m = getchar ();
15244 struct s *p = malloc (offsetof (struct s, d)
15245 + m * sizeof (double));
15247 return p->d != (double *) NULL;
15252 rm -f conftest.$ac_objext
15253 if { (ac_try="$ac_compile"
15254 case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15259 $as_echo "$ac_try_echo") >&5
15260 (eval "$ac_compile") 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest.$ac_objext; then
15270 ac_cv_c_flexmember=yes
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_c_flexmember=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15281 $as_echo "$ac_cv_c_flexmember" >&6; }
15282 if test $ac_cv_c_flexmember = yes; then
15284 cat >>confdefs.h <<\_ACEOF
15285 #define FLEXIBLE_ARRAY_MEMBER /**/
15289 cat >>confdefs.h <<\_ACEOF
15290 #define FLEXIBLE_ARRAY_MEMBER 1
15295 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15296 $as_echo_n "checking for signed types... " >&6; }
15297 if test "${pgac_cv_c_signed+set}" = set; then
15298 $as_echo_n "(cached) " >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15310 signed char c; signed short s; signed int i;
15315 rm -f conftest.$ac_objext
15316 if { (ac_try="$ac_compile"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323 (eval "$ac_compile") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest.$ac_objext; then
15333 pgac_cv_c_signed=yes
15335 $as_echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 pgac_cv_c_signed=no
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15344 $as_echo "$pgac_cv_c_signed" >&6; }
15345 if test x"$pgac_cv_c_signed" = xno ; then
15347 cat >>confdefs.h <<\_ACEOF
15348 #define signed /**/
15352 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15353 $as_echo_n "checking for working volatile... " >&6; }
15354 if test "${ac_cv_c_volatile+set}" = set; then
15355 $as_echo_n "(cached) " >&6
15357 cat >conftest.$ac_ext <<_ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15369 int * volatile y = (int *) 0;
15375 rm -f conftest.$ac_objext
15376 if { (ac_try="$ac_compile"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15382 $as_echo "$ac_try_echo") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } && {
15390 test -z "$ac_c_werror_flag" ||
15391 test ! -s conftest.err
15392 } && test -s conftest.$ac_objext; then
15393 ac_cv_c_volatile=yes
15395 $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_cv_c_volatile=no
15401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15404 $as_echo "$ac_cv_c_volatile" >&6; }
15405 if test $ac_cv_c_volatile = no; then
15407 cat >>confdefs.h <<\_ACEOF
15408 #define volatile /**/
15413 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15414 $as_echo_n "checking for __func__... " >&6; }
15415 if test "${pgac_cv_funcname_func_support+set}" = set; then
15416 $as_echo_n "(cached) " >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15428 printf("%s\n", __func__);
15433 rm -f conftest.$ac_objext
15434 if { (ac_try="$ac_compile"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15440 $as_echo "$ac_try_echo") >&5
15441 (eval "$ac_compile") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } && {
15448 test -z "$ac_c_werror_flag" ||
15449 test ! -s conftest.err
15450 } && test -s conftest.$ac_objext; then
15451 pgac_cv_funcname_func_support=yes
15453 $as_echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 pgac_cv_funcname_func_support=no
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15462 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15463 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15465 cat >>confdefs.h <<\_ACEOF
15466 #define HAVE_FUNCNAME__FUNC 1
15470 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15471 $as_echo_n "checking for __FUNCTION__... " >&6; }
15472 if test "${pgac_cv_funcname_function_support+set}" = set; then
15473 $as_echo_n "(cached) " >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15485 printf("%s\n", __FUNCTION__);
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 pgac_cv_funcname_function_support=yes
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 pgac_cv_funcname_function_support=no
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15519 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15520 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE_FUNCNAME__FUNCTION 1
15528 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15529 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15530 if test "${ac_cv_struct_tm+set}" = set; then
15531 $as_echo_n "(cached) " >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <sys/types.h>
15546 int *p = &tm.tm_sec;
15552 rm -f conftest.$ac_objext
15553 if { (ac_try="$ac_compile"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15559 $as_echo "$ac_try_echo") >&5
15560 (eval "$ac_compile") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } && {
15567 test -z "$ac_c_werror_flag" ||
15568 test ! -s conftest.err
15569 } && test -s conftest.$ac_objext; then
15570 ac_cv_struct_tm=time.h
15572 $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_struct_tm=sys/time.h
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15581 $as_echo "$ac_cv_struct_tm" >&6; }
15582 if test $ac_cv_struct_tm = sys/time.h; then
15584 cat >>confdefs.h <<\_ACEOF
15585 #define TM_IN_SYS_TIME 1
15590 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15591 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15592 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15593 $as_echo_n "(cached) " >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 #include <sys/types.h>
15602 #include <$ac_cv_struct_tm>
15608 static struct tm ac_aggr;
15609 if (ac_aggr.tm_zone)
15615 rm -f conftest.$ac_objext
15616 if { (ac_try="$ac_compile"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15622 $as_echo "$ac_try_echo") >&5
15623 (eval "$ac_compile") 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest.$ac_objext; then
15633 ac_cv_member_struct_tm_tm_zone=yes
15635 $as_echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <$ac_cv_struct_tm>
15651 static struct tm ac_aggr;
15652 if (sizeof ac_aggr.tm_zone)
15658 rm -f conftest.$ac_objext
15659 if { (ac_try="$ac_compile"
15660 case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15665 $as_echo "$ac_try_echo") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.$ac_objext; then
15676 ac_cv_member_struct_tm_tm_zone=yes
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_cv_member_struct_tm_tm_zone=no
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15690 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15691 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define HAVE_STRUCT_TM_TM_ZONE 1
15700 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE_TM_ZONE 1
15707 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15708 $as_echo_n "checking for tzname... " >&6; }
15709 if test "${ac_cv_var_tzname+set}" = set; then
15710 $as_echo_n "(cached) " >&6
15712 cat >conftest.$ac_ext <<_ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15719 #ifndef tzname /* For SGI. */
15720 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (ac_try="$ac_link"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15738 $as_echo "$ac_try_echo") >&5
15739 (eval "$ac_link") 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest$ac_exeext && {
15749 test "$cross_compiling" = yes ||
15750 $as_test_x conftest$ac_exeext
15752 ac_cv_var_tzname=yes
15754 $as_echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_cv_var_tzname=no
15760 rm -rf conftest.dSYM
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762 conftest$ac_exeext conftest.$ac_ext
15764 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15765 $as_echo "$ac_cv_var_tzname" >&6; }
15766 if test $ac_cv_var_tzname = yes; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_TZNAME 1
15774 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15775 $as_echo_n "checking for union semun... " >&6; }
15776 if test "${ac_cv_type_union_semun+set}" = set; then
15777 $as_echo_n "(cached) " >&6
15779 ac_cv_type_union_semun=no
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <sys/types.h>
15787 #include <sys/ipc.h>
15788 #include <sys/sem.h>
15793 if (sizeof (union semun))
15799 rm -f conftest.$ac_objext
15800 if { (ac_try="$ac_compile"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807 (eval "$ac_compile") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1 >conftest.err
15811 cat conftest.err >&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest.$ac_objext; then
15817 cat >conftest.$ac_ext <<_ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <sys/types.h>
15824 #include <sys/ipc.h>
15825 #include <sys/sem.h>
15830 if (sizeof ((union semun)))
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15843 $as_echo "$ac_try_echo") >&5
15844 (eval "$ac_compile") 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } && {
15851 test -z "$ac_c_werror_flag" ||
15852 test ! -s conftest.err
15853 } && test -s conftest.$ac_objext; then
15856 $as_echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 ac_cv_type_union_semun=yes
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 $as_echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15873 $as_echo "$ac_cv_type_union_semun" >&6; }
15874 if test "x$ac_cv_type_union_semun" = x""yes; then
15876 cat >>confdefs.h <<_ACEOF
15877 #define HAVE_UNION_SEMUN 1
15883 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15884 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15885 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15886 $as_echo_n "(cached) " >&6
15888 ac_cv_type_struct_sockaddr_un=no
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <sys/types.h>
15896 #ifdef HAVE_SYS_UN_H
15897 #include <sys/un.h>
15904 if (sizeof (struct sockaddr_un))
15910 rm -f conftest.$ac_objext
15911 if { (ac_try="$ac_compile"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_compile") 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } && {
15925 test -z "$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 } && test -s conftest.$ac_objext; then
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15934 #include <sys/types.h>
15935 #ifdef HAVE_SYS_UN_H
15936 #include <sys/un.h>
15943 if (sizeof ((struct sockaddr_un)))
15949 rm -f conftest.$ac_objext
15950 if { (ac_try="$ac_compile"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15956 $as_echo "$ac_try_echo") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1 >conftest.err
15961 cat conftest.err >&5
15962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest.$ac_objext; then
15969 $as_echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_cv_type_struct_sockaddr_un=yes
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 $as_echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15986 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15987 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_UNIX_SOCKETS 1
15995 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15996 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15997 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15998 $as_echo_n "(cached) " >&6
16000 ac_cv_type_struct_sockaddr_storage=no
16001 cat >conftest.$ac_ext <<_ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 #include <sys/types.h>
16008 #ifdef HAVE_SYS_SOCKET_H
16009 #include <sys/socket.h>
16016 if (sizeof (struct sockaddr_storage))
16022 rm -f conftest.$ac_objext
16023 if { (ac_try="$ac_compile"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16029 $as_echo "$ac_try_echo") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16032 grep -v '^ *+' conftest.er1 >conftest.err
16034 cat conftest.err >&5
16035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.$ac_objext; then
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 #include <sys/types.h>
16047 #ifdef HAVE_SYS_SOCKET_H
16048 #include <sys/socket.h>
16055 if (sizeof ((struct sockaddr_storage)))
16061 rm -f conftest.$ac_objext
16062 if { (ac_try="$ac_compile"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069 (eval "$ac_compile") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest.$ac_objext; then
16081 $as_echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_type_struct_sockaddr_storage=yes
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16098 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16099 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16101 cat >>confdefs.h <<_ACEOF
16102 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16108 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16109 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16110 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16111 $as_echo_n "(cached) " >&6
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 #include <sys/types.h>
16120 #ifdef HAVE_SYS_SOCKET_H
16121 #include <sys/socket.h>
16128 static struct sockaddr_storage ac_aggr;
16129 if (ac_aggr.ss_family)
16135 rm -f conftest.$ac_objext
16136 if { (ac_try="$ac_compile"
16137 case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16142 $as_echo "$ac_try_echo") >&5
16143 (eval "$ac_compile") 2>conftest.er1
16145 grep -v '^ *+' conftest.er1 >conftest.err
16147 cat conftest.err >&5
16148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } && {
16150 test -z "$ac_c_werror_flag" ||
16151 test ! -s conftest.err
16152 } && test -s conftest.$ac_objext; then
16153 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16155 $as_echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 #include <sys/types.h>
16165 #ifdef HAVE_SYS_SOCKET_H
16166 #include <sys/socket.h>
16173 static struct sockaddr_storage ac_aggr;
16174 if (sizeof ac_aggr.ss_family)
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16187 $as_echo "$ac_try_echo") >&5
16188 (eval "$ac_compile") 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } && {
16195 test -z "$ac_c_werror_flag" ||
16196 test ! -s conftest.err
16197 } && test -s conftest.$ac_objext; then
16198 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16200 $as_echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_cv_member_struct_sockaddr_storage_ss_family=no
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16212 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16213 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16215 cat >>confdefs.h <<_ACEOF
16216 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16221 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16222 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16223 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16224 $as_echo_n "(cached) " >&6
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 #include <sys/types.h>
16233 #ifdef HAVE_SYS_SOCKET_H
16234 #include <sys/socket.h>
16241 static struct sockaddr_storage ac_aggr;
16242 if (ac_aggr.__ss_family)
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.$ac_objext; then
16266 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16268 $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 cat >conftest.$ac_ext <<_ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16277 #include <sys/types.h>
16278 #ifdef HAVE_SYS_SOCKET_H
16279 #include <sys/socket.h>
16286 static struct sockaddr_storage ac_aggr;
16287 if (sizeof ac_aggr.__ss_family)
16293 rm -f conftest.$ac_objext
16294 if { (ac_try="$ac_compile"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16300 $as_echo "$ac_try_echo") >&5
16301 (eval "$ac_compile") 2>conftest.er1
16303 grep -v '^ *+' conftest.er1 >conftest.err
16305 cat conftest.err >&5
16306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest.$ac_objext; then
16311 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16313 $as_echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_cv_member_struct_sockaddr_storage___ss_family=no
16319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16325 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16326 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16328 cat >>confdefs.h <<_ACEOF
16329 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16334 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16335 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16336 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16337 $as_echo_n "(cached) " >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <sys/types.h>
16346 #ifdef HAVE_SYS_SOCKET_H
16347 #include <sys/socket.h>
16354 static struct sockaddr_storage ac_aggr;
16355 if (ac_aggr.ss_len)
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16368 $as_echo "$ac_try_echo") >&5
16369 (eval "$ac_compile") 2>conftest.er1
16371 grep -v '^ *+' conftest.er1 >conftest.err
16373 cat conftest.err >&5
16374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest.$ac_objext; then
16379 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16381 $as_echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 #include <sys/types.h>
16391 #ifdef HAVE_SYS_SOCKET_H
16392 #include <sys/socket.h>
16399 static struct sockaddr_storage ac_aggr;
16400 if (sizeof ac_aggr.ss_len)
16406 rm -f conftest.$ac_objext
16407 if { (ac_try="$ac_compile"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16413 $as_echo "$ac_try_echo") >&5
16414 (eval "$ac_compile") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest.$ac_objext; then
16424 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16426 $as_echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_cv_member_struct_sockaddr_storage_ss_len=no
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16438 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16439 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16447 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16448 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16449 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16450 $as_echo_n "(cached) " >&6
16452 cat >conftest.$ac_ext <<_ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <sys/types.h>
16459 #ifdef HAVE_SYS_SOCKET_H
16460 #include <sys/socket.h>
16467 static struct sockaddr_storage ac_aggr;
16468 if (ac_aggr.__ss_len)
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16481 $as_echo "$ac_try_echo") >&5
16482 (eval "$ac_compile") 2>conftest.er1
16484 grep -v '^ *+' conftest.er1 >conftest.err
16486 cat conftest.err >&5
16487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } && {
16489 test -z "$ac_c_werror_flag" ||
16490 test ! -s conftest.err
16491 } && test -s conftest.$ac_objext; then
16492 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16494 $as_echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <sys/types.h>
16504 #ifdef HAVE_SYS_SOCKET_H
16505 #include <sys/socket.h>
16512 static struct sockaddr_storage ac_aggr;
16513 if (sizeof ac_aggr.__ss_len)
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526 $as_echo "$ac_try_echo") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest.$ac_objext; then
16537 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16539 $as_echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_member_struct_sockaddr_storage___ss_len=no
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16550 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16551 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16552 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16560 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16561 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16562 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16563 $as_echo_n "(cached) " >&6
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 #include <sys/types.h>
16572 #ifdef HAVE_SYS_SOCKET_H
16573 #include <sys/socket.h>
16580 static struct sockaddr ac_aggr;
16581 if (ac_aggr.sa_len)
16587 rm -f conftest.$ac_objext
16588 if { (ac_try="$ac_compile"
16589 case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16594 $as_echo "$ac_try_echo") >&5
16595 (eval "$ac_compile") 2>conftest.er1
16597 grep -v '^ *+' conftest.er1 >conftest.err
16599 cat conftest.err >&5
16600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest.$ac_objext; then
16605 ac_cv_member_struct_sockaddr_sa_len=yes
16607 $as_echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <sys/types.h>
16617 #ifdef HAVE_SYS_SOCKET_H
16618 #include <sys/socket.h>
16625 static struct sockaddr ac_aggr;
16626 if (sizeof ac_aggr.sa_len)
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639 $as_echo "$ac_try_echo") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest.$ac_objext; then
16650 ac_cv_member_struct_sockaddr_sa_len=yes
16652 $as_echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16655 ac_cv_member_struct_sockaddr_sa_len=no
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16664 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16665 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16667 cat >>confdefs.h <<_ACEOF
16668 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16674 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16675 $as_echo_n "checking for struct addrinfo... " >&6; }
16676 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16677 $as_echo_n "(cached) " >&6
16679 ac_cv_type_struct_addrinfo=no
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <sys/types.h>
16687 #include <sys/socket.h>
16694 if (sizeof (struct addrinfo))
16700 rm -f conftest.$ac_objext
16701 if { (ac_try="$ac_compile"
16702 case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16707 $as_echo "$ac_try_echo") >&5
16708 (eval "$ac_compile") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } && {
16715 test -z "$ac_c_werror_flag" ||
16716 test ! -s conftest.err
16717 } && test -s conftest.$ac_objext; then
16718 cat >conftest.$ac_ext <<_ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <sys/types.h>
16725 #include <sys/socket.h>
16732 if (sizeof ((struct addrinfo)))
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16745 $as_echo "$ac_try_echo") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } && {
16753 test -z "$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 } && test -s conftest.$ac_objext; then
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_cv_type_struct_addrinfo=yes
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 $as_echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16775 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16776 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16778 cat >>confdefs.h <<_ACEOF
16779 #define HAVE_STRUCT_ADDRINFO 1
16786 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16787 $as_echo_n "checking for intptr_t... " >&6; }
16788 if test "${ac_cv_type_intptr_t+set}" = set; then
16789 $as_echo_n "(cached) " >&6
16791 ac_cv_type_intptr_t=no
16792 cat >conftest.$ac_ext <<_ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798 $ac_includes_default
16802 if (sizeof (intptr_t))
16808 rm -f conftest.$ac_objext
16809 if { (ac_try="$ac_compile"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16815 $as_echo "$ac_try_echo") >&5
16816 (eval "$ac_compile") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && {
16823 test -z "$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16825 } && test -s conftest.$ac_objext; then
16826 cat >conftest.$ac_ext <<_ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h. */
16832 $ac_includes_default
16836 if (sizeof ((intptr_t)))
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16849 $as_echo "$ac_try_echo") >&5
16850 (eval "$ac_compile") 2>conftest.er1
16852 grep -v '^ *+' conftest.er1 >conftest.err
16854 cat conftest.err >&5
16855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && {
16857 test -z "$ac_c_werror_flag" ||
16858 test ! -s conftest.err
16859 } && test -s conftest.$ac_objext; then
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_type_intptr_t=yes
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 $as_echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16879 $as_echo "$ac_cv_type_intptr_t" >&6; }
16880 if test "x$ac_cv_type_intptr_t" = x""yes; then
16882 cat >>confdefs.h <<\_ACEOF
16883 #define HAVE_INTPTR_T 1
16887 for ac_type in 'int' 'long int' 'long long int'; do
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 $ac_includes_default
16898 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16905 rm -f conftest.$ac_objext
16906 if { (ac_try="$ac_compile"
16907 case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16912 $as_echo "$ac_try_echo") >&5
16913 (eval "$ac_compile") 2>conftest.er1
16915 grep -v '^ *+' conftest.er1 >conftest.err
16917 cat conftest.err >&5
16918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } && {
16920 test -z "$ac_c_werror_flag" ||
16921 test ! -s conftest.err
16922 } && test -s conftest.$ac_objext; then
16924 cat >>confdefs.h <<_ACEOF
16925 #define intptr_t $ac_type
16930 $as_echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937 test -z "$ac_type" && break
16943 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16944 $as_echo_n "checking for uintptr_t... " >&6; }
16945 if test "${ac_cv_type_uintptr_t+set}" = set; then
16946 $as_echo_n "(cached) " >&6
16948 ac_cv_type_uintptr_t=no
16949 cat >conftest.$ac_ext <<_ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 $ac_includes_default
16959 if (sizeof (uintptr_t))
16965 rm -f conftest.$ac_objext
16966 if { (ac_try="$ac_compile"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16972 $as_echo "$ac_try_echo") >&5
16973 (eval "$ac_compile") 2>conftest.er1
16975 grep -v '^ *+' conftest.er1 >conftest.err
16977 cat conftest.err >&5
16978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest.$ac_objext; then
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 $ac_includes_default
16993 if (sizeof ((uintptr_t)))
16999 rm -f conftest.$ac_objext
17000 if { (ac_try="$ac_compile"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17006 $as_echo "$ac_try_echo") >&5
17007 (eval "$ac_compile") 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest.$ac_objext; then
17019 $as_echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_cv_type_uintptr_t=yes
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17027 $as_echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17036 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17037 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17039 cat >>confdefs.h <<\_ACEOF
17040 #define HAVE_UINTPTR_T 1
17044 for ac_type in 'unsigned int' 'unsigned long int' \
17045 'unsigned long long int'; do
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 $ac_includes_default
17056 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17063 rm -f conftest.$ac_objext
17064 if { (ac_try="$ac_compile"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17070 $as_echo "$ac_try_echo") >&5
17071 (eval "$ac_compile") 2>conftest.er1
17073 grep -v '^ *+' conftest.er1 >conftest.err
17075 cat conftest.err >&5
17076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && {
17078 test -z "$ac_c_werror_flag" ||
17079 test ! -s conftest.err
17080 } && test -s conftest.$ac_objext; then
17082 cat >>confdefs.h <<_ACEOF
17083 #define uintptr_t $ac_type
17088 $as_echo "$as_me: failed program was:" >&5
17089 sed 's/^/| /' conftest.$ac_ext >&5
17094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17095 test -z "$ac_type" && break
17101 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17102 $as_echo_n "checking for long long int... " >&6; }
17103 if test "${ac_cv_type_long_long_int+set}" = set; then
17104 $as_echo_n "(cached) " >&6
17106 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 /* For now, do not test the preprocessor; as of 2007 there are too many
17114 implementations with broken preprocessors. Perhaps this can
17115 be revisited in 2012. In the meantime, code should not expect
17116 #if to work with literals wider than 32 bits. */
17117 /* Test literals. */
17118 long long int ll = 9223372036854775807ll;
17119 long long int nll = -9223372036854775807LL;
17120 unsigned long long int ull = 18446744073709551615ULL;
17121 /* Test constant expressions. */
17122 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17124 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17130 /* Test availability of runtime routines for shift and division. */
17131 long long int llmax = 9223372036854775807ll;
17132 unsigned long long int ullmax = 18446744073709551615ull;
17133 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17134 | (llmax / ll) | (llmax % ll)
17135 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17136 | (ullmax / ull) | (ullmax % ull));
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17149 $as_echo "$ac_try_echo") >&5
17150 (eval "$ac_link") 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } && {
17157 test -z "$ac_c_werror_flag" ||
17158 test ! -s conftest.err
17159 } && test -s conftest$ac_exeext && {
17160 test "$cross_compiling" = yes ||
17161 $as_test_x conftest$ac_exeext
17163 if test "$cross_compiling" = yes; then
17164 ac_cv_type_long_long_int=yes
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 #include <limits.h>
17175 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17176 # define LLONG_MAX (HALF - 1 + HALF)
17181 long long int n = 1;
17185 long long int m = n << i;
17188 if (LLONG_MAX / 2 < m)
17196 rm -f conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17203 $as_echo "$ac_try_echo") >&5
17204 (eval "$ac_link") 2>&5
17206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17208 { (case "(($ac_try" in
17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210 *) ac_try_echo=$ac_try;;
17212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17213 $as_echo "$ac_try_echo") >&5
17214 (eval "$ac_try") 2>&5
17216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_type_long_long_int=yes
17220 $as_echo "$as_me: program exited with status $ac_status" >&5
17221 $as_echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 ( exit $ac_status )
17225 ac_cv_type_long_long_int=no
17227 rm -rf conftest.dSYM
17228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17233 $as_echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 ac_cv_type_long_long_int=no
17239 rm -rf conftest.dSYM
17240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17241 conftest$ac_exeext conftest.$ac_ext
17243 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17244 $as_echo "$ac_cv_type_long_long_int" >&6; }
17245 if test $ac_cv_type_long_long_int = yes; then
17247 cat >>confdefs.h <<\_ACEOF
17248 #define HAVE_LONG_LONG_INT 1
17254 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17255 $as_echo_n "checking for locale_t... " >&6; }
17256 if test "${pgac_cv_type_locale_t+set}" = set; then
17257 $as_echo_n "(cached) " >&6
17259 cat >conftest.$ac_ext <<_ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 #include <locale.h>
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283 (eval "$ac_compile") 2>conftest.er1
17285 grep -v '^ *+' conftest.er1 >conftest.err
17287 cat conftest.err >&5
17288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest.$ac_objext; then
17293 pgac_cv_type_locale_t=yes
17295 $as_echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 #include <xlocale.h>
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321 $as_echo "$ac_try_echo") >&5
17322 (eval "$ac_compile") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest.$ac_objext; then
17332 pgac_cv_type_locale_t='yes (in xlocale.h)'
17334 $as_echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 pgac_cv_type_locale_t=no
17340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17346 $as_echo "$pgac_cv_type_locale_t" >&6; }
17347 if test "$pgac_cv_type_locale_t" != no; then
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_LOCALE_T 1
17354 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17356 cat >>confdefs.h <<\_ACEOF
17357 #define LOCALE_T_IN_XLOCALE 1
17362 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17363 $as_echo_n "checking for struct cmsgcred... " >&6; }
17364 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17365 $as_echo_n "(cached) " >&6
17367 ac_cv_type_struct_cmsgcred=no
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <sys/socket.h>
17375 #ifdef HAVE_SYS_UCRED_H
17376 #include <sys/ucred.h>
17382 if (sizeof (struct cmsgcred))
17388 rm -f conftest.$ac_objext
17389 if { (ac_try="$ac_compile"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17395 $as_echo "$ac_try_echo") >&5
17396 (eval "$ac_compile") 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest.$ac_objext; then
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 #include <sys/socket.h>
17413 #ifdef HAVE_SYS_UCRED_H
17414 #include <sys/ucred.h>
17420 if (sizeof ((struct cmsgcred)))
17426 rm -f conftest.$ac_objext
17427 if { (ac_try="$ac_compile"
17428 case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17433 $as_echo "$ac_try_echo") >&5
17434 (eval "$ac_compile") 2>conftest.er1
17436 grep -v '^ *+' conftest.er1 >conftest.err
17438 cat conftest.err >&5
17439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && {
17441 test -z "$ac_c_werror_flag" ||
17442 test ! -s conftest.err
17443 } && test -s conftest.$ac_objext; then
17446 $as_echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17449 ac_cv_type_struct_cmsgcred=yes
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17454 $as_echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17462 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17463 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17464 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17466 cat >>confdefs.h <<_ACEOF
17467 #define HAVE_STRUCT_CMSGCRED 1
17474 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17475 $as_echo_n "checking for struct option... " >&6; }
17476 if test "${ac_cv_type_struct_option+set}" = set; then
17477 $as_echo_n "(cached) " >&6
17479 ac_cv_type_struct_option=no
17480 cat >conftest.$ac_ext <<_ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17486 #ifdef HAVE_GETOPT_H
17487 #include <getopt.h>
17493 if (sizeof (struct option))
17499 rm -f conftest.$ac_objext
17500 if { (ac_try="$ac_compile"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17506 $as_echo "$ac_try_echo") >&5
17507 (eval "$ac_compile") 2>conftest.er1
17509 grep -v '^ *+' conftest.er1 >conftest.err
17511 cat conftest.err >&5
17512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } && {
17514 test -z "$ac_c_werror_flag" ||
17515 test ! -s conftest.err
17516 } && test -s conftest.$ac_objext; then
17517 cat >conftest.$ac_ext <<_ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #ifdef HAVE_GETOPT_H
17524 #include <getopt.h>
17530 if (sizeof ((struct option)))
17536 rm -f conftest.$ac_objext
17537 if { (ac_try="$ac_compile"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17543 $as_echo "$ac_try_echo") >&5
17544 (eval "$ac_compile") 2>conftest.er1
17546 grep -v '^ *+' conftest.er1 >conftest.err
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } && {
17551 test -z "$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 } && test -s conftest.$ac_objext; then
17556 $as_echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_cv_type_struct_option=yes
17562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 $as_echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17573 $as_echo "$ac_cv_type_struct_option" >&6; }
17574 if test "x$ac_cv_type_struct_option" = x""yes; then
17576 cat >>confdefs.h <<_ACEOF
17577 #define HAVE_STRUCT_OPTION 1
17584 if test "$with_zlib" = yes; then
17585 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17586 # did not). While we could work around the lack of z_streamp, it
17587 # seems unwise to encourage people to use such old zlib versions...
17588 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17589 $as_echo_n "checking for z_streamp... " >&6; }
17590 if test "${ac_cv_type_z_streamp+set}" = set; then
17591 $as_echo_n "(cached) " >&6
17593 ac_cv_type_z_streamp=no
17594 cat >conftest.$ac_ext <<_ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17605 if (sizeof (z_streamp))
17611 rm -f conftest.$ac_objext
17612 if { (ac_try="$ac_compile"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17618 $as_echo "$ac_try_echo") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } && {
17626 test -z "$ac_c_werror_flag" ||
17627 test ! -s conftest.err
17628 } && test -s conftest.$ac_objext; then
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17640 if (sizeof ((z_streamp)))
17646 rm -f conftest.$ac_objext
17647 if { (ac_try="$ac_compile"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17653 $as_echo "$ac_try_echo") >&5
17654 (eval "$ac_compile") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } && {
17661 test -z "$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 } && test -s conftest.$ac_objext; then
17666 $as_echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_cv_type_z_streamp=yes
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 $as_echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17683 $as_echo "$ac_cv_type_z_streamp" >&6; }
17684 if test "x$ac_cv_type_z_streamp" = x""yes; then
17687 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17688 Use --without-zlib to disable zlib support." >&5
17689 $as_echo "$as_me: error: zlib version is too old
17690 Use --without-zlib to disable zlib support." >&2;}
17691 { (exit 1); exit 1; }; }
17696 if test "$with_krb5" = yes; then
17697 # Check for differences between MIT and Heimdal (KTH) releases
17698 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17699 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17700 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17701 $as_echo_n "(cached) " >&6
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17714 static krb5_ticket ac_aggr;
17715 if (ac_aggr.enc_part2)
17721 rm -f conftest.$ac_objext
17722 if { (ac_try="$ac_compile"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17728 $as_echo "$ac_try_echo") >&5
17729 (eval "$ac_compile") 2>conftest.er1
17731 grep -v '^ *+' conftest.er1 >conftest.err
17733 cat conftest.err >&5
17734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } && {
17736 test -z "$ac_c_werror_flag" ||
17737 test ! -s conftest.err
17738 } && test -s conftest.$ac_objext; then
17739 ac_cv_member_krb5_ticket_enc_part2=yes
17741 $as_echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17755 static krb5_ticket ac_aggr;
17756 if (sizeof ac_aggr.enc_part2)
17762 rm -f conftest.$ac_objext
17763 if { (ac_try="$ac_compile"
17764 case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17769 $as_echo "$ac_try_echo") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17772 grep -v '^ *+' conftest.er1 >conftest.err
17774 cat conftest.err >&5
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.$ac_objext; then
17780 ac_cv_member_krb5_ticket_enc_part2=yes
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_member_krb5_ticket_enc_part2=no
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17794 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17795 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_KRB5_TICKET_ENC_PART2 1
17803 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17804 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17805 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17806 $as_echo_n "(cached) " >&6
17808 cat >conftest.$ac_ext <<_ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17819 static krb5_ticket ac_aggr;
17820 if (ac_aggr.client)
17826 rm -f conftest.$ac_objext
17827 if { (ac_try="$ac_compile"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17833 $as_echo "$ac_try_echo") >&5
17834 (eval "$ac_compile") 2>conftest.er1
17836 grep -v '^ *+' conftest.er1 >conftest.err
17838 cat conftest.err >&5
17839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } && {
17841 test -z "$ac_c_werror_flag" ||
17842 test ! -s conftest.err
17843 } && test -s conftest.$ac_objext; then
17844 ac_cv_member_krb5_ticket_client=yes
17846 $as_echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17860 static krb5_ticket ac_aggr;
17861 if (sizeof ac_aggr.client)
17867 rm -f conftest.$ac_objext
17868 if { (ac_try="$ac_compile"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17874 $as_echo "$ac_try_echo") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest.$ac_objext; then
17885 ac_cv_member_krb5_ticket_client=yes
17887 $as_echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17890 ac_cv_member_krb5_ticket_client=no
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17899 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17900 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_KRB5_TICKET_CLIENT 1
17908 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17909 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17910 { (exit 1); exit 1; }; }
17915 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17916 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17917 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17918 $as_echo_n "(cached) " >&6
17920 cat >conftest.$ac_ext <<_ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17931 static krb5_error ac_aggr;
17932 if (ac_aggr.text.data)
17938 rm -f conftest.$ac_objext
17939 if { (ac_try="$ac_compile"
17940 case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17945 $as_echo "$ac_try_echo") >&5
17946 (eval "$ac_compile") 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } && {
17953 test -z "$ac_c_werror_flag" ||
17954 test ! -s conftest.err
17955 } && test -s conftest.$ac_objext; then
17956 ac_cv_member_krb5_error_text_data=yes
17958 $as_echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17972 static krb5_error ac_aggr;
17973 if (sizeof ac_aggr.text.data)
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17986 $as_echo "$ac_try_echo") >&5
17987 (eval "$ac_compile") 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } && {
17994 test -z "$ac_c_werror_flag" ||
17995 test ! -s conftest.err
17996 } && test -s conftest.$ac_objext; then
17997 ac_cv_member_krb5_error_text_data=yes
17999 $as_echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_member_krb5_error_text_data=no
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18011 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18012 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18014 cat >>confdefs.h <<_ACEOF
18015 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18020 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18021 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18022 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18023 $as_echo_n "(cached) " >&6
18025 cat >conftest.$ac_ext <<_ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18036 static krb5_error ac_aggr;
18037 if (ac_aggr.e_data)
18043 rm -f conftest.$ac_objext
18044 if { (ac_try="$ac_compile"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_compile") 2>conftest.er1
18053 grep -v '^ *+' conftest.er1 >conftest.err
18055 cat conftest.err >&5
18056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } && {
18058 test -z "$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 } && test -s conftest.$ac_objext; then
18061 ac_cv_member_krb5_error_e_data=yes
18063 $as_echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 cat >conftest.$ac_ext <<_ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18077 static krb5_error ac_aggr;
18078 if (sizeof ac_aggr.e_data)
18084 rm -f conftest.$ac_objext
18085 if { (ac_try="$ac_compile"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18091 $as_echo "$ac_try_echo") >&5
18092 (eval "$ac_compile") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && {
18099 test -z "$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 } && test -s conftest.$ac_objext; then
18102 ac_cv_member_krb5_error_e_data=yes
18104 $as_echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_cv_member_krb5_error_e_data=no
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18116 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18117 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_KRB5_ERROR_E_DATA 1
18125 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18126 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18127 { (exit 1); exit 1; }; }
18133 # Win32 requires headers to be loaded for __stdcall, so can't use
18134 # AC_CHECK_FUNCS here.
18135 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18136 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18137 cat >conftest.$ac_ext <<_ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18147 krb5_free_unparsed_name(NULL,NULL);
18152 rm -f conftest.$ac_objext conftest$ac_exeext
18153 if { (ac_try="$ac_link"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160 (eval "$ac_link") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest$ac_exeext && {
18170 test "$cross_compiling" = yes ||
18171 $as_test_x conftest$ac_exeext
18174 cat >>confdefs.h <<\_ACEOF
18175 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18178 { $as_echo "$as_me:$LINENO: result: yes" >&5
18179 $as_echo "yes" >&6; }
18181 $as_echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 { $as_echo "$as_me:$LINENO: result: no" >&5
18185 $as_echo "no" >&6; }
18188 rm -rf conftest.dSYM
18189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18190 conftest$ac_exeext conftest.$ac_ext
18193 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18196 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18197 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18198 cat >conftest.$ac_ext <<_ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18208 int a = 0; int *p = &a; int r;
18209 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18214 rm -f conftest.$ac_objext
18215 if { (ac_try="$ac_compile"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18221 $as_echo "$ac_try_echo") >&5
18222 (eval "$ac_compile") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest.$ac_objext; then
18232 pgac_cv_have_ppc_mutex_hint=yes
18234 $as_echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 pgac_cv_have_ppc_mutex_hint=no
18240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18242 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18243 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18245 cat >>confdefs.h <<\_ACEOF
18246 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18253 # Check largefile support. You might think this is a system service not a
18254 # compiler characteristic, but you'd be wrong. We must check this before
18255 # probing existence of related functions such as fseeko, since the largefile
18256 # defines can affect what is generated for that.
18257 if test "$PORTNAME" != "win32"; then
18258 # Check whether --enable-largefile was given.
18259 if test "${enable_largefile+set}" = set; then
18260 enableval=$enable_largefile;
18263 if test "$enable_largefile" != no; then
18265 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18266 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18267 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18268 $as_echo_n "(cached) " >&6
18270 ac_cv_sys_largefile_CC=no
18271 if test "$GCC" != yes; then
18274 # IRIX 6.2 and later do not support large files by default,
18275 # so use the C compiler's -n32 option if that helps.
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 #include <sys/types.h>
18283 /* Check that off_t can represent 2**63 - 1 correctly.
18284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18285 since some C++ compilers masquerading as C compilers
18286 incorrectly reject 9223372036854775807. */
18287 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18289 && LARGE_OFF_T % 2147483647 == 1)
18299 rm -f conftest.$ac_objext
18300 if { (ac_try="$ac_compile"
18301 case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18306 $as_echo "$ac_try_echo") >&5
18307 (eval "$ac_compile") 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest.$ac_objext; then
18319 $as_echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18325 rm -f core conftest.err conftest.$ac_objext
18327 rm -f conftest.$ac_objext
18328 if { (ac_try="$ac_compile"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18334 $as_echo "$ac_try_echo") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } && {
18342 test -z "$ac_c_werror_flag" ||
18343 test ! -s conftest.err
18344 } && test -s conftest.$ac_objext; then
18345 ac_cv_sys_largefile_CC=' -n32'; break
18347 $as_echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18353 rm -f core conftest.err conftest.$ac_objext
18357 rm -f conftest.$ac_ext
18360 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18361 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18362 if test "$ac_cv_sys_largefile_CC" != no; then
18363 CC=$CC$ac_cv_sys_largefile_CC
18366 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18367 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18369 $as_echo_n "(cached) " >&6
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 #include <sys/types.h>
18379 /* Check that off_t can represent 2**63 - 1 correctly.
18380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18381 since some C++ compilers masquerading as C compilers
18382 incorrectly reject 9223372036854775807. */
18383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18385 && LARGE_OFF_T % 2147483647 == 1)
18395 rm -f conftest.$ac_objext
18396 if { (ac_try="$ac_compile"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18402 $as_echo "$ac_try_echo") >&5
18403 (eval "$ac_compile") 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } && {
18410 test -z "$ac_c_werror_flag" ||
18411 test ! -s conftest.err
18412 } && test -s conftest.$ac_objext; then
18413 ac_cv_sys_file_offset_bits=no; break
18415 $as_echo "$as_me: failed program was:" >&5
18416 sed 's/^/| /' conftest.$ac_ext >&5
18421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #define _FILE_OFFSET_BITS 64
18429 #include <sys/types.h>
18430 /* Check that off_t can represent 2**63 - 1 correctly.
18431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18432 since some C++ compilers masquerading as C compilers
18433 incorrectly reject 9223372036854775807. */
18434 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18436 && LARGE_OFF_T % 2147483647 == 1)
18446 rm -f conftest.$ac_objext
18447 if { (ac_try="$ac_compile"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18453 $as_echo "$ac_try_echo") >&5
18454 (eval "$ac_compile") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } && {
18461 test -z "$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 } && test -s conftest.$ac_objext; then
18464 ac_cv_sys_file_offset_bits=64; break
18466 $as_echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473 ac_cv_sys_file_offset_bits=unknown
18477 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18478 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18479 case $ac_cv_sys_file_offset_bits in #(
18482 cat >>confdefs.h <<_ACEOF
18483 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18488 if test $ac_cv_sys_file_offset_bits = unknown; then
18489 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18490 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18491 if test "${ac_cv_sys_large_files+set}" = set; then
18492 $as_echo_n "(cached) " >&6
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18501 #include <sys/types.h>
18502 /* Check that off_t can represent 2**63 - 1 correctly.
18503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18504 since some C++ compilers masquerading as C compilers
18505 incorrectly reject 9223372036854775807. */
18506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18508 && LARGE_OFF_T % 2147483647 == 1)
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18525 $as_echo "$ac_try_echo") >&5
18526 (eval "$ac_compile") 2>conftest.er1
18528 grep -v '^ *+' conftest.er1 >conftest.err
18530 cat conftest.err >&5
18531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } && {
18533 test -z "$ac_c_werror_flag" ||
18534 test ! -s conftest.err
18535 } && test -s conftest.$ac_objext; then
18536 ac_cv_sys_large_files=no; break
18538 $as_echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 #define _LARGE_FILES 1
18552 #include <sys/types.h>
18553 /* Check that off_t can represent 2**63 - 1 correctly.
18554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18555 since some C++ compilers masquerading as C compilers
18556 incorrectly reject 9223372036854775807. */
18557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18559 && LARGE_OFF_T % 2147483647 == 1)
18569 rm -f conftest.$ac_objext
18570 if { (ac_try="$ac_compile"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18576 $as_echo "$ac_try_echo") >&5
18577 (eval "$ac_compile") 2>conftest.er1
18579 grep -v '^ *+' conftest.er1 >conftest.err
18581 cat conftest.err >&5
18582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } && {
18584 test -z "$ac_c_werror_flag" ||
18585 test ! -s conftest.err
18586 } && test -s conftest.$ac_objext; then
18587 ac_cv_sys_large_files=1; break
18589 $as_echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18596 ac_cv_sys_large_files=unknown
18600 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18601 $as_echo "$ac_cv_sys_large_files" >&6; }
18602 case $ac_cv_sys_large_files in #(
18605 cat >>confdefs.h <<_ACEOF
18606 #define _LARGE_FILES $ac_cv_sys_large_files
18616 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18617 # The cast to long int works around a bug in the HP C Compiler
18618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18620 # This bug is HP SR number 8606223364.
18621 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18622 $as_echo_n "checking size of off_t... " >&6; }
18623 if test "${ac_cv_sizeof_off_t+set}" = set; then
18624 $as_echo_n "(cached) " >&6
18626 if test "$cross_compiling" = yes; then
18627 # Depending upon the size, compute the lo and hi bounds.
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 $ac_includes_default
18638 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18652 $as_echo "$ac_try_echo") >&5
18653 (eval "$ac_compile") 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest.$ac_objext; then
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 $ac_includes_default
18675 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18689 $as_echo "$ac_try_echo") >&5
18690 (eval "$ac_compile") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest.$ac_objext; then
18700 ac_hi=$ac_mid; break
18702 $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_lo=`expr $ac_mid + 1`
18706 if test $ac_lo -le $ac_mid; then
18710 ac_mid=`expr 2 '*' $ac_mid + 1`
18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 $as_echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 $ac_includes_default
18729 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18736 rm -f conftest.$ac_objext
18737 if { (ac_try="$ac_compile"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18743 $as_echo "$ac_try_echo") >&5
18744 (eval "$ac_compile") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest.$ac_objext; then
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 $ac_includes_default
18766 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18773 rm -f conftest.$ac_objext
18774 if { (ac_try="$ac_compile"
18775 case "(($ac_try" in
18776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777 *) ac_try_echo=$ac_try;;
18779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18780 $as_echo "$ac_try_echo") >&5
18781 (eval "$ac_compile") 2>conftest.er1
18783 grep -v '^ *+' conftest.er1 >conftest.err
18785 cat conftest.err >&5
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } && {
18788 test -z "$ac_c_werror_flag" ||
18789 test ! -s conftest.err
18790 } && test -s conftest.$ac_objext; then
18791 ac_lo=$ac_mid; break
18793 $as_echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_hi=`expr '(' $ac_mid ')' - 1`
18797 if test $ac_mid -le $ac_hi; then
18801 ac_mid=`expr 2 '*' $ac_mid`
18804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 $as_echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817 # Binary search between lo and hi bounds.
18818 while test "x$ac_lo" != "x$ac_hi"; do
18819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 $ac_includes_default
18830 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18837 rm -f conftest.$ac_objext
18838 if { (ac_try="$ac_compile"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18844 $as_echo "$ac_try_echo") >&5
18845 (eval "$ac_compile") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest.$ac_objext; then
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 ac_lo=`expr '(' $ac_mid ')' + 1`
18863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18867 '') if test "$ac_cv_type_off_t" = yes; then
18868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18870 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18871 See \`config.log' for more details." >&5
18872 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18873 See \`config.log' for more details." >&2;}
18874 { (exit 77); exit 77; }; }; }
18876 ac_cv_sizeof_off_t=0
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18887 static long int longval () { return (long int) (sizeof (off_t)); }
18888 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18890 #include <stdlib.h>
18895 FILE *f = fopen ("conftest.val", "w");
18898 if (((long int) (sizeof (off_t))) < 0)
18900 long int i = longval ();
18901 if (i != ((long int) (sizeof (off_t))))
18903 fprintf (f, "%ld", i);
18907 unsigned long int i = ulongval ();
18908 if (i != ((long int) (sizeof (off_t))))
18910 fprintf (f, "%lu", i);
18912 /* Do not output a trailing newline, as this causes \r\n confusion
18913 on some platforms. */
18914 return ferror (f) || fclose (f) != 0;
18920 rm -f conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18927 $as_echo "$ac_try_echo") >&5
18928 (eval "$ac_link") 2>&5
18930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18937 $as_echo "$ac_try_echo") >&5
18938 (eval "$ac_try") 2>&5
18940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_cv_sizeof_off_t=`cat conftest.val`
18944 $as_echo "$as_me: program exited with status $ac_status" >&5
18945 $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 ( exit $ac_status )
18949 if test "$ac_cv_type_off_t" = yes; then
18950 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18952 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18953 See \`config.log' for more details." >&5
18954 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18955 See \`config.log' for more details." >&2;}
18956 { (exit 77); exit 77; }; }; }
18958 ac_cv_sizeof_off_t=0
18961 rm -rf conftest.dSYM
18962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18966 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18967 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18971 cat >>confdefs.h <<_ACEOF
18972 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18977 # If we don't have largefile support, can't handle segsize >= 2GB.
18978 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18979 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18980 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18981 { (exit 1); exit 1; }; }
18986 ## Functions, global variables
18989 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18990 $as_echo_n "checking for int timezone... " >&6; }
18991 if test "${pgac_cv_var_int_timezone+set}" = set; then
18992 $as_echo_n "(cached) " >&6
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19006 res = timezone / 60;
19008 res = _timezone / 60;
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021 $as_echo "$ac_try_echo") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext && {
19032 test "$cross_compiling" = yes ||
19033 $as_test_x conftest$ac_exeext
19035 pgac_cv_var_int_timezone=yes
19037 $as_echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 pgac_cv_var_int_timezone=no
19043 rm -rf conftest.dSYM
19044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19045 conftest$ac_exeext conftest.$ac_ext
19047 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19048 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19049 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE_INT_TIMEZONE /**/
19056 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19057 $as_echo_n "checking types of arguments for accept()... " >&6; }
19058 if test "${ac_cv_func_accept_return+set}" = set; then
19059 $as_echo_n "(cached) " >&6
19061 if test "${ac_cv_func_accept_arg1+set}" = set; then
19062 $as_echo_n "(cached) " >&6
19064 if test "${ac_cv_func_accept_arg2+set}" = set; then
19065 $as_echo_n "(cached) " >&6
19067 if test "${ac_cv_func_accept_arg3+set}" = set; then
19068 $as_echo_n "(cached) " >&6
19070 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19071 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19072 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19073 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 #ifdef HAVE_SYS_TYPES_H
19081 #include <sys/types.h>
19083 #ifdef HAVE_SYS_SOCKET_H
19084 #include <sys/socket.h>
19086 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19095 rm -f conftest.$ac_objext
19096 if { (ac_try="$ac_compile"
19097 case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19102 $as_echo "$ac_try_echo") >&5
19103 (eval "$ac_compile") 2>conftest.er1
19105 grep -v '^ *+' conftest.er1 >conftest.err
19107 cat conftest.err >&5
19108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } && {
19110 test -z "$ac_c_werror_flag" ||
19111 test ! -s conftest.err
19112 } && test -s conftest.$ac_objext; then
19113 ac_not_found=no; break 4
19115 $as_echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 if test "$ac_not_found" = yes; then
19127 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19128 $as_echo "$as_me: error: could not determine argument types" >&2;}
19129 { (exit 1); exit 1; }; }
19131 if test "$ac_cv_func_accept_arg3" = "void"; then
19132 ac_cv_func_accept_arg3=int
19142 { $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
19143 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19145 cat >>confdefs.h <<_ACEOF
19146 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19150 cat >>confdefs.h <<_ACEOF
19151 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19155 cat >>confdefs.h <<_ACEOF
19156 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19160 cat >>confdefs.h <<_ACEOF
19161 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19165 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19166 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19167 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19168 $as_echo_n "(cached) " >&6
19170 cat >conftest.$ac_ext <<_ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h. */
19176 #include <sys/time.h>
19180 struct timeval *tp;
19181 struct timezone *tzp;
19182 gettimeofday(tp,tzp);
19187 rm -f conftest.$ac_objext
19188 if { (ac_try="$ac_compile"
19189 case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19194 $as_echo "$ac_try_echo") >&5
19195 (eval "$ac_compile") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest.$ac_objext; then
19205 pgac_cv_func_gettimeofday_1arg=no
19207 $as_echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 pgac_cv_func_gettimeofday_1arg=yes
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19216 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19217 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define GETTIMEOFDAY_1ARG /**/
19247 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19250 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19251 $as_echo_n "checking for $ac_func... " >&6; }
19252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19253 $as_echo_n "(cached) " >&6
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19263 #define $ac_func innocuous_$ac_func
19265 /* System header to define __stub macros and hopefully few prototypes,
19266 which can conflict with char $ac_func (); below.
19267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19268 <limits.h> exists even on freestanding compilers. */
19271 # include <limits.h>
19273 # include <assert.h>
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19285 /* The GNU C library defines this for functions which it implements
19286 to always fail with ENOSYS. Some functions are actually named
19287 something starting with __ and the normal name is an alias. */
19288 #if defined __stub_$ac_func || defined __stub___$ac_func
19295 return $ac_func ();
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19307 $as_echo "$ac_try_echo") >&5
19308 (eval "$ac_link") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && {
19315 test -z "$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 } && test -s conftest$ac_exeext && {
19318 test "$cross_compiling" = yes ||
19319 $as_test_x conftest$ac_exeext
19321 eval "$as_ac_var=yes"
19323 $as_echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 eval "$as_ac_var=no"
19329 rm -rf conftest.dSYM
19330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19331 conftest$ac_exeext conftest.$ac_ext
19333 ac_res=`eval 'as_val=${'$as_ac_var'}
19334 $as_echo "$as_val"'`
19335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19336 $as_echo "$ac_res" >&6; }
19337 as_val=`eval 'as_val=${'$as_ac_var'}
19338 $as_echo "$as_val"'`
19339 if test "x$as_val" = x""yes; then
19340 cat >>confdefs.h <<_ACEOF
19341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19349 for ac_func in fseeko
19351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19353 $as_echo_n "checking for $ac_func... " >&6; }
19354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19355 $as_echo_n "(cached) " >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19365 #define $ac_func innocuous_$ac_func
19367 /* System header to define __stub macros and hopefully few prototypes,
19368 which can conflict with char $ac_func (); below.
19369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19370 <limits.h> exists even on freestanding compilers. */
19373 # include <limits.h>
19375 # include <assert.h>
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19387 /* The GNU C library defines this for functions which it implements
19388 to always fail with ENOSYS. Some functions are actually named
19389 something starting with __ and the normal name is an alias. */
19390 #if defined __stub_$ac_func || defined __stub___$ac_func
19397 return $ac_func ();
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409 $as_echo "$ac_try_echo") >&5
19410 (eval "$ac_link") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext && {
19420 test "$cross_compiling" = yes ||
19421 $as_test_x conftest$ac_exeext
19423 eval "$as_ac_var=yes"
19425 $as_echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 eval "$as_ac_var=no"
19431 rm -rf conftest.dSYM
19432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19433 conftest$ac_exeext conftest.$ac_ext
19435 ac_res=`eval 'as_val=${'$as_ac_var'}
19436 $as_echo "$as_val"'`
19437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19438 $as_echo "$ac_res" >&6; }
19439 as_val=`eval 'as_val=${'$as_ac_var'}
19440 $as_echo "$as_val"'`
19441 if test "x$as_val" = x""yes; then
19442 cat >>confdefs.h <<_ACEOF
19443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19447 case " $LIBOBJS " in
19448 *" $ac_func.$ac_objext "* ) ;;
19449 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19458 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19459 # Mingw uses macros to access Win32 API calls
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_FSEEKO 1
19466 ac_cv_func_fseeko=yes;;
19468 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19469 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19470 if test "${ac_cv_sys_largefile_source+set}" = set; then
19471 $as_echo_n "(cached) " >&6
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 #include <sys/types.h> /* for off_t */
19485 int (*fp) (FILE *, off_t, int) = fseeko;
19486 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19498 $as_echo "$ac_try_echo") >&5
19499 (eval "$ac_link") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && {
19506 test -z "$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 } && test -s conftest$ac_exeext && {
19509 test "$cross_compiling" = yes ||
19510 $as_test_x conftest$ac_exeext
19512 ac_cv_sys_largefile_source=no; break
19514 $as_echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19520 rm -rf conftest.dSYM
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #define _LARGEFILE_SOURCE 1
19530 #include <sys/types.h> /* for off_t */
19535 int (*fp) (FILE *, off_t, int) = fseeko;
19536 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19541 rm -f conftest.$ac_objext conftest$ac_exeext
19542 if { (ac_try="$ac_link"
19543 case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19548 $as_echo "$ac_try_echo") >&5
19549 (eval "$ac_link") 2>conftest.er1
19551 grep -v '^ *+' conftest.er1 >conftest.err
19553 cat conftest.err >&5
19554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && {
19556 test -z "$ac_c_werror_flag" ||
19557 test ! -s conftest.err
19558 } && test -s conftest$ac_exeext && {
19559 test "$cross_compiling" = yes ||
19560 $as_test_x conftest$ac_exeext
19562 ac_cv_sys_largefile_source=1; break
19564 $as_echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19570 rm -rf conftest.dSYM
19571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19572 conftest$ac_exeext conftest.$ac_ext
19573 ac_cv_sys_largefile_source=unknown
19577 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19578 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19579 case $ac_cv_sys_largefile_source in #(
19582 cat >>confdefs.h <<_ACEOF
19583 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19589 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19590 # in glibc 2.1.3, but that breaks too many other things.
19591 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19592 if test $ac_cv_sys_largefile_source != unknown; then
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_FSEEKO 1
19602 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19603 # by calling it, 2009-04-02
19604 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19605 if test "$PORTNAME" != "solaris"; then
19607 for ac_func in posix_fadvise
19609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19610 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19611 $as_echo_n "checking for $ac_func... " >&6; }
19612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19613 $as_echo_n "(cached) " >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19623 #define $ac_func innocuous_$ac_func
19625 /* System header to define __stub macros and hopefully few prototypes,
19626 which can conflict with char $ac_func (); below.
19627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19628 <limits.h> exists even on freestanding compilers. */
19631 # include <limits.h>
19633 # include <assert.h>
19638 /* Override any GCC internal prototype to avoid an error.
19639 Use char because int might match the return type of a GCC
19640 builtin and then its argument prototype would still apply. */
19645 /* The GNU C library defines this for functions which it implements
19646 to always fail with ENOSYS. Some functions are actually named
19647 something starting with __ and the normal name is an alias. */
19648 #if defined __stub_$ac_func || defined __stub___$ac_func
19655 return $ac_func ();
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (ac_try="$ac_link"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19667 $as_echo "$ac_try_echo") >&5
19668 (eval "$ac_link") 2>conftest.er1
19670 grep -v '^ *+' conftest.er1 >conftest.err
19672 cat conftest.err >&5
19673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } && {
19675 test -z "$ac_c_werror_flag" ||
19676 test ! -s conftest.err
19677 } && test -s conftest$ac_exeext && {
19678 test "$cross_compiling" = yes ||
19679 $as_test_x conftest$ac_exeext
19681 eval "$as_ac_var=yes"
19683 $as_echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 eval "$as_ac_var=no"
19689 rm -rf conftest.dSYM
19690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19691 conftest$ac_exeext conftest.$ac_ext
19693 ac_res=`eval 'as_val=${'$as_ac_var'}
19694 $as_echo "$as_val"'`
19695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19696 $as_echo "$ac_res" >&6; }
19697 as_val=`eval 'as_val=${'$as_ac_var'}
19698 $as_echo "$as_val"'`
19699 if test "x$as_val" = x""yes; then
19700 cat >>confdefs.h <<_ACEOF
19701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19707 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19708 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19709 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19710 $as_echo_n "(cached) " >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19723 #ifndef posix_fadvise
19724 (void) posix_fadvise;
19731 rm -f conftest.$ac_objext
19732 if { (ac_try="$ac_compile"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19738 $as_echo "$ac_try_echo") >&5
19739 (eval "$ac_compile") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest.$ac_objext; then
19749 ac_cv_have_decl_posix_fadvise=yes
19751 $as_echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_have_decl_posix_fadvise=no
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19760 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19761 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19763 cat >>confdefs.h <<_ACEOF
19764 #define HAVE_DECL_POSIX_FADVISE 1
19769 cat >>confdefs.h <<_ACEOF
19770 #define HAVE_DECL_POSIX_FADVISE 0
19779 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19780 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19781 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19782 $as_echo_n "(cached) " >&6
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 #include <unistd.h>
19803 rm -f conftest.$ac_objext
19804 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19821 ac_cv_have_decl_fdatasync=yes
19823 $as_echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_cv_have_decl_fdatasync=no
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19832 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19833 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define HAVE_DECL_FDATASYNC 1
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_DECL_FDATASYNC 0
19849 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19850 $as_echo_n "checking whether strlcat is declared... " >&6; }
19851 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19852 $as_echo_n "(cached) " >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 $ac_includes_default
19872 rm -f conftest.$ac_objext
19873 if { (ac_try="$ac_compile"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19879 $as_echo "$ac_try_echo") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.$ac_objext; then
19890 ac_cv_have_decl_strlcat=yes
19892 $as_echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_cv_have_decl_strlcat=no
19898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19901 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19902 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_DECL_STRLCAT 1
19910 cat >>confdefs.h <<_ACEOF
19911 #define HAVE_DECL_STRLCAT 0
19916 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19917 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19918 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19919 $as_echo_n "(cached) " >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19939 rm -f conftest.$ac_objext
19940 if { (ac_try="$ac_compile"
19941 case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947 (eval "$ac_compile") 2>conftest.er1
19949 grep -v '^ *+' conftest.er1 >conftest.err
19951 cat conftest.err >&5
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest.$ac_objext; then
19957 ac_cv_have_decl_strlcpy=yes
19959 $as_echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19962 ac_cv_have_decl_strlcpy=no
19965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19967 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19968 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19969 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19971 cat >>confdefs.h <<_ACEOF
19972 #define HAVE_DECL_STRLCPY 1
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_DECL_STRLCPY 0
19985 # This is probably only present on Darwin, but may as well check always
19986 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19987 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19988 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19989 $as_echo_n "(cached) " >&6
19991 cat >conftest.$ac_ext <<_ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
20002 #ifndef F_FULLFSYNC
20003 (void) F_FULLFSYNC;
20010 rm -f conftest.$ac_objext
20011 if { (ac_try="$ac_compile"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20017 $as_echo "$ac_try_echo") >&5
20018 (eval "$ac_compile") 2>conftest.er1
20020 grep -v '^ *+' conftest.er1 >conftest.err
20022 cat conftest.err >&5
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && {
20025 test -z "$ac_c_werror_flag" ||
20026 test ! -s conftest.err
20027 } && test -s conftest.$ac_objext; then
20028 ac_cv_have_decl_F_FULLFSYNC=yes
20030 $as_echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_have_decl_F_FULLFSYNC=no
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20039 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20040 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20042 cat >>confdefs.h <<_ACEOF
20043 #define HAVE_DECL_F_FULLFSYNC 1
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_DECL_F_FULLFSYNC 0
20058 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20059 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20060 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20061 $as_echo_n "(cached) " >&6
20063 ac_cv_type_struct_sockaddr_in6=no
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
20071 #include <netinet/in.h>
20076 if (sizeof (struct sockaddr_in6))
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 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 $ac_includes_default
20107 #include <netinet/in.h>
20112 if (sizeof ((struct sockaddr_in6)))
20118 rm -f conftest.$ac_objext
20119 if { (ac_try="$ac_compile"
20120 case "(($ac_try" in
20121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122 *) ac_try_echo=$ac_try;;
20124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20125 $as_echo "$ac_try_echo") >&5
20126 (eval "$ac_compile") 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } && {
20133 test -z "$ac_c_werror_flag" ||
20134 test ! -s conftest.err
20135 } && test -s conftest.$ac_objext; then
20138 $as_echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_cv_type_struct_sockaddr_in6=yes
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 $as_echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20154 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20155 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20156 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_IPV6 1
20167 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20168 $as_echo_n "checking for PS_STRINGS... " >&6; }
20169 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20170 $as_echo_n "(cached) " >&6
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 #include <machine/vmparam.h>
20179 #include <sys/exec.h>
20184 PS_STRINGS->ps_nargvstr = 1;
20185 PS_STRINGS->ps_argvstr = "foo";
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20197 $as_echo "$ac_try_echo") >&5
20198 (eval "$ac_link") 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext && {
20208 test "$cross_compiling" = yes ||
20209 $as_test_x conftest$ac_exeext
20211 pgac_cv_var_PS_STRINGS=yes
20213 $as_echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 pgac_cv_var_PS_STRINGS=no
20219 rm -rf conftest.dSYM
20220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20221 conftest$ac_exeext conftest.$ac_ext
20223 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20224 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20225 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_PS_STRINGS /**/
20234 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20235 # is missing. Yes, there are machines that have only one. We may
20236 # also decide to use snprintf.c if snprintf() is present but does not
20237 # have all the features we need --- see below.
20239 if test "$PORTNAME" = "win32"; then
20240 # Win32 gets snprintf.c built unconditionally.
20242 # To properly translate all NLS languages strings, we must support the
20243 # *printf() %$ format, which allows *printf() arguments to be selected
20244 # by position in the translated string.
20246 # libintl versions < 0.13 use the native *printf() functions, and Win32
20247 # *printf() doesn't understand %$, so we must use our /port versions,
20248 # which do understand %$. libintl versions >= 0.13 include their own
20249 # *printf versions on Win32. The libintl 0.13 release note text is:
20251 # C format strings with positions, as they arise when a translator
20252 # needs to reorder a sentence, are now supported on all platforms.
20253 # On those few platforms (NetBSD and Woe32) for which the native
20254 # printf()/fprintf()/... functions don't support such format
20255 # strings, replacements are provided through <libintl.h>.
20257 # We could use libintl >= 0.13's *printf() if we were sure that we had
20258 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20259 # to guarantee that, it is best to just use our own, so we are sure to
20260 # get %$ support. In include/port.h we disable the *printf() macros
20261 # that might have been defined by libintl.
20263 # We do this unconditionally whether NLS is used or not so we are sure
20264 # that all Win32 libraries and binaries behave the same.
20265 pgac_need_repl_snprintf=yes
20267 pgac_need_repl_snprintf=no
20269 for ac_func in snprintf
20271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20272 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20273 $as_echo_n "checking for $ac_func... " >&6; }
20274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20275 $as_echo_n "(cached) " >&6
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20285 #define $ac_func innocuous_$ac_func
20287 /* System header to define __stub macros and hopefully few prototypes,
20288 which can conflict with char $ac_func (); below.
20289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20290 <limits.h> exists even on freestanding compilers. */
20293 # include <limits.h>
20295 # include <assert.h>
20300 /* Override any GCC internal prototype to avoid an error.
20301 Use char because int might match the return type of a GCC
20302 builtin and then its argument prototype would still apply. */
20307 /* The GNU C library defines this for functions which it implements
20308 to always fail with ENOSYS. Some functions are actually named
20309 something starting with __ and the normal name is an alias. */
20310 #if defined __stub_$ac_func || defined __stub___$ac_func
20317 return $ac_func ();
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330 (eval "$ac_link") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest$ac_exeext && {
20340 test "$cross_compiling" = yes ||
20341 $as_test_x conftest$ac_exeext
20343 eval "$as_ac_var=yes"
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 eval "$as_ac_var=no"
20351 rm -rf conftest.dSYM
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353 conftest$ac_exeext conftest.$ac_ext
20355 ac_res=`eval 'as_val=${'$as_ac_var'}
20356 $as_echo "$as_val"'`
20357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20358 $as_echo "$ac_res" >&6; }
20359 as_val=`eval 'as_val=${'$as_ac_var'}
20360 $as_echo "$as_val"'`
20361 if test "x$as_val" = x""yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20367 pgac_need_repl_snprintf=yes
20372 for ac_func in vsnprintf
20374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20375 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20376 $as_echo_n "checking for $ac_func... " >&6; }
20377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20378 $as_echo_n "(cached) " >&6
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20388 #define $ac_func innocuous_$ac_func
20390 /* System header to define __stub macros and hopefully few prototypes,
20391 which can conflict with char $ac_func (); below.
20392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393 <limits.h> exists even on freestanding compilers. */
20396 # include <limits.h>
20398 # include <assert.h>
20403 /* Override any GCC internal prototype to avoid an error.
20404 Use char because int might match the return type of a GCC
20405 builtin and then its argument prototype would still apply. */
20410 /* The GNU C library defines this for functions which it implements
20411 to always fail with ENOSYS. Some functions are actually named
20412 something starting with __ and the normal name is an alias. */
20413 #if defined __stub_$ac_func || defined __stub___$ac_func
20420 return $ac_func ();
20425 rm -f conftest.$ac_objext conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432 $as_echo "$ac_try_echo") >&5
20433 (eval "$ac_link") 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } && {
20440 test -z "$ac_c_werror_flag" ||
20441 test ! -s conftest.err
20442 } && test -s conftest$ac_exeext && {
20443 test "$cross_compiling" = yes ||
20444 $as_test_x conftest$ac_exeext
20446 eval "$as_ac_var=yes"
20448 $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 eval "$as_ac_var=no"
20454 rm -rf conftest.dSYM
20455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456 conftest$ac_exeext conftest.$ac_ext
20458 ac_res=`eval 'as_val=${'$as_ac_var'}
20459 $as_echo "$as_val"'`
20460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20461 $as_echo "$ac_res" >&6; }
20462 as_val=`eval 'as_val=${'$as_ac_var'}
20463 $as_echo "$as_val"'`
20464 if test "x$as_val" = x""yes; then
20465 cat >>confdefs.h <<_ACEOF
20466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20470 pgac_need_repl_snprintf=yes
20477 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20478 # include/c.h will provide declarations. Note this is a separate test
20479 # from whether the functions exist in the C library --- there are
20480 # systems that have the functions but don't bother to declare them :-(
20482 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20483 $as_echo_n "checking whether snprintf is declared... " >&6; }
20484 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20485 $as_echo_n "(cached) " >&6
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 $ac_includes_default
20505 rm -f conftest.$ac_objext
20506 if { (ac_try="$ac_compile"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20512 $as_echo "$ac_try_echo") >&5
20513 (eval "$ac_compile") 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest.$ac_objext; then
20523 ac_cv_have_decl_snprintf=yes
20525 $as_echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_cv_have_decl_snprintf=no
20531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20534 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20535 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20537 cat >>confdefs.h <<_ACEOF
20538 #define HAVE_DECL_SNPRINTF 1
20543 cat >>confdefs.h <<_ACEOF
20544 #define HAVE_DECL_SNPRINTF 0
20549 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20550 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20551 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20552 $as_echo_n "(cached) " >&6
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20560 $ac_includes_default
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20579 $as_echo "$ac_try_echo") >&5
20580 (eval "$ac_compile") 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest.$ac_objext; then
20590 ac_cv_have_decl_vsnprintf=yes
20592 $as_echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20595 ac_cv_have_decl_vsnprintf=no
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20601 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20602 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_DECL_VSNPRINTF 1
20610 cat >>confdefs.h <<_ACEOF
20611 #define HAVE_DECL_VSNPRINTF 0
20620 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20621 $as_echo_n "checking for isinf... " >&6; }
20622 if test "${ac_cv_func_isinf+set}" = set; then
20623 $as_echo_n "(cached) " >&6
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20633 double glob_double;
20638 return isinf(glob_double) ? 0 : 1;
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651 (eval "$ac_link") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest$ac_exeext && {
20661 test "$cross_compiling" = yes ||
20662 $as_test_x conftest$ac_exeext
20664 ac_cv_func_isinf=yes
20666 $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ac_cv_func_isinf=no
20672 rm -rf conftest.dSYM
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20677 $as_echo "$ac_cv_func_isinf" >&6; }
20679 if test $ac_cv_func_isinf = yes ; then
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_ISINF 1
20686 case " $LIBOBJS " in
20687 *" isinf.$ac_objext "* ) ;;
20688 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20692 # Look for a way to implement a substitute for isinf()
20697 for ac_func in fpclass fp_class fp_class_d class
20699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20701 $as_echo_n "checking for $ac_func... " >&6; }
20702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20703 $as_echo_n "(cached) " >&6
20705 cat >conftest.$ac_ext <<_ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20713 #define $ac_func innocuous_$ac_func
20715 /* System header to define __stub macros and hopefully few prototypes,
20716 which can conflict with char $ac_func (); below.
20717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20718 <limits.h> exists even on freestanding compilers. */
20721 # include <limits.h>
20723 # include <assert.h>
20728 /* Override any GCC internal prototype to avoid an error.
20729 Use char because int might match the return type of a GCC
20730 builtin and then its argument prototype would still apply. */
20735 /* The GNU C library defines this for functions which it implements
20736 to always fail with ENOSYS. Some functions are actually named
20737 something starting with __ and the normal name is an alias. */
20738 #if defined __stub_$ac_func || defined __stub___$ac_func
20745 return $ac_func ();
20750 rm -f conftest.$ac_objext conftest$ac_exeext
20751 if { (ac_try="$ac_link"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20757 $as_echo "$ac_try_echo") >&5
20758 (eval "$ac_link") 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest$ac_exeext && {
20768 test "$cross_compiling" = yes ||
20769 $as_test_x conftest$ac_exeext
20771 eval "$as_ac_var=yes"
20773 $as_echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 eval "$as_ac_var=no"
20779 rm -rf conftest.dSYM
20780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20781 conftest$ac_exeext conftest.$ac_ext
20783 ac_res=`eval 'as_val=${'$as_ac_var'}
20784 $as_echo "$as_val"'`
20785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20786 $as_echo "$ac_res" >&6; }
20787 as_val=`eval 'as_val=${'$as_ac_var'}
20788 $as_echo "$as_val"'`
20789 if test "x$as_val" = x""yes; then
20790 cat >>confdefs.h <<_ACEOF
20791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20799 # Some versions of libedit contain strlcpy(); so disregard that library while
20800 # checking for these standard libc functions.
20801 pgac_save_LIBS="$LIBS"
20802 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20815 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20818 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20819 $as_echo_n "checking for $ac_func... " >&6; }
20820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20821 $as_echo_n "(cached) " >&6
20823 cat >conftest.$ac_ext <<_ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20831 #define $ac_func innocuous_$ac_func
20833 /* System header to define __stub macros and hopefully few prototypes,
20834 which can conflict with char $ac_func (); below.
20835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20836 <limits.h> exists even on freestanding compilers. */
20839 # include <limits.h>
20841 # include <assert.h>
20846 /* Override any GCC internal prototype to avoid an error.
20847 Use char because int might match the return type of a GCC
20848 builtin and then its argument prototype would still apply. */
20853 /* The GNU C library defines this for functions which it implements
20854 to always fail with ENOSYS. Some functions are actually named
20855 something starting with __ and the normal name is an alias. */
20856 #if defined __stub_$ac_func || defined __stub___$ac_func
20863 return $ac_func ();
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (ac_try="$ac_link"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20875 $as_echo "$ac_try_echo") >&5
20876 (eval "$ac_link") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest$ac_exeext && {
20886 test "$cross_compiling" = yes ||
20887 $as_test_x conftest$ac_exeext
20889 eval "$as_ac_var=yes"
20891 $as_echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 eval "$as_ac_var=no"
20897 rm -rf conftest.dSYM
20898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20899 conftest$ac_exeext conftest.$ac_ext
20901 ac_res=`eval 'as_val=${'$as_ac_var'}
20902 $as_echo "$as_val"'`
20903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20904 $as_echo "$ac_res" >&6; }
20905 as_val=`eval 'as_val=${'$as_ac_var'}
20906 $as_echo "$as_val"'`
20907 if test "x$as_val" = x""yes; then
20908 cat >>confdefs.h <<_ACEOF
20909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20913 case " $LIBOBJS " in
20914 *" $ac_func.$ac_objext "* ) ;;
20915 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20926 # Windows uses a specialised env handler
20927 # and doesn't need a replacement getpeereid because it doesn't use
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_UNSETENV 1
20936 cat >>confdefs.h <<\_ACEOF
20937 #define HAVE_GETPEEREID 1
20940 ac_cv_func_unsetenv=yes
20941 ac_cv_func_getpeereid=yes;;
20945 for ac_func in unsetenv getpeereid
20947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20948 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20949 $as_echo_n "checking for $ac_func... " >&6; }
20950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20951 $as_echo_n "(cached) " >&6
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20961 #define $ac_func innocuous_$ac_func
20963 /* System header to define __stub macros and hopefully few prototypes,
20964 which can conflict with char $ac_func (); below.
20965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20966 <limits.h> exists even on freestanding compilers. */
20969 # include <limits.h>
20971 # include <assert.h>
20976 /* Override any GCC internal prototype to avoid an error.
20977 Use char because int might match the return type of a GCC
20978 builtin and then its argument prototype would still apply. */
20983 /* The GNU C library defines this for functions which it implements
20984 to always fail with ENOSYS. Some functions are actually named
20985 something starting with __ and the normal name is an alias. */
20986 #if defined __stub_$ac_func || defined __stub___$ac_func
20993 return $ac_func ();
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21005 $as_echo "$ac_try_echo") >&5
21006 (eval "$ac_link") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest$ac_exeext && {
21016 test "$cross_compiling" = yes ||
21017 $as_test_x conftest$ac_exeext
21019 eval "$as_ac_var=yes"
21021 $as_echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21024 eval "$as_ac_var=no"
21027 rm -rf conftest.dSYM
21028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21029 conftest$ac_exeext conftest.$ac_ext
21031 ac_res=`eval 'as_val=${'$as_ac_var'}
21032 $as_echo "$as_val"'`
21033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21034 $as_echo "$ac_res" >&6; }
21035 as_val=`eval 'as_val=${'$as_ac_var'}
21036 $as_echo "$as_val"'`
21037 if test "x$as_val" = x""yes; then
21038 cat >>confdefs.h <<_ACEOF
21039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21043 case " $LIBOBJS " in
21044 *" $ac_func.$ac_objext "* ) ;;
21045 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21057 LIBS="$pgac_save_LIBS"
21059 # System's version of getaddrinfo(), if any, may be used only if we found
21060 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21061 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21062 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21063 # because we want to use our own getaddrinfo.c on Windows anyway.)
21064 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21066 for ac_func in getaddrinfo
21068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21070 $as_echo_n "checking for $ac_func... " >&6; }
21071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21072 $as_echo_n "(cached) " >&6
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define $ac_func innocuous_$ac_func
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char $ac_func (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21090 # include <limits.h>
21092 # include <assert.h>
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_$ac_func || defined __stub___$ac_func
21114 return $ac_func ();
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21126 $as_echo "$ac_try_echo") >&5
21127 (eval "$ac_link") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest$ac_exeext && {
21137 test "$cross_compiling" = yes ||
21138 $as_test_x conftest$ac_exeext
21140 eval "$as_ac_var=yes"
21142 $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 eval "$as_ac_var=no"
21148 rm -rf conftest.dSYM
21149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21150 conftest$ac_exeext conftest.$ac_ext
21152 ac_res=`eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'`
21154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21155 $as_echo "$ac_res" >&6; }
21156 as_val=`eval 'as_val=${'$as_ac_var'}
21157 $as_echo "$as_val"'`
21158 if test "x$as_val" = x""yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21164 case " $LIBOBJS " in
21165 *" $ac_func.$ac_objext "* ) ;;
21166 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21175 case " $LIBOBJS " in
21176 *" getaddrinfo.$ac_objext "* ) ;;
21177 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21183 # Similarly, use system's getopt_long() only if system provides struct option.
21184 if test x"$ac_cv_type_struct_option" = xyes ; then
21186 for ac_func in getopt_long
21188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21190 $as_echo_n "checking for $ac_func... " >&6; }
21191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21192 $as_echo_n "(cached) " >&6
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21202 #define $ac_func innocuous_$ac_func
21204 /* System header to define __stub macros and hopefully few prototypes,
21205 which can conflict with char $ac_func (); below.
21206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21207 <limits.h> exists even on freestanding compilers. */
21210 # include <limits.h>
21212 # include <assert.h>
21217 /* Override any GCC internal prototype to avoid an error.
21218 Use char because int might match the return type of a GCC
21219 builtin and then its argument prototype would still apply. */
21224 /* The GNU C library defines this for functions which it implements
21225 to always fail with ENOSYS. Some functions are actually named
21226 something starting with __ and the normal name is an alias. */
21227 #if defined __stub_$ac_func || defined __stub___$ac_func
21234 return $ac_func ();
21239 rm -f conftest.$ac_objext conftest$ac_exeext
21240 if { (ac_try="$ac_link"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21246 $as_echo "$ac_try_echo") >&5
21247 (eval "$ac_link") 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest$ac_exeext && {
21257 test "$cross_compiling" = yes ||
21258 $as_test_x conftest$ac_exeext
21260 eval "$as_ac_var=yes"
21262 $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 eval "$as_ac_var=no"
21268 rm -rf conftest.dSYM
21269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21270 conftest$ac_exeext conftest.$ac_ext
21272 ac_res=`eval 'as_val=${'$as_ac_var'}
21273 $as_echo "$as_val"'`
21274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21275 $as_echo "$ac_res" >&6; }
21276 as_val=`eval 'as_val=${'$as_ac_var'}
21277 $as_echo "$as_val"'`
21278 if test "x$as_val" = x""yes; then
21279 cat >>confdefs.h <<_ACEOF
21280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21284 case " $LIBOBJS " in
21285 *" $ac_func.$ac_objext "* ) ;;
21286 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21295 case " $LIBOBJS " in
21296 *" getopt_long.$ac_objext "* ) ;;
21297 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21303 # Solaris' getopt() doesn't do what we want for long options, so always use
21304 # our version on that platform.
21305 if test "$PORTNAME" = "solaris"; then
21306 case " $LIBOBJS " in
21307 *" getopt.$ac_objext "* ) ;;
21308 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21314 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21315 # so always use our version on Windows.
21316 if test "$PORTNAME" = "win32"; then
21317 case " $LIBOBJS " in
21318 *" getopt.$ac_objext "* ) ;;
21319 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21323 case " $LIBOBJS " in
21324 *" getopt_long.$ac_objext "* ) ;;
21325 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21332 if test "$PORTNAME" = "win32"; then
21334 for ac_func in gettimeofday
21336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21338 $as_echo_n "checking for $ac_func... " >&6; }
21339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21340 $as_echo_n "(cached) " >&6
21342 cat >conftest.$ac_ext <<_ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h. */
21348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21350 #define $ac_func innocuous_$ac_func
21352 /* System header to define __stub macros and hopefully few prototypes,
21353 which can conflict with char $ac_func (); below.
21354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21355 <limits.h> exists even on freestanding compilers. */
21358 # include <limits.h>
21360 # include <assert.h>
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21372 /* The GNU C library defines this for functions which it implements
21373 to always fail with ENOSYS. Some functions are actually named
21374 something starting with __ and the normal name is an alias. */
21375 #if defined __stub_$ac_func || defined __stub___$ac_func
21382 return $ac_func ();
21387 rm -f conftest.$ac_objext conftest$ac_exeext
21388 if { (ac_try="$ac_link"
21389 case "(($ac_try" in
21390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21391 *) ac_try_echo=$ac_try;;
21393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21394 $as_echo "$ac_try_echo") >&5
21395 (eval "$ac_link") 2>conftest.er1
21397 grep -v '^ *+' conftest.er1 >conftest.err
21399 cat conftest.err >&5
21400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest$ac_exeext && {
21405 test "$cross_compiling" = yes ||
21406 $as_test_x conftest$ac_exeext
21408 eval "$as_ac_var=yes"
21410 $as_echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 eval "$as_ac_var=no"
21416 rm -rf conftest.dSYM
21417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21418 conftest$ac_exeext conftest.$ac_ext
21420 ac_res=`eval 'as_val=${'$as_ac_var'}
21421 $as_echo "$as_val"'`
21422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21423 $as_echo "$ac_res" >&6; }
21424 as_val=`eval 'as_val=${'$as_ac_var'}
21425 $as_echo "$as_val"'`
21426 if test "x$as_val" = x""yes; then
21427 cat >>confdefs.h <<_ACEOF
21428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21432 case " $LIBOBJS " in
21433 *" $ac_func.$ac_objext "* ) ;;
21434 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21442 case " $LIBOBJS " in
21443 *" kill.$ac_objext "* ) ;;
21444 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21448 case " $LIBOBJS " in
21449 *" open.$ac_objext "* ) ;;
21450 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21454 case " $LIBOBJS " in
21455 *" win32env.$ac_objext "* ) ;;
21456 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21460 case " $LIBOBJS " in
21461 *" win32error.$ac_objext "* ) ;;
21462 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21466 case " $LIBOBJS " in
21467 *" win32setlocale.$ac_objext "* ) ;;
21468 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21473 cat >>confdefs.h <<\_ACEOF
21474 #define HAVE_SYMLINK 1
21477 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21478 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21479 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21480 $as_echo_n "(cached) " >&6
21482 ac_cv_type_MINIDUMP_TYPE=no
21483 cat >conftest.$ac_ext <<_ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h. */
21490 #define WIN32_LEAN_AND_MEAN
21491 #include <windows.h>
21492 #include <string.h>
21493 #include <dbghelp.h>
21498 if (sizeof (MINIDUMP_TYPE))
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512 (eval "$ac_compile") 2>conftest.er1
21514 grep -v '^ *+' conftest.er1 >conftest.err
21516 cat conftest.err >&5
21517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && {
21519 test -z "$ac_c_werror_flag" ||
21520 test ! -s conftest.err
21521 } && test -s conftest.$ac_objext; then
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21529 #define WIN32_LEAN_AND_MEAN
21530 #include <windows.h>
21531 #include <string.h>
21532 #include <dbghelp.h>
21537 if (sizeof ((MINIDUMP_TYPE)))
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21550 $as_echo "$ac_try_echo") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21563 $as_echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_cv_type_MINIDUMP_TYPE=yes
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 $as_echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21580 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21581 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21583 cat >>confdefs.h <<_ACEOF
21584 #define HAVE_MINIDUMP_TYPE 1
21587 pgac_minidump_type=yes
21589 pgac_minidump_type=no
21593 if test x"$pgac_minidump_type" = x"yes" ; then
21594 have_win32_dbghelp=yes
21597 have_win32_dbghelp=no
21601 if test "$with_readline" = yes; then
21602 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21603 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21604 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21605 $as_echo_n "(cached) " >&6
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21614 #ifdef HAVE_READLINE_READLINE_H
21615 # include <readline/readline.h>
21616 #elif defined(HAVE_READLINE_H)
21617 # include <readline.h>
21623 rl_completion_append_character = 'x';
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (ac_try="$ac_link"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636 (eval "$ac_link") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest$ac_exeext && {
21646 test "$cross_compiling" = yes ||
21647 $as_test_x conftest$ac_exeext
21649 pgac_cv_var_rl_completion_append_character=yes
21651 $as_echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 pgac_cv_var_rl_completion_append_character=no
21657 rm -rf conftest.dSYM
21658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21659 conftest$ac_exeext conftest.$ac_ext
21661 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21662 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21663 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21672 for ac_func in rl_completion_matches rl_filename_completion_function
21674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21675 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21676 $as_echo_n "checking for $ac_func... " >&6; }
21677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21678 $as_echo_n "(cached) " >&6
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21688 #define $ac_func innocuous_$ac_func
21690 /* System header to define __stub macros and hopefully few prototypes,
21691 which can conflict with char $ac_func (); below.
21692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21693 <limits.h> exists even on freestanding compilers. */
21696 # include <limits.h>
21698 # include <assert.h>
21703 /* Override any GCC internal prototype to avoid an error.
21704 Use char because int might match the return type of a GCC
21705 builtin and then its argument prototype would still apply. */
21710 /* The GNU C library defines this for functions which it implements
21711 to always fail with ENOSYS. Some functions are actually named
21712 something starting with __ and the normal name is an alias. */
21713 #if defined __stub_$ac_func || defined __stub___$ac_func
21720 return $ac_func ();
21725 rm -f conftest.$ac_objext conftest$ac_exeext
21726 if { (ac_try="$ac_link"
21727 case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21732 $as_echo "$ac_try_echo") >&5
21733 (eval "$ac_link") 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } && {
21740 test -z "$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21742 } && test -s conftest$ac_exeext && {
21743 test "$cross_compiling" = yes ||
21744 $as_test_x conftest$ac_exeext
21746 eval "$as_ac_var=yes"
21748 $as_echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21751 eval "$as_ac_var=no"
21754 rm -rf conftest.dSYM
21755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21756 conftest$ac_exeext conftest.$ac_ext
21758 ac_res=`eval 'as_val=${'$as_ac_var'}
21759 $as_echo "$as_val"'`
21760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21761 $as_echo "$ac_res" >&6; }
21762 as_val=`eval 'as_val=${'$as_ac_var'}
21763 $as_echo "$as_val"'`
21764 if test "x$as_val" = x""yes; then
21765 cat >>confdefs.h <<_ACEOF
21766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21774 for ac_func in append_history history_truncate_file
21776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21778 $as_echo_n "checking for $ac_func... " >&6; }
21779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21780 $as_echo_n "(cached) " >&6
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21790 #define $ac_func innocuous_$ac_func
21792 /* System header to define __stub macros and hopefully few prototypes,
21793 which can conflict with char $ac_func (); below.
21794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21795 <limits.h> exists even on freestanding compilers. */
21798 # include <limits.h>
21800 # include <assert.h>
21805 /* Override any GCC internal prototype to avoid an error.
21806 Use char because int might match the return type of a GCC
21807 builtin and then its argument prototype would still apply. */
21812 /* The GNU C library defines this for functions which it implements
21813 to always fail with ENOSYS. Some functions are actually named
21814 something starting with __ and the normal name is an alias. */
21815 #if defined __stub_$ac_func || defined __stub___$ac_func
21822 return $ac_func ();
21827 rm -f conftest.$ac_objext conftest$ac_exeext
21828 if { (ac_try="$ac_link"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21834 $as_echo "$ac_try_echo") >&5
21835 (eval "$ac_link") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest$ac_exeext && {
21845 test "$cross_compiling" = yes ||
21846 $as_test_x conftest$ac_exeext
21848 eval "$as_ac_var=yes"
21850 $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 eval "$as_ac_var=no"
21856 rm -rf conftest.dSYM
21857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21858 conftest$ac_exeext conftest.$ac_ext
21860 ac_res=`eval 'as_val=${'$as_ac_var'}
21861 $as_echo "$as_val"'`
21862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21863 $as_echo "$ac_res" >&6; }
21864 as_val=`eval 'as_val=${'$as_ac_var'}
21865 $as_echo "$as_val"'`
21866 if test "x$as_val" = x""yes; then
21867 cat >>confdefs.h <<_ACEOF
21868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21877 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21878 $as_echo_n "checking for sigsetjmp... " >&6; }
21879 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21880 $as_echo_n "(cached) " >&6
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 #include <setjmp.h>
21892 sigjmp_buf x; sigsetjmp(x, 1);
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21904 $as_echo "$ac_try_echo") >&5
21905 (eval "$ac_link") 2>conftest.er1
21907 grep -v '^ *+' conftest.er1 >conftest.err
21909 cat conftest.err >&5
21910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } && {
21912 test -z "$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 } && test -s conftest$ac_exeext && {
21915 test "$cross_compiling" = yes ||
21916 $as_test_x conftest$ac_exeext
21918 pgac_cv_func_sigsetjmp=yes
21920 $as_echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 pgac_cv_func_sigsetjmp=no
21926 rm -rf conftest.dSYM
21927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21928 conftest$ac_exeext conftest.$ac_ext
21930 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21931 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21932 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21934 cat >>confdefs.h <<\_ACEOF
21935 #define HAVE_SIGSETJMP 1
21940 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21941 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21942 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21943 $as_echo_n "(cached) " >&6
21945 cat >conftest.$ac_ext <<_ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21951 #include <signal.h>
21952 /* NetBSD declares sys_siglist in unistd.h. */
21953 #ifdef HAVE_UNISTD_H
21954 # include <unistd.h>
21961 #ifndef sys_siglist
21962 (void) sys_siglist;
21969 rm -f conftest.$ac_objext
21970 if { (ac_try="$ac_compile"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21976 $as_echo "$ac_try_echo") >&5
21977 (eval "$ac_compile") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest.$ac_objext; then
21987 ac_cv_have_decl_sys_siglist=yes
21989 $as_echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21992 ac_cv_have_decl_sys_siglist=no
21995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21998 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21999 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22001 cat >>confdefs.h <<_ACEOF
22002 #define HAVE_DECL_SYS_SIGLIST 1
22007 cat >>confdefs.h <<_ACEOF
22008 #define HAVE_DECL_SYS_SIGLIST 0
22017 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22018 $as_echo_n "checking for syslog... " >&6; }
22019 if test "${ac_cv_func_syslog+set}" = set; then
22020 $as_echo_n "(cached) " >&6
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22030 #define syslog innocuous_syslog
22032 /* System header to define __stub macros and hopefully few prototypes,
22033 which can conflict with char syslog (); below.
22034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22035 <limits.h> exists even on freestanding compilers. */
22038 # include <limits.h>
22040 # include <assert.h>
22045 /* Override any GCC internal prototype to avoid an error.
22046 Use char because int might match the return type of a GCC
22047 builtin and then its argument prototype would still apply. */
22052 /* The GNU C library defines this for functions which it implements
22053 to always fail with ENOSYS. Some functions are actually named
22054 something starting with __ and the normal name is an alias. */
22055 #if defined __stub_syslog || defined __stub___syslog
22067 rm -f conftest.$ac_objext conftest$ac_exeext
22068 if { (ac_try="$ac_link"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22074 $as_echo "$ac_try_echo") >&5
22075 (eval "$ac_link") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest$ac_exeext && {
22085 test "$cross_compiling" = yes ||
22086 $as_test_x conftest$ac_exeext
22088 ac_cv_func_syslog=yes
22090 $as_echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_cv_func_syslog=no
22096 rm -rf conftest.dSYM
22097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22098 conftest$ac_exeext conftest.$ac_ext
22100 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22101 $as_echo "$ac_cv_func_syslog" >&6; }
22102 if test "x$ac_cv_func_syslog" = x""yes; then
22103 if test "${ac_cv_header_syslog_h+set}" = set; then
22104 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22105 $as_echo_n "checking for syslog.h... " >&6; }
22106 if test "${ac_cv_header_syslog_h+set}" = set; then
22107 $as_echo_n "(cached) " >&6
22109 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22110 $as_echo "$ac_cv_header_syslog_h" >&6; }
22112 # Is the header compilable?
22113 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22114 $as_echo_n "checking syslog.h usability... " >&6; }
22115 cat >conftest.$ac_ext <<_ACEOF
22118 cat confdefs.h >>conftest.$ac_ext
22119 cat >>conftest.$ac_ext <<_ACEOF
22120 /* end confdefs.h. */
22121 $ac_includes_default
22122 #include <syslog.h>
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22131 $as_echo "$ac_try_echo") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 ac_header_compiler=yes
22144 $as_echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_header_compiler=no
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22152 $as_echo "$ac_header_compiler" >&6; }
22154 # Is the header present?
22155 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22156 $as_echo_n "checking syslog.h presence... " >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 #include <syslog.h>
22165 if { (ac_try="$ac_cpp conftest.$ac_ext"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22171 $as_echo "$ac_try_echo") >&5
22172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1 >conftest.err
22176 cat conftest.err >&5
22177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } >/dev/null && {
22179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22182 ac_header_preproc=yes
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 ac_header_preproc=no
22190 rm -f conftest.err conftest.$ac_ext
22191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 $as_echo "$ac_header_preproc" >&6; }
22194 # So? What about this header?
22195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22197 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22198 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22200 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22201 ac_header_preproc=yes
22204 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22205 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22206 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22207 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22208 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22209 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22210 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22211 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22212 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22213 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22214 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22215 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22217 ## ---------------------------------------- ##
22218 ## Report this to pgsql-bugs@postgresql.org ##
22219 ## ---------------------------------------- ##
22221 ) | sed "s/^/$as_me: WARNING: /" >&2
22224 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22225 $as_echo_n "checking for syslog.h... " >&6; }
22226 if test "${ac_cv_header_syslog_h+set}" = set; then
22227 $as_echo_n "(cached) " >&6
22229 ac_cv_header_syslog_h=$ac_header_preproc
22231 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22232 $as_echo "$ac_cv_header_syslog_h" >&6; }
22235 if test "x$ac_cv_header_syslog_h" = x""yes; then
22237 cat >>confdefs.h <<\_ACEOF
22238 #define HAVE_SYSLOG 1
22247 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22248 $as_echo_n "checking for opterr... " >&6; }
22249 if test "${pgac_cv_var_int_opterr+set}" = set; then
22250 $as_echo_n "(cached) " >&6
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <unistd.h>
22262 extern int opterr; opterr = 1;
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22274 $as_echo "$ac_try_echo") >&5
22275 (eval "$ac_link") 2>conftest.er1
22277 grep -v '^ *+' conftest.er1 >conftest.err
22279 cat conftest.err >&5
22280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest$ac_exeext && {
22285 test "$cross_compiling" = yes ||
22286 $as_test_x conftest$ac_exeext
22288 pgac_cv_var_int_opterr=yes
22290 $as_echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 pgac_cv_var_int_opterr=no
22296 rm -rf conftest.dSYM
22297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22298 conftest$ac_exeext conftest.$ac_ext
22300 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22301 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22302 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22304 cat >>confdefs.h <<\_ACEOF
22305 #define HAVE_INT_OPTERR 1
22310 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22311 $as_echo_n "checking for optreset... " >&6; }
22312 if test "${pgac_cv_var_int_optreset+set}" = set; then
22313 $as_echo_n "(cached) " >&6
22315 cat >conftest.$ac_ext <<_ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h. */
22321 #include <unistd.h>
22325 extern int optreset; optreset = 1;
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337 $as_echo "$ac_try_echo") >&5
22338 (eval "$ac_link") 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest$ac_exeext && {
22348 test "$cross_compiling" = yes ||
22349 $as_test_x conftest$ac_exeext
22351 pgac_cv_var_int_optreset=yes
22353 $as_echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 pgac_cv_var_int_optreset=no
22359 rm -rf conftest.dSYM
22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361 conftest$ac_exeext conftest.$ac_ext
22363 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22364 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22365 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_INT_OPTRESET 1
22375 for ac_func in strtoll strtoq
22377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22378 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22379 $as_echo_n "checking for $ac_func... " >&6; }
22380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22381 $as_echo_n "(cached) " >&6
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22391 #define $ac_func innocuous_$ac_func
22393 /* System header to define __stub macros and hopefully few prototypes,
22394 which can conflict with char $ac_func (); below.
22395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22396 <limits.h> exists even on freestanding compilers. */
22399 # include <limits.h>
22401 # include <assert.h>
22406 /* Override any GCC internal prototype to avoid an error.
22407 Use char because int might match the return type of a GCC
22408 builtin and then its argument prototype would still apply. */
22413 /* The GNU C library defines this for functions which it implements
22414 to always fail with ENOSYS. Some functions are actually named
22415 something starting with __ and the normal name is an alias. */
22416 #if defined __stub_$ac_func || defined __stub___$ac_func
22423 return $ac_func ();
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (ac_try="$ac_link"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22435 $as_echo "$ac_try_echo") >&5
22436 (eval "$ac_link") 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest$ac_exeext && {
22446 test "$cross_compiling" = yes ||
22447 $as_test_x conftest$ac_exeext
22449 eval "$as_ac_var=yes"
22451 $as_echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 eval "$as_ac_var=no"
22457 rm -rf conftest.dSYM
22458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22459 conftest$ac_exeext conftest.$ac_ext
22461 ac_res=`eval 'as_val=${'$as_ac_var'}
22462 $as_echo "$as_val"'`
22463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22464 $as_echo "$ac_res" >&6; }
22465 as_val=`eval 'as_val=${'$as_ac_var'}
22466 $as_echo "$as_val"'`
22467 if test "x$as_val" = x""yes; then
22468 cat >>confdefs.h <<_ACEOF
22469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22477 for ac_func in strtoull strtouq
22479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22481 $as_echo_n "checking for $ac_func... " >&6; }
22482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22483 $as_echo_n "(cached) " >&6
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22493 #define $ac_func innocuous_$ac_func
22495 /* System header to define __stub macros and hopefully few prototypes,
22496 which can conflict with char $ac_func (); below.
22497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22498 <limits.h> exists even on freestanding compilers. */
22501 # include <limits.h>
22503 # include <assert.h>
22508 /* Override any GCC internal prototype to avoid an error.
22509 Use char because int might match the return type of a GCC
22510 builtin and then its argument prototype would still apply. */
22515 /* The GNU C library defines this for functions which it implements
22516 to always fail with ENOSYS. Some functions are actually named
22517 something starting with __ and the normal name is an alias. */
22518 #if defined __stub_$ac_func || defined __stub___$ac_func
22525 return $ac_func ();
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (ac_try="$ac_link"
22532 case "(($ac_try" in
22533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22534 *) ac_try_echo=$ac_try;;
22536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22537 $as_echo "$ac_try_echo") >&5
22538 (eval "$ac_link") 2>conftest.er1
22540 grep -v '^ *+' conftest.er1 >conftest.err
22542 cat conftest.err >&5
22543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest$ac_exeext && {
22548 test "$cross_compiling" = yes ||
22549 $as_test_x conftest$ac_exeext
22551 eval "$as_ac_var=yes"
22553 $as_echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 eval "$as_ac_var=no"
22559 rm -rf conftest.dSYM
22560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22561 conftest$ac_exeext conftest.$ac_ext
22563 ac_res=`eval 'as_val=${'$as_ac_var'}
22564 $as_echo "$as_val"'`
22565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22566 $as_echo "$ac_res" >&6; }
22567 as_val=`eval 'as_val=${'$as_ac_var'}
22568 $as_echo "$as_val"'`
22569 if test "x$as_val" = x""yes; then
22570 cat >>confdefs.h <<_ACEOF
22571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22578 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22579 $as_echo_n "checking for builtin locking functions... " >&6; }
22580 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22581 $as_echo_n "(cached) " >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22594 __sync_lock_test_and_set(&lock, 1);
22595 __sync_lock_release(&lock);
22600 rm -f conftest.$ac_objext conftest$ac_exeext
22601 if { (ac_try="$ac_link"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22607 $as_echo "$ac_try_echo") >&5
22608 (eval "$ac_link") 2>conftest.er1
22610 grep -v '^ *+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest$ac_exeext && {
22618 test "$cross_compiling" = yes ||
22619 $as_test_x conftest$ac_exeext
22621 pgac_cv_gcc_int_atomics="yes"
22623 $as_echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 pgac_cv_gcc_int_atomics="no"
22629 rm -rf conftest.dSYM
22630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22631 conftest$ac_exeext conftest.$ac_ext
22633 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22634 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22635 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_GCC_INT_ATOMICS 1
22647 # For each platform, we need to know about any special compile and link
22648 # libraries, and whether the normal C function names are thread-safe.
22649 # See the comment at the top of src/port/thread.c for more information.
22650 # WIN32 doesn't need the pthread tests; it always uses threads
22651 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22656 ac_cpp='$CPP $CPPFLAGS'
22657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22663 # We used to check for pthread.h first, but this fails if pthread.h
22664 # requires special compiler flags (e.g. on True64 or Sequent).
22665 # It gets checked for in the link test anyway.
22667 # First of all, check if the user has set any of the PTHREAD_LIBS,
22668 # etcetera environment variables, and if threads linking works using
22670 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22671 save_CFLAGS="$CFLAGS"
22672 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22674 LIBS="$PTHREAD_LIBS $LIBS"
22675 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22676 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22677 cat >conftest.$ac_ext <<_ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22684 /* Override any GCC internal prototype to avoid an error.
22685 Use char because int might match the return type of a GCC
22686 builtin and then its argument prototype would still apply. */
22690 char pthread_join ();
22694 return pthread_join ();
22699 rm -f conftest.$ac_objext conftest$ac_exeext
22700 if { (ac_try="$ac_link"
22701 case "(($ac_try" in
22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22706 $as_echo "$ac_try_echo") >&5
22707 (eval "$ac_link") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest$ac_exeext && {
22717 test "$cross_compiling" = yes ||
22718 $as_test_x conftest$ac_exeext
22722 $as_echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22728 rm -rf conftest.dSYM
22729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22730 conftest$ac_exeext conftest.$ac_ext
22731 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22732 $as_echo "$acx_pthread_ok" >&6; }
22733 if test x"$acx_pthread_ok" = xno; then
22738 CFLAGS="$save_CFLAGS"
22741 # We must check for the threads library under a number of different
22742 # names; the ordering is very important because some systems
22743 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22744 # libraries is broken (non-POSIX).
22746 # Create a list of thread flags to try. Items starting with a "-" are
22747 # C compiler flags, and other items are library names, except for "none"
22748 # which indicates that we try without any flags at all, and "pthread-config"
22749 # which is a program returning the flags for the Pth emulation library.
22751 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22753 # The ordering *is* (sometimes) important. Some notes on the
22754 # individual items follow:
22756 # pthreads: AIX (must check this before -lpthread)
22757 # none: in case threads are in libc; should be tried before -Kthread and
22758 # other compiler flags to prevent continual compiler warnings
22759 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22760 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22761 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22762 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22763 # -pthreads: Solaris/gcc
22764 # -mthreads: Mingw32/gcc, Lynx/gcc
22765 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22766 # doesn't hurt to check since this sometimes defines pthreads too;
22767 # also defines -D_REENTRANT)
22768 # pthread: Linux, etcetera
22769 # --thread-safe: KAI C++
22770 # pthread-config: use pthread-config program (for GNU Pth library)
22772 case "${host_cpu}-${host_os}" in
22775 # On Solaris (at least, for some versions), libc contains stubbed
22776 # (non-functional) versions of the pthreads routines, so link-based
22777 # tests will erroneously succeed. (We need to link with -pthread or
22778 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22779 # a function called by this macro, so we could check for that, but
22780 # who knows whether they'll stub that too in a future libc.) So,
22781 # we'll just look for -pthreads and -lpthread first:
22783 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22787 if test x"$acx_pthread_ok" = xno; then
22788 for flag in $acx_pthread_flags; do
22790 tryPTHREAD_CFLAGS=""
22794 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22795 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22799 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22800 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22801 tryPTHREAD_CFLAGS="$flag"
22805 # skip this if we already have flags defined, for PostgreSQL
22806 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22807 # Extract the first word of "pthread-config", so it can be a program name with args.
22808 set dummy pthread-config; ac_word=$2
22809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22810 $as_echo_n "checking for $ac_word... " >&6; }
22811 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22812 $as_echo_n "(cached) " >&6
22814 if test -n "$acx_pthread_config"; then
22815 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818 for as_dir in $PATH
22821 test -z "$as_dir" && as_dir=.
22822 for ac_exec_ext in '' $ac_executable_extensions; do
22823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22824 ac_cv_prog_acx_pthread_config="yes"
22825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22832 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22835 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22836 if test -n "$acx_pthread_config"; then
22837 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22838 $as_echo "$acx_pthread_config" >&6; }
22840 { $as_echo "$as_me:$LINENO: result: no" >&5
22841 $as_echo "no" >&6; }
22845 if test x"$acx_pthread_config" = xno; then continue; fi
22846 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22847 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22851 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22852 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22853 tryPTHREAD_LIBS="-l$flag"
22858 save_CFLAGS="$CFLAGS"
22859 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22860 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22862 # Check for various functions. We must include pthread.h,
22863 # since some functions may be macros. (On the Sequent, we
22864 # need a special flag -Kthread to make this header compile.)
22865 # We check for pthread_join because it is in -lpthread on IRIX
22866 # while pthread_create is in libc. We check for pthread_attr_init
22867 # due to DEC craziness with -lpthreads. We check for
22868 # pthread_cleanup_push because it is one of the few pthread
22869 # functions on Solaris that doesn't have a non-functional libc stub.
22870 # We try pthread_create on general principles.
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 #include <pthread.h>
22881 pthread_t th; pthread_join(th, 0);
22882 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22883 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22888 rm -f conftest.$ac_objext conftest$ac_exeext
22889 if { (ac_try="$ac_link"
22890 case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22895 $as_echo "$ac_try_echo") >&5
22896 (eval "$ac_link") 2>conftest.er1
22898 grep -v '^ *+' conftest.er1 >conftest.err
22900 cat conftest.err >&5
22901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
22905 } && test -s conftest$ac_exeext && {
22906 test "$cross_compiling" = yes ||
22907 $as_test_x conftest$ac_exeext
22911 $as_echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22917 rm -rf conftest.dSYM
22918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22919 conftest$ac_exeext conftest.$ac_ext
22921 if test "x$acx_pthread_ok" = xyes; then
22922 # Don't use options that are ignored by the compiler.
22923 # We find them by checking stderror.
22924 cat >conftest.$ac_ext <<_ACEOF
22926 main (int argc, char **argv)
22933 rm -f conftest.$ac_objext conftest$ac_exeext
22934 # Check both linking and compiling, because they might tolerate different options.
22935 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22936 # we continue with more flags because Linux needs -lpthread
22937 # for libpq builds on PostgreSQL. The test above only
22938 # tests for building binaries, not shared libraries.
22939 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22940 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22941 else acx_pthread_ok=no
22946 CFLAGS="$save_CFLAGS"
22948 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22949 $as_echo "$acx_pthread_ok" >&6; }
22953 # Various other checks:
22954 if test "x$acx_pthread_ok" = xyes; then
22956 LIBS="$PTHREAD_LIBS $LIBS"
22957 save_CFLAGS="$CFLAGS"
22958 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22960 # Detect AIX lossage: threads are created detached by default
22961 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22962 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22963 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22964 cat >conftest.$ac_ext <<_ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22970 #include <pthread.h>
22974 int attr=PTHREAD_CREATE_JOINABLE;
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (ac_try="$ac_link"
22981 case "(($ac_try" in
22982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983 *) ac_try_echo=$ac_try;;
22985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22986 $as_echo "$ac_try_echo") >&5
22987 (eval "$ac_link") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest$ac_exeext && {
22997 test "$cross_compiling" = yes ||
22998 $as_test_x conftest$ac_exeext
23000 ok=PTHREAD_CREATE_JOINABLE
23002 $as_echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23008 rm -rf conftest.dSYM
23009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23010 conftest$ac_exeext conftest.$ac_ext
23011 if test x"$ok" = xunknown; then
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 #include <pthread.h>
23022 int attr=PTHREAD_CREATE_UNDETACHED;
23027 rm -f conftest.$ac_objext conftest$ac_exeext
23028 if { (ac_try="$ac_link"
23029 case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23034 $as_echo "$ac_try_echo") >&5
23035 (eval "$ac_link") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } && {
23042 test -z "$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23044 } && test -s conftest$ac_exeext && {
23045 test "$cross_compiling" = yes ||
23046 $as_test_x conftest$ac_exeext
23048 ok=PTHREAD_CREATE_UNDETACHED
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23056 rm -rf conftest.dSYM
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058 conftest$ac_exeext conftest.$ac_ext
23060 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23062 cat >>confdefs.h <<\_ACEOF
23063 #define PTHREAD_CREATE_JOINABLE $ok
23067 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23068 $as_echo "${ok}" >&6; }
23069 if test x"$ok" = xunknown; then
23070 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23071 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23074 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23075 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23077 # We always add these in PostgreSQL
23078 # case "${host_cpu}-${host_os}" in
23079 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23080 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23082 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23083 $as_echo "${flag}" >&6; }
23084 if test "x$flag" != xno; then
23085 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23089 CFLAGS="$save_CFLAGS"
23091 # Supporting cc_r would require a special CC in all places that
23092 # use libpq, and that is ugly, so we don't do it. Users can still
23093 # define their compiler as cc_r to do thread builds of everything.
23094 # More AIX lossage: must compile with cc_r
23095 # Extract the first word of "cc_r", so it can be a program name with args.
23096 set dummy cc_r; ac_word=$2
23097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23098 $as_echo_n "checking for $ac_word... " >&6; }
23099 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23100 $as_echo_n "(cached) " >&6
23102 if test -n "$PTHREAD_CC"; then
23103 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23106 for as_dir in $PATH
23109 test -z "$as_dir" && as_dir=.
23110 for ac_exec_ext in '' $ac_executable_extensions; do
23111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23112 ac_cv_prog_PTHREAD_CC="cc_r"
23113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23120 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23123 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23124 if test -n "$PTHREAD_CC"; then
23125 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23126 $as_echo "$PTHREAD_CC" >&6; }
23128 { $as_echo "$as_me:$LINENO: result: no" >&5
23129 $as_echo "no" >&6; }
23141 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23142 if test x"$acx_pthread_ok" = xyes; then
23144 cat >>confdefs.h <<\_ACEOF
23145 #define HAVE_PTHREAD 1
23154 ac_cpp='$CPP $CPPFLAGS'
23155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23161 # Some platforms use these, so just define them. They can't hurt if they
23162 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23163 # enables 5-arg getpwuid_r, among other things.
23164 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23167 # At this point, we don't want to muck with the compiler name for threading.
23168 # Let's see who fails, perhaps AIX. 2004-04-23
23169 if test "$PTHREAD_CC" != "$CC"; then
23170 { { $as_echo "$as_me:$LINENO: error:
23171 PostgreSQL does not support platforms that require a special compiler
23172 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23173 $as_echo "$as_me: error:
23174 PostgreSQL does not support platforms that require a special compiler
23175 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23176 { (exit 1); exit 1; }; }
23179 # Check for *_r functions
23182 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23183 LIBS="$LIBS $PTHREAD_LIBS"
23185 if test "$PORTNAME" != "win32"; then
23186 if test "${ac_cv_header_pthread_h+set}" = set; then
23187 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23188 $as_echo_n "checking for pthread.h... " >&6; }
23189 if test "${ac_cv_header_pthread_h+set}" = set; then
23190 $as_echo_n "(cached) " >&6
23192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23193 $as_echo "$ac_cv_header_pthread_h" >&6; }
23195 # Is the header compilable?
23196 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23197 $as_echo_n "checking pthread.h usability... " >&6; }
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 $ac_includes_default
23205 #include <pthread.h>
23207 rm -f conftest.$ac_objext
23208 if { (ac_try="$ac_compile"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23214 $as_echo "$ac_try_echo") >&5
23215 (eval "$ac_compile") 2>conftest.er1
23217 grep -v '^ *+' conftest.er1 >conftest.err
23219 cat conftest.err >&5
23220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } && {
23222 test -z "$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23224 } && test -s conftest.$ac_objext; then
23225 ac_header_compiler=yes
23227 $as_echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ac_header_compiler=no
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23235 $as_echo "$ac_header_compiler" >&6; }
23237 # Is the header present?
23238 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23239 $as_echo_n "checking pthread.h presence... " >&6; }
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 #include <pthread.h>
23248 if { (ac_try="$ac_cpp conftest.$ac_ext"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23254 $as_echo "$ac_try_echo") >&5
23255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23257 grep -v '^ *+' conftest.er1 >conftest.err
23259 cat conftest.err >&5
23260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } >/dev/null && {
23262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23265 ac_header_preproc=yes
23267 $as_echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ac_header_preproc=no
23273 rm -f conftest.err conftest.$ac_ext
23274 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23275 $as_echo "$ac_header_preproc" >&6; }
23277 # So? What about this header?
23278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23280 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23281 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23282 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23283 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23284 ac_header_preproc=yes
23287 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23288 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23289 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23290 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23291 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23292 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23293 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23294 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23295 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23296 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23297 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23298 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23300 ## ---------------------------------------- ##
23301 ## Report this to pgsql-bugs@postgresql.org ##
23302 ## ---------------------------------------- ##
23304 ) | sed "s/^/$as_me: WARNING: /" >&2
23307 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23308 $as_echo_n "checking for pthread.h... " >&6; }
23309 if test "${ac_cv_header_pthread_h+set}" = set; then
23310 $as_echo_n "(cached) " >&6
23312 ac_cv_header_pthread_h=$ac_header_preproc
23314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23315 $as_echo "$ac_cv_header_pthread_h" >&6; }
23318 if test "x$ac_cv_header_pthread_h" = x""yes; then
23321 { { $as_echo "$as_me:$LINENO: error:
23322 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23323 $as_echo "$as_me: error:
23324 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23325 { (exit 1); exit 1; }; }
23334 for ac_func in strerror_r getpwuid_r gethostbyname_r
23336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23338 $as_echo_n "checking for $ac_func... " >&6; }
23339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23340 $as_echo_n "(cached) " >&6
23342 cat >conftest.$ac_ext <<_ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23350 #define $ac_func innocuous_$ac_func
23352 /* System header to define __stub macros and hopefully few prototypes,
23353 which can conflict with char $ac_func (); below.
23354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23355 <limits.h> exists even on freestanding compilers. */
23358 # include <limits.h>
23360 # include <assert.h>
23365 /* Override any GCC internal prototype to avoid an error.
23366 Use char because int might match the return type of a GCC
23367 builtin and then its argument prototype would still apply. */
23372 /* The GNU C library defines this for functions which it implements
23373 to always fail with ENOSYS. Some functions are actually named
23374 something starting with __ and the normal name is an alias. */
23375 #if defined __stub_$ac_func || defined __stub___$ac_func
23382 return $ac_func ();
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (ac_try="$ac_link"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23394 $as_echo "$ac_try_echo") >&5
23395 (eval "$ac_link") 2>conftest.er1
23397 grep -v '^ *+' conftest.er1 >conftest.err
23399 cat conftest.err >&5
23400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest$ac_exeext && {
23405 test "$cross_compiling" = yes ||
23406 $as_test_x conftest$ac_exeext
23408 eval "$as_ac_var=yes"
23410 $as_echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23413 eval "$as_ac_var=no"
23416 rm -rf conftest.dSYM
23417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23418 conftest$ac_exeext conftest.$ac_ext
23420 ac_res=`eval 'as_val=${'$as_ac_var'}
23421 $as_echo "$as_val"'`
23422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23423 $as_echo "$ac_res" >&6; }
23424 as_val=`eval 'as_val=${'$as_ac_var'}
23425 $as_echo "$as_val"'`
23426 if test "x$as_val" = x""yes; then
23427 cat >>confdefs.h <<_ACEOF
23428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23435 # Do test here with the proper thread flags
23436 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23437 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23438 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23439 $as_echo_n "(cached) " >&6
23441 cat >conftest.$ac_ext <<_ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 #include <sys/types.h>
23453 struct passwd *space;
23456 struct passwd **result;
23457 getpwuid_r(uid, space, buf, bufsize, result);
23462 rm -f conftest.$ac_objext
23463 if { (ac_try="$ac_compile"
23464 case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23469 $as_echo "$ac_try_echo") >&5
23470 (eval "$ac_compile") 2>conftest.er1
23472 grep -v '^ *+' conftest.er1 >conftest.err
23474 cat conftest.err >&5
23475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest.$ac_objext; then
23480 pgac_cv_func_getpwuid_r_5arg=yes
23482 $as_echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 pgac_cv_func_getpwuid_r_5arg=no
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23491 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23492 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23494 cat >>confdefs.h <<\_ACEOF
23495 #define GETPWUID_R_5ARG /**/
23500 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23501 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23502 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23503 $as_echo_n "(cached) " >&6
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 #include <string.h>
23516 int strerror_r(int, char *, size_t);
23518 /* Older AIX has 'int' for the third argument so we don't test the args. */
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23532 $as_echo "$ac_try_echo") >&5
23533 (eval "$ac_compile") 2>conftest.er1
23535 grep -v '^ *+' conftest.er1 >conftest.err
23537 cat conftest.err >&5
23538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest.$ac_objext; then
23543 pgac_cv_func_strerror_r_int=yes
23545 $as_echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23548 pgac_cv_func_strerror_r_int=no
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23554 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23555 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23557 cat >>confdefs.h <<\_ACEOF
23558 #define STRERROR_R_INT /**/
23568 # do not use values from template file
23577 # We can test for libldap_r only after we know PTHREAD_LIBS
23578 if test "$with_ldap" = yes ; then
23580 if test "$PORTNAME" != "win32"; then
23582 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23583 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23584 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23585 $as_echo_n "(cached) " >&6
23587 ac_check_lib_save_LIBS=$LIBS
23588 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23589 cat >conftest.$ac_ext <<_ACEOF
23592 cat confdefs.h >>conftest.$ac_ext
23593 cat >>conftest.$ac_ext <<_ACEOF
23594 /* end confdefs.h. */
23596 /* Override any GCC internal prototype to avoid an error.
23597 Use char because int might match the return type of a GCC
23598 builtin and then its argument prototype would still apply. */
23606 return ldap_bind ();
23611 rm -f conftest.$ac_objext conftest$ac_exeext
23612 if { (ac_try="$ac_link"
23613 case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23618 $as_echo "$ac_try_echo") >&5
23619 (eval "$ac_link") 2>conftest.er1
23621 grep -v '^ *+' conftest.er1 >conftest.err
23623 cat conftest.err >&5
23624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); } && {
23626 test -z "$ac_c_werror_flag" ||
23627 test ! -s conftest.err
23628 } && test -s conftest$ac_exeext && {
23629 test "$cross_compiling" = yes ||
23630 $as_test_x conftest$ac_exeext
23632 ac_cv_lib_ldap_ldap_bind=yes
23634 $as_echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 ac_cv_lib_ldap_ldap_bind=no
23640 rm -rf conftest.dSYM
23641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23642 conftest$ac_exeext conftest.$ac_ext
23643 LIBS=$ac_check_lib_save_LIBS
23645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23646 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23647 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23648 cat >>confdefs.h <<_ACEOF
23649 #define HAVE_LIBLDAP 1
23652 LIBS="-lldap $LIBS"
23655 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23656 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23657 { (exit 1); exit 1; }; }
23660 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23661 if test "$enable_thread_safety" = yes; then
23662 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23664 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23665 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23666 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23667 $as_echo_n "(cached) " >&6
23669 ac_check_lib_save_LIBS=$LIBS
23670 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23671 cat >conftest.$ac_ext <<_ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23678 /* Override any GCC internal prototype to avoid an error.
23679 Use char because int might match the return type of a GCC
23680 builtin and then its argument prototype would still apply. */
23684 char ldap_simple_bind ();
23688 return ldap_simple_bind ();
23693 rm -f conftest.$ac_objext conftest$ac_exeext
23694 if { (ac_try="$ac_link"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23700 $as_echo "$ac_try_echo") >&5
23701 (eval "$ac_link") 2>conftest.er1
23703 grep -v '^ *+' conftest.er1 >conftest.err
23705 cat conftest.err >&5
23706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } && {
23708 test -z "$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23710 } && test -s conftest$ac_exeext && {
23711 test "$cross_compiling" = yes ||
23712 $as_test_x conftest$ac_exeext
23714 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23716 $as_echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 ac_cv_lib_ldap_r_ldap_simple_bind=no
23722 rm -rf conftest.dSYM
23723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23724 conftest$ac_exeext conftest.$ac_ext
23725 LIBS=$ac_check_lib_save_LIBS
23727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23728 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23729 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23730 cat >>confdefs.h <<_ACEOF
23731 #define HAVE_LIBLDAP_R 1
23734 LIBS="-lldap_r $LIBS"
23737 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23738 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23739 { (exit 1); exit 1; }; }
23742 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23744 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23748 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23749 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23750 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23751 $as_echo_n "(cached) " >&6
23753 ac_check_lib_save_LIBS=$LIBS
23754 LIBS="-lwldap32 $LIBS"
23755 cat >conftest.$ac_ext <<_ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23762 /* Override any GCC internal prototype to avoid an error.
23763 Use char because int might match the return type of a GCC
23764 builtin and then its argument prototype would still apply. */
23772 return ldap_bind ();
23777 rm -f conftest.$ac_objext conftest$ac_exeext
23778 if { (ac_try="$ac_link"
23779 case "(($ac_try" in
23780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23781 *) ac_try_echo=$ac_try;;
23783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23784 $as_echo "$ac_try_echo") >&5
23785 (eval "$ac_link") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest$ac_exeext && {
23795 test "$cross_compiling" = yes ||
23796 $as_test_x conftest$ac_exeext
23798 ac_cv_lib_wldap32_ldap_bind=yes
23800 $as_echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_cv_lib_wldap32_ldap_bind=no
23806 rm -rf conftest.dSYM
23807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23808 conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23812 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23813 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23814 cat >>confdefs.h <<_ACEOF
23815 #define HAVE_LIBWLDAP32 1
23818 LIBS="-lwldap32 $LIBS"
23821 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23822 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23823 { (exit 1); exit 1; }; }
23826 LDAP_LIBS_FE="-lwldap32"
23827 LDAP_LIBS_BE="-lwldap32"
23835 # This test makes sure that run tests work at all. Sometimes a shared
23836 # library is found by the linker, but the runtime linker can't find it.
23837 # This check should come after all modifications of compiler or linker
23838 # variables, and before any other run tests.
23839 { $as_echo "$as_me:$LINENO: checking test program" >&5
23840 $as_echo_n "checking test program... " >&6; }
23841 if test "$cross_compiling" = yes; then
23842 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23843 $as_echo "cross-compiling" >&6; }
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 int main() { return 0; }
23853 rm -f conftest$ac_exeext
23854 if { (ac_try="$ac_link"
23855 case "(($ac_try" in
23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857 *) ac_try_echo=$ac_try;;
23859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23860 $as_echo "$ac_try_echo") >&5
23861 (eval "$ac_link") 2>&5
23863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23865 { (case "(($ac_try" in
23866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867 *) ac_try_echo=$ac_try;;
23869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23870 $as_echo "$ac_try_echo") >&5
23871 (eval "$ac_try") 2>&5
23873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 { $as_echo "$as_me:$LINENO: result: ok" >&5
23876 $as_echo "ok" >&6; }
23878 $as_echo "$as_me: program exited with status $ac_status" >&5
23879 $as_echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 ( exit $ac_status )
23883 { $as_echo "$as_me:$LINENO: result: failed" >&5
23884 $as_echo "failed" >&6; }
23885 { { $as_echo "$as_me:$LINENO: error:
23886 Could not execute a simple test program. This may be a problem
23887 related to locating shared libraries. Check the file 'config.log'
23888 for the exact reason." >&5
23889 $as_echo "$as_me: error:
23890 Could not execute a simple test program. This may be a problem
23891 related to locating shared libraries. Check the file 'config.log'
23892 for the exact reason." >&2;}
23893 { (exit 1); exit 1; }; }
23895 rm -rf conftest.dSYM
23896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23901 # --------------------
23902 # Run tests below here
23903 # --------------------
23905 # Force use of our snprintf if system's doesn't do arg control
23906 # See comment above at snprintf test for details.
23907 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23908 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23909 $as_echo_n "checking whether printf supports argument control... " >&6; }
23910 if test "${pgac_cv_printf_arg_control+set}" = set; then
23911 $as_echo_n "(cached) " >&6
23913 if test "$cross_compiling" = yes; then
23914 pgac_cv_printf_arg_control=cross
23916 cat >conftest.$ac_ext <<_ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h. */
23923 #include <string.h>
23929 /* can it swap arguments? */
23930 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23931 if (strcmp(buf, "4 3") != 0)
23936 rm -f conftest$ac_exeext
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943 $as_echo "$ac_try_echo") >&5
23944 (eval "$ac_link") 2>&5
23946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23948 { (case "(($ac_try" in
23949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950 *) ac_try_echo=$ac_try;;
23952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23953 $as_echo "$ac_try_echo") >&5
23954 (eval "$ac_try") 2>&5
23956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); }; }; then
23958 pgac_cv_printf_arg_control=yes
23960 $as_echo "$as_me: program exited with status $ac_status" >&5
23961 $as_echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 ( exit $ac_status )
23965 pgac_cv_printf_arg_control=no
23967 rm -rf conftest.dSYM
23968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23974 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23975 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23977 if test $pgac_cv_printf_arg_control != yes ; then
23978 pgac_need_repl_snprintf=yes
23985 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23986 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23987 if test "${pgac_cv_type_long_int_64+set}" = set; then
23988 $as_echo_n "(cached) " >&6
23990 if test "$cross_compiling" = yes; then
23991 # If cross-compiling, check the size reported by the compiler and
23992 # trust that the arithmetic works.
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
24003 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24017 $as_echo "$ac_try_echo") >&5
24018 (eval "$ac_compile") 2>conftest.er1
24020 grep -v '^ *+' conftest.er1 >conftest.err
24022 cat conftest.err >&5
24023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } && {
24025 test -z "$ac_c_werror_flag" ||
24026 test ! -s conftest.err
24027 } && test -s conftest.$ac_objext; then
24028 pgac_cv_type_long_int_64=yes
24030 $as_echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24033 pgac_cv_type_long_int_64=no
24036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24038 cat >conftest.$ac_ext <<_ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 typedef long int ac_int64;
24047 * These are globals to discourage the compiler from folding all the
24048 * arithmetic tests down to compile-time constants.
24050 ac_int64 a = 20000001;
24051 ac_int64 b = 40000005;
24053 int does_int64_work()
24057 if (sizeof(ac_int64) != 8)
24058 return 0; /* definitely not the right size */
24060 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24068 exit(! does_int64_work());
24071 rm -f conftest$ac_exeext
24072 if { (ac_try="$ac_link"
24073 case "(($ac_try" in
24074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075 *) ac_try_echo=$ac_try;;
24077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24078 $as_echo "$ac_try_echo") >&5
24079 (eval "$ac_link") 2>&5
24081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24083 { (case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24088 $as_echo "$ac_try_echo") >&5
24089 (eval "$ac_try") 2>&5
24091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
24093 pgac_cv_type_long_int_64=yes
24095 $as_echo "$as_me: program exited with status $ac_status" >&5
24096 $as_echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24099 ( exit $ac_status )
24100 pgac_cv_type_long_int_64=no
24102 rm -rf conftest.dSYM
24103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24108 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24109 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24111 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24112 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_LONG_INT_64 1
24121 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24122 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24123 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24124 if test "${pgac_cv_type_long_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 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_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_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 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_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_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_long_int_64" >&5
24246 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24248 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24249 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define HAVE_LONG_LONG_INT_64 1
24257 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24258 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24259 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24260 { (exit 1); exit 1; }; }
24266 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24267 cat >conftest.$ac_ext <<_ACEOF
24270 cat confdefs.h >>conftest.$ac_ext
24271 cat >>conftest.$ac_ext <<_ACEOF
24272 /* end confdefs.h. */
24274 #define INT64CONST(x) x##LL
24275 long long int foo = INT64CONST(0x1234567890123456);
24285 rm -f conftest.$ac_objext
24286 if { (ac_try="$ac_compile"
24287 case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24292 $as_echo "$ac_try_echo") >&5
24293 (eval "$ac_compile") 2>conftest.er1
24295 grep -v '^ *+' conftest.er1 >conftest.err
24297 cat conftest.err >&5
24298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && {
24300 test -z "$ac_c_werror_flag" ||
24301 test ! -s conftest.err
24302 } && test -s conftest.$ac_objext; then
24304 cat >>confdefs.h <<\_ACEOF
24305 #define HAVE_LL_CONSTANTS 1
24309 $as_echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319 # If we found "long int" is 64 bits, assume snprintf handles it. If
24320 # we found we need to use "long long int", better check. We cope with
24321 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24322 # work, fall back to our own snprintf emulation (which we know uses %lld).
24324 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24325 if test $pgac_need_repl_snprintf = no; then
24326 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24327 $as_echo_n "checking snprintf format for long long int... " >&6; }
24328 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24329 $as_echo_n "(cached) " >&6
24331 for pgac_format in '%lld' '%qd' '%I64d'; do
24332 if test "$cross_compiling" = yes; then
24333 pgac_cv_snprintf_long_long_int_format=cross; break
24335 cat >conftest.$ac_ext <<_ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h. */
24342 typedef long long int ac_int64;
24343 #define INT64_FORMAT "$pgac_format"
24345 ac_int64 a = 20000001;
24346 ac_int64 b = 40000005;
24348 int does_int64_snprintf_work()
24353 if (sizeof(ac_int64) != 8)
24354 return 0; /* doesn't look like the right size */
24357 snprintf(buf, 100, INT64_FORMAT, c);
24358 if (strcmp(buf, "800000140000005") != 0)
24359 return 0; /* either multiply or snprintf is busted */
24363 exit(! does_int64_snprintf_work());
24366 rm -f conftest$ac_exeext
24367 if { (ac_try="$ac_link"
24368 case "(($ac_try" in
24369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24373 $as_echo "$ac_try_echo") >&5
24374 (eval "$ac_link") 2>&5
24376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24378 { (case "(($ac_try" in
24379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380 *) ac_try_echo=$ac_try;;
24382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24383 $as_echo "$ac_try_echo") >&5
24384 (eval "$ac_try") 2>&5
24386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; }; then
24388 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24390 $as_echo "$as_me: program exited with status $ac_status" >&5
24391 $as_echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24395 rm -rf conftest.dSYM
24396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24403 LONG_LONG_INT_FORMAT=''
24405 case $pgac_cv_snprintf_long_long_int_format in
24406 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24407 $as_echo "cannot test (not on host machine)" >&6; };;
24408 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24409 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24410 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24411 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24412 $as_echo "none" >&6; };;
24414 if test "$LONG_LONG_INT_FORMAT" = ""; then
24415 # Force usage of our own snprintf, since system snprintf is broken
24416 pgac_need_repl_snprintf=yes
24417 LONG_LONG_INT_FORMAT='%lld'
24420 # Here if we previously decided we needed to use our own snprintf
24421 LONG_LONG_INT_FORMAT='%lld'
24423 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24424 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24425 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24427 # Here if we are not using 'long long int' at all
24428 INT64_FORMAT='"%ld"'
24429 UINT64_FORMAT='"%lu"'
24433 cat >>confdefs.h <<_ACEOF
24434 #define INT64_FORMAT $INT64_FORMAT
24439 cat >>confdefs.h <<_ACEOF
24440 #define UINT64_FORMAT $UINT64_FORMAT
24444 # Now we have checked all the reasons to replace snprintf
24445 if test $pgac_need_repl_snprintf = yes; then
24447 cat >>confdefs.h <<\_ACEOF
24448 #define USE_REPL_SNPRINTF 1
24451 case " $LIBOBJS " in
24452 *" snprintf.$ac_objext "* ) ;;
24453 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24459 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24460 # The cast to long int works around a bug in the HP C Compiler
24461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24463 # This bug is HP SR number 8606223364.
24464 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24465 $as_echo_n "checking size of void *... " >&6; }
24466 if test "${ac_cv_sizeof_void_p+set}" = set; then
24467 $as_echo_n "(cached) " >&6
24469 if test "$cross_compiling" = yes; then
24470 # Depending upon the size, compute the lo and hi bounds.
24471 cat >conftest.$ac_ext <<_ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24477 $ac_includes_default
24481 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24488 rm -f conftest.$ac_objext
24489 if { (ac_try="$ac_compile"
24490 case "(($ac_try" in
24491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492 *) ac_try_echo=$ac_try;;
24494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24495 $as_echo "$ac_try_echo") >&5
24496 (eval "$ac_compile") 2>conftest.er1
24498 grep -v '^ *+' conftest.er1 >conftest.err
24500 cat conftest.err >&5
24501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } && {
24503 test -z "$ac_c_werror_flag" ||
24504 test ! -s conftest.err
24505 } && test -s conftest.$ac_objext; then
24508 cat >conftest.$ac_ext <<_ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 $ac_includes_default
24518 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24525 rm -f conftest.$ac_objext
24526 if { (ac_try="$ac_compile"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24532 $as_echo "$ac_try_echo") >&5
24533 (eval "$ac_compile") 2>conftest.er1
24535 grep -v '^ *+' conftest.er1 >conftest.err
24537 cat conftest.err >&5
24538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } && {
24540 test -z "$ac_c_werror_flag" ||
24541 test ! -s conftest.err
24542 } && test -s conftest.$ac_objext; then
24543 ac_hi=$ac_mid; break
24545 $as_echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24548 ac_lo=`expr $ac_mid + 1`
24549 if test $ac_lo -le $ac_mid; then
24553 ac_mid=`expr 2 '*' $ac_mid + 1`
24556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24559 $as_echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 $ac_includes_default
24572 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24579 rm -f conftest.$ac_objext
24580 if { (ac_try="$ac_compile"
24581 case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24586 $as_echo "$ac_try_echo") >&5
24587 (eval "$ac_compile") 2>conftest.er1
24589 grep -v '^ *+' conftest.er1 >conftest.err
24591 cat conftest.err >&5
24592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); } && {
24594 test -z "$ac_c_werror_flag" ||
24595 test ! -s conftest.err
24596 } && test -s conftest.$ac_objext; then
24599 cat >conftest.$ac_ext <<_ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24605 $ac_includes_default
24609 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24616 rm -f conftest.$ac_objext
24617 if { (ac_try="$ac_compile"
24618 case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24623 $as_echo "$ac_try_echo") >&5
24624 (eval "$ac_compile") 2>conftest.er1
24626 grep -v '^ *+' conftest.er1 >conftest.err
24628 cat conftest.err >&5
24629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } && {
24631 test -z "$ac_c_werror_flag" ||
24632 test ! -s conftest.err
24633 } && test -s conftest.$ac_objext; then
24634 ac_lo=$ac_mid; break
24636 $as_echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 ac_hi=`expr '(' $ac_mid ')' - 1`
24640 if test $ac_mid -le $ac_hi; then
24644 ac_mid=`expr 2 '*' $ac_mid`
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650 $as_echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24660 # Binary search between lo and hi bounds.
24661 while test "x$ac_lo" != "x$ac_hi"; do
24662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 $ac_includes_default
24673 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24680 rm -f conftest.$ac_objext
24681 if { (ac_try="$ac_compile"
24682 case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24687 $as_echo "$ac_try_echo") >&5
24688 (eval "$ac_compile") 2>conftest.er1
24690 grep -v '^ *+' conftest.er1 >conftest.err
24692 cat conftest.err >&5
24693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } && {
24695 test -z "$ac_c_werror_flag" ||
24696 test ! -s conftest.err
24697 } && test -s conftest.$ac_objext; then
24700 $as_echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24703 ac_lo=`expr '(' $ac_mid ')' + 1`
24706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24710 '') if test "$ac_cv_type_void_p" = yes; then
24711 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24713 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24714 See \`config.log' for more details." >&5
24715 $as_echo "$as_me: error: cannot compute sizeof (void *)
24716 See \`config.log' for more details." >&2;}
24717 { (exit 77); exit 77; }; }; }
24719 ac_cv_sizeof_void_p=0
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24730 static long int longval () { return (long int) (sizeof (void *)); }
24731 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24733 #include <stdlib.h>
24738 FILE *f = fopen ("conftest.val", "w");
24741 if (((long int) (sizeof (void *))) < 0)
24743 long int i = longval ();
24744 if (i != ((long int) (sizeof (void *))))
24746 fprintf (f, "%ld", i);
24750 unsigned long int i = ulongval ();
24751 if (i != ((long int) (sizeof (void *))))
24753 fprintf (f, "%lu", i);
24755 /* Do not output a trailing newline, as this causes \r\n confusion
24756 on some platforms. */
24757 return ferror (f) || fclose (f) != 0;
24763 rm -f conftest$ac_exeext
24764 if { (ac_try="$ac_link"
24765 case "(($ac_try" in
24766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24767 *) ac_try_echo=$ac_try;;
24769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24770 $as_echo "$ac_try_echo") >&5
24771 (eval "$ac_link") 2>&5
24773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24775 { (case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24780 $as_echo "$ac_try_echo") >&5
24781 (eval "$ac_try") 2>&5
24783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 ac_cv_sizeof_void_p=`cat conftest.val`
24787 $as_echo "$as_me: program exited with status $ac_status" >&5
24788 $as_echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ( exit $ac_status )
24792 if test "$ac_cv_type_void_p" = yes; then
24793 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24795 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24796 See \`config.log' for more details." >&5
24797 $as_echo "$as_me: error: cannot compute sizeof (void *)
24798 See \`config.log' for more details." >&2;}
24799 { (exit 77); exit 77; }; }; }
24801 ac_cv_sizeof_void_p=0
24804 rm -rf conftest.dSYM
24805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24809 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24810 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24814 cat >>confdefs.h <<_ACEOF
24815 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24819 # The cast to long int works around a bug in the HP C Compiler
24820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24822 # This bug is HP SR number 8606223364.
24823 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24824 $as_echo_n "checking size of size_t... " >&6; }
24825 if test "${ac_cv_sizeof_size_t+set}" = set; then
24826 $as_echo_n "(cached) " >&6
24828 if test "$cross_compiling" = yes; then
24829 # Depending upon the size, compute the lo and hi bounds.
24830 cat >conftest.$ac_ext <<_ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h. */
24836 $ac_includes_default
24840 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24854 $as_echo "$ac_try_echo") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24873 $ac_includes_default
24877 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24884 rm -f conftest.$ac_objext
24885 if { (ac_try="$ac_compile"
24886 case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24891 $as_echo "$ac_try_echo") >&5
24892 (eval "$ac_compile") 2>conftest.er1
24894 grep -v '^ *+' conftest.er1 >conftest.err
24896 cat conftest.err >&5
24897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } && {
24899 test -z "$ac_c_werror_flag" ||
24900 test ! -s conftest.err
24901 } && test -s conftest.$ac_objext; then
24902 ac_hi=$ac_mid; break
24904 $as_echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24907 ac_lo=`expr $ac_mid + 1`
24908 if test $ac_lo -le $ac_mid; then
24912 ac_mid=`expr 2 '*' $ac_mid + 1`
24915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918 $as_echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 cat >conftest.$ac_ext <<_ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 $ac_includes_default
24931 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24938 rm -f conftest.$ac_objext
24939 if { (ac_try="$ac_compile"
24940 case "(($ac_try" in
24941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24942 *) ac_try_echo=$ac_try;;
24944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24945 $as_echo "$ac_try_echo") >&5
24946 (eval "$ac_compile") 2>conftest.er1
24948 grep -v '^ *+' conftest.er1 >conftest.err
24950 cat conftest.err >&5
24951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } && {
24953 test -z "$ac_c_werror_flag" ||
24954 test ! -s conftest.err
24955 } && test -s conftest.$ac_objext; then
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 $ac_includes_default
24968 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24982 $as_echo "$ac_try_echo") >&5
24983 (eval "$ac_compile") 2>conftest.er1
24985 grep -v '^ *+' conftest.er1 >conftest.err
24987 cat conftest.err >&5
24988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } && {
24990 test -z "$ac_c_werror_flag" ||
24991 test ! -s conftest.err
24992 } && test -s conftest.$ac_objext; then
24993 ac_lo=$ac_mid; break
24995 $as_echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24998 ac_hi=`expr '(' $ac_mid ')' - 1`
24999 if test $ac_mid -le $ac_hi; then
25003 ac_mid=`expr 2 '*' $ac_mid`
25006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009 $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 # Binary search between lo and hi bounds.
25020 while test "x$ac_lo" != "x$ac_hi"; do
25021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 $ac_includes_default
25032 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25039 rm -f conftest.$ac_objext
25040 if { (ac_try="$ac_compile"
25041 case "(($ac_try" in
25042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25046 $as_echo "$ac_try_echo") >&5
25047 (eval "$ac_compile") 2>conftest.er1
25049 grep -v '^ *+' conftest.er1 >conftest.err
25051 cat conftest.err >&5
25052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest.$ac_objext; then
25059 $as_echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25062 ac_lo=`expr '(' $ac_mid ')' + 1`
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25069 '') if test "$ac_cv_type_size_t" = yes; then
25070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25072 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25073 See \`config.log' for more details." >&5
25074 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25075 See \`config.log' for more details." >&2;}
25076 { (exit 77); exit 77; }; }; }
25078 ac_cv_sizeof_size_t=0
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 $ac_includes_default
25089 static long int longval () { return (long int) (sizeof (size_t)); }
25090 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25092 #include <stdlib.h>
25097 FILE *f = fopen ("conftest.val", "w");
25100 if (((long int) (sizeof (size_t))) < 0)
25102 long int i = longval ();
25103 if (i != ((long int) (sizeof (size_t))))
25105 fprintf (f, "%ld", i);
25109 unsigned long int i = ulongval ();
25110 if (i != ((long int) (sizeof (size_t))))
25112 fprintf (f, "%lu", i);
25114 /* Do not output a trailing newline, as this causes \r\n confusion
25115 on some platforms. */
25116 return ferror (f) || fclose (f) != 0;
25122 rm -f conftest$ac_exeext
25123 if { (ac_try="$ac_link"
25124 case "(($ac_try" in
25125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25126 *) ac_try_echo=$ac_try;;
25128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25129 $as_echo "$ac_try_echo") >&5
25130 (eval "$ac_link") 2>&5
25132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25134 { (case "(($ac_try" in
25135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25136 *) ac_try_echo=$ac_try;;
25138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25139 $as_echo "$ac_try_echo") >&5
25140 (eval "$ac_try") 2>&5
25142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; }; then
25144 ac_cv_sizeof_size_t=`cat conftest.val`
25146 $as_echo "$as_me: program exited with status $ac_status" >&5
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ( exit $ac_status )
25151 if test "$ac_cv_type_size_t" = yes; then
25152 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25154 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25155 See \`config.log' for more details." >&5
25156 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25157 See \`config.log' for more details." >&2;}
25158 { (exit 77); exit 77; }; }; }
25160 ac_cv_sizeof_size_t=0
25163 rm -rf conftest.dSYM
25164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25168 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25169 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25173 cat >>confdefs.h <<_ACEOF
25174 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25178 # The cast to long int works around a bug in the HP C Compiler
25179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25181 # This bug is HP SR number 8606223364.
25182 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25183 $as_echo_n "checking size of long... " >&6; }
25184 if test "${ac_cv_sizeof_long+set}" = set; then
25185 $as_echo_n "(cached) " >&6
25187 if test "$cross_compiling" = yes; then
25188 # Depending upon the size, compute the lo and hi bounds.
25189 cat >conftest.$ac_ext <<_ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25195 $ac_includes_default
25199 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25206 rm -f conftest.$ac_objext
25207 if { (ac_try="$ac_compile"
25208 case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25213 $as_echo "$ac_try_echo") >&5
25214 (eval "$ac_compile") 2>conftest.er1
25216 grep -v '^ *+' conftest.er1 >conftest.err
25218 cat conftest.err >&5
25219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } && {
25221 test -z "$ac_c_werror_flag" ||
25222 test ! -s conftest.err
25223 } && test -s conftest.$ac_objext; then
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 $ac_includes_default
25236 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25243 rm -f conftest.$ac_objext
25244 if { (ac_try="$ac_compile"
25245 case "(($ac_try" in
25246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25247 *) ac_try_echo=$ac_try;;
25249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25250 $as_echo "$ac_try_echo") >&5
25251 (eval "$ac_compile") 2>conftest.er1
25253 grep -v '^ *+' conftest.er1 >conftest.err
25255 cat conftest.err >&5
25256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } && {
25258 test -z "$ac_c_werror_flag" ||
25259 test ! -s conftest.err
25260 } && test -s conftest.$ac_objext; then
25261 ac_hi=$ac_mid; break
25263 $as_echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25266 ac_lo=`expr $ac_mid + 1`
25267 if test $ac_lo -le $ac_mid; then
25271 ac_mid=`expr 2 '*' $ac_mid + 1`
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277 $as_echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 $ac_includes_default
25290 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25297 rm -f conftest.$ac_objext
25298 if { (ac_try="$ac_compile"
25299 case "(($ac_try" in
25300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25301 *) ac_try_echo=$ac_try;;
25303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25304 $as_echo "$ac_try_echo") >&5
25305 (eval "$ac_compile") 2>conftest.er1
25307 grep -v '^ *+' conftest.er1 >conftest.err
25309 cat conftest.err >&5
25310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } && {
25312 test -z "$ac_c_werror_flag" ||
25313 test ! -s conftest.err
25314 } && test -s conftest.$ac_objext; then
25317 cat >conftest.$ac_ext <<_ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323 $ac_includes_default
25327 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25334 rm -f conftest.$ac_objext
25335 if { (ac_try="$ac_compile"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25341 $as_echo "$ac_try_echo") >&5
25342 (eval "$ac_compile") 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && {
25349 test -z "$ac_c_werror_flag" ||
25350 test ! -s conftest.err
25351 } && test -s conftest.$ac_objext; then
25352 ac_lo=$ac_mid; break
25354 $as_echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 ac_hi=`expr '(' $ac_mid ')' - 1`
25358 if test $ac_mid -le $ac_hi; then
25362 ac_mid=`expr 2 '*' $ac_mid`
25365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25368 $as_echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25378 # Binary search between lo and hi bounds.
25379 while test "x$ac_lo" != "x$ac_hi"; do
25380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 $ac_includes_default
25391 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25398 rm -f conftest.$ac_objext
25399 if { (ac_try="$ac_compile"
25400 case "(($ac_try" in
25401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402 *) ac_try_echo=$ac_try;;
25404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25405 $as_echo "$ac_try_echo") >&5
25406 (eval "$ac_compile") 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } && {
25413 test -z "$ac_c_werror_flag" ||
25414 test ! -s conftest.err
25415 } && test -s conftest.$ac_objext; then
25418 $as_echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.$ac_ext >&5
25421 ac_lo=`expr '(' $ac_mid ')' + 1`
25424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 ?*) ac_cv_sizeof_long=$ac_lo;;
25428 '') if test "$ac_cv_type_long" = yes; then
25429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25431 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25432 See \`config.log' for more details." >&5
25433 $as_echo "$as_me: error: cannot compute sizeof (long)
25434 See \`config.log' for more details." >&2;}
25435 { (exit 77); exit 77; }; }; }
25437 ac_cv_sizeof_long=0
25441 cat >conftest.$ac_ext <<_ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h. */
25447 $ac_includes_default
25448 static long int longval () { return (long int) (sizeof (long)); }
25449 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25451 #include <stdlib.h>
25456 FILE *f = fopen ("conftest.val", "w");
25459 if (((long int) (sizeof (long))) < 0)
25461 long int i = longval ();
25462 if (i != ((long int) (sizeof (long))))
25464 fprintf (f, "%ld", i);
25468 unsigned long int i = ulongval ();
25469 if (i != ((long int) (sizeof (long))))
25471 fprintf (f, "%lu", i);
25473 /* Do not output a trailing newline, as this causes \r\n confusion
25474 on some platforms. */
25475 return ferror (f) || fclose (f) != 0;
25481 rm -f conftest$ac_exeext
25482 if { (ac_try="$ac_link"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25488 $as_echo "$ac_try_echo") >&5
25489 (eval "$ac_link") 2>&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25493 { (case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_try") 2>&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); }; }; then
25503 ac_cv_sizeof_long=`cat conftest.val`
25505 $as_echo "$as_me: program exited with status $ac_status" >&5
25506 $as_echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ( exit $ac_status )
25510 if test "$ac_cv_type_long" = yes; then
25511 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25513 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25514 See \`config.log' for more details." >&5
25515 $as_echo "$as_me: error: cannot compute sizeof (long)
25516 See \`config.log' for more details." >&2;}
25517 { (exit 77); exit 77; }; }; }
25519 ac_cv_sizeof_long=0
25522 rm -rf conftest.dSYM
25523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25527 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25528 $as_echo "$ac_cv_sizeof_long" >&6; }
25532 cat >>confdefs.h <<_ACEOF
25533 #define SIZEOF_LONG $ac_cv_sizeof_long
25538 # Decide whether float4 is passed by value: user-selectable, enabled by default
25539 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25540 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25543 # Check whether --enable-float4-byval was given.
25544 if test "${enable_float4_byval+set}" = set; then
25545 enableval=$enable_float4_byval;
25549 cat >>confdefs.h <<\_ACEOF
25550 #define USE_FLOAT4_BYVAL 1
25553 float4passbyval=true
25556 float4passbyval=false
25559 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25560 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25561 { (exit 1); exit 1; }; }
25566 enable_float4_byval=yes
25568 cat >>confdefs.h <<\_ACEOF
25569 #define USE_FLOAT4_BYVAL 1
25572 float4passbyval=true
25576 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25577 $as_echo "$enable_float4_byval" >&6; }
25579 cat >>confdefs.h <<_ACEOF
25580 #define FLOAT4PASSBYVAL $float4passbyval
25584 # Decide whether float8 is passed by value.
25585 # Note: this setting also controls int8 and related types such as timestamp.
25586 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25587 # If not, trying to select it is an error.
25588 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25589 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25590 if test $ac_cv_sizeof_void_p -ge 8 ; then
25593 # Check whether --enable-float8-byval was given.
25594 if test "${enable_float8_byval+set}" = set; then
25595 enableval=$enable_float8_byval;
25604 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25605 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25606 { (exit 1); exit 1; }; }
25611 enable_float8_byval=yes
25619 # Check whether --enable-float8-byval was given.
25620 if test "${enable_float8_byval+set}" = set; then
25621 enableval=$enable_float8_byval;
25630 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25631 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25632 { (exit 1); exit 1; }; }
25637 enable_float8_byval=no
25642 if test "$enable_float8_byval" = yes ; then
25643 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25644 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25645 { (exit 1); exit 1; }; }
25648 if test "$enable_float8_byval" = yes ; then
25650 cat >>confdefs.h <<\_ACEOF
25651 #define USE_FLOAT8_BYVAL 1
25654 float8passbyval=true
25656 float8passbyval=false
25658 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25659 $as_echo "$enable_float8_byval" >&6; }
25661 cat >>confdefs.h <<_ACEOF
25662 #define FLOAT8PASSBYVAL $float8passbyval
25666 # Determine memory alignment requirements for the basic C data types.
25668 # The cast to long int works around a bug in the HP C Compiler,
25669 # see AC_CHECK_SIZEOF for more information.
25670 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25671 $as_echo_n "checking alignment of short... " >&6; }
25672 if test "${ac_cv_alignof_short+set}" = set; then
25673 $as_echo_n "(cached) " >&6
25675 if test "$cross_compiling" = yes; then
25676 # Depending upon the size, compute the lo and hi bounds.
25677 cat >conftest.$ac_ext <<_ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25683 $ac_includes_default
25685 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25687 typedef struct { char x; short y; } ac__type_alignof_;
25691 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25705 $as_echo "$ac_try_echo") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25708 grep -v '^ *+' conftest.er1 >conftest.err
25710 cat conftest.err >&5
25711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && {
25713 test -z "$ac_c_werror_flag" ||
25714 test ! -s conftest.err
25715 } && test -s conftest.$ac_objext; then
25718 cat >conftest.$ac_ext <<_ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h. */
25724 $ac_includes_default
25726 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25728 typedef struct { char x; short y; } ac__type_alignof_;
25732 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25739 rm -f conftest.$ac_objext
25740 if { (ac_try="$ac_compile"
25741 case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25746 $as_echo "$ac_try_echo") >&5
25747 (eval "$ac_compile") 2>conftest.er1
25749 grep -v '^ *+' conftest.er1 >conftest.err
25751 cat conftest.err >&5
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && {
25754 test -z "$ac_c_werror_flag" ||
25755 test ! -s conftest.err
25756 } && test -s conftest.$ac_objext; then
25757 ac_hi=$ac_mid; break
25759 $as_echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25762 ac_lo=`expr $ac_mid + 1`
25763 if test $ac_lo -le $ac_mid; then
25767 ac_mid=`expr 2 '*' $ac_mid + 1`
25770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 $as_echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25776 cat >conftest.$ac_ext <<_ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h. */
25782 $ac_includes_default
25784 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25786 typedef struct { char x; short y; } ac__type_alignof_;
25790 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25797 rm -f conftest.$ac_objext
25798 if { (ac_try="$ac_compile"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25804 $as_echo "$ac_try_echo") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25807 grep -v '^ *+' conftest.er1 >conftest.err
25809 cat conftest.err >&5
25810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest.$ac_objext; then
25817 cat >conftest.$ac_ext <<_ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h. */
25823 $ac_includes_default
25825 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25827 typedef struct { char x; short y; } ac__type_alignof_;
25831 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25838 rm -f conftest.$ac_objext
25839 if { (ac_try="$ac_compile"
25840 case "(($ac_try" in
25841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25842 *) ac_try_echo=$ac_try;;
25844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25845 $as_echo "$ac_try_echo") >&5
25846 (eval "$ac_compile") 2>conftest.er1
25848 grep -v '^ *+' conftest.er1 >conftest.err
25850 cat conftest.err >&5
25851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } && {
25853 test -z "$ac_c_werror_flag" ||
25854 test ! -s conftest.err
25855 } && test -s conftest.$ac_objext; then
25856 ac_lo=$ac_mid; break
25858 $as_echo "$as_me: failed program was:" >&5
25859 sed 's/^/| /' conftest.$ac_ext >&5
25861 ac_hi=`expr '(' $ac_mid ')' - 1`
25862 if test $ac_mid -le $ac_hi; then
25866 ac_mid=`expr 2 '*' $ac_mid`
25869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 $as_echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25882 # Binary search between lo and hi bounds.
25883 while test "x$ac_lo" != "x$ac_hi"; do
25884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25885 cat >conftest.$ac_ext <<_ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 $ac_includes_default
25893 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25895 typedef struct { char x; short y; } ac__type_alignof_;
25899 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25906 rm -f conftest.$ac_objext
25907 if { (ac_try="$ac_compile"
25908 case "(($ac_try" in
25909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910 *) ac_try_echo=$ac_try;;
25912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25913 $as_echo "$ac_try_echo") >&5
25914 (eval "$ac_compile") 2>conftest.er1
25916 grep -v '^ *+' conftest.er1 >conftest.err
25918 cat conftest.err >&5
25919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } && {
25921 test -z "$ac_c_werror_flag" ||
25922 test ! -s conftest.err
25923 } && test -s conftest.$ac_objext; then
25926 $as_echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25929 ac_lo=`expr '(' $ac_mid ')' + 1`
25932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25935 ?*) ac_cv_alignof_short=$ac_lo;;
25936 '') if test "$ac_cv_type_short" = yes; then
25937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25939 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25940 See \`config.log' for more details." >&5
25941 $as_echo "$as_me: error: cannot compute alignment of short
25942 See \`config.log' for more details." >&2;}
25943 { (exit 77); exit 77; }; }; }
25945 ac_cv_alignof_short=0
25949 cat >conftest.$ac_ext <<_ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h. */
25955 $ac_includes_default
25957 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25959 typedef struct { char x; short y; } ac__type_alignof_;
25960 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25961 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25963 #include <stdlib.h>
25968 FILE *f = fopen ("conftest.val", "w");
25971 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25973 long int i = longval ();
25974 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25976 fprintf (f, "%ld", i);
25980 unsigned long int i = ulongval ();
25981 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25983 fprintf (f, "%lu", i);
25985 /* Do not output a trailing newline, as this causes \r\n confusion
25986 on some platforms. */
25987 return ferror (f) || fclose (f) != 0;
25993 rm -f conftest$ac_exeext
25994 if { (ac_try="$ac_link"
25995 case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26000 $as_echo "$ac_try_echo") >&5
26001 (eval "$ac_link") 2>&5
26003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26005 { (case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26010 $as_echo "$ac_try_echo") >&5
26011 (eval "$ac_try") 2>&5
26013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; }; then
26015 ac_cv_alignof_short=`cat conftest.val`
26017 $as_echo "$as_me: program exited with status $ac_status" >&5
26018 $as_echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ( exit $ac_status )
26022 if test "$ac_cv_type_short" = yes; then
26023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26025 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26026 See \`config.log' for more details." >&5
26027 $as_echo "$as_me: error: cannot compute alignment of short
26028 See \`config.log' for more details." >&2;}
26029 { (exit 77); exit 77; }; }; }
26031 ac_cv_alignof_short=0
26034 rm -rf conftest.dSYM
26035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26039 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26040 $as_echo "$ac_cv_alignof_short" >&6; }
26044 cat >>confdefs.h <<_ACEOF
26045 #define ALIGNOF_SHORT $ac_cv_alignof_short
26049 # The cast to long int works around a bug in the HP C Compiler,
26050 # see AC_CHECK_SIZEOF for more information.
26051 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26052 $as_echo_n "checking alignment of int... " >&6; }
26053 if test "${ac_cv_alignof_int+set}" = set; then
26054 $as_echo_n "(cached) " >&6
26056 if test "$cross_compiling" = yes; then
26057 # Depending upon the size, compute the lo and hi bounds.
26058 cat >conftest.$ac_ext <<_ACEOF
26061 cat confdefs.h >>conftest.$ac_ext
26062 cat >>conftest.$ac_ext <<_ACEOF
26063 /* end confdefs.h. */
26064 $ac_includes_default
26066 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26068 typedef struct { char x; int y; } ac__type_alignof_;
26072 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26079 rm -f conftest.$ac_objext
26080 if { (ac_try="$ac_compile"
26081 case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26086 $as_echo "$ac_try_echo") >&5
26087 (eval "$ac_compile") 2>conftest.er1
26089 grep -v '^ *+' conftest.er1 >conftest.err
26091 cat conftest.err >&5
26092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093 (exit $ac_status); } && {
26094 test -z "$ac_c_werror_flag" ||
26095 test ! -s conftest.err
26096 } && test -s conftest.$ac_objext; then
26099 cat >conftest.$ac_ext <<_ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 $ac_includes_default
26107 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26109 typedef struct { char x; int y; } ac__type_alignof_;
26113 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26120 rm -f conftest.$ac_objext
26121 if { (ac_try="$ac_compile"
26122 case "(($ac_try" in
26123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124 *) ac_try_echo=$ac_try;;
26126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26127 $as_echo "$ac_try_echo") >&5
26128 (eval "$ac_compile") 2>conftest.er1
26130 grep -v '^ *+' conftest.er1 >conftest.err
26132 cat conftest.err >&5
26133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest.$ac_objext; then
26138 ac_hi=$ac_mid; break
26140 $as_echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.$ac_ext >&5
26143 ac_lo=`expr $ac_mid + 1`
26144 if test $ac_lo -le $ac_mid; then
26148 ac_mid=`expr 2 '*' $ac_mid + 1`
26151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26154 $as_echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26157 cat >conftest.$ac_ext <<_ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h. */
26163 $ac_includes_default
26165 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26167 typedef struct { char x; int y; } ac__type_alignof_;
26171 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26178 rm -f conftest.$ac_objext
26179 if { (ac_try="$ac_compile"
26180 case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26185 $as_echo "$ac_try_echo") >&5
26186 (eval "$ac_compile") 2>conftest.er1
26188 grep -v '^ *+' conftest.er1 >conftest.err
26190 cat conftest.err >&5
26191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192 (exit $ac_status); } && {
26193 test -z "$ac_c_werror_flag" ||
26194 test ! -s conftest.err
26195 } && test -s conftest.$ac_objext; then
26198 cat >conftest.$ac_ext <<_ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26204 $ac_includes_default
26206 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26208 typedef struct { char x; int y; } ac__type_alignof_;
26212 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26219 rm -f conftest.$ac_objext
26220 if { (ac_try="$ac_compile"
26221 case "(($ac_try" in
26222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223 *) ac_try_echo=$ac_try;;
26225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26226 $as_echo "$ac_try_echo") >&5
26227 (eval "$ac_compile") 2>conftest.er1
26229 grep -v '^ *+' conftest.er1 >conftest.err
26231 cat conftest.err >&5
26232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } && {
26234 test -z "$ac_c_werror_flag" ||
26235 test ! -s conftest.err
26236 } && test -s conftest.$ac_objext; then
26237 ac_lo=$ac_mid; break
26239 $as_echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26242 ac_hi=`expr '(' $ac_mid ')' - 1`
26243 if test $ac_mid -le $ac_hi; then
26247 ac_mid=`expr 2 '*' $ac_mid`
26250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26253 $as_echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 # Binary search between lo and hi bounds.
26264 while test "x$ac_lo" != "x$ac_hi"; do
26265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26266 cat >conftest.$ac_ext <<_ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h. */
26272 $ac_includes_default
26274 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26276 typedef struct { char x; int y; } ac__type_alignof_;
26280 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26287 rm -f conftest.$ac_objext
26288 if { (ac_try="$ac_compile"
26289 case "(($ac_try" in
26290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26291 *) ac_try_echo=$ac_try;;
26293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26294 $as_echo "$ac_try_echo") >&5
26295 (eval "$ac_compile") 2>conftest.er1
26297 grep -v '^ *+' conftest.er1 >conftest.err
26299 cat conftest.err >&5
26300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); } && {
26302 test -z "$ac_c_werror_flag" ||
26303 test ! -s conftest.err
26304 } && test -s conftest.$ac_objext; then
26307 $as_echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26310 ac_lo=`expr '(' $ac_mid ')' + 1`
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26316 ?*) ac_cv_alignof_int=$ac_lo;;
26317 '') if test "$ac_cv_type_int" = yes; then
26318 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26320 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26321 See \`config.log' for more details." >&5
26322 $as_echo "$as_me: error: cannot compute alignment of int
26323 See \`config.log' for more details." >&2;}
26324 { (exit 77); exit 77; }; }; }
26326 ac_cv_alignof_int=0
26330 cat >conftest.$ac_ext <<_ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26336 $ac_includes_default
26338 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26340 typedef struct { char x; int y; } ac__type_alignof_;
26341 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26342 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26344 #include <stdlib.h>
26349 FILE *f = fopen ("conftest.val", "w");
26352 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26354 long int i = longval ();
26355 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26357 fprintf (f, "%ld", i);
26361 unsigned long int i = ulongval ();
26362 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26364 fprintf (f, "%lu", i);
26366 /* Do not output a trailing newline, as this causes \r\n confusion
26367 on some platforms. */
26368 return ferror (f) || fclose (f) != 0;
26374 rm -f conftest$ac_exeext
26375 if { (ac_try="$ac_link"
26376 case "(($ac_try" in
26377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26378 *) ac_try_echo=$ac_try;;
26380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26381 $as_echo "$ac_try_echo") >&5
26382 (eval "$ac_link") 2>&5
26384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26386 { (case "(($ac_try" in
26387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26391 $as_echo "$ac_try_echo") >&5
26392 (eval "$ac_try") 2>&5
26394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); }; }; then
26396 ac_cv_alignof_int=`cat conftest.val`
26398 $as_echo "$as_me: program exited with status $ac_status" >&5
26399 $as_echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ( exit $ac_status )
26403 if test "$ac_cv_type_int" = yes; then
26404 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26406 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26407 See \`config.log' for more details." >&5
26408 $as_echo "$as_me: error: cannot compute alignment of int
26409 See \`config.log' for more details." >&2;}
26410 { (exit 77); exit 77; }; }; }
26412 ac_cv_alignof_int=0
26415 rm -rf conftest.dSYM
26416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26420 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26421 $as_echo "$ac_cv_alignof_int" >&6; }
26425 cat >>confdefs.h <<_ACEOF
26426 #define ALIGNOF_INT $ac_cv_alignof_int
26430 # The cast to long int works around a bug in the HP C Compiler,
26431 # see AC_CHECK_SIZEOF for more information.
26432 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26433 $as_echo_n "checking alignment of long... " >&6; }
26434 if test "${ac_cv_alignof_long+set}" = set; then
26435 $as_echo_n "(cached) " >&6
26437 if test "$cross_compiling" = yes; then
26438 # Depending upon the size, compute the lo and hi bounds.
26439 cat >conftest.$ac_ext <<_ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h. */
26445 $ac_includes_default
26447 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26449 typedef struct { char x; long y; } ac__type_alignof_;
26453 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464 *) ac_try_echo=$ac_try;;
26466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26467 $as_echo "$ac_try_echo") >&5
26468 (eval "$ac_compile") 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } && {
26475 test -z "$ac_c_werror_flag" ||
26476 test ! -s conftest.err
26477 } && test -s conftest.$ac_objext; then
26480 cat >conftest.$ac_ext <<_ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h. */
26486 $ac_includes_default
26488 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26490 typedef struct { char x; long y; } ac__type_alignof_;
26494 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26501 rm -f conftest.$ac_objext
26502 if { (ac_try="$ac_compile"
26503 case "(($ac_try" in
26504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26505 *) ac_try_echo=$ac_try;;
26507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26508 $as_echo "$ac_try_echo") >&5
26509 (eval "$ac_compile") 2>conftest.er1
26511 grep -v '^ *+' conftest.er1 >conftest.err
26513 cat conftest.err >&5
26514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } && {
26516 test -z "$ac_c_werror_flag" ||
26517 test ! -s conftest.err
26518 } && test -s conftest.$ac_objext; then
26519 ac_hi=$ac_mid; break
26521 $as_echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26524 ac_lo=`expr $ac_mid + 1`
26525 if test $ac_lo -le $ac_mid; then
26529 ac_mid=`expr 2 '*' $ac_mid + 1`
26532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535 $as_echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26538 cat >conftest.$ac_ext <<_ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26544 $ac_includes_default
26546 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26548 typedef struct { char x; long y; } ac__type_alignof_;
26552 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26559 rm -f conftest.$ac_objext
26560 if { (ac_try="$ac_compile"
26561 case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26566 $as_echo "$ac_try_echo") >&5
26567 (eval "$ac_compile") 2>conftest.er1
26569 grep -v '^ *+' conftest.er1 >conftest.err
26571 cat conftest.err >&5
26572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && {
26574 test -z "$ac_c_werror_flag" ||
26575 test ! -s conftest.err
26576 } && test -s conftest.$ac_objext; then
26579 cat >conftest.$ac_ext <<_ACEOF
26582 cat confdefs.h >>conftest.$ac_ext
26583 cat >>conftest.$ac_ext <<_ACEOF
26584 /* end confdefs.h. */
26585 $ac_includes_default
26587 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26589 typedef struct { char x; long y; } ac__type_alignof_;
26593 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26600 rm -f conftest.$ac_objext
26601 if { (ac_try="$ac_compile"
26602 case "(($ac_try" in
26603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604 *) ac_try_echo=$ac_try;;
26606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26607 $as_echo "$ac_try_echo") >&5
26608 (eval "$ac_compile") 2>conftest.er1
26610 grep -v '^ *+' conftest.er1 >conftest.err
26612 cat conftest.err >&5
26613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); } && {
26615 test -z "$ac_c_werror_flag" ||
26616 test ! -s conftest.err
26617 } && test -s conftest.$ac_objext; then
26618 ac_lo=$ac_mid; break
26620 $as_echo "$as_me: failed program was:" >&5
26621 sed 's/^/| /' conftest.$ac_ext >&5
26623 ac_hi=`expr '(' $ac_mid ')' - 1`
26624 if test $ac_mid -le $ac_hi; then
26628 ac_mid=`expr 2 '*' $ac_mid`
26631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26634 $as_echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26644 # Binary search between lo and hi bounds.
26645 while test "x$ac_lo" != "x$ac_hi"; do
26646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26647 cat >conftest.$ac_ext <<_ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26653 $ac_includes_default
26655 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26657 typedef struct { char x; long y; } ac__type_alignof_;
26661 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26668 rm -f conftest.$ac_objext
26669 if { (ac_try="$ac_compile"
26670 case "(($ac_try" in
26671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672 *) ac_try_echo=$ac_try;;
26674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26675 $as_echo "$ac_try_echo") >&5
26676 (eval "$ac_compile") 2>conftest.er1
26678 grep -v '^ *+' conftest.er1 >conftest.err
26680 cat conftest.err >&5
26681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } && {
26683 test -z "$ac_c_werror_flag" ||
26684 test ! -s conftest.err
26685 } && test -s conftest.$ac_objext; then
26688 $as_echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26691 ac_lo=`expr '(' $ac_mid ')' + 1`
26694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26697 ?*) ac_cv_alignof_long=$ac_lo;;
26698 '') if test "$ac_cv_type_long" = yes; then
26699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26701 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26702 See \`config.log' for more details." >&5
26703 $as_echo "$as_me: error: cannot compute alignment of long
26704 See \`config.log' for more details." >&2;}
26705 { (exit 77); exit 77; }; }; }
26707 ac_cv_alignof_long=0
26711 cat >conftest.$ac_ext <<_ACEOF
26714 cat confdefs.h >>conftest.$ac_ext
26715 cat >>conftest.$ac_ext <<_ACEOF
26716 /* end confdefs.h. */
26717 $ac_includes_default
26719 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26721 typedef struct { char x; long y; } ac__type_alignof_;
26722 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26723 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26725 #include <stdlib.h>
26730 FILE *f = fopen ("conftest.val", "w");
26733 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26735 long int i = longval ();
26736 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26738 fprintf (f, "%ld", i);
26742 unsigned long int i = ulongval ();
26743 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26745 fprintf (f, "%lu", i);
26747 /* Do not output a trailing newline, as this causes \r\n confusion
26748 on some platforms. */
26749 return ferror (f) || fclose (f) != 0;
26755 rm -f conftest$ac_exeext
26756 if { (ac_try="$ac_link"
26757 case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26762 $as_echo "$ac_try_echo") >&5
26763 (eval "$ac_link") 2>&5
26765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26767 { (case "(($ac_try" in
26768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769 *) ac_try_echo=$ac_try;;
26771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26772 $as_echo "$ac_try_echo") >&5
26773 (eval "$ac_try") 2>&5
26775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; }; then
26777 ac_cv_alignof_long=`cat conftest.val`
26779 $as_echo "$as_me: program exited with status $ac_status" >&5
26780 $as_echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26783 ( exit $ac_status )
26784 if test "$ac_cv_type_long" = yes; then
26785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26787 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26788 See \`config.log' for more details." >&5
26789 $as_echo "$as_me: error: cannot compute alignment of long
26790 See \`config.log' for more details." >&2;}
26791 { (exit 77); exit 77; }; }; }
26793 ac_cv_alignof_long=0
26796 rm -rf conftest.dSYM
26797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26801 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26802 $as_echo "$ac_cv_alignof_long" >&6; }
26806 cat >>confdefs.h <<_ACEOF
26807 #define ALIGNOF_LONG $ac_cv_alignof_long
26811 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26812 # The cast to long int works around a bug in the HP C Compiler,
26813 # see AC_CHECK_SIZEOF for more information.
26814 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26815 $as_echo_n "checking alignment of long long int... " >&6; }
26816 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26817 $as_echo_n "(cached) " >&6
26819 if test "$cross_compiling" = yes; then
26820 # Depending upon the size, compute the lo and hi bounds.
26821 cat >conftest.$ac_ext <<_ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h. */
26827 $ac_includes_default
26829 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26831 typedef struct { char x; long long int y; } ac__type_alignof_;
26835 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26842 rm -f conftest.$ac_objext
26843 if { (ac_try="$ac_compile"
26844 case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26849 $as_echo "$ac_try_echo") >&5
26850 (eval "$ac_compile") 2>conftest.er1
26852 grep -v '^ *+' conftest.er1 >conftest.err
26854 cat conftest.err >&5
26855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } && {
26857 test -z "$ac_c_werror_flag" ||
26858 test ! -s conftest.err
26859 } && test -s conftest.$ac_objext; then
26862 cat >conftest.$ac_ext <<_ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26868 $ac_includes_default
26870 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26872 typedef struct { char x; long long int y; } ac__type_alignof_;
26876 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26883 rm -f conftest.$ac_objext
26884 if { (ac_try="$ac_compile"
26885 case "(($ac_try" in
26886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26887 *) ac_try_echo=$ac_try;;
26889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26890 $as_echo "$ac_try_echo") >&5
26891 (eval "$ac_compile") 2>conftest.er1
26893 grep -v '^ *+' conftest.er1 >conftest.err
26895 cat conftest.err >&5
26896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } && {
26898 test -z "$ac_c_werror_flag" ||
26899 test ! -s conftest.err
26900 } && test -s conftest.$ac_objext; then
26901 ac_hi=$ac_mid; break
26903 $as_echo "$as_me: failed program was:" >&5
26904 sed 's/^/| /' conftest.$ac_ext >&5
26906 ac_lo=`expr $ac_mid + 1`
26907 if test $ac_lo -le $ac_mid; then
26911 ac_mid=`expr 2 '*' $ac_mid + 1`
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 $as_echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26920 cat >conftest.$ac_ext <<_ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26926 $ac_includes_default
26928 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26930 typedef struct { char x; long long int y; } ac__type_alignof_;
26934 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945 *) ac_try_echo=$ac_try;;
26947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26948 $as_echo "$ac_try_echo") >&5
26949 (eval "$ac_compile") 2>conftest.er1
26951 grep -v '^ *+' conftest.er1 >conftest.err
26953 cat conftest.err >&5
26954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } && {
26956 test -z "$ac_c_werror_flag" ||
26957 test ! -s conftest.err
26958 } && test -s conftest.$ac_objext; then
26961 cat >conftest.$ac_ext <<_ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h. */
26967 $ac_includes_default
26969 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26971 typedef struct { char x; long long int y; } ac__type_alignof_;
26975 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26982 rm -f conftest.$ac_objext
26983 if { (ac_try="$ac_compile"
26984 case "(($ac_try" in
26985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986 *) ac_try_echo=$ac_try;;
26988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26989 $as_echo "$ac_try_echo") >&5
26990 (eval "$ac_compile") 2>conftest.er1
26992 grep -v '^ *+' conftest.er1 >conftest.err
26994 cat conftest.err >&5
26995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); } && {
26997 test -z "$ac_c_werror_flag" ||
26998 test ! -s conftest.err
26999 } && test -s conftest.$ac_objext; then
27000 ac_lo=$ac_mid; break
27002 $as_echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27005 ac_hi=`expr '(' $ac_mid ')' - 1`
27006 if test $ac_mid -le $ac_hi; then
27010 ac_mid=`expr 2 '*' $ac_mid`
27013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27016 $as_echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27026 # Binary search between lo and hi bounds.
27027 while test "x$ac_lo" != "x$ac_hi"; do
27028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27029 cat >conftest.$ac_ext <<_ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 $ac_includes_default
27037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27039 typedef struct { char x; long long int y; } ac__type_alignof_;
27043 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27050 rm -f conftest.$ac_objext
27051 if { (ac_try="$ac_compile"
27052 case "(($ac_try" in
27053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054 *) ac_try_echo=$ac_try;;
27056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27057 $as_echo "$ac_try_echo") >&5
27058 (eval "$ac_compile") 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } && {
27065 test -z "$ac_c_werror_flag" ||
27066 test ! -s conftest.err
27067 } && test -s conftest.$ac_objext; then
27070 $as_echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 ac_lo=`expr '(' $ac_mid ')' + 1`
27076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27079 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27080 '') if test "$ac_cv_type_long_long_int" = yes; then
27081 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27083 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27084 See \`config.log' for more details." >&5
27085 $as_echo "$as_me: error: cannot compute alignment of long long int
27086 See \`config.log' for more details." >&2;}
27087 { (exit 77); exit 77; }; }; }
27089 ac_cv_alignof_long_long_int=0
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27099 $ac_includes_default
27101 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27103 typedef struct { char x; long long int y; } ac__type_alignof_;
27104 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27105 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27107 #include <stdlib.h>
27112 FILE *f = fopen ("conftest.val", "w");
27115 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27117 long int i = longval ();
27118 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27120 fprintf (f, "%ld", i);
27124 unsigned long int i = ulongval ();
27125 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27127 fprintf (f, "%lu", i);
27129 /* Do not output a trailing newline, as this causes \r\n confusion
27130 on some platforms. */
27131 return ferror (f) || fclose (f) != 0;
27137 rm -f conftest$ac_exeext
27138 if { (ac_try="$ac_link"
27139 case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27144 $as_echo "$ac_try_echo") >&5
27145 (eval "$ac_link") 2>&5
27147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27149 { (case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27154 $as_echo "$ac_try_echo") >&5
27155 (eval "$ac_try") 2>&5
27157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 ac_cv_alignof_long_long_int=`cat conftest.val`
27161 $as_echo "$as_me: program exited with status $ac_status" >&5
27162 $as_echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 ( exit $ac_status )
27166 if test "$ac_cv_type_long_long_int" = yes; then
27167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27169 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27170 See \`config.log' for more details." >&5
27171 $as_echo "$as_me: error: cannot compute alignment of long long int
27172 See \`config.log' for more details." >&2;}
27173 { (exit 77); exit 77; }; }; }
27175 ac_cv_alignof_long_long_int=0
27178 rm -rf conftest.dSYM
27179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27183 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27184 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27188 cat >>confdefs.h <<_ACEOF
27189 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27194 # The cast to long int works around a bug in the HP C Compiler,
27195 # see AC_CHECK_SIZEOF for more information.
27196 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27197 $as_echo_n "checking alignment of double... " >&6; }
27198 if test "${ac_cv_alignof_double+set}" = set; then
27199 $as_echo_n "(cached) " >&6
27201 if test "$cross_compiling" = yes; then
27202 # Depending upon the size, compute the lo and hi bounds.
27203 cat >conftest.$ac_ext <<_ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27209 $ac_includes_default
27211 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27213 typedef struct { char x; double y; } ac__type_alignof_;
27217 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27224 rm -f conftest.$ac_objext
27225 if { (ac_try="$ac_compile"
27226 case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27231 $as_echo "$ac_try_echo") >&5
27232 (eval "$ac_compile") 2>conftest.er1
27234 grep -v '^ *+' conftest.er1 >conftest.err
27236 cat conftest.err >&5
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); } && {
27239 test -z "$ac_c_werror_flag" ||
27240 test ! -s conftest.err
27241 } && test -s conftest.$ac_objext; then
27244 cat >conftest.$ac_ext <<_ACEOF
27247 cat confdefs.h >>conftest.$ac_ext
27248 cat >>conftest.$ac_ext <<_ACEOF
27249 /* end confdefs.h. */
27250 $ac_includes_default
27252 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27254 typedef struct { char x; double y; } ac__type_alignof_;
27258 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27265 rm -f conftest.$ac_objext
27266 if { (ac_try="$ac_compile"
27267 case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27272 $as_echo "$ac_try_echo") >&5
27273 (eval "$ac_compile") 2>conftest.er1
27275 grep -v '^ *+' conftest.er1 >conftest.err
27277 cat conftest.err >&5
27278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); } && {
27280 test -z "$ac_c_werror_flag" ||
27281 test ! -s conftest.err
27282 } && test -s conftest.$ac_objext; then
27283 ac_hi=$ac_mid; break
27285 $as_echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27288 ac_lo=`expr $ac_mid + 1`
27289 if test $ac_lo -le $ac_mid; then
27293 ac_mid=`expr 2 '*' $ac_mid + 1`
27296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27299 $as_echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27302 cat >conftest.$ac_ext <<_ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27308 $ac_includes_default
27310 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27312 typedef struct { char x; double y; } ac__type_alignof_;
27316 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27323 rm -f conftest.$ac_objext
27324 if { (ac_try="$ac_compile"
27325 case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27330 $as_echo "$ac_try_echo") >&5
27331 (eval "$ac_compile") 2>conftest.er1
27333 grep -v '^ *+' conftest.er1 >conftest.err
27335 cat conftest.err >&5
27336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); } && {
27338 test -z "$ac_c_werror_flag" ||
27339 test ! -s conftest.err
27340 } && test -s conftest.$ac_objext; then
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27349 $ac_includes_default
27351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27353 typedef struct { char x; double y; } ac__type_alignof_;
27357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27371 $as_echo "$ac_try_echo") >&5
27372 (eval "$ac_compile") 2>conftest.er1
27374 grep -v '^ *+' conftest.er1 >conftest.err
27376 cat conftest.err >&5
27377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } && {
27379 test -z "$ac_c_werror_flag" ||
27380 test ! -s conftest.err
27381 } && test -s conftest.$ac_objext; then
27382 ac_lo=$ac_mid; break
27384 $as_echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27387 ac_hi=`expr '(' $ac_mid ')' - 1`
27388 if test $ac_mid -le $ac_hi; then
27392 ac_mid=`expr 2 '*' $ac_mid`
27395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398 $as_echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 # Binary search between lo and hi bounds.
27409 while test "x$ac_lo" != "x$ac_hi"; do
27410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27411 cat >conftest.$ac_ext <<_ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h. */
27417 $ac_includes_default
27419 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27421 typedef struct { char x; double y; } ac__type_alignof_;
27425 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27432 rm -f conftest.$ac_objext
27433 if { (ac_try="$ac_compile"
27434 case "(($ac_try" in
27435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436 *) ac_try_echo=$ac_try;;
27438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27439 $as_echo "$ac_try_echo") >&5
27440 (eval "$ac_compile") 2>conftest.er1
27442 grep -v '^ *+' conftest.er1 >conftest.err
27444 cat conftest.err >&5
27445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); } && {
27447 test -z "$ac_c_werror_flag" ||
27448 test ! -s conftest.err
27449 } && test -s conftest.$ac_objext; then
27452 $as_echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27455 ac_lo=`expr '(' $ac_mid ')' + 1`
27458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27461 ?*) ac_cv_alignof_double=$ac_lo;;
27462 '') if test "$ac_cv_type_double" = yes; then
27463 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27465 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27466 See \`config.log' for more details." >&5
27467 $as_echo "$as_me: error: cannot compute alignment of double
27468 See \`config.log' for more details." >&2;}
27469 { (exit 77); exit 77; }; }; }
27471 ac_cv_alignof_double=0
27475 cat >conftest.$ac_ext <<_ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27481 $ac_includes_default
27483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27485 typedef struct { char x; double y; } ac__type_alignof_;
27486 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27487 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27489 #include <stdlib.h>
27494 FILE *f = fopen ("conftest.val", "w");
27497 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27499 long int i = longval ();
27500 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27502 fprintf (f, "%ld", i);
27506 unsigned long int i = ulongval ();
27507 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27509 fprintf (f, "%lu", i);
27511 /* Do not output a trailing newline, as this causes \r\n confusion
27512 on some platforms. */
27513 return ferror (f) || fclose (f) != 0;
27519 rm -f conftest$ac_exeext
27520 if { (ac_try="$ac_link"
27521 case "(($ac_try" in
27522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523 *) ac_try_echo=$ac_try;;
27525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27526 $as_echo "$ac_try_echo") >&5
27527 (eval "$ac_link") 2>&5
27529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27531 { (case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27536 $as_echo "$ac_try_echo") >&5
27537 (eval "$ac_try") 2>&5
27539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); }; }; then
27541 ac_cv_alignof_double=`cat conftest.val`
27543 $as_echo "$as_me: program exited with status $ac_status" >&5
27544 $as_echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27547 ( exit $ac_status )
27548 if test "$ac_cv_type_double" = yes; then
27549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27551 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27552 See \`config.log' for more details." >&5
27553 $as_echo "$as_me: error: cannot compute alignment of double
27554 See \`config.log' for more details." >&2;}
27555 { (exit 77); exit 77; }; }; }
27557 ac_cv_alignof_double=0
27560 rm -rf conftest.dSYM
27561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27565 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27566 $as_echo "$ac_cv_alignof_double" >&6; }
27570 cat >>confdefs.h <<_ACEOF
27571 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27576 # Compute maximum alignment of any basic type.
27577 # We assume long's alignment is at least as strong as char, short, or int;
27578 # but we must check long long (if it exists) and double.
27580 MAX_ALIGNOF=$ac_cv_alignof_long
27581 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27582 MAX_ALIGNOF=$ac_cv_alignof_double
27584 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27585 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27588 cat >>confdefs.h <<_ACEOF
27589 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27594 # Some platforms predefine the types int8, int16, etc. Only check
27595 # a (hopefully) representative subset.
27596 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27597 $as_echo_n "checking for int8... " >&6; }
27598 if test "${ac_cv_type_int8+set}" = set; then
27599 $as_echo_n "(cached) " >&6
27602 cat >conftest.$ac_ext <<_ACEOF
27605 cat confdefs.h >>conftest.$ac_ext
27606 cat >>conftest.$ac_ext <<_ACEOF
27607 /* end confdefs.h. */
27619 rm -f conftest.$ac_objext
27620 if { (ac_try="$ac_compile"
27621 case "(($ac_try" in
27622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27623 *) ac_try_echo=$ac_try;;
27625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27626 $as_echo "$ac_try_echo") >&5
27627 (eval "$ac_compile") 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } && {
27634 test -z "$ac_c_werror_flag" ||
27635 test ! -s conftest.err
27636 } && test -s conftest.$ac_objext; then
27637 cat >conftest.$ac_ext <<_ACEOF
27640 cat confdefs.h >>conftest.$ac_ext
27641 cat >>conftest.$ac_ext <<_ACEOF
27642 /* end confdefs.h. */
27648 if (sizeof ((int8)))
27654 rm -f conftest.$ac_objext
27655 if { (ac_try="$ac_compile"
27656 case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27661 $as_echo "$ac_try_echo") >&5
27662 (eval "$ac_compile") 2>conftest.er1
27664 grep -v '^ *+' conftest.er1 >conftest.err
27666 cat conftest.err >&5
27667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } && {
27669 test -z "$ac_c_werror_flag" ||
27670 test ! -s conftest.err
27671 } && test -s conftest.$ac_objext; then
27674 $as_echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27677 ac_cv_type_int8=yes
27680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27682 $as_echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27690 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27691 $as_echo "$ac_cv_type_int8" >&6; }
27692 if test "x$ac_cv_type_int8" = x""yes; then
27694 cat >>confdefs.h <<_ACEOF
27695 #define HAVE_INT8 1
27700 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27701 $as_echo_n "checking for uint8... " >&6; }
27702 if test "${ac_cv_type_uint8+set}" = set; then
27703 $as_echo_n "(cached) " >&6
27705 ac_cv_type_uint8=no
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27717 if (sizeof (uint8))
27723 rm -f conftest.$ac_objext
27724 if { (ac_try="$ac_compile"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27730 $as_echo "$ac_try_echo") >&5
27731 (eval "$ac_compile") 2>conftest.er1
27733 grep -v '^ *+' conftest.er1 >conftest.err
27735 cat conftest.err >&5
27736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } && {
27738 test -z "$ac_c_werror_flag" ||
27739 test ! -s conftest.err
27740 } && test -s conftest.$ac_objext; then
27741 cat >conftest.$ac_ext <<_ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h. */
27752 if (sizeof ((uint8)))
27758 rm -f conftest.$ac_objext
27759 if { (ac_try="$ac_compile"
27760 case "(($ac_try" in
27761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762 *) ac_try_echo=$ac_try;;
27764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27765 $as_echo "$ac_try_echo") >&5
27766 (eval "$ac_compile") 2>conftest.er1
27768 grep -v '^ *+' conftest.er1 >conftest.err
27770 cat conftest.err >&5
27771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } && {
27773 test -z "$ac_c_werror_flag" ||
27774 test ! -s conftest.err
27775 } && test -s conftest.$ac_objext; then
27778 $as_echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781 ac_cv_type_uint8=yes
27784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27786 $as_echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27795 $as_echo "$ac_cv_type_uint8" >&6; }
27796 if test "x$ac_cv_type_uint8" = x""yes; then
27798 cat >>confdefs.h <<_ACEOF
27799 #define HAVE_UINT8 1
27804 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27805 $as_echo_n "checking for int64... " >&6; }
27806 if test "${ac_cv_type_int64+set}" = set; then
27807 $as_echo_n "(cached) " >&6
27809 ac_cv_type_int64=no
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27821 if (sizeof (int64))
27827 rm -f conftest.$ac_objext
27828 if { (ac_try="$ac_compile"
27829 case "(($ac_try" in
27830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831 *) ac_try_echo=$ac_try;;
27833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27834 $as_echo "$ac_try_echo") >&5
27835 (eval "$ac_compile") 2>conftest.er1
27837 grep -v '^ *+' conftest.er1 >conftest.err
27839 cat conftest.err >&5
27840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); } && {
27842 test -z "$ac_c_werror_flag" ||
27843 test ! -s conftest.err
27844 } && test -s conftest.$ac_objext; then
27845 cat >conftest.$ac_ext <<_ACEOF
27848 cat confdefs.h >>conftest.$ac_ext
27849 cat >>conftest.$ac_ext <<_ACEOF
27850 /* end confdefs.h. */
27856 if (sizeof ((int64)))
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27869 $as_echo "$ac_try_echo") >&5
27870 (eval "$ac_compile") 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } && {
27877 test -z "$ac_c_werror_flag" ||
27878 test ! -s conftest.err
27879 } && test -s conftest.$ac_objext; then
27882 $as_echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27885 ac_cv_type_int64=yes
27888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27890 $as_echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27898 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27899 $as_echo "$ac_cv_type_int64" >&6; }
27900 if test "x$ac_cv_type_int64" = x""yes; then
27902 cat >>confdefs.h <<_ACEOF
27903 #define HAVE_INT64 1
27908 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27909 $as_echo_n "checking for uint64... " >&6; }
27910 if test "${ac_cv_type_uint64+set}" = set; then
27911 $as_echo_n "(cached) " >&6
27913 ac_cv_type_uint64=no
27914 cat >conftest.$ac_ext <<_ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h. */
27925 if (sizeof (uint64))
27931 rm -f conftest.$ac_objext
27932 if { (ac_try="$ac_compile"
27933 case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27938 $as_echo "$ac_try_echo") >&5
27939 (eval "$ac_compile") 2>conftest.er1
27941 grep -v '^ *+' conftest.er1 >conftest.err
27943 cat conftest.err >&5
27944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } && {
27946 test -z "$ac_c_werror_flag" ||
27947 test ! -s conftest.err
27948 } && test -s conftest.$ac_objext; then
27949 cat >conftest.$ac_ext <<_ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27960 if (sizeof ((uint64)))
27966 rm -f conftest.$ac_objext
27967 if { (ac_try="$ac_compile"
27968 case "(($ac_try" in
27969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970 *) ac_try_echo=$ac_try;;
27972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27973 $as_echo "$ac_try_echo") >&5
27974 (eval "$ac_compile") 2>conftest.er1
27976 grep -v '^ *+' conftest.er1 >conftest.err
27978 cat conftest.err >&5
27979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); } && {
27981 test -z "$ac_c_werror_flag" ||
27982 test ! -s conftest.err
27983 } && test -s conftest.$ac_objext; then
27986 $as_echo "$as_me: failed program was:" >&5
27987 sed 's/^/| /' conftest.$ac_ext >&5
27989 ac_cv_type_uint64=yes
27992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27994 $as_echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
28000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28002 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28003 $as_echo "$ac_cv_type_uint64" >&6; }
28004 if test "x$ac_cv_type_uint64" = x""yes; then
28006 cat >>confdefs.h <<_ACEOF
28007 #define HAVE_UINT64 1
28014 # We also check for sig_atomic_t, which *should* be defined per ANSI
28015 # C, but is missing on some old platforms.
28016 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28017 $as_echo_n "checking for sig_atomic_t... " >&6; }
28018 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28019 $as_echo_n "(cached) " >&6
28021 ac_cv_type_sig_atomic_t=no
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28028 #include <signal.h>
28033 if (sizeof (sig_atomic_t))
28039 rm -f conftest.$ac_objext
28040 if { (ac_try="$ac_compile"
28041 case "(($ac_try" in
28042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043 *) ac_try_echo=$ac_try;;
28045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28046 $as_echo "$ac_try_echo") >&5
28047 (eval "$ac_compile") 2>conftest.er1
28049 grep -v '^ *+' conftest.er1 >conftest.err
28051 cat conftest.err >&5
28052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); } && {
28054 test -z "$ac_c_werror_flag" ||
28055 test ! -s conftest.err
28056 } && test -s conftest.$ac_objext; then
28057 cat >conftest.$ac_ext <<_ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28063 #include <signal.h>
28068 if (sizeof ((sig_atomic_t)))
28074 rm -f conftest.$ac_objext
28075 if { (ac_try="$ac_compile"
28076 case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28081 $as_echo "$ac_try_echo") >&5
28082 (eval "$ac_compile") 2>conftest.er1
28084 grep -v '^ *+' conftest.er1 >conftest.err
28086 cat conftest.err >&5
28087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } && {
28089 test -z "$ac_c_werror_flag" ||
28090 test ! -s conftest.err
28091 } && test -s conftest.$ac_objext; then
28094 $as_echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28097 ac_cv_type_sig_atomic_t=yes
28100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28102 $as_echo "$as_me: failed program was:" >&5
28103 sed 's/^/| /' conftest.$ac_ext >&5
28108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28110 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28111 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28112 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28114 cat >>confdefs.h <<_ACEOF
28115 #define HAVE_SIG_ATOMIC_T 1
28123 if test "$PORTNAME" != "win32"
28125 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28126 $as_echo_n "checking for POSIX signal interface... " >&6; }
28127 if test "${pgac_cv_func_posix_signals+set}" = set; then
28128 $as_echo_n "(cached) " >&6
28130 cat >conftest.$ac_ext <<_ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28136 #include <signal.h>
28141 struct sigaction act, oact;
28142 sigemptyset(&act.sa_mask);
28143 act.sa_flags = SA_RESTART;
28144 sigaction(0, &act, &oact);
28149 rm -f conftest.$ac_objext conftest$ac_exeext
28150 if { (ac_try="$ac_link"
28151 case "(($ac_try" in
28152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153 *) ac_try_echo=$ac_try;;
28155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28156 $as_echo "$ac_try_echo") >&5
28157 (eval "$ac_link") 2>conftest.er1
28159 grep -v '^ *+' conftest.er1 >conftest.err
28161 cat conftest.err >&5
28162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); } && {
28164 test -z "$ac_c_werror_flag" ||
28165 test ! -s conftest.err
28166 } && test -s conftest$ac_exeext && {
28167 test "$cross_compiling" = yes ||
28168 $as_test_x conftest$ac_exeext
28170 pgac_cv_func_posix_signals=yes
28172 $as_echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28175 pgac_cv_func_posix_signals=no
28178 rm -rf conftest.dSYM
28179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28180 conftest$ac_exeext conftest.$ac_ext
28182 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28183 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28184 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28186 cat >>confdefs.h <<\_ACEOF
28187 #define HAVE_POSIX_SIGNALS /**/
28191 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28193 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28194 { { $as_echo "$as_me:$LINENO: error:
28195 Thread-safety requires POSIX signals, which are not supported by this
28196 operating system; use --disable-thread-safety to disable thread safety." >&5
28197 $as_echo "$as_me: error:
28198 Thread-safety requires POSIX signals, which are not supported by this
28199 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28200 { (exit 1); exit 1; }; }
28204 # SunOS doesn't handle negative byte comparisons properly with +/- return
28205 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28206 $as_echo_n "checking for working memcmp... " >&6; }
28207 if test "${ac_cv_func_memcmp_working+set}" = set; then
28208 $as_echo_n "(cached) " >&6
28210 if test "$cross_compiling" = yes; then
28211 ac_cv_func_memcmp_working=no
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28219 $ac_includes_default
28224 /* Some versions of memcmp are not 8-bit clean. */
28225 char c0 = '\100', c1 = '\200', c2 = '\201';
28226 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28229 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28230 or more and with at least one buffer not starting on a 4-byte boundary.
28231 William Lewis provided this test program. */
28236 for (i = 0; i < 4; i++)
28240 strcpy (a, "--------01111111");
28241 strcpy (b, "--------10000000");
28242 if (memcmp (a, b, 16) >= 0)
28252 rm -f conftest$ac_exeext
28253 if { (ac_try="$ac_link"
28254 case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28259 $as_echo "$ac_try_echo") >&5
28260 (eval "$ac_link") 2>&5
28262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28269 $as_echo "$ac_try_echo") >&5
28270 (eval "$ac_try") 2>&5
28272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; }; then
28274 ac_cv_func_memcmp_working=yes
28276 $as_echo "$as_me: program exited with status $ac_status" >&5
28277 $as_echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.$ac_ext >&5
28280 ( exit $ac_status )
28281 ac_cv_func_memcmp_working=no
28283 rm -rf conftest.dSYM
28284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28289 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28290 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28291 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28292 *" memcmp.$ac_objext "* ) ;;
28293 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28300 # Select semaphore implementation type.
28301 if test "$PORTNAME" != "win32"; then
28302 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28304 cat >>confdefs.h <<\_ACEOF
28305 #define USE_NAMED_POSIX_SEMAPHORES 1
28308 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28310 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28312 cat >>confdefs.h <<\_ACEOF
28313 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28316 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28319 cat >>confdefs.h <<\_ACEOF
28320 #define USE_SYSV_SEMAPHORES 1
28323 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28328 cat >>confdefs.h <<\_ACEOF
28329 #define USE_WIN32_SEMAPHORES 1
28332 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28336 # Select shared-memory implementation type.
28337 if test "$PORTNAME" != "win32"; then
28339 cat >>confdefs.h <<\_ACEOF
28340 #define USE_SYSV_SHARED_MEMORY 1
28343 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28346 cat >>confdefs.h <<\_ACEOF
28347 #define USE_WIN32_SHARED_MEMORY 1
28350 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28353 # Select latch implementation type.
28354 if test "$PORTNAME" != "win32"; then
28355 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28357 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28360 # If not set in template file, set bytes to use libc memset()
28361 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28362 MEMSET_LOOP_LIMIT=1024
28365 cat >>confdefs.h <<_ACEOF
28366 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28371 if test "$enable_nls" = yes ; then
28373 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28374 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28375 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28376 $as_echo_n "(cached) " >&6
28378 ac_func_search_save_LIBS=$LIBS
28379 cat >conftest.$ac_ext <<_ACEOF
28382 cat confdefs.h >>conftest.$ac_ext
28383 cat >>conftest.$ac_ext <<_ACEOF
28384 /* end confdefs.h. */
28386 /* Override any GCC internal prototype to avoid an error.
28387 Use char because int might match the return type of a GCC
28388 builtin and then its argument prototype would still apply. */
28392 char bind_textdomain_codeset ();
28396 return bind_textdomain_codeset ();
28401 for ac_lib in '' intl; do
28402 if test -z "$ac_lib"; then
28403 ac_res="none required"
28406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28408 rm -f conftest.$ac_objext conftest$ac_exeext
28409 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28418 grep -v '^ *+' conftest.er1 >conftest.err
28420 cat conftest.err >&5
28421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } && {
28423 test -z "$ac_c_werror_flag" ||
28424 test ! -s conftest.err
28425 } && test -s conftest$ac_exeext && {
28426 test "$cross_compiling" = yes ||
28427 $as_test_x conftest$ac_exeext
28429 ac_cv_search_bind_textdomain_codeset=$ac_res
28431 $as_echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28437 rm -rf conftest.dSYM
28438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28440 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28444 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28447 ac_cv_search_bind_textdomain_codeset=no
28449 rm conftest.$ac_ext
28450 LIBS=$ac_func_search_save_LIBS
28452 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28453 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28454 ac_res=$ac_cv_search_bind_textdomain_codeset
28455 if test "$ac_res" != no; then
28456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28459 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28460 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28461 { (exit 1); exit 1; }; }
28464 if test "${ac_cv_header_libintl_h+set}" = set; then
28465 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28466 $as_echo_n "checking for libintl.h... " >&6; }
28467 if test "${ac_cv_header_libintl_h+set}" = set; then
28468 $as_echo_n "(cached) " >&6
28470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28471 $as_echo "$ac_cv_header_libintl_h" >&6; }
28473 # Is the header compilable?
28474 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28475 $as_echo_n "checking libintl.h usability... " >&6; }
28476 cat >conftest.$ac_ext <<_ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h. */
28482 $ac_includes_default
28483 #include <libintl.h>
28485 rm -f conftest.$ac_objext
28486 if { (ac_try="$ac_compile"
28487 case "(($ac_try" in
28488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28489 *) ac_try_echo=$ac_try;;
28491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28492 $as_echo "$ac_try_echo") >&5
28493 (eval "$ac_compile") 2>conftest.er1
28495 grep -v '^ *+' conftest.er1 >conftest.err
28497 cat conftest.err >&5
28498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } && {
28500 test -z "$ac_c_werror_flag" ||
28501 test ! -s conftest.err
28502 } && test -s conftest.$ac_objext; then
28503 ac_header_compiler=yes
28505 $as_echo "$as_me: failed program was:" >&5
28506 sed 's/^/| /' conftest.$ac_ext >&5
28508 ac_header_compiler=no
28511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28513 $as_echo "$ac_header_compiler" >&6; }
28515 # Is the header present?
28516 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28517 $as_echo_n "checking libintl.h presence... " >&6; }
28518 cat >conftest.$ac_ext <<_ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28524 #include <libintl.h>
28526 if { (ac_try="$ac_cpp conftest.$ac_ext"
28527 case "(($ac_try" in
28528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529 *) ac_try_echo=$ac_try;;
28531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28532 $as_echo "$ac_try_echo") >&5
28533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28535 grep -v '^ *+' conftest.er1 >conftest.err
28537 cat conftest.err >&5
28538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); } >/dev/null && {
28540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28541 test ! -s conftest.err
28543 ac_header_preproc=yes
28545 $as_echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28548 ac_header_preproc=no
28551 rm -f conftest.err conftest.$ac_ext
28552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28553 $as_echo "$ac_header_preproc" >&6; }
28555 # So? What about this header?
28556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28558 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28559 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28560 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28561 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28562 ac_header_preproc=yes
28565 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28566 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28567 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28568 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28569 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28570 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28571 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28572 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28573 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28574 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28575 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28576 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28578 ## ---------------------------------------- ##
28579 ## Report this to pgsql-bugs@postgresql.org ##
28580 ## ---------------------------------------- ##
28582 ) | sed "s/^/$as_me: WARNING: /" >&2
28585 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28586 $as_echo_n "checking for libintl.h... " >&6; }
28587 if test "${ac_cv_header_libintl_h+set}" = set; then
28588 $as_echo_n "(cached) " >&6
28590 ac_cv_header_libintl_h=$ac_header_preproc
28592 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28593 $as_echo "$ac_cv_header_libintl_h" >&6; }
28596 if test "x$ac_cv_header_libintl_h" = x""yes; then
28599 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28600 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28601 { (exit 1); exit 1; }; }
28605 for ac_prog in msgfmt
28607 # Extract the first word of "$ac_prog", so it can be a program name with args.
28608 set dummy $ac_prog; ac_word=$2
28609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28610 $as_echo_n "checking for $ac_word... " >&6; }
28611 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28612 $as_echo_n "(cached) " >&6
28614 if test -n "$MSGFMT"; then
28615 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28618 for as_dir in $PATH
28621 test -z "$as_dir" && as_dir=.
28622 for ac_exec_ext in '' $ac_executable_extensions; do
28623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28624 ac_cv_prog_MSGFMT="$ac_prog"
28625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28634 MSGFMT=$ac_cv_prog_MSGFMT
28635 if test -n "$MSGFMT"; then
28636 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28637 $as_echo "$MSGFMT" >&6; }
28639 { $as_echo "$as_me:$LINENO: result: no" >&5
28640 $as_echo "no" >&6; }
28644 test -n "$MSGFMT" && break
28647 if test -z "$MSGFMT"; then
28648 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28649 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28650 { (exit 1); exit 1; }; }
28652 for ac_prog in msgmerge
28654 # Extract the first word of "$ac_prog", so it can be a program name with args.
28655 set dummy $ac_prog; ac_word=$2
28656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28657 $as_echo_n "checking for $ac_word... " >&6; }
28658 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28659 $as_echo_n "(cached) " >&6
28661 if test -n "$MSGMERGE"; then
28662 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28665 for as_dir in $PATH
28668 test -z "$as_dir" && as_dir=.
28669 for ac_exec_ext in '' $ac_executable_extensions; do
28670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28671 ac_cv_prog_MSGMERGE="$ac_prog"
28672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28681 MSGMERGE=$ac_cv_prog_MSGMERGE
28682 if test -n "$MSGMERGE"; then
28683 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28684 $as_echo "$MSGMERGE" >&6; }
28686 { $as_echo "$as_me:$LINENO: result: no" >&5
28687 $as_echo "no" >&6; }
28691 test -n "$MSGMERGE" && break
28694 for ac_prog in xgettext
28696 # Extract the first word of "$ac_prog", so it can be a program name with args.
28697 set dummy $ac_prog; ac_word=$2
28698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28699 $as_echo_n "checking for $ac_word... " >&6; }
28700 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28701 $as_echo_n "(cached) " >&6
28703 if test -n "$XGETTEXT"; then
28704 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28707 for as_dir in $PATH
28710 test -z "$as_dir" && as_dir=.
28711 for ac_exec_ext in '' $ac_executable_extensions; do
28712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28713 ac_cv_prog_XGETTEXT="$ac_prog"
28714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28723 XGETTEXT=$ac_cv_prog_XGETTEXT
28724 if test -n "$XGETTEXT"; then
28725 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28726 $as_echo "$XGETTEXT" >&6; }
28728 { $as_echo "$as_me:$LINENO: result: no" >&5
28729 $as_echo "no" >&6; }
28733 test -n "$XGETTEXT" && break
28739 # Check for Tcl configuration script tclConfig.sh
28740 if test "$with_tcl" = yes; then
28741 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28743 # Extract the first word of "$ac_prog", so it can be a program name with args.
28744 set dummy $ac_prog; ac_word=$2
28745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28746 $as_echo_n "checking for $ac_word... " >&6; }
28747 if test "${ac_cv_path_TCLSH+set}" = set; then
28748 $as_echo_n "(cached) " >&6
28752 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28756 for as_dir in $PATH
28759 test -z "$as_dir" && as_dir=.
28760 for ac_exec_ext in '' $ac_executable_extensions; do
28761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28762 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28773 TCLSH=$ac_cv_path_TCLSH
28774 if test -n "$TCLSH"; then
28775 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28776 $as_echo "$TCLSH" >&6; }
28778 { $as_echo "$as_me:$LINENO: result: no" >&5
28779 $as_echo "no" >&6; }
28783 test -n "$TCLSH" && break
28786 if test x"$TCLSH" = x""; then
28787 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28788 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28789 { (exit 1); exit 1; }; }
28792 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28793 $as_echo_n "checking for tclConfig.sh... " >&6; }
28794 # Let user override test
28795 if test -z "$TCL_CONFIG_SH"; then
28796 pgac_test_dirs="$with_tclconfig"
28798 set X $pgac_test_dirs; shift
28799 if test $# -eq 0; then
28800 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28801 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28802 { (exit 1); exit 1; }; }
28803 set X `echo 'puts $auto_path' | $TCLSH`; shift
28807 if test -r "$pgac_dir/tclConfig.sh"; then
28808 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28814 if test -z "$TCL_CONFIG_SH"; then
28815 { $as_echo "$as_me:$LINENO: result: no" >&5
28816 $as_echo "no" >&6; }
28817 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28818 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28819 { (exit 1); exit 1; }; }
28821 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28822 $as_echo "$TCL_CONFIG_SH" >&6; }
28828 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28829 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28830 eval TCL_LIBS=\"$TCL_LIBS\"
28831 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28832 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28834 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28835 ac_save_CPPFLAGS=$CPPFLAGS
28836 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28837 if test "${ac_cv_header_tcl_h+set}" = set; then
28838 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28839 $as_echo_n "checking for tcl.h... " >&6; }
28840 if test "${ac_cv_header_tcl_h+set}" = set; then
28841 $as_echo_n "(cached) " >&6
28843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28844 $as_echo "$ac_cv_header_tcl_h" >&6; }
28846 # Is the header compilable?
28847 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28848 $as_echo_n "checking tcl.h usability... " >&6; }
28849 cat >conftest.$ac_ext <<_ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28855 $ac_includes_default
28858 rm -f conftest.$ac_objext
28859 if { (ac_try="$ac_compile"
28860 case "(($ac_try" in
28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862 *) ac_try_echo=$ac_try;;
28864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28865 $as_echo "$ac_try_echo") >&5
28866 (eval "$ac_compile") 2>conftest.er1
28868 grep -v '^ *+' conftest.er1 >conftest.err
28870 cat conftest.err >&5
28871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } && {
28873 test -z "$ac_c_werror_flag" ||
28874 test ! -s conftest.err
28875 } && test -s conftest.$ac_objext; then
28876 ac_header_compiler=yes
28878 $as_echo "$as_me: failed program was:" >&5
28879 sed 's/^/| /' conftest.$ac_ext >&5
28881 ac_header_compiler=no
28884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28886 $as_echo "$ac_header_compiler" >&6; }
28888 # Is the header present?
28889 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28890 $as_echo_n "checking tcl.h presence... " >&6; }
28891 cat >conftest.$ac_ext <<_ACEOF
28894 cat confdefs.h >>conftest.$ac_ext
28895 cat >>conftest.$ac_ext <<_ACEOF
28896 /* end confdefs.h. */
28899 if { (ac_try="$ac_cpp conftest.$ac_ext"
28900 case "(($ac_try" in
28901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28905 $as_echo "$ac_try_echo") >&5
28906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } >/dev/null && {
28913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28914 test ! -s conftest.err
28916 ac_header_preproc=yes
28918 $as_echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28921 ac_header_preproc=no
28924 rm -f conftest.err conftest.$ac_ext
28925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28926 $as_echo "$ac_header_preproc" >&6; }
28928 # So? What about this header?
28929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28931 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28932 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28933 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28934 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28935 ac_header_preproc=yes
28938 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28939 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28940 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28941 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28942 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28943 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28944 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28945 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28946 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28947 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28948 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28949 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28951 ## ---------------------------------------- ##
28952 ## Report this to pgsql-bugs@postgresql.org ##
28953 ## ---------------------------------------- ##
28955 ) | sed "s/^/$as_me: WARNING: /" >&2
28958 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28959 $as_echo_n "checking for tcl.h... " >&6; }
28960 if test "${ac_cv_header_tcl_h+set}" = set; then
28961 $as_echo_n "(cached) " >&6
28963 ac_cv_header_tcl_h=$ac_header_preproc
28965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28966 $as_echo "$ac_cv_header_tcl_h" >&6; }
28969 if test "x$ac_cv_header_tcl_h" = x""yes; then
28972 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28973 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28974 { (exit 1); exit 1; }; }
28978 CPPFLAGS=$ac_save_CPPFLAGS
28981 # check for <Python.h>
28982 if test "$with_python" = yes; then
28983 ac_save_CPPFLAGS=$CPPFLAGS
28984 CPPFLAGS="$python_includespec $CPPFLAGS"
28985 if test "${ac_cv_header_Python_h+set}" = set; then
28986 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
28987 $as_echo_n "checking for Python.h... " >&6; }
28988 if test "${ac_cv_header_Python_h+set}" = set; then
28989 $as_echo_n "(cached) " >&6
28991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
28992 $as_echo "$ac_cv_header_Python_h" >&6; }
28994 # Is the header compilable?
28995 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
28996 $as_echo_n "checking Python.h usability... " >&6; }
28997 cat >conftest.$ac_ext <<_ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h. */
29003 $ac_includes_default
29004 #include <Python.h>
29006 rm -f conftest.$ac_objext
29007 if { (ac_try="$ac_compile"
29008 case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29013 $as_echo "$ac_try_echo") >&5
29014 (eval "$ac_compile") 2>conftest.er1
29016 grep -v '^ *+' conftest.er1 >conftest.err
29018 cat conftest.err >&5
29019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); } && {
29021 test -z "$ac_c_werror_flag" ||
29022 test ! -s conftest.err
29023 } && test -s conftest.$ac_objext; then
29024 ac_header_compiler=yes
29026 $as_echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 ac_header_compiler=no
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29034 $as_echo "$ac_header_compiler" >&6; }
29036 # Is the header present?
29037 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29038 $as_echo_n "checking Python.h presence... " >&6; }
29039 cat >conftest.$ac_ext <<_ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h. */
29045 #include <Python.h>
29047 if { (ac_try="$ac_cpp conftest.$ac_ext"
29048 case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29053 $as_echo "$ac_try_echo") >&5
29054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29056 grep -v '^ *+' conftest.er1 >conftest.err
29058 cat conftest.err >&5
29059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } >/dev/null && {
29061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29062 test ! -s conftest.err
29064 ac_header_preproc=yes
29066 $as_echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29069 ac_header_preproc=no
29072 rm -f conftest.err conftest.$ac_ext
29073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29074 $as_echo "$ac_header_preproc" >&6; }
29076 # So? What about this header?
29077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29079 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29080 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29081 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29082 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29083 ac_header_preproc=yes
29086 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29087 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29088 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29089 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29090 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29091 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29092 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29093 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29094 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29095 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29096 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29097 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29099 ## ---------------------------------------- ##
29100 ## Report this to pgsql-bugs@postgresql.org ##
29101 ## ---------------------------------------- ##
29103 ) | sed "s/^/$as_me: WARNING: /" >&2
29106 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29107 $as_echo_n "checking for Python.h... " >&6; }
29108 if test "${ac_cv_header_Python_h+set}" = set; then
29109 $as_echo_n "(cached) " >&6
29111 ac_cv_header_Python_h=$ac_header_preproc
29113 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29114 $as_echo "$ac_cv_header_Python_h" >&6; }
29117 if test "x$ac_cv_header_Python_h" = x""yes; then
29120 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29121 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29122 { (exit 1); exit 1; }; }
29126 CPPFLAGS=$ac_save_CPPFLAGS
29130 # Check for DocBook and tools
29132 for ac_prog in onsgmls nsgmls
29134 # Extract the first word of "$ac_prog", so it can be a program name with args.
29135 set dummy $ac_prog; ac_word=$2
29136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29137 $as_echo_n "checking for $ac_word... " >&6; }
29138 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29139 $as_echo_n "(cached) " >&6
29141 if test -n "$NSGMLS"; then
29142 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29145 for as_dir in $PATH
29148 test -z "$as_dir" && as_dir=.
29149 for ac_exec_ext in '' $ac_executable_extensions; do
29150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29151 ac_cv_prog_NSGMLS="$ac_prog"
29152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29161 NSGMLS=$ac_cv_prog_NSGMLS
29162 if test -n "$NSGMLS"; then
29163 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29164 $as_echo "$NSGMLS" >&6; }
29166 { $as_echo "$as_me:$LINENO: result: no" >&5
29167 $as_echo "no" >&6; }
29171 test -n "$NSGMLS" && break
29174 for ac_prog in openjade jade
29176 # Extract the first word of "$ac_prog", so it can be a program name with args.
29177 set dummy $ac_prog; ac_word=$2
29178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29179 $as_echo_n "checking for $ac_word... " >&6; }
29180 if test "${ac_cv_prog_JADE+set}" = set; then
29181 $as_echo_n "(cached) " >&6
29183 if test -n "$JADE"; then
29184 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29187 for as_dir in $PATH
29190 test -z "$as_dir" && as_dir=.
29191 for ac_exec_ext in '' $ac_executable_extensions; do
29192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29193 ac_cv_prog_JADE="$ac_prog"
29194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29203 JADE=$ac_cv_prog_JADE
29204 if test -n "$JADE"; then
29205 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29206 $as_echo "$JADE" >&6; }
29208 { $as_echo "$as_me:$LINENO: result: no" >&5
29209 $as_echo "no" >&6; }
29213 test -n "$JADE" && break
29217 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29218 $as_echo_n "checking for DocBook V4.2... " >&6; }
29219 if test "${pgac_cv_check_docbook+set}" = set; then
29220 $as_echo_n "(cached) " >&6
29222 cat >conftest.sgml <<EOF
29223 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29225 <title>test</title>
29227 <title>random</title>
29229 <title>testsect</title>
29236 pgac_cv_check_docbook=no
29238 if test -n "$NSGMLS"; then
29239 $NSGMLS -s conftest.sgml 1>&5 2>&1
29240 if test $? -eq 0; then
29241 pgac_cv_check_docbook=yes
29244 rm -f conftest.sgml
29246 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29247 $as_echo "$pgac_cv_check_docbook" >&6; }
29249 have_docbook=$pgac_cv_check_docbook
29252 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29253 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29254 if test "${pgac_cv_path_stylesheets+set}" = set; then
29255 $as_echo_n "(cached) " >&6
29257 if test -n "$DOCBOOKSTYLE"; then
29258 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29260 for pgac_prefix in /usr /usr/local /opt /sw; do
29261 for pgac_infix in share lib; do
29262 for pgac_postfix in \
29263 sgml/stylesheets/nwalsh-modular \
29264 sgml/stylesheets/docbook \
29265 sgml/stylesheets/dsssl/docbook \
29266 sgml/docbook-dsssl \
29267 sgml/docbook/dsssl/modular \
29268 sgml/docbook/stylesheet/dsssl/modular \
29269 sgml/docbook/dsssl-stylesheets \
29270 sgml/dsssl/docbook-dsssl-nwalsh
29272 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29273 if test -r "$pgac_candidate/html/docbook.dsl" \
29274 && test -r "$pgac_candidate/print/docbook.dsl"
29276 pgac_cv_path_stylesheets=$pgac_candidate
29285 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29287 if test -n "$DOCBOOKSTYLE"; then
29288 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29289 $as_echo "$DOCBOOKSTYLE" >&6; }
29291 { $as_echo "$as_me:$LINENO: result: no" >&5
29292 $as_echo "no" >&6; }
29294 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29295 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29298 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29299 set dummy collateindex.pl; ac_word=$2
29300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29301 $as_echo_n "checking for $ac_word... " >&6; }
29302 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29303 $as_echo_n "(cached) " >&6
29305 case $COLLATEINDEX in
29307 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29311 for as_dir in $PATH
29314 test -z "$as_dir" && as_dir=.
29315 for ac_exec_ext in '' $ac_executable_extensions; do
29316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29317 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29328 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29329 if test -n "$COLLATEINDEX"; then
29330 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29331 $as_echo "$COLLATEINDEX" >&6; }
29333 { $as_echo "$as_me:$LINENO: result: no" >&5
29334 $as_echo "no" >&6; }
29339 for ac_prog in xsltproc
29341 # Extract the first word of "$ac_prog", so it can be a program name with args.
29342 set dummy $ac_prog; ac_word=$2
29343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29344 $as_echo_n "checking for $ac_word... " >&6; }
29345 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29346 $as_echo_n "(cached) " >&6
29348 if test -n "$XSLTPROC"; then
29349 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29352 for as_dir in $PATH
29355 test -z "$as_dir" && as_dir=.
29356 for ac_exec_ext in '' $ac_executable_extensions; do
29357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29358 ac_cv_prog_XSLTPROC="$ac_prog"
29359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29368 XSLTPROC=$ac_cv_prog_XSLTPROC
29369 if test -n "$XSLTPROC"; then
29370 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29371 $as_echo "$XSLTPROC" >&6; }
29373 { $as_echo "$as_me:$LINENO: result: no" >&5
29374 $as_echo "no" >&6; }
29378 test -n "$XSLTPROC" && break
29381 for ac_prog in osx sgml2xml sx
29383 # Extract the first word of "$ac_prog", so it can be a program name with args.
29384 set dummy $ac_prog; ac_word=$2
29385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29386 $as_echo_n "checking for $ac_word... " >&6; }
29387 if test "${ac_cv_prog_OSX+set}" = set; then
29388 $as_echo_n "(cached) " >&6
29390 if test -n "$OSX"; then
29391 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29394 for as_dir in $PATH
29397 test -z "$as_dir" && as_dir=.
29398 for ac_exec_ext in '' $ac_executable_extensions; do
29399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29400 ac_cv_prog_OSX="$ac_prog"
29401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29410 OSX=$ac_cv_prog_OSX
29411 if test -n "$OSX"; then
29412 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29413 $as_echo "$OSX" >&6; }
29415 { $as_echo "$as_me:$LINENO: result: no" >&5
29416 $as_echo "no" >&6; }
29420 test -n "$OSX" && break
29426 # We have to run the thread test near the end so we have all our symbols
29427 # defined. Cross compiling throws a warning.
29429 if test "$enable_thread_safety" = yes; then
29430 if test "$PORTNAME" != "win32"
29432 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29433 $as_echo_n "checking thread safety of required library functions... " >&6; }
29437 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29438 LIBS="$LIBS $PTHREAD_LIBS"
29439 if test "$cross_compiling" = yes; then
29440 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29441 $as_echo "maybe" >&6; }
29442 { $as_echo "$as_me:$LINENO: WARNING:
29443 *** Skipping thread test program because of cross-compile build.
29444 *** Run the program in src/test/thread on the target machine.
29446 $as_echo "$as_me: WARNING:
29447 *** Skipping thread test program because of cross-compile build.
29448 *** Run the program in src/test/thread on the target machine.
29451 cat >conftest.$ac_ext <<_ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29457 #include "$srcdir/src/test/thread/thread_test.c"
29459 rm -f conftest$ac_exeext
29460 if { (ac_try="$ac_link"
29461 case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29466 $as_echo "$ac_try_echo") >&5
29467 (eval "$ac_link") 2>&5
29469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29471 { (case "(($ac_try" in
29472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29473 *) ac_try_echo=$ac_try;;
29475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29476 $as_echo "$ac_try_echo") >&5
29477 (eval "$ac_try") 2>&5
29479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480 (exit $ac_status); }; }; then
29481 { $as_echo "$as_me:$LINENO: result: yes" >&5
29482 $as_echo "yes" >&6; }
29484 $as_echo "$as_me: program exited with status $ac_status" >&5
29485 $as_echo "$as_me: failed program was:" >&5
29486 sed 's/^/| /' conftest.$ac_ext >&5
29488 ( exit $ac_status )
29489 { $as_echo "$as_me:$LINENO: result: no" >&5
29490 $as_echo "no" >&6; }
29491 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29492 This platform is not thread-safe. Check the file 'config.log' or compile
29493 and run src/test/thread/thread_test for the exact reason.
29494 Use --disable-thread-safety to disable thread safety." >&5
29495 $as_echo "$as_me: error: thread test program failed
29496 This platform is not thread-safe. Check the file 'config.log' or compile
29497 and run src/test/thread/thread_test for the exact reason.
29498 Use --disable-thread-safety to disable thread safety." >&2;}
29499 { (exit 1); exit 1; }; }
29501 rm -rf conftest.dSYM
29502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29509 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29510 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29514 # If compiler will take -Wl,--as-needed (or various platform-specific
29515 # spellings thereof) then add that to LDFLAGS. This is much easier than
29516 # trying to filter LIBS to the minimum for each executable.
29517 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29518 # libreadline; therefore we postpone testing it until we know what library
29519 # dependencies readline has. The test code will try to link with $LIBS.
29520 if test "$with_readline" = yes; then
29521 link_test_func=readline
29523 link_test_func=exit
29526 if test "$PORTNAME" = "darwin"; then
29527 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29528 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29529 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29530 $as_echo_n "(cached) " >&6
29532 pgac_save_LDFLAGS=$LDFLAGS
29533 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29534 if test "$cross_compiling" = yes; then
29535 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29537 cat >conftest.$ac_ext <<_ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h. */
29543 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29552 rm -f conftest$ac_exeext
29553 if { (ac_try="$ac_link"
29554 case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29559 $as_echo "$ac_try_echo") >&5
29560 (eval "$ac_link") 2>&5
29562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29564 { (case "(($ac_try" in
29565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29566 *) ac_try_echo=$ac_try;;
29568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29569 $as_echo "$ac_try_echo") >&5
29570 (eval "$ac_try") 2>&5
29572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; }; then
29574 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29576 $as_echo "$as_me: program exited with status $ac_status" >&5
29577 $as_echo "$as_me: failed program was:" >&5
29578 sed 's/^/| /' conftest.$ac_ext >&5
29580 ( exit $ac_status )
29581 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29583 rm -rf conftest.dSYM
29584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29588 LDFLAGS="$pgac_save_LDFLAGS"
29590 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29591 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29592 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29593 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29596 elif test "$PORTNAME" = "openbsd"; then
29597 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29598 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29599 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29600 $as_echo_n "(cached) " >&6
29602 pgac_save_LDFLAGS=$LDFLAGS
29603 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29604 if test "$cross_compiling" = yes; then
29605 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29607 cat >conftest.$ac_ext <<_ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h. */
29613 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29622 rm -f conftest$ac_exeext
29623 if { (ac_try="$ac_link"
29624 case "(($ac_try" in
29625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626 *) ac_try_echo=$ac_try;;
29628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29629 $as_echo "$ac_try_echo") >&5
29630 (eval "$ac_link") 2>&5
29632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29634 { (case "(($ac_try" in
29635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636 *) ac_try_echo=$ac_try;;
29638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29639 $as_echo "$ac_try_echo") >&5
29640 (eval "$ac_try") 2>&5
29642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
29644 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29646 $as_echo "$as_me: program exited with status $ac_status" >&5
29647 $as_echo "$as_me: failed program was:" >&5
29648 sed 's/^/| /' conftest.$ac_ext >&5
29650 ( exit $ac_status )
29651 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29653 rm -rf conftest.dSYM
29654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29658 LDFLAGS="$pgac_save_LDFLAGS"
29660 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29661 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29662 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29663 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29667 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29668 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29669 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29670 $as_echo_n "(cached) " >&6
29672 pgac_save_LDFLAGS=$LDFLAGS
29673 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29674 if test "$cross_compiling" = yes; then
29675 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29677 cat >conftest.$ac_ext <<_ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h. */
29683 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29692 rm -f conftest$ac_exeext
29693 if { (ac_try="$ac_link"
29694 case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29699 $as_echo "$ac_try_echo") >&5
29700 (eval "$ac_link") 2>&5
29702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29704 { (case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29709 $as_echo "$ac_try_echo") >&5
29710 (eval "$ac_try") 2>&5
29712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); }; }; then
29714 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29716 $as_echo "$as_me: program exited with status $ac_status" >&5
29717 $as_echo "$as_me: failed program was:" >&5
29718 sed 's/^/| /' conftest.$ac_ext >&5
29720 ( exit $ac_status )
29721 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29723 rm -rf conftest.dSYM
29724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29728 LDFLAGS="$pgac_save_LDFLAGS"
29730 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29731 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29732 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29733 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29738 # Create compiler version string
29739 if test x"$GCC" = x"yes" ; then
29740 cc_string=`${CC} --version | sed q`
29741 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29742 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29743 cc_string=`${CC} -V 2>&1 | sed q`
29749 cat >>confdefs.h <<_ACEOF
29750 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29754 # Supply a numeric version string for use by 3rd party add-ons
29755 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29756 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29758 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29760 cat >>confdefs.h <<_ACEOF
29761 #define PG_VERSION_NUM $PG_VERSION_NUM
29766 # Begin output steps
29768 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29769 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29770 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29771 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29772 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29773 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29774 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29775 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29777 # prepare build tree if outside source tree
29778 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29779 # Note 2: /bin/pwd might be better than shell's built-in at getting
29780 # a symlink-free name.
29781 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29785 if test "$no_create" != yes; then
29786 $as_echo_n "preparing build tree... " >&6
29787 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29788 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29789 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29790 $as_echo "$as_me: error: failed" >&2;}
29791 { (exit 1); exit 1; }; }
29792 { $as_echo "$as_me:$LINENO: result: done" >&5
29793 $as_echo "done" >&6; }
29799 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29802 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}"
29805 if test "$PORTNAME" = "win32"; then
29806 ac_config_commands="$ac_config_commands check_win32_symlinks"
29810 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29813 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29816 cat >confcache <<\_ACEOF
29817 # This file is a shell script that caches the results of configure
29818 # tests run on this system so they can be shared between configure
29819 # scripts and configure runs, see configure's option --config-cache.
29820 # It is not useful on other systems. If it contains results you don't
29821 # want to keep, you may remove or edit it.
29823 # config.status only pays attention to the cache file if you give it
29824 # the --recheck option to rerun configure.
29826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29828 # following values.
29832 # The following way of writing the cache mishandles newlines in values,
29833 # but we know of no workaround that is simple, portable, and efficient.
29834 # So, we kill variables containing newlines.
29835 # Ultrix sh set writes to stderr and can't be redirected directly,
29836 # and sets the high bit in the cache file unless we assign to the vars.
29838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29839 eval ac_val=\$$ac_var
29843 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29844 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29847 _ | IFS | as_nl) ;; #(
29848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29849 *) $as_unset $ac_var ;;
29855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29856 *${as_nl}ac_space=\ *)
29857 # `set' does not quote correctly, so add quotes (double-quote
29858 # substitution turns \\\\ into \\, and sed turns \\ into \).
29861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29864 # `set' quotes correctly as required by POSIX, so do not add quotes.
29865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29879 if test -w "$cache_file"; then
29880 test "x$cache_file" != "x/dev/null" &&
29881 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29882 $as_echo "$as_me: updating cache $cache_file" >&6;}
29883 cat confcache >$cache_file
29885 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29886 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29892 # Let make expand exec_prefix.
29893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29895 DEFS=-DHAVE_CONFIG_H
29899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29900 # 1. Remove the extension, and $U if already installed.
29901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29904 # will be set to the directory where LIBOBJS objects are built.
29905 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29906 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29908 LIBOBJS=$ac_libobjs
29910 LTLIBOBJS=$ac_ltlibobjs
29915 : ${CONFIG_STATUS=./config.status}
29917 ac_clean_files_save=$ac_clean_files
29918 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29919 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29920 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29921 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29923 # Generated by $as_me.
29924 # Run this file to recreate the current configuration.
29925 # Compiler output produced by configure, useful for debugging
29926 # configure, is in config.log if it exists.
29929 ac_cs_recheck=false
29931 SHELL=\${CONFIG_SHELL-$SHELL}
29934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29935 ## --------------------- ##
29936 ## M4sh Initialization. ##
29937 ## --------------------- ##
29939 # Be more Bourne compatible
29940 DUALCASE=1; export DUALCASE # for MKS sh
29941 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29944 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29945 # is contrary to our usage. Disable this feature.
29946 alias -g '${1+"$@"}'='"$@"'
29947 setopt NO_GLOB_SUBST
29949 case `(set -o) 2>/dev/null` in
29950 *posix*) set -o posix ;;
29959 # Avoid depending upon Character Ranges.
29960 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29961 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29962 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29963 as_cr_digits='0123456789'
29964 as_cr_alnum=$as_cr_Letters$as_cr_digits
29969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29973 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29974 as_echo='printf %s\n'
29975 as_echo_n='printf %s'
29977 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29978 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29979 as_echo_n='/usr/ucb/echo -n'
29981 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29982 as_echo_n_body='eval
29986 expr "X$arg" : "X\\(.*\\)$as_nl";
29987 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29989 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29991 export as_echo_n_body
29992 as_echo_n='sh -c $as_echo_n_body as_echo'
29994 export as_echo_body
29995 as_echo='sh -c $as_echo_body as_echo'
29998 # The user is always right.
29999 if test "${PATH_SEPARATOR+set}" != set; then
30001 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30002 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30007 # Support unset when possible.
30008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30016 # We need space, tab and new line, in precisely that order. Quoting is
30017 # there to prevent editors from complaining about space-tab.
30018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30019 # splitting by setting IFS to empty value.)
30022 # Find who we are. Look in the path if we contain no directory separator.
30024 *[\\/]* ) as_myself=$0 ;;
30025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30026 for as_dir in $PATH
30029 test -z "$as_dir" && as_dir=.
30030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30036 # We did not find ourselves, most probably we were run as `sh COMMAND'
30037 # in which case we are not to be found in the path.
30038 if test "x$as_myself" = x; then
30041 if test ! -f "$as_myself"; then
30042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30043 { (exit 1); exit 1; }
30046 # Work around bugs in pre-3.0 UWIN ksh.
30047 for as_var in ENV MAIL MAILPATH
30048 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30060 # Required to use basename.
30061 if expr a : '\(a\)' >/dev/null 2>&1 &&
30062 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30068 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30069 as_basename=basename
30075 # Name of the executable.
30076 as_me=`$as_basename -- "$0" ||
30077 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30078 X"$0" : 'X\(//\)$' \| \
30079 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30081 sed '/^.*\/\([^/][^/]*\)\/*$/{
30100 as_lineno_1=$LINENO
30101 as_lineno_2=$LINENO
30102 test "x$as_lineno_1" != "x$as_lineno_2" &&
30103 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30106 # uniformly replaced by the line number. The first 'sed' inserts a
30107 # line-number line after each line using $LINENO; the second 'sed'
30108 # does the real work. The second script uses 'N' to pair each
30109 # line-number line with the line containing $LINENO, and appends
30110 # trailing '-' during substitution so that $LINENO is not a special
30111 # case at line end.
30112 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30113 # scripts with optimization help from Paolo Bonzini. Blame Lee
30114 # E. McMahon (1931-1989) for sed's syntax. :-)
30126 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30129 ' >$as_me.lineno &&
30130 chmod +x "$as_me.lineno" ||
30131 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30132 { (exit 1); exit 1; }; }
30134 # Don't try to exec as it changes $[0], causing all sort of problems
30135 # (the dirname of $[0] is not the place where we might find the
30136 # original and so on. Autoconf is especially sensitive to this).
30137 . "./$as_me.lineno"
30138 # Exit status is that of the last command.
30143 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30149 ECHO_C= ECHO_N= ECHO_T=
30150 case `echo -n x` in
30152 case `echo 'x\c'` in
30153 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30159 if expr a : '\(a\)' >/dev/null 2>&1 &&
30160 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30166 rm -f conf$$ conf$$.exe conf$$.file
30167 if test -d conf$$.dir; then
30168 rm -f conf$$.dir/conf$$.file
30171 mkdir conf$$.dir 2>/dev/null
30173 if (echo >conf$$.file) 2>/dev/null; then
30174 if ln -s conf$$.file conf$$ 2>/dev/null; then
30176 # ... but there are two gotchas:
30177 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30178 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30179 # In both cases, we have to default to `cp -p'.
30180 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30182 elif ln conf$$.file conf$$ 2>/dev/null; then
30190 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30191 rmdir conf$$.dir 2>/dev/null
30193 if mkdir -p . 2>/dev/null; then
30196 test -d ./-p && rmdir ./-p
30200 if test -x / >/dev/null 2>&1; then
30201 as_test_x='test -x'
30203 if ls -dL / >/dev/null 2>&1; then
30210 if test -d "$1"; then
30216 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30217 ???[sx]*):;;*)false;;esac;fi
30221 as_executable_p=$as_test_x
30223 # Sed expression to map a string onto a valid CPP name.
30224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30226 # Sed expression to map a string onto a valid variable name.
30227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30232 # Save the log message, to keep $[0] and so on meaningful, and to
30233 # report actual input values of CONFIG_FILES etc. instead of their
30234 # values after options handling.
30236 This file was extended by PostgreSQL $as_me 9.3devel, which was
30237 generated by GNU Autoconf 2.63. Invocation command line was
30239 CONFIG_FILES = $CONFIG_FILES
30240 CONFIG_HEADERS = $CONFIG_HEADERS
30241 CONFIG_LINKS = $CONFIG_LINKS
30242 CONFIG_COMMANDS = $CONFIG_COMMANDS
30245 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30250 case $ac_config_files in *"
30251 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30254 case $ac_config_headers in *"
30255 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30260 # Files that config.status was made for.
30261 config_files="$ac_config_files"
30262 config_headers="$ac_config_headers"
30263 config_links="$ac_config_links"
30264 config_commands="$ac_config_commands"
30268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30270 \`$as_me' instantiates files from templates according to the
30271 current configuration.
30273 Usage: $0 [OPTION]... [FILE]...
30275 -h, --help print this help, then exit
30276 -V, --version print version number and configuration settings, then exit
30277 -q, --quiet, --silent
30278 do not print progress messages
30279 -d, --debug don't remove temporary files
30280 --recheck update $as_me by reconfiguring in the same conditions
30281 --file=FILE[:TEMPLATE]
30282 instantiate the configuration file FILE
30283 --header=FILE[:TEMPLATE]
30284 instantiate the configuration header FILE
30286 Configuration files:
30289 Configuration headers:
30292 Configuration links:
30295 Configuration commands:
30298 Report bugs to <bug-autoconf@gnu.org>."
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30303 PostgreSQL config.status 9.3devel
30304 configured by $0, generated by GNU Autoconf 2.63,
30305 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30307 Copyright (C) 2008 Free Software Foundation, Inc.
30308 This config.status script is free software; the Free Software Foundation
30309 gives unlimited permission to copy, distribute and modify it."
30316 test -n "\$AWK" || AWK=awk
30319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30320 # The default lists apply if the user does not specify any file.
30326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30327 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30338 # Handling of the options.
30339 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30341 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30342 $as_echo "$ac_cs_version"; exit ;;
30343 --debug | --debu | --deb | --de | --d | -d )
30345 --file | --fil | --fi | --f )
30348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30350 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30351 ac_need_defaults=false;;
30352 --header | --heade | --head | --hea )
30355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30357 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30358 ac_need_defaults=false;;
30360 # Conflict between --help and --header
30361 { $as_echo "$as_me: error: ambiguous option: $1
30362 Try \`$0 --help' for more information." >&2
30363 { (exit 1); exit 1; }; };;
30364 --help | --hel | -h )
30365 $as_echo "$ac_cs_usage"; exit ;;
30366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30367 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30370 # This is an error.
30371 -*) { $as_echo "$as_me: error: unrecognized option: $1
30372 Try \`$0 --help' for more information." >&2
30373 { (exit 1); exit 1; }; } ;;
30375 *) ac_config_targets="$ac_config_targets $1"
30376 ac_need_defaults=false ;;
30382 ac_configure_extra_args=
30384 if $ac_cs_silent; then
30386 ac_configure_extra_args="$ac_configure_extra_args --silent"
30390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30391 if \$ac_cs_recheck; then
30392 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30395 CONFIG_SHELL='$SHELL'
30396 export CONFIG_SHELL
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30406 ## Running $as_me. ##
30412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30417 # Handling of arguments.
30418 for ac_config_target in $ac_config_targets
30420 case $ac_config_target in
30421 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30422 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30423 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30424 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30425 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30426 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30427 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30428 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30429 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30430 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30431 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30432 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30433 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30435 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30436 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30437 { (exit 1); exit 1; }; };;
30442 # If the user did not use the arguments to specify the items to instantiate,
30443 # then the envvar interface is used. Set only those that are not.
30444 # We use the long form for the default assignment because of an extremely
30445 # bizarre bug on SunOS 4.1.3.
30446 if $ac_need_defaults; then
30447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30449 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30453 # Have a temporary directory for convenience. Make it in the build tree
30454 # simply because there is no reason against having it here, and in addition,
30455 # creating and moving files from /tmp can sometimes cause problems.
30456 # Hook for its removal unless debugging.
30457 # Note that there is a small window in which the directory will not be cleaned:
30458 # after its creation but before its name has been assigned to `$tmp'.
30462 trap 'exit_status=$?
30463 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30465 trap '{ (exit 1); exit 1; }' 1 2 13 15
30467 # Create a (secure) tmp directory for tmp files.
30470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30471 test -n "$tmp" && test -d "$tmp"
30474 tmp=./conf$$-$RANDOM
30475 (umask 077 && mkdir "$tmp")
30478 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30479 { (exit 1); exit 1; }
30482 # Set up the scripts for CONFIG_FILES section.
30483 # No need to generate them if there are no CONFIG_FILES.
30484 # This happens for instance with `./config.status config.h'.
30485 if test -n "$CONFIG_FILES"; then
30489 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30490 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30493 ac_cs_awk_cr=$ac_cr
30496 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30501 echo "cat >conf$$subs.awk <<_ACEOF" &&
30502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30504 } >conf$$subs.sh ||
30505 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30506 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30507 { (exit 1); exit 1; }; }
30508 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30510 for ac_last_try in false false false false false :; do
30511 . ./conf$$subs.sh ||
30512 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30513 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30514 { (exit 1); exit 1; }; }
30516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30517 if test $ac_delim_n = $ac_delim_num; then
30519 elif $ac_last_try; then
30520 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30521 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30522 { (exit 1); exit 1; }; }
30524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30527 rm -f conf$$subs.sh
30529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30530 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30534 s/^/S["/; s/!.*/"]=/
30544 s/\(.\{148\}\).*/\1/
30546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30558 s/\(.\{148\}\).*/\1/
30560 s/["\\]/\\&/g; s/^/"/; s/$/"/
30564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30569 ' <conf$$subs.awk | sed '
30574 ' >>$CONFIG_STATUS || ac_write_fail=1
30575 rm -f conf$$subs.awk
30576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30578 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30579 for (key in S) S_is_set[key] = 1
30585 nfields = split(line, field, "@")
30587 len = length(field[1])
30588 for (i = 2; i < nfields; i++) {
30590 keylen = length(key)
30591 if (S_is_set[key]) {
30593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30594 len += length(value) + length(field[++i])
30605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30610 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30611 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30612 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30613 { (exit 1); exit 1; }; }
30616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30618 # trailing colons and then remove the whole line if VPATH becomes empty
30619 # (actually we leave an empty line to preserve line numbers).
30620 if test "x$srcdir" = x.; then
30621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30622 s/:*\$(srcdir):*/:/
30623 s/:*\${srcdir}:*/:/
30625 s/^\([^=]*=[ ]*\):*/\1/
30631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30632 fi # test -n "$CONFIG_FILES"
30634 # Set up the scripts for CONFIG_HEADERS section.
30635 # No need to generate them if there are no CONFIG_HEADERS.
30636 # This happens for instance with `./config.status Makefile'.
30637 if test -n "$CONFIG_HEADERS"; then
30638 cat >"$tmp/defines.awk" <<\_ACAWK ||
30642 # Transform confdefs.h into an awk script `defines.awk', embedded as
30643 # here-document in config.status, that substitutes the proper values into
30644 # config.h.in to produce config.h.
30646 # Create a delimiter string that does not exist in confdefs.h, to ease
30647 # handling of long lines.
30649 for ac_last_try in false false :; do
30650 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30651 if test -z "$ac_t"; then
30653 elif $ac_last_try; then
30654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30655 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30656 { (exit 1); exit 1; }; }
30658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30662 # For the awk script, D is an array of macro values keyed by name,
30663 # likewise P contains macro parameters if any. Preserve backslash
30664 # newline sequences.
30666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30668 s/.\{148\}/&'"$ac_delim"'/g
30671 s/^[ ]*#[ ]*define[ ][ ]*/ /
30678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30685 D["\1"]=" \3\\\\\\n"\\/p
30687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30692 s/.\{148\}/&'"$ac_delim"'/g
30697 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30700 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30702 ' <confdefs.h | sed '
30703 s/'"$ac_delim"'/"\\\
30704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30707 for (key in D) D_is_set[key] = 1
30710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30712 split(line, arg, " ")
30713 if (arg[1] == "#") {
30717 defundef = substr(arg[1], 2)
30720 split(mac1, mac2, "(") #)
30722 prefix = substr(line, 1, index(line, defundef) - 1)
30723 if (D_is_set[macro]) {
30724 # Preserve the white space surrounding the "#".
30725 print prefix "define", macro P[macro] D[macro]
30728 # Replace #undef with comments. This is necessary, for example,
30729 # in the case of _POSIX_SOURCE, which is predefined and required
30730 # on some systems where configure will not decide to define it.
30731 if (defundef == "undef") {
30732 print "/*", prefix defundef, macro, "*/"
30740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30741 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30742 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30743 { (exit 1); exit 1; }; }
30744 fi # test -n "$CONFIG_HEADERS"
30747 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30752 :[FHLC]) ac_mode=$ac_tag; continue;;
30754 case $ac_mode$ac_tag in
30756 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30757 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30758 { (exit 1); exit 1; }; };;
30759 :[FH]-) ac_tag=-:-;;
30760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30777 -) ac_f="$tmp/stdin";;
30778 *) # Look for the file first in the build tree, then in the source tree
30779 # (if the path is not absolute). The absolute path cannot be DOS-style,
30780 # because $ac_f cannot contain `:'.
30784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30786 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30787 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30788 { (exit 1); exit 1; }; };;
30790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30791 ac_file_inputs="$ac_file_inputs '$ac_f'"
30794 # Let's still pretend it is `configure' which instantiates (i.e., don't
30795 # use $as_me), people would be surprised to read:
30796 # /* config.h. Generated by config.status. */
30797 configure_input='Generated from '`
30798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30800 if test x"$ac_file" != x-; then
30801 configure_input="$ac_file. $configure_input"
30802 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30803 $as_echo "$as_me: creating $ac_file" >&6;}
30805 # Neutralize special characters interpreted by sed in replacement strings.
30806 case $configure_input in #(
30807 *\&* | *\|* | *\\* )
30808 ac_sed_conf_input=`$as_echo "$configure_input" |
30809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30810 *) ac_sed_conf_input=$configure_input;;
30814 *:-:* | *:-) cat >"$tmp/stdin" \
30815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30817 { (exit 1); exit 1; }; } ;;
30822 ac_dir=`$as_dirname -- "$ac_file" ||
30823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30824 X"$ac_file" : 'X\(//\)[^/]' \| \
30825 X"$ac_file" : 'X\(//\)$' \| \
30826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30827 $as_echo X"$ac_file" |
30828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30832 /^X\(\/\/\)[^/].*/{
30847 -*) as_dir=./$as_dir;;
30849 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30854 *) as_qdir=$as_dir;;
30856 as_dirs="'$as_qdir' $as_dirs"
30857 as_dir=`$as_dirname -- "$as_dir" ||
30858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30859 X"$as_dir" : 'X\(//\)[^/]' \| \
30860 X"$as_dir" : 'X\(//\)$' \| \
30861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30862 $as_echo X"$as_dir" |
30863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30867 /^X\(\/\/\)[^/].*/{
30880 test -d "$as_dir" && break
30882 test -z "$as_dirs" || eval "mkdir $as_dirs"
30883 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30884 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30885 { (exit 1); exit 1; }; }; }
30889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30892 # A ".." for each directory in $ac_dir_suffix.
30893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30894 case $ac_top_builddir_sub in
30895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30899 ac_abs_top_builddir=$ac_pwd
30900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30901 # for backward compatibility:
30902 ac_top_builddir=$ac_top_build_prefix
30905 .) # We are building in place.
30907 ac_top_srcdir=$ac_top_builddir_sub
30908 ac_abs_top_srcdir=$ac_pwd ;;
30909 [\\/]* | ?:[\\/]* ) # Absolute name.
30910 ac_srcdir=$srcdir$ac_dir_suffix;
30911 ac_top_srcdir=$srcdir
30912 ac_abs_top_srcdir=$srcdir ;;
30913 *) # Relative name.
30914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30915 ac_top_srcdir=$ac_top_build_prefix$srcdir
30916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30931 ac_MKDIR_P=$MKDIR_P
30933 [\\/$]* | ?:[\\/]* ) ;;
30934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30939 # If the template does not know about datarootdir, expand it.
30940 # FIXME: This hack should be removed a few years after 2.60.
30941 ac_datarootdir_hack=; ac_datarootdir_seen=
30954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30955 *datarootdir*) ac_datarootdir_seen=yes;;
30956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30957 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30961 ac_datarootdir_hack='
30962 s&@datadir@&$datadir&g
30963 s&@docdir@&$docdir&g
30964 s&@infodir@&$infodir&g
30965 s&@localedir@&$localedir&g
30966 s&@mandir@&$mandir&g
30967 s&\\\${datarootdir}&$datarootdir&g' ;;
30971 # Neutralize VPATH when `$srcdir' = `.'.
30972 # Shell code in configure.ac might set extrasub.
30973 # FIXME: do we really want to maintain this feature?
30974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30975 ac_sed_extra="$ac_vpsub
30978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30981 s|@configure_input@|$ac_sed_conf_input|;t t
30982 s&@top_builddir@&$ac_top_builddir_sub&;t t
30983 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30984 s&@srcdir@&$ac_srcdir&;t t
30985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30986 s&@top_srcdir@&$ac_top_srcdir&;t t
30987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30988 s&@builddir@&$ac_builddir&;t t
30989 s&@abs_builddir@&$ac_abs_builddir&;t t
30990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30991 s&@INSTALL@&$ac_INSTALL&;t t
30992 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30993 $ac_datarootdir_hack
30995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30996 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30997 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30998 { (exit 1); exit 1; }; }
31000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31001 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31003 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31004 which seems to be undefined. Please make sure it is defined." >&5
31005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31006 which seems to be undefined. Please make sure it is defined." >&2;}
31010 -) cat "$tmp/out" && rm -f "$tmp/out";;
31011 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31014 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31015 { (exit 1); exit 1; }; }
31021 if test x"$ac_file" != x-; then
31023 $as_echo "/* $configure_input */" \
31024 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31025 } >"$tmp/config.h" \
31026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31027 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31028 { (exit 1); exit 1; }; }
31029 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31030 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31031 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31034 mv "$tmp/config.h" "$ac_file" \
31035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31036 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31037 { (exit 1); exit 1; }; }
31040 $as_echo "/* $configure_input */" \
31041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31042 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31043 $as_echo "$as_me: error: could not create -" >&2;}
31044 { (exit 1); exit 1; }; }
31052 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31055 # Prefer the file from the source tree if names are identical.
31056 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31057 ac_source=$srcdir/$ac_source
31060 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31061 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31063 if test ! -r "$ac_source"; then
31064 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31065 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31066 { (exit 1); exit 1; }; }
31070 # Try a relative symlink, then a hard link, then a copy.
31072 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31073 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31075 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31076 ln "$ac_source" "$ac_file" 2>/dev/null ||
31077 cp -p "$ac_source" "$ac_file" ||
31078 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31079 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31080 { (exit 1); exit 1; }; }
31083 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31084 $as_echo "$as_me: executing $ac_file commands" >&6;}
31089 case $ac_file$ac_mode in
31090 "check_win32_symlinks":C)
31091 # Links sometimes fail undetected on Mingw -
31092 # so here we detect it and warn the user
31093 for FILE in $CONFIG_LINKS
31095 # test -e works for symlinks in the MinGW console
31096 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31097 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31100 "src/include/pg_config.h":H)
31101 # Update timestamp for pg_config.h (see Makefile.global)
31102 echo >src/include/stamp-h
31104 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31110 { (exit 0); exit 0; }
31112 chmod +x $CONFIG_STATUS
31113 ac_clean_files=$ac_clean_files_save
31115 test $ac_write_fail = 0 ||
31116 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31117 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31118 { (exit 1); exit 1; }; }
31121 # configure is writing to config.log, and then calls config.status.
31122 # config.status does its own redirection, appending to config.log.
31123 # Unfortunately, on DOS this fails, as config.log is still kept open
31124 # by configure, so config.status won't be able to write to it; its
31125 # output is simply discarded. So we exec the FD to /dev/null,
31126 # effectively closing config.log, so it can be properly (re)opened and
31127 # appended to by config.status. When coming back to configure, we
31128 # need to make the FD available again.
31129 if test "$no_create" != yes; then
31131 ac_config_status_args=
31132 test "$silent" = yes &&
31133 ac_config_status_args="$ac_config_status_args --quiet"
31135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31138 # would make configure fail if this is the last instruction.
31139 $ac_cs_success || { (exit 1); exit 1; }
31141 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31142 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31143 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}