2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1devel.
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-2011, 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.1devel'
602 PACKAGE_STRING='PostgreSQL 9.1devel'
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
794 program_transform_name
806 enable_option_checking
811 enable_integer_datetimes
841 with_libedit_preferred
852 ac_precious_vars='build_alias
866 # Initialize some variables set by options.
868 ac_init_version=false
869 ac_unrecognized_opts=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name=s,x,x,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
926 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
954 cache_file=config.cache ;;
956 -datadir | --datadir | --datadi | --datad)
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1174 -site=* | --site=* | --sit=*)
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1215 eval with_$ac_useropt=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval with_$ac_useropt=no ;;
1235 # Obsolete; use --with-x.
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1252 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1287 { (exit 1); exit 1; }; } ;;
1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of PostgreSQL 9.1devel:";;
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --disable-integer-datetimes
1490 disable 64-bit integer date/time support
1491 --enable-nls[=LANGUAGES]
1492 enable Native Language Support
1493 --disable-shared do not build shared libraries
1494 --disable-rpath do not embed shared library search path in
1496 --disable-spinlocks do not use spinlocks
1497 --enable-debug build with debugging symbols (-g)
1498 --enable-profiling build with profiling enabled
1499 --enable-coverage build with coverage testing instrumentation
1500 --enable-dtrace build with DTrace support
1501 --enable-depend turn on automatic dependency tracking
1502 --enable-cassert enable assertion checks (for debugging)
1503 --disable-thread-safety disable thread-safety in client libraries
1504 --disable-largefile omit support for large files
1505 --disable-float4-byval disable float4 passed by value
1506 --disable-float8-byval disable float8 passed by value
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-template=NAME override operating system template
1512 --with-includes=DIRS look for additional header files in DIRS
1513 --with-libraries=DIRS look for additional libraries in DIRS
1514 --with-libs=DIRS alternative spelling of --with-libraries
1515 --with-pgport=PORTNUM set default port number [5432]
1516 --with-blocksize=BLOCKSIZE
1517 set table block size in kB [8]
1518 --with-segsize=SEGSIZE set table segment size in GB [1]
1519 --with-wal-blocksize=BLOCKSIZE
1520 set WAL block size in kB [8]
1521 --with-wal-segsize=SEGSIZE
1522 set WAL segment size in MB [16]
1523 --with-CC=CMD set compiler (deprecated)
1524 --with-tcl build Tcl modules (PL/Tcl)
1525 --with-tclconfig=DIR tclConfig.sh is in DIR
1526 --with-perl build Perl modules (PL/Perl)
1527 --with-python build Python modules (PL/Python)
1528 --with-gssapi build with GSSAPI support
1529 --with-krb5 build with Kerberos 5 support
1530 --with-krb-srvnam=NAME default service principal name in Kerberos
1532 --with-pam build with PAM support
1533 --with-ldap build with LDAP support
1534 --with-bonjour build with Bonjour support
1535 --with-openssl build with OpenSSL support
1536 --without-readline do not use GNU Readline nor BSD Libedit for editing
1537 --with-libedit-preferred
1538 prefer BSD Libedit over GNU Readline
1539 --with-ossp-uuid use OSSP UUID library when building
1541 --with-libxml build with XML support
1542 --with-libxslt use XSLT support when building contrib/xml2
1543 --with-system-tzdata=DIR
1544 use system time zone data in DIR
1545 --without-zlib do not use Zlib
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 LDFLAGS_EX extra linker flags for linking executables only
1558 LDFLAGS_SL extra linker flags for linking shared libraries only
1560 location of DocBook stylesheets
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to <pgsql-bugs@postgresql.org>.
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1595 .) # We are building in place.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1628 PostgreSQL configure 9.1devel
1629 generated by GNU Autoconf 2.63
1631 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1632 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1636 Copyright (c) 1996-2011, PostgreSQL Global Development Group
1640 cat >config.log <<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1644 It was created by PostgreSQL $as_me 9.1devel, which was
1645 generated by GNU Autoconf 2.63. Invocation command line was
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1667 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1670 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1671 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1672 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 $as_echo "PATH: $as_dir"
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_must_keep_next=false
1711 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713 | -silent | --silent | --silen | --sile | --sil)
1716 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722 if test $ac_must_keep_next = true; then
1723 ac_must_keep_next=false # Got value, back to normal.
1726 *=* | --config-cache | -C | -disable-* | --disable-* \
1727 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729 | -with-* | --with-* | -without-* | --without-* | --x)
1730 case "$ac_configure_args0 " in
1731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734 -* ) ac_must_keep_next=true ;;
1737 ac_configure_args="$ac_configure_args '$ac_arg'"
1742 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log. We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1761 # The following way of writing the cache mishandles newlines in values,
1763 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764 eval ac_val=\$$ac_var
1768 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772 _ | IFS | as_nl) ;; #(
1773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1774 *) $as_unset $ac_var ;;
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 $as_echo "$ac_var='\''$ac_val'\''"
1809 if test -n "$ac_subst_files"; then
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1816 for ac_var in $ac_subst_files
1818 eval ac_val=\$$ac_var
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 $as_echo "$ac_var='\''$ac_val'\''"
1827 if test -s confdefs.h; then
1837 test "$ac_signal" != 0 &&
1838 $as_echo "$as_me: caught signal $ac_signal"
1839 $as_echo "$as_me: exit $exit_status"
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer an explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 ac_site_file1=$CONFIG_SITE
1886 elif test "x$prefix" != xNONE; then
1887 ac_site_file1=$prefix/share/config.site
1888 ac_site_file2=$prefix/etc/config.site
1890 ac_site_file1=$ac_default_prefix/share/config.site
1891 ac_site_file2=$ac_default_prefix/etc/config.site
1893 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1895 test "x$ac_site_file" = xNONE && continue
1896 if test -r "$ac_site_file"; then
1897 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 $as_echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 $as_echo "$as_me: creating cache $cache_file" >&6;}
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 # differences in whitespace do not lead to failure.
1942 ac_old_val_w=`echo x $ac_old_val`
1943 ac_new_val_w=`echo x $ac_new_val`
1944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1945 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 ac_cache_corrupted=:
1949 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1950 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1951 eval $ac_var=\$ac_old_val
1953 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1954 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1955 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1956 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1959 # Pass precious variables to config.status.
1960 if test "$ac_new_set" = set; then
1962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 *) ac_arg=$ac_var=$ac_new_val ;;
1965 case " $ac_configure_args " in
1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 if $ac_cache_corrupted; then
1972 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1974 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017 for ac_dir in config "$srcdir"/config; do
2018 if test -f "$ac_dir/install-sh"; then
2020 ac_install_sh="$ac_aux_dir/install-sh -c"
2022 elif test -f "$ac_dir/install.sh"; then
2024 ac_install_sh="$ac_aux_dir/install.sh -c"
2026 elif test -f "$ac_dir/shtool"; then
2028 ac_install_sh="$ac_aux_dir/shtool install -c"
2032 if test -z "$ac_aux_dir"; then
2033 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2034 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2035 { (exit 1); exit 1; }; }
2038 # These three variables are undocumented and unsupported,
2039 # and are intended to be withdrawn in a future Autoconf release.
2040 # They can cause serious problems if a builder's source tree is in a directory
2041 # whose full name contains unusual characters.
2042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2048 configure_args=$ac_configure_args
2052 cat >>confdefs.h <<_ACEOF
2053 #define PG_VERSION "$PACKAGE_VERSION"
2056 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2059 cat >>confdefs.h <<_ACEOF
2060 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
2070 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2071 $as_echo_n "checking build system type... " >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073 $as_echo_n "(cached) " >&6
2075 ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 $as_echo "$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2092 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
2097 ac_save_IFS=$IFS; IFS='-'
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2111 $as_echo_n "checking host system type... " >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113 $as_echo_n "(cached) " >&6
2115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2125 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 $as_echo "$ac_cv_host" >&6; }
2129 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
2134 ac_save_IFS=$IFS; IFS='-'
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2149 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2150 $as_echo_n "checking which template to use... " >&6; }
2155 # Check whether --with-template was given.
2156 if test "${with_template+set}" = set; then
2157 withval=$with_template;
2160 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2161 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2166 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2167 { (exit 1); exit 1; }; }
2172 list) echo; ls "$srcdir/src/template"; exit;;
2173 *) if test -f "$srcdir/src/template/$with_template" ; then
2176 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2177 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2178 { (exit 1); exit 1; }; }
2187 # --with-template not given
2190 aix*) template=aix ;;
2191 bsdi*) template=bsdi ;;
2192 cygwin*) template=cygwin ;;
2193 darwin*) template=darwin ;;
2194 dgux*) template=dgux ;;
2195 freebsd*) template=freebsd ;;
2196 hpux*) template=hpux ;;
2197 irix*) template=irix ;;
2198 linux*|gnu*|k*bsd*-gnu)
2200 mingw*) template=win32 ;;
2201 netbsd*) template=netbsd ;;
2202 nextstep*) template=nextstep ;;
2203 openbsd*) template=openbsd ;;
2204 osf*) template=osf ;;
2205 sco*) template=sco ;;
2206 solaris*) template=solaris ;;
2207 sunos*) template=sunos4 ;;
2209 case $host_vendor in
2210 univel) template=univel ;;
2212 sysv4*) template=svr4 ;;
2213 sysv5*) template=unixware ;;
2214 ultrix*) template=ultrix4 ;;
2217 if test x"$template" = x"" ; then
2218 { { $as_echo "$as_me:$LINENO: error:
2219 *******************************************************************
2220 PostgreSQL has apparently not been ported to your platform yet.
2221 To try a manual configuration, look into the src/template directory
2222 for a similar platform and use the '--with-template=' option.
2224 Please also contact <pgsql-bugs@postgresql.org> to see about
2225 rectifying this. Include the above 'checking host system type...'
2227 *******************************************************************
2229 $as_echo "$as_me: error:
2230 *******************************************************************
2231 PostgreSQL has apparently not been ported to your platform yet.
2232 To try a manual configuration, look into the src/template directory
2233 for a similar platform and use the '--with-template=' option.
2235 Please also contact <pgsql-bugs@postgresql.org> to see about
2236 rectifying this. Include the above 'checking host system type...'
2238 *******************************************************************
2240 { (exit 1); exit 1; }; }
2248 { $as_echo "$as_me:$LINENO: result: $template" >&5
2249 $as_echo "$template" >&6; }
2254 # Initialize default assumption that we do not need separate assembly code
2255 # for TAS (test-and-set). This can be overridden by the template file
2256 # when it's executed.
2263 ## Command line options
2267 # Add non-standard directories to the include path
2272 # Check whether --with-includes was given.
2273 if test "${with_includes+set}" = set; then
2274 withval=$with_includes;
2277 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2278 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2279 { (exit 1); exit 1; }; }
2282 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2283 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2284 { (exit 1); exit 1; }; }
2297 # Add non-standard directories to the library search path
2302 # Check whether --with-libraries was given.
2303 if test "${with_libraries+set}" = set; then
2304 withval=$with_libraries;
2307 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2308 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2309 { (exit 1); exit 1; }; }
2312 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2313 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2314 { (exit 1); exit 1; }; }
2317 LIBRARY_DIRS=$withval
2328 # Check whether --with-libs was given.
2329 if test "${with_libs+set}" = set; then
2333 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2334 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2335 { (exit 1); exit 1; }; }
2338 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2339 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2340 { (exit 1); exit 1; }; }
2343 LIBRARY_DIRS=$withval
2353 # 64-bit integer date/time storage: enabled by default.
2355 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2356 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2359 # Check whether --enable-integer-datetimes was given.
2360 if test "${enable_integer_datetimes+set}" = set; then
2361 enableval=$enable_integer_datetimes;
2365 cat >>confdefs.h <<\_ACEOF
2366 #define USE_INTEGER_DATETIMES 1
2374 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2375 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2376 { (exit 1); exit 1; }; }
2381 enable_integer_datetimes=yes
2383 cat >>confdefs.h <<\_ACEOF
2384 #define USE_INTEGER_DATETIMES 1
2390 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2391 $as_echo "$enable_integer_datetimes" >&6; }
2397 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2398 $as_echo_n "checking whether NLS is wanted... " >&6; }
2401 # Check whether --enable-nls was given.
2402 if test "${enable_nls+set}" = set; then
2403 enableval=$enable_nls;
2413 WANTED_LANGUAGES=$enableval
2423 if test "$enable_nls" = yes; then
2425 cat >>confdefs.h <<\_ACEOF
2426 #define ENABLE_NLS 1
2431 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2432 $as_echo "$enable_nls" >&6; }
2437 # Default port number (--with-pgport), default 5432
2439 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2440 $as_echo_n "checking for default port number... " >&6; }
2444 # Check whether --with-pgport was given.
2445 if test "${with_pgport+set}" = set; then
2446 withval=$with_pgport;
2449 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2450 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2451 { (exit 1); exit 1; }; }
2454 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2455 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2456 { (exit 1); exit 1; }; }
2459 default_port=$withval
2468 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2469 $as_echo "$default_port" >&6; }
2470 # Need both of these because some places want an integer and some a string
2472 cat >>confdefs.h <<_ACEOF
2473 #define DEF_PGPORT ${default_port}
2477 cat >>confdefs.h <<_ACEOF
2478 #define DEF_PGPORT_STR "${default_port}"
2484 # Option to disable shared libraries
2488 # Check whether --enable-shared was given.
2489 if test "${enable_shared+set}" = set; then
2490 enableval=$enable_shared;
2499 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2500 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2501 { (exit 1); exit 1; }; }
2514 # '-rpath'-like feature can be disabled
2518 # Check whether --enable-rpath was given.
2519 if test "${enable_rpath+set}" = set; then
2520 enableval=$enable_rpath;
2529 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2530 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2531 { (exit 1); exit 1; }; }
2548 # Check whether --enable-spinlocks was given.
2549 if test "${enable_spinlocks+set}" = set; then
2550 enableval=$enable_spinlocks;
2559 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2560 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2561 { (exit 1); exit 1; }; }
2566 enable_spinlocks=yes
2573 # --enable-debug adds -g to compiler flags
2577 # Check whether --enable-debug was given.
2578 if test "${enable_debug+set}" = set; then
2579 enableval=$enable_debug;
2588 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2589 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2590 { (exit 1); exit 1; }; }
2603 # --enable-profiling enables gcc profiling
2607 # Check whether --enable-profiling was given.
2608 if test "${enable_profiling+set}" = set; then
2609 enableval=$enable_profiling;
2618 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2619 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2620 { (exit 1); exit 1; }; }
2633 # --enable-coverage enables generation of code coverage metrics with gcov
2637 # Check whether --enable-coverage was given.
2638 if test "${enable_coverage+set}" = set; then
2639 enableval=$enable_coverage;
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_GCOV+set}" = set; then
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$GCOV"; then
2652 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_GCOV="$ac_prog"
2662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 GCOV=$ac_cv_prog_GCOV
2672 if test -n "$GCOV"; then
2673 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2674 $as_echo "$GCOV" >&6; }
2676 { $as_echo "$as_me:$LINENO: result: no" >&5
2677 $as_echo "no" >&6; }
2681 test -n "$GCOV" && break
2684 if test -z "$GCOV"; then
2685 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2686 $as_echo "$as_me: error: gcov not found" >&2;}
2687 { (exit 1); exit 1; }; }
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_LCOV+set}" = set; then
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$LCOV"; then
2699 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_LCOV="$ac_prog"
2709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 LCOV=$ac_cv_prog_LCOV
2719 if test -n "$LCOV"; then
2720 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2721 $as_echo "$LCOV" >&6; }
2723 { $as_echo "$as_me:$LINENO: result: no" >&5
2724 $as_echo "no" >&6; }
2728 test -n "$LCOV" && break
2731 if test -z "$LCOV"; then
2732 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2733 $as_echo "$as_me: error: lcov not found" >&2;}
2734 { (exit 1); exit 1; }; }
2736 for ac_prog in genhtml
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy $ac_prog; ac_word=$2
2740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_GENHTML+set}" = set; then
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$GENHTML"; then
2746 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_GENHTML="$ac_prog"
2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 GENHTML=$ac_cv_prog_GENHTML
2766 if test -n "$GENHTML"; then
2767 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2768 $as_echo "$GENHTML" >&6; }
2770 { $as_echo "$as_me:$LINENO: result: no" >&5
2771 $as_echo "no" >&6; }
2775 test -n "$GENHTML" && break
2778 if test -z "$GENHTML"; then
2779 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2780 $as_echo "$as_me: error: genhtml not found" >&2;}
2781 { (exit 1); exit 1; }; }
2788 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2789 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2790 { (exit 1); exit 1; }; }
2807 # Check whether --enable-dtrace was given.
2808 if test "${enable_dtrace+set}" = set; then
2809 enableval=$enable_dtrace;
2813 cat >>confdefs.h <<\_ACEOF
2814 #define ENABLE_DTRACE 1
2817 for ac_prog in dtrace
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_DTRACE+set}" = set; then
2824 $as_echo_n "(cached) " >&6
2826 if test -n "$DTRACE"; then
2827 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_DTRACE="$ac_prog"
2837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 DTRACE=$ac_cv_prog_DTRACE
2847 if test -n "$DTRACE"; then
2848 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2849 $as_echo "$DTRACE" >&6; }
2851 { $as_echo "$as_me:$LINENO: result: no" >&5
2852 $as_echo "no" >&6; }
2856 test -n "$DTRACE" && break
2859 if test -z "$DTRACE"; then
2860 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2861 $as_echo "$as_me: error: dtrace not found" >&2;}
2862 { (exit 1); exit 1; }; }
2870 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2871 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2872 { (exit 1); exit 1; }; }
2887 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2888 $as_echo_n "checking for block size... " >&6; }
2892 # Check whether --with-blocksize was given.
2893 if test "${with_blocksize+set}" = set; then
2894 withval=$with_blocksize;
2897 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2898 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2899 { (exit 1); exit 1; }; }
2902 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2903 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2904 { (exit 1); exit 1; }; }
2916 case ${blocksize} in
2923 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2924 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2925 { (exit 1); exit 1; }; }
2927 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2928 $as_echo "${blocksize}kB" >&6; }
2931 cat >>confdefs.h <<_ACEOF
2932 #define BLCKSZ ${BLCKSZ}
2937 # Relation segment size
2939 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2940 $as_echo_n "checking for segment size... " >&6; }
2944 # Check whether --with-segsize was given.
2945 if test "${with_segsize+set}" = set; then
2946 withval=$with_segsize;
2949 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2950 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2951 { (exit 1); exit 1; }; }
2954 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2955 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2956 { (exit 1); exit 1; }; }
2968 # this expression is set up to avoid unnecessary integer overflow
2969 # blocksize is already guaranteed to be a factor of 1024
2970 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2971 test $? -eq 0 || exit 1
2972 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2973 $as_echo "${segsize}GB" >&6; }
2976 cat >>confdefs.h <<_ACEOF
2977 #define RELSEG_SIZE ${RELSEG_SIZE}
2984 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2985 $as_echo_n "checking for WAL block size... " >&6; }
2989 # Check whether --with-wal-blocksize was given.
2990 if test "${with_wal_blocksize+set}" = set; then
2991 withval=$with_wal_blocksize;
2994 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2995 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2996 { (exit 1); exit 1; }; }
2999 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3001 { (exit 1); exit 1; }; }
3004 wal_blocksize=$withval
3013 case ${wal_blocksize} in
3014 1) XLOG_BLCKSZ=1024;;
3015 2) XLOG_BLCKSZ=2048;;
3016 4) XLOG_BLCKSZ=4096;;
3017 8) XLOG_BLCKSZ=8192;;
3018 16) XLOG_BLCKSZ=16384;;
3019 32) XLOG_BLCKSZ=32768;;
3020 64) XLOG_BLCKSZ=65536;;
3021 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3022 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3023 { (exit 1); exit 1; }; }
3025 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3026 $as_echo "${wal_blocksize}kB" >&6; }
3029 cat >>confdefs.h <<_ACEOF
3030 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3037 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3038 $as_echo_n "checking for WAL segment size... " >&6; }
3042 # Check whether --with-wal-segsize was given.
3043 if test "${with_wal_segsize+set}" = set; then
3044 withval=$with_wal_segsize;
3047 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3048 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3049 { (exit 1); exit 1; }; }
3052 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3053 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3054 { (exit 1); exit 1; }; }
3057 wal_segsize=$withval
3066 case ${wal_segsize} in
3074 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3075 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3076 { (exit 1); exit 1; }; }
3078 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3079 $as_echo "${wal_segsize}MB" >&6; }
3082 cat >>confdefs.h <<_ACEOF
3083 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3091 # For historical reasons you can also use --with-CC to specify the C compiler
3092 # to use, although the standard way to do this is to set the CC environment
3097 # Check whether --with-CC was given.
3098 if test "${with_CC+set}" = set; then
3102 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3103 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3104 { (exit 1); exit 1; }; }
3107 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3108 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3109 { (exit 1); exit 1; }; }
3121 aix) pgac_cc_list="gcc xlc";;
3122 irix) pgac_cc_list="cc";; # no gcc
3123 *) pgac_cc_list="gcc cc";;
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 if test -n "$ac_tool_prefix"; then
3132 for ac_prog in $pgac_cc_list
3134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3166 { $as_echo "$as_me:$LINENO: result: no" >&5
3167 $as_echo "no" >&6; }
3171 test -n "$CC" && break
3174 if test -z "$CC"; then
3176 for ac_prog in $pgac_cc_list
3178 # Extract the first word of "$ac_prog", so it can be a program name with args.
3179 set dummy $ac_prog; ac_word=$2
3180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_ac_ct_CC="$ac_prog"
3196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3215 test -n "$ac_ct_CC" && break
3218 if test "x$ac_ct_CC" = x; then
3221 case $cross_compiling:$ac_tool_warned in
3223 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225 ac_tool_warned=yes ;;
3232 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&5
3236 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details." >&2;}
3238 { (exit 1); exit 1; }; }; }
3240 # Provide some information about the compiler.
3241 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3244 { (ac_try="$ac_compiler --version >&5"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250 $as_echo "$ac_try_echo") >&5
3251 (eval "$ac_compiler --version >&5") 2>&5
3253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }
3255 { (ac_try="$ac_compiler -v >&5"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3261 $as_echo "$ac_try_echo") >&5
3262 (eval "$ac_compiler -v >&5") 2>&5
3264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 { (ac_try="$ac_compiler -V >&5"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272 $as_echo "$ac_try_echo") >&5
3273 (eval "$ac_compiler -V >&5") 2>&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3293 ac_clean_files_save=$ac_clean_files
3294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295 # Try to create an executable without -o first, disregard a.out.
3296 # It will help us diagnose broken compilers, and finding out an intuition
3298 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3302 # The possible output files:
3303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306 for ac_file in $ac_files
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 if { (ac_try="$ac_link_default"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_link_default") 2>&5
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3331 for ac_file in $ac_files ''
3333 test -f "$ac_file" || continue
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338 # We found the default executable, but exeext='' is most
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 if test -z "$ac_file"; then
3365 $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&5
3372 $as_echo "$as_me: error: C compiler cannot create executables
3373 See \`config.log' for more details." >&2;}
3374 { (exit 77); exit 77; }; }; }
3377 ac_exeext=$ac_cv_exeext
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3382 $as_echo_n "checking whether the C compiler works... " >&6; }
3383 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3384 # If not cross compiling, check that we can run a simple program.
3385 if test "$cross_compiling" != yes; then
3386 if { ac_try='./$ac_file'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392 $as_echo "$ac_try_echo") >&5
3393 (eval "$ac_try") 2>&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3399 if test "$cross_compiling" = maybe; then
3402 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details." >&5
3407 $as_echo "$as_me: error: cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details." >&2;}
3410 { (exit 1); exit 1; }; }; }
3414 { $as_echo "$as_me:$LINENO: result: yes" >&5
3415 $as_echo "yes" >&6; }
3417 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 # Check that the compiler produces executables we can run. If not, either
3420 # the compiler is broken, or we cross compile.
3421 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3422 $as_echo_n "checking whether we are cross compiling... " >&6; }
3423 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3424 $as_echo "$cross_compiling" >&6; }
3426 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3427 $as_echo_n "checking for suffix of executables... " >&6; }
3428 if { (ac_try="$ac_link"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3434 $as_echo "$ac_try_echo") >&5
3435 (eval "$ac_link") 2>&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; then
3439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3441 # work properly (i.e., refer to `conftest.exe'), while it won't with
3443 for ac_file in conftest.exe conftest conftest.*; do
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details." >&5
3457 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3458 See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }; }
3462 rm -f conftest$ac_cv_exeext
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3464 $as_echo "$ac_cv_exeext" >&6; }
3466 rm -f conftest.$ac_ext
3467 EXEEXT=$ac_cv_exeext
3469 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3470 $as_echo_n "checking for suffix of object files... " >&6; }
3471 if test "${ac_cv_objext+set}" = set; then
3472 $as_echo_n "(cached) " >&6
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3489 rm -f conftest.o conftest.obj
3490 if { (ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_compile") 2>&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; then
3501 for ac_file in conftest.o conftest.obj conftest.*; do
3502 test -f "$ac_file" || continue;
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details." >&5
3517 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3531 $as_echo_n "(cached) " >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3582 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3583 if test $ac_compiler_gnu = yes; then
3588 ac_test_CFLAGS=${CFLAGS+set}
3589 ac_save_CFLAGS=$CFLAGS
3590 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3591 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3592 if test "${ac_cv_prog_cc_g+set}" = set; then
3593 $as_echo_n "(cached) " >&6
3595 ac_save_c_werror_flag=$ac_c_werror_flag
3596 ac_c_werror_flag=yes
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3624 grep -v '^ *+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_compile") 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } && {
3668 test -z "$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 } && test -s conftest.$ac_objext; then
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3693 rm -f conftest.$ac_objext
3694 if { (ac_try="$ac_compile"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700 $as_echo "$ac_try_echo") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3728 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3729 $as_echo "$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3739 if test "$GCC" = yes; then
3745 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3747 if test "${ac_cv_prog_cc_c89+set}" = set; then
3748 $as_echo_n "(cached) " >&6
3750 ac_cv_prog_cc_c89=no
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3776 s = g (p, va_arg (v,int));
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 CC="$ac_save_CC $ac_arg"
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821 (eval "$ac_compile") 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } && {
3828 test -z "$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 } && test -s conftest.$ac_objext; then
3831 ac_cv_prog_cc_c89=$ac_arg
3833 $as_echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3839 rm -f core conftest.err conftest.$ac_objext
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3842 rm -f conftest.$ac_ext
3847 case "x$ac_cv_prog_cc_c89" in
3849 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3850 $as_echo "none needed" >&6; } ;;
3852 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3853 $as_echo "unsupported" >&6; } ;;
3855 CC="$CC $ac_cv_prog_cc_c89"
3856 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3857 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3869 # but has idiosyncrasies of its own. We assume icc will define
3870 # __INTEL_COMPILER regardless of CFLAGS.
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3882 #ifndef __INTEL_COMPILER
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3909 $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 # Check if it's Sun Studio compiler. We assume that
3918 # __SUNPRO_C will be defined for Sun Studio compilers
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3936 rm -f conftest.$ac_objext
3937 if { (ac_try="$ac_compile"
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3943 $as_echo "$ac_try_echo") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3956 $as_echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 . "$srcdir/src/template/$template" || exit
3973 # CFLAGS are selected so:
3974 # If the user specifies something in the environment, that is used.
3975 # else: If the template file set something, that is used.
3976 # else: If coverage was enabled, don't set anything.
3977 # else: If the compiler is GCC, then we use -O2.
3978 # else: If the compiler is something else, then we use -O, unless debugging.
3980 if test "$ac_env_CFLAGS_set" = set; then
3981 CFLAGS=$ac_env_CFLAGS_value
3982 elif test "${CFLAGS+set}" = set; then
3983 : # (keep what template set)
3984 elif test "$enable_coverage" = yes; then
3985 : # no optimization by default
3986 elif test "$GCC" = yes; then
3989 # if the user selected debug mode, don't use -O
3990 if test "$enable_debug" != yes; then
3995 # Some versions of GCC support some additional useful warning flags.
3996 # Check whether they are supported, and add them to CFLAGS if so.
3997 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3998 # but has its own. Also check other compiler-specific flags here.
4000 if test "$GCC" = yes -a "$ICC" = no; then
4001 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4002 # These work in some but not all gcc versions
4003 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4004 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4005 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4006 $as_echo_n "(cached) " >&6
4008 pgac_save_CFLAGS=$CFLAGS
4009 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4010 cat >conftest.$ac_ext <<_ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4032 $as_echo "$ac_try_echo") >&5
4033 (eval "$ac_compile") 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } && {
4040 test -z "$ac_c_werror_flag" ||
4041 test ! -s conftest.err
4042 } && test -s conftest.$ac_objext; then
4043 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4045 $as_echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 CFLAGS="$pgac_save_CFLAGS"
4054 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4055 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4056 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4057 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4060 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4061 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4062 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4063 $as_echo_n "(cached) " >&6
4065 pgac_save_CFLAGS=$CFLAGS
4066 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4089 $as_echo "$ac_try_echo") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4102 $as_echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 pgac_cv_prog_cc_cflags__Wendif_labels=no
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 CFLAGS="$pgac_save_CFLAGS"
4111 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4112 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4113 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4114 CFLAGS="$CFLAGS -Wendif-labels"
4117 # Disable strict-aliasing rules; needed for gcc 3.3+
4118 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4119 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4120 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4121 $as_echo_n "(cached) " >&6
4123 pgac_save_CFLAGS=$CFLAGS
4124 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4158 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 CFLAGS="$pgac_save_CFLAGS"
4169 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4170 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4171 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4172 CFLAGS="$CFLAGS -fno-strict-aliasing"
4175 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4176 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4177 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4178 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4179 $as_echo_n "(cached) " >&6
4181 pgac_save_CFLAGS=$CFLAGS
4182 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4198 rm -f conftest.$ac_objext
4199 if { (ac_try="$ac_compile"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4205 $as_echo "$ac_try_echo") >&5
4206 (eval "$ac_compile") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } && {
4213 test -z "$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 } && test -s conftest.$ac_objext; then
4216 pgac_cv_prog_cc_cflags__fwrapv=yes
4218 $as_echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 pgac_cv_prog_cc_cflags__fwrapv=no
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 CFLAGS="$pgac_save_CFLAGS"
4227 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4228 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4229 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4230 CFLAGS="$CFLAGS -fwrapv"
4233 elif test "$ICC" = yes; then
4234 # Intel's compiler has a bug/misoptimization in checking for
4235 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4236 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4237 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4238 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4239 $as_echo_n "(cached) " >&6
4241 pgac_save_CFLAGS=$CFLAGS
4242 CFLAGS="$pgac_save_CFLAGS -mp1"
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4258 rm -f conftest.$ac_objext
4259 if { (ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4265 $as_echo "$ac_try_echo") >&5
4266 (eval "$ac_compile") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && {
4273 test -z "$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 } && test -s conftest.$ac_objext; then
4276 pgac_cv_prog_cc_cflags__mp1=yes
4278 $as_echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 pgac_cv_prog_cc_cflags__mp1=no
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 CFLAGS="$pgac_save_CFLAGS"
4287 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4288 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4289 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4290 CFLAGS="$CFLAGS -mp1"
4293 # Make sure strict aliasing is off (though this is said to be the default)
4294 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4295 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4296 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4299 pgac_save_CFLAGS=$CFLAGS
4300 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4323 $as_echo "$ac_try_echo") >&5
4324 (eval "$ac_compile") 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && {
4331 test -z "$ac_c_werror_flag" ||
4332 test ! -s conftest.err
4333 } && test -s conftest.$ac_objext; then
4334 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4336 $as_echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 CFLAGS="$pgac_save_CFLAGS"
4345 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4346 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4347 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4348 CFLAGS="$CFLAGS -fno-strict-aliasing"
4351 elif test "$PORTNAME" = "aix"; then
4352 # AIX's xlc has to have strict aliasing turned off too
4353 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4354 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4355 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4358 pgac_save_CFLAGS=$CFLAGS
4359 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4375 rm -f conftest.$ac_objext
4376 if { (ac_try="$ac_compile"
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4382 $as_echo "$ac_try_echo") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 pgac_cv_prog_cc_cflags__qnoansialias=yes
4395 $as_echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 pgac_cv_prog_cc_cflags__qnoansialias=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 CFLAGS="$pgac_save_CFLAGS"
4404 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4405 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4406 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4407 CFLAGS="$CFLAGS -qnoansialias"
4412 # supply -g if --enable-debug
4413 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4417 # enable code coverage if --enable-coverage
4418 if test "$enable_coverage" = yes; then
4419 if test "$GCC" = yes; then
4420 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4422 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4423 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4424 { (exit 1); exit 1; }; }
4428 # enable profiling if --enable-profiling
4429 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4430 if test "$GCC" = yes; then
4432 cat >>confdefs.h <<\_ACEOF
4433 #define PROFILE_PID_DIR 1
4436 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4438 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4439 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4440 { (exit 1); exit 1; }; }
4444 # We already have this in Makefile.win32, but configure needs it too
4445 if test "$PORTNAME" = "win32"; then
4446 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4449 # Check if the compiler still works with the template settings
4450 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4451 $as_echo_n "checking whether the C compiler still works... " >&6; }
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 conftest$ac_exeext
4468 if { (ac_try="$ac_link"
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_link") 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_exeext && {
4485 test "$cross_compiling" = yes ||
4486 $as_test_x conftest$ac_exeext
4488 { $as_echo "$as_me:$LINENO: result: yes" >&5
4489 $as_echo "yes" >&6; }
4491 $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4496 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4497 $as_echo "$as_me: error: cannot proceed" >&2;}
4498 { (exit 1); exit 1; }; }
4501 rm -rf conftest.dSYM
4502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4503 conftest$ac_exeext conftest.$ac_ext
4505 # Defend against gcc -ffast-math
4506 if test "$GCC" = yes; then
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4517 #ifdef __FAST_MATH__
4524 rm -f conftest.$ac_objext
4525 if { (ac_try="$ac_compile"
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4531 $as_echo "$ac_try_echo") >&5
4532 (eval "$ac_compile") 2>conftest.er1
4534 grep -v '^ *+' conftest.er1 >conftest.err
4536 cat conftest.err >&5
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_c_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest.$ac_objext; then
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4548 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4549 { (exit 1); exit 1; }; }
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4561 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4562 # On Suns, sometimes $CPP names a directory.
4563 if test -n "$CPP" && test -d "$CPP"; then
4566 if test -z "$CPP"; then
4567 if test "${ac_cv_prog_CPP+set}" = set; then
4568 $as_echo_n "(cached) " >&6
4570 # Double quotes because CPP needs to be expanded
4571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4574 for ac_c_preproc_warn_flag in '' yes
4576 # Use a header file that comes with gcc, so configuring glibc
4577 # with a fresh cross-compiler works.
4578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4579 # <limits.h> exists even on freestanding compilers.
4580 # On the NeXT, cc -E runs the code through the compiler's parser,
4581 # not just through cpp. "Syntax error" is here to catch this case.
4582 cat >conftest.$ac_ext <<_ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4589 # include <limits.h>
4591 # include <assert.h>
4595 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601 $as_echo "$ac_try_echo") >&5
4602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } >/dev/null && {
4609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4614 $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 # Broken: fails on valid input.
4621 rm -f conftest.err conftest.$ac_ext
4623 # OK, works on sane cases. Now check whether nonexistent headers
4624 # can be detected and how.
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 #include <ac_nonexistent.h>
4633 if { (ac_try="$ac_cpp conftest.$ac_ext"
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4639 $as_echo "$ac_try_echo") >&5
4640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4642 grep -v '^ *+' conftest.er1 >conftest.err
4644 cat conftest.err >&5
4645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null && {
4647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4648 test ! -s conftest.err
4650 # Broken: success on invalid input.
4653 $as_echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 # Passes both tests.
4661 rm -f conftest.err conftest.$ac_ext
4664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665 rm -f conftest.err conftest.$ac_ext
4666 if $ac_preproc_ok; then
4678 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4679 $as_echo "$CPP" >&6; }
4681 for ac_c_preproc_warn_flag in '' yes
4683 # Use a header file that comes with gcc, so configuring glibc
4684 # with a fresh cross-compiler works.
4685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 # <limits.h> exists even on freestanding compilers.
4687 # On the NeXT, cc -E runs the code through the compiler's parser,
4688 # not just through cpp. "Syntax error" is here to catch this case.
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4696 # include <limits.h>
4698 # include <assert.h>
4702 if { (ac_try="$ac_cpp conftest.$ac_ext"
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4708 $as_echo "$ac_try_echo") >&5
4709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4711 grep -v '^ *+' conftest.er1 >conftest.err
4713 cat conftest.err >&5
4714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } >/dev/null && {
4716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4721 $as_echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4724 # Broken: fails on valid input.
4728 rm -f conftest.err conftest.$ac_ext
4730 # OK, works on sane cases. Now check whether nonexistent headers
4731 # can be detected and how.
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <ac_nonexistent.h>
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4749 grep -v '^ *+' conftest.er1 >conftest.err
4751 cat conftest.err >&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4757 # Broken: success on invalid input.
4760 $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 # Passes both tests.
4768 rm -f conftest.err conftest.$ac_ext
4771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772 rm -f conftest.err conftest.$ac_ext
4773 if $ac_preproc_ok; then
4776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4779 See \`config.log' for more details." >&5
4780 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4781 See \`config.log' for more details." >&2;}
4782 { (exit 1); exit 1; }; }; }
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 # Set up TAS assembly code if needed; the template file has now had its
4796 # chance to request this.
4798 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4801 if test "$need_tas" = yes ; then
4810 # Automatic dependency tracking
4814 # Check whether --enable-depend was given.
4815 if test "${enable_depend+set}" = set; then
4816 enableval=$enable_depend;
4825 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4826 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4827 { (exit 1); exit 1; }; }
4841 # Enable assert checks
4845 # Check whether --enable-cassert was given.
4846 if test "${enable_cassert+set}" = set; then
4847 enableval=$enable_cassert;
4851 cat >>confdefs.h <<\_ACEOF
4852 #define USE_ASSERT_CHECKING 1
4860 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4861 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4862 { (exit 1); exit 1; }; }
4875 # Include directories
4878 IFS="${IFS}${PATH_SEPARATOR}"
4879 # SRCH_INC comes from the template file
4880 for dir in $with_includes $SRCH_INC; do
4881 if test -d "$dir"; then
4882 INCLUDES="$INCLUDES -I$dir"
4884 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4885 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4893 # Library directories
4896 IFS="${IFS}${PATH_SEPARATOR}"
4897 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4898 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4899 if test -d "$dir"; then
4900 LIBDIRS="$LIBDIRS -L$dir"
4902 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4903 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4909 # Enable thread-safe client libraries
4911 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4912 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4915 # Check whether --enable-thread-safety was given.
4916 if test "${enable_thread_safety+set}" = set; then
4917 enableval=$enable_thread_safety;
4926 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4927 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4928 { (exit 1); exit 1; }; }
4933 enable_thread_safety=yes
4938 if test "$enable_thread_safety" = yes; then
4940 cat >>confdefs.h <<\_ACEOF
4941 #define ENABLE_THREAD_SAFETY 1
4945 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4946 $as_echo "$enable_thread_safety" >&6; }
4950 # Optionally build Tcl modules (PL/Tcl)
4952 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4953 $as_echo_n "checking whether to build with Tcl... " >&6; }
4957 # Check whether --with-tcl was given.
4958 if test "${with_tcl+set}" = set; then
4968 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4969 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4970 { (exit 1); exit 1; }; }
4980 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4981 $as_echo "$with_tcl" >&6; }
4984 # We see if the path to the Tcl/Tk configuration scripts is specified.
4985 # This will override the use of tclsh to find the paths to search.
4990 # Check whether --with-tclconfig was given.
4991 if test "${with_tclconfig+set}" = set; then
4992 withval=$with_tclconfig;
4995 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4996 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4997 { (exit 1); exit 1; }; }
5000 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5001 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5002 { (exit 1); exit 1; }; }
5014 # Optionally build Perl modules (PL/Perl)
5016 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5017 $as_echo_n "checking whether to build Perl modules... " >&6; }
5021 # Check whether --with-perl was given.
5022 if test "${with_perl+set}" = set; then
5032 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5033 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5034 { (exit 1); exit 1; }; }
5044 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5045 $as_echo "$with_perl" >&6; }
5049 # Optionally build Python modules (PL/Python)
5051 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5052 $as_echo_n "checking whether to build Python modules... " >&6; }
5056 # Check whether --with-python was given.
5057 if test "${with_python+set}" = set; then
5058 withval=$with_python;
5067 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5068 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5069 { (exit 1); exit 1; }; }
5079 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5080 $as_echo "$with_python" >&6; }
5086 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5087 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5091 # Check whether --with-gssapi was given.
5092 if test "${with_gssapi+set}" = set; then
5093 withval=$with_gssapi;
5098 cat >>confdefs.h <<\_ACEOF
5099 #define ENABLE_GSS 1
5102 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5109 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5110 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5111 { (exit 1); exit 1; }; }
5121 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5122 $as_echo "$with_gssapi" >&6; }
5128 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5129 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5133 # Check whether --with-krb5 was given.
5134 if test "${with_krb5+set}" = set; then
5140 cat >>confdefs.h <<\_ACEOF
5144 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5151 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5152 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5153 { (exit 1); exit 1; }; }
5163 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5164 $as_echo "$with_krb5" >&6; }
5172 # Kerberos configuration parameters
5177 # Check whether --with-krb-srvnam was given.
5178 if test "${with_krb_srvnam+set}" = set; then
5179 withval=$with_krb_srvnam;
5182 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5183 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5184 { (exit 1); exit 1; }; }
5187 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5188 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5189 { (exit 1); exit 1; }; }
5197 with_krb_srvnam="postgres"
5202 cat >>confdefs.h <<_ACEOF
5203 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5211 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5212 $as_echo_n "checking whether to build with PAM support... " >&6; }
5216 # Check whether --with-pam was given.
5217 if test "${with_pam+set}" = set; then
5222 cat >>confdefs.h <<\_ACEOF
5231 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5232 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5233 { (exit 1); exit 1; }; }
5243 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5244 $as_echo "$with_pam" >&6; }
5251 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5252 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5256 # Check whether --with-ldap was given.
5257 if test "${with_ldap+set}" = set; then
5262 cat >>confdefs.h <<\_ACEOF
5271 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5272 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5273 { (exit 1); exit 1; }; }
5283 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5284 $as_echo "$with_ldap" >&6; }
5291 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5292 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5296 # Check whether --with-bonjour was given.
5297 if test "${with_bonjour+set}" = set; then
5298 withval=$with_bonjour;
5302 cat >>confdefs.h <<\_ACEOF
5303 #define USE_BONJOUR 1
5311 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5312 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5313 { (exit 1); exit 1; }; }
5323 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5324 $as_echo "$with_bonjour" >&6; }
5331 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5332 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5336 # Check whether --with-openssl was given.
5337 if test "${with_openssl+set}" = set; then
5338 withval=$with_openssl;
5342 cat >>confdefs.h <<\_ACEOF
5351 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5352 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5353 { (exit 1); exit 1; }; }
5363 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5364 $as_echo "$with_openssl" >&6; }
5374 # Check whether --with-readline was given.
5375 if test "${with_readline+set}" = set; then
5376 withval=$with_readline;
5385 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5386 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5387 { (exit 1); exit 1; }; }
5397 # readline on MinGW has problems with backslashes in psql and other bugs.
5398 # This is particularly a problem with non-US code pages.
5399 # Therefore disable its use until we understand the cause. 2004-07-20
5400 if test "$PORTNAME" = "win32"; then
5401 if test "$with_readline" = yes; then
5402 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5403 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5415 # Check whether --with-libedit-preferred was given.
5416 if test "${with_libedit_preferred+set}" = set; then
5417 withval=$with_libedit_preferred;
5426 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5427 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5428 { (exit 1); exit 1; }; }
5433 with_libedit_preferred=no
5446 # Check whether --with-ossp-uuid was given.
5447 if test "${with_ossp_uuid+set}" = set; then
5448 withval=$with_ossp_uuid;
5457 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5458 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5459 { (exit 1); exit 1; }; }
5478 # Check whether --with-libxml was given.
5479 if test "${with_libxml+set}" = set; then
5480 withval=$with_libxml;
5484 cat >>confdefs.h <<\_ACEOF
5485 #define USE_LIBXML 1
5493 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5494 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5495 { (exit 1); exit 1; }; }
5506 if test "$with_libxml" = yes ; then
5507 for ac_prog in xml2-config
5509 # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5514 $as_echo_n "(cached) " >&6
5516 if test -n "$XML2_CONFIG"; then
5517 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_XML2_CONFIG="$ac_prog"
5527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5537 if test -n "$XML2_CONFIG"; then
5538 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5539 $as_echo "$XML2_CONFIG" >&6; }
5541 { $as_echo "$as_me:$LINENO: result: no" >&5
5542 $as_echo "no" >&6; }
5546 test -n "$XML2_CONFIG" && break
5549 if test -n "$XML2_CONFIG"; then
5550 for pgac_option in `$XML2_CONFIG --cflags`; do
5551 case $pgac_option in
5552 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5555 for pgac_option in `$XML2_CONFIG --libs`; do
5556 case $pgac_option in
5557 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5571 # Check whether --with-libxslt was given.
5572 if test "${with_libxslt+set}" = set; then
5573 withval=$with_libxslt;
5577 cat >>confdefs.h <<\_ACEOF
5578 #define USE_LIBXSLT 1
5586 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5587 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5588 { (exit 1); exit 1; }; }
5608 # Check whether --with-system-tzdata was given.
5609 if test "${with_system_tzdata+set}" = set; then
5610 withval=$with_system_tzdata;
5613 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5614 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5615 { (exit 1); exit 1; }; }
5618 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5619 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5620 { (exit 1); exit 1; }; }
5638 # Check whether --with-zlib was given.
5639 if test "${with_zlib+set}" = set; then
5649 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5650 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5651 { (exit 1); exit 1; }; }
5667 # Assume system is ELF if it predefines __ELF__ as 1,
5668 # otherwise believe host_os based default.
5670 freebsd1*|freebsd2*) elf=no;;
5671 freebsd3*|freebsd4*) elf=yes;;
5675 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5676 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5677 if test "${ac_cv_path_GREP+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5680 if test -z "$GREP"; then
5681 ac_path_GREP_found=false
5682 # Loop through the user's path and test for each of PROGNAME-LIST
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5687 test -z "$as_dir" && as_dir=.
5688 for ac_prog in grep ggrep; do
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5691 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5692 # Check for GNU ac_path_GREP and select it if it is found.
5693 # Check for GNU $ac_path_GREP
5694 case `"$ac_path_GREP" --version 2>&1` in
5696 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5699 $as_echo_n 0123456789 >"conftest.in"
5702 cat "conftest.in" "conftest.in" >"conftest.tmp"
5703 mv "conftest.tmp" "conftest.in"
5704 cp "conftest.in" "conftest.nl"
5705 $as_echo 'GREP' >> "conftest.nl"
5706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5708 ac_count=`expr $ac_count + 1`
5709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5710 # Best one so far, save it but keep looking for a better one
5711 ac_cv_path_GREP="$ac_path_GREP"
5712 ac_path_GREP_max=$ac_count
5714 # 10*(2^10) chars as input seems more than enough
5715 test $ac_count -gt 10 && break
5717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5720 $ac_path_GREP_found && break 3
5725 if test -z "$ac_cv_path_GREP"; then
5726 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5727 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5728 { (exit 1); exit 1; }; }
5731 ac_cv_path_GREP=$GREP
5735 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5736 $as_echo "$ac_cv_path_GREP" >&6; }
5737 GREP="$ac_cv_path_GREP"
5740 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5741 $as_echo_n "checking for egrep... " >&6; }
5742 if test "${ac_cv_path_EGREP+set}" = set; then
5743 $as_echo_n "(cached) " >&6
5745 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5746 then ac_cv_path_EGREP="$GREP -E"
5748 if test -z "$EGREP"; then
5749 ac_path_EGREP_found=false
5750 # Loop through the user's path and test for each of PROGNAME-LIST
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5755 test -z "$as_dir" && as_dir=.
5756 for ac_prog in egrep; do
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5759 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5760 # Check for GNU ac_path_EGREP and select it if it is found.
5761 # Check for GNU $ac_path_EGREP
5762 case `"$ac_path_EGREP" --version 2>&1` in
5764 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5767 $as_echo_n 0123456789 >"conftest.in"
5770 cat "conftest.in" "conftest.in" >"conftest.tmp"
5771 mv "conftest.tmp" "conftest.in"
5772 cp "conftest.in" "conftest.nl"
5773 $as_echo 'EGREP' >> "conftest.nl"
5774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5776 ac_count=`expr $ac_count + 1`
5777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5778 # Best one so far, save it but keep looking for a better one
5779 ac_cv_path_EGREP="$ac_path_EGREP"
5780 ac_path_EGREP_max=$ac_count
5782 # 10*(2^10) chars as input seems more than enough
5783 test $ac_count -gt 10 && break
5785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788 $ac_path_EGREP_found && break 3
5793 if test -z "$ac_cv_path_EGREP"; then
5794 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5795 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5796 { (exit 1); exit 1; }; }
5799 ac_cv_path_EGREP=$EGREP
5804 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5805 $as_echo "$ac_cv_path_EGREP" >&6; }
5806 EGREP="$ac_cv_path_EGREP"
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5821 $EGREP "yes" >/dev/null 2>&1; then
5824 if test "X$elf" = "Xyes" ; then
5838 CPPFLAGS="$CPPFLAGS $INCLUDES"
5839 LDFLAGS="$LDFLAGS $LIBDIRS"
5845 # Check whether --with-gnu-ld was given.
5846 if test "${with_gnu_ld+set}" = set; then
5847 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5853 if test "$GCC" = yes; then
5854 # Check if gcc -print-prog-name=ld gives a path.
5855 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5856 $as_echo_n "checking for ld used by GCC... " >&6; }
5859 # gcc leaves a trailing carriage return which upsets mingw
5860 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5862 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5865 # Accept absolute paths.
5866 [\\/]* | [A-Za-z]:[\\/]*)
5867 re_direlt='/[^/][^/]*/\.\./'
5868 # Canonicalize the path of ld
5869 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5870 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5871 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5873 test -z "$LD" && LD="$ac_prog"
5876 # If it fails, then pretend we aren't using GCC.
5880 # If it is relative, then search for the first ld in PATH.
5884 elif test "$with_gnu_ld" = yes; then
5885 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5886 $as_echo_n "checking for GNU ld... " >&6; }
5888 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5889 $as_echo_n "checking for non-GNU ld... " >&6; }
5891 if test "${ac_cv_path_LD+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5894 if test -z "$LD"; then
5895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5896 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899 ac_cv_path_LD="$ac_dir/$ac_prog"
5900 # Check to see if the program is GNU ld. I'd rather use --version,
5901 # but apparently some GNU ld's only accept -v.
5902 # Break only if it was the GNU/non-GNU ld that we prefer.
5903 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5904 test "$with_gnu_ld" != no && break
5906 test "$with_gnu_ld" != yes && break
5912 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5917 if test -n "$LD"; then
5918 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5919 $as_echo "$LD" >&6; }
5921 { $as_echo "$as_me:$LINENO: result: no" >&5
5922 $as_echo "no" >&6; }
5924 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5925 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5926 { (exit 1); exit 1; }; }
5927 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5928 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5929 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5930 $as_echo_n "(cached) " >&6
5932 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5933 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5934 ac_cv_prog_gnu_ld=yes
5936 ac_cv_prog_gnu_ld=no
5939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5940 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5941 with_gnu_ld=$ac_cv_prog_gnu_ld
5946 case $host_os in sysv5*)
5947 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5948 $as_echo_n "checking whether ld -R works... " >&6; }
5949 if test "${pgac_cv_prog_ld_R+set}" = set; then
5950 $as_echo_n "(cached) " >&6
5953 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5969 rm -f conftest.$ac_objext conftest$ac_exeext
5970 if { (ac_try="$ac_link"
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976 $as_echo "$ac_try_echo") >&5
5977 (eval "$ac_link") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest$ac_exeext && {
5987 test "$cross_compiling" = yes ||
5988 $as_test_x conftest$ac_exeext
5990 pgac_cv_prog_ld_R=yes
5992 $as_echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 pgac_cv_prog_ld_R=no
5998 rm -rf conftest.dSYM
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LDFLAGS=$pgac_save_LDFLAGS
6004 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6005 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6006 ld_R_works=$pgac_cv_prog_ld_R
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_RANLIB+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6017 if test -n "$RANLIB"; then
6018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 RANLIB=$ac_cv_prog_RANLIB
6038 if test -n "$RANLIB"; then
6039 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6040 $as_echo "$RANLIB" >&6; }
6042 { $as_echo "$as_me:$LINENO: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$ac_cv_prog_RANLIB"; then
6049 ac_ct_RANLIB=$RANLIB
6050 # Extract the first word of "ranlib", so it can be a program name with args.
6051 set dummy ranlib; ac_word=$2
6052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6055 $as_echo_n "(cached) " >&6
6057 if test -n "$ac_ct_RANLIB"; then
6058 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_RANLIB="ranlib"
6068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6078 if test -n "$ac_ct_RANLIB"; then
6079 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6080 $as_echo "$ac_ct_RANLIB" >&6; }
6082 { $as_echo "$as_me:$LINENO: result: no" >&5
6083 $as_echo "no" >&6; }
6086 if test "x$ac_ct_RANLIB" = x; then
6089 case $cross_compiling:$ac_tool_warned in
6091 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6095 RANLIB=$ac_ct_RANLIB
6098 RANLIB="$ac_cv_prog_RANLIB"
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}strip; ac_word=$2
6105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if test "${ac_cv_prog_STRIP+set}" = set; then
6108 $as_echo_n "(cached) " >&6
6110 if test -n "$STRIP"; then
6111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 STRIP=$ac_cv_prog_STRIP
6131 if test -n "$STRIP"; then
6132 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6133 $as_echo "$STRIP" >&6; }
6135 { $as_echo "$as_me:$LINENO: result: no" >&5
6136 $as_echo "no" >&6; }
6141 if test -z "$ac_cv_prog_STRIP"; then
6143 # Extract the first word of "strip", so it can be a program name with args.
6144 set dummy strip; ac_word=$2
6145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6148 $as_echo_n "(cached) " >&6
6150 if test -n "$ac_ct_STRIP"; then
6151 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_STRIP="strip"
6161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6171 if test -n "$ac_ct_STRIP"; then
6172 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6173 $as_echo "$ac_ct_STRIP" >&6; }
6175 { $as_echo "$as_me:$LINENO: result: no" >&5
6176 $as_echo "no" >&6; }
6179 if test "x$ac_ct_STRIP" = x; then
6182 case $cross_compiling:$ac_tool_warned in
6184 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6191 STRIP="$ac_cv_prog_STRIP"
6195 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6196 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6197 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6198 STRIP_STATIC_LIB="$STRIP -x"
6199 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6200 { $as_echo "$as_me:$LINENO: result: yes" >&5
6201 $as_echo "yes" >&6; }
6205 { $as_echo "$as_me:$LINENO: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}ar; ac_word=$2
6214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if test "${ac_cv_prog_AR+set}" = set; then
6217 $as_echo_n "(cached) " >&6
6219 if test -n "$AR"; then
6220 ac_cv_prog_AR="$AR" # Let the user override the test.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_AR="${ac_tool_prefix}ar"
6230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 if test -n "$AR"; then
6241 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6242 $as_echo "$AR" >&6; }
6244 { $as_echo "$as_me:$LINENO: result: no" >&5
6245 $as_echo "no" >&6; }
6250 if test -z "$ac_cv_prog_AR"; then
6252 # Extract the first word of "ar", so it can be a program name with args.
6253 set dummy ar; ac_word=$2
6254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6257 $as_echo_n "(cached) " >&6
6259 if test -n "$ac_ct_AR"; then
6260 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_ac_ct_AR="ar"
6270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6280 if test -n "$ac_ct_AR"; then
6281 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6282 $as_echo "$ac_ct_AR" >&6; }
6284 { $as_echo "$as_me:$LINENO: result: no" >&5
6285 $as_echo "no" >&6; }
6288 if test "x$ac_ct_AR" = x; then
6291 case $cross_compiling:$ac_tool_warned in
6293 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned=yes ;;
6303 if test "$PORTNAME" = "win32"; then
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6307 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$DLLTOOL"; then
6313 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 DLLTOOL=$ac_cv_prog_DLLTOOL
6333 if test -n "$DLLTOOL"; then
6334 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6335 $as_echo "$DLLTOOL" >&6; }
6337 { $as_echo "$as_me:$LINENO: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_DLLTOOL"; then
6344 ac_ct_DLLTOOL=$DLLTOOL
6345 # Extract the first word of "dlltool", so it can be a program name with args.
6346 set dummy dlltool; ac_word=$2
6347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_DLLTOOL"; then
6353 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6373 if test -n "$ac_ct_DLLTOOL"; then
6374 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6375 $as_echo "$ac_ct_DLLTOOL" >&6; }
6377 { $as_echo "$as_me:$LINENO: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_DLLTOOL" = x; then
6384 case $cross_compiling:$ac_tool_warned in
6386 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6390 DLLTOOL=$ac_ct_DLLTOOL
6393 DLLTOOL="$ac_cv_prog_DLLTOOL"
6396 if test -n "$ac_tool_prefix"; then
6397 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$DLLWRAP"; then
6405 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 DLLWRAP=$ac_cv_prog_DLLWRAP
6425 if test -n "$DLLWRAP"; then
6426 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6427 $as_echo "$DLLWRAP" >&6; }
6429 { $as_echo "$as_me:$LINENO: result: no" >&5
6430 $as_echo "no" >&6; }
6435 if test -z "$ac_cv_prog_DLLWRAP"; then
6436 ac_ct_DLLWRAP=$DLLWRAP
6437 # Extract the first word of "dllwrap", so it can be a program name with args.
6438 set dummy dllwrap; ac_word=$2
6439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$ac_ct_DLLWRAP"; then
6445 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6465 if test -n "$ac_ct_DLLWRAP"; then
6466 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6467 $as_echo "$ac_ct_DLLWRAP" >&6; }
6469 { $as_echo "$as_me:$LINENO: result: no" >&5
6470 $as_echo "no" >&6; }
6473 if test "x$ac_ct_DLLWRAP" = x; then
6476 case $cross_compiling:$ac_tool_warned in
6478 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6482 DLLWRAP=$ac_ct_DLLWRAP
6485 DLLWRAP="$ac_cv_prog_DLLWRAP"
6488 if test -n "$ac_tool_prefix"; then
6489 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6490 set dummy ${ac_tool_prefix}windres; ac_word=$2
6491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_WINDRES+set}" = set; then
6494 $as_echo_n "(cached) " >&6
6496 if test -n "$WINDRES"; then
6497 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 WINDRES=$ac_cv_prog_WINDRES
6517 if test -n "$WINDRES"; then
6518 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6519 $as_echo "$WINDRES" >&6; }
6521 { $as_echo "$as_me:$LINENO: result: no" >&5
6522 $as_echo "no" >&6; }
6527 if test -z "$ac_cv_prog_WINDRES"; then
6528 ac_ct_WINDRES=$WINDRES
6529 # Extract the first word of "windres", so it can be a program name with args.
6530 set dummy windres; ac_word=$2
6531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6534 $as_echo_n "(cached) " >&6
6536 if test -n "$ac_ct_WINDRES"; then
6537 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_prog_ac_ct_WINDRES="windres"
6547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6557 if test -n "$ac_ct_WINDRES"; then
6558 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6559 $as_echo "$ac_ct_WINDRES" >&6; }
6561 { $as_echo "$as_me:$LINENO: result: no" >&5
6562 $as_echo "no" >&6; }
6565 if test "x$ac_ct_WINDRES" = x; then
6568 case $cross_compiling:$ac_tool_warned in
6570 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6572 ac_tool_warned=yes ;;
6574 WINDRES=$ac_ct_WINDRES
6577 WINDRES="$ac_cv_prog_WINDRES"
6582 # Extract the first word of "tar", so it can be a program name with args.
6583 set dummy tar; ac_word=$2
6584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if test "${ac_cv_path_TAR+set}" = set; then
6587 $as_echo_n "(cached) " >&6
6591 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$TAR"; then
6614 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6615 $as_echo "$TAR" >&6; }
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6622 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6623 $as_echo_n "checking whether ln -s works... " >&6; }
6625 if test "$LN_S" = "ln -s"; then
6626 { $as_echo "$as_me:$LINENO: result: yes" >&5
6627 $as_echo "yes" >&6; }
6629 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6630 $as_echo "no, using $LN_S" >&6; }
6633 for ac_prog in gawk mawk nawk awk
6635 # Extract the first word of "$ac_prog", so it can be a program name with args.
6636 set dummy $ac_prog; ac_word=$2
6637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_AWK+set}" = set; then
6640 $as_echo_n "(cached) " >&6
6642 if test -n "$AWK"; then
6643 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_AWK="$ac_prog"
6653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 if test -n "$AWK"; then
6664 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6665 $as_echo "$AWK" >&6; }
6667 { $as_echo "$as_me:$LINENO: result: no" >&5
6668 $as_echo "no" >&6; }
6672 test -n "$AWK" && break
6675 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6676 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6677 if test -z "$MKDIR_P"; then
6678 if test "${ac_cv_path_mkdir+set}" = set; then
6679 $as_echo_n "(cached) " >&6
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6685 test -z "$as_dir" && as_dir=.
6686 for ac_prog in mkdir gmkdir; do
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6689 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6690 'mkdir (GNU coreutils) '* | \
6691 'mkdir (coreutils) '* | \
6692 'mkdir (fileutils) '4.1*)
6693 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6703 if test "${ac_cv_path_mkdir+set}" = set; then
6704 MKDIR_P="$ac_cv_path_mkdir -p"
6706 # As a last resort, use the slow shell script. Don't cache a
6707 # value for MKDIR_P within a source directory, because that will
6708 # break other packages using the cache if that directory is
6709 # removed, or if the value is a relative name.
6710 test -d ./--version && rmdir ./--version
6711 MKDIR_P="$ac_install_sh -d"
6714 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6715 $as_echo "$MKDIR_P" >&6; }
6717 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6718 # a relative path to it in each makefile where it subsitutes it. This clashes
6719 # with our Makefile.global concept. This workaround helps.
6721 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6724 # Let the user override the search
6725 if test -z "$BISON"; then
6726 for ac_prog in bison
6728 # Extract the first word of "$ac_prog", so it can be a program name with args.
6729 set dummy $ac_prog; ac_word=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_path_BISON+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6737 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 BISON=$ac_cv_path_BISON
6759 if test -n "$BISON"; then
6760 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6761 $as_echo "$BISON" >&6; }
6763 { $as_echo "$as_me:$LINENO: result: no" >&5
6764 $as_echo "no" >&6; }
6768 test -n "$BISON" && break
6773 if test "$BISON"; then
6774 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6775 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6776 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6777 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6779 { $as_echo "$as_me:$LINENO: WARNING:
6780 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6781 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6782 $as_echo "$as_me: WARNING:
6783 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6784 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6789 if test -z "$BISON"; then
6790 { $as_echo "$as_me:$LINENO: WARNING:
6791 *** Without Bison you will not be able to build PostgreSQL from Git nor
6792 *** change any of the parser definition files. You can obtain Bison from
6793 *** a GNU mirror site. (If you are using the official distribution of
6794 *** PostgreSQL then you do not need to worry about this, because the Bison
6795 *** output is pre-generated.)" >&5
6796 $as_echo "$as_me: WARNING:
6797 *** Without Bison you will not be able to build PostgreSQL from Git nor
6798 *** change any of the parser definition files. You can obtain Bison from
6799 *** a GNU mirror site. (If you are using the official distribution of
6800 *** PostgreSQL then you do not need to worry about this, because the Bison
6801 *** output is pre-generated.)" >&2;}
6803 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6806 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6807 $as_echo_n "checking for flex... " >&6; }
6808 if test "${pgac_cv_path_flex+set}" = set; then
6809 $as_echo_n "(cached) " >&6
6811 # Let the user override the test
6812 if test -n "$FLEX"; then
6813 pgac_cv_path_flex=$FLEX
6817 for pgac_dir in $PATH; do
6819 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6822 for pgac_prog in flex lex; do
6823 pgac_candidate="$pgac_dir/$pgac_prog"
6824 if test -f "$pgac_candidate" \
6825 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6827 echo '%%' > conftest.l
6828 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6829 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6830 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6832 pgac_cv_path_flex=$pgac_candidate
6835 { $as_echo "$as_me:$LINENO: WARNING:
6836 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6837 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6838 $as_echo "$as_me: WARNING:
6839 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6840 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6846 rm -f conftest.l lex.yy.c
6847 : ${pgac_cv_path_flex=no}
6851 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6852 $as_echo "$pgac_cv_path_flex" >&6; }
6853 if test x"$pgac_cv_path_flex" = x"no"; then
6854 { $as_echo "$as_me:$LINENO: WARNING:
6855 *** Without Flex you will not be able to build PostgreSQL from Git nor
6856 *** change any of the scanner definition files. You can obtain Flex from
6857 *** a GNU mirror site. (If you are using the official distribution of
6858 *** PostgreSQL then you do not need to worry about this because the Flex
6859 *** output is pre-generated.)" >&5
6860 $as_echo "$as_me: WARNING:
6861 *** Without Flex you will not be able to build PostgreSQL from Git nor
6862 *** change any of the scanner definition files. You can obtain Flex from
6863 *** a GNU mirror site. (If you are using the official distribution of
6864 *** PostgreSQL then you do not need to worry about this because the Flex
6865 *** output is pre-generated.)" >&2;}
6869 FLEX=$pgac_cv_path_flex
6870 pgac_flex_version=`$FLEX --version 2>/dev/null`
6871 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6872 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6879 # Let the user override the search
6880 if test -z "$PERL"; then
6881 # Extract the first word of "perl", so it can be a program name with args.
6882 set dummy perl; ac_word=$2
6883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if test "${ac_cv_path_PERL+set}" = set; then
6886 $as_echo_n "(cached) " >&6
6890 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 PERL=$ac_cv_path_PERL
6912 if test -n "$PERL"; then
6913 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6914 $as_echo "$PERL" >&6; }
6916 { $as_echo "$as_me:$LINENO: result: no" >&5
6917 $as_echo "no" >&6; }
6923 if test "$PERL"; then
6924 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'`
6925 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6926 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6927 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6928 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6930 { $as_echo "$as_me:$LINENO: WARNING:
6931 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6932 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6933 $as_echo "$as_me: WARNING:
6934 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6935 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6940 if test -z "$PERL"; then
6941 { $as_echo "$as_me:$LINENO: WARNING:
6942 *** Without Perl you will not be able to build PostgreSQL from Git.
6943 *** You can obtain Perl from any CPAN mirror site.
6944 *** (If you are using the official distribution of PostgreSQL then you do not
6945 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6946 $as_echo "$as_me: WARNING:
6947 *** Without Perl you will not be able to build PostgreSQL from Git.
6948 *** You can obtain Perl from any CPAN mirror site.
6949 *** (If you are using the official distribution of PostgreSQL then you do not
6950 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6953 if test "$with_perl" = yes; then
6954 if test -z "$PERL"; then
6955 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6956 $as_echo "$as_me: error: Perl not found" >&2;}
6957 { (exit 1); exit 1; }; }
6960 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6961 $as_echo_n "checking for Perl archlibexp... " >&6; }
6962 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6963 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6964 $as_echo "$perl_archlibexp" >&6; }
6965 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6966 $as_echo_n "checking for Perl privlibexp... " >&6; }
6967 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6968 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6969 $as_echo "$perl_privlibexp" >&6; }
6970 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6971 $as_echo_n "checking for Perl useshrplib... " >&6; }
6972 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6973 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6974 $as_echo "$perl_useshrplib" >&6; }
6976 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6977 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6978 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6979 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6980 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6981 if test -z "$perl_embed_ldflags" ; then
6982 { $as_echo "$as_me:$LINENO: result: no" >&5
6983 $as_echo "no" >&6; }
6984 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6985 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6987 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6988 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6990 { (exit 1); exit 1; }; }
6992 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6993 $as_echo "$perl_embed_ldflags" >&6; }
6998 if test "$with_python" = yes; then
6999 # Extract the first word of "python", so it can be a program name with args.
7000 set dummy python; ac_word=$2
7001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if test "${ac_cv_path_PYTHON+set}" = set; then
7004 $as_echo_n "(cached) " >&6
7008 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 PYTHON=$ac_cv_path_PYTHON
7030 if test -n "$PYTHON"; then
7031 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7032 $as_echo "$PYTHON" >&6; }
7034 { $as_echo "$as_me:$LINENO: result: no" >&5
7035 $as_echo "no" >&6; }
7039 if test x"$PYTHON" = x""; then
7040 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7041 $as_echo "$as_me: error: Python not found" >&2;}
7042 { (exit 1); exit 1; }; }
7046 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7047 $as_echo_n "checking for Python distutils module... " >&6; }
7048 if "${PYTHON}" -c 'import distutils' 2>&5
7050 { $as_echo "$as_me:$LINENO: result: yes" >&5
7051 $as_echo "yes" >&6; }
7053 { $as_echo "$as_me:$LINENO: result: no" >&5
7054 $as_echo "no" >&6; }
7055 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7056 $as_echo "$as_me: error: distutils module not found" >&2;}
7057 { (exit 1); exit 1; }; }
7059 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7060 $as_echo_n "checking Python configuration directory... " >&6; }
7061 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7062 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7063 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7064 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7066 # This should be enough of a message.
7067 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7068 $as_echo "$python_configdir" >&6; }
7071 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7072 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7074 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7075 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7076 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7077 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7079 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7081 # New way: use the official shared library
7082 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7083 python_libspec="-L${python_libdir} -l${ldlibrary}"
7085 # Old way: use libpython from python_configdir
7086 python_libdir="${python_configdir}"
7087 python_libspec="-L${python_libdir} -lpython${python_version}"
7090 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7092 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7093 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7096 # threaded python is not supported on bsd's
7097 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7098 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7099 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7100 if test "$pythreads" = "1"; then
7101 { $as_echo "$as_me:$LINENO: result: yes" >&5
7102 $as_echo "yes" >&6; }
7105 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7106 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7107 { (exit 1); exit 1; }; }
7111 { $as_echo "$as_me:$LINENO: result: no" >&5
7112 $as_echo "no" >&6; }
7118 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7119 # Extract the first word of "zic", so it can be a program name with args.
7120 set dummy zic; ac_word=$2
7121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_path_ZIC+set}" = set; then
7124 $as_echo_n "(cached) " >&6
7128 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 if test -n "$ZIC"; then
7151 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7152 $as_echo "$ZIC" >&6; }
7154 { $as_echo "$as_me:$LINENO: result: no" >&5
7155 $as_echo "no" >&6; }
7159 if test -z "$ZIC"; then
7160 { { $as_echo "$as_me:$LINENO: error:
7161 When cross-compiling, either use the option --with-system-tzdata to use
7162 existing time-zone data, or set the environment variable ZIC to a zic
7163 program to use during the build." >&5
7164 $as_echo "$as_me: error:
7165 When cross-compiling, either use the option --with-system-tzdata to use
7166 existing time-zone data, or set the environment variable ZIC to a zic
7167 program to use during the build." >&2;}
7168 { (exit 1); exit 1; }; }
7176 ## Most libraries are included only if they demonstrably provide a function
7177 ## we need, but libm is an exception: always include it, because there are
7178 ## too many compilers that play cute optimization games that will break
7179 ## probes for standard functions such as pow().
7183 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7184 $as_echo_n "checking for main in -lm... " >&6; }
7185 if test "${ac_cv_lib_m_main+set}" = set; then
7186 $as_echo_n "(cached) " >&6
7188 ac_check_lib_save_LIBS=$LIBS
7190 cat >conftest.$ac_ext <<_ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (ac_try="$ac_link"
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7213 $as_echo "$ac_try_echo") >&5
7214 (eval "$ac_link") 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest$ac_exeext && {
7224 test "$cross_compiling" = yes ||
7225 $as_test_x conftest$ac_exeext
7227 ac_cv_lib_m_main=yes
7229 $as_echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7235 rm -rf conftest.dSYM
7236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7237 conftest$ac_exeext conftest.$ac_ext
7238 LIBS=$ac_check_lib_save_LIBS
7240 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7241 $as_echo "$ac_cv_lib_m_main" >&6; }
7242 if test "x$ac_cv_lib_m_main" = x""yes; then
7243 cat >>confdefs.h <<_ACEOF
7251 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7252 $as_echo_n "checking for library containing setproctitle... " >&6; }
7253 if test "${ac_cv_search_setproctitle+set}" = set; then
7254 $as_echo_n "(cached) " >&6
7256 ac_func_search_save_LIBS=$LIBS
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7264 /* Override any GCC internal prototype to avoid an error.
7265 Use char because int might match the return type of a GCC
7266 builtin and then its argument prototype would still apply. */
7270 char setproctitle ();
7274 return setproctitle ();
7279 for ac_lib in '' util; do
7280 if test -z "$ac_lib"; then
7281 ac_res="none required"
7284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_link") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext && {
7304 test "$cross_compiling" = yes ||
7305 $as_test_x conftest$ac_exeext
7307 ac_cv_search_setproctitle=$ac_res
7309 $as_echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7315 rm -rf conftest.dSYM
7316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7318 if test "${ac_cv_search_setproctitle+set}" = set; then
7322 if test "${ac_cv_search_setproctitle+set}" = set; then
7325 ac_cv_search_setproctitle=no
7328 LIBS=$ac_func_search_save_LIBS
7330 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7331 $as_echo "$ac_cv_search_setproctitle" >&6; }
7332 ac_res=$ac_cv_search_setproctitle
7333 if test "$ac_res" != no; then
7334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7338 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7339 $as_echo_n "checking for library containing dlopen... " >&6; }
7340 if test "${ac_cv_search_dlopen+set}" = set; then
7341 $as_echo_n "(cached) " >&6
7343 ac_func_search_save_LIBS=$LIBS
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7351 /* Override any GCC internal prototype to avoid an error.
7352 Use char because int might match the return type of a GCC
7353 builtin and then its argument prototype would still apply. */
7366 for ac_lib in '' dl; do
7367 if test -z "$ac_lib"; then
7368 ac_res="none required"
7371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (ac_try="$ac_link"
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7380 $as_echo "$ac_try_echo") >&5
7381 (eval "$ac_link") 2>conftest.er1
7383 grep -v '^ *+' conftest.er1 >conftest.err
7385 cat conftest.err >&5
7386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest$ac_exeext && {
7391 test "$cross_compiling" = yes ||
7392 $as_test_x conftest$ac_exeext
7394 ac_cv_search_dlopen=$ac_res
7396 $as_echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -rf conftest.dSYM
7403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7405 if test "${ac_cv_search_dlopen+set}" = set; then
7409 if test "${ac_cv_search_dlopen+set}" = set; then
7412 ac_cv_search_dlopen=no
7415 LIBS=$ac_func_search_save_LIBS
7417 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7418 $as_echo "$ac_cv_search_dlopen" >&6; }
7419 ac_res=$ac_cv_search_dlopen
7420 if test "$ac_res" != no; then
7421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7425 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7426 $as_echo_n "checking for library containing socket... " >&6; }
7427 if test "${ac_cv_search_socket+set}" = set; then
7428 $as_echo_n "(cached) " >&6
7430 ac_func_search_save_LIBS=$LIBS
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7438 /* Override any GCC internal prototype to avoid an error.
7439 Use char because int might match the return type of a GCC
7440 builtin and then its argument prototype would still apply. */
7453 for ac_lib in '' socket wsock32; do
7454 if test -z "$ac_lib"; then
7455 ac_res="none required"
7458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464 *) ac_try_echo=$ac_try;;
7466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7467 $as_echo "$ac_try_echo") >&5
7468 (eval "$ac_link") 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest$ac_exeext && {
7478 test "$cross_compiling" = yes ||
7479 $as_test_x conftest$ac_exeext
7481 ac_cv_search_socket=$ac_res
7483 $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7489 rm -rf conftest.dSYM
7490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7492 if test "${ac_cv_search_socket+set}" = set; then
7496 if test "${ac_cv_search_socket+set}" = set; then
7499 ac_cv_search_socket=no
7502 LIBS=$ac_func_search_save_LIBS
7504 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7505 $as_echo "$ac_cv_search_socket" >&6; }
7506 ac_res=$ac_cv_search_socket
7507 if test "$ac_res" != no; then
7508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7512 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7513 $as_echo_n "checking for library containing shl_load... " >&6; }
7514 if test "${ac_cv_search_shl_load+set}" = set; then
7515 $as_echo_n "(cached) " >&6
7517 ac_func_search_save_LIBS=$LIBS
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7525 /* Override any GCC internal prototype to avoid an error.
7526 Use char because int might match the return type of a GCC
7527 builtin and then its argument prototype would still apply. */
7540 for ac_lib in '' dld; do
7541 if test -z "$ac_lib"; then
7542 ac_res="none required"
7545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555 (eval "$ac_link") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest$ac_exeext && {
7565 test "$cross_compiling" = yes ||
7566 $as_test_x conftest$ac_exeext
7568 ac_cv_search_shl_load=$ac_res
7570 $as_echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7576 rm -rf conftest.dSYM
7577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7579 if test "${ac_cv_search_shl_load+set}" = set; then
7583 if test "${ac_cv_search_shl_load+set}" = set; then
7586 ac_cv_search_shl_load=no
7589 LIBS=$ac_func_search_save_LIBS
7591 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7592 $as_echo "$ac_cv_search_shl_load" >&6; }
7593 ac_res=$ac_cv_search_shl_load
7594 if test "$ac_res" != no; then
7595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7599 # We only use libld in port/dynloader/aix.c
7602 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7603 $as_echo_n "checking for library containing ldopen... " >&6; }
7604 if test "${ac_cv_search_ldopen+set}" = set; then
7605 $as_echo_n "(cached) " >&6
7607 ac_func_search_save_LIBS=$LIBS
7608 cat >conftest.$ac_ext <<_ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 /* Override any GCC internal prototype to avoid an error.
7616 Use char because int might match the return type of a GCC
7617 builtin and then its argument prototype would still apply. */
7630 for ac_lib in '' ld; do
7631 if test -z "$ac_lib"; then
7632 ac_res="none required"
7635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7644 $as_echo "$ac_try_echo") >&5
7645 (eval "$ac_link") 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest$ac_exeext && {
7655 test "$cross_compiling" = yes ||
7656 $as_test_x conftest$ac_exeext
7658 ac_cv_search_ldopen=$ac_res
7660 $as_echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7666 rm -rf conftest.dSYM
7667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7669 if test "${ac_cv_search_ldopen+set}" = set; then
7673 if test "${ac_cv_search_ldopen+set}" = set; then
7676 ac_cv_search_ldopen=no
7679 LIBS=$ac_func_search_save_LIBS
7681 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7682 $as_echo "$ac_cv_search_ldopen" >&6; }
7683 ac_res=$ac_cv_search_ldopen
7684 if test "$ac_res" != no; then
7685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7691 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7692 $as_echo_n "checking for library containing getopt_long... " >&6; }
7693 if test "${ac_cv_search_getopt_long+set}" = set; then
7694 $as_echo_n "(cached) " >&6
7696 ac_func_search_save_LIBS=$LIBS
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7704 /* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
7710 char getopt_long ();
7714 return getopt_long ();
7719 for ac_lib in '' getopt gnugetopt; do
7720 if test -z "$ac_lib"; then
7721 ac_res="none required"
7724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7726 rm -f conftest.$ac_objext conftest$ac_exeext
7727 if { (ac_try="$ac_link"
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_link") 2>conftest.er1
7736 grep -v '^ *+' conftest.er1 >conftest.err
7738 cat conftest.err >&5
7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest$ac_exeext && {
7744 test "$cross_compiling" = yes ||
7745 $as_test_x conftest$ac_exeext
7747 ac_cv_search_getopt_long=$ac_res
7749 $as_echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7755 rm -rf conftest.dSYM
7756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 if test "${ac_cv_search_getopt_long+set}" = set; then
7762 if test "${ac_cv_search_getopt_long+set}" = set; then
7765 ac_cv_search_getopt_long=no
7768 LIBS=$ac_func_search_save_LIBS
7770 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7771 $as_echo "$ac_cv_search_getopt_long" >&6; }
7772 ac_res=$ac_cv_search_getopt_long
7773 if test "$ac_res" != no; then
7774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7778 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7779 $as_echo_n "checking for library containing crypt... " >&6; }
7780 if test "${ac_cv_search_crypt+set}" = set; then
7781 $as_echo_n "(cached) " >&6
7783 ac_func_search_save_LIBS=$LIBS
7784 cat >conftest.$ac_ext <<_ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7791 /* Override any GCC internal prototype to avoid an error.
7792 Use char because int might match the return type of a GCC
7793 builtin and then its argument prototype would still apply. */
7806 for ac_lib in '' crypt; do
7807 if test -z "$ac_lib"; then
7808 ac_res="none required"
7811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (ac_try="$ac_link"
7816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817 *) ac_try_echo=$ac_try;;
7819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820 $as_echo "$ac_try_echo") >&5
7821 (eval "$ac_link") 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && {
7828 test -z "$ac_c_werror_flag" ||
7829 test ! -s conftest.err
7830 } && test -s conftest$ac_exeext && {
7831 test "$cross_compiling" = yes ||
7832 $as_test_x conftest$ac_exeext
7834 ac_cv_search_crypt=$ac_res
7836 $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7842 rm -rf conftest.dSYM
7843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7845 if test "${ac_cv_search_crypt+set}" = set; then
7849 if test "${ac_cv_search_crypt+set}" = set; then
7852 ac_cv_search_crypt=no
7855 LIBS=$ac_func_search_save_LIBS
7857 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7858 $as_echo "$ac_cv_search_crypt" >&6; }
7859 ac_res=$ac_cv_search_crypt
7860 if test "$ac_res" != no; then
7861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7866 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7867 $as_echo_n "checking for library containing fdatasync... " >&6; }
7868 if test "${ac_cv_search_fdatasync+set}" = set; then
7869 $as_echo_n "(cached) " >&6
7871 ac_func_search_save_LIBS=$LIBS
7872 cat >conftest.$ac_ext <<_ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7879 /* Override any GCC internal prototype to avoid an error.
7880 Use char because int might match the return type of a GCC
7881 builtin and then its argument prototype would still apply. */
7889 return fdatasync ();
7894 for ac_lib in '' rt posix4; do
7895 if test -z "$ac_lib"; then
7896 ac_res="none required"
7899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7908 $as_echo "$ac_try_echo") >&5
7909 (eval "$ac_link") 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest$ac_exeext && {
7919 test "$cross_compiling" = yes ||
7920 $as_test_x conftest$ac_exeext
7922 ac_cv_search_fdatasync=$ac_res
7924 $as_echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7930 rm -rf conftest.dSYM
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7933 if test "${ac_cv_search_fdatasync+set}" = set; then
7937 if test "${ac_cv_search_fdatasync+set}" = set; then
7940 ac_cv_search_fdatasync=no
7943 LIBS=$ac_func_search_save_LIBS
7945 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7946 $as_echo "$ac_cv_search_fdatasync" >&6; }
7947 ac_res=$ac_cv_search_fdatasync
7948 if test "$ac_res" != no; then
7949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7953 # Required for thread_test.c on Solaris 2.5:
7954 # Other ports use it too (HP-UX) so test unconditionally
7955 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7956 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7957 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7958 $as_echo_n "(cached) " >&6
7960 ac_func_search_save_LIBS=$LIBS
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7968 /* Override any GCC internal prototype to avoid an error.
7969 Use char because int might match the return type of a GCC
7970 builtin and then its argument prototype would still apply. */
7974 char gethostbyname_r ();
7978 return gethostbyname_r ();
7983 for ac_lib in '' nsl; do
7984 if test -z "$ac_lib"; then
7985 ac_res="none required"
7988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7997 $as_echo "$ac_try_echo") >&5
7998 (eval "$ac_link") 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } && {
8005 test -z "$ac_c_werror_flag" ||
8006 test ! -s conftest.err
8007 } && test -s conftest$ac_exeext && {
8008 test "$cross_compiling" = yes ||
8009 $as_test_x conftest$ac_exeext
8011 ac_cv_search_gethostbyname_r=$ac_res
8013 $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8019 rm -rf conftest.dSYM
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8022 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8026 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8029 ac_cv_search_gethostbyname_r=no
8032 LIBS=$ac_func_search_save_LIBS
8034 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8035 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8036 ac_res=$ac_cv_search_gethostbyname_r
8037 if test "$ac_res" != no; then
8038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8043 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8044 $as_echo_n "checking for library containing shmget... " >&6; }
8045 if test "${ac_cv_search_shmget+set}" = set; then
8046 $as_echo_n "(cached) " >&6
8048 ac_func_search_save_LIBS=$LIBS
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8056 /* Override any GCC internal prototype to avoid an error.
8057 Use char because int might match the return type of a GCC
8058 builtin and then its argument prototype would still apply. */
8071 for ac_lib in '' cygipc; do
8072 if test -z "$ac_lib"; then
8073 ac_res="none required"
8076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (ac_try="$ac_link"
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8085 $as_echo "$ac_try_echo") >&5
8086 (eval "$ac_link") 2>conftest.er1
8088 grep -v '^ *+' conftest.er1 >conftest.err
8090 cat conftest.err >&5
8091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } && {
8093 test -z "$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 } && test -s conftest$ac_exeext && {
8096 test "$cross_compiling" = yes ||
8097 $as_test_x conftest$ac_exeext
8099 ac_cv_search_shmget=$ac_res
8101 $as_echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8107 rm -rf conftest.dSYM
8108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8110 if test "${ac_cv_search_shmget+set}" = set; then
8114 if test "${ac_cv_search_shmget+set}" = set; then
8117 ac_cv_search_shmget=no
8120 LIBS=$ac_func_search_save_LIBS
8122 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8123 $as_echo "$ac_cv_search_shmget" >&6; }
8124 ac_res=$ac_cv_search_shmget
8125 if test "$ac_res" != no; then
8126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8131 if test "$with_readline" = yes; then
8134 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8135 $as_echo_n "checking for library containing readline... " >&6; }
8136 if test "${pgac_cv_check_readline+set}" = set; then
8137 $as_echo_n "(cached) " >&6
8139 pgac_cv_check_readline=no
8140 pgac_save_LIBS=$LIBS
8141 if test x"$with_libedit_preferred" != x"yes"
8142 then READLINE_ORDER="-lreadline -ledit"
8143 else READLINE_ORDER="-ledit -lreadline"
8145 for pgac_rllib in $READLINE_ORDER ; do
8146 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8147 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8148 cat >conftest.$ac_ext <<_ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8155 /* Override any GCC internal prototype to avoid an error.
8156 Use char because int might match the return type of a GCC
8157 builtin and then its argument prototype would still apply. */
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8177 $as_echo "$ac_try_echo") >&5
8178 (eval "$ac_link") 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest$ac_exeext && {
8188 test "$cross_compiling" = yes ||
8189 $as_test_x conftest$ac_exeext
8192 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8193 # recognize dependent libraries; assume curses is needed if we didn't
8194 # find any dependency.
8196 netbsd* | openbsd* | irix*)
8197 if test x"$pgac_lib" = x"" ; then
8198 pgac_lib=" -lcurses"
8202 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8206 $as_echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8212 rm -rf conftest.dSYM
8213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8214 conftest$ac_exeext conftest.$ac_ext
8216 if test "$pgac_cv_check_readline" != no ; then
8220 LIBS=$pgac_save_LIBS
8223 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8224 $as_echo "$pgac_cv_check_readline" >&6; }
8225 if test "$pgac_cv_check_readline" != no ; then
8226 LIBS="$pgac_cv_check_readline $LIBS"
8228 cat >>confdefs.h <<\_ACEOF
8229 #define HAVE_LIBREADLINE 1
8235 if test x"$pgac_cv_check_readline" = x"no"; then
8236 { { $as_echo "$as_me:$LINENO: error: readline library not found
8237 If you have readline already installed, see config.log for details on the
8238 failure. It is possible the compiler isn't looking in the proper directory.
8239 Use --without-readline to disable readline support." >&5
8240 $as_echo "$as_me: error: readline library not found
8241 If you have readline already installed, see config.log for details on the
8242 failure. It is possible the compiler isn't looking in the proper directory.
8243 Use --without-readline to disable readline support." >&2;}
8244 { (exit 1); exit 1; }; }
8248 if test "$with_zlib" = yes; then
8250 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8251 $as_echo_n "checking for inflate in -lz... " >&6; }
8252 if test "${ac_cv_lib_z_inflate+set}" = set; then
8253 $as_echo_n "(cached) " >&6
8255 ac_check_lib_save_LIBS=$LIBS
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8279 rm -f conftest.$ac_objext conftest$ac_exeext
8280 if { (ac_try="$ac_link"
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286 $as_echo "$ac_try_echo") >&5
8287 (eval "$ac_link") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest$ac_exeext && {
8297 test "$cross_compiling" = yes ||
8298 $as_test_x conftest$ac_exeext
8300 ac_cv_lib_z_inflate=yes
8302 $as_echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_cv_lib_z_inflate=no
8308 rm -rf conftest.dSYM
8309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LIBS=$ac_check_lib_save_LIBS
8313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8314 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8315 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8316 cat >>confdefs.h <<_ACEOF
8323 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8324 If you have zlib already installed, see config.log for details on the
8325 failure. It is possible the compiler isn't looking in the proper directory.
8326 Use --without-zlib to disable zlib support." >&5
8327 $as_echo "$as_me: error: zlib library not found
8328 If you have zlib already installed, see config.log for details on the
8329 failure. It is possible the compiler isn't looking in the proper directory.
8330 Use --without-zlib to disable zlib support." >&2;}
8331 { (exit 1); exit 1; }; }
8336 if test "$enable_spinlocks" = yes; then
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_SPINLOCKS 1
8343 { $as_echo "$as_me:$LINENO: WARNING:
8344 *** Not using spinlocks will cause poor performance." >&5
8345 $as_echo "$as_me: WARNING:
8346 *** Not using spinlocks will cause poor performance." >&2;}
8349 if test "$with_gssapi" = yes ; then
8350 if test "$PORTNAME" != "win32"; then
8351 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8352 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8353 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8354 $as_echo_n "(cached) " >&6
8356 ac_func_search_save_LIBS=$LIBS
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8364 /* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8370 char gss_init_sec_context ();
8374 return gss_init_sec_context ();
8379 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8380 if test -z "$ac_lib"; then
8381 ac_res="none required"
8384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8393 $as_echo "$ac_try_echo") >&5
8394 (eval "$ac_link") 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && {
8401 test -z "$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8403 } && test -s conftest$ac_exeext && {
8404 test "$cross_compiling" = yes ||
8405 $as_test_x conftest$ac_exeext
8407 ac_cv_search_gss_init_sec_context=$ac_res
8409 $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8415 rm -rf conftest.dSYM
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8418 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8422 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8425 ac_cv_search_gss_init_sec_context=no
8428 LIBS=$ac_func_search_save_LIBS
8430 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8431 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8432 ac_res=$ac_cv_search_gss_init_sec_context
8433 if test "$ac_res" != no; then
8434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8437 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8438 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8439 { (exit 1); exit 1; }; }
8443 LIBS="$LIBS -lgssapi32"
8447 if test "$with_krb5" = yes ; then
8448 if test "$PORTNAME" != "win32"; then
8449 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8450 $as_echo_n "checking for library containing com_err... " >&6; }
8451 if test "${ac_cv_search_com_err+set}" = set; then
8452 $as_echo_n "(cached) " >&6
8454 ac_func_search_save_LIBS=$LIBS
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8462 /* Override any GCC internal prototype to avoid an error.
8463 Use char because int might match the return type of a GCC
8464 builtin and then its argument prototype would still apply. */
8477 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8478 if test -z "$ac_lib"; then
8479 ac_res="none required"
8482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (ac_try="$ac_link"
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492 (eval "$ac_link") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1 >conftest.err
8496 cat conftest.err >&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest$ac_exeext && {
8502 test "$cross_compiling" = yes ||
8503 $as_test_x conftest$ac_exeext
8505 ac_cv_search_com_err=$ac_res
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8513 rm -rf conftest.dSYM
8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8516 if test "${ac_cv_search_com_err+set}" = set; then
8520 if test "${ac_cv_search_com_err+set}" = set; then
8523 ac_cv_search_com_err=no
8526 LIBS=$ac_func_search_save_LIBS
8528 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8529 $as_echo "$ac_cv_search_com_err" >&6; }
8530 ac_res=$ac_cv_search_com_err
8531 if test "$ac_res" != no; then
8532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8535 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8536 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8537 { (exit 1); exit 1; }; }
8540 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8541 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8542 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8543 $as_echo_n "(cached) " >&6
8545 ac_func_search_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 /* Override any GCC internal prototype to avoid an error.
8554 Use char because int might match the return type of a GCC
8555 builtin and then its argument prototype would still apply. */
8559 char krb5_sendauth ();
8563 return krb5_sendauth ();
8568 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8569 if test -z "$ac_lib"; then
8570 ac_res="none required"
8573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (ac_try="$ac_link"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8582 $as_echo "$ac_try_echo") >&5
8583 (eval "$ac_link") 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest$ac_exeext && {
8593 test "$cross_compiling" = yes ||
8594 $as_test_x conftest$ac_exeext
8596 ac_cv_search_krb5_sendauth=$ac_res
8598 $as_echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8604 rm -rf conftest.dSYM
8605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8611 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8614 ac_cv_search_krb5_sendauth=no
8617 LIBS=$ac_func_search_save_LIBS
8619 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8620 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8621 ac_res=$ac_cv_search_krb5_sendauth
8622 if test "$ac_res" != no; then
8623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8626 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8627 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8628 { (exit 1); exit 1; }; }
8632 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8633 $as_echo_n "checking for library containing com_err... " >&6; }
8634 if test "${ac_cv_search_com_err+set}" = set; then
8635 $as_echo_n "(cached) " >&6
8637 ac_func_search_save_LIBS=$LIBS
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8645 /* Override any GCC internal prototype to avoid an error.
8646 Use char because int might match the return type of a GCC
8647 builtin and then its argument prototype would still apply. */
8660 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8661 if test -z "$ac_lib"; then
8662 ac_res="none required"
8665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (ac_try="$ac_link"
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8674 $as_echo "$ac_try_echo") >&5
8675 (eval "$ac_link") 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_c_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest$ac_exeext && {
8685 test "$cross_compiling" = yes ||
8686 $as_test_x conftest$ac_exeext
8688 ac_cv_search_com_err=$ac_res
8690 $as_echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8696 rm -rf conftest.dSYM
8697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8699 if test "${ac_cv_search_com_err+set}" = set; then
8703 if test "${ac_cv_search_com_err+set}" = set; then
8706 ac_cv_search_com_err=no
8709 LIBS=$ac_func_search_save_LIBS
8711 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8712 $as_echo "$ac_cv_search_com_err" >&6; }
8713 ac_res=$ac_cv_search_com_err
8714 if test "$ac_res" != no; then
8715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8718 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8719 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8720 { (exit 1); exit 1; }; }
8726 if test "$with_openssl" = yes ; then
8727 if test "$PORTNAME" != "win32"; then
8729 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8730 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8731 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8732 $as_echo_n "(cached) " >&6
8734 ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-lcrypto $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any GCC internal prototype to avoid an error.
8744 Use char because int might match the return type of a GCC
8745 builtin and then its argument prototype would still apply. */
8749 char CRYPTO_new_ex_data ();
8753 return CRYPTO_new_ex_data ();
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766 (eval "$ac_link") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest$ac_exeext && {
8776 test "$cross_compiling" = yes ||
8777 $as_test_x conftest$ac_exeext
8779 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8781 $as_echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8787 rm -rf conftest.dSYM
8788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8789 conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8792 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8793 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8794 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8795 cat >>confdefs.h <<_ACEOF
8796 #define HAVE_LIBCRYPTO 1
8799 LIBS="-lcrypto $LIBS"
8802 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8803 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8804 { (exit 1); exit 1; }; }
8808 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8809 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8810 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8811 $as_echo_n "(cached) " >&6
8813 ac_check_lib_save_LIBS=$LIBS
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8822 /* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8828 char SSL_library_init ();
8832 return SSL_library_init ();
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (ac_try="$ac_link"
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8844 $as_echo "$ac_try_echo") >&5
8845 (eval "$ac_link") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext && {
8855 test "$cross_compiling" = yes ||
8856 $as_test_x conftest$ac_exeext
8858 ac_cv_lib_ssl_SSL_library_init=yes
8860 $as_echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 ac_cv_lib_ssl_SSL_library_init=no
8866 rm -rf conftest.dSYM
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8872 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8873 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_LIBSSL 1
8881 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8882 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8883 { (exit 1); exit 1; }; }
8888 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8889 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8890 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8891 $as_echo_n "(cached) " >&6
8893 ac_check_lib_save_LIBS=$LIBS
8894 LIBS="-leay32 $LIBS"
8895 cat >conftest.$ac_ext <<_ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8908 char CRYPTO_new_ex_data ();
8912 return CRYPTO_new_ex_data ();
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (ac_try="$ac_link"
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8924 $as_echo "$ac_try_echo") >&5
8925 (eval "$ac_link") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 } && test -s conftest$ac_exeext && {
8935 test "$cross_compiling" = yes ||
8936 $as_test_x conftest$ac_exeext
8938 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8940 $as_echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8946 rm -rf conftest.dSYM
8947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8948 conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8951 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8952 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8953 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8954 cat >>confdefs.h <<_ACEOF
8955 #define HAVE_LIBEAY32 1
8958 LIBS="-leay32 $LIBS"
8961 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8962 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8963 { (exit 1); exit 1; }; }
8967 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8968 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8969 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8970 $as_echo_n "(cached) " >&6
8972 ac_check_lib_save_LIBS=$LIBS
8973 LIBS="-lssleay32 $LIBS"
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 /* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
8987 char SSL_library_init ();
8991 return SSL_library_init ();
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004 (eval "$ac_link") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest$ac_exeext && {
9014 test "$cross_compiling" = yes ||
9015 $as_test_x conftest$ac_exeext
9017 ac_cv_lib_ssleay32_SSL_library_init=yes
9019 $as_echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_cv_lib_ssleay32_SSL_library_init=no
9025 rm -rf conftest.dSYM
9026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9027 conftest$ac_exeext conftest.$ac_ext
9028 LIBS=$ac_check_lib_save_LIBS
9030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9031 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9032 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_LIBSSLEAY32 1
9037 LIBS="-lssleay32 $LIBS"
9040 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9041 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9042 { (exit 1); exit 1; }; }
9048 if test "$with_pam" = yes ; then
9050 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9051 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9052 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9053 $as_echo_n "(cached) " >&6
9055 ac_check_lib_save_LIBS=$LIBS
9057 cat >conftest.$ac_ext <<_ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9064 /* Override any GCC internal prototype to avoid an error.
9065 Use char because int might match the return type of a GCC
9066 builtin and then its argument prototype would still apply. */
9074 return pam_start ();
9079 rm -f conftest.$ac_objext conftest$ac_exeext
9080 if { (ac_try="$ac_link"
9082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083 *) ac_try_echo=$ac_try;;
9085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9086 $as_echo "$ac_try_echo") >&5
9087 (eval "$ac_link") 2>conftest.er1
9089 grep -v '^ *+' conftest.er1 >conftest.err
9091 cat conftest.err >&5
9092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && {
9094 test -z "$ac_c_werror_flag" ||
9095 test ! -s conftest.err
9096 } && test -s conftest$ac_exeext && {
9097 test "$cross_compiling" = yes ||
9098 $as_test_x conftest$ac_exeext
9100 ac_cv_lib_pam_pam_start=yes
9102 $as_echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9105 ac_cv_lib_pam_pam_start=no
9108 rm -rf conftest.dSYM
9109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS=$ac_check_lib_save_LIBS
9113 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9114 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9115 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_LIBPAM 1
9123 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9124 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9125 { (exit 1); exit 1; }; }
9130 if test "$with_libxml" = yes ; then
9132 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9133 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9134 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9137 ac_check_lib_save_LIBS=$LIBS
9139 cat >conftest.$ac_ext <<_ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9146 /* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9152 char xmlSaveToBuffer ();
9156 return xmlSaveToBuffer ();
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (ac_try="$ac_link"
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168 $as_echo "$ac_try_echo") >&5
9169 (eval "$ac_link") 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest$ac_exeext && {
9179 test "$cross_compiling" = yes ||
9180 $as_test_x conftest$ac_exeext
9182 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9184 $as_echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9187 ac_cv_lib_xml2_xmlSaveToBuffer=no
9190 rm -rf conftest.dSYM
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 LIBS=$ac_check_lib_save_LIBS
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9196 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9197 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_LIBXML2 1
9205 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9206 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9207 { (exit 1); exit 1; }; }
9212 if test "$with_libxslt" = yes ; then
9214 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9215 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9216 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9217 $as_echo_n "(cached) " >&6
9219 ac_check_lib_save_LIBS=$LIBS
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9228 /* Override any GCC internal prototype to avoid an error.
9229 Use char because int might match the return type of a GCC
9230 builtin and then its argument prototype would still apply. */
9234 char xsltCleanupGlobals ();
9238 return xsltCleanupGlobals ();
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (ac_try="$ac_link"
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9250 $as_echo "$ac_try_echo") >&5
9251 (eval "$ac_link") 2>conftest.er1
9253 grep -v '^ *+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } && {
9258 test -z "$ac_c_werror_flag" ||
9259 test ! -s conftest.err
9260 } && test -s conftest$ac_exeext && {
9261 test "$cross_compiling" = yes ||
9262 $as_test_x conftest$ac_exeext
9264 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9266 $as_echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 ac_cv_lib_xslt_xsltCleanupGlobals=no
9272 rm -rf conftest.dSYM
9273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9274 conftest$ac_exeext conftest.$ac_ext
9275 LIBS=$ac_check_lib_save_LIBS
9277 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9278 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9279 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_LIBXSLT 1
9287 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9288 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9289 { (exit 1); exit 1; }; }
9294 # for contrib/uuid-ossp
9295 if test "$with_ossp_uuid" = yes ; then
9296 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9297 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9298 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9299 $as_echo_n "(cached) " >&6
9301 ac_check_lib_save_LIBS=$LIBS
9302 LIBS="-lossp-uuid $LIBS"
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9310 /* Override any GCC internal prototype to avoid an error.
9311 Use char because int might match the return type of a GCC
9312 builtin and then its argument prototype would still apply. */
9316 char uuid_export ();
9320 return uuid_export ();
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (ac_try="$ac_link"
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9332 $as_echo "$ac_try_echo") >&5
9333 (eval "$ac_link") 2>conftest.er1
9335 grep -v '^ *+' conftest.er1 >conftest.err
9337 cat conftest.err >&5
9338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } && {
9340 test -z "$ac_c_werror_flag" ||
9341 test ! -s conftest.err
9342 } && test -s conftest$ac_exeext && {
9343 test "$cross_compiling" = yes ||
9344 $as_test_x conftest$ac_exeext
9346 ac_cv_lib_ossp_uuid_uuid_export=yes
9348 $as_echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_cv_lib_ossp_uuid_uuid_export=no
9354 rm -rf conftest.dSYM
9355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9356 conftest$ac_exeext conftest.$ac_ext
9357 LIBS=$ac_check_lib_save_LIBS
9359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9360 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9361 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9362 OSSP_UUID_LIBS="-lossp-uuid"
9364 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9365 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9366 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9367 $as_echo_n "(cached) " >&6
9369 ac_check_lib_save_LIBS=$LIBS
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9378 /* Override any GCC internal prototype to avoid an error.
9379 Use char because int might match the return type of a GCC
9380 builtin and then its argument prototype would still apply. */
9384 char uuid_export ();
9388 return uuid_export ();
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9400 $as_echo "$ac_try_echo") >&5
9401 (eval "$ac_link") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest$ac_exeext && {
9411 test "$cross_compiling" = yes ||
9412 $as_test_x conftest$ac_exeext
9414 ac_cv_lib_uuid_uuid_export=yes
9416 $as_echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_cv_lib_uuid_uuid_export=no
9422 rm -rf conftest.dSYM
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424 conftest$ac_exeext conftest.$ac_ext
9425 LIBS=$ac_check_lib_save_LIBS
9427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9428 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9429 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9430 OSSP_UUID_LIBS="-luuid"
9432 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9433 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9434 { (exit 1); exit 1; }; }
9447 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9448 $as_echo_n "checking for ANSI C header files... " >&6; }
9449 if test "${ac_cv_header_stdc+set}" = set; then
9450 $as_echo_n "(cached) " >&6
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9471 rm -f conftest.$ac_objext
9472 if { (ac_try="$ac_compile"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9478 $as_echo "$ac_try_echo") >&5
9479 (eval "$ac_compile") 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest.$ac_objext; then
9489 ac_cv_header_stdc=yes
9491 $as_echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_header_stdc=no
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 if test $ac_cv_header_stdc = yes; then
9500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9511 $EGREP "memchr" >/dev/null 2>&1; then
9514 ac_cv_header_stdc=no
9520 if test $ac_cv_header_stdc = yes; then
9521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532 $EGREP "free" >/dev/null 2>&1; then
9535 ac_cv_header_stdc=no
9541 if test $ac_cv_header_stdc = yes; then
9542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9543 if test "$cross_compiling" = yes; then
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9554 #if ((' ' & 0x0FF) == 0x020)
9555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9558 # define ISLOWER(c) \
9559 (('a' <= (c) && (c) <= 'i') \
9560 || ('j' <= (c) && (c) <= 'r') \
9561 || ('s' <= (c) && (c) <= 'z'))
9562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9570 for (i = 0; i < 256; i++)
9571 if (XOR (islower (i), ISLOWER (i))
9572 || toupper (i) != TOUPPER (i))
9577 rm -f conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_link") 2>&5
9587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594 $as_echo "$ac_try_echo") >&5
9595 (eval "$ac_try") 2>&5
9597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9601 $as_echo "$as_me: program exited with status $ac_status" >&5
9602 $as_echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_header_stdc=no
9608 rm -rf conftest.dSYM
9609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9615 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9616 $as_echo "$ac_cv_header_stdc" >&6; }
9617 if test $ac_cv_header_stdc = yes; then
9619 cat >>confdefs.h <<\_ACEOF
9620 #define STDC_HEADERS 1
9625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9635 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9636 inttypes.h stdint.h unistd.h
9638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9639 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9640 $as_echo_n "checking for $ac_header... " >&6; }
9641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9642 $as_echo_n "(cached) " >&6
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 $ac_includes_default
9652 #include <$ac_header>
9654 rm -f conftest.$ac_objext
9655 if { (ac_try="$ac_compile"
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662 (eval "$ac_compile") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest.$ac_objext; then
9672 eval "$as_ac_Header=yes"
9674 $as_echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 eval "$as_ac_Header=no"
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 ac_res=`eval 'as_val=${'$as_ac_Header'}
9683 $as_echo "$as_val"'`
9684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9685 $as_echo "$ac_res" >&6; }
9686 as_val=`eval 'as_val=${'$as_ac_Header'}
9687 $as_echo "$as_val"'`
9688 if test "x$as_val" = x""yes; then
9689 cat >>confdefs.h <<_ACEOF
9690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9728 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/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9732 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9733 $as_echo_n "checking for $ac_header... " >&6; }
9734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9735 $as_echo_n "(cached) " >&6
9737 ac_res=`eval 'as_val=${'$as_ac_Header'}
9738 $as_echo "$as_val"'`
9739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9740 $as_echo "$ac_res" >&6; }
9742 # Is the header compilable?
9743 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744 $as_echo_n "checking $ac_header usability... " >&6; }
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 $ac_includes_default
9752 #include <$ac_header>
9754 rm -f conftest.$ac_objext
9755 if { (ac_try="$ac_compile"
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9761 $as_echo "$ac_try_echo") >&5
9762 (eval "$ac_compile") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest.$ac_objext; then
9772 ac_header_compiler=yes
9774 $as_echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_header_compiler=no
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9782 $as_echo "$ac_header_compiler" >&6; }
9784 # Is the header present?
9785 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9786 $as_echo_n "checking $ac_header presence... " >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <$ac_header>
9795 if { (ac_try="$ac_cpp conftest.$ac_ext"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9801 $as_echo "$ac_try_echo") >&5
9802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9804 grep -v '^ *+' conftest.er1 >conftest.err
9806 cat conftest.err >&5
9807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } >/dev/null && {
9809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9812 ac_header_preproc=yes
9814 $as_echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_header_preproc=no
9820 rm -f conftest.err conftest.$ac_ext
9821 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9822 $as_echo "$ac_header_preproc" >&6; }
9824 # So? What about this header?
9825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9828 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9831 ac_header_preproc=yes
9834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9835 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9837 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9839 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9841 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9843 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9845 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9847 ## ---------------------------------------- ##
9848 ## Report this to pgsql-bugs@postgresql.org ##
9849 ## ---------------------------------------- ##
9851 ) | sed "s/^/$as_me: WARNING: /" >&2
9854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9855 $as_echo_n "checking for $ac_header... " >&6; }
9856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9857 $as_echo_n "(cached) " >&6
9859 eval "$as_ac_Header=\$ac_header_preproc"
9861 ac_res=`eval 'as_val=${'$as_ac_Header'}
9862 $as_echo "$as_val"'`
9863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9864 $as_echo "$ac_res" >&6; }
9867 as_val=`eval 'as_val=${'$as_ac_Header'}
9868 $as_echo "$as_val"'`
9869 if test "x$as_val" = x""yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9879 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9880 # is included first.
9882 for ac_header in net/if.h
9884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 $as_echo_n "checking for $ac_header... " >&6; }
9887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 $as_echo_n "(cached) " >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $ac_includes_default
9897 #ifdef HAVE_SYS_SOCKET_H
9898 #include <sys/socket.h>
9902 #include <$ac_header>
9904 rm -f conftest.$ac_objext
9905 if { (ac_try="$ac_compile"
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9911 $as_echo "$ac_try_echo") >&5
9912 (eval "$ac_compile") 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && {
9919 test -z "$ac_c_werror_flag" ||
9920 test ! -s conftest.err
9921 } && test -s conftest.$ac_objext; then
9922 eval "$as_ac_Header=yes"
9924 $as_echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 eval "$as_ac_Header=no"
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932 ac_res=`eval 'as_val=${'$as_ac_Header'}
9933 $as_echo "$as_val"'`
9934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9935 $as_echo "$ac_res" >&6; }
9936 as_val=`eval 'as_val=${'$as_ac_Header'}
9937 $as_echo "$as_val"'`
9938 if test "x$as_val" = x""yes; then
9939 cat >>confdefs.h <<_ACEOF
9940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9948 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9949 # netinet/in.h is included first.
9951 for ac_header in netinet/in.h
9953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9956 $as_echo_n "checking for $ac_header... " >&6; }
9957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9958 $as_echo_n "(cached) " >&6
9960 ac_res=`eval 'as_val=${'$as_ac_Header'}
9961 $as_echo "$as_val"'`
9962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9963 $as_echo "$ac_res" >&6; }
9965 # Is the header compilable?
9966 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9967 $as_echo_n "checking $ac_header usability... " >&6; }
9968 cat >conftest.$ac_ext <<_ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9974 $ac_includes_default
9975 #include <$ac_header>
9977 rm -f conftest.$ac_objext
9978 if { (ac_try="$ac_compile"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_compile") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest.$ac_objext; then
9995 ac_header_compiler=yes
9997 $as_echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 ac_header_compiler=no
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10005 $as_echo "$ac_header_compiler" >&6; }
10007 # Is the header present?
10008 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10009 $as_echo_n "checking $ac_header presence... " >&6; }
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #include <$ac_header>
10018 if { (ac_try="$ac_cpp conftest.$ac_ext"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10024 $as_echo "$ac_try_echo") >&5
10025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } >/dev/null && {
10032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10035 ac_header_preproc=yes
10037 $as_echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_header_preproc=no
10043 rm -f conftest.err conftest.$ac_ext
10044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10045 $as_echo "$ac_header_preproc" >&6; }
10047 # So? What about this header?
10048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10051 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10054 ac_header_preproc=yes
10057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10058 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10060 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10062 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10064 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10068 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10070 ## ---------------------------------------- ##
10071 ## Report this to pgsql-bugs@postgresql.org ##
10072 ## ---------------------------------------- ##
10074 ) | sed "s/^/$as_me: WARNING: /" >&2
10077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10078 $as_echo_n "checking for $ac_header... " >&6; }
10079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10080 $as_echo_n "(cached) " >&6
10082 eval "$as_ac_Header=\$ac_header_preproc"
10084 ac_res=`eval 'as_val=${'$as_ac_Header'}
10085 $as_echo "$as_val"'`
10086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10087 $as_echo "$ac_res" >&6; }
10090 as_val=`eval 'as_val=${'$as_ac_Header'}
10091 $as_echo "$as_val"'`
10092 if test "x$as_val" = x""yes; then
10093 cat >>confdefs.h <<_ACEOF
10094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 for ac_header in netinet/tcp.h
10104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10106 $as_echo_n "checking for $ac_header... " >&6; }
10107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 $as_echo_n "(cached) " >&6
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 #ifdef HAVE_NETINET_IN_H
10118 #include <netinet/in.h>
10122 #include <$ac_header>
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10131 $as_echo "$ac_try_echo") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.$ac_objext; then
10142 eval "$as_ac_Header=yes"
10144 $as_echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 eval "$as_ac_Header=no"
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 ac_res=`eval 'as_val=${'$as_ac_Header'}
10153 $as_echo "$as_val"'`
10154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10155 $as_echo "$ac_res" >&6; }
10156 as_val=`eval 'as_val=${'$as_ac_Header'}
10157 $as_echo "$as_val"'`
10158 if test "x$as_val" = x""yes; then
10159 cat >>confdefs.h <<_ACEOF
10160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10170 for ac_header in readline/readline.h
10172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10175 $as_echo_n "checking for $ac_header... " >&6; }
10176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10177 $as_echo_n "(cached) " >&6
10179 ac_res=`eval 'as_val=${'$as_ac_Header'}
10180 $as_echo "$as_val"'`
10181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10182 $as_echo "$ac_res" >&6; }
10184 # Is the header compilable?
10185 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10186 $as_echo_n "checking $ac_header usability... " >&6; }
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193 $ac_includes_default
10194 #include <$ac_header>
10196 rm -f conftest.$ac_objext
10197 if { (ac_try="$ac_compile"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10203 $as_echo "$ac_try_echo") >&5
10204 (eval "$ac_compile") 2>conftest.er1
10206 grep -v '^ *+' conftest.er1 >conftest.err
10208 cat conftest.err >&5
10209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && {
10211 test -z "$ac_c_werror_flag" ||
10212 test ! -s conftest.err
10213 } && test -s conftest.$ac_objext; then
10214 ac_header_compiler=yes
10216 $as_echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_header_compiler=no
10222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10224 $as_echo "$ac_header_compiler" >&6; }
10226 # Is the header present?
10227 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10228 $as_echo_n "checking $ac_header presence... " >&6; }
10229 cat >conftest.$ac_ext <<_ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10235 #include <$ac_header>
10237 if { (ac_try="$ac_cpp conftest.$ac_ext"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10243 $as_echo "$ac_try_echo") >&5
10244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } >/dev/null && {
10251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10252 test ! -s conftest.err
10254 ac_header_preproc=yes
10256 $as_echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_header_preproc=no
10262 rm -f conftest.err conftest.$ac_ext
10263 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10264 $as_echo "$ac_header_preproc" >&6; }
10266 # So? What about this header?
10267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10270 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10272 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10273 ac_header_preproc=yes
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10279 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10281 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10283 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10285 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10287 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10289 ## ---------------------------------------- ##
10290 ## Report this to pgsql-bugs@postgresql.org ##
10291 ## ---------------------------------------- ##
10293 ) | sed "s/^/$as_me: WARNING: /" >&2
10296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10297 $as_echo_n "checking for $ac_header... " >&6; }
10298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10299 $as_echo_n "(cached) " >&6
10301 eval "$as_ac_Header=\$ac_header_preproc"
10303 ac_res=`eval 'as_val=${'$as_ac_Header'}
10304 $as_echo "$as_val"'`
10305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306 $as_echo "$ac_res" >&6; }
10309 as_val=`eval 'as_val=${'$as_ac_Header'}
10310 $as_echo "$as_val"'`
10311 if test "x$as_val" = x""yes; then
10312 cat >>confdefs.h <<_ACEOF
10313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10318 for ac_header in readline.h
10320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10322 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10323 $as_echo_n "checking for $ac_header... " >&6; }
10324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10325 $as_echo_n "(cached) " >&6
10327 ac_res=`eval 'as_val=${'$as_ac_Header'}
10328 $as_echo "$as_val"'`
10329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10330 $as_echo "$ac_res" >&6; }
10332 # Is the header compilable?
10333 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10334 $as_echo_n "checking $ac_header usability... " >&6; }
10335 cat >conftest.$ac_ext <<_ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 $ac_includes_default
10342 #include <$ac_header>
10344 rm -f conftest.$ac_objext
10345 if { (ac_try="$ac_compile"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_compile") 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest.$ac_objext; then
10362 ac_header_compiler=yes
10364 $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_header_compiler=no
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10372 $as_echo "$ac_header_compiler" >&6; }
10374 # Is the header present?
10375 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10376 $as_echo_n "checking $ac_header presence... " >&6; }
10377 cat >conftest.$ac_ext <<_ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <$ac_header>
10385 if { (ac_try="$ac_cpp conftest.$ac_ext"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10391 $as_echo "$ac_try_echo") >&5
10392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } >/dev/null && {
10399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10402 ac_header_preproc=yes
10404 $as_echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_header_preproc=no
10410 rm -f conftest.err conftest.$ac_ext
10411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10412 $as_echo "$ac_header_preproc" >&6; }
10414 # So? What about this header?
10415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10418 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10421 ac_header_preproc=yes
10424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10425 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10427 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10429 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10431 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10435 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10437 ## ---------------------------------------- ##
10438 ## Report this to pgsql-bugs@postgresql.org ##
10439 ## ---------------------------------------- ##
10441 ) | sed "s/^/$as_me: WARNING: /" >&2
10444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10445 $as_echo_n "checking for $ac_header... " >&6; }
10446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10447 $as_echo_n "(cached) " >&6
10449 eval "$as_ac_Header=\$ac_header_preproc"
10451 ac_res=`eval 'as_val=${'$as_ac_Header'}
10452 $as_echo "$as_val"'`
10453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10454 $as_echo "$ac_res" >&6; }
10457 as_val=`eval 'as_val=${'$as_ac_Header'}
10458 $as_echo "$as_val"'`
10459 if test "x$as_val" = x""yes; then
10460 cat >>confdefs.h <<_ACEOF
10461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10465 { { $as_echo "$as_me:$LINENO: error: readline header not found
10466 If you have readline already installed, see config.log for details on the
10467 failure. It is possible the compiler isn't looking in the proper directory.
10468 Use --without-readline to disable readline support." >&5
10469 $as_echo "$as_me: error: readline header not found
10470 If you have readline already installed, see config.log for details on the
10471 failure. It is possible the compiler isn't looking in the proper directory.
10472 Use --without-readline to disable readline support." >&2;}
10473 { (exit 1); exit 1; }; }
10483 for ac_header in readline/history.h
10485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10487 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 $as_echo_n "checking for $ac_header... " >&6; }
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 $as_echo_n "(cached) " >&6
10492 ac_res=`eval 'as_val=${'$as_ac_Header'}
10493 $as_echo "$as_val"'`
10494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10495 $as_echo "$ac_res" >&6; }
10497 # Is the header compilable?
10498 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10499 $as_echo_n "checking $ac_header usability... " >&6; }
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 #include <$ac_header>
10509 rm -f conftest.$ac_objext
10510 if { (ac_try="$ac_compile"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10516 $as_echo "$ac_try_echo") >&5
10517 (eval "$ac_compile") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest.$ac_objext; then
10527 ac_header_compiler=yes
10529 $as_echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_header_compiler=no
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10537 $as_echo "$ac_header_compiler" >&6; }
10539 # Is the header present?
10540 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10541 $as_echo_n "checking $ac_header presence... " >&6; }
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 #include <$ac_header>
10550 if { (ac_try="$ac_cpp conftest.$ac_ext"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556 $as_echo "$ac_try_echo") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev/null && {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10567 ac_header_preproc=yes
10569 $as_echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_preproc=no
10575 rm -f conftest.err conftest.$ac_ext
10576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 $as_echo "$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 ## ---------------------------------------- ##
10603 ## Report this to pgsql-bugs@postgresql.org ##
10604 ## ---------------------------------------- ##
10606 ) | sed "s/^/$as_me: WARNING: /" >&2
10609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 $as_echo_n "checking for $ac_header... " >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612 $as_echo_n "(cached) " >&6
10614 eval "$as_ac_Header=\$ac_header_preproc"
10616 ac_res=`eval 'as_val=${'$as_ac_Header'}
10617 $as_echo "$as_val"'`
10618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10619 $as_echo "$ac_res" >&6; }
10622 as_val=`eval 'as_val=${'$as_ac_Header'}
10623 $as_echo "$as_val"'`
10624 if test "x$as_val" = x""yes; then
10625 cat >>confdefs.h <<_ACEOF
10626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10631 for ac_header in history.h
10633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 $as_echo_n "checking for $ac_header... " >&6; }
10637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10638 $as_echo_n "(cached) " >&6
10640 ac_res=`eval 'as_val=${'$as_ac_Header'}
10641 $as_echo "$as_val"'`
10642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10643 $as_echo "$ac_res" >&6; }
10645 # Is the header compilable?
10646 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10647 $as_echo_n "checking $ac_header usability... " >&6; }
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 $ac_includes_default
10655 #include <$ac_header>
10657 rm -f conftest.$ac_objext
10658 if { (ac_try="$ac_compile"
10659 case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10664 $as_echo "$ac_try_echo") >&5
10665 (eval "$ac_compile") 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest.$ac_objext; then
10675 ac_header_compiler=yes
10677 $as_echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 ac_header_compiler=no
10683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10685 $as_echo "$ac_header_compiler" >&6; }
10687 # Is the header present?
10688 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10689 $as_echo_n "checking $ac_header presence... " >&6; }
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 #include <$ac_header>
10698 if { (ac_try="$ac_cpp conftest.$ac_ext"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704 $as_echo "$ac_try_echo") >&5
10705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } >/dev/null && {
10712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10715 ac_header_preproc=yes
10717 $as_echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_header_preproc=no
10723 rm -f conftest.err conftest.$ac_ext
10724 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10725 $as_echo "$ac_header_preproc" >&6; }
10727 # So? What about this header?
10728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10731 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10734 ac_header_preproc=yes
10737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10738 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10740 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10742 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10744 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10748 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10750 ## ---------------------------------------- ##
10751 ## Report this to pgsql-bugs@postgresql.org ##
10752 ## ---------------------------------------- ##
10754 ) | sed "s/^/$as_me: WARNING: /" >&2
10757 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10758 $as_echo_n "checking for $ac_header... " >&6; }
10759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760 $as_echo_n "(cached) " >&6
10762 eval "$as_ac_Header=\$ac_header_preproc"
10764 ac_res=`eval 'as_val=${'$as_ac_Header'}
10765 $as_echo "$as_val"'`
10766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10767 $as_echo "$ac_res" >&6; }
10770 as_val=`eval 'as_val=${'$as_ac_Header'}
10771 $as_echo "$as_val"'`
10772 if test "x$as_val" = x""yes; then
10773 cat >>confdefs.h <<_ACEOF
10774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10778 { { $as_echo "$as_me:$LINENO: error: history header not found
10779 If you have readline already installed, see config.log for details on the
10780 failure. It is possible the compiler isn't looking in the proper directory.
10781 Use --without-readline to disable readline support." >&5
10782 $as_echo "$as_me: error: history header not found
10783 If you have readline already installed, see config.log for details on the
10784 failure. It is possible the compiler isn't looking in the proper directory.
10785 Use --without-readline to disable readline support." >&2;}
10786 { (exit 1); exit 1; }; }
10797 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10798 # Some installations of libedit usurp /usr/include/readline/, which seems
10799 # bad practice, since in combined installations readline will have its headers
10800 # there. We might have to resort to AC_EGREP checks to make sure we found
10801 # the proper header...
10803 for ac_header in editline/readline.h
10805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10808 $as_echo_n "checking for $ac_header... " >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810 $as_echo_n "(cached) " >&6
10812 ac_res=`eval 'as_val=${'$as_ac_Header'}
10813 $as_echo "$as_val"'`
10814 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10815 $as_echo "$ac_res" >&6; }
10817 # Is the header compilable?
10818 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10819 $as_echo_n "checking $ac_header usability... " >&6; }
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 $ac_includes_default
10827 #include <$ac_header>
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10836 $as_echo "$ac_try_echo") >&5
10837 (eval "$ac_compile") 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } && {
10844 test -z "$ac_c_werror_flag" ||
10845 test ! -s conftest.err
10846 } && test -s conftest.$ac_objext; then
10847 ac_header_compiler=yes
10849 $as_echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 ac_header_compiler=no
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10857 $as_echo "$ac_header_compiler" >&6; }
10859 # Is the header present?
10860 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10861 $as_echo_n "checking $ac_header presence... " >&6; }
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <$ac_header>
10870 if { (ac_try="$ac_cpp conftest.$ac_ext"
10871 case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10876 $as_echo "$ac_try_echo") >&5
10877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10879 grep -v '^ *+' conftest.er1 >conftest.err
10881 cat conftest.err >&5
10882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } >/dev/null && {
10884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10885 test ! -s conftest.err
10887 ac_header_preproc=yes
10889 $as_echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_header_preproc=no
10895 rm -f conftest.err conftest.$ac_ext
10896 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10897 $as_echo "$ac_header_preproc" >&6; }
10899 # So? What about this header?
10900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10903 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10906 ac_header_preproc=yes
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10920 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10922 ## ---------------------------------------- ##
10923 ## Report this to pgsql-bugs@postgresql.org ##
10924 ## ---------------------------------------- ##
10926 ) | sed "s/^/$as_me: WARNING: /" >&2
10929 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10930 $as_echo_n "checking for $ac_header... " >&6; }
10931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10932 $as_echo_n "(cached) " >&6
10934 eval "$as_ac_Header=\$ac_header_preproc"
10936 ac_res=`eval 'as_val=${'$as_ac_Header'}
10937 $as_echo "$as_val"'`
10938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10939 $as_echo "$ac_res" >&6; }
10942 as_val=`eval 'as_val=${'$as_ac_Header'}
10943 $as_echo "$as_val"'`
10944 if test "x$as_val" = x""yes; then
10945 cat >>confdefs.h <<_ACEOF
10946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951 for ac_header in readline.h
10953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10956 $as_echo_n "checking for $ac_header... " >&6; }
10957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10958 $as_echo_n "(cached) " >&6
10960 ac_res=`eval 'as_val=${'$as_ac_Header'}
10961 $as_echo "$as_val"'`
10962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10963 $as_echo "$ac_res" >&6; }
10965 # Is the header compilable?
10966 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10967 $as_echo_n "checking $ac_header usability... " >&6; }
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 $ac_includes_default
10975 #include <$ac_header>
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_compile") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest.$ac_objext; then
10995 ac_header_compiler=yes
10997 $as_echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
11000 ac_header_compiler=no
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11005 $as_echo "$ac_header_compiler" >&6; }
11007 # Is the header present?
11008 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11009 $as_echo_n "checking $ac_header presence... " >&6; }
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 #include <$ac_header>
11018 if { (ac_try="$ac_cpp conftest.$ac_ext"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11024 $as_echo "$ac_try_echo") >&5
11025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11027 grep -v '^ *+' conftest.er1 >conftest.err
11029 cat conftest.err >&5
11030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } >/dev/null && {
11032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11033 test ! -s conftest.err
11035 ac_header_preproc=yes
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 ac_header_preproc=no
11043 rm -f conftest.err conftest.$ac_ext
11044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11045 $as_echo "$ac_header_preproc" >&6; }
11047 # So? What about this header?
11048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11051 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11054 ac_header_preproc=yes
11057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11058 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11060 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11062 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11068 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11070 ## ---------------------------------------- ##
11071 ## Report this to pgsql-bugs@postgresql.org ##
11072 ## ---------------------------------------- ##
11074 ) | sed "s/^/$as_me: WARNING: /" >&2
11077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11078 $as_echo_n "checking for $ac_header... " >&6; }
11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080 $as_echo_n "(cached) " >&6
11082 eval "$as_ac_Header=\$ac_header_preproc"
11084 ac_res=`eval 'as_val=${'$as_ac_Header'}
11085 $as_echo "$as_val"'`
11086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11087 $as_echo "$ac_res" >&6; }
11090 as_val=`eval 'as_val=${'$as_ac_Header'}
11091 $as_echo "$as_val"'`
11092 if test "x$as_val" = x""yes; then
11093 cat >>confdefs.h <<_ACEOF
11094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099 for ac_header in readline/readline.h
11101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 $as_echo_n "checking for $ac_header... " >&6; }
11105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11106 $as_echo_n "(cached) " >&6
11108 ac_res=`eval 'as_val=${'$as_ac_Header'}
11109 $as_echo "$as_val"'`
11110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11111 $as_echo "$ac_res" >&6; }
11113 # Is the header compilable?
11114 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11115 $as_echo_n "checking $ac_header usability... " >&6; }
11116 cat >conftest.$ac_ext <<_ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 $ac_includes_default
11123 #include <$ac_header>
11125 rm -f conftest.$ac_objext
11126 if { (ac_try="$ac_compile"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11132 $as_echo "$ac_try_echo") >&5
11133 (eval "$ac_compile") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest.$ac_objext; then
11143 ac_header_compiler=yes
11145 $as_echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_header_compiler=no
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11153 $as_echo "$ac_header_compiler" >&6; }
11155 # Is the header present?
11156 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11157 $as_echo_n "checking $ac_header presence... " >&6; }
11158 cat >conftest.$ac_ext <<_ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 #include <$ac_header>
11166 if { (ac_try="$ac_cpp conftest.$ac_ext"
11167 case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11172 $as_echo "$ac_try_echo") >&5
11173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } >/dev/null && {
11180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11183 ac_header_preproc=yes
11185 $as_echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_header_preproc=no
11191 rm -f conftest.err conftest.$ac_ext
11192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11193 $as_echo "$ac_header_preproc" >&6; }
11195 # So? What about this header?
11196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11199 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11201 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11202 ac_header_preproc=yes
11205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11206 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11208 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11210 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11212 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11216 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218 ## ---------------------------------------- ##
11219 ## Report this to pgsql-bugs@postgresql.org ##
11220 ## ---------------------------------------- ##
11222 ) | sed "s/^/$as_me: WARNING: /" >&2
11225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11226 $as_echo_n "checking for $ac_header... " >&6; }
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 $as_echo_n "(cached) " >&6
11230 eval "$as_ac_Header=\$ac_header_preproc"
11232 ac_res=`eval 'as_val=${'$as_ac_Header'}
11233 $as_echo "$as_val"'`
11234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11235 $as_echo "$ac_res" >&6; }
11238 as_val=`eval 'as_val=${'$as_ac_Header'}
11239 $as_echo "$as_val"'`
11240 if test "x$as_val" = x""yes; then
11241 cat >>confdefs.h <<_ACEOF
11242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11246 { { $as_echo "$as_me:$LINENO: error: readline header not found
11247 If you have libedit already installed, see config.log for details on the
11248 failure. It is possible the compiler isn't looking in the proper directory.
11249 Use --without-readline to disable libedit support." >&5
11250 $as_echo "$as_me: error: readline header not found
11251 If you have libedit already installed, see config.log for details on the
11252 failure. It is possible the compiler isn't looking in the proper directory.
11253 Use --without-readline to disable libedit support." >&2;}
11254 { (exit 1); exit 1; }; }
11267 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11268 # not be there at all. Hence, don't complain if not found. We must check
11269 # though, since in yet other versions it is an independent header.
11271 for ac_header in editline/history.h
11273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11276 $as_echo_n "checking for $ac_header... " >&6; }
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278 $as_echo_n "(cached) " >&6
11280 ac_res=`eval 'as_val=${'$as_ac_Header'}
11281 $as_echo "$as_val"'`
11282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11283 $as_echo "$ac_res" >&6; }
11285 # Is the header compilable?
11286 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11287 $as_echo_n "checking $ac_header usability... " >&6; }
11288 cat >conftest.$ac_ext <<_ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 $ac_includes_default
11295 #include <$ac_header>
11297 rm -f conftest.$ac_objext
11298 if { (ac_try="$ac_compile"
11299 case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304 $as_echo "$ac_try_echo") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest.$ac_objext; then
11315 ac_header_compiler=yes
11317 $as_echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11320 ac_header_compiler=no
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11325 $as_echo "$ac_header_compiler" >&6; }
11327 # Is the header present?
11328 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11329 $as_echo_n "checking $ac_header presence... " >&6; }
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 #include <$ac_header>
11338 if { (ac_try="$ac_cpp conftest.$ac_ext"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11344 $as_echo "$ac_try_echo") >&5
11345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null && {
11352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11355 ac_header_preproc=yes
11357 $as_echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_preproc=no
11363 rm -f conftest.err conftest.$ac_ext
11364 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 $as_echo "$ac_header_preproc" >&6; }
11367 # So? What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374 ac_header_preproc=yes
11377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390 ## ---------------------------------------- ##
11391 ## Report this to pgsql-bugs@postgresql.org ##
11392 ## ---------------------------------------- ##
11394 ) | sed "s/^/$as_me: WARNING: /" >&2
11397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 $as_echo_n "checking for $ac_header... " >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 $as_echo_n "(cached) " >&6
11402 eval "$as_ac_Header=\$ac_header_preproc"
11404 ac_res=`eval 'as_val=${'$as_ac_Header'}
11405 $as_echo "$as_val"'`
11406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11407 $as_echo "$ac_res" >&6; }
11410 as_val=`eval 'as_val=${'$as_ac_Header'}
11411 $as_echo "$as_val"'`
11412 if test "x$as_val" = x""yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11419 for ac_header in history.h
11421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11423 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 $as_echo_n "checking for $ac_header... " >&6; }
11425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426 $as_echo_n "(cached) " >&6
11428 ac_res=`eval 'as_val=${'$as_ac_Header'}
11429 $as_echo "$as_val"'`
11430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11431 $as_echo "$ac_res" >&6; }
11433 # Is the header compilable?
11434 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11435 $as_echo_n "checking $ac_header usability... " >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11443 #include <$ac_header>
11445 rm -f conftest.$ac_objext
11446 if { (ac_try="$ac_compile"
11447 case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452 $as_echo "$ac_try_echo") >&5
11453 (eval "$ac_compile") 2>conftest.er1
11455 grep -v '^ *+' conftest.er1 >conftest.err
11457 cat conftest.err >&5
11458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && {
11460 test -z "$ac_c_werror_flag" ||
11461 test ! -s conftest.err
11462 } && test -s conftest.$ac_objext; then
11463 ac_header_compiler=yes
11465 $as_echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 ac_header_compiler=no
11471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11473 $as_echo "$ac_header_compiler" >&6; }
11475 # Is the header present?
11476 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11477 $as_echo_n "checking $ac_header presence... " >&6; }
11478 cat >conftest.$ac_ext <<_ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 #include <$ac_header>
11486 if { (ac_try="$ac_cpp conftest.$ac_ext"
11487 case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11492 $as_echo "$ac_try_echo") >&5
11493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } >/dev/null && {
11500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11503 ac_header_preproc=yes
11505 $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_header_preproc=no
11511 rm -f conftest.err conftest.$ac_ext
11512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11513 $as_echo "$ac_header_preproc" >&6; }
11515 # So? What about this header?
11516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11519 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11521 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11522 ac_header_preproc=yes
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11526 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11528 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11536 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538 ## ---------------------------------------- ##
11539 ## Report this to pgsql-bugs@postgresql.org ##
11540 ## ---------------------------------------- ##
11542 ) | sed "s/^/$as_me: WARNING: /" >&2
11545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 $as_echo_n "checking for $ac_header... " >&6; }
11547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 $as_echo_n "(cached) " >&6
11550 eval "$as_ac_Header=\$ac_header_preproc"
11552 ac_res=`eval 'as_val=${'$as_ac_Header'}
11553 $as_echo "$as_val"'`
11554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11555 $as_echo "$ac_res" >&6; }
11558 as_val=`eval 'as_val=${'$as_ac_Header'}
11559 $as_echo "$as_val"'`
11560 if test "x$as_val" = x""yes; then
11561 cat >>confdefs.h <<_ACEOF
11562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 for ac_header in readline/history.h
11569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11572 $as_echo_n "checking for $ac_header... " >&6; }
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574 $as_echo_n "(cached) " >&6
11576 ac_res=`eval 'as_val=${'$as_ac_Header'}
11577 $as_echo "$as_val"'`
11578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11579 $as_echo "$ac_res" >&6; }
11581 # Is the header compilable?
11582 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11583 $as_echo_n "checking $ac_header usability... " >&6; }
11584 cat >conftest.$ac_ext <<_ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 $ac_includes_default
11591 #include <$ac_header>
11593 rm -f conftest.$ac_objext
11594 if { (ac_try="$ac_compile"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11600 $as_echo "$ac_try_echo") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11611 ac_header_compiler=yes
11613 $as_echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_compiler=no
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11621 $as_echo "$ac_header_compiler" >&6; }
11623 # Is the header present?
11624 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11625 $as_echo_n "checking $ac_header presence... " >&6; }
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 #include <$ac_header>
11634 if { (ac_try="$ac_cpp conftest.$ac_ext"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11640 $as_echo "$ac_try_echo") >&5
11641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11643 grep -v '^ *+' conftest.er1 >conftest.err
11645 cat conftest.err >&5
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } >/dev/null && {
11648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11651 ac_header_preproc=yes
11653 $as_echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_header_preproc=no
11659 rm -f conftest.err conftest.$ac_ext
11660 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11661 $as_echo "$ac_header_preproc" >&6; }
11663 # So? What about this header?
11664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11667 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11670 ac_header_preproc=yes
11673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11674 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11676 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11678 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11680 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11684 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11686 ## ---------------------------------------- ##
11687 ## Report this to pgsql-bugs@postgresql.org ##
11688 ## ---------------------------------------- ##
11690 ) | sed "s/^/$as_me: WARNING: /" >&2
11693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11694 $as_echo_n "checking for $ac_header... " >&6; }
11695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11696 $as_echo_n "(cached) " >&6
11698 eval "$as_ac_Header=\$ac_header_preproc"
11700 ac_res=`eval 'as_val=${'$as_ac_Header'}
11701 $as_echo "$as_val"'`
11702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11703 $as_echo "$ac_res" >&6; }
11706 as_val=`eval 'as_val=${'$as_ac_Header'}
11707 $as_echo "$as_val"'`
11708 if test "x$as_val" = x""yes; then
11709 cat >>confdefs.h <<_ACEOF
11710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727 if test "$with_zlib" = yes; then
11728 if test "${ac_cv_header_zlib_h+set}" = set; then
11729 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11730 $as_echo_n "checking for zlib.h... " >&6; }
11731 if test "${ac_cv_header_zlib_h+set}" = set; then
11732 $as_echo_n "(cached) " >&6
11734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11735 $as_echo "$ac_cv_header_zlib_h" >&6; }
11737 # Is the header compilable?
11738 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11739 $as_echo_n "checking zlib.h usability... " >&6; }
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 $ac_includes_default
11749 rm -f conftest.$ac_objext
11750 if { (ac_try="$ac_compile"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756 $as_echo "$ac_try_echo") >&5
11757 (eval "$ac_compile") 2>conftest.er1
11759 grep -v '^ *+' conftest.er1 >conftest.err
11761 cat conftest.err >&5
11762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && {
11764 test -z "$ac_c_werror_flag" ||
11765 test ! -s conftest.err
11766 } && test -s conftest.$ac_objext; then
11767 ac_header_compiler=yes
11769 $as_echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ac_header_compiler=no
11775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11777 $as_echo "$ac_header_compiler" >&6; }
11779 # Is the header present?
11780 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11781 $as_echo_n "checking zlib.h presence... " >&6; }
11782 cat >conftest.$ac_ext <<_ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11790 if { (ac_try="$ac_cpp conftest.$ac_ext"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev/null && {
11804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11807 ac_header_preproc=yes
11809 $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 ac_header_preproc=no
11815 rm -f conftest.err conftest.$ac_ext
11816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11817 $as_echo "$ac_header_preproc" >&6; }
11819 # So? What about this header?
11820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11822 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11823 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11824 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11825 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11826 ac_header_preproc=yes
11829 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11830 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11831 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11832 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11833 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11834 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11835 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11836 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11837 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11838 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11839 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11840 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11842 ## ---------------------------------------- ##
11843 ## Report this to pgsql-bugs@postgresql.org ##
11844 ## ---------------------------------------- ##
11846 ) | sed "s/^/$as_me: WARNING: /" >&2
11849 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11850 $as_echo_n "checking for zlib.h... " >&6; }
11851 if test "${ac_cv_header_zlib_h+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11854 ac_cv_header_zlib_h=$ac_header_preproc
11856 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11857 $as_echo "$ac_cv_header_zlib_h" >&6; }
11860 if test "x$ac_cv_header_zlib_h" = x""yes; then
11863 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11864 If you have zlib already installed, see config.log for details on the
11865 failure. It is possible the compiler isn't looking in the proper directory.
11866 Use --without-zlib to disable zlib support." >&5
11867 $as_echo "$as_me: error: zlib header not found
11868 If you have zlib already installed, see config.log for details on the
11869 failure. It is possible the compiler isn't looking in the proper directory.
11870 Use --without-zlib to disable zlib support." >&2;}
11871 { (exit 1); exit 1; }; }
11877 if test "$with_gssapi" = yes ; then
11879 for ac_header in gssapi/gssapi.h
11881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11884 $as_echo_n "checking for $ac_header... " >&6; }
11885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11886 $as_echo_n "(cached) " >&6
11888 ac_res=`eval 'as_val=${'$as_ac_Header'}
11889 $as_echo "$as_val"'`
11890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11891 $as_echo "$ac_res" >&6; }
11893 # Is the header compilable?
11894 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11895 $as_echo_n "checking $ac_header usability... " >&6; }
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 #include <$ac_header>
11905 rm -f conftest.$ac_objext
11906 if { (ac_try="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11912 $as_echo "$ac_try_echo") >&5
11913 (eval "$ac_compile") 2>conftest.er1
11915 grep -v '^ *+' conftest.er1 >conftest.err
11917 cat conftest.err >&5
11918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest.$ac_objext; then
11923 ac_header_compiler=yes
11925 $as_echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 ac_header_compiler=no
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11933 $as_echo "$ac_header_compiler" >&6; }
11935 # Is the header present?
11936 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11937 $as_echo_n "checking $ac_header presence... " >&6; }
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 #include <$ac_header>
11946 if { (ac_try="$ac_cpp conftest.$ac_ext"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952 $as_echo "$ac_try_echo") >&5
11953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } >/dev/null && {
11960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11961 test ! -s conftest.err
11963 ac_header_preproc=yes
11965 $as_echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 ac_header_preproc=no
11971 rm -f conftest.err conftest.$ac_ext
11972 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11973 $as_echo "$ac_header_preproc" >&6; }
11975 # So? What about this header?
11976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11979 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11981 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11982 ac_header_preproc=yes
11985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11986 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11988 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11990 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11992 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11994 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11996 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11998 ## ---------------------------------------- ##
11999 ## Report this to pgsql-bugs@postgresql.org ##
12000 ## ---------------------------------------- ##
12002 ) | sed "s/^/$as_me: WARNING: /" >&2
12005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12006 $as_echo_n "checking for $ac_header... " >&6; }
12007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12008 $as_echo_n "(cached) " >&6
12010 eval "$as_ac_Header=\$ac_header_preproc"
12012 ac_res=`eval 'as_val=${'$as_ac_Header'}
12013 $as_echo "$as_val"'`
12014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12015 $as_echo "$ac_res" >&6; }
12018 as_val=`eval 'as_val=${'$as_ac_Header'}
12019 $as_echo "$as_val"'`
12020 if test "x$as_val" = x""yes; then
12021 cat >>confdefs.h <<_ACEOF
12022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 for ac_header in gssapi.h
12029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12032 $as_echo_n "checking for $ac_header... " >&6; }
12033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12034 $as_echo_n "(cached) " >&6
12036 ac_res=`eval 'as_val=${'$as_ac_Header'}
12037 $as_echo "$as_val"'`
12038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12039 $as_echo "$ac_res" >&6; }
12041 # Is the header compilable?
12042 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12043 $as_echo_n "checking $ac_header usability... " >&6; }
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 $ac_includes_default
12051 #include <$ac_header>
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060 $as_echo "$ac_try_echo") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 ac_header_compiler=yes
12073 $as_echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_header_compiler=no
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12081 $as_echo "$ac_header_compiler" >&6; }
12083 # Is the header present?
12084 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12085 $as_echo_n "checking $ac_header presence... " >&6; }
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 #include <$ac_header>
12094 if { (ac_try="$ac_cpp conftest.$ac_ext"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } >/dev/null && {
12108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12111 ac_header_preproc=yes
12113 $as_echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 ac_header_preproc=no
12119 rm -f conftest.err conftest.$ac_ext
12120 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12121 $as_echo "$ac_header_preproc" >&6; }
12123 # So? What about this header?
12124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12127 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12130 ac_header_preproc=yes
12133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12134 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12136 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12138 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12140 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12142 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12144 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12146 ## ---------------------------------------- ##
12147 ## Report this to pgsql-bugs@postgresql.org ##
12148 ## ---------------------------------------- ##
12150 ) | sed "s/^/$as_me: WARNING: /" >&2
12153 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12154 $as_echo_n "checking for $ac_header... " >&6; }
12155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12156 $as_echo_n "(cached) " >&6
12158 eval "$as_ac_Header=\$ac_header_preproc"
12160 ac_res=`eval 'as_val=${'$as_ac_Header'}
12161 $as_echo "$as_val"'`
12162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12163 $as_echo "$ac_res" >&6; }
12166 as_val=`eval 'as_val=${'$as_ac_Header'}
12167 $as_echo "$as_val"'`
12168 if test "x$as_val" = x""yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12174 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12175 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12176 { (exit 1); exit 1; }; }
12187 if test "$with_krb5" = yes ; then
12188 if test "${ac_cv_header_krb5_h+set}" = set; then
12189 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12190 $as_echo_n "checking for krb5.h... " >&6; }
12191 if test "${ac_cv_header_krb5_h+set}" = set; then
12192 $as_echo_n "(cached) " >&6
12194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12195 $as_echo "$ac_cv_header_krb5_h" >&6; }
12197 # Is the header compilable?
12198 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12199 $as_echo_n "checking krb5.h usability... " >&6; }
12200 cat >conftest.$ac_ext <<_ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12216 $as_echo "$ac_try_echo") >&5
12217 (eval "$ac_compile") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest.$ac_objext; then
12227 ac_header_compiler=yes
12229 $as_echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_header_compiler=no
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12237 $as_echo "$ac_header_compiler" >&6; }
12239 # Is the header present?
12240 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12241 $as_echo_n "checking krb5.h presence... " >&6; }
12242 cat >conftest.$ac_ext <<_ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12250 if { (ac_try="$ac_cpp conftest.$ac_ext"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12256 $as_echo "$ac_try_echo") >&5
12257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12259 grep -v '^ *+' conftest.er1 >conftest.err
12261 cat conftest.err >&5
12262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } >/dev/null && {
12264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12267 ac_header_preproc=yes
12269 $as_echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_header_preproc=no
12275 rm -f conftest.err conftest.$ac_ext
12276 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12277 $as_echo "$ac_header_preproc" >&6; }
12279 # So? What about this header?
12280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12282 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12283 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12284 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12285 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12286 ac_header_preproc=yes
12289 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12290 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12292 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12293 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12294 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12295 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12296 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12297 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12298 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12299 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12300 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12302 ## ---------------------------------------- ##
12303 ## Report this to pgsql-bugs@postgresql.org ##
12304 ## ---------------------------------------- ##
12306 ) | sed "s/^/$as_me: WARNING: /" >&2
12309 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12310 $as_echo_n "checking for krb5.h... " >&6; }
12311 if test "${ac_cv_header_krb5_h+set}" = set; then
12312 $as_echo_n "(cached) " >&6
12314 ac_cv_header_krb5_h=$ac_header_preproc
12316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12317 $as_echo "$ac_cv_header_krb5_h" >&6; }
12320 if test "x$ac_cv_header_krb5_h" = x""yes; then
12323 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12324 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12325 { (exit 1); exit 1; }; }
12331 if test "$with_openssl" = yes ; then
12332 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12333 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12334 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12335 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12336 $as_echo_n "(cached) " >&6
12338 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12339 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12341 # Is the header compilable?
12342 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12343 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 #include <openssl/ssl.h>
12353 rm -f conftest.$ac_objext
12354 if { (ac_try="$ac_compile"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360 $as_echo "$ac_try_echo") >&5
12361 (eval "$ac_compile") 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } && {
12368 test -z "$ac_c_werror_flag" ||
12369 test ! -s conftest.err
12370 } && test -s conftest.$ac_objext; then
12371 ac_header_compiler=yes
12373 $as_echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12376 ac_header_compiler=no
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12381 $as_echo "$ac_header_compiler" >&6; }
12383 # Is the header present?
12384 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12385 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 #include <openssl/ssl.h>
12394 if { (ac_try="$ac_cpp conftest.$ac_ext"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400 $as_echo "$ac_try_echo") >&5
12401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403 grep -v '^ *+' conftest.er1 >conftest.err
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } >/dev/null && {
12408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12411 ac_header_preproc=yes
12413 $as_echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_header_preproc=no
12419 rm -f conftest.err conftest.$ac_ext
12420 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12421 $as_echo "$ac_header_preproc" >&6; }
12423 # So? What about this header?
12424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12426 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12427 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12429 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12430 ac_header_preproc=yes
12433 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12434 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12435 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12436 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12437 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12438 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12439 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12440 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12441 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12442 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12443 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12444 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12446 ## ---------------------------------------- ##
12447 ## Report this to pgsql-bugs@postgresql.org ##
12448 ## ---------------------------------------- ##
12450 ) | sed "s/^/$as_me: WARNING: /" >&2
12453 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12454 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12455 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12456 $as_echo_n "(cached) " >&6
12458 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12461 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12464 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12467 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12468 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12469 { (exit 1); exit 1; }; }
12473 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12474 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12475 $as_echo_n "checking for openssl/err.h... " >&6; }
12476 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12477 $as_echo_n "(cached) " >&6
12479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12480 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12482 # Is the header compilable?
12483 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12484 $as_echo_n "checking openssl/err.h usability... " >&6; }
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12492 #include <openssl/err.h>
12494 rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502 (eval "$ac_compile") 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest.$ac_objext; then
12512 ac_header_compiler=yes
12514 $as_echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_header_compiler=no
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12522 $as_echo "$ac_header_compiler" >&6; }
12524 # Is the header present?
12525 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12526 $as_echo_n "checking openssl/err.h presence... " >&6; }
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <openssl/err.h>
12535 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12552 ac_header_preproc=yes
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_preproc=no
12560 rm -f conftest.err conftest.$ac_ext
12561 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12562 $as_echo "$ac_header_preproc" >&6; }
12564 # So? What about this header?
12565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12567 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12568 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12569 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12570 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12571 ac_header_preproc=yes
12574 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12575 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12576 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12577 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12578 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12579 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12580 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12581 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12582 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12583 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12584 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12585 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12587 ## ---------------------------------------- ##
12588 ## Report this to pgsql-bugs@postgresql.org ##
12589 ## ---------------------------------------- ##
12591 ) | sed "s/^/$as_me: WARNING: /" >&2
12594 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12595 $as_echo_n "checking for openssl/err.h... " >&6; }
12596 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12597 $as_echo_n "(cached) " >&6
12599 ac_cv_header_openssl_err_h=$ac_header_preproc
12601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12602 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12605 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12608 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12609 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12610 { (exit 1); exit 1; }; }
12615 for ac_func in ERR_set_mark
12617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12619 $as_echo_n "checking for $ac_func... " >&6; }
12620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12621 $as_echo_n "(cached) " >&6
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12631 #define $ac_func innocuous_$ac_func
12633 /* System header to define __stub macros and hopefully few prototypes,
12634 which can conflict with char $ac_func (); below.
12635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12636 <limits.h> exists even on freestanding compilers. */
12639 # include <limits.h>
12641 # include <assert.h>
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12653 /* The GNU C library defines this for functions which it implements
12654 to always fail with ENOSYS. Some functions are actually named
12655 something starting with __ and the normal name is an alias. */
12656 #if defined __stub_$ac_func || defined __stub___$ac_func
12663 return $ac_func ();
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12675 $as_echo "$ac_try_echo") >&5
12676 (eval "$ac_link") 2>conftest.er1
12678 grep -v '^ *+' conftest.er1 >conftest.err
12680 cat conftest.err >&5
12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest$ac_exeext && {
12686 test "$cross_compiling" = yes ||
12687 $as_test_x conftest$ac_exeext
12689 eval "$as_ac_var=yes"
12691 $as_echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 eval "$as_ac_var=no"
12697 rm -rf conftest.dSYM
12698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval 'as_val=${'$as_ac_var'}
12702 $as_echo "$as_val"'`
12703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12704 $as_echo "$ac_res" >&6; }
12705 as_val=`eval 'as_val=${'$as_ac_var'}
12706 $as_echo "$as_val"'`
12707 if test "x$as_val" = x""yes; then
12708 cat >>confdefs.h <<_ACEOF
12709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12717 if test "$with_pam" = yes ; then
12719 for ac_header in security/pam_appl.h
12721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12724 $as_echo_n "checking for $ac_header... " >&6; }
12725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12726 $as_echo_n "(cached) " >&6
12728 ac_res=`eval 'as_val=${'$as_ac_Header'}
12729 $as_echo "$as_val"'`
12730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12731 $as_echo "$ac_res" >&6; }
12733 # Is the header compilable?
12734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12735 $as_echo_n "checking $ac_header usability... " >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12743 #include <$ac_header>
12745 rm -f conftest.$ac_objext
12746 if { (ac_try="$ac_compile"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753 (eval "$ac_compile") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest.$ac_objext; then
12763 ac_header_compiler=yes
12765 $as_echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12768 ac_header_compiler=no
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 $as_echo "$ac_header_compiler" >&6; }
12775 # Is the header present?
12776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12777 $as_echo_n "checking $ac_header presence... " >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 #include <$ac_header>
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
12787 case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792 $as_echo "$ac_try_echo") >&5
12793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1 >conftest.err
12797 cat conftest.err >&5
12798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } >/dev/null && {
12800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12803 ac_header_preproc=yes
12805 $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_header_preproc=no
12811 rm -f conftest.err conftest.$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12813 $as_echo "$ac_header_preproc" >&6; }
12815 # So? What about this header?
12816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12822 ac_header_preproc=yes
12825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12838 ## ---------------------------------------- ##
12839 ## Report this to pgsql-bugs@postgresql.org ##
12840 ## ---------------------------------------- ##
12842 ) | sed "s/^/$as_me: WARNING: /" >&2
12845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12846 $as_echo_n "checking for $ac_header... " >&6; }
12847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12848 $as_echo_n "(cached) " >&6
12850 eval "$as_ac_Header=\$ac_header_preproc"
12852 ac_res=`eval 'as_val=${'$as_ac_Header'}
12853 $as_echo "$as_val"'`
12854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12855 $as_echo "$ac_res" >&6; }
12858 as_val=`eval 'as_val=${'$as_ac_Header'}
12859 $as_echo "$as_val"'`
12860 if test "x$as_val" = x""yes; then
12861 cat >>confdefs.h <<_ACEOF
12862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12867 for ac_header in pam/pam_appl.h
12869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12872 $as_echo_n "checking for $ac_header... " >&6; }
12873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12874 $as_echo_n "(cached) " >&6
12876 ac_res=`eval 'as_val=${'$as_ac_Header'}
12877 $as_echo "$as_val"'`
12878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12879 $as_echo "$ac_res" >&6; }
12881 # Is the header compilable?
12882 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12883 $as_echo_n "checking $ac_header usability... " >&6; }
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 #include <$ac_header>
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900 $as_echo "$ac_try_echo") >&5
12901 (eval "$ac_compile") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest.$ac_objext; then
12911 ac_header_compiler=yes
12913 $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_header_compiler=no
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12921 $as_echo "$ac_header_compiler" >&6; }
12923 # Is the header present?
12924 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12925 $as_echo_n "checking $ac_header presence... " >&6; }
12926 cat >conftest.$ac_ext <<_ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12932 #include <$ac_header>
12934 if { (ac_try="$ac_cpp conftest.$ac_ext"
12935 case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12940 $as_echo "$ac_try_echo") >&5
12941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12943 grep -v '^ *+' conftest.er1 >conftest.err
12945 cat conftest.err >&5
12946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } >/dev/null && {
12948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12949 test ! -s conftest.err
12951 ac_header_preproc=yes
12953 $as_echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 ac_header_preproc=no
12959 rm -f conftest.err conftest.$ac_ext
12960 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12961 $as_echo "$ac_header_preproc" >&6; }
12963 # So? What about this header?
12964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12967 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12970 ac_header_preproc=yes
12973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12974 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12976 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12978 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12980 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12982 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12984 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12986 ## ---------------------------------------- ##
12987 ## Report this to pgsql-bugs@postgresql.org ##
12988 ## ---------------------------------------- ##
12990 ) | sed "s/^/$as_me: WARNING: /" >&2
12993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12994 $as_echo_n "checking for $ac_header... " >&6; }
12995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12996 $as_echo_n "(cached) " >&6
12998 eval "$as_ac_Header=\$ac_header_preproc"
13000 ac_res=`eval 'as_val=${'$as_ac_Header'}
13001 $as_echo "$as_val"'`
13002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13003 $as_echo "$ac_res" >&6; }
13006 as_val=`eval 'as_val=${'$as_ac_Header'}
13007 $as_echo "$as_val"'`
13008 if test "x$as_val" = x""yes; then
13009 cat >>confdefs.h <<_ACEOF
13010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13015 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13016 { (exit 1); exit 1; }; }
13027 if test "$with_libxml" = yes ; then
13028 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13029 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13030 $as_echo_n "checking for libxml/parser.h... " >&6; }
13031 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13032 $as_echo_n "(cached) " >&6
13034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13035 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13037 # Is the header compilable?
13038 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13039 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 #include <libxml/parser.h>
13049 rm -f conftest.$ac_objext
13050 if { (ac_try="$ac_compile"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056 $as_echo "$ac_try_echo") >&5
13057 (eval "$ac_compile") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest.$ac_objext; then
13067 ac_header_compiler=yes
13069 $as_echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13072 ac_header_compiler=no
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13077 $as_echo "$ac_header_compiler" >&6; }
13079 # Is the header present?
13080 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13081 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 #include <libxml/parser.h>
13090 if { (ac_try="$ac_cpp conftest.$ac_ext"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13096 $as_echo "$ac_try_echo") >&5
13097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } >/dev/null && {
13104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13107 ac_header_preproc=yes
13109 $as_echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13112 ac_header_preproc=no
13115 rm -f conftest.err conftest.$ac_ext
13116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13117 $as_echo "$ac_header_preproc" >&6; }
13119 # So? What about this header?
13120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13122 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13123 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13124 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13125 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13126 ac_header_preproc=yes
13129 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13130 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13131 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13132 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13133 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13134 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13135 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13136 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13137 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13138 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13139 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13140 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13142 ## ---------------------------------------- ##
13143 ## Report this to pgsql-bugs@postgresql.org ##
13144 ## ---------------------------------------- ##
13146 ) | sed "s/^/$as_me: WARNING: /" >&2
13149 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13150 $as_echo_n "checking for libxml/parser.h... " >&6; }
13151 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13152 $as_echo_n "(cached) " >&6
13154 ac_cv_header_libxml_parser_h=$ac_header_preproc
13156 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13157 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13160 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13163 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13164 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13165 { (exit 1); exit 1; }; }
13171 if test "$with_libxslt" = yes ; then
13172 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13173 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13174 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13175 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13176 $as_echo_n "(cached) " >&6
13178 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13179 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13181 # Is the header compilable?
13182 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13183 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13184 cat >conftest.$ac_ext <<_ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 $ac_includes_default
13191 #include <libxslt/xslt.h>
13193 rm -f conftest.$ac_objext
13194 if { (ac_try="$ac_compile"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13200 $as_echo "$ac_try_echo") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest.$ac_objext; then
13211 ac_header_compiler=yes
13213 $as_echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 ac_header_compiler=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13221 $as_echo "$ac_header_compiler" >&6; }
13223 # Is the header present?
13224 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13225 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <libxslt/xslt.h>
13234 if { (ac_try="$ac_cpp conftest.$ac_ext"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13240 $as_echo "$ac_try_echo") >&5
13241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } >/dev/null && {
13248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13251 ac_header_preproc=yes
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_header_preproc=no
13259 rm -f conftest.err conftest.$ac_ext
13260 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13261 $as_echo "$ac_header_preproc" >&6; }
13263 # So? What about this header?
13264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13266 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13267 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13268 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13269 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13270 ac_header_preproc=yes
13273 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13274 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13275 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13276 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13277 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13278 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13279 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13280 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13281 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13282 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13283 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13284 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13286 ## ---------------------------------------- ##
13287 ## Report this to pgsql-bugs@postgresql.org ##
13288 ## ---------------------------------------- ##
13290 ) | sed "s/^/$as_me: WARNING: /" >&2
13293 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13294 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13295 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13296 $as_echo_n "(cached) " >&6
13298 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13301 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13304 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13307 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13308 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13309 { (exit 1); exit 1; }; }
13315 if test "$with_ldap" = yes ; then
13316 if test "$PORTNAME" != "win32"; then
13318 for ac_header in ldap.h
13320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13322 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13323 $as_echo_n "checking for $ac_header... " >&6; }
13324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13325 $as_echo_n "(cached) " >&6
13327 ac_res=`eval 'as_val=${'$as_ac_Header'}
13328 $as_echo "$as_val"'`
13329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13330 $as_echo "$ac_res" >&6; }
13332 # Is the header compilable?
13333 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13334 $as_echo_n "checking $ac_header usability... " >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 $ac_includes_default
13342 #include <$ac_header>
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13351 $as_echo "$ac_try_echo") >&5
13352 (eval "$ac_compile") 2>conftest.er1
13354 grep -v '^ *+' conftest.er1 >conftest.err
13356 cat conftest.err >&5
13357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && {
13359 test -z "$ac_c_werror_flag" ||
13360 test ! -s conftest.err
13361 } && test -s conftest.$ac_objext; then
13362 ac_header_compiler=yes
13364 $as_echo "$as_me: failed program was:" >&5
13365 sed 's/^/| /' conftest.$ac_ext >&5
13367 ac_header_compiler=no
13370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13372 $as_echo "$ac_header_compiler" >&6; }
13374 # Is the header present?
13375 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13376 $as_echo_n "checking $ac_header presence... " >&6; }
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 #include <$ac_header>
13385 if { (ac_try="$ac_cpp conftest.$ac_ext"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13391 $as_echo "$ac_try_echo") >&5
13392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13394 grep -v '^ *+' conftest.er1 >conftest.err
13396 cat conftest.err >&5
13397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } >/dev/null && {
13399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13400 test ! -s conftest.err
13402 ac_header_preproc=yes
13404 $as_echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 ac_header_preproc=no
13410 rm -f conftest.err conftest.$ac_ext
13411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13412 $as_echo "$ac_header_preproc" >&6; }
13414 # So? What about this header?
13415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13418 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13421 ac_header_preproc=yes
13424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13425 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13427 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13429 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13431 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13435 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13437 ## ---------------------------------------- ##
13438 ## Report this to pgsql-bugs@postgresql.org ##
13439 ## ---------------------------------------- ##
13441 ) | sed "s/^/$as_me: WARNING: /" >&2
13444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13445 $as_echo_n "checking for $ac_header... " >&6; }
13446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13447 $as_echo_n "(cached) " >&6
13449 eval "$as_ac_Header=\$ac_header_preproc"
13451 ac_res=`eval 'as_val=${'$as_ac_Header'}
13452 $as_echo "$as_val"'`
13453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13454 $as_echo "$ac_res" >&6; }
13457 as_val=`eval 'as_val=${'$as_ac_Header'}
13458 $as_echo "$as_val"'`
13459 if test "x$as_val" = x""yes; then
13460 cat >>confdefs.h <<_ACEOF
13461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13465 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13466 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13467 { (exit 1); exit 1; }; }
13474 for ac_header in winldap.h
13476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13477 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13478 $as_echo_n "checking for $ac_header... " >&6; }
13479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13480 $as_echo_n "(cached) " >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13488 $ac_includes_default
13489 #include <windows.h>
13492 #include <$ac_header>
13494 rm -f conftest.$ac_objext
13495 if { (ac_try="$ac_compile"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13501 $as_echo "$ac_try_echo") >&5
13502 (eval "$ac_compile") 2>conftest.er1
13504 grep -v '^ *+' conftest.er1 >conftest.err
13506 cat conftest.err >&5
13507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } && {
13509 test -z "$ac_c_werror_flag" ||
13510 test ! -s conftest.err
13511 } && test -s conftest.$ac_objext; then
13512 eval "$as_ac_Header=yes"
13514 $as_echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 eval "$as_ac_Header=no"
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 ac_res=`eval 'as_val=${'$as_ac_Header'}
13523 $as_echo "$as_val"'`
13524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13525 $as_echo "$ac_res" >&6; }
13526 as_val=`eval 'as_val=${'$as_ac_Header'}
13527 $as_echo "$as_val"'`
13528 if test "x$as_val" = x""yes; then
13529 cat >>confdefs.h <<_ACEOF
13530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13534 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13535 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13536 { (exit 1); exit 1; }; }
13544 if test "$with_bonjour" = yes ; then
13545 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13546 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13547 $as_echo_n "checking for dns_sd.h... " >&6; }
13548 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13549 $as_echo_n "(cached) " >&6
13551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13552 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13554 # Is the header compilable?
13555 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13556 $as_echo_n "checking dns_sd.h usability... " >&6; }
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13564 #include <dns_sd.h>
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573 $as_echo "$ac_try_echo") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 ac_header_compiler=yes
13586 $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_header_compiler=no
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13594 $as_echo "$ac_header_compiler" >&6; }
13596 # Is the header present?
13597 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13598 $as_echo_n "checking dns_sd.h presence... " >&6; }
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #include <dns_sd.h>
13607 if { (ac_try="$ac_cpp conftest.$ac_ext"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13613 $as_echo "$ac_try_echo") >&5
13614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } >/dev/null && {
13621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13624 ac_header_preproc=yes
13626 $as_echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 ac_header_preproc=no
13632 rm -f conftest.err conftest.$ac_ext
13633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13634 $as_echo "$ac_header_preproc" >&6; }
13636 # So? What about this header?
13637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13640 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13641 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13642 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13643 ac_header_preproc=yes
13646 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13647 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13648 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13649 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13650 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13651 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13652 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13653 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13654 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13655 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13656 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13657 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13659 ## ---------------------------------------- ##
13660 ## Report this to pgsql-bugs@postgresql.org ##
13661 ## ---------------------------------------- ##
13663 ) | sed "s/^/$as_me: WARNING: /" >&2
13666 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13667 $as_echo_n "checking for dns_sd.h... " >&6; }
13668 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13669 $as_echo_n "(cached) " >&6
13671 ac_cv_header_dns_sd_h=$ac_header_preproc
13673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13674 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13677 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13680 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13681 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13682 { (exit 1); exit 1; }; }
13688 # for contrib/uuid-ossp
13689 if test "$with_ossp_uuid" = yes ; then
13691 for ac_header in ossp/uuid.h
13693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13696 $as_echo_n "checking for $ac_header... " >&6; }
13697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13698 $as_echo_n "(cached) " >&6
13700 ac_res=`eval 'as_val=${'$as_ac_Header'}
13701 $as_echo "$as_val"'`
13702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13703 $as_echo "$ac_res" >&6; }
13705 # Is the header compilable?
13706 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13707 $as_echo_n "checking $ac_header usability... " >&6; }
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 $ac_includes_default
13715 #include <$ac_header>
13717 rm -f conftest.$ac_objext
13718 if { (ac_try="$ac_compile"
13719 case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13724 $as_echo "$ac_try_echo") >&5
13725 (eval "$ac_compile") 2>conftest.er1
13727 grep -v '^ *+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest.$ac_objext; then
13735 ac_header_compiler=yes
13737 $as_echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_header_compiler=no
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13745 $as_echo "$ac_header_compiler" >&6; }
13747 # Is the header present?
13748 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13749 $as_echo_n "checking $ac_header presence... " >&6; }
13750 cat >conftest.$ac_ext <<_ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 #include <$ac_header>
13758 if { (ac_try="$ac_cpp conftest.$ac_ext"
13759 case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13764 $as_echo "$ac_try_echo") >&5
13765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13767 grep -v '^ *+' conftest.er1 >conftest.err
13769 cat conftest.err >&5
13770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } >/dev/null && {
13772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13773 test ! -s conftest.err
13775 ac_header_preproc=yes
13777 $as_echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_header_preproc=no
13783 rm -f conftest.err conftest.$ac_ext
13784 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13785 $as_echo "$ac_header_preproc" >&6; }
13787 # So? What about this header?
13788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13791 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13794 ac_header_preproc=yes
13797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13798 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13800 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13802 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13804 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13808 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13810 ## ---------------------------------------- ##
13811 ## Report this to pgsql-bugs@postgresql.org ##
13812 ## ---------------------------------------- ##
13814 ) | sed "s/^/$as_me: WARNING: /" >&2
13817 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13818 $as_echo_n "checking for $ac_header... " >&6; }
13819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13820 $as_echo_n "(cached) " >&6
13822 eval "$as_ac_Header=\$ac_header_preproc"
13824 ac_res=`eval 'as_val=${'$as_ac_Header'}
13825 $as_echo "$as_val"'`
13826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13827 $as_echo "$ac_res" >&6; }
13830 as_val=`eval 'as_val=${'$as_ac_Header'}
13831 $as_echo "$as_val"'`
13832 if test "x$as_val" = x""yes; then
13833 cat >>confdefs.h <<_ACEOF
13834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13840 for ac_header in uuid.h
13842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13845 $as_echo_n "checking for $ac_header... " >&6; }
13846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13847 $as_echo_n "(cached) " >&6
13849 ac_res=`eval 'as_val=${'$as_ac_Header'}
13850 $as_echo "$as_val"'`
13851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13852 $as_echo "$ac_res" >&6; }
13854 # Is the header compilable?
13855 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13856 $as_echo_n "checking $ac_header usability... " >&6; }
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 $ac_includes_default
13864 #include <$ac_header>
13866 rm -f conftest.$ac_objext
13867 if { (ac_try="$ac_compile"
13868 case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13873 $as_echo "$ac_try_echo") >&5
13874 (eval "$ac_compile") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest.$ac_objext; then
13884 ac_header_compiler=yes
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_header_compiler=no
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13894 $as_echo "$ac_header_compiler" >&6; }
13896 # Is the header present?
13897 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13898 $as_echo_n "checking $ac_header presence... " >&6; }
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 #include <$ac_header>
13907 if { (ac_try="$ac_cpp conftest.$ac_ext"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13913 $as_echo "$ac_try_echo") >&5
13914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13916 grep -v '^ *+' conftest.er1 >conftest.err
13918 cat conftest.err >&5
13919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } >/dev/null && {
13921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13922 test ! -s conftest.err
13924 ac_header_preproc=yes
13926 $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_header_preproc=no
13932 rm -f conftest.err conftest.$ac_ext
13933 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13934 $as_echo "$ac_header_preproc" >&6; }
13936 # So? What about this header?
13937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13940 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13943 ac_header_preproc=yes
13946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13947 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13949 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13951 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13953 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13955 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13957 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13959 ## ---------------------------------------- ##
13960 ## Report this to pgsql-bugs@postgresql.org ##
13961 ## ---------------------------------------- ##
13963 ) | sed "s/^/$as_me: WARNING: /" >&2
13966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13967 $as_echo_n "checking for $ac_header... " >&6; }
13968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13969 $as_echo_n "(cached) " >&6
13971 eval "$as_ac_Header=\$ac_header_preproc"
13973 ac_res=`eval 'as_val=${'$as_ac_Header'}
13974 $as_echo "$as_val"'`
13975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13976 $as_echo "$ac_res" >&6; }
13979 as_val=`eval 'as_val=${'$as_ac_Header'}
13980 $as_echo "$as_val"'`
13981 if test "x$as_val" = x""yes; then
13982 cat >>confdefs.h <<_ACEOF
13983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13987 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13988 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13989 { (exit 1); exit 1; }; }
14002 ## Types, structures, compiler characteristics
14006 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14007 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14008 if test "${ac_cv_c_bigendian+set}" = set; then
14009 $as_echo_n "(cached) " >&6
14011 ac_cv_c_bigendian=unknown
14012 # See if we're dealing with a universal compiler.
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 #ifndef __APPLE_CC__
14020 not a universal capable compiler
14025 rm -f conftest.$ac_objext
14026 if { (ac_try="$ac_compile"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14032 $as_echo "$ac_try_echo") >&5
14033 (eval "$ac_compile") 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest.$ac_objext; then
14044 # Check for potential -arch flags. It is not universal unless
14045 # there are some -arch flags. Note that *ppc* also matches
14046 # ppc64. This check is also rather less than ideal.
14047 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14048 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14051 $as_echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 if test $ac_cv_c_bigendian = unknown; then
14059 # See if sys/param.h defines the BYTE_ORDER macro.
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 #include <sys/types.h>
14067 #include <sys/param.h>
14072 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14073 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14075 bogus endian macros
14082 rm -f conftest.$ac_objext
14083 if { (ac_try="$ac_compile"
14084 case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14089 $as_echo "$ac_try_echo") >&5
14090 (eval "$ac_compile") 2>conftest.er1
14092 grep -v '^ *+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest.$ac_objext; then
14100 # It does; now see whether it defined to BIG_ENDIAN or not.
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <sys/types.h>
14108 #include <sys/param.h>
14113 #if BYTE_ORDER != BIG_ENDIAN
14121 rm -f conftest.$ac_objext
14122 if { (ac_try="$ac_compile"
14123 case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14128 $as_echo "$ac_try_echo") >&5
14129 (eval "$ac_compile") 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } && {
14136 test -z "$ac_c_werror_flag" ||
14137 test ! -s conftest.err
14138 } && test -s conftest.$ac_objext; then
14139 ac_cv_c_bigendian=yes
14141 $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_cv_c_bigendian=no
14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14149 $as_echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157 if test $ac_cv_c_bigendian = unknown; then
14158 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 #include <limits.h>
14170 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14171 bogus endian macros
14178 rm -f conftest.$ac_objext
14179 if { (ac_try="$ac_compile"
14180 case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185 $as_echo "$ac_try_echo") >&5
14186 (eval "$ac_compile") 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest.$ac_objext; then
14196 # It does; now see whether it defined to _BIG_ENDIAN or not.
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <limits.h>
14208 #ifndef _BIG_ENDIAN
14216 rm -f conftest.$ac_objext
14217 if { (ac_try="$ac_compile"
14218 case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14223 $as_echo "$ac_try_echo") >&5
14224 (eval "$ac_compile") 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest.$ac_objext; then
14234 ac_cv_c_bigendian=yes
14236 $as_echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ac_cv_c_bigendian=no
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 $as_echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252 if test $ac_cv_c_bigendian = unknown; then
14253 # Compile a test program.
14254 if test "$cross_compiling" = yes; then
14255 # Try to guess by grepping values from an object file.
14256 cat >conftest.$ac_ext <<_ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 short int ascii_mm[] =
14263 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14264 short int ascii_ii[] =
14265 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14266 int use_ascii (int i) {
14267 return ascii_mm[i] + ascii_ii[i];
14269 short int ebcdic_ii[] =
14270 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14271 short int ebcdic_mm[] =
14272 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14273 int use_ebcdic (int i) {
14274 return ebcdic_mm[i] + ebcdic_ii[i];
14281 return use_ascii (foo) == use_ebcdic (foo);
14286 rm -f conftest.$ac_objext
14287 if { (ac_try="$ac_compile"
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_compile") 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); } && {
14301 test -z "$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14303 } && test -s conftest.$ac_objext; then
14304 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14305 ac_cv_c_bigendian=yes
14307 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14308 if test "$ac_cv_c_bigendian" = unknown; then
14309 ac_cv_c_bigendian=no
14311 # finding both strings is unlikely to happen, but who knows?
14312 ac_cv_c_bigendian=unknown
14316 $as_echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 cat >conftest.$ac_ext <<_ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 $ac_includes_default
14335 /* Are we little or big endian? From Harbison&Steele. */
14339 char c[sizeof (long int)];
14342 return u.c[sizeof (long int) - 1] == 1;
14348 rm -f conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14355 $as_echo "$ac_try_echo") >&5
14356 (eval "$ac_link") 2>&5
14358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14360 { (case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14365 $as_echo "$ac_try_echo") >&5
14366 (eval "$ac_try") 2>&5
14368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 ac_cv_c_bigendian=no
14372 $as_echo "$as_me: program exited with status $ac_status" >&5
14373 $as_echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ( exit $ac_status )
14377 ac_cv_c_bigendian=yes
14379 rm -rf conftest.dSYM
14380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14386 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14387 $as_echo "$ac_cv_c_bigendian" >&6; }
14388 case $ac_cv_c_bigendian in #(
14390 cat >>confdefs.h <<\_ACEOF
14391 #define WORDS_BIGENDIAN 1
14398 cat >>confdefs.h <<\_ACEOF
14399 #define AC_APPLE_UNIVERSAL_BUILD 1
14404 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14405 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14406 $as_echo "$as_me: error: unknown endianness
14407 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14408 { (exit 1); exit 1; }; } ;;
14411 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14412 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14413 if test "${ac_cv_c_const+set}" = set; then
14414 $as_echo_n "(cached) " >&6
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14426 /* FIXME: Include the comments suggested by Paul. */
14427 #ifndef __cplusplus
14428 /* Ultrix mips cc rejects this. */
14429 typedef int charset[2];
14431 /* SunOS 4.1.1 cc rejects this. */
14432 char const *const *pcpcc;
14434 /* NEC SVR4.0.2 mips cc rejects this. */
14435 struct point {int x, y;};
14436 static struct point const zero = {0,0};
14437 /* AIX XL C 1.02.0.0 rejects this.
14438 It does not let you subtract one const X* pointer from another in
14439 an arm of an if-expression whose if-part is not a constant
14441 const char *g = "string";
14442 pcpcc = &g + (g ? g-g : 0);
14443 /* HPUX 7.0 cc rejects these. */
14445 ppc = (char**) pcpcc;
14446 pcpcc = (char const *const *) ppc;
14447 { /* SCO 3.2v4 cc rejects this. */
14449 char const *s = 0 ? (char *) 0 : (char const *) 0;
14454 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14455 int x[] = {25, 17};
14456 const int *foo = &x[0];
14459 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14460 typedef const int *iptr;
14464 { /* AIX XL C 1.02.0.0 rejects this saying
14465 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14466 struct s { int j; const int *ap[3]; };
14467 struct s *b; b->j = 5;
14469 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14470 const int foo = 10;
14471 if (!foo) return 0;
14473 return !cs[0] && !zero.x;
14480 rm -f conftest.$ac_objext
14481 if { (ac_try="$ac_compile"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487 $as_echo "$ac_try_echo") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14500 $as_echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14509 $as_echo "$ac_cv_c_const" >&6; }
14510 if test $ac_cv_c_const = no; then
14512 cat >>confdefs.h <<\_ACEOF
14518 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14519 $as_echo_n "checking for inline... " >&6; }
14520 if test "${ac_cv_c_inline+set}" = set; then
14521 $as_echo_n "(cached) " >&6
14524 for ac_kw in inline __inline__ __inline; do
14525 cat >conftest.$ac_ext <<_ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #ifndef __cplusplus
14533 static $ac_kw foo_t static_foo () {return 0; }
14534 $ac_kw foo_t foo () {return 0; }
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_compile") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest.$ac_objext; then
14556 ac_cv_c_inline=$ac_kw
14558 $as_echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 test "$ac_cv_c_inline" != no && break
14569 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14570 $as_echo "$ac_cv_c_inline" >&6; }
14573 case $ac_cv_c_inline in
14576 case $ac_cv_c_inline in
14578 *) ac_val=$ac_cv_c_inline;;
14580 cat >>confdefs.h <<_ACEOF
14581 #ifndef __cplusplus
14582 #define inline $ac_val
14588 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14589 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14590 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14593 pgac_cv_c_inline_quietly=no
14594 if test "$ac_cv_c_inline" != no; then
14595 pgac_c_inline_save_werror=$ac_c_werror_flag
14596 ac_c_werror_flag=yes
14597 cat >conftest.$ac_ext <<_ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 static inline int fun () {return 0;}
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (ac_try="$ac_link"
14614 case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14619 $as_echo "$ac_try_echo") >&5
14620 (eval "$ac_link") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest$ac_exeext && {
14630 test "$cross_compiling" = yes ||
14631 $as_test_x conftest$ac_exeext
14633 pgac_cv_c_inline_quietly=yes
14635 $as_echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14641 rm -rf conftest.dSYM
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643 conftest$ac_exeext conftest.$ac_ext
14644 ac_c_werror_flag=$pgac_c_inline_save_werror
14647 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14648 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14649 if test "$pgac_cv_c_inline_quietly" != no; then
14651 cat >>confdefs.h <<_ACEOF
14652 #define USE_INLINE 1
14657 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14658 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14659 if test "${ac_cv_c_stringize+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14670 char *s = x(teststring);
14672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14673 $EGREP "#teststring" >/dev/null 2>&1; then
14674 ac_cv_c_stringize=no
14676 ac_cv_c_stringize=yes
14681 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14682 $as_echo "$ac_cv_c_stringize" >&6; }
14683 if test $ac_cv_c_stringize = yes; then
14685 cat >>confdefs.h <<\_ACEOF
14686 #define HAVE_STRINGIZE 1
14691 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14692 $as_echo_n "checking for signed types... " >&6; }
14693 if test "${pgac_cv_c_signed+set}" = set; then
14694 $as_echo_n "(cached) " >&6
14696 cat >conftest.$ac_ext <<_ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14706 signed char c; signed short s; signed int i;
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 pgac_cv_c_signed=yes
14731 $as_echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 pgac_cv_c_signed=no
14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14740 $as_echo "$pgac_cv_c_signed" >&6; }
14741 if test x"$pgac_cv_c_signed" = xno ; then
14743 cat >>confdefs.h <<\_ACEOF
14744 #define signed /**/
14748 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14749 $as_echo_n "checking for working volatile... " >&6; }
14750 if test "${ac_cv_c_volatile+set}" = set; then
14751 $as_echo_n "(cached) " >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14765 int * volatile y = (int *) 0;
14771 rm -f conftest.$ac_objext
14772 if { (ac_try="$ac_compile"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14778 $as_echo "$ac_try_echo") >&5
14779 (eval "$ac_compile") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest.$ac_objext; then
14789 ac_cv_c_volatile=yes
14791 $as_echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14794 ac_cv_c_volatile=no
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14800 $as_echo "$ac_cv_c_volatile" >&6; }
14801 if test $ac_cv_c_volatile = no; then
14803 cat >>confdefs.h <<\_ACEOF
14804 #define volatile /**/
14809 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14810 $as_echo_n "checking for __func__... " >&6; }
14811 if test "${pgac_cv_funcname_func_support+set}" = set; then
14812 $as_echo_n "(cached) " >&6
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14824 printf("%s\n", __func__);
14829 rm -f conftest.$ac_objext
14830 if { (ac_try="$ac_compile"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14836 $as_echo "$ac_try_echo") >&5
14837 (eval "$ac_compile") 2>conftest.er1
14839 grep -v '^ *+' conftest.er1 >conftest.err
14841 cat conftest.err >&5
14842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.$ac_objext; then
14847 pgac_cv_funcname_func_support=yes
14849 $as_echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 pgac_cv_funcname_func_support=no
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14858 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14859 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_FUNCNAME__FUNC 1
14866 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14867 $as_echo_n "checking for __FUNCTION__... " >&6; }
14868 if test "${pgac_cv_funcname_function_support+set}" = set; then
14869 $as_echo_n "(cached) " >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14881 printf("%s\n", __FUNCTION__);
14886 rm -f conftest.$ac_objext
14887 if { (ac_try="$ac_compile"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14893 $as_echo "$ac_try_echo") >&5
14894 (eval "$ac_compile") 2>conftest.er1
14896 grep -v '^ *+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest.$ac_objext; then
14904 pgac_cv_funcname_function_support=yes
14906 $as_echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 pgac_cv_funcname_function_support=no
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14915 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14916 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_FUNCNAME__FUNCTION 1
14924 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14925 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14926 if test "${ac_cv_struct_tm+set}" = set; then
14927 $as_echo_n "(cached) " >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <sys/types.h>
14942 int *p = &tm.tm_sec;
14948 rm -f conftest.$ac_objext
14949 if { (ac_try="$ac_compile"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14955 $as_echo "$ac_try_echo") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14958 grep -v '^ *+' conftest.er1 >conftest.err
14960 cat conftest.err >&5
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.$ac_objext; then
14966 ac_cv_struct_tm=time.h
14968 $as_echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_cv_struct_tm=sys/time.h
14974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14977 $as_echo "$ac_cv_struct_tm" >&6; }
14978 if test $ac_cv_struct_tm = sys/time.h; then
14980 cat >>confdefs.h <<\_ACEOF
14981 #define TM_IN_SYS_TIME 1
14986 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14987 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14988 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14989 $as_echo_n "(cached) " >&6
14991 cat >conftest.$ac_ext <<_ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <sys/types.h>
14998 #include <$ac_cv_struct_tm>
15004 static struct tm ac_aggr;
15005 if (ac_aggr.tm_zone)
15011 rm -f conftest.$ac_objext
15012 if { (ac_try="$ac_compile"
15013 case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15018 $as_echo "$ac_try_echo") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1 >conftest.err
15023 cat conftest.err >&5
15024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } && {
15026 test -z "$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 } && test -s conftest.$ac_objext; then
15029 ac_cv_member_struct_tm_tm_zone=yes
15031 $as_echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15034 cat >conftest.$ac_ext <<_ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <sys/types.h>
15041 #include <$ac_cv_struct_tm>
15047 static struct tm ac_aggr;
15048 if (sizeof ac_aggr.tm_zone)
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15061 $as_echo "$ac_try_echo") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15064 grep -v '^ *+' conftest.er1 >conftest.err
15066 cat conftest.err >&5
15067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest.$ac_objext; then
15072 ac_cv_member_struct_tm_tm_zone=yes
15074 $as_echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15077 ac_cv_member_struct_tm_tm_zone=no
15080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15086 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15087 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15089 cat >>confdefs.h <<_ACEOF
15090 #define HAVE_STRUCT_TM_TM_ZONE 1
15096 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_TM_ZONE 1
15103 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15104 $as_echo_n "checking for tzname... " >&6; }
15105 if test "${ac_cv_var_tzname+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15115 #ifndef tzname /* For SGI. */
15116 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134 $as_echo "$ac_try_echo") >&5
15135 (eval "$ac_link") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest$ac_exeext && {
15145 test "$cross_compiling" = yes ||
15146 $as_test_x conftest$ac_exeext
15148 ac_cv_var_tzname=yes
15150 $as_echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_cv_var_tzname=no
15156 rm -rf conftest.dSYM
15157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158 conftest$ac_exeext conftest.$ac_ext
15160 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15161 $as_echo "$ac_cv_var_tzname" >&6; }
15162 if test $ac_cv_var_tzname = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_TZNAME 1
15170 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15171 $as_echo_n "checking for union semun... " >&6; }
15172 if test "${ac_cv_type_union_semun+set}" = set; then
15173 $as_echo_n "(cached) " >&6
15175 ac_cv_type_union_semun=no
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 #include <sys/types.h>
15183 #include <sys/ipc.h>
15184 #include <sys/sem.h>
15189 if (sizeof (union semun))
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15202 $as_echo "$ac_try_echo") >&5
15203 (eval "$ac_compile") 2>conftest.er1
15205 grep -v '^ *+' conftest.er1 >conftest.err
15207 cat conftest.err >&5
15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && {
15210 test -z "$ac_c_werror_flag" ||
15211 test ! -s conftest.err
15212 } && test -s conftest.$ac_objext; then
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <sys/types.h>
15220 #include <sys/ipc.h>
15221 #include <sys/sem.h>
15226 if (sizeof ((union semun)))
15232 rm -f conftest.$ac_objext
15233 if { (ac_try="$ac_compile"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239 $as_echo "$ac_try_echo") >&5
15240 (eval "$ac_compile") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest.$ac_objext; then
15252 $as_echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_type_union_semun=yes
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 $as_echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15269 $as_echo "$ac_cv_type_union_semun" >&6; }
15270 if test "x$ac_cv_type_union_semun" = x""yes; then
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_UNION_SEMUN 1
15279 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15280 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15281 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15282 $as_echo_n "(cached) " >&6
15284 ac_cv_type_struct_sockaddr_un=no
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <sys/types.h>
15292 #ifdef HAVE_SYS_UN_H
15293 #include <sys/un.h>
15300 if (sizeof (struct sockaddr_un))
15306 rm -f conftest.$ac_objext
15307 if { (ac_try="$ac_compile"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15313 $as_echo "$ac_try_echo") >&5
15314 (eval "$ac_compile") 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } && {
15321 test -z "$ac_c_werror_flag" ||
15322 test ! -s conftest.err
15323 } && test -s conftest.$ac_objext; then
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 #include <sys/types.h>
15331 #ifdef HAVE_SYS_UN_H
15332 #include <sys/un.h>
15339 if (sizeof ((struct sockaddr_un)))
15345 rm -f conftest.$ac_objext
15346 if { (ac_try="$ac_compile"
15347 case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15352 $as_echo "$ac_try_echo") >&5
15353 (eval "$ac_compile") 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } && {
15360 test -z "$ac_c_werror_flag" ||
15361 test ! -s conftest.err
15362 } && test -s conftest.$ac_objext; then
15365 $as_echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_cv_type_struct_sockaddr_un=yes
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 $as_echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15382 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15383 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15385 cat >>confdefs.h <<_ACEOF
15386 #define HAVE_STRUCT_SOCKADDR_UN 1
15390 cat >>confdefs.h <<\_ACEOF
15391 #define HAVE_UNIX_SOCKETS 1
15396 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15397 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15398 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15399 $as_echo_n "(cached) " >&6
15401 ac_cv_type_struct_sockaddr_storage=no
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 #include <sys/types.h>
15409 #ifdef HAVE_SYS_SOCKET_H
15410 #include <sys/socket.h>
15417 if (sizeof (struct sockaddr_storage))
15423 rm -f conftest.$ac_objext
15424 if { (ac_try="$ac_compile"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430 $as_echo "$ac_try_echo") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest.$ac_objext; then
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <sys/types.h>
15448 #ifdef HAVE_SYS_SOCKET_H
15449 #include <sys/socket.h>
15456 if (sizeof ((struct sockaddr_storage)))
15462 rm -f conftest.$ac_objext
15463 if { (ac_try="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15469 $as_echo "$ac_try_echo") >&5
15470 (eval "$ac_compile") 2>conftest.er1
15472 grep -v '^ *+' conftest.er1 >conftest.err
15474 cat conftest.err >&5
15475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest.$ac_objext; then
15482 $as_echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_cv_type_struct_sockaddr_storage=yes
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 $as_echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15499 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15500 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15502 cat >>confdefs.h <<_ACEOF
15503 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15509 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15510 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15511 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15512 $as_echo_n "(cached) " >&6
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <sys/types.h>
15521 #ifdef HAVE_SYS_SOCKET_H
15522 #include <sys/socket.h>
15529 static struct sockaddr_storage ac_aggr;
15530 if (ac_aggr.ss_family)
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15543 $as_echo "$ac_try_echo") >&5
15544 (eval "$ac_compile") 2>conftest.er1
15546 grep -v '^ *+' conftest.er1 >conftest.err
15548 cat conftest.err >&5
15549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } && {
15551 test -z "$ac_c_werror_flag" ||
15552 test ! -s conftest.err
15553 } && test -s conftest.$ac_objext; then
15554 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15556 $as_echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 cat >conftest.$ac_ext <<_ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565 #include <sys/types.h>
15566 #ifdef HAVE_SYS_SOCKET_H
15567 #include <sys/socket.h>
15574 static struct sockaddr_storage ac_aggr;
15575 if (sizeof ac_aggr.ss_family)
15581 rm -f conftest.$ac_objext
15582 if { (ac_try="$ac_compile"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15588 $as_echo "$ac_try_echo") >&5
15589 (eval "$ac_compile") 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest.$ac_objext; then
15599 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15601 $as_echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_cv_member_struct_sockaddr_storage_ss_family=no
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15613 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15614 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15622 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15623 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15624 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15625 $as_echo_n "(cached) " >&6
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15633 #include <sys/types.h>
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15642 static struct sockaddr_storage ac_aggr;
15643 if (ac_aggr.__ss_family)
15649 rm -f conftest.$ac_objext
15650 if { (ac_try="$ac_compile"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15669 $as_echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <sys/types.h>
15679 #ifdef HAVE_SYS_SOCKET_H
15680 #include <sys/socket.h>
15687 static struct sockaddr_storage ac_aggr;
15688 if (sizeof ac_aggr.__ss_family)
15694 rm -f conftest.$ac_objext
15695 if { (ac_try="$ac_compile"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15701 $as_echo "$ac_try_echo") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest.$ac_objext; then
15712 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15714 $as_echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 ac_cv_member_struct_sockaddr_storage___ss_family=no
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15726 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15727 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15729 cat >>confdefs.h <<_ACEOF
15730 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15735 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15736 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15737 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15738 $as_echo_n "(cached) " >&6
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 #include <sys/types.h>
15747 #ifdef HAVE_SYS_SOCKET_H
15748 #include <sys/socket.h>
15755 static struct sockaddr_storage ac_aggr;
15756 if (ac_aggr.ss_len)
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest.$ac_objext; then
15780 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 #include <sys/types.h>
15792 #ifdef HAVE_SYS_SOCKET_H
15793 #include <sys/socket.h>
15800 static struct sockaddr_storage ac_aggr;
15801 if (sizeof ac_aggr.ss_len)
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15814 $as_echo "$ac_try_echo") >&5
15815 (eval "$ac_compile") 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } && {
15822 test -z "$ac_c_werror_flag" ||
15823 test ! -s conftest.err
15824 } && test -s conftest.$ac_objext; then
15825 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15827 $as_echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 ac_cv_member_struct_sockaddr_storage_ss_len=no
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15839 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15840 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15842 cat >>confdefs.h <<_ACEOF
15843 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15848 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15849 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15850 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15851 $as_echo_n "(cached) " >&6
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <sys/types.h>
15860 #ifdef HAVE_SYS_SOCKET_H
15861 #include <sys/socket.h>
15868 static struct sockaddr_storage ac_aggr;
15869 if (ac_aggr.__ss_len)
15875 rm -f conftest.$ac_objext
15876 if { (ac_try="$ac_compile"
15877 case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15882 $as_echo "$ac_try_echo") >&5
15883 (eval "$ac_compile") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
15887 cat conftest.err >&5
15888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && {
15890 test -z "$ac_c_werror_flag" ||
15891 test ! -s conftest.err
15892 } && test -s conftest.$ac_objext; then
15893 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15895 $as_echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 #include <sys/types.h>
15905 #ifdef HAVE_SYS_SOCKET_H
15906 #include <sys/socket.h>
15913 static struct sockaddr_storage ac_aggr;
15914 if (sizeof ac_aggr.__ss_len)
15920 rm -f conftest.$ac_objext
15921 if { (ac_try="$ac_compile"
15922 case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15927 $as_echo "$ac_try_echo") >&5
15928 (eval "$ac_compile") 2>conftest.er1
15930 grep -v '^ *+' conftest.er1 >conftest.err
15932 cat conftest.err >&5
15933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } && {
15935 test -z "$ac_c_werror_flag" ||
15936 test ! -s conftest.err
15937 } && test -s conftest.$ac_objext; then
15938 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15940 $as_echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ac_cv_member_struct_sockaddr_storage___ss_len=no
15946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15951 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15952 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15953 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15961 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15962 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15963 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15964 $as_echo_n "(cached) " >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 #include <sys/types.h>
15973 #ifdef HAVE_SYS_SOCKET_H
15974 #include <sys/socket.h>
15981 static struct sockaddr ac_aggr;
15982 if (ac_aggr.sa_len)
15988 rm -f conftest.$ac_objext
15989 if { (ac_try="$ac_compile"
15990 case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15995 $as_echo "$ac_try_echo") >&5
15996 (eval "$ac_compile") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } && {
16003 test -z "$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 } && test -s conftest.$ac_objext; then
16006 ac_cv_member_struct_sockaddr_sa_len=yes
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <sys/types.h>
16018 #ifdef HAVE_SYS_SOCKET_H
16019 #include <sys/socket.h>
16026 static struct sockaddr ac_aggr;
16027 if (sizeof ac_aggr.sa_len)
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16040 $as_echo "$ac_try_echo") >&5
16041 (eval "$ac_compile") 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } && {
16048 test -z "$ac_c_werror_flag" ||
16049 test ! -s conftest.err
16050 } && test -s conftest.$ac_objext; then
16051 ac_cv_member_struct_sockaddr_sa_len=yes
16053 $as_echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_cv_member_struct_sockaddr_sa_len=no
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16065 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16066 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16075 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16076 $as_echo_n "checking for struct addrinfo... " >&6; }
16077 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16078 $as_echo_n "(cached) " >&6
16080 ac_cv_type_struct_addrinfo=no
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <sys/types.h>
16088 #include <sys/socket.h>
16095 if (sizeof (struct addrinfo))
16101 rm -f conftest.$ac_objext
16102 if { (ac_try="$ac_compile"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16108 $as_echo "$ac_try_echo") >&5
16109 (eval "$ac_compile") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest.$ac_objext; then
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 #include <sys/types.h>
16126 #include <sys/socket.h>
16133 if (sizeof ((struct addrinfo)))
16139 rm -f conftest.$ac_objext
16140 if { (ac_try="$ac_compile"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16146 $as_echo "$ac_try_echo") >&5
16147 (eval "$ac_compile") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest.$ac_objext; then
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_cv_type_struct_addrinfo=yes
16165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 $as_echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16176 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16177 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define HAVE_STRUCT_ADDRINFO 1
16187 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16188 $as_echo_n "checking for intptr_t... " >&6; }
16189 if test "${ac_cv_type_intptr_t+set}" = set; then
16190 $as_echo_n "(cached) " >&6
16192 ac_cv_type_intptr_t=no
16193 cat >conftest.$ac_ext <<_ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 $ac_includes_default
16203 if (sizeof (intptr_t))
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217 (eval "$ac_compile") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && {
16224 test -z "$ac_c_werror_flag" ||
16225 test ! -s conftest.err
16226 } && test -s conftest.$ac_objext; then
16227 cat >conftest.$ac_ext <<_ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16233 $ac_includes_default
16237 if (sizeof ((intptr_t)))
16243 rm -f conftest.$ac_objext
16244 if { (ac_try="$ac_compile"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16250 $as_echo "$ac_try_echo") >&5
16251 (eval "$ac_compile") 2>conftest.er1
16253 grep -v '^ *+' conftest.er1 >conftest.err
16255 cat conftest.err >&5
16256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } && {
16258 test -z "$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16260 } && test -s conftest.$ac_objext; then
16263 $as_echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_cv_type_intptr_t=yes
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271 $as_echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16280 $as_echo "$ac_cv_type_intptr_t" >&6; }
16281 if test "x$ac_cv_type_intptr_t" = x""yes; then
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_INTPTR_T 1
16288 for ac_type in 'int' 'long int' 'long long int'; do
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16299 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16306 rm -f conftest.$ac_objext
16307 if { (ac_try="$ac_compile"
16308 case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313 $as_echo "$ac_try_echo") >&5
16314 (eval "$ac_compile") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest.$ac_objext; then
16325 cat >>confdefs.h <<_ACEOF
16326 #define intptr_t $ac_type
16331 $as_echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 test -z "$ac_type" && break
16344 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16345 $as_echo_n "checking for uintptr_t... " >&6; }
16346 if test "${ac_cv_type_uintptr_t+set}" = set; then
16347 $as_echo_n "(cached) " >&6
16349 ac_cv_type_uintptr_t=no
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 $ac_includes_default
16360 if (sizeof (uintptr_t))
16366 rm -f conftest.$ac_objext
16367 if { (ac_try="$ac_compile"
16368 case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16373 $as_echo "$ac_try_echo") >&5
16374 (eval "$ac_compile") 2>conftest.er1
16376 grep -v '^ *+' conftest.er1 >conftest.err
16378 cat conftest.err >&5
16379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest.$ac_objext; then
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 $ac_includes_default
16394 if (sizeof ((uintptr_t)))
16400 rm -f conftest.$ac_objext
16401 if { (ac_try="$ac_compile"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16407 $as_echo "$ac_try_echo") >&5
16408 (eval "$ac_compile") 2>conftest.er1
16410 grep -v '^ *+' conftest.er1 >conftest.err
16412 cat conftest.err >&5
16413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } && {
16415 test -z "$ac_c_werror_flag" ||
16416 test ! -s conftest.err
16417 } && test -s conftest.$ac_objext; then
16420 $as_echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_cv_type_uintptr_t=yes
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428 $as_echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16437 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16438 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16440 cat >>confdefs.h <<\_ACEOF
16441 #define HAVE_UINTPTR_T 1
16445 for ac_type in 'unsigned int' 'unsigned long int' \
16446 'unsigned long long int'; do
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16457 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471 $as_echo "$ac_try_echo") >&5
16472 (eval "$ac_compile") 2>conftest.er1
16474 grep -v '^ *+' conftest.er1 >conftest.err
16476 cat conftest.err >&5
16477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest.$ac_objext; then
16483 cat >>confdefs.h <<_ACEOF
16484 #define uintptr_t $ac_type
16489 $as_echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 test -z "$ac_type" && break
16502 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16503 $as_echo_n "checking for long long int... " >&6; }
16504 if test "${ac_cv_type_long_long_int+set}" = set; then
16505 $as_echo_n "(cached) " >&6
16507 cat >conftest.$ac_ext <<_ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 /* For now, do not test the preprocessor; as of 2007 there are too many
16515 implementations with broken preprocessors. Perhaps this can
16516 be revisited in 2012. In the meantime, code should not expect
16517 #if to work with literals wider than 32 bits. */
16518 /* Test literals. */
16519 long long int ll = 9223372036854775807ll;
16520 long long int nll = -9223372036854775807LL;
16521 unsigned long long int ull = 18446744073709551615ULL;
16522 /* Test constant expressions. */
16523 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16525 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16531 /* Test availability of runtime routines for shift and division. */
16532 long long int llmax = 9223372036854775807ll;
16533 unsigned long long int ullmax = 18446744073709551615ull;
16534 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16535 | (llmax / ll) | (llmax % ll)
16536 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16537 | (ullmax / ull) | (ullmax % ull));
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (ac_try="$ac_link"
16545 case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16550 $as_echo "$ac_try_echo") >&5
16551 (eval "$ac_link") 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest$ac_exeext && {
16561 test "$cross_compiling" = yes ||
16562 $as_test_x conftest$ac_exeext
16564 if test "$cross_compiling" = yes; then
16565 ac_cv_type_long_long_int=yes
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 #include <limits.h>
16576 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16577 # define LLONG_MAX (HALF - 1 + HALF)
16582 long long int n = 1;
16586 long long int m = n << i;
16589 if (LLONG_MAX / 2 < m)
16597 rm -f conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16604 $as_echo "$ac_try_echo") >&5
16605 (eval "$ac_link") 2>&5
16607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16614 $as_echo "$ac_try_echo") >&5
16615 (eval "$ac_try") 2>&5
16617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 ac_cv_type_long_long_int=yes
16621 $as_echo "$as_me: program exited with status $ac_status" >&5
16622 $as_echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 ( exit $ac_status )
16626 ac_cv_type_long_long_int=no
16628 rm -rf conftest.dSYM
16629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16634 $as_echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 ac_cv_type_long_long_int=no
16640 rm -rf conftest.dSYM
16641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16642 conftest$ac_exeext conftest.$ac_ext
16644 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16645 $as_echo "$ac_cv_type_long_long_int" >&6; }
16646 if test $ac_cv_type_long_long_int = yes; then
16648 cat >>confdefs.h <<\_ACEOF
16649 #define HAVE_LONG_LONG_INT 1
16655 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16656 $as_echo_n "checking for struct cmsgcred... " >&6; }
16657 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16658 $as_echo_n "(cached) " >&6
16660 ac_cv_type_struct_cmsgcred=no
16661 cat >conftest.$ac_ext <<_ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 #include <sys/param.h>
16668 #include <sys/types.h>
16669 #include <sys/socket.h>
16670 #include <sys/ucred.h>
16675 if (sizeof (struct cmsgcred))
16681 rm -f conftest.$ac_objext
16682 if { (ac_try="$ac_compile"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16688 $as_echo "$ac_try_echo") >&5
16689 (eval "$ac_compile") 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } && {
16696 test -z "$ac_c_werror_flag" ||
16697 test ! -s conftest.err
16698 } && test -s conftest.$ac_objext; then
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <sys/param.h>
16706 #include <sys/types.h>
16707 #include <sys/socket.h>
16708 #include <sys/ucred.h>
16713 if (sizeof ((struct cmsgcred)))
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16726 $as_echo "$ac_try_echo") >&5
16727 (eval "$ac_compile") 2>conftest.er1
16729 grep -v '^ *+' conftest.er1 >conftest.err
16731 cat conftest.err >&5
16732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } && {
16734 test -z "$ac_c_werror_flag" ||
16735 test ! -s conftest.err
16736 } && test -s conftest.$ac_objext; then
16739 $as_echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ac_cv_type_struct_cmsgcred=yes
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 $as_echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16756 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16757 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define HAVE_STRUCT_CMSGCRED 1
16765 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16766 $as_echo_n "checking for struct fcred... " >&6; }
16767 if test "${ac_cv_type_struct_fcred+set}" = set; then
16768 $as_echo_n "(cached) " >&6
16770 ac_cv_type_struct_fcred=no
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 #include <sys/param.h>
16778 #include <sys/types.h>
16779 #include <sys/socket.h>
16780 #include <sys/ucred.h>
16785 if (sizeof (struct fcred))
16791 rm -f conftest.$ac_objext
16792 if { (ac_try="$ac_compile"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16798 $as_echo "$ac_try_echo") >&5
16799 (eval "$ac_compile") 2>conftest.er1
16801 grep -v '^ *+' conftest.er1 >conftest.err
16803 cat conftest.err >&5
16804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } && {
16806 test -z "$ac_c_werror_flag" ||
16807 test ! -s conftest.err
16808 } && test -s conftest.$ac_objext; then
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <sys/param.h>
16816 #include <sys/types.h>
16817 #include <sys/socket.h>
16818 #include <sys/ucred.h>
16823 if (sizeof ((struct fcred)))
16829 rm -f conftest.$ac_objext
16830 if { (ac_try="$ac_compile"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16836 $as_echo "$ac_try_echo") >&5
16837 (eval "$ac_compile") 2>conftest.er1
16839 grep -v '^ *+' conftest.er1 >conftest.err
16841 cat conftest.err >&5
16842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && {
16844 test -z "$ac_c_werror_flag" ||
16845 test ! -s conftest.err
16846 } && test -s conftest.$ac_objext; then
16849 $as_echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_cv_type_struct_fcred=yes
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857 $as_echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16866 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16867 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16869 cat >>confdefs.h <<_ACEOF
16870 #define HAVE_STRUCT_FCRED 1
16875 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16876 $as_echo_n "checking for struct sockcred... " >&6; }
16877 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16878 $as_echo_n "(cached) " >&6
16880 ac_cv_type_struct_sockcred=no
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 #include <sys/param.h>
16888 #include <sys/types.h>
16889 #include <sys/socket.h>
16890 #include <sys/ucred.h>
16895 if (sizeof (struct sockcred))
16901 rm -f conftest.$ac_objext
16902 if { (ac_try="$ac_compile"
16903 case "(($ac_try" in
16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905 *) ac_try_echo=$ac_try;;
16907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16908 $as_echo "$ac_try_echo") >&5
16909 (eval "$ac_compile") 2>conftest.er1
16911 grep -v '^ *+' conftest.er1 >conftest.err
16913 cat conftest.err >&5
16914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest.$ac_objext; then
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <sys/param.h>
16926 #include <sys/types.h>
16927 #include <sys/socket.h>
16928 #include <sys/ucred.h>
16933 if (sizeof ((struct sockcred)))
16939 rm -f conftest.$ac_objext
16940 if { (ac_try="$ac_compile"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16946 $as_echo "$ac_try_echo") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest.$ac_objext; then
16959 $as_echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_cv_type_struct_sockcred=yes
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 $as_echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16976 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16977 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_STRUCT_SOCKCRED 1
16987 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16988 $as_echo_n "checking for struct option... " >&6; }
16989 if test "${ac_cv_type_struct_option+set}" = set; then
16990 $as_echo_n "(cached) " >&6
16992 ac_cv_type_struct_option=no
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #ifdef HAVE_GETOPT_H
17000 #include <getopt.h>
17006 if (sizeof (struct option))
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17019 $as_echo "$ac_try_echo") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } && {
17027 test -z "$ac_c_werror_flag" ||
17028 test ! -s conftest.err
17029 } && test -s conftest.$ac_objext; then
17030 cat >conftest.$ac_ext <<_ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 #ifdef HAVE_GETOPT_H
17037 #include <getopt.h>
17043 if (sizeof ((struct option)))
17049 rm -f conftest.$ac_objext
17050 if { (ac_try="$ac_compile"
17051 case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17056 $as_echo "$ac_try_echo") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17059 grep -v '^ *+' conftest.er1 >conftest.err
17061 cat conftest.err >&5
17062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } && {
17064 test -z "$ac_c_werror_flag" ||
17065 test ! -s conftest.err
17066 } && test -s conftest.$ac_objext; then
17069 $as_echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17072 ac_cv_type_struct_option=yes
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 $as_echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17086 $as_echo "$ac_cv_type_struct_option" >&6; }
17087 if test "x$ac_cv_type_struct_option" = x""yes; then
17089 cat >>confdefs.h <<_ACEOF
17090 #define HAVE_STRUCT_OPTION 1
17097 if test "$with_zlib" = yes; then
17098 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17099 # did not). While we could work around the lack of z_streamp, it
17100 # seems unwise to encourage people to use such old zlib versions...
17101 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17102 $as_echo_n "checking for z_streamp... " >&6; }
17103 if test "${ac_cv_type_z_streamp+set}" = set; then
17104 $as_echo_n "(cached) " >&6
17106 ac_cv_type_z_streamp=no
17107 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17118 if (sizeof (z_streamp))
17124 rm -f conftest.$ac_objext
17125 if { (ac_try="$ac_compile"
17126 case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17131 $as_echo "$ac_try_echo") >&5
17132 (eval "$ac_compile") 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest.$ac_objext; then
17142 cat >conftest.$ac_ext <<_ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17153 if (sizeof ((z_streamp)))
17159 rm -f conftest.$ac_objext
17160 if { (ac_try="$ac_compile"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17166 $as_echo "$ac_try_echo") >&5
17167 (eval "$ac_compile") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest.$ac_objext; then
17179 $as_echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 ac_cv_type_z_streamp=yes
17185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17187 $as_echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17196 $as_echo "$ac_cv_type_z_streamp" >&6; }
17197 if test "x$ac_cv_type_z_streamp" = x""yes; then
17200 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17201 Use --without-zlib to disable zlib support." >&5
17202 $as_echo "$as_me: error: zlib version is too old
17203 Use --without-zlib to disable zlib support." >&2;}
17204 { (exit 1); exit 1; }; }
17209 if test "$with_krb5" = yes; then
17210 # Check for differences between MIT and Heimdal (KTH) releases
17211 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17212 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17213 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17214 $as_echo_n "(cached) " >&6
17216 cat >conftest.$ac_ext <<_ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17227 static krb5_ticket ac_aggr;
17228 if (ac_aggr.enc_part2)
17234 rm -f conftest.$ac_objext
17235 if { (ac_try="$ac_compile"
17236 case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17241 $as_echo "$ac_try_echo") >&5
17242 (eval "$ac_compile") 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && {
17249 test -z "$ac_c_werror_flag" ||
17250 test ! -s conftest.err
17251 } && test -s conftest.$ac_objext; then
17252 ac_cv_member_krb5_ticket_enc_part2=yes
17254 $as_echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 cat >conftest.$ac_ext <<_ACEOF
17260 cat confdefs.h >>conftest.$ac_ext
17261 cat >>conftest.$ac_ext <<_ACEOF
17262 /* end confdefs.h. */
17268 static krb5_ticket ac_aggr;
17269 if (sizeof ac_aggr.enc_part2)
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 ac_cv_member_krb5_ticket_enc_part2=yes
17295 $as_echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_cv_member_krb5_ticket_enc_part2=no
17301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17306 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17307 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17308 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17310 cat >>confdefs.h <<_ACEOF
17311 #define HAVE_KRB5_TICKET_ENC_PART2 1
17316 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17317 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17318 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17319 $as_echo_n "(cached) " >&6
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17332 static krb5_ticket ac_aggr;
17333 if (ac_aggr.client)
17339 rm -f conftest.$ac_objext
17340 if { (ac_try="$ac_compile"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17346 $as_echo "$ac_try_echo") >&5
17347 (eval "$ac_compile") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest.$ac_objext; then
17357 ac_cv_member_krb5_ticket_client=yes
17359 $as_echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 cat >conftest.$ac_ext <<_ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17373 static krb5_ticket ac_aggr;
17374 if (sizeof ac_aggr.client)
17380 rm -f conftest.$ac_objext
17381 if { (ac_try="$ac_compile"
17382 case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17387 $as_echo "$ac_try_echo") >&5
17388 (eval "$ac_compile") 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } && {
17395 test -z "$ac_c_werror_flag" ||
17396 test ! -s conftest.err
17397 } && test -s conftest.$ac_objext; then
17398 ac_cv_member_krb5_ticket_client=yes
17400 $as_echo "$as_me: failed program was:" >&5
17401 sed 's/^/| /' conftest.$ac_ext >&5
17403 ac_cv_member_krb5_ticket_client=no
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17412 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17413 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17415 cat >>confdefs.h <<_ACEOF
17416 #define HAVE_KRB5_TICKET_CLIENT 1
17421 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17422 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17423 { (exit 1); exit 1; }; }
17428 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17429 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17430 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17431 $as_echo_n "(cached) " >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17444 static krb5_error ac_aggr;
17445 if (ac_aggr.text.data)
17451 rm -f conftest.$ac_objext
17452 if { (ac_try="$ac_compile"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17458 $as_echo "$ac_try_echo") >&5
17459 (eval "$ac_compile") 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } && {
17466 test -z "$ac_c_werror_flag" ||
17467 test ! -s conftest.err
17468 } && test -s conftest.$ac_objext; then
17469 ac_cv_member_krb5_error_text_data=yes
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17485 static krb5_error ac_aggr;
17486 if (sizeof ac_aggr.text.data)
17492 rm -f conftest.$ac_objext
17493 if { (ac_try="$ac_compile"
17494 case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17499 $as_echo "$ac_try_echo") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 ac_cv_member_krb5_error_text_data=yes
17512 $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_member_krb5_error_text_data=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17524 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17525 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17527 cat >>confdefs.h <<_ACEOF
17528 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17533 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17534 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17535 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17536 $as_echo_n "(cached) " >&6
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17549 static krb5_error ac_aggr;
17550 if (ac_aggr.e_data)
17556 rm -f conftest.$ac_objext
17557 if { (ac_try="$ac_compile"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17563 $as_echo "$ac_try_echo") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17574 ac_cv_member_krb5_error_e_data=yes
17576 $as_echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17590 static krb5_error ac_aggr;
17591 if (sizeof ac_aggr.e_data)
17597 rm -f conftest.$ac_objext
17598 if { (ac_try="$ac_compile"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17604 $as_echo "$ac_try_echo") >&5
17605 (eval "$ac_compile") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest.$ac_objext; then
17615 ac_cv_member_krb5_error_e_data=yes
17617 $as_echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_member_krb5_error_e_data=no
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17629 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17630 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define HAVE_KRB5_ERROR_E_DATA 1
17638 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17639 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17640 { (exit 1); exit 1; }; }
17646 # Win32 requires headers to be loaded for __stdcall, so can't use
17647 # AC_CHECK_FUNCS here.
17648 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17649 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17650 cat >conftest.$ac_ext <<_ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17660 krb5_free_unparsed_name(NULL,NULL);
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (ac_try="$ac_link"
17667 case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17672 $as_echo "$ac_try_echo") >&5
17673 (eval "$ac_link") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17677 cat conftest.err >&5
17678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest$ac_exeext && {
17683 test "$cross_compiling" = yes ||
17684 $as_test_x conftest$ac_exeext
17687 cat >>confdefs.h <<\_ACEOF
17688 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17691 { $as_echo "$as_me:$LINENO: result: yes" >&5
17692 $as_echo "yes" >&6; }
17694 $as_echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 { $as_echo "$as_me:$LINENO: result: no" >&5
17698 $as_echo "no" >&6; }
17701 rm -rf conftest.dSYM
17702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17703 conftest$ac_exeext conftest.$ac_ext
17706 # Check largefile support. You might think this is a system service not a
17707 # compiler characteristic, but you'd be wrong. We must check this before
17708 # probing existence of related functions such as fseeko, since the largefile
17709 # defines can affect what is generated for that.
17710 # Check whether --enable-largefile was given.
17711 if test "${enable_largefile+set}" = set; then
17712 enableval=$enable_largefile;
17715 if test "$enable_largefile" != no; then
17717 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17718 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17719 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17720 $as_echo_n "(cached) " >&6
17722 ac_cv_sys_largefile_CC=no
17723 if test "$GCC" != yes; then
17726 # IRIX 6.2 and later do not support large files by default,
17727 # so use the C compiler's -n32 option if that helps.
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 #include <sys/types.h>
17735 /* Check that off_t can represent 2**63 - 1 correctly.
17736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17737 since some C++ compilers masquerading as C compilers
17738 incorrectly reject 9223372036854775807. */
17739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17741 && LARGE_OFF_T % 2147483647 == 1)
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17758 $as_echo "$ac_try_echo") >&5
17759 (eval "$ac_compile") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && {
17766 test -z "$ac_c_werror_flag" ||
17767 test ! -s conftest.err
17768 } && test -s conftest.$ac_objext; then
17771 $as_echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17777 rm -f core conftest.err conftest.$ac_objext
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17786 $as_echo "$ac_try_echo") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } && {
17794 test -z "$ac_c_werror_flag" ||
17795 test ! -s conftest.err
17796 } && test -s conftest.$ac_objext; then
17797 ac_cv_sys_largefile_CC=' -n32'; break
17799 $as_echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17805 rm -f core conftest.err conftest.$ac_objext
17809 rm -f conftest.$ac_ext
17812 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17813 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17814 if test "$ac_cv_sys_largefile_CC" != no; then
17815 CC=$CC$ac_cv_sys_largefile_CC
17818 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17819 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17820 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17821 $as_echo_n "(cached) " >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 #include <sys/types.h>
17831 /* Check that off_t can represent 2**63 - 1 correctly.
17832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17833 since some C++ compilers masquerading as C compilers
17834 incorrectly reject 9223372036854775807. */
17835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17837 && LARGE_OFF_T % 2147483647 == 1)
17847 rm -f conftest.$ac_objext
17848 if { (ac_try="$ac_compile"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17854 $as_echo "$ac_try_echo") >&5
17855 (eval "$ac_compile") 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17859 cat conftest.err >&5
17860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } && {
17862 test -z "$ac_c_werror_flag" ||
17863 test ! -s conftest.err
17864 } && test -s conftest.$ac_objext; then
17865 ac_cv_sys_file_offset_bits=no; break
17867 $as_echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 cat >conftest.$ac_ext <<_ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 #define _FILE_OFFSET_BITS 64
17881 #include <sys/types.h>
17882 /* Check that off_t can represent 2**63 - 1 correctly.
17883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17884 since some C++ compilers masquerading as C compilers
17885 incorrectly reject 9223372036854775807. */
17886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17888 && LARGE_OFF_T % 2147483647 == 1)
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906 (eval "$ac_compile") 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest.$ac_objext; then
17916 ac_cv_sys_file_offset_bits=64; break
17918 $as_echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925 ac_cv_sys_file_offset_bits=unknown
17929 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17930 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17931 case $ac_cv_sys_file_offset_bits in #(
17934 cat >>confdefs.h <<_ACEOF
17935 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17940 if test $ac_cv_sys_file_offset_bits = unknown; then
17941 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17942 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17943 if test "${ac_cv_sys_large_files+set}" = set; then
17944 $as_echo_n "(cached) " >&6
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 #include <sys/types.h>
17954 /* Check that off_t can represent 2**63 - 1 correctly.
17955 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17956 since some C++ compilers masquerading as C compilers
17957 incorrectly reject 9223372036854775807. */
17958 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17960 && LARGE_OFF_T % 2147483647 == 1)
17970 rm -f conftest.$ac_objext
17971 if { (ac_try="$ac_compile"
17972 case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17977 $as_echo "$ac_try_echo") >&5
17978 (eval "$ac_compile") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } && {
17985 test -z "$ac_c_werror_flag" ||
17986 test ! -s conftest.err
17987 } && test -s conftest.$ac_objext; then
17988 ac_cv_sys_large_files=no; break
17990 $as_echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 cat >conftest.$ac_ext <<_ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003 #define _LARGE_FILES 1
18004 #include <sys/types.h>
18005 /* Check that off_t can represent 2**63 - 1 correctly.
18006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18007 since some C++ compilers masquerading as C compilers
18008 incorrectly reject 9223372036854775807. */
18009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18011 && LARGE_OFF_T % 2147483647 == 1)
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18028 $as_echo "$ac_try_echo") >&5
18029 (eval "$ac_compile") 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest.$ac_objext; then
18039 ac_cv_sys_large_files=1; break
18041 $as_echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 ac_cv_sys_large_files=unknown
18052 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18053 $as_echo "$ac_cv_sys_large_files" >&6; }
18054 case $ac_cv_sys_large_files in #(
18057 cat >>confdefs.h <<_ACEOF
18058 #define _LARGE_FILES $ac_cv_sys_large_files
18067 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18068 # The cast to long int works around a bug in the HP C Compiler
18069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18071 # This bug is HP SR number 8606223364.
18072 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18073 $as_echo_n "checking size of off_t... " >&6; }
18074 if test "${ac_cv_sizeof_off_t+set}" = set; then
18075 $as_echo_n "(cached) " >&6
18077 if test "$cross_compiling" = yes; then
18078 # Depending upon the size, compute the lo and hi bounds.
18079 cat >conftest.$ac_ext <<_ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18085 $ac_includes_default
18089 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18096 rm -f conftest.$ac_objext
18097 if { (ac_try="$ac_compile"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18103 $as_echo "$ac_try_echo") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18106 grep -v '^ *+' conftest.er1 >conftest.err
18108 cat conftest.err >&5
18109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } && {
18111 test -z "$ac_c_werror_flag" ||
18112 test ! -s conftest.err
18113 } && test -s conftest.$ac_objext; then
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 $ac_includes_default
18126 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18133 rm -f conftest.$ac_objext
18134 if { (ac_try="$ac_compile"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18140 $as_echo "$ac_try_echo") >&5
18141 (eval "$ac_compile") 2>conftest.er1
18143 grep -v '^ *+' conftest.er1 >conftest.err
18145 cat conftest.err >&5
18146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } && {
18148 test -z "$ac_c_werror_flag" ||
18149 test ! -s conftest.err
18150 } && test -s conftest.$ac_objext; then
18151 ac_hi=$ac_mid; break
18153 $as_echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_lo=`expr $ac_mid + 1`
18157 if test $ac_lo -le $ac_mid; then
18161 ac_mid=`expr 2 '*' $ac_mid + 1`
18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 $as_echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 $ac_includes_default
18180 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18194 $as_echo "$ac_try_echo") >&5
18195 (eval "$ac_compile") 2>conftest.er1
18197 grep -v '^ *+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest.$ac_objext; then
18207 cat >conftest.$ac_ext <<_ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18213 $ac_includes_default
18217 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18224 rm -f conftest.$ac_objext
18225 if { (ac_try="$ac_compile"
18226 case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18231 $as_echo "$ac_try_echo") >&5
18232 (eval "$ac_compile") 2>conftest.er1
18234 grep -v '^ *+' conftest.er1 >conftest.err
18236 cat conftest.err >&5
18237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } && {
18239 test -z "$ac_c_werror_flag" ||
18240 test ! -s conftest.err
18241 } && test -s conftest.$ac_objext; then
18242 ac_lo=$ac_mid; break
18244 $as_echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18247 ac_hi=`expr '(' $ac_mid ')' - 1`
18248 if test $ac_mid -le $ac_hi; then
18252 ac_mid=`expr 2 '*' $ac_mid`
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 $as_echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 # Binary search between lo and hi bounds.
18269 while test "x$ac_lo" != "x$ac_hi"; do
18270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18281 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18295 $as_echo "$ac_try_echo") >&5
18296 (eval "$ac_compile") 2>conftest.er1
18298 grep -v '^ *+' conftest.er1 >conftest.err
18300 cat conftest.err >&5
18301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && {
18303 test -z "$ac_c_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.$ac_objext; then
18308 $as_echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_lo=`expr '(' $ac_mid ')' + 1`
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18318 '') if test "$ac_cv_type_off_t" = yes; then
18319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18321 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18322 See \`config.log' for more details." >&5
18323 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18324 See \`config.log' for more details." >&2;}
18325 { (exit 77); exit 77; }; }; }
18327 ac_cv_sizeof_off_t=0
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 $ac_includes_default
18338 static long int longval () { return (long int) (sizeof (off_t)); }
18339 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18341 #include <stdlib.h>
18346 FILE *f = fopen ("conftest.val", "w");
18349 if (((long int) (sizeof (off_t))) < 0)
18351 long int i = longval ();
18352 if (i != ((long int) (sizeof (off_t))))
18354 fprintf (f, "%ld", i);
18358 unsigned long int i = ulongval ();
18359 if (i != ((long int) (sizeof (off_t))))
18361 fprintf (f, "%lu", i);
18363 /* Do not output a trailing newline, as this causes \r\n confusion
18364 on some platforms. */
18365 return ferror (f) || fclose (f) != 0;
18371 rm -f conftest$ac_exeext
18372 if { (ac_try="$ac_link"
18373 case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18378 $as_echo "$ac_try_echo") >&5
18379 (eval "$ac_link") 2>&5
18381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18383 { (case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18388 $as_echo "$ac_try_echo") >&5
18389 (eval "$ac_try") 2>&5
18391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_cv_sizeof_off_t=`cat conftest.val`
18395 $as_echo "$as_me: program exited with status $ac_status" >&5
18396 $as_echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 ( exit $ac_status )
18400 if test "$ac_cv_type_off_t" = yes; then
18401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18403 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18404 See \`config.log' for more details." >&5
18405 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18406 See \`config.log' for more details." >&2;}
18407 { (exit 77); exit 77; }; }; }
18409 ac_cv_sizeof_off_t=0
18412 rm -rf conftest.dSYM
18413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18417 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18418 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18422 cat >>confdefs.h <<_ACEOF
18423 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18428 # If we don't have largefile support, can't handle segsize >= 2GB.
18429 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18430 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18431 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18432 { (exit 1); exit 1; }; }
18437 ## Functions, global variables
18440 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18441 $as_echo_n "checking for int timezone... " >&6; }
18442 if test "${pgac_cv_var_int_timezone+set}" = set; then
18443 $as_echo_n "(cached) " >&6
18445 cat >conftest.$ac_ext <<_ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18457 res = timezone / 60;
18459 res = _timezone / 60;
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18472 $as_echo "$ac_try_echo") >&5
18473 (eval "$ac_link") 2>conftest.er1
18475 grep -v '^ *+' conftest.er1 >conftest.err
18477 cat conftest.err >&5
18478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } && {
18480 test -z "$ac_c_werror_flag" ||
18481 test ! -s conftest.err
18482 } && test -s conftest$ac_exeext && {
18483 test "$cross_compiling" = yes ||
18484 $as_test_x conftest$ac_exeext
18486 pgac_cv_var_int_timezone=yes
18488 $as_echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 pgac_cv_var_int_timezone=no
18494 rm -rf conftest.dSYM
18495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18496 conftest$ac_exeext conftest.$ac_ext
18498 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18499 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18500 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18502 cat >>confdefs.h <<\_ACEOF
18503 #define HAVE_INT_TIMEZONE /**/
18507 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18508 $as_echo_n "checking types of arguments for accept()... " >&6; }
18509 if test "${ac_cv_func_accept_return+set}" = set; then
18510 $as_echo_n "(cached) " >&6
18512 if test "${ac_cv_func_accept_arg1+set}" = set; then
18513 $as_echo_n "(cached) " >&6
18515 if test "${ac_cv_func_accept_arg2+set}" = set; then
18516 $as_echo_n "(cached) " >&6
18518 if test "${ac_cv_func_accept_arg3+set}" = set; then
18519 $as_echo_n "(cached) " >&6
18521 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18522 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18523 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18524 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 #ifdef HAVE_SYS_TYPES_H
18532 #include <sys/types.h>
18534 #ifdef HAVE_SYS_SOCKET_H
18535 #include <sys/socket.h>
18537 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18546 rm -f conftest.$ac_objext
18547 if { (ac_try="$ac_compile"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18553 $as_echo "$ac_try_echo") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest.$ac_objext; then
18564 ac_not_found=no; break 4
18566 $as_echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577 if test "$ac_not_found" = yes; then
18578 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18579 $as_echo "$as_me: error: could not determine argument types" >&2;}
18580 { (exit 1); exit 1; }; }
18582 if test "$ac_cv_func_accept_arg3" = "void"; then
18583 ac_cv_func_accept_arg3=int
18593 { $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
18594 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18596 cat >>confdefs.h <<_ACEOF
18597 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18601 cat >>confdefs.h <<_ACEOF
18602 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18606 cat >>confdefs.h <<_ACEOF
18607 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18611 cat >>confdefs.h <<_ACEOF
18612 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18616 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18617 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18618 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18619 $as_echo_n "(cached) " >&6
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 #include <sys/time.h>
18631 struct timeval *tp;
18632 struct timezone *tzp;
18633 gettimeofday(tp,tzp);
18638 rm -f conftest.$ac_objext
18639 if { (ac_try="$ac_compile"
18640 case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18645 $as_echo "$ac_try_echo") >&5
18646 (eval "$ac_compile") 2>conftest.er1
18648 grep -v '^ *+' conftest.er1 >conftest.err
18650 cat conftest.err >&5
18651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } && {
18653 test -z "$ac_c_werror_flag" ||
18654 test ! -s conftest.err
18655 } && test -s conftest.$ac_objext; then
18656 pgac_cv_func_gettimeofday_1arg=no
18658 $as_echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 pgac_cv_func_gettimeofday_1arg=yes
18664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18666 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18667 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18668 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18670 cat >>confdefs.h <<\_ACEOF
18671 #define GETTIMEOFDAY_1ARG /**/
18701 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18704 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18705 $as_echo_n "checking for $ac_func... " >&6; }
18706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18707 $as_echo_n "(cached) " >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18717 #define $ac_func innocuous_$ac_func
18719 /* System header to define __stub macros and hopefully few prototypes,
18720 which can conflict with char $ac_func (); below.
18721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18722 <limits.h> exists even on freestanding compilers. */
18725 # include <limits.h>
18727 # include <assert.h>
18732 /* Override any GCC internal prototype to avoid an error.
18733 Use char because int might match the return type of a GCC
18734 builtin and then its argument prototype would still apply. */
18739 /* The GNU C library defines this for functions which it implements
18740 to always fail with ENOSYS. Some functions are actually named
18741 something starting with __ and the normal name is an alias. */
18742 #if defined __stub_$ac_func || defined __stub___$ac_func
18749 return $ac_func ();
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (ac_try="$ac_link"
18756 case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18761 $as_echo "$ac_try_echo") >&5
18762 (eval "$ac_link") 2>conftest.er1
18764 grep -v '^ *+' conftest.er1 >conftest.err
18766 cat conftest.err >&5
18767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } && {
18769 test -z "$ac_c_werror_flag" ||
18770 test ! -s conftest.err
18771 } && test -s conftest$ac_exeext && {
18772 test "$cross_compiling" = yes ||
18773 $as_test_x conftest$ac_exeext
18775 eval "$as_ac_var=yes"
18777 $as_echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18780 eval "$as_ac_var=no"
18783 rm -rf conftest.dSYM
18784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18785 conftest$ac_exeext conftest.$ac_ext
18787 ac_res=`eval 'as_val=${'$as_ac_var'}
18788 $as_echo "$as_val"'`
18789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18790 $as_echo "$ac_res" >&6; }
18791 as_val=`eval 'as_val=${'$as_ac_var'}
18792 $as_echo "$as_val"'`
18793 if test "x$as_val" = x""yes; then
18794 cat >>confdefs.h <<_ACEOF
18795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18803 for ac_func in fseeko
18805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18806 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18807 $as_echo_n "checking for $ac_func... " >&6; }
18808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18809 $as_echo_n "(cached) " >&6
18811 cat >conftest.$ac_ext <<_ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18819 #define $ac_func innocuous_$ac_func
18821 /* System header to define __stub macros and hopefully few prototypes,
18822 which can conflict with char $ac_func (); below.
18823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18824 <limits.h> exists even on freestanding compilers. */
18827 # include <limits.h>
18829 # include <assert.h>
18834 /* Override any GCC internal prototype to avoid an error.
18835 Use char because int might match the return type of a GCC
18836 builtin and then its argument prototype would still apply. */
18841 /* The GNU C library defines this for functions which it implements
18842 to always fail with ENOSYS. Some functions are actually named
18843 something starting with __ and the normal name is an alias. */
18844 #if defined __stub_$ac_func || defined __stub___$ac_func
18851 return $ac_func ();
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18863 $as_echo "$ac_try_echo") >&5
18864 (eval "$ac_link") 2>conftest.er1
18866 grep -v '^ *+' conftest.er1 >conftest.err
18868 cat conftest.err >&5
18869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } && {
18871 test -z "$ac_c_werror_flag" ||
18872 test ! -s conftest.err
18873 } && test -s conftest$ac_exeext && {
18874 test "$cross_compiling" = yes ||
18875 $as_test_x conftest$ac_exeext
18877 eval "$as_ac_var=yes"
18879 $as_echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18882 eval "$as_ac_var=no"
18885 rm -rf conftest.dSYM
18886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18887 conftest$ac_exeext conftest.$ac_ext
18889 ac_res=`eval 'as_val=${'$as_ac_var'}
18890 $as_echo "$as_val"'`
18891 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18892 $as_echo "$ac_res" >&6; }
18893 as_val=`eval 'as_val=${'$as_ac_var'}
18894 $as_echo "$as_val"'`
18895 if test "x$as_val" = x""yes; then
18896 cat >>confdefs.h <<_ACEOF
18897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18901 case " $LIBOBJS " in
18902 *" $ac_func.$ac_objext "* ) ;;
18903 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18912 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18913 # Mingw uses macros to access Win32 API calls
18914 bsdi*|netbsd*|mingw*)
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_FSEEKO 1
18920 ac_cv_func_fseeko=yes;;
18922 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18923 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18924 if test "${ac_cv_sys_largefile_source+set}" = set; then
18925 $as_echo_n "(cached) " >&6
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 #include <sys/types.h> /* for off_t */
18939 int (*fp) (FILE *, off_t, int) = fseeko;
18940 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18952 $as_echo "$ac_try_echo") >&5
18953 (eval "$ac_link") 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest$ac_exeext && {
18963 test "$cross_compiling" = yes ||
18964 $as_test_x conftest$ac_exeext
18966 ac_cv_sys_largefile_source=no; break
18968 $as_echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18974 rm -rf conftest.dSYM
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976 conftest$ac_exeext conftest.$ac_ext
18977 cat >conftest.$ac_ext <<_ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #define _LARGEFILE_SOURCE 1
18984 #include <sys/types.h> /* for off_t */
18989 int (*fp) (FILE *, off_t, int) = fseeko;
18990 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19002 $as_echo "$ac_try_echo") >&5
19003 (eval "$ac_link") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19007 cat conftest.err >&5
19008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest$ac_exeext && {
19013 test "$cross_compiling" = yes ||
19014 $as_test_x conftest$ac_exeext
19016 ac_cv_sys_largefile_source=1; break
19018 $as_echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19024 rm -rf conftest.dSYM
19025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19026 conftest$ac_exeext conftest.$ac_ext
19027 ac_cv_sys_largefile_source=unknown
19031 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19032 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19033 case $ac_cv_sys_largefile_source in #(
19036 cat >>confdefs.h <<_ACEOF
19037 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19043 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19044 # in glibc 2.1.3, but that breaks too many other things.
19045 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19046 if test $ac_cv_sys_largefile_source != unknown; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_FSEEKO 1
19056 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19057 # by calling it, 2009-04-02
19058 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19059 if test "$PORTNAME" != "solaris"; then
19061 for ac_func in posix_fadvise
19063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19064 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19065 $as_echo_n "checking for $ac_func... " >&6; }
19066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19067 $as_echo_n "(cached) " >&6
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19077 #define $ac_func innocuous_$ac_func
19079 /* System header to define __stub macros and hopefully few prototypes,
19080 which can conflict with char $ac_func (); below.
19081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19082 <limits.h> exists even on freestanding compilers. */
19085 # include <limits.h>
19087 # include <assert.h>
19092 /* Override any GCC internal prototype to avoid an error.
19093 Use char because int might match the return type of a GCC
19094 builtin and then its argument prototype would still apply. */
19099 /* The GNU C library defines this for functions which it implements
19100 to always fail with ENOSYS. Some functions are actually named
19101 something starting with __ and the normal name is an alias. */
19102 #if defined __stub_$ac_func || defined __stub___$ac_func
19109 return $ac_func ();
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19121 $as_echo "$ac_try_echo") >&5
19122 (eval "$ac_link") 2>conftest.er1
19124 grep -v '^ *+' conftest.er1 >conftest.err
19126 cat conftest.err >&5
19127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } && {
19129 test -z "$ac_c_werror_flag" ||
19130 test ! -s conftest.err
19131 } && test -s conftest$ac_exeext && {
19132 test "$cross_compiling" = yes ||
19133 $as_test_x conftest$ac_exeext
19135 eval "$as_ac_var=yes"
19137 $as_echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 eval "$as_ac_var=no"
19143 rm -rf conftest.dSYM
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19147 ac_res=`eval 'as_val=${'$as_ac_var'}
19148 $as_echo "$as_val"'`
19149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19150 $as_echo "$ac_res" >&6; }
19151 as_val=`eval 'as_val=${'$as_ac_var'}
19152 $as_echo "$as_val"'`
19153 if test "x$as_val" = x""yes; then
19154 cat >>confdefs.h <<_ACEOF
19155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19161 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19162 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19163 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19164 $as_echo_n "(cached) " >&6
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19177 #ifndef posix_fadvise
19178 (void) posix_fadvise;
19185 rm -f conftest.$ac_objext
19186 if { (ac_try="$ac_compile"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19192 $as_echo "$ac_try_echo") >&5
19193 (eval "$ac_compile") 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest.$ac_objext; then
19203 ac_cv_have_decl_posix_fadvise=yes
19205 $as_echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 ac_cv_have_decl_posix_fadvise=no
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19214 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19215 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define HAVE_DECL_POSIX_FADVISE 1
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_DECL_POSIX_FADVISE 0
19233 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19234 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19235 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19236 $as_echo_n "(cached) " >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <unistd.h>
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19264 $as_echo "$ac_try_echo") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19275 ac_cv_have_decl_fdatasync=yes
19277 $as_echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 ac_cv_have_decl_fdatasync=no
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19286 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19287 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19289 cat >>confdefs.h <<_ACEOF
19290 #define HAVE_DECL_FDATASYNC 1
19295 cat >>confdefs.h <<_ACEOF
19296 #define HAVE_DECL_FDATASYNC 0
19303 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19304 $as_echo_n "checking whether strlcat is declared... " >&6; }
19305 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19306 $as_echo_n "(cached) " >&6
19308 cat >conftest.$ac_ext <<_ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 $ac_includes_default
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19333 $as_echo "$ac_try_echo") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest.$ac_objext; then
19344 ac_cv_have_decl_strlcat=yes
19346 $as_echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_cv_have_decl_strlcat=no
19352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19355 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19356 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19358 cat >>confdefs.h <<_ACEOF
19359 #define HAVE_DECL_STRLCAT 1
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_DECL_STRLCAT 0
19370 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19371 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19372 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19373 $as_echo_n "(cached) " >&6
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 $ac_includes_default
19393 rm -f conftest.$ac_objext
19394 if { (ac_try="$ac_compile"
19395 case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19400 $as_echo "$ac_try_echo") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } && {
19408 test -z "$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 } && test -s conftest.$ac_objext; then
19411 ac_cv_have_decl_strlcpy=yes
19413 $as_echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19416 ac_cv_have_decl_strlcpy=no
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19422 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19423 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19425 cat >>confdefs.h <<_ACEOF
19426 #define HAVE_DECL_STRLCPY 1
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_DECL_STRLCPY 0
19439 # This is probably only present on Darwin, but may as well check always
19440 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19441 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19442 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19443 $as_echo_n "(cached) " >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19456 #ifndef F_FULLFSYNC
19457 (void) F_FULLFSYNC;
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471 $as_echo "$ac_try_echo") >&5
19472 (eval "$ac_compile") 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest.$ac_objext; then
19482 ac_cv_have_decl_F_FULLFSYNC=yes
19484 $as_echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_cv_have_decl_F_FULLFSYNC=no
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19492 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19493 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19494 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define HAVE_DECL_F_FULLFSYNC 1
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_DECL_F_FULLFSYNC 0
19512 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19513 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19514 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19515 $as_echo_n "(cached) " >&6
19517 ac_cv_type_struct_sockaddr_in6=no
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 $ac_includes_default
19525 #include <netinet/in.h>
19530 if (sizeof (struct sockaddr_in6))
19536 rm -f conftest.$ac_objext
19537 if { (ac_try="$ac_compile"
19538 case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19543 $as_echo "$ac_try_echo") >&5
19544 (eval "$ac_compile") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } && {
19551 test -z "$ac_c_werror_flag" ||
19552 test ! -s conftest.err
19553 } && test -s conftest.$ac_objext; then
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 $ac_includes_default
19561 #include <netinet/in.h>
19566 if (sizeof ((struct sockaddr_in6)))
19572 rm -f conftest.$ac_objext
19573 if { (ac_try="$ac_compile"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19579 $as_echo "$ac_try_echo") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } && {
19587 test -z "$ac_c_werror_flag" ||
19588 test ! -s conftest.err
19589 } && test -s conftest.$ac_objext; then
19592 $as_echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_type_struct_sockaddr_in6=yes
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 $as_echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19609 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19610 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_IPV6 1
19621 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19622 $as_echo_n "checking for PS_STRINGS... " >&6; }
19623 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19624 $as_echo_n "(cached) " >&6
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19632 #include <machine/vmparam.h>
19633 #include <sys/exec.h>
19638 PS_STRINGS->ps_nargvstr = 1;
19639 PS_STRINGS->ps_argvstr = "foo";
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (ac_try="$ac_link"
19646 case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19651 $as_echo "$ac_try_echo") >&5
19652 (eval "$ac_link") 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext && {
19662 test "$cross_compiling" = yes ||
19663 $as_test_x conftest$ac_exeext
19665 pgac_cv_var_PS_STRINGS=yes
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 pgac_cv_var_PS_STRINGS=no
19673 rm -rf conftest.dSYM
19674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19675 conftest$ac_exeext conftest.$ac_ext
19677 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19678 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19679 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_PS_STRINGS /**/
19688 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19689 # is missing. Yes, there are machines that have only one. We may
19690 # also decide to use snprintf.c if snprintf() is present but does not
19691 # have all the features we need --- see below.
19693 if test "$PORTNAME" = "win32"; then
19694 # Win32 gets snprintf.c built unconditionally.
19696 # To properly translate all NLS languages strings, we must support the
19697 # *printf() %$ format, which allows *printf() arguments to be selected
19698 # by position in the translated string.
19700 # libintl versions < 0.13 use the native *printf() functions, and Win32
19701 # *printf() doesn't understand %$, so we must use our /port versions,
19702 # which do understand %$. libintl versions >= 0.13 include their own
19703 # *printf versions on Win32. The libintl 0.13 release note text is:
19705 # C format strings with positions, as they arise when a translator
19706 # needs to reorder a sentence, are now supported on all platforms.
19707 # On those few platforms (NetBSD and Woe32) for which the native
19708 # printf()/fprintf()/... functions don't support such format
19709 # strings, replacements are provided through <libintl.h>.
19711 # We could use libintl >= 0.13's *printf() if we were sure that we had
19712 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19713 # to guarantee that, it is best to just use our own, so we are sure to
19714 # get %$ support. In include/port.h we disable the *printf() macros
19715 # that might have been defined by libintl.
19717 # We do this unconditionally whether NLS is used or not so we are sure
19718 # that all Win32 libraries and binaries behave the same.
19719 pgac_need_repl_snprintf=yes
19721 pgac_need_repl_snprintf=no
19723 for ac_func in snprintf
19725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19727 $as_echo_n "checking for $ac_func... " >&6; }
19728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19729 $as_echo_n "(cached) " >&6
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19739 #define $ac_func innocuous_$ac_func
19741 /* System header to define __stub macros and hopefully few prototypes,
19742 which can conflict with char $ac_func (); below.
19743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19744 <limits.h> exists even on freestanding compilers. */
19747 # include <limits.h>
19749 # include <assert.h>
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19761 /* The GNU C library defines this for functions which it implements
19762 to always fail with ENOSYS. Some functions are actually named
19763 something starting with __ and the normal name is an alias. */
19764 #if defined __stub_$ac_func || defined __stub___$ac_func
19771 return $ac_func ();
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19783 $as_echo "$ac_try_echo") >&5
19784 (eval "$ac_link") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest$ac_exeext && {
19794 test "$cross_compiling" = yes ||
19795 $as_test_x conftest$ac_exeext
19797 eval "$as_ac_var=yes"
19799 $as_echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 eval "$as_ac_var=no"
19805 rm -rf conftest.dSYM
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807 conftest$ac_exeext conftest.$ac_ext
19809 ac_res=`eval 'as_val=${'$as_ac_var'}
19810 $as_echo "$as_val"'`
19811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19812 $as_echo "$ac_res" >&6; }
19813 as_val=`eval 'as_val=${'$as_ac_var'}
19814 $as_echo "$as_val"'`
19815 if test "x$as_val" = x""yes; then
19816 cat >>confdefs.h <<_ACEOF
19817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19821 pgac_need_repl_snprintf=yes
19826 for ac_func in vsnprintf
19828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19829 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19830 $as_echo_n "checking for $ac_func... " >&6; }
19831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19832 $as_echo_n "(cached) " >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19842 #define $ac_func innocuous_$ac_func
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char $ac_func (); below.
19846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847 <limits.h> exists even on freestanding compilers. */
19850 # include <limits.h>
19852 # include <assert.h>
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined __stub_$ac_func || defined __stub___$ac_func
19874 return $ac_func ();
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19886 $as_echo "$ac_try_echo") >&5
19887 (eval "$ac_link") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext && {
19897 test "$cross_compiling" = yes ||
19898 $as_test_x conftest$ac_exeext
19900 eval "$as_ac_var=yes"
19902 $as_echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 eval "$as_ac_var=no"
19908 rm -rf conftest.dSYM
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19912 ac_res=`eval 'as_val=${'$as_ac_var'}
19913 $as_echo "$as_val"'`
19914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19915 $as_echo "$ac_res" >&6; }
19916 as_val=`eval 'as_val=${'$as_ac_var'}
19917 $as_echo "$as_val"'`
19918 if test "x$as_val" = x""yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19924 pgac_need_repl_snprintf=yes
19931 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19932 # include/c.h will provide declarations. Note this is a separate test
19933 # from whether the functions exist in the C library --- there are
19934 # systems that have the functions but don't bother to declare them :-(
19936 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19937 $as_echo_n "checking whether snprintf is declared... " >&6; }
19938 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19939 $as_echo_n "(cached) " >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 $ac_includes_default
19959 rm -f conftest.$ac_objext
19960 if { (ac_try="$ac_compile"
19961 case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19966 $as_echo "$ac_try_echo") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.$ac_objext; then
19977 ac_cv_have_decl_snprintf=yes
19979 $as_echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19982 ac_cv_have_decl_snprintf=no
19985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19988 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19989 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19991 cat >>confdefs.h <<_ACEOF
19992 #define HAVE_DECL_SNPRINTF 1
19997 cat >>confdefs.h <<_ACEOF
19998 #define HAVE_DECL_SNPRINTF 0
20003 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20004 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20005 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20006 $as_echo_n "(cached) " >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20026 rm -f conftest.$ac_objext
20027 if { (ac_try="$ac_compile"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20033 $as_echo "$ac_try_echo") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest.$ac_objext; then
20044 ac_cv_have_decl_vsnprintf=yes
20046 $as_echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_cv_have_decl_vsnprintf=no
20052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20055 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20056 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20058 cat >>confdefs.h <<_ACEOF
20059 #define HAVE_DECL_VSNPRINTF 1
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_DECL_VSNPRINTF 0
20074 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20075 $as_echo_n "checking for isinf... " >&6; }
20076 if test "${ac_cv_func_isinf+set}" = set; then
20077 $as_echo_n "(cached) " >&6
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20087 double glob_double;
20092 return isinf(glob_double) ? 0 : 1;
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20104 $as_echo "$ac_try_echo") >&5
20105 (eval "$ac_link") 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext && {
20115 test "$cross_compiling" = yes ||
20116 $as_test_x conftest$ac_exeext
20118 ac_cv_func_isinf=yes
20120 $as_echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_func_isinf=no
20126 rm -rf conftest.dSYM
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128 conftest$ac_exeext conftest.$ac_ext
20130 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20131 $as_echo "$ac_cv_func_isinf" >&6; }
20133 if test $ac_cv_func_isinf = yes ; then
20135 cat >>confdefs.h <<\_ACEOF
20136 #define HAVE_ISINF 1
20140 case " $LIBOBJS " in
20141 *" isinf.$ac_objext "* ) ;;
20142 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20146 # Look for a way to implement a substitute for isinf()
20151 for ac_func in fpclass fp_class fp_class_d class
20153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20155 $as_echo_n "checking for $ac_func... " >&6; }
20156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20157 $as_echo_n "(cached) " >&6
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20167 #define $ac_func innocuous_$ac_func
20169 /* System header to define __stub macros and hopefully few prototypes,
20170 which can conflict with char $ac_func (); below.
20171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20172 <limits.h> exists even on freestanding compilers. */
20175 # include <limits.h>
20177 # include <assert.h>
20182 /* Override any GCC internal prototype to avoid an error.
20183 Use char because int might match the return type of a GCC
20184 builtin and then its argument prototype would still apply. */
20189 /* The GNU C library defines this for functions which it implements
20190 to always fail with ENOSYS. Some functions are actually named
20191 something starting with __ and the normal name is an alias. */
20192 #if defined __stub_$ac_func || defined __stub___$ac_func
20199 return $ac_func ();
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20211 $as_echo "$ac_try_echo") >&5
20212 (eval "$ac_link") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext && {
20222 test "$cross_compiling" = yes ||
20223 $as_test_x conftest$ac_exeext
20225 eval "$as_ac_var=yes"
20227 $as_echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 eval "$as_ac_var=no"
20233 rm -rf conftest.dSYM
20234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20235 conftest$ac_exeext conftest.$ac_ext
20237 ac_res=`eval 'as_val=${'$as_ac_var'}
20238 $as_echo "$as_val"'`
20239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20240 $as_echo "$ac_res" >&6; }
20241 as_val=`eval 'as_val=${'$as_ac_var'}
20242 $as_echo "$as_val"'`
20243 if test "x$as_val" = x""yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20253 # Some versions of libedit contain strlcpy(); so disregard that library while
20254 # checking for these standard libc functions.
20255 pgac_save_LIBS="$LIBS"
20256 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20272 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20274 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20275 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20276 $as_echo_n "checking for $ac_func... " >&6; }
20277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20278 $as_echo_n "(cached) " >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define $ac_func innocuous_$ac_func
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char $ac_func (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20296 # include <limits.h>
20298 # include <assert.h>
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub_$ac_func || defined __stub___$ac_func
20320 return $ac_func ();
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_link") 2>conftest.er1
20335 grep -v '^ *+' conftest.er1 >conftest.err
20337 cat conftest.err >&5
20338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest$ac_exeext && {
20343 test "$cross_compiling" = yes ||
20344 $as_test_x conftest$ac_exeext
20346 eval "$as_ac_var=yes"
20348 $as_echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 eval "$as_ac_var=no"
20354 rm -rf conftest.dSYM
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20358 ac_res=`eval 'as_val=${'$as_ac_var'}
20359 $as_echo "$as_val"'`
20360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20361 $as_echo "$ac_res" >&6; }
20362 as_val=`eval 'as_val=${'$as_ac_var'}
20363 $as_echo "$as_val"'`
20364 if test "x$as_val" = x""yes; then
20365 cat >>confdefs.h <<_ACEOF
20366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20370 case " $LIBOBJS " in
20371 *" $ac_func.$ac_objext "* ) ;;
20372 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20383 # Windows uses a specialised env handler
20386 cat >>confdefs.h <<\_ACEOF
20387 #define HAVE_UNSETENV 1
20390 ac_cv_func_unsetenv=yes;;
20393 for ac_func in unsetenv
20395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20397 $as_echo_n "checking for $ac_func... " >&6; }
20398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20399 $as_echo_n "(cached) " >&6
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20409 #define $ac_func innocuous_$ac_func
20411 /* System header to define __stub macros and hopefully few prototypes,
20412 which can conflict with char $ac_func (); below.
20413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20414 <limits.h> exists even on freestanding compilers. */
20417 # include <limits.h>
20419 # include <assert.h>
20424 /* Override any GCC internal prototype to avoid an error.
20425 Use char because int might match the return type of a GCC
20426 builtin and then its argument prototype would still apply. */
20431 /* The GNU C library defines this for functions which it implements
20432 to always fail with ENOSYS. Some functions are actually named
20433 something starting with __ and the normal name is an alias. */
20434 #if defined __stub_$ac_func || defined __stub___$ac_func
20441 return $ac_func ();
20446 rm -f conftest.$ac_objext conftest$ac_exeext
20447 if { (ac_try="$ac_link"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20453 $as_echo "$ac_try_echo") >&5
20454 (eval "$ac_link") 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } && {
20461 test -z "$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20463 } && test -s conftest$ac_exeext && {
20464 test "$cross_compiling" = yes ||
20465 $as_test_x conftest$ac_exeext
20467 eval "$as_ac_var=yes"
20469 $as_echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 eval "$as_ac_var=no"
20475 rm -rf conftest.dSYM
20476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20477 conftest$ac_exeext conftest.$ac_ext
20479 ac_res=`eval 'as_val=${'$as_ac_var'}
20480 $as_echo "$as_val"'`
20481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20482 $as_echo "$ac_res" >&6; }
20483 as_val=`eval 'as_val=${'$as_ac_var'}
20484 $as_echo "$as_val"'`
20485 if test "x$as_val" = x""yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20491 case " $LIBOBJS " in
20492 *" $ac_func.$ac_objext "* ) ;;
20493 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20505 LIBS="$pgac_save_LIBS"
20507 # System's version of getaddrinfo(), if any, may be used only if we found
20508 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20509 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20510 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20511 # because we want to use our own getaddrinfo.c on Windows anyway.)
20512 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20514 for ac_func in getaddrinfo
20516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20518 $as_echo_n "checking for $ac_func... " >&6; }
20519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20520 $as_echo_n "(cached) " >&6
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20530 #define $ac_func innocuous_$ac_func
20532 /* System header to define __stub macros and hopefully few prototypes,
20533 which can conflict with char $ac_func (); below.
20534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20535 <limits.h> exists even on freestanding compilers. */
20538 # include <limits.h>
20540 # include <assert.h>
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20552 /* The GNU C library defines this for functions which it implements
20553 to always fail with ENOSYS. Some functions are actually named
20554 something starting with __ and the normal name is an alias. */
20555 #if defined __stub_$ac_func || defined __stub___$ac_func
20562 return $ac_func ();
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20574 $as_echo "$ac_try_echo") >&5
20575 (eval "$ac_link") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest$ac_exeext && {
20585 test "$cross_compiling" = yes ||
20586 $as_test_x conftest$ac_exeext
20588 eval "$as_ac_var=yes"
20590 $as_echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 eval "$as_ac_var=no"
20596 rm -rf conftest.dSYM
20597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20598 conftest$ac_exeext conftest.$ac_ext
20600 ac_res=`eval 'as_val=${'$as_ac_var'}
20601 $as_echo "$as_val"'`
20602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20603 $as_echo "$ac_res" >&6; }
20604 as_val=`eval 'as_val=${'$as_ac_var'}
20605 $as_echo "$as_val"'`
20606 if test "x$as_val" = x""yes; then
20607 cat >>confdefs.h <<_ACEOF
20608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20612 case " $LIBOBJS " in
20613 *" $ac_func.$ac_objext "* ) ;;
20614 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20623 case " $LIBOBJS " in
20624 *" getaddrinfo.$ac_objext "* ) ;;
20625 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20631 # Similarly, use system's getopt_long() only if system provides struct option.
20632 if test x"$ac_cv_type_struct_option" = xyes ; then
20634 for ac_func in getopt_long
20636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20637 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20638 $as_echo_n "checking for $ac_func... " >&6; }
20639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20640 $as_echo_n "(cached) " >&6
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20650 #define $ac_func innocuous_$ac_func
20652 /* System header to define __stub macros and hopefully few prototypes,
20653 which can conflict with char $ac_func (); below.
20654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20655 <limits.h> exists even on freestanding compilers. */
20658 # include <limits.h>
20660 # include <assert.h>
20665 /* Override any GCC internal prototype to avoid an error.
20666 Use char because int might match the return type of a GCC
20667 builtin and then its argument prototype would still apply. */
20672 /* The GNU C library defines this for functions which it implements
20673 to always fail with ENOSYS. Some functions are actually named
20674 something starting with __ and the normal name is an alias. */
20675 #if defined __stub_$ac_func || defined __stub___$ac_func
20682 return $ac_func ();
20687 rm -f conftest.$ac_objext conftest$ac_exeext
20688 if { (ac_try="$ac_link"
20689 case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20694 $as_echo "$ac_try_echo") >&5
20695 (eval "$ac_link") 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest$ac_exeext && {
20705 test "$cross_compiling" = yes ||
20706 $as_test_x conftest$ac_exeext
20708 eval "$as_ac_var=yes"
20710 $as_echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 eval "$as_ac_var=no"
20716 rm -rf conftest.dSYM
20717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20718 conftest$ac_exeext conftest.$ac_ext
20720 ac_res=`eval 'as_val=${'$as_ac_var'}
20721 $as_echo "$as_val"'`
20722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20723 $as_echo "$ac_res" >&6; }
20724 as_val=`eval 'as_val=${'$as_ac_var'}
20725 $as_echo "$as_val"'`
20726 if test "x$as_val" = x""yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20732 case " $LIBOBJS " in
20733 *" $ac_func.$ac_objext "* ) ;;
20734 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20743 case " $LIBOBJS " in
20744 *" getopt_long.$ac_objext "* ) ;;
20745 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20751 # Solaris' getopt() doesn't do what we want for long options, so always use
20752 # our version on that platform.
20753 if test "$PORTNAME" = "solaris"; then
20754 case " $LIBOBJS " in
20755 *" getopt.$ac_objext "* ) ;;
20756 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20762 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20763 # so always use our version on Windows.
20764 if test "$PORTNAME" = "win32"; then
20765 case " $LIBOBJS " in
20766 *" getopt.$ac_objext "* ) ;;
20767 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20771 case " $LIBOBJS " in
20772 *" getopt_long.$ac_objext "* ) ;;
20773 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20779 # Cygwin's erand48() is broken (always returns zero) in some releases,
20780 # so force use of ours.
20781 if test "$PORTNAME" = "cygwin"; then
20782 case " $LIBOBJS " in
20783 *" erand48.$ac_objext "* ) ;;
20784 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20791 if test "$PORTNAME" = "win32"; then
20793 for ac_func in gettimeofday
20795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20797 $as_echo_n "checking for $ac_func... " >&6; }
20798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20799 $as_echo_n "(cached) " >&6
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20809 #define $ac_func innocuous_$ac_func
20811 /* System header to define __stub macros and hopefully few prototypes,
20812 which can conflict with char $ac_func (); below.
20813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20814 <limits.h> exists even on freestanding compilers. */
20817 # include <limits.h>
20819 # include <assert.h>
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20831 /* The GNU C library defines this for functions which it implements
20832 to always fail with ENOSYS. Some functions are actually named
20833 something starting with __ and the normal name is an alias. */
20834 #if defined __stub_$ac_func || defined __stub___$ac_func
20841 return $ac_func ();
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (ac_try="$ac_link"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20853 $as_echo "$ac_try_echo") >&5
20854 (eval "$ac_link") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest$ac_exeext && {
20864 test "$cross_compiling" = yes ||
20865 $as_test_x conftest$ac_exeext
20867 eval "$as_ac_var=yes"
20869 $as_echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 eval "$as_ac_var=no"
20875 rm -rf conftest.dSYM
20876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20877 conftest$ac_exeext conftest.$ac_ext
20879 ac_res=`eval 'as_val=${'$as_ac_var'}
20880 $as_echo "$as_val"'`
20881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20882 $as_echo "$ac_res" >&6; }
20883 as_val=`eval 'as_val=${'$as_ac_var'}
20884 $as_echo "$as_val"'`
20885 if test "x$as_val" = x""yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20891 case " $LIBOBJS " in
20892 *" $ac_func.$ac_objext "* ) ;;
20893 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20901 case " $LIBOBJS " in
20902 *" kill.$ac_objext "* ) ;;
20903 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20907 case " $LIBOBJS " in
20908 *" open.$ac_objext "* ) ;;
20909 *) LIBOBJS="$LIBOBJS open.$ac_objext"
20913 case " $LIBOBJS " in
20914 *" win32env.$ac_objext "* ) ;;
20915 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20919 case " $LIBOBJS " in
20920 *" win32error.$ac_objext "* ) ;;
20921 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20926 cat >>confdefs.h <<\_ACEOF
20927 #define HAVE_SYMLINK 1
20930 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
20931 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
20932 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
20933 $as_echo_n "(cached) " >&6
20935 ac_cv_type_MINIDUMP_TYPE=no
20936 cat >conftest.$ac_ext <<_ACEOF
20939 cat confdefs.h >>conftest.$ac_ext
20940 cat >>conftest.$ac_ext <<_ACEOF
20941 /* end confdefs.h. */
20943 #define WIN32_LEAN_AND_MEAN
20944 #include <windows.h>
20945 #include <string.h>
20946 #include <dbghelp.h>
20951 if (sizeof (MINIDUMP_TYPE))
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20964 $as_echo "$ac_try_echo") >&5
20965 (eval "$ac_compile") 2>conftest.er1
20967 grep -v '^ *+' conftest.er1 >conftest.err
20969 cat conftest.err >&5
20970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && {
20972 test -z "$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20974 } && test -s conftest.$ac_objext; then
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 #define WIN32_LEAN_AND_MEAN
20983 #include <windows.h>
20984 #include <string.h>
20985 #include <dbghelp.h>
20990 if (sizeof ((MINIDUMP_TYPE)))
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21003 $as_echo "$ac_try_echo") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21016 $as_echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_cv_type_MINIDUMP_TYPE=yes
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 $as_echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21033 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21034 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define HAVE_MINIDUMP_TYPE 1
21040 pgac_minidump_type=yes
21042 pgac_minidump_type=no
21046 if test x"$pgac_minidump_type" = x"yes" ; then
21047 have_win32_dbghelp=yes
21050 have_win32_dbghelp=no
21054 if test "$with_readline" = yes; then
21055 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21056 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21057 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21058 $as_echo_n "(cached) " >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21067 #ifdef HAVE_READLINE_READLINE_H
21068 # include <readline/readline.h>
21069 #elif defined(HAVE_READLINE_H)
21070 # include <readline.h>
21076 rl_completion_append_character = 'x';
21081 rm -f conftest.$ac_objext conftest$ac_exeext
21082 if { (ac_try="$ac_link"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21088 $as_echo "$ac_try_echo") >&5
21089 (eval "$ac_link") 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest$ac_exeext && {
21099 test "$cross_compiling" = yes ||
21100 $as_test_x conftest$ac_exeext
21102 pgac_cv_var_rl_completion_append_character=yes
21104 $as_echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 pgac_cv_var_rl_completion_append_character=no
21110 rm -rf conftest.dSYM
21111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21112 conftest$ac_exeext conftest.$ac_ext
21114 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21115 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21116 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21125 for ac_func in rl_completion_matches rl_filename_completion_function
21127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21129 $as_echo_n "checking for $ac_func... " >&6; }
21130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21131 $as_echo_n "(cached) " >&6
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21141 #define $ac_func innocuous_$ac_func
21143 /* System header to define __stub macros and hopefully few prototypes,
21144 which can conflict with char $ac_func (); below.
21145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21146 <limits.h> exists even on freestanding compilers. */
21149 # include <limits.h>
21151 # include <assert.h>
21156 /* Override any GCC internal prototype to avoid an error.
21157 Use char because int might match the return type of a GCC
21158 builtin and then its argument prototype would still apply. */
21163 /* The GNU C library defines this for functions which it implements
21164 to always fail with ENOSYS. Some functions are actually named
21165 something starting with __ and the normal name is an alias. */
21166 #if defined __stub_$ac_func || defined __stub___$ac_func
21173 return $ac_func ();
21178 rm -f conftest.$ac_objext conftest$ac_exeext
21179 if { (ac_try="$ac_link"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21185 $as_echo "$ac_try_echo") >&5
21186 (eval "$ac_link") 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } && {
21193 test -z "$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21195 } && test -s conftest$ac_exeext && {
21196 test "$cross_compiling" = yes ||
21197 $as_test_x conftest$ac_exeext
21199 eval "$as_ac_var=yes"
21201 $as_echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21204 eval "$as_ac_var=no"
21207 rm -rf conftest.dSYM
21208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21209 conftest$ac_exeext conftest.$ac_ext
21211 ac_res=`eval 'as_val=${'$as_ac_var'}
21212 $as_echo "$as_val"'`
21213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21214 $as_echo "$ac_res" >&6; }
21215 as_val=`eval 'as_val=${'$as_ac_var'}
21216 $as_echo "$as_val"'`
21217 if test "x$as_val" = x""yes; then
21218 cat >>confdefs.h <<_ACEOF
21219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21227 for ac_func in append_history history_truncate_file
21229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21231 $as_echo_n "checking for $ac_func... " >&6; }
21232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21233 $as_echo_n "(cached) " >&6
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21243 #define $ac_func innocuous_$ac_func
21245 /* System header to define __stub macros and hopefully few prototypes,
21246 which can conflict with char $ac_func (); below.
21247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21248 <limits.h> exists even on freestanding compilers. */
21251 # include <limits.h>
21253 # include <assert.h>
21258 /* Override any GCC internal prototype to avoid an error.
21259 Use char because int might match the return type of a GCC
21260 builtin and then its argument prototype would still apply. */
21265 /* The GNU C library defines this for functions which it implements
21266 to always fail with ENOSYS. Some functions are actually named
21267 something starting with __ and the normal name is an alias. */
21268 #if defined __stub_$ac_func || defined __stub___$ac_func
21275 return $ac_func ();
21280 rm -f conftest.$ac_objext conftest$ac_exeext
21281 if { (ac_try="$ac_link"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21287 $as_echo "$ac_try_echo") >&5
21288 (eval "$ac_link") 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest$ac_exeext && {
21298 test "$cross_compiling" = yes ||
21299 $as_test_x conftest$ac_exeext
21301 eval "$as_ac_var=yes"
21303 $as_echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 eval "$as_ac_var=no"
21309 rm -rf conftest.dSYM
21310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21311 conftest$ac_exeext conftest.$ac_ext
21313 ac_res=`eval 'as_val=${'$as_ac_var'}
21314 $as_echo "$as_val"'`
21315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21316 $as_echo "$ac_res" >&6; }
21317 as_val=`eval 'as_val=${'$as_ac_var'}
21318 $as_echo "$as_val"'`
21319 if test "x$as_val" = x""yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21330 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21331 $as_echo_n "checking for sigsetjmp... " >&6; }
21332 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21333 $as_echo_n "(cached) " >&6
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21341 #include <setjmp.h>
21345 sigjmp_buf x; sigsetjmp(x, 1);
21350 rm -f conftest.$ac_objext conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21357 $as_echo "$ac_try_echo") >&5
21358 (eval "$ac_link") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } && {
21365 test -z "$ac_c_werror_flag" ||
21366 test ! -s conftest.err
21367 } && test -s conftest$ac_exeext && {
21368 test "$cross_compiling" = yes ||
21369 $as_test_x conftest$ac_exeext
21371 pgac_cv_func_sigsetjmp=yes
21373 $as_echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21376 pgac_cv_func_sigsetjmp=no
21379 rm -rf conftest.dSYM
21380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21381 conftest$ac_exeext conftest.$ac_ext
21383 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21384 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21385 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21387 cat >>confdefs.h <<\_ACEOF
21388 #define HAVE_SIGSETJMP 1
21393 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21394 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21395 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21396 $as_echo_n "(cached) " >&6
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 #include <signal.h>
21405 /* NetBSD declares sys_siglist in unistd.h. */
21406 #ifdef HAVE_UNISTD_H
21407 # include <unistd.h>
21414 #ifndef sys_siglist
21415 (void) sys_siglist;
21422 rm -f conftest.$ac_objext
21423 if { (ac_try="$ac_compile"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21429 $as_echo "$ac_try_echo") >&5
21430 (eval "$ac_compile") 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest.$ac_objext; then
21440 ac_cv_have_decl_sys_siglist=yes
21442 $as_echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_cv_have_decl_sys_siglist=no
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21451 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21452 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21454 cat >>confdefs.h <<_ACEOF
21455 #define HAVE_DECL_SYS_SIGLIST 1
21460 cat >>confdefs.h <<_ACEOF
21461 #define HAVE_DECL_SYS_SIGLIST 0
21470 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21471 $as_echo_n "checking for syslog... " >&6; }
21472 if test "${ac_cv_func_syslog+set}" = set; then
21473 $as_echo_n "(cached) " >&6
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21483 #define syslog innocuous_syslog
21485 /* System header to define __stub macros and hopefully few prototypes,
21486 which can conflict with char syslog (); below.
21487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21488 <limits.h> exists even on freestanding compilers. */
21491 # include <limits.h>
21493 # include <assert.h>
21498 /* Override any GCC internal prototype to avoid an error.
21499 Use char because int might match the return type of a GCC
21500 builtin and then its argument prototype would still apply. */
21505 /* The GNU C library defines this for functions which it implements
21506 to always fail with ENOSYS. Some functions are actually named
21507 something starting with __ and the normal name is an alias. */
21508 #if defined __stub_syslog || defined __stub___syslog
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (ac_try="$ac_link"
21522 case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21527 $as_echo "$ac_try_echo") >&5
21528 (eval "$ac_link") 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest$ac_exeext && {
21538 test "$cross_compiling" = yes ||
21539 $as_test_x conftest$ac_exeext
21541 ac_cv_func_syslog=yes
21543 $as_echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_cv_func_syslog=no
21549 rm -rf conftest.dSYM
21550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21551 conftest$ac_exeext conftest.$ac_ext
21553 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21554 $as_echo "$ac_cv_func_syslog" >&6; }
21555 if test "x$ac_cv_func_syslog" = x""yes; then
21556 if test "${ac_cv_header_syslog_h+set}" = set; then
21557 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21558 $as_echo_n "checking for syslog.h... " >&6; }
21559 if test "${ac_cv_header_syslog_h+set}" = set; then
21560 $as_echo_n "(cached) " >&6
21562 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21563 $as_echo "$ac_cv_header_syslog_h" >&6; }
21565 # Is the header compilable?
21566 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21567 $as_echo_n "checking syslog.h usability... " >&6; }
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21575 #include <syslog.h>
21577 rm -f conftest.$ac_objext
21578 if { (ac_try="$ac_compile"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21584 $as_echo "$ac_try_echo") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21595 ac_header_compiler=yes
21597 $as_echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_header_compiler=no
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21605 $as_echo "$ac_header_compiler" >&6; }
21607 # Is the header present?
21608 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21609 $as_echo_n "checking syslog.h presence... " >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <syslog.h>
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21624 $as_echo "$ac_try_echo") >&5
21625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21627 grep -v '^ *+' conftest.er1 >conftest.err
21629 cat conftest.err >&5
21630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } >/dev/null && {
21632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21635 ac_header_preproc=yes
21637 $as_echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ac_header_preproc=no
21643 rm -f conftest.err conftest.$ac_ext
21644 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21645 $as_echo "$ac_header_preproc" >&6; }
21647 # So? What about this header?
21648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21650 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21651 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21652 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21653 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21654 ac_header_preproc=yes
21657 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21658 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21659 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21660 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21661 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21662 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21663 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21664 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21665 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21666 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21667 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21668 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21670 ## ---------------------------------------- ##
21671 ## Report this to pgsql-bugs@postgresql.org ##
21672 ## ---------------------------------------- ##
21674 ) | sed "s/^/$as_me: WARNING: /" >&2
21677 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21678 $as_echo_n "checking for syslog.h... " >&6; }
21679 if test "${ac_cv_header_syslog_h+set}" = set; then
21680 $as_echo_n "(cached) " >&6
21682 ac_cv_header_syslog_h=$ac_header_preproc
21684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21685 $as_echo "$ac_cv_header_syslog_h" >&6; }
21688 if test "x$ac_cv_header_syslog_h" = x""yes; then
21690 cat >>confdefs.h <<\_ACEOF
21691 #define HAVE_SYSLOG 1
21700 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21701 $as_echo_n "checking for opterr... " >&6; }
21702 if test "${pgac_cv_var_int_opterr+set}" = set; then
21703 $as_echo_n "(cached) " >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <unistd.h>
21715 extern int opterr; opterr = 1;
21720 rm -f conftest.$ac_objext conftest$ac_exeext
21721 if { (ac_try="$ac_link"
21722 case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21727 $as_echo "$ac_try_echo") >&5
21728 (eval "$ac_link") 2>conftest.er1
21730 grep -v '^ *+' conftest.er1 >conftest.err
21732 cat conftest.err >&5
21733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && {
21735 test -z "$ac_c_werror_flag" ||
21736 test ! -s conftest.err
21737 } && test -s conftest$ac_exeext && {
21738 test "$cross_compiling" = yes ||
21739 $as_test_x conftest$ac_exeext
21741 pgac_cv_var_int_opterr=yes
21743 $as_echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 pgac_cv_var_int_opterr=no
21749 rm -rf conftest.dSYM
21750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21751 conftest$ac_exeext conftest.$ac_ext
21753 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21754 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21755 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21757 cat >>confdefs.h <<\_ACEOF
21758 #define HAVE_INT_OPTERR 1
21763 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21764 $as_echo_n "checking for optreset... " >&6; }
21765 if test "${pgac_cv_var_int_optreset+set}" = set; then
21766 $as_echo_n "(cached) " >&6
21768 cat >conftest.$ac_ext <<_ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774 #include <unistd.h>
21778 extern int optreset; optreset = 1;
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21790 $as_echo "$ac_try_echo") >&5
21791 (eval "$ac_link") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest$ac_exeext && {
21801 test "$cross_compiling" = yes ||
21802 $as_test_x conftest$ac_exeext
21804 pgac_cv_var_int_optreset=yes
21806 $as_echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 pgac_cv_var_int_optreset=no
21812 rm -rf conftest.dSYM
21813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21814 conftest$ac_exeext conftest.$ac_ext
21816 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21817 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21818 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21820 cat >>confdefs.h <<\_ACEOF
21821 #define HAVE_INT_OPTRESET 1
21828 for ac_func in strtoll strtoq
21830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21832 $as_echo_n "checking for $ac_func... " >&6; }
21833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21834 $as_echo_n "(cached) " >&6
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21844 #define $ac_func innocuous_$ac_func
21846 /* System header to define __stub macros and hopefully few prototypes,
21847 which can conflict with char $ac_func (); below.
21848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21849 <limits.h> exists even on freestanding compilers. */
21852 # include <limits.h>
21854 # include <assert.h>
21859 /* Override any GCC internal prototype to avoid an error.
21860 Use char because int might match the return type of a GCC
21861 builtin and then its argument prototype would still apply. */
21866 /* The GNU C library defines this for functions which it implements
21867 to always fail with ENOSYS. Some functions are actually named
21868 something starting with __ and the normal name is an alias. */
21869 #if defined __stub_$ac_func || defined __stub___$ac_func
21876 return $ac_func ();
21881 rm -f conftest.$ac_objext conftest$ac_exeext
21882 if { (ac_try="$ac_link"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21888 $as_echo "$ac_try_echo") >&5
21889 (eval "$ac_link") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest$ac_exeext && {
21899 test "$cross_compiling" = yes ||
21900 $as_test_x conftest$ac_exeext
21902 eval "$as_ac_var=yes"
21904 $as_echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 eval "$as_ac_var=no"
21910 rm -rf conftest.dSYM
21911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21912 conftest$ac_exeext conftest.$ac_ext
21914 ac_res=`eval 'as_val=${'$as_ac_var'}
21915 $as_echo "$as_val"'`
21916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21917 $as_echo "$ac_res" >&6; }
21918 as_val=`eval 'as_val=${'$as_ac_var'}
21919 $as_echo "$as_val"'`
21920 if test "x$as_val" = x""yes; then
21921 cat >>confdefs.h <<_ACEOF
21922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21930 for ac_func in strtoull strtouq
21932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21933 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21934 $as_echo_n "checking for $ac_func... " >&6; }
21935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21936 $as_echo_n "(cached) " >&6
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21946 #define $ac_func innocuous_$ac_func
21948 /* System header to define __stub macros and hopefully few prototypes,
21949 which can conflict with char $ac_func (); below.
21950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21951 <limits.h> exists even on freestanding compilers. */
21954 # include <limits.h>
21956 # include <assert.h>
21961 /* Override any GCC internal prototype to avoid an error.
21962 Use char because int might match the return type of a GCC
21963 builtin and then its argument prototype would still apply. */
21968 /* The GNU C library defines this for functions which it implements
21969 to always fail with ENOSYS. Some functions are actually named
21970 something starting with __ and the normal name is an alias. */
21971 #if defined __stub_$ac_func || defined __stub___$ac_func
21978 return $ac_func ();
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
21991 (eval "$ac_link") 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext && {
22001 test "$cross_compiling" = yes ||
22002 $as_test_x conftest$ac_exeext
22004 eval "$as_ac_var=yes"
22006 $as_echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 eval "$as_ac_var=no"
22012 rm -rf conftest.dSYM
22013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014 conftest$ac_exeext conftest.$ac_ext
22016 ac_res=`eval 'as_val=${'$as_ac_var'}
22017 $as_echo "$as_val"'`
22018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22019 $as_echo "$ac_res" >&6; }
22020 as_val=`eval 'as_val=${'$as_ac_var'}
22021 $as_echo "$as_val"'`
22022 if test "x$as_val" = x""yes; then
22023 cat >>confdefs.h <<_ACEOF
22024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22031 # Check for one of atexit() or on_exit()
22033 for ac_func in atexit
22035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22036 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22037 $as_echo_n "checking for $ac_func... " >&6; }
22038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22039 $as_echo_n "(cached) " >&6
22041 cat >conftest.$ac_ext <<_ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22049 #define $ac_func innocuous_$ac_func
22051 /* System header to define __stub macros and hopefully few prototypes,
22052 which can conflict with char $ac_func (); below.
22053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22054 <limits.h> exists even on freestanding compilers. */
22057 # include <limits.h>
22059 # include <assert.h>
22064 /* Override any GCC internal prototype to avoid an error.
22065 Use char because int might match the return type of a GCC
22066 builtin and then its argument prototype would still apply. */
22071 /* The GNU C library defines this for functions which it implements
22072 to always fail with ENOSYS. Some functions are actually named
22073 something starting with __ and the normal name is an alias. */
22074 #if defined __stub_$ac_func || defined __stub___$ac_func
22081 return $ac_func ();
22086 rm -f conftest.$ac_objext conftest$ac_exeext
22087 if { (ac_try="$ac_link"
22088 case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22093 $as_echo "$ac_try_echo") >&5
22094 (eval "$ac_link") 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } && {
22101 test -z "$ac_c_werror_flag" ||
22102 test ! -s conftest.err
22103 } && test -s conftest$ac_exeext && {
22104 test "$cross_compiling" = yes ||
22105 $as_test_x conftest$ac_exeext
22107 eval "$as_ac_var=yes"
22109 $as_echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 eval "$as_ac_var=no"
22115 rm -rf conftest.dSYM
22116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22117 conftest$ac_exeext conftest.$ac_ext
22119 ac_res=`eval 'as_val=${'$as_ac_var'}
22120 $as_echo "$as_val"'`
22121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22122 $as_echo "$ac_res" >&6; }
22123 as_val=`eval 'as_val=${'$as_ac_var'}
22124 $as_echo "$as_val"'`
22125 if test "x$as_val" = x""yes; then
22126 cat >>confdefs.h <<_ACEOF
22127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22132 for ac_func in on_exit
22134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22135 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22136 $as_echo_n "checking for $ac_func... " >&6; }
22137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22138 $as_echo_n "(cached) " >&6
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22148 #define $ac_func innocuous_$ac_func
22150 /* System header to define __stub macros and hopefully few prototypes,
22151 which can conflict with char $ac_func (); below.
22152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22153 <limits.h> exists even on freestanding compilers. */
22156 # include <limits.h>
22158 # include <assert.h>
22163 /* Override any GCC internal prototype to avoid an error.
22164 Use char because int might match the return type of a GCC
22165 builtin and then its argument prototype would still apply. */
22170 /* The GNU C library defines this for functions which it implements
22171 to always fail with ENOSYS. Some functions are actually named
22172 something starting with __ and the normal name is an alias. */
22173 #if defined __stub_$ac_func || defined __stub___$ac_func
22180 return $ac_func ();
22185 rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (ac_try="$ac_link"
22187 case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22192 $as_echo "$ac_try_echo") >&5
22193 (eval "$ac_link") 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && {
22200 test -z "$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22202 } && test -s conftest$ac_exeext && {
22203 test "$cross_compiling" = yes ||
22204 $as_test_x conftest$ac_exeext
22206 eval "$as_ac_var=yes"
22208 $as_echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 eval "$as_ac_var=no"
22214 rm -rf conftest.dSYM
22215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22216 conftest$ac_exeext conftest.$ac_ext
22218 ac_res=`eval 'as_val=${'$as_ac_var'}
22219 $as_echo "$as_val"'`
22220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22221 $as_echo "$ac_res" >&6; }
22222 as_val=`eval 'as_val=${'$as_ac_var'}
22223 $as_echo "$as_val"'`
22224 if test "x$as_val" = x""yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22230 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22231 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22232 { (exit 1); exit 1; }; }
22244 # For each platform, we need to know about any special compile and link
22245 # libraries, and whether the normal C function names are thread-safe.
22246 # See the comment at the top of src/port/thread.c for more information.
22247 # WIN32 doesn't need the pthread tests; it always uses threads
22248 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22253 ac_cpp='$CPP $CPPFLAGS'
22254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22260 # We used to check for pthread.h first, but this fails if pthread.h
22261 # requires special compiler flags (e.g. on True64 or Sequent).
22262 # It gets checked for in the link test anyway.
22264 # First of all, check if the user has set any of the PTHREAD_LIBS,
22265 # etcetera environment variables, and if threads linking works using
22267 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22268 save_CFLAGS="$CFLAGS"
22269 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22271 LIBS="$PTHREAD_LIBS $LIBS"
22272 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22273 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22274 cat >conftest.$ac_ext <<_ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h. */
22281 /* Override any GCC internal prototype to avoid an error.
22282 Use char because int might match the return type of a GCC
22283 builtin and then its argument prototype would still apply. */
22287 char pthread_join ();
22291 return pthread_join ();
22296 rm -f conftest.$ac_objext conftest$ac_exeext
22297 if { (ac_try="$ac_link"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304 (eval "$ac_link") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest$ac_exeext && {
22314 test "$cross_compiling" = yes ||
22315 $as_test_x conftest$ac_exeext
22319 $as_echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22325 rm -rf conftest.dSYM
22326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22327 conftest$ac_exeext conftest.$ac_ext
22328 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22329 $as_echo "$acx_pthread_ok" >&6; }
22330 if test x"$acx_pthread_ok" = xno; then
22335 CFLAGS="$save_CFLAGS"
22338 # We must check for the threads library under a number of different
22339 # names; the ordering is very important because some systems
22340 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22341 # libraries is broken (non-POSIX).
22343 # Create a list of thread flags to try. Items starting with a "-" are
22344 # C compiler flags, and other items are library names, except for "none"
22345 # which indicates that we try without any flags at all, and "pthread-config"
22346 # which is a program returning the flags for the Pth emulation library.
22348 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22350 # The ordering *is* (sometimes) important. Some notes on the
22351 # individual items follow:
22353 # pthreads: AIX (must check this before -lpthread)
22354 # none: in case threads are in libc; should be tried before -Kthread and
22355 # other compiler flags to prevent continual compiler warnings
22356 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22357 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22358 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22359 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22360 # -pthreads: Solaris/gcc
22361 # -mthreads: Mingw32/gcc, Lynx/gcc
22362 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22363 # doesn't hurt to check since this sometimes defines pthreads too;
22364 # also defines -D_REENTRANT)
22365 # pthread: Linux, etcetera
22366 # --thread-safe: KAI C++
22367 # pthread-config: use pthread-config program (for GNU Pth library)
22369 case "${host_cpu}-${host_os}" in
22372 # On Solaris (at least, for some versions), libc contains stubbed
22373 # (non-functional) versions of the pthreads routines, so link-based
22374 # tests will erroneously succeed. (We need to link with -pthread or
22375 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22376 # a function called by this macro, so we could check for that, but
22377 # who knows whether they'll stub that too in a future libc.) So,
22378 # we'll just look for -pthreads and -lpthread first:
22380 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22384 if test x"$acx_pthread_ok" = xno; then
22385 for flag in $acx_pthread_flags; do
22387 tryPTHREAD_CFLAGS=""
22391 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22392 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22396 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22397 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22398 tryPTHREAD_CFLAGS="$flag"
22402 # skip this if we already have flags defined, for PostgreSQL
22403 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22404 # Extract the first word of "pthread-config", so it can be a program name with args.
22405 set dummy pthread-config; ac_word=$2
22406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22407 $as_echo_n "checking for $ac_word... " >&6; }
22408 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22409 $as_echo_n "(cached) " >&6
22411 if test -n "$acx_pthread_config"; then
22412 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22418 test -z "$as_dir" && as_dir=.
22419 for ac_exec_ext in '' $ac_executable_extensions; do
22420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22421 ac_cv_prog_acx_pthread_config="yes"
22422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22429 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22432 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22433 if test -n "$acx_pthread_config"; then
22434 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22435 $as_echo "$acx_pthread_config" >&6; }
22437 { $as_echo "$as_me:$LINENO: result: no" >&5
22438 $as_echo "no" >&6; }
22442 if test x"$acx_pthread_config" = xno; then continue; fi
22443 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22444 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22448 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22449 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22450 tryPTHREAD_LIBS="-l$flag"
22455 save_CFLAGS="$CFLAGS"
22456 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22457 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22459 # Check for various functions. We must include pthread.h,
22460 # since some functions may be macros. (On the Sequent, we
22461 # need a special flag -Kthread to make this header compile.)
22462 # We check for pthread_join because it is in -lpthread on IRIX
22463 # while pthread_create is in libc. We check for pthread_attr_init
22464 # due to DEC craziness with -lpthreads. We check for
22465 # pthread_cleanup_push because it is one of the few pthread
22466 # functions on Solaris that doesn't have a non-functional libc stub.
22467 # We try pthread_create on general principles.
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <pthread.h>
22478 pthread_t th; pthread_join(th, 0);
22479 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22480 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493 (eval "$ac_link") 2>conftest.er1
22495 grep -v '^ *+' conftest.er1 >conftest.err
22497 cat conftest.err >&5
22498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && {
22500 test -z "$ac_c_werror_flag" ||
22501 test ! -s conftest.err
22502 } && test -s conftest$ac_exeext && {
22503 test "$cross_compiling" = yes ||
22504 $as_test_x conftest$ac_exeext
22508 $as_echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22514 rm -rf conftest.dSYM
22515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22516 conftest$ac_exeext conftest.$ac_ext
22518 if test "x$acx_pthread_ok" = xyes; then
22519 # Don't use options that are ignored by the compiler.
22520 # We find them by checking stderror.
22521 cat >conftest.$ac_ext <<_ACEOF
22523 main (int argc, char **argv)
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22532 # we continue with more flags because Linux needs -lpthread
22533 # for libpq builds on PostgreSQL. The test above only
22534 # tests for building binaries, not shared libraries.
22535 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22536 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22537 else acx_pthread_ok=no
22542 CFLAGS="$save_CFLAGS"
22544 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22545 $as_echo "$acx_pthread_ok" >&6; }
22549 # Various other checks:
22550 if test "x$acx_pthread_ok" = xyes; then
22552 LIBS="$PTHREAD_LIBS $LIBS"
22553 save_CFLAGS="$CFLAGS"
22554 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22556 # Detect AIX lossage: threads are created detached by default
22557 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22558 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22559 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22560 cat >conftest.$ac_ext <<_ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h. */
22566 #include <pthread.h>
22570 int attr=PTHREAD_CREATE_JOINABLE;
22575 rm -f conftest.$ac_objext conftest$ac_exeext
22576 if { (ac_try="$ac_link"
22577 case "(($ac_try" in
22578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579 *) ac_try_echo=$ac_try;;
22581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22582 $as_echo "$ac_try_echo") >&5
22583 (eval "$ac_link") 2>conftest.er1
22585 grep -v '^ *+' conftest.er1 >conftest.err
22587 cat conftest.err >&5
22588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } && {
22590 test -z "$ac_c_werror_flag" ||
22591 test ! -s conftest.err
22592 } && test -s conftest$ac_exeext && {
22593 test "$cross_compiling" = yes ||
22594 $as_test_x conftest$ac_exeext
22596 ok=PTHREAD_CREATE_JOINABLE
22598 $as_echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22604 rm -rf conftest.dSYM
22605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22606 conftest$ac_exeext conftest.$ac_ext
22607 if test x"$ok" = xunknown; then
22608 cat >conftest.$ac_ext <<_ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 #include <pthread.h>
22618 int attr=PTHREAD_CREATE_UNDETACHED;
22623 rm -f conftest.$ac_objext conftest$ac_exeext
22624 if { (ac_try="$ac_link"
22625 case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22630 $as_echo "$ac_try_echo") >&5
22631 (eval "$ac_link") 2>conftest.er1
22633 grep -v '^ *+' conftest.er1 >conftest.err
22635 cat conftest.err >&5
22636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } && {
22638 test -z "$ac_c_werror_flag" ||
22639 test ! -s conftest.err
22640 } && test -s conftest$ac_exeext && {
22641 test "$cross_compiling" = yes ||
22642 $as_test_x conftest$ac_exeext
22644 ok=PTHREAD_CREATE_UNDETACHED
22646 $as_echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22652 rm -rf conftest.dSYM
22653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22654 conftest$ac_exeext conftest.$ac_ext
22656 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22658 cat >>confdefs.h <<\_ACEOF
22659 #define PTHREAD_CREATE_JOINABLE $ok
22663 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22664 $as_echo "${ok}" >&6; }
22665 if test x"$ok" = xunknown; then
22666 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22667 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22670 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22671 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22673 # We always add these in PostgreSQL
22674 # case "${host_cpu}-${host_os}" in
22675 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22676 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22678 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22679 $as_echo "${flag}" >&6; }
22680 if test "x$flag" != xno; then
22681 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22685 CFLAGS="$save_CFLAGS"
22687 # Supporting cc_r would require a special CC in all places that
22688 # use libpq, and that is ugly, so we don't do it. Users can still
22689 # define their compiler as cc_r to do thread builds of everything.
22690 # More AIX lossage: must compile with cc_r
22691 # Extract the first word of "cc_r", so it can be a program name with args.
22692 set dummy cc_r; ac_word=$2
22693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22694 $as_echo_n "checking for $ac_word... " >&6; }
22695 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22696 $as_echo_n "(cached) " >&6
22698 if test -n "$PTHREAD_CC"; then
22699 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22702 for as_dir in $PATH
22705 test -z "$as_dir" && as_dir=.
22706 for ac_exec_ext in '' $ac_executable_extensions; do
22707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22708 ac_cv_prog_PTHREAD_CC="cc_r"
22709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22716 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22719 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22720 if test -n "$PTHREAD_CC"; then
22721 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22722 $as_echo "$PTHREAD_CC" >&6; }
22724 { $as_echo "$as_me:$LINENO: result: no" >&5
22725 $as_echo "no" >&6; }
22737 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22738 if test x"$acx_pthread_ok" = xyes; then
22740 cat >>confdefs.h <<\_ACEOF
22741 #define HAVE_PTHREAD 1
22750 ac_cpp='$CPP $CPPFLAGS'
22751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22757 # Some platforms use these, so just define them. They can't hurt if they
22758 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22759 # enables 5-arg getpwuid_r, among other things.
22760 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22763 # At this point, we don't want to muck with the compiler name for threading.
22764 # Let's see who fails, perhaps AIX. 2004-04-23
22765 if test "$PTHREAD_CC" != "$CC"; then
22766 { { $as_echo "$as_me:$LINENO: error:
22767 PostgreSQL does not support platforms that require a special compiler
22768 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22769 $as_echo "$as_me: error:
22770 PostgreSQL does not support platforms that require a special compiler
22771 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22772 { (exit 1); exit 1; }; }
22775 # Check for *_r functions
22778 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22779 LIBS="$LIBS $PTHREAD_LIBS"
22781 if test "$PORTNAME" != "win32"; then
22782 if test "${ac_cv_header_pthread_h+set}" = set; then
22783 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22784 $as_echo_n "checking for pthread.h... " >&6; }
22785 if test "${ac_cv_header_pthread_h+set}" = set; then
22786 $as_echo_n "(cached) " >&6
22788 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22789 $as_echo "$ac_cv_header_pthread_h" >&6; }
22791 # Is the header compilable?
22792 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22793 $as_echo_n "checking pthread.h usability... " >&6; }
22794 cat >conftest.$ac_ext <<_ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800 $ac_includes_default
22801 #include <pthread.h>
22803 rm -f conftest.$ac_objext
22804 if { (ac_try="$ac_compile"
22805 case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22810 $as_echo "$ac_try_echo") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22813 grep -v '^ *+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
22821 ac_header_compiler=yes
22823 $as_echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_header_compiler=no
22829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22831 $as_echo "$ac_header_compiler" >&6; }
22833 # Is the header present?
22834 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22835 $as_echo_n "checking pthread.h presence... " >&6; }
22836 cat >conftest.$ac_ext <<_ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 #include <pthread.h>
22844 if { (ac_try="$ac_cpp conftest.$ac_ext"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22850 $as_echo "$ac_try_echo") >&5
22851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22853 grep -v '^ *+' conftest.er1 >conftest.err
22855 cat conftest.err >&5
22856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } >/dev/null && {
22858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22861 ac_header_preproc=yes
22863 $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 ac_header_preproc=no
22869 rm -f conftest.err conftest.$ac_ext
22870 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22871 $as_echo "$ac_header_preproc" >&6; }
22873 # So? What about this header?
22874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22876 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22877 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22878 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22879 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22880 ac_header_preproc=yes
22883 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22884 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22885 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22886 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22887 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22888 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22889 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22890 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22891 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22892 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22893 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22894 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22896 ## ---------------------------------------- ##
22897 ## Report this to pgsql-bugs@postgresql.org ##
22898 ## ---------------------------------------- ##
22900 ) | sed "s/^/$as_me: WARNING: /" >&2
22903 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22904 $as_echo_n "checking for pthread.h... " >&6; }
22905 if test "${ac_cv_header_pthread_h+set}" = set; then
22906 $as_echo_n "(cached) " >&6
22908 ac_cv_header_pthread_h=$ac_header_preproc
22910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22911 $as_echo "$ac_cv_header_pthread_h" >&6; }
22914 if test "x$ac_cv_header_pthread_h" = x""yes; then
22917 { { $as_echo "$as_me:$LINENO: error:
22918 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
22919 $as_echo "$as_me: error:
22920 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
22921 { (exit 1); exit 1; }; }
22930 for ac_func in strerror_r getpwuid_r gethostbyname_r
22932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22933 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22934 $as_echo_n "checking for $ac_func... " >&6; }
22935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22936 $as_echo_n "(cached) " >&6
22938 cat >conftest.$ac_ext <<_ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h. */
22944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22946 #define $ac_func innocuous_$ac_func
22948 /* System header to define __stub macros and hopefully few prototypes,
22949 which can conflict with char $ac_func (); below.
22950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22951 <limits.h> exists even on freestanding compilers. */
22954 # include <limits.h>
22956 # include <assert.h>
22961 /* Override any GCC internal prototype to avoid an error.
22962 Use char because int might match the return type of a GCC
22963 builtin and then its argument prototype would still apply. */
22968 /* The GNU C library defines this for functions which it implements
22969 to always fail with ENOSYS. Some functions are actually named
22970 something starting with __ and the normal name is an alias. */
22971 #if defined __stub_$ac_func || defined __stub___$ac_func
22978 return $ac_func ();
22983 rm -f conftest.$ac_objext conftest$ac_exeext
22984 if { (ac_try="$ac_link"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990 $as_echo "$ac_try_echo") >&5
22991 (eval "$ac_link") 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } && {
22998 test -z "$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 } && test -s conftest$ac_exeext && {
23001 test "$cross_compiling" = yes ||
23002 $as_test_x conftest$ac_exeext
23004 eval "$as_ac_var=yes"
23006 $as_echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23009 eval "$as_ac_var=no"
23012 rm -rf conftest.dSYM
23013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23014 conftest$ac_exeext conftest.$ac_ext
23016 ac_res=`eval 'as_val=${'$as_ac_var'}
23017 $as_echo "$as_val"'`
23018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23019 $as_echo "$ac_res" >&6; }
23020 as_val=`eval 'as_val=${'$as_ac_var'}
23021 $as_echo "$as_val"'`
23022 if test "x$as_val" = x""yes; then
23023 cat >>confdefs.h <<_ACEOF
23024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23031 # Do test here with the proper thread flags
23032 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23033 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23034 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23035 $as_echo_n "(cached) " >&6
23037 cat >conftest.$ac_ext <<_ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23043 #include <sys/types.h>
23049 struct passwd *space;
23052 struct passwd **result;
23053 getpwuid_r(uid, space, buf, bufsize, result);
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23065 $as_echo "$ac_try_echo") >&5
23066 (eval "$ac_compile") 2>conftest.er1
23068 grep -v '^ *+' conftest.er1 >conftest.err
23070 cat conftest.err >&5
23071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } && {
23073 test -z "$ac_c_werror_flag" ||
23074 test ! -s conftest.err
23075 } && test -s conftest.$ac_objext; then
23076 pgac_cv_func_getpwuid_r_5arg=yes
23078 $as_echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23081 pgac_cv_func_getpwuid_r_5arg=no
23084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23087 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23088 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23090 cat >>confdefs.h <<\_ACEOF
23091 #define GETPWUID_R_5ARG /**/
23096 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23097 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23098 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23099 $as_echo_n "(cached) " >&6
23101 cat >conftest.$ac_ext <<_ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 #include <string.h>
23112 int strerror_r(int, char *, size_t);
23114 /* Older AIX has 'int' for the third argument so we don't test the args. */
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23128 $as_echo "$ac_try_echo") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 pgac_cv_func_strerror_r_int=yes
23141 $as_echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 pgac_cv_func_strerror_r_int=no
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23150 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23151 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23153 cat >>confdefs.h <<\_ACEOF
23154 #define STRERROR_R_INT /**/
23164 # do not use values from template file
23173 # We can test for libldap_r only after we know PTHREAD_LIBS
23174 if test "$with_ldap" = yes ; then
23176 if test "$PORTNAME" != "win32"; then
23178 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23179 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23180 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23181 $as_echo_n "(cached) " >&6
23183 ac_check_lib_save_LIBS=$LIBS
23184 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23192 /* Override any GCC internal prototype to avoid an error.
23193 Use char because int might match the return type of a GCC
23194 builtin and then its argument prototype would still apply. */
23202 return ldap_bind ();
23207 rm -f conftest.$ac_objext conftest$ac_exeext
23208 if { (ac_try="$ac_link"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23214 $as_echo "$ac_try_echo") >&5
23215 (eval "$ac_link") 2>conftest.er1
23217 grep -v '^ *+' conftest.er1 >conftest.err
23219 cat conftest.err >&5
23220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } && {
23222 test -z "$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23224 } && test -s conftest$ac_exeext && {
23225 test "$cross_compiling" = yes ||
23226 $as_test_x conftest$ac_exeext
23228 ac_cv_lib_ldap_ldap_bind=yes
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_cv_lib_ldap_ldap_bind=no
23236 rm -rf conftest.dSYM
23237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23238 conftest$ac_exeext conftest.$ac_ext
23239 LIBS=$ac_check_lib_save_LIBS
23241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23242 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23243 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23244 cat >>confdefs.h <<_ACEOF
23245 #define HAVE_LIBLDAP 1
23248 LIBS="-lldap $LIBS"
23251 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23252 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23253 { (exit 1); exit 1; }; }
23256 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23257 if test "$enable_thread_safety" = yes; then
23258 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23260 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23261 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23262 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23263 $as_echo_n "(cached) " >&6
23265 ac_check_lib_save_LIBS=$LIBS
23266 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23274 /* Override any GCC internal prototype to avoid an error.
23275 Use char because int might match the return type of a GCC
23276 builtin and then its argument prototype would still apply. */
23280 char ldap_simple_bind ();
23284 return ldap_simple_bind ();
23289 rm -f conftest.$ac_objext conftest$ac_exeext
23290 if { (ac_try="$ac_link"
23291 case "(($ac_try" in
23292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23293 *) ac_try_echo=$ac_try;;
23295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23296 $as_echo "$ac_try_echo") >&5
23297 (eval "$ac_link") 2>conftest.er1
23299 grep -v '^ *+' conftest.er1 >conftest.err
23301 cat conftest.err >&5
23302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest$ac_exeext && {
23307 test "$cross_compiling" = yes ||
23308 $as_test_x conftest$ac_exeext
23310 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23312 $as_echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23315 ac_cv_lib_ldap_r_ldap_simple_bind=no
23318 rm -rf conftest.dSYM
23319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23320 conftest$ac_exeext conftest.$ac_ext
23321 LIBS=$ac_check_lib_save_LIBS
23323 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23324 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23325 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23326 cat >>confdefs.h <<_ACEOF
23327 #define HAVE_LIBLDAP_R 1
23330 LIBS="-lldap_r $LIBS"
23333 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23334 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23335 { (exit 1); exit 1; }; }
23338 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23340 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23344 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23345 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23346 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23347 $as_echo_n "(cached) " >&6
23349 ac_check_lib_save_LIBS=$LIBS
23350 LIBS="-lwldap32 $LIBS"
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23358 /* Override any GCC internal prototype to avoid an error.
23359 Use char because int might match the return type of a GCC
23360 builtin and then its argument prototype would still apply. */
23368 return ldap_bind ();
23373 rm -f conftest.$ac_objext conftest$ac_exeext
23374 if { (ac_try="$ac_link"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23380 $as_echo "$ac_try_echo") >&5
23381 (eval "$ac_link") 2>conftest.er1
23383 grep -v '^ *+' conftest.er1 >conftest.err
23385 cat conftest.err >&5
23386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } && {
23388 test -z "$ac_c_werror_flag" ||
23389 test ! -s conftest.err
23390 } && test -s conftest$ac_exeext && {
23391 test "$cross_compiling" = yes ||
23392 $as_test_x conftest$ac_exeext
23394 ac_cv_lib_wldap32_ldap_bind=yes
23396 $as_echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_cv_lib_wldap32_ldap_bind=no
23402 rm -rf conftest.dSYM
23403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23404 conftest$ac_exeext conftest.$ac_ext
23405 LIBS=$ac_check_lib_save_LIBS
23407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23408 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23409 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23410 cat >>confdefs.h <<_ACEOF
23411 #define HAVE_LIBWLDAP32 1
23414 LIBS="-lwldap32 $LIBS"
23417 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23418 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23419 { (exit 1); exit 1; }; }
23422 LDAP_LIBS_FE="-lwldap32"
23423 LDAP_LIBS_BE="-lwldap32"
23431 # This test makes sure that run tests work at all. Sometimes a shared
23432 # library is found by the linker, but the runtime linker can't find it.
23433 # This check should come after all modifications of compiler or linker
23434 # variables, and before any other run tests.
23435 { $as_echo "$as_me:$LINENO: checking test program" >&5
23436 $as_echo_n "checking test program... " >&6; }
23437 if test "$cross_compiling" = yes; then
23438 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23439 $as_echo "cross-compiling" >&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 int main() { return 0; }
23449 rm -f conftest$ac_exeext
23450 if { (ac_try="$ac_link"
23451 case "(($ac_try" in
23452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453 *) ac_try_echo=$ac_try;;
23455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23456 $as_echo "$ac_try_echo") >&5
23457 (eval "$ac_link") 2>&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23461 { (case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_try") 2>&5
23469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 { $as_echo "$as_me:$LINENO: result: ok" >&5
23472 $as_echo "ok" >&6; }
23474 $as_echo "$as_me: program exited with status $ac_status" >&5
23475 $as_echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 ( exit $ac_status )
23479 { $as_echo "$as_me:$LINENO: result: failed" >&5
23480 $as_echo "failed" >&6; }
23481 { { $as_echo "$as_me:$LINENO: error:
23482 Could not execute a simple test program. This may be a problem
23483 related to locating shared libraries. Check the file 'config.log'
23484 for the exact reason." >&5
23485 $as_echo "$as_me: error:
23486 Could not execute a simple test program. This may be a problem
23487 related to locating shared libraries. Check the file 'config.log'
23488 for the exact reason." >&2;}
23489 { (exit 1); exit 1; }; }
23491 rm -rf conftest.dSYM
23492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23497 # --------------------
23498 # Run tests below here
23499 # --------------------
23501 # Force use of our snprintf if system's doesn't do arg control
23502 # See comment above at snprintf test for details.
23503 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23504 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23505 $as_echo_n "checking whether printf supports argument control... " >&6; }
23506 if test "${pgac_cv_printf_arg_control+set}" = set; then
23507 $as_echo_n "(cached) " >&6
23509 if test "$cross_compiling" = yes; then
23510 pgac_cv_printf_arg_control=cross
23512 cat >conftest.$ac_ext <<_ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h. */
23519 #include <string.h>
23525 /* can it swap arguments? */
23526 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23527 if (strcmp(buf, "4 3") != 0)
23532 rm -f conftest$ac_exeext
23533 if { (ac_try="$ac_link"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23539 $as_echo "$ac_try_echo") >&5
23540 (eval "$ac_link") 2>&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23544 { (case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23549 $as_echo "$ac_try_echo") >&5
23550 (eval "$ac_try") 2>&5
23552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; }; then
23554 pgac_cv_printf_arg_control=yes
23556 $as_echo "$as_me: program exited with status $ac_status" >&5
23557 $as_echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23560 ( exit $ac_status )
23561 pgac_cv_printf_arg_control=no
23563 rm -rf conftest.dSYM
23564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23570 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23571 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23573 if test $pgac_cv_printf_arg_control != yes ; then
23574 pgac_need_repl_snprintf=yes
23581 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23582 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23583 if test "${pgac_cv_type_long_int_64+set}" = set; then
23584 $as_echo_n "(cached) " >&6
23586 if test "$cross_compiling" = yes; then
23587 # If cross-compiling, check the size reported by the compiler and
23588 # trust that the arithmetic works.
23589 cat >conftest.$ac_ext <<_ACEOF
23592 cat confdefs.h >>conftest.$ac_ext
23593 cat >>conftest.$ac_ext <<_ACEOF
23594 /* end confdefs.h. */
23599 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23606 rm -f conftest.$ac_objext
23607 if { (ac_try="$ac_compile"
23608 case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23613 $as_echo "$ac_try_echo") >&5
23614 (eval "$ac_compile") 2>conftest.er1
23616 grep -v '^ *+' conftest.er1 >conftest.err
23618 cat conftest.err >&5
23619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } && {
23621 test -z "$ac_c_werror_flag" ||
23622 test ! -s conftest.err
23623 } && test -s conftest.$ac_objext; then
23624 pgac_cv_type_long_int_64=yes
23626 $as_echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23629 pgac_cv_type_long_int_64=no
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634 cat >conftest.$ac_ext <<_ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23640 typedef long int ac_int64;
23643 * These are globals to discourage the compiler from folding all the
23644 * arithmetic tests down to compile-time constants.
23646 ac_int64 a = 20000001;
23647 ac_int64 b = 40000005;
23649 int does_int64_work()
23653 if (sizeof(ac_int64) != 8)
23654 return 0; /* definitely not the right size */
23656 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23664 exit(! does_int64_work());
23667 rm -f conftest$ac_exeext
23668 if { (ac_try="$ac_link"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23674 $as_echo "$ac_try_echo") >&5
23675 (eval "$ac_link") 2>&5
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23679 { (case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23684 $as_echo "$ac_try_echo") >&5
23685 (eval "$ac_try") 2>&5
23687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 pgac_cv_type_long_int_64=yes
23691 $as_echo "$as_me: program exited with status $ac_status" >&5
23692 $as_echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 ( exit $ac_status )
23696 pgac_cv_type_long_int_64=no
23698 rm -rf conftest.dSYM
23699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23704 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23705 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23707 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23708 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23710 cat >>confdefs.h <<\_ACEOF
23711 #define HAVE_LONG_INT_64 1
23717 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23718 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23719 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23720 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23721 $as_echo_n "(cached) " >&6
23723 if test "$cross_compiling" = yes; then
23724 # If cross-compiling, check the size reported by the compiler and
23725 # trust that the arithmetic works.
23726 cat >conftest.$ac_ext <<_ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h. */
23736 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23743 rm -f conftest.$ac_objext
23744 if { (ac_try="$ac_compile"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23750 $as_echo "$ac_try_echo") >&5
23751 (eval "$ac_compile") 2>conftest.er1
23753 grep -v '^ *+' conftest.er1 >conftest.err
23755 cat conftest.err >&5
23756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && {
23758 test -z "$ac_c_werror_flag" ||
23759 test ! -s conftest.err
23760 } && test -s conftest.$ac_objext; then
23761 pgac_cv_type_long_long_int_64=yes
23763 $as_echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 pgac_cv_type_long_long_int_64=no
23769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771 cat >conftest.$ac_ext <<_ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h. */
23777 typedef long long int ac_int64;
23780 * These are globals to discourage the compiler from folding all the
23781 * arithmetic tests down to compile-time constants.
23783 ac_int64 a = 20000001;
23784 ac_int64 b = 40000005;
23786 int does_int64_work()
23790 if (sizeof(ac_int64) != 8)
23791 return 0; /* definitely not the right size */
23793 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23801 exit(! does_int64_work());
23804 rm -f conftest$ac_exeext
23805 if { (ac_try="$ac_link"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23811 $as_echo "$ac_try_echo") >&5
23812 (eval "$ac_link") 2>&5
23814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23816 { (case "(($ac_try" in
23817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818 *) ac_try_echo=$ac_try;;
23820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23821 $as_echo "$ac_try_echo") >&5
23822 (eval "$ac_try") 2>&5
23824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; }; then
23826 pgac_cv_type_long_long_int_64=yes
23828 $as_echo "$as_me: program exited with status $ac_status" >&5
23829 $as_echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23832 ( exit $ac_status )
23833 pgac_cv_type_long_long_int_64=no
23835 rm -rf conftest.dSYM
23836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23841 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23842 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23844 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23845 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23847 cat >>confdefs.h <<\_ACEOF
23848 #define HAVE_LONG_LONG_INT_64 1
23853 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23854 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23855 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23856 { (exit 1); exit 1; }; }
23862 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23870 #define INT64CONST(x) x##LL
23871 long long int foo = INT64CONST(0x1234567890123456);
23881 rm -f conftest.$ac_objext
23882 if { (ac_try="$ac_compile"
23883 case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23888 $as_echo "$ac_try_echo") >&5
23889 (eval "$ac_compile") 2>conftest.er1
23891 grep -v '^ *+' conftest.er1 >conftest.err
23893 cat conftest.err >&5
23894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } && {
23896 test -z "$ac_c_werror_flag" ||
23897 test ! -s conftest.err
23898 } && test -s conftest.$ac_objext; then
23900 cat >>confdefs.h <<\_ACEOF
23901 #define HAVE_LL_CONSTANTS 1
23905 $as_echo "$as_me: failed program was:" >&5
23906 sed 's/^/| /' conftest.$ac_ext >&5
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23915 # If we found "long int" is 64 bits, assume snprintf handles it. If
23916 # we found we need to use "long long int", better check. We cope with
23917 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23918 # work, fall back to our own snprintf emulation (which we know uses %lld).
23920 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23921 if test $pgac_need_repl_snprintf = no; then
23922 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23923 $as_echo_n "checking snprintf format for long long int... " >&6; }
23924 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23925 $as_echo_n "(cached) " >&6
23927 for pgac_format in '%lld' '%qd' '%I64d'; do
23928 if test "$cross_compiling" = yes; then
23929 pgac_cv_snprintf_long_long_int_format=cross; break
23931 cat >conftest.$ac_ext <<_ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23938 typedef long long int ac_int64;
23939 #define INT64_FORMAT "$pgac_format"
23941 ac_int64 a = 20000001;
23942 ac_int64 b = 40000005;
23944 int does_int64_snprintf_work()
23949 if (sizeof(ac_int64) != 8)
23950 return 0; /* doesn't look like the right size */
23953 snprintf(buf, 100, INT64_FORMAT, c);
23954 if (strcmp(buf, "800000140000005") != 0)
23955 return 0; /* either multiply or snprintf is busted */
23959 exit(! does_int64_snprintf_work());
23962 rm -f conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970 (eval "$ac_link") 2>&5
23972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23974 { (case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23979 $as_echo "$ac_try_echo") >&5
23980 (eval "$ac_try") 2>&5
23982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; }; then
23984 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23986 $as_echo "$as_me: program exited with status $ac_status" >&5
23987 $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23991 rm -rf conftest.dSYM
23992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23999 LONG_LONG_INT_FORMAT=''
24001 case $pgac_cv_snprintf_long_long_int_format in
24002 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24003 $as_echo "cannot test (not on host machine)" >&6; };;
24004 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24005 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24006 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24007 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24008 $as_echo "none" >&6; };;
24010 if test "$LONG_LONG_INT_FORMAT" = ""; then
24011 # Force usage of our own snprintf, since system snprintf is broken
24012 pgac_need_repl_snprintf=yes
24013 LONG_LONG_INT_FORMAT='%lld'
24016 # Here if we previously decided we needed to use our own snprintf
24017 LONG_LONG_INT_FORMAT='%lld'
24019 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24020 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24021 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24023 # Here if we are not using 'long long int' at all
24024 INT64_FORMAT='"%ld"'
24025 UINT64_FORMAT='"%lu"'
24029 cat >>confdefs.h <<_ACEOF
24030 #define INT64_FORMAT $INT64_FORMAT
24035 cat >>confdefs.h <<_ACEOF
24036 #define UINT64_FORMAT $UINT64_FORMAT
24040 # Now we have checked all the reasons to replace snprintf
24041 if test $pgac_need_repl_snprintf = yes; then
24043 cat >>confdefs.h <<\_ACEOF
24044 #define USE_REPL_SNPRINTF 1
24047 case " $LIBOBJS " in
24048 *" snprintf.$ac_objext "* ) ;;
24049 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24055 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24056 # The cast to long int works around a bug in the HP C Compiler
24057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24059 # This bug is HP SR number 8606223364.
24060 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24061 $as_echo_n "checking size of void *... " >&6; }
24062 if test "${ac_cv_sizeof_void_p+set}" = set; then
24063 $as_echo_n "(cached) " >&6
24065 if test "$cross_compiling" = yes; then
24066 # Depending upon the size, compute the lo and hi bounds.
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24073 $ac_includes_default
24077 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24084 rm -f conftest.$ac_objext
24085 if { (ac_try="$ac_compile"
24086 case "(($ac_try" in
24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24091 $as_echo "$ac_try_echo") >&5
24092 (eval "$ac_compile") 2>conftest.er1
24094 grep -v '^ *+' conftest.er1 >conftest.err
24096 cat conftest.err >&5
24097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest.$ac_objext; then
24104 cat >conftest.$ac_ext <<_ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24110 $ac_includes_default
24114 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24121 rm -f conftest.$ac_objext
24122 if { (ac_try="$ac_compile"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_compile") 2>conftest.er1
24131 grep -v '^ *+' conftest.er1 >conftest.err
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24139 ac_hi=$ac_mid; break
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 ac_lo=`expr $ac_mid + 1`
24145 if test $ac_lo -le $ac_mid; then
24149 ac_mid=`expr 2 '*' $ac_mid + 1`
24152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24155 $as_echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 $ac_includes_default
24168 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24182 $as_echo "$ac_try_echo") >&5
24183 (eval "$ac_compile") 2>conftest.er1
24185 grep -v '^ *+' conftest.er1 >conftest.err
24187 cat conftest.err >&5
24188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } && {
24190 test -z "$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24192 } && test -s conftest.$ac_objext; then
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 $ac_includes_default
24205 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24212 rm -f conftest.$ac_objext
24213 if { (ac_try="$ac_compile"
24214 case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24219 $as_echo "$ac_try_echo") >&5
24220 (eval "$ac_compile") 2>conftest.er1
24222 grep -v '^ *+' conftest.er1 >conftest.err
24224 cat conftest.err >&5
24225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); } && {
24227 test -z "$ac_c_werror_flag" ||
24228 test ! -s conftest.err
24229 } && test -s conftest.$ac_objext; then
24230 ac_lo=$ac_mid; break
24232 $as_echo "$as_me: failed program was:" >&5
24233 sed 's/^/| /' conftest.$ac_ext >&5
24235 ac_hi=`expr '(' $ac_mid ')' - 1`
24236 if test $ac_mid -le $ac_hi; then
24240 ac_mid=`expr 2 '*' $ac_mid`
24243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 $as_echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256 # Binary search between lo and hi bounds.
24257 while test "x$ac_lo" != "x$ac_hi"; do
24258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24259 cat >conftest.$ac_ext <<_ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 $ac_includes_default
24269 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1 >conftest.err
24288 cat conftest.err >&5
24289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.$ac_objext; then
24296 $as_echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24299 ac_lo=`expr '(' $ac_mid ')' + 1`
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24306 '') if test "$ac_cv_type_void_p" = yes; then
24307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24309 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24310 See \`config.log' for more details." >&5
24311 $as_echo "$as_me: error: cannot compute sizeof (void *)
24312 See \`config.log' for more details." >&2;}
24313 { (exit 77); exit 77; }; }; }
24315 ac_cv_sizeof_void_p=0
24319 cat >conftest.$ac_ext <<_ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24325 $ac_includes_default
24326 static long int longval () { return (long int) (sizeof (void *)); }
24327 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24329 #include <stdlib.h>
24334 FILE *f = fopen ("conftest.val", "w");
24337 if (((long int) (sizeof (void *))) < 0)
24339 long int i = longval ();
24340 if (i != ((long int) (sizeof (void *))))
24342 fprintf (f, "%ld", i);
24346 unsigned long int i = ulongval ();
24347 if (i != ((long int) (sizeof (void *))))
24349 fprintf (f, "%lu", i);
24351 /* Do not output a trailing newline, as this causes \r\n confusion
24352 on some platforms. */
24353 return ferror (f) || fclose (f) != 0;
24359 rm -f conftest$ac_exeext
24360 if { (ac_try="$ac_link"
24361 case "(($ac_try" in
24362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24363 *) ac_try_echo=$ac_try;;
24365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24366 $as_echo "$ac_try_echo") >&5
24367 (eval "$ac_link") 2>&5
24369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24371 { (case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24376 $as_echo "$ac_try_echo") >&5
24377 (eval "$ac_try") 2>&5
24379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; }; then
24381 ac_cv_sizeof_void_p=`cat conftest.val`
24383 $as_echo "$as_me: program exited with status $ac_status" >&5
24384 $as_echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24387 ( exit $ac_status )
24388 if test "$ac_cv_type_void_p" = yes; then
24389 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24391 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24392 See \`config.log' for more details." >&5
24393 $as_echo "$as_me: error: cannot compute sizeof (void *)
24394 See \`config.log' for more details." >&2;}
24395 { (exit 77); exit 77; }; }; }
24397 ac_cv_sizeof_void_p=0
24400 rm -rf conftest.dSYM
24401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24405 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24406 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24410 cat >>confdefs.h <<_ACEOF
24411 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24415 # The cast to long int works around a bug in the HP C Compiler
24416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24418 # This bug is HP SR number 8606223364.
24419 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24420 $as_echo_n "checking size of size_t... " >&6; }
24421 if test "${ac_cv_sizeof_size_t+set}" = set; then
24422 $as_echo_n "(cached) " >&6
24424 if test "$cross_compiling" = yes; then
24425 # Depending upon the size, compute the lo and hi bounds.
24426 cat >conftest.$ac_ext <<_ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 $ac_includes_default
24436 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24443 rm -f conftest.$ac_objext
24444 if { (ac_try="$ac_compile"
24445 case "(($ac_try" in
24446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447 *) ac_try_echo=$ac_try;;
24449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24450 $as_echo "$ac_try_echo") >&5
24451 (eval "$ac_compile") 2>conftest.er1
24453 grep -v '^ *+' conftest.er1 >conftest.err
24455 cat conftest.err >&5
24456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } && {
24458 test -z "$ac_c_werror_flag" ||
24459 test ! -s conftest.err
24460 } && test -s conftest.$ac_objext; then
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 $ac_includes_default
24473 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24480 rm -f conftest.$ac_objext
24481 if { (ac_try="$ac_compile"
24482 case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24487 $as_echo "$ac_try_echo") >&5
24488 (eval "$ac_compile") 2>conftest.er1
24490 grep -v '^ *+' conftest.er1 >conftest.err
24492 cat conftest.err >&5
24493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } && {
24495 test -z "$ac_c_werror_flag" ||
24496 test ! -s conftest.err
24497 } && test -s conftest.$ac_objext; then
24498 ac_hi=$ac_mid; break
24500 $as_echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24503 ac_lo=`expr $ac_mid + 1`
24504 if test $ac_lo -le $ac_mid; then
24508 ac_mid=`expr 2 '*' $ac_mid + 1`
24511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24514 $as_echo "$as_me: failed program was:" >&5
24515 sed 's/^/| /' conftest.$ac_ext >&5
24517 cat >conftest.$ac_ext <<_ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523 $ac_includes_default
24527 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24534 rm -f conftest.$ac_objext
24535 if { (ac_try="$ac_compile"
24536 case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24541 $as_echo "$ac_try_echo") >&5
24542 (eval "$ac_compile") 2>conftest.er1
24544 grep -v '^ *+' conftest.er1 >conftest.err
24546 cat conftest.err >&5
24547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); } && {
24549 test -z "$ac_c_werror_flag" ||
24550 test ! -s conftest.err
24551 } && test -s conftest.$ac_objext; then
24554 cat >conftest.$ac_ext <<_ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h. */
24560 $ac_includes_default
24564 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24571 rm -f conftest.$ac_objext
24572 if { (ac_try="$ac_compile"
24573 case "(($ac_try" in
24574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575 *) ac_try_echo=$ac_try;;
24577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24578 $as_echo "$ac_try_echo") >&5
24579 (eval "$ac_compile") 2>conftest.er1
24581 grep -v '^ *+' conftest.er1 >conftest.err
24583 cat conftest.err >&5
24584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } && {
24586 test -z "$ac_c_werror_flag" ||
24587 test ! -s conftest.err
24588 } && test -s conftest.$ac_objext; then
24589 ac_lo=$ac_mid; break
24591 $as_echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24594 ac_hi=`expr '(' $ac_mid ')' - 1`
24595 if test $ac_mid -le $ac_hi; then
24599 ac_mid=`expr 2 '*' $ac_mid`
24602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24605 $as_echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615 # Binary search between lo and hi bounds.
24616 while test "x$ac_lo" != "x$ac_hi"; do
24617 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24618 cat >conftest.$ac_ext <<_ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h. */
24624 $ac_includes_default
24628 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24635 rm -f conftest.$ac_objext
24636 if { (ac_try="$ac_compile"
24637 case "(($ac_try" in
24638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24639 *) ac_try_echo=$ac_try;;
24641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24642 $as_echo "$ac_try_echo") >&5
24643 (eval "$ac_compile") 2>conftest.er1
24645 grep -v '^ *+' conftest.er1 >conftest.err
24647 cat conftest.err >&5
24648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } && {
24650 test -z "$ac_c_werror_flag" ||
24651 test ! -s conftest.err
24652 } && test -s conftest.$ac_objext; then
24655 $as_echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24658 ac_lo=`expr '(' $ac_mid ')' + 1`
24661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24665 '') if test "$ac_cv_type_size_t" = yes; then
24666 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24668 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24669 See \`config.log' for more details." >&5
24670 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24671 See \`config.log' for more details." >&2;}
24672 { (exit 77); exit 77; }; }; }
24674 ac_cv_sizeof_size_t=0
24678 cat >conftest.$ac_ext <<_ACEOF
24681 cat confdefs.h >>conftest.$ac_ext
24682 cat >>conftest.$ac_ext <<_ACEOF
24683 /* end confdefs.h. */
24684 $ac_includes_default
24685 static long int longval () { return (long int) (sizeof (size_t)); }
24686 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24688 #include <stdlib.h>
24693 FILE *f = fopen ("conftest.val", "w");
24696 if (((long int) (sizeof (size_t))) < 0)
24698 long int i = longval ();
24699 if (i != ((long int) (sizeof (size_t))))
24701 fprintf (f, "%ld", i);
24705 unsigned long int i = ulongval ();
24706 if (i != ((long int) (sizeof (size_t))))
24708 fprintf (f, "%lu", i);
24710 /* Do not output a trailing newline, as this causes \r\n confusion
24711 on some platforms. */
24712 return ferror (f) || fclose (f) != 0;
24718 rm -f conftest$ac_exeext
24719 if { (ac_try="$ac_link"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24725 $as_echo "$ac_try_echo") >&5
24726 (eval "$ac_link") 2>&5
24728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24730 { (case "(($ac_try" in
24731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732 *) ac_try_echo=$ac_try;;
24734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24735 $as_echo "$ac_try_echo") >&5
24736 (eval "$ac_try") 2>&5
24738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
24740 ac_cv_sizeof_size_t=`cat conftest.val`
24742 $as_echo "$as_me: program exited with status $ac_status" >&5
24743 $as_echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 ( exit $ac_status )
24747 if test "$ac_cv_type_size_t" = yes; then
24748 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24750 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24751 See \`config.log' for more details." >&5
24752 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24753 See \`config.log' for more details." >&2;}
24754 { (exit 77); exit 77; }; }; }
24756 ac_cv_sizeof_size_t=0
24759 rm -rf conftest.dSYM
24760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24764 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24765 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24769 cat >>confdefs.h <<_ACEOF
24770 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24774 # The cast to long int works around a bug in the HP C Compiler
24775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24777 # This bug is HP SR number 8606223364.
24778 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24779 $as_echo_n "checking size of long... " >&6; }
24780 if test "${ac_cv_sizeof_long+set}" = set; then
24781 $as_echo_n "(cached) " >&6
24783 if test "$cross_compiling" = yes; then
24784 # Depending upon the size, compute the lo and hi bounds.
24785 cat >conftest.$ac_ext <<_ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24791 $ac_includes_default
24795 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24802 rm -f conftest.$ac_objext
24803 if { (ac_try="$ac_compile"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810 (eval "$ac_compile") 2>conftest.er1
24812 grep -v '^ *+' conftest.er1 >conftest.err
24814 cat conftest.err >&5
24815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); } && {
24817 test -z "$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24819 } && test -s conftest.$ac_objext; then
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828 $ac_includes_default
24832 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24839 rm -f conftest.$ac_objext
24840 if { (ac_try="$ac_compile"
24841 case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24846 $as_echo "$ac_try_echo") >&5
24847 (eval "$ac_compile") 2>conftest.er1
24849 grep -v '^ *+' conftest.er1 >conftest.err
24851 cat conftest.err >&5
24852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } && {
24854 test -z "$ac_c_werror_flag" ||
24855 test ! -s conftest.err
24856 } && test -s conftest.$ac_objext; then
24857 ac_hi=$ac_mid; break
24859 $as_echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24862 ac_lo=`expr $ac_mid + 1`
24863 if test $ac_lo -le $ac_mid; then
24867 ac_mid=`expr 2 '*' $ac_mid + 1`
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 $as_echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24876 cat >conftest.$ac_ext <<_ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882 $ac_includes_default
24886 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24893 rm -f conftest.$ac_objext
24894 if { (ac_try="$ac_compile"
24895 case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24900 $as_echo "$ac_try_echo") >&5
24901 (eval "$ac_compile") 2>conftest.er1
24903 grep -v '^ *+' conftest.er1 >conftest.err
24905 cat conftest.err >&5
24906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } && {
24908 test -z "$ac_c_werror_flag" ||
24909 test ! -s conftest.err
24910 } && test -s conftest.$ac_objext; then
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24919 $ac_includes_default
24923 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24930 rm -f conftest.$ac_objext
24931 if { (ac_try="$ac_compile"
24932 case "(($ac_try" in
24933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24937 $as_echo "$ac_try_echo") >&5
24938 (eval "$ac_compile") 2>conftest.er1
24940 grep -v '^ *+' conftest.er1 >conftest.err
24942 cat conftest.err >&5
24943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } && {
24945 test -z "$ac_c_werror_flag" ||
24946 test ! -s conftest.err
24947 } && test -s conftest.$ac_objext; then
24948 ac_lo=$ac_mid; break
24950 $as_echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24953 ac_hi=`expr '(' $ac_mid ')' - 1`
24954 if test $ac_mid -le $ac_hi; then
24958 ac_mid=`expr 2 '*' $ac_mid`
24961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24964 $as_echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 # Binary search between lo and hi bounds.
24975 while test "x$ac_lo" != "x$ac_hi"; do
24976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24977 cat >conftest.$ac_ext <<_ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h. */
24983 $ac_includes_default
24987 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24994 rm -f conftest.$ac_objext
24995 if { (ac_try="$ac_compile"
24996 case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
25000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25001 $as_echo "$ac_try_echo") >&5
25002 (eval "$ac_compile") 2>conftest.er1
25004 grep -v '^ *+' conftest.er1 >conftest.err
25006 cat conftest.err >&5
25007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); } && {
25009 test -z "$ac_c_werror_flag" ||
25010 test ! -s conftest.err
25011 } && test -s conftest.$ac_objext; then
25014 $as_echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 ac_lo=`expr '(' $ac_mid ')' + 1`
25020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25023 ?*) ac_cv_sizeof_long=$ac_lo;;
25024 '') if test "$ac_cv_type_long" = yes; then
25025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25027 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25028 See \`config.log' for more details." >&5
25029 $as_echo "$as_me: error: cannot compute sizeof (long)
25030 See \`config.log' for more details." >&2;}
25031 { (exit 77); exit 77; }; }; }
25033 ac_cv_sizeof_long=0
25037 cat >conftest.$ac_ext <<_ACEOF
25040 cat confdefs.h >>conftest.$ac_ext
25041 cat >>conftest.$ac_ext <<_ACEOF
25042 /* end confdefs.h. */
25043 $ac_includes_default
25044 static long int longval () { return (long int) (sizeof (long)); }
25045 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25047 #include <stdlib.h>
25052 FILE *f = fopen ("conftest.val", "w");
25055 if (((long int) (sizeof (long))) < 0)
25057 long int i = longval ();
25058 if (i != ((long int) (sizeof (long))))
25060 fprintf (f, "%ld", i);
25064 unsigned long int i = ulongval ();
25065 if (i != ((long int) (sizeof (long))))
25067 fprintf (f, "%lu", i);
25069 /* Do not output a trailing newline, as this causes \r\n confusion
25070 on some platforms. */
25071 return ferror (f) || fclose (f) != 0;
25077 rm -f conftest$ac_exeext
25078 if { (ac_try="$ac_link"
25079 case "(($ac_try" in
25080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25081 *) ac_try_echo=$ac_try;;
25083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25084 $as_echo "$ac_try_echo") >&5
25085 (eval "$ac_link") 2>&5
25087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25089 { (case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25094 $as_echo "$ac_try_echo") >&5
25095 (eval "$ac_try") 2>&5
25097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 ac_cv_sizeof_long=`cat conftest.val`
25101 $as_echo "$as_me: program exited with status $ac_status" >&5
25102 $as_echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25105 ( exit $ac_status )
25106 if test "$ac_cv_type_long" = yes; then
25107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25109 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25110 See \`config.log' for more details." >&5
25111 $as_echo "$as_me: error: cannot compute sizeof (long)
25112 See \`config.log' for more details." >&2;}
25113 { (exit 77); exit 77; }; }; }
25115 ac_cv_sizeof_long=0
25118 rm -rf conftest.dSYM
25119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25123 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25124 $as_echo "$ac_cv_sizeof_long" >&6; }
25128 cat >>confdefs.h <<_ACEOF
25129 #define SIZEOF_LONG $ac_cv_sizeof_long
25134 # Decide whether float4 is passed by value: user-selectable, enabled by default
25135 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25136 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25139 # Check whether --enable-float4-byval was given.
25140 if test "${enable_float4_byval+set}" = set; then
25141 enableval=$enable_float4_byval;
25145 cat >>confdefs.h <<\_ACEOF
25146 #define USE_FLOAT4_BYVAL 1
25149 float4passbyval=true
25152 float4passbyval=false
25155 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25156 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25157 { (exit 1); exit 1; }; }
25162 enable_float4_byval=yes
25164 cat >>confdefs.h <<\_ACEOF
25165 #define USE_FLOAT4_BYVAL 1
25168 float4passbyval=true
25172 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25173 $as_echo "$enable_float4_byval" >&6; }
25175 cat >>confdefs.h <<_ACEOF
25176 #define FLOAT4PASSBYVAL $float4passbyval
25180 # Decide whether float8 is passed by value.
25181 # Note: this setting also controls int8 and related types such as timestamp.
25182 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25183 # If not, trying to select it is an error.
25184 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25185 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25186 if test $ac_cv_sizeof_void_p -ge 8 ; then
25189 # Check whether --enable-float8-byval was given.
25190 if test "${enable_float8_byval+set}" = set; then
25191 enableval=$enable_float8_byval;
25200 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25201 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25202 { (exit 1); exit 1; }; }
25207 enable_float8_byval=yes
25215 # Check whether --enable-float8-byval was given.
25216 if test "${enable_float8_byval+set}" = set; then
25217 enableval=$enable_float8_byval;
25226 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25227 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25228 { (exit 1); exit 1; }; }
25233 enable_float8_byval=no
25238 if test "$enable_float8_byval" = yes ; then
25239 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25240 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25241 { (exit 1); exit 1; }; }
25244 if test "$enable_float8_byval" = yes ; then
25246 cat >>confdefs.h <<\_ACEOF
25247 #define USE_FLOAT8_BYVAL 1
25250 float8passbyval=true
25252 float8passbyval=false
25254 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25255 $as_echo "$enable_float8_byval" >&6; }
25257 cat >>confdefs.h <<_ACEOF
25258 #define FLOAT8PASSBYVAL $float8passbyval
25262 # Determine memory alignment requirements for the basic C data types.
25264 # The cast to long int works around a bug in the HP C Compiler,
25265 # see AC_CHECK_SIZEOF for more information.
25266 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25267 $as_echo_n "checking alignment of short... " >&6; }
25268 if test "${ac_cv_alignof_short+set}" = set; then
25269 $as_echo_n "(cached) " >&6
25271 if test "$cross_compiling" = yes; then
25272 # Depending upon the size, compute the lo and hi bounds.
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25279 $ac_includes_default
25281 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25283 typedef struct { char x; short y; } ac__type_alignof_;
25287 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25294 rm -f conftest.$ac_objext
25295 if { (ac_try="$ac_compile"
25296 case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25301 $as_echo "$ac_try_echo") >&5
25302 (eval "$ac_compile") 2>conftest.er1
25304 grep -v '^ *+' conftest.er1 >conftest.err
25306 cat conftest.err >&5
25307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); } && {
25309 test -z "$ac_c_werror_flag" ||
25310 test ! -s conftest.err
25311 } && test -s conftest.$ac_objext; then
25314 cat >conftest.$ac_ext <<_ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h. */
25320 $ac_includes_default
25322 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25324 typedef struct { char x; short y; } ac__type_alignof_;
25328 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25335 rm -f conftest.$ac_objext
25336 if { (ac_try="$ac_compile"
25337 case "(($ac_try" in
25338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339 *) ac_try_echo=$ac_try;;
25341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25342 $as_echo "$ac_try_echo") >&5
25343 (eval "$ac_compile") 2>conftest.er1
25345 grep -v '^ *+' conftest.er1 >conftest.err
25347 cat conftest.err >&5
25348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } && {
25350 test -z "$ac_c_werror_flag" ||
25351 test ! -s conftest.err
25352 } && test -s conftest.$ac_objext; then
25353 ac_hi=$ac_mid; break
25355 $as_echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ac_lo=`expr $ac_mid + 1`
25359 if test $ac_lo -le $ac_mid; then
25363 ac_mid=`expr 2 '*' $ac_mid + 1`
25366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25369 $as_echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25378 $ac_includes_default
25380 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25382 typedef struct { char x; short y; } ac__type_alignof_;
25386 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25393 rm -f conftest.$ac_objext
25394 if { (ac_try="$ac_compile"
25395 case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25400 $as_echo "$ac_try_echo") >&5
25401 (eval "$ac_compile") 2>conftest.er1
25403 grep -v '^ *+' conftest.er1 >conftest.err
25405 cat conftest.err >&5
25406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } && {
25408 test -z "$ac_c_werror_flag" ||
25409 test ! -s conftest.err
25410 } && test -s conftest.$ac_objext; then
25413 cat >conftest.$ac_ext <<_ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25421 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25423 typedef struct { char x; short y; } ac__type_alignof_;
25427 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25434 rm -f conftest.$ac_objext
25435 if { (ac_try="$ac_compile"
25436 case "(($ac_try" in
25437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438 *) ac_try_echo=$ac_try;;
25440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25441 $as_echo "$ac_try_echo") >&5
25442 (eval "$ac_compile") 2>conftest.er1
25444 grep -v '^ *+' conftest.er1 >conftest.err
25446 cat conftest.err >&5
25447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); } && {
25449 test -z "$ac_c_werror_flag" ||
25450 test ! -s conftest.err
25451 } && test -s conftest.$ac_objext; then
25452 ac_lo=$ac_mid; break
25454 $as_echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25457 ac_hi=`expr '(' $ac_mid ')' - 1`
25458 if test $ac_mid -le $ac_hi; then
25462 ac_mid=`expr 2 '*' $ac_mid`
25465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 $as_echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25478 # Binary search between lo and hi bounds.
25479 while test "x$ac_lo" != "x$ac_hi"; do
25480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 $ac_includes_default
25489 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25491 typedef struct { char x; short y; } ac__type_alignof_;
25495 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25502 rm -f conftest.$ac_objext
25503 if { (ac_try="$ac_compile"
25504 case "(($ac_try" in
25505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25506 *) ac_try_echo=$ac_try;;
25508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25509 $as_echo "$ac_try_echo") >&5
25510 (eval "$ac_compile") 2>conftest.er1
25512 grep -v '^ *+' conftest.er1 >conftest.err
25514 cat conftest.err >&5
25515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); } && {
25517 test -z "$ac_c_werror_flag" ||
25518 test ! -s conftest.err
25519 } && test -s conftest.$ac_objext; then
25522 $as_echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 ac_lo=`expr '(' $ac_mid ')' + 1`
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 ?*) ac_cv_alignof_short=$ac_lo;;
25532 '') if test "$ac_cv_type_short" = yes; then
25533 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25535 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25536 See \`config.log' for more details." >&5
25537 $as_echo "$as_me: error: cannot compute alignment of short
25538 See \`config.log' for more details." >&2;}
25539 { (exit 77); exit 77; }; }; }
25541 ac_cv_alignof_short=0
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25551 $ac_includes_default
25553 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25555 typedef struct { char x; short y; } ac__type_alignof_;
25556 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25557 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25559 #include <stdlib.h>
25564 FILE *f = fopen ("conftest.val", "w");
25567 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25569 long int i = longval ();
25570 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25572 fprintf (f, "%ld", i);
25576 unsigned long int i = ulongval ();
25577 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25579 fprintf (f, "%lu", i);
25581 /* Do not output a trailing newline, as this causes \r\n confusion
25582 on some platforms. */
25583 return ferror (f) || fclose (f) != 0;
25589 rm -f conftest$ac_exeext
25590 if { (ac_try="$ac_link"
25591 case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25596 $as_echo "$ac_try_echo") >&5
25597 (eval "$ac_link") 2>&5
25599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25601 { (case "(($ac_try" in
25602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25603 *) ac_try_echo=$ac_try;;
25605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25606 $as_echo "$ac_try_echo") >&5
25607 (eval "$ac_try") 2>&5
25609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25610 (exit $ac_status); }; }; then
25611 ac_cv_alignof_short=`cat conftest.val`
25613 $as_echo "$as_me: program exited with status $ac_status" >&5
25614 $as_echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25617 ( exit $ac_status )
25618 if test "$ac_cv_type_short" = yes; then
25619 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25621 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25622 See \`config.log' for more details." >&5
25623 $as_echo "$as_me: error: cannot compute alignment of short
25624 See \`config.log' for more details." >&2;}
25625 { (exit 77); exit 77; }; }; }
25627 ac_cv_alignof_short=0
25630 rm -rf conftest.dSYM
25631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25635 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25636 $as_echo "$ac_cv_alignof_short" >&6; }
25640 cat >>confdefs.h <<_ACEOF
25641 #define ALIGNOF_SHORT $ac_cv_alignof_short
25645 # The cast to long int works around a bug in the HP C Compiler,
25646 # see AC_CHECK_SIZEOF for more information.
25647 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25648 $as_echo_n "checking alignment of int... " >&6; }
25649 if test "${ac_cv_alignof_int+set}" = set; then
25650 $as_echo_n "(cached) " >&6
25652 if test "$cross_compiling" = yes; then
25653 # Depending upon the size, compute the lo and hi bounds.
25654 cat >conftest.$ac_ext <<_ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25660 $ac_includes_default
25662 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25664 typedef struct { char x; int y; } ac__type_alignof_;
25668 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25675 rm -f conftest.$ac_objext
25676 if { (ac_try="$ac_compile"
25677 case "(($ac_try" in
25678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25679 *) ac_try_echo=$ac_try;;
25681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25682 $as_echo "$ac_try_echo") >&5
25683 (eval "$ac_compile") 2>conftest.er1
25685 grep -v '^ *+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } && {
25690 test -z "$ac_c_werror_flag" ||
25691 test ! -s conftest.err
25692 } && test -s conftest.$ac_objext; then
25695 cat >conftest.$ac_ext <<_ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h. */
25701 $ac_includes_default
25703 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25705 typedef struct { char x; int y; } ac__type_alignof_;
25709 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25723 $as_echo "$ac_try_echo") >&5
25724 (eval "$ac_compile") 2>conftest.er1
25726 grep -v '^ *+' conftest.er1 >conftest.err
25728 cat conftest.err >&5
25729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } && {
25731 test -z "$ac_c_werror_flag" ||
25732 test ! -s conftest.err
25733 } && test -s conftest.$ac_objext; then
25734 ac_hi=$ac_mid; break
25736 $as_echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25739 ac_lo=`expr $ac_mid + 1`
25740 if test $ac_lo -le $ac_mid; then
25744 ac_mid=`expr 2 '*' $ac_mid + 1`
25747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750 $as_echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 $ac_includes_default
25761 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25763 typedef struct { char x; int y; } ac__type_alignof_;
25767 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25774 rm -f conftest.$ac_objext
25775 if { (ac_try="$ac_compile"
25776 case "(($ac_try" in
25777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778 *) ac_try_echo=$ac_try;;
25780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25781 $as_echo "$ac_try_echo") >&5
25782 (eval "$ac_compile") 2>conftest.er1
25784 grep -v '^ *+' conftest.er1 >conftest.err
25786 cat conftest.err >&5
25787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } && {
25789 test -z "$ac_c_werror_flag" ||
25790 test ! -s conftest.err
25791 } && test -s conftest.$ac_objext; then
25794 cat >conftest.$ac_ext <<_ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h. */
25800 $ac_includes_default
25802 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25804 typedef struct { char x; int y; } ac__type_alignof_;
25808 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25815 rm -f conftest.$ac_objext
25816 if { (ac_try="$ac_compile"
25817 case "(($ac_try" in
25818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819 *) ac_try_echo=$ac_try;;
25821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25822 $as_echo "$ac_try_echo") >&5
25823 (eval "$ac_compile") 2>conftest.er1
25825 grep -v '^ *+' conftest.er1 >conftest.err
25827 cat conftest.err >&5
25828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); } && {
25830 test -z "$ac_c_werror_flag" ||
25831 test ! -s conftest.err
25832 } && test -s conftest.$ac_objext; then
25833 ac_lo=$ac_mid; break
25835 $as_echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25838 ac_hi=`expr '(' $ac_mid ')' - 1`
25839 if test $ac_mid -le $ac_hi; then
25843 ac_mid=`expr 2 '*' $ac_mid`
25846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25849 $as_echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25859 # Binary search between lo and hi bounds.
25860 while test "x$ac_lo" != "x$ac_hi"; do
25861 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25862 cat >conftest.$ac_ext <<_ACEOF
25865 cat confdefs.h >>conftest.$ac_ext
25866 cat >>conftest.$ac_ext <<_ACEOF
25867 /* end confdefs.h. */
25868 $ac_includes_default
25870 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25872 typedef struct { char x; int y; } ac__type_alignof_;
25876 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25883 rm -f conftest.$ac_objext
25884 if { (ac_try="$ac_compile"
25885 case "(($ac_try" in
25886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25887 *) ac_try_echo=$ac_try;;
25889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25890 $as_echo "$ac_try_echo") >&5
25891 (eval "$ac_compile") 2>conftest.er1
25893 grep -v '^ *+' conftest.er1 >conftest.err
25895 cat conftest.err >&5
25896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } && {
25898 test -z "$ac_c_werror_flag" ||
25899 test ! -s conftest.err
25900 } && test -s conftest.$ac_objext; then
25903 $as_echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 ac_lo=`expr '(' $ac_mid ')' + 1`
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25912 ?*) ac_cv_alignof_int=$ac_lo;;
25913 '') if test "$ac_cv_type_int" = yes; then
25914 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25916 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25917 See \`config.log' for more details." >&5
25918 $as_echo "$as_me: error: cannot compute alignment of int
25919 See \`config.log' for more details." >&2;}
25920 { (exit 77); exit 77; }; }; }
25922 ac_cv_alignof_int=0
25926 cat >conftest.$ac_ext <<_ACEOF
25929 cat confdefs.h >>conftest.$ac_ext
25930 cat >>conftest.$ac_ext <<_ACEOF
25931 /* end confdefs.h. */
25932 $ac_includes_default
25934 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25936 typedef struct { char x; int y; } ac__type_alignof_;
25937 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25938 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25940 #include <stdlib.h>
25945 FILE *f = fopen ("conftest.val", "w");
25948 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25950 long int i = longval ();
25951 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25953 fprintf (f, "%ld", i);
25957 unsigned long int i = ulongval ();
25958 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25960 fprintf (f, "%lu", i);
25962 /* Do not output a trailing newline, as this causes \r\n confusion
25963 on some platforms. */
25964 return ferror (f) || fclose (f) != 0;
25970 rm -f conftest$ac_exeext
25971 if { (ac_try="$ac_link"
25972 case "(($ac_try" in
25973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974 *) ac_try_echo=$ac_try;;
25976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25977 $as_echo "$ac_try_echo") >&5
25978 (eval "$ac_link") 2>&5
25980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25982 { (case "(($ac_try" in
25983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25984 *) ac_try_echo=$ac_try;;
25986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25987 $as_echo "$ac_try_echo") >&5
25988 (eval "$ac_try") 2>&5
25990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); }; }; then
25992 ac_cv_alignof_int=`cat conftest.val`
25994 $as_echo "$as_me: program exited with status $ac_status" >&5
25995 $as_echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 ( exit $ac_status )
25999 if test "$ac_cv_type_int" = yes; then
26000 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26002 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26003 See \`config.log' for more details." >&5
26004 $as_echo "$as_me: error: cannot compute alignment of int
26005 See \`config.log' for more details." >&2;}
26006 { (exit 77); exit 77; }; }; }
26008 ac_cv_alignof_int=0
26011 rm -rf conftest.dSYM
26012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26016 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26017 $as_echo "$ac_cv_alignof_int" >&6; }
26021 cat >>confdefs.h <<_ACEOF
26022 #define ALIGNOF_INT $ac_cv_alignof_int
26026 # The cast to long int works around a bug in the HP C Compiler,
26027 # see AC_CHECK_SIZEOF for more information.
26028 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26029 $as_echo_n "checking alignment of long... " >&6; }
26030 if test "${ac_cv_alignof_long+set}" = set; then
26031 $as_echo_n "(cached) " >&6
26033 if test "$cross_compiling" = yes; then
26034 # Depending upon the size, compute the lo and hi bounds.
26035 cat >conftest.$ac_ext <<_ACEOF
26038 cat confdefs.h >>conftest.$ac_ext
26039 cat >>conftest.$ac_ext <<_ACEOF
26040 /* end confdefs.h. */
26041 $ac_includes_default
26043 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26045 typedef struct { char x; long y; } ac__type_alignof_;
26049 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26056 rm -f conftest.$ac_objext
26057 if { (ac_try="$ac_compile"
26058 case "(($ac_try" in
26059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060 *) ac_try_echo=$ac_try;;
26062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26063 $as_echo "$ac_try_echo") >&5
26064 (eval "$ac_compile") 2>conftest.er1
26066 grep -v '^ *+' conftest.er1 >conftest.err
26068 cat conftest.err >&5
26069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); } && {
26071 test -z "$ac_c_werror_flag" ||
26072 test ! -s conftest.err
26073 } && test -s conftest.$ac_objext; then
26076 cat >conftest.$ac_ext <<_ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h. */
26082 $ac_includes_default
26084 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26086 typedef struct { char x; long y; } ac__type_alignof_;
26090 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105 (eval "$ac_compile") 2>conftest.er1
26107 grep -v '^ *+' conftest.er1 >conftest.err
26109 cat conftest.err >&5
26110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } && {
26112 test -z "$ac_c_werror_flag" ||
26113 test ! -s conftest.err
26114 } && test -s conftest.$ac_objext; then
26115 ac_hi=$ac_mid; break
26117 $as_echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 ac_lo=`expr $ac_mid + 1`
26121 if test $ac_lo -le $ac_mid; then
26125 ac_mid=`expr 2 '*' $ac_mid + 1`
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26131 $as_echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26134 cat >conftest.$ac_ext <<_ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h. */
26140 $ac_includes_default
26142 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26144 typedef struct { char x; long y; } ac__type_alignof_;
26148 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26155 rm -f conftest.$ac_objext
26156 if { (ac_try="$ac_compile"
26157 case "(($ac_try" in
26158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159 *) ac_try_echo=$ac_try;;
26161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26162 $as_echo "$ac_try_echo") >&5
26163 (eval "$ac_compile") 2>conftest.er1
26165 grep -v '^ *+' conftest.er1 >conftest.err
26167 cat conftest.err >&5
26168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } && {
26170 test -z "$ac_c_werror_flag" ||
26171 test ! -s conftest.err
26172 } && test -s conftest.$ac_objext; then
26175 cat >conftest.$ac_ext <<_ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 $ac_includes_default
26183 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26185 typedef struct { char x; long y; } ac__type_alignof_;
26189 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26196 rm -f conftest.$ac_objext
26197 if { (ac_try="$ac_compile"
26198 case "(($ac_try" in
26199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26200 *) ac_try_echo=$ac_try;;
26202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26203 $as_echo "$ac_try_echo") >&5
26204 (eval "$ac_compile") 2>conftest.er1
26206 grep -v '^ *+' conftest.er1 >conftest.err
26208 cat conftest.err >&5
26209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest.$ac_objext; then
26214 ac_lo=$ac_mid; break
26216 $as_echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 ac_hi=`expr '(' $ac_mid ')' - 1`
26220 if test $ac_mid -le $ac_hi; then
26224 ac_mid=`expr 2 '*' $ac_mid`
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26230 $as_echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240 # Binary search between lo and hi bounds.
26241 while test "x$ac_lo" != "x$ac_hi"; do
26242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26243 cat >conftest.$ac_ext <<_ACEOF
26246 cat confdefs.h >>conftest.$ac_ext
26247 cat >>conftest.$ac_ext <<_ACEOF
26248 /* end confdefs.h. */
26249 $ac_includes_default
26251 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26253 typedef struct { char x; long y; } ac__type_alignof_;
26257 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26264 rm -f conftest.$ac_objext
26265 if { (ac_try="$ac_compile"
26266 case "(($ac_try" in
26267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268 *) ac_try_echo=$ac_try;;
26270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26271 $as_echo "$ac_try_echo") >&5
26272 (eval "$ac_compile") 2>conftest.er1
26274 grep -v '^ *+' conftest.er1 >conftest.err
26276 cat conftest.err >&5
26277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } && {
26279 test -z "$ac_c_werror_flag" ||
26280 test ! -s conftest.err
26281 } && test -s conftest.$ac_objext; then
26284 $as_echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 ac_lo=`expr '(' $ac_mid ')' + 1`
26290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26293 ?*) ac_cv_alignof_long=$ac_lo;;
26294 '') if test "$ac_cv_type_long" = yes; then
26295 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26297 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26298 See \`config.log' for more details." >&5
26299 $as_echo "$as_me: error: cannot compute alignment of long
26300 See \`config.log' for more details." >&2;}
26301 { (exit 77); exit 77; }; }; }
26303 ac_cv_alignof_long=0
26307 cat >conftest.$ac_ext <<_ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h. */
26313 $ac_includes_default
26315 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26317 typedef struct { char x; long y; } ac__type_alignof_;
26318 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26319 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26321 #include <stdlib.h>
26326 FILE *f = fopen ("conftest.val", "w");
26329 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26331 long int i = longval ();
26332 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26334 fprintf (f, "%ld", i);
26338 unsigned long int i = ulongval ();
26339 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26341 fprintf (f, "%lu", i);
26343 /* Do not output a trailing newline, as this causes \r\n confusion
26344 on some platforms. */
26345 return ferror (f) || fclose (f) != 0;
26351 rm -f conftest$ac_exeext
26352 if { (ac_try="$ac_link"
26353 case "(($ac_try" in
26354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26355 *) ac_try_echo=$ac_try;;
26357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26358 $as_echo "$ac_try_echo") >&5
26359 (eval "$ac_link") 2>&5
26361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26363 { (case "(($ac_try" in
26364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26365 *) ac_try_echo=$ac_try;;
26367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26368 $as_echo "$ac_try_echo") >&5
26369 (eval "$ac_try") 2>&5
26371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 ac_cv_alignof_long=`cat conftest.val`
26375 $as_echo "$as_me: program exited with status $ac_status" >&5
26376 $as_echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 ( exit $ac_status )
26380 if test "$ac_cv_type_long" = yes; then
26381 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26383 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26384 See \`config.log' for more details." >&5
26385 $as_echo "$as_me: error: cannot compute alignment of long
26386 See \`config.log' for more details." >&2;}
26387 { (exit 77); exit 77; }; }; }
26389 ac_cv_alignof_long=0
26392 rm -rf conftest.dSYM
26393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26397 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26398 $as_echo "$ac_cv_alignof_long" >&6; }
26402 cat >>confdefs.h <<_ACEOF
26403 #define ALIGNOF_LONG $ac_cv_alignof_long
26407 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26408 # The cast to long int works around a bug in the HP C Compiler,
26409 # see AC_CHECK_SIZEOF for more information.
26410 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26411 $as_echo_n "checking alignment of long long int... " >&6; }
26412 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26413 $as_echo_n "(cached) " >&6
26415 if test "$cross_compiling" = yes; then
26416 # Depending upon the size, compute the lo and hi bounds.
26417 cat >conftest.$ac_ext <<_ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 $ac_includes_default
26425 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26427 typedef struct { char x; long long int y; } ac__type_alignof_;
26431 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26438 rm -f conftest.$ac_objext
26439 if { (ac_try="$ac_compile"
26440 case "(($ac_try" in
26441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442 *) ac_try_echo=$ac_try;;
26444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26445 $as_echo "$ac_try_echo") >&5
26446 (eval "$ac_compile") 2>conftest.er1
26448 grep -v '^ *+' conftest.er1 >conftest.err
26450 cat conftest.err >&5
26451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } && {
26453 test -z "$ac_c_werror_flag" ||
26454 test ! -s conftest.err
26455 } && test -s conftest.$ac_objext; then
26458 cat >conftest.$ac_ext <<_ACEOF
26461 cat confdefs.h >>conftest.$ac_ext
26462 cat >>conftest.$ac_ext <<_ACEOF
26463 /* end confdefs.h. */
26464 $ac_includes_default
26466 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26468 typedef struct { char x; long long int y; } ac__type_alignof_;
26472 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26479 rm -f conftest.$ac_objext
26480 if { (ac_try="$ac_compile"
26481 case "(($ac_try" in
26482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483 *) ac_try_echo=$ac_try;;
26485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26486 $as_echo "$ac_try_echo") >&5
26487 (eval "$ac_compile") 2>conftest.er1
26489 grep -v '^ *+' conftest.er1 >conftest.err
26491 cat conftest.err >&5
26492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } && {
26494 test -z "$ac_c_werror_flag" ||
26495 test ! -s conftest.err
26496 } && test -s conftest.$ac_objext; then
26497 ac_hi=$ac_mid; break
26499 $as_echo "$as_me: failed program was:" >&5
26500 sed 's/^/| /' conftest.$ac_ext >&5
26502 ac_lo=`expr $ac_mid + 1`
26503 if test $ac_lo -le $ac_mid; then
26507 ac_mid=`expr 2 '*' $ac_mid + 1`
26510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26513 $as_echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26516 cat >conftest.$ac_ext <<_ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26522 $ac_includes_default
26524 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26526 typedef struct { char x; long long int y; } ac__type_alignof_;
26530 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26537 rm -f conftest.$ac_objext
26538 if { (ac_try="$ac_compile"
26539 case "(($ac_try" in
26540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26541 *) ac_try_echo=$ac_try;;
26543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26544 $as_echo "$ac_try_echo") >&5
26545 (eval "$ac_compile") 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && {
26552 test -z "$ac_c_werror_flag" ||
26553 test ! -s conftest.err
26554 } && test -s conftest.$ac_objext; then
26557 cat >conftest.$ac_ext <<_ACEOF
26560 cat confdefs.h >>conftest.$ac_ext
26561 cat >>conftest.$ac_ext <<_ACEOF
26562 /* end confdefs.h. */
26563 $ac_includes_default
26565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26567 typedef struct { char x; long long int y; } ac__type_alignof_;
26571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26578 rm -f conftest.$ac_objext
26579 if { (ac_try="$ac_compile"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26585 $as_echo "$ac_try_echo") >&5
26586 (eval "$ac_compile") 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } && {
26593 test -z "$ac_c_werror_flag" ||
26594 test ! -s conftest.err
26595 } && test -s conftest.$ac_objext; then
26596 ac_lo=$ac_mid; break
26598 $as_echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ac_hi=`expr '(' $ac_mid ')' - 1`
26602 if test $ac_mid -le $ac_hi; then
26606 ac_mid=`expr 2 '*' $ac_mid`
26609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612 $as_echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 # Binary search between lo and hi bounds.
26623 while test "x$ac_lo" != "x$ac_hi"; do
26624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26625 cat >conftest.$ac_ext <<_ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 $ac_includes_default
26633 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26635 typedef struct { char x; long long int y; } ac__type_alignof_;
26639 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26646 rm -f conftest.$ac_objext
26647 if { (ac_try="$ac_compile"
26648 case "(($ac_try" in
26649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26650 *) ac_try_echo=$ac_try;;
26652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26653 $as_echo "$ac_try_echo") >&5
26654 (eval "$ac_compile") 2>conftest.er1
26656 grep -v '^ *+' conftest.er1 >conftest.err
26658 cat conftest.err >&5
26659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); } && {
26661 test -z "$ac_c_werror_flag" ||
26662 test ! -s conftest.err
26663 } && test -s conftest.$ac_objext; then
26666 $as_echo "$as_me: failed program was:" >&5
26667 sed 's/^/| /' conftest.$ac_ext >&5
26669 ac_lo=`expr '(' $ac_mid ')' + 1`
26672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26675 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26676 '') if test "$ac_cv_type_long_long_int" = yes; then
26677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26679 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26680 See \`config.log' for more details." >&5
26681 $as_echo "$as_me: error: cannot compute alignment of long long int
26682 See \`config.log' for more details." >&2;}
26683 { (exit 77); exit 77; }; }; }
26685 ac_cv_alignof_long_long_int=0
26689 cat >conftest.$ac_ext <<_ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h. */
26695 $ac_includes_default
26697 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26699 typedef struct { char x; long long int y; } ac__type_alignof_;
26700 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26701 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26703 #include <stdlib.h>
26708 FILE *f = fopen ("conftest.val", "w");
26711 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26713 long int i = longval ();
26714 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26716 fprintf (f, "%ld", i);
26720 unsigned long int i = ulongval ();
26721 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26723 fprintf (f, "%lu", i);
26725 /* Do not output a trailing newline, as this causes \r\n confusion
26726 on some platforms. */
26727 return ferror (f) || fclose (f) != 0;
26733 rm -f conftest$ac_exeext
26734 if { (ac_try="$ac_link"
26735 case "(($ac_try" in
26736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737 *) ac_try_echo=$ac_try;;
26739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26740 $as_echo "$ac_try_echo") >&5
26741 (eval "$ac_link") 2>&5
26743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26745 { (case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26750 $as_echo "$ac_try_echo") >&5
26751 (eval "$ac_try") 2>&5
26753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755 ac_cv_alignof_long_long_int=`cat conftest.val`
26757 $as_echo "$as_me: program exited with status $ac_status" >&5
26758 $as_echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26761 ( exit $ac_status )
26762 if test "$ac_cv_type_long_long_int" = yes; then
26763 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26765 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26766 See \`config.log' for more details." >&5
26767 $as_echo "$as_me: error: cannot compute alignment of long long int
26768 See \`config.log' for more details." >&2;}
26769 { (exit 77); exit 77; }; }; }
26771 ac_cv_alignof_long_long_int=0
26774 rm -rf conftest.dSYM
26775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26779 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26780 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26784 cat >>confdefs.h <<_ACEOF
26785 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26790 # The cast to long int works around a bug in the HP C Compiler,
26791 # see AC_CHECK_SIZEOF for more information.
26792 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26793 $as_echo_n "checking alignment of double... " >&6; }
26794 if test "${ac_cv_alignof_double+set}" = set; then
26795 $as_echo_n "(cached) " >&6
26797 if test "$cross_compiling" = yes; then
26798 # Depending upon the size, compute the lo and hi bounds.
26799 cat >conftest.$ac_ext <<_ACEOF
26802 cat confdefs.h >>conftest.$ac_ext
26803 cat >>conftest.$ac_ext <<_ACEOF
26804 /* end confdefs.h. */
26805 $ac_includes_default
26807 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26809 typedef struct { char x; double y; } ac__type_alignof_;
26813 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26820 rm -f conftest.$ac_objext
26821 if { (ac_try="$ac_compile"
26822 case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26827 $as_echo "$ac_try_echo") >&5
26828 (eval "$ac_compile") 2>conftest.er1
26830 grep -v '^ *+' conftest.er1 >conftest.err
26832 cat conftest.err >&5
26833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); } && {
26835 test -z "$ac_c_werror_flag" ||
26836 test ! -s conftest.err
26837 } && test -s conftest.$ac_objext; then
26840 cat >conftest.$ac_ext <<_ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26846 $ac_includes_default
26848 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26850 typedef struct { char x; double y; } ac__type_alignof_;
26854 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26861 rm -f conftest.$ac_objext
26862 if { (ac_try="$ac_compile"
26863 case "(($ac_try" in
26864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865 *) ac_try_echo=$ac_try;;
26867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26868 $as_echo "$ac_try_echo") >&5
26869 (eval "$ac_compile") 2>conftest.er1
26871 grep -v '^ *+' conftest.er1 >conftest.err
26873 cat conftest.err >&5
26874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } && {
26876 test -z "$ac_c_werror_flag" ||
26877 test ! -s conftest.err
26878 } && test -s conftest.$ac_objext; then
26879 ac_hi=$ac_mid; break
26881 $as_echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26884 ac_lo=`expr $ac_mid + 1`
26885 if test $ac_lo -le $ac_mid; then
26889 ac_mid=`expr 2 '*' $ac_mid + 1`
26892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26895 $as_echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26898 cat >conftest.$ac_ext <<_ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h. */
26904 $ac_includes_default
26906 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26908 typedef struct { char x; double y; } ac__type_alignof_;
26912 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26919 rm -f conftest.$ac_objext
26920 if { (ac_try="$ac_compile"
26921 case "(($ac_try" in
26922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923 *) ac_try_echo=$ac_try;;
26925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26926 $as_echo "$ac_try_echo") >&5
26927 (eval "$ac_compile") 2>conftest.er1
26929 grep -v '^ *+' conftest.er1 >conftest.err
26931 cat conftest.err >&5
26932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); } && {
26934 test -z "$ac_c_werror_flag" ||
26935 test ! -s conftest.err
26936 } && test -s conftest.$ac_objext; then
26939 cat >conftest.$ac_ext <<_ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26945 $ac_includes_default
26947 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26949 typedef struct { char x; double y; } ac__type_alignof_;
26953 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26960 rm -f conftest.$ac_objext
26961 if { (ac_try="$ac_compile"
26962 case "(($ac_try" in
26963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26964 *) ac_try_echo=$ac_try;;
26966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26967 $as_echo "$ac_try_echo") >&5
26968 (eval "$ac_compile") 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } && {
26975 test -z "$ac_c_werror_flag" ||
26976 test ! -s conftest.err
26977 } && test -s conftest.$ac_objext; then
26978 ac_lo=$ac_mid; break
26980 $as_echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26983 ac_hi=`expr '(' $ac_mid ')' - 1`
26984 if test $ac_mid -le $ac_hi; then
26988 ac_mid=`expr 2 '*' $ac_mid`
26991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26994 $as_echo "$as_me: failed program was:" >&5
26995 sed 's/^/| /' conftest.$ac_ext >&5
27000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27004 # Binary search between lo and hi bounds.
27005 while test "x$ac_lo" != "x$ac_hi"; do
27006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27007 cat >conftest.$ac_ext <<_ACEOF
27010 cat confdefs.h >>conftest.$ac_ext
27011 cat >>conftest.$ac_ext <<_ACEOF
27012 /* end confdefs.h. */
27013 $ac_includes_default
27015 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27017 typedef struct { char x; double y; } ac__type_alignof_;
27021 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27028 rm -f conftest.$ac_objext
27029 if { (ac_try="$ac_compile"
27030 case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27035 $as_echo "$ac_try_echo") >&5
27036 (eval "$ac_compile") 2>conftest.er1
27038 grep -v '^ *+' conftest.er1 >conftest.err
27040 cat conftest.err >&5
27041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } && {
27043 test -z "$ac_c_werror_flag" ||
27044 test ! -s conftest.err
27045 } && test -s conftest.$ac_objext; then
27048 $as_echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27051 ac_lo=`expr '(' $ac_mid ')' + 1`
27054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 ?*) ac_cv_alignof_double=$ac_lo;;
27058 '') if test "$ac_cv_type_double" = yes; then
27059 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27061 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27062 See \`config.log' for more details." >&5
27063 $as_echo "$as_me: error: cannot compute alignment of double
27064 See \`config.log' for more details." >&2;}
27065 { (exit 77); exit 77; }; }; }
27067 ac_cv_alignof_double=0
27071 cat >conftest.$ac_ext <<_ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h. */
27077 $ac_includes_default
27079 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27081 typedef struct { char x; double y; } ac__type_alignof_;
27082 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27083 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27085 #include <stdlib.h>
27090 FILE *f = fopen ("conftest.val", "w");
27093 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27095 long int i = longval ();
27096 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27098 fprintf (f, "%ld", i);
27102 unsigned long int i = ulongval ();
27103 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27105 fprintf (f, "%lu", i);
27107 /* Do not output a trailing newline, as this causes \r\n confusion
27108 on some platforms. */
27109 return ferror (f) || fclose (f) != 0;
27115 rm -f conftest$ac_exeext
27116 if { (ac_try="$ac_link"
27117 case "(($ac_try" in
27118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27122 $as_echo "$ac_try_echo") >&5
27123 (eval "$ac_link") 2>&5
27125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27127 { (case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27132 $as_echo "$ac_try_echo") >&5
27133 (eval "$ac_try") 2>&5
27135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_alignof_double=`cat conftest.val`
27139 $as_echo "$as_me: program exited with status $ac_status" >&5
27140 $as_echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27143 ( exit $ac_status )
27144 if test "$ac_cv_type_double" = yes; then
27145 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27147 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27148 See \`config.log' for more details." >&5
27149 $as_echo "$as_me: error: cannot compute alignment of double
27150 See \`config.log' for more details." >&2;}
27151 { (exit 77); exit 77; }; }; }
27153 ac_cv_alignof_double=0
27156 rm -rf conftest.dSYM
27157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27161 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27162 $as_echo "$ac_cv_alignof_double" >&6; }
27166 cat >>confdefs.h <<_ACEOF
27167 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27172 # Compute maximum alignment of any basic type.
27173 # We assume long's alignment is at least as strong as char, short, or int;
27174 # but we must check long long (if it exists) and double.
27176 MAX_ALIGNOF=$ac_cv_alignof_long
27177 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27178 MAX_ALIGNOF=$ac_cv_alignof_double
27180 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27181 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27184 cat >>confdefs.h <<_ACEOF
27185 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27190 # Some platforms predefine the types int8, int16, etc. Only check
27191 # a (hopefully) representative subset.
27192 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27193 $as_echo_n "checking for int8... " >&6; }
27194 if test "${ac_cv_type_int8+set}" = set; then
27195 $as_echo_n "(cached) " >&6
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27205 #ifdef HAVE_SUPPORTDEFS_H
27206 #include <SupportDefs.h>
27218 rm -f conftest.$ac_objext
27219 if { (ac_try="$ac_compile"
27220 case "(($ac_try" in
27221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27222 *) ac_try_echo=$ac_try;;
27224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27225 $as_echo "$ac_try_echo") >&5
27226 (eval "$ac_compile") 2>conftest.er1
27228 grep -v '^ *+' conftest.er1 >conftest.err
27230 cat conftest.err >&5
27231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } && {
27233 test -z "$ac_c_werror_flag" ||
27234 test ! -s conftest.err
27235 } && test -s conftest.$ac_objext; then
27236 cat >conftest.$ac_ext <<_ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27243 #ifdef HAVE_SUPPORTDEFS_H
27244 #include <SupportDefs.h>
27250 if (sizeof ((int8)))
27256 rm -f conftest.$ac_objext
27257 if { (ac_try="$ac_compile"
27258 case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27263 $as_echo "$ac_try_echo") >&5
27264 (eval "$ac_compile") 2>conftest.er1
27266 grep -v '^ *+' conftest.er1 >conftest.err
27268 cat conftest.err >&5
27269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } && {
27271 test -z "$ac_c_werror_flag" ||
27272 test ! -s conftest.err
27273 } && test -s conftest.$ac_objext; then
27276 $as_echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27279 ac_cv_type_int8=yes
27282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284 $as_echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27293 $as_echo "$ac_cv_type_int8" >&6; }
27294 if test "x$ac_cv_type_int8" = x""yes; then
27296 cat >>confdefs.h <<_ACEOF
27297 #define HAVE_INT8 1
27302 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27303 $as_echo_n "checking for uint8... " >&6; }
27304 if test "${ac_cv_type_uint8+set}" = set; then
27305 $as_echo_n "(cached) " >&6
27307 ac_cv_type_uint8=no
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27315 #ifdef HAVE_SUPPORTDEFS_H
27316 #include <SupportDefs.h>
27322 if (sizeof (uint8))
27328 rm -f conftest.$ac_objext
27329 if { (ac_try="$ac_compile"
27330 case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27335 $as_echo "$ac_try_echo") >&5
27336 (eval "$ac_compile") 2>conftest.er1
27338 grep -v '^ *+' conftest.er1 >conftest.err
27340 cat conftest.err >&5
27341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27342 (exit $ac_status); } && {
27343 test -z "$ac_c_werror_flag" ||
27344 test ! -s conftest.err
27345 } && test -s conftest.$ac_objext; then
27346 cat >conftest.$ac_ext <<_ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h. */
27353 #ifdef HAVE_SUPPORTDEFS_H
27354 #include <SupportDefs.h>
27360 if (sizeof ((uint8)))
27366 rm -f conftest.$ac_objext
27367 if { (ac_try="$ac_compile"
27368 case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27373 $as_echo "$ac_try_echo") >&5
27374 (eval "$ac_compile") 2>conftest.er1
27376 grep -v '^ *+' conftest.er1 >conftest.err
27378 cat conftest.err >&5
27379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } && {
27381 test -z "$ac_c_werror_flag" ||
27382 test ! -s conftest.err
27383 } && test -s conftest.$ac_objext; then
27386 $as_echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 ac_cv_type_uint8=yes
27392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394 $as_echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27402 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27403 $as_echo "$ac_cv_type_uint8" >&6; }
27404 if test "x$ac_cv_type_uint8" = x""yes; then
27406 cat >>confdefs.h <<_ACEOF
27407 #define HAVE_UINT8 1
27412 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27413 $as_echo_n "checking for int64... " >&6; }
27414 if test "${ac_cv_type_int64+set}" = set; then
27415 $as_echo_n "(cached) " >&6
27417 ac_cv_type_int64=no
27418 cat >conftest.$ac_ext <<_ACEOF
27421 cat confdefs.h >>conftest.$ac_ext
27422 cat >>conftest.$ac_ext <<_ACEOF
27423 /* end confdefs.h. */
27425 #ifdef HAVE_SUPPORTDEFS_H
27426 #include <SupportDefs.h>
27432 if (sizeof (int64))
27438 rm -f conftest.$ac_objext
27439 if { (ac_try="$ac_compile"
27440 case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27445 $as_echo "$ac_try_echo") >&5
27446 (eval "$ac_compile") 2>conftest.er1
27448 grep -v '^ *+' conftest.er1 >conftest.err
27450 cat conftest.err >&5
27451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); } && {
27453 test -z "$ac_c_werror_flag" ||
27454 test ! -s conftest.err
27455 } && test -s conftest.$ac_objext; then
27456 cat >conftest.$ac_ext <<_ACEOF
27459 cat confdefs.h >>conftest.$ac_ext
27460 cat >>conftest.$ac_ext <<_ACEOF
27461 /* end confdefs.h. */
27463 #ifdef HAVE_SUPPORTDEFS_H
27464 #include <SupportDefs.h>
27470 if (sizeof ((int64)))
27476 rm -f conftest.$ac_objext
27477 if { (ac_try="$ac_compile"
27478 case "(($ac_try" in
27479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27480 *) ac_try_echo=$ac_try;;
27482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27483 $as_echo "$ac_try_echo") >&5
27484 (eval "$ac_compile") 2>conftest.er1
27486 grep -v '^ *+' conftest.er1 >conftest.err
27488 cat conftest.err >&5
27489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); } && {
27491 test -z "$ac_c_werror_flag" ||
27492 test ! -s conftest.err
27493 } && test -s conftest.$ac_objext; then
27496 $as_echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27499 ac_cv_type_int64=yes
27502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27504 $as_echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27512 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27513 $as_echo "$ac_cv_type_int64" >&6; }
27514 if test "x$ac_cv_type_int64" = x""yes; then
27516 cat >>confdefs.h <<_ACEOF
27517 #define HAVE_INT64 1
27522 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27523 $as_echo_n "checking for uint64... " >&6; }
27524 if test "${ac_cv_type_uint64+set}" = set; then
27525 $as_echo_n "(cached) " >&6
27527 ac_cv_type_uint64=no
27528 cat >conftest.$ac_ext <<_ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h. */
27535 #ifdef HAVE_SUPPORTDEFS_H
27536 #include <SupportDefs.h>
27542 if (sizeof (uint64))
27548 rm -f conftest.$ac_objext
27549 if { (ac_try="$ac_compile"
27550 case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27555 $as_echo "$ac_try_echo") >&5
27556 (eval "$ac_compile") 2>conftest.er1
27558 grep -v '^ *+' conftest.er1 >conftest.err
27560 cat conftest.err >&5
27561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } && {
27563 test -z "$ac_c_werror_flag" ||
27564 test ! -s conftest.err
27565 } && test -s conftest.$ac_objext; then
27566 cat >conftest.$ac_ext <<_ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h. */
27573 #ifdef HAVE_SUPPORTDEFS_H
27574 #include <SupportDefs.h>
27580 if (sizeof ((uint64)))
27586 rm -f conftest.$ac_objext
27587 if { (ac_try="$ac_compile"
27588 case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27593 $as_echo "$ac_try_echo") >&5
27594 (eval "$ac_compile") 2>conftest.er1
27596 grep -v '^ *+' conftest.er1 >conftest.err
27598 cat conftest.err >&5
27599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600 (exit $ac_status); } && {
27601 test -z "$ac_c_werror_flag" ||
27602 test ! -s conftest.err
27603 } && test -s conftest.$ac_objext; then
27606 $as_echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27609 ac_cv_type_uint64=yes
27612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27614 $as_echo "$as_me: failed program was:" >&5
27615 sed 's/^/| /' conftest.$ac_ext >&5
27620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27623 $as_echo "$ac_cv_type_uint64" >&6; }
27624 if test "x$ac_cv_type_uint64" = x""yes; then
27626 cat >>confdefs.h <<_ACEOF
27627 #define HAVE_UINT64 1
27634 # We also check for sig_atomic_t, which *should* be defined per ANSI
27635 # C, but is missing on some old platforms.
27636 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27637 $as_echo_n "checking for sig_atomic_t... " >&6; }
27638 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27639 $as_echo_n "(cached) " >&6
27641 ac_cv_type_sig_atomic_t=no
27642 cat >conftest.$ac_ext <<_ACEOF
27645 cat confdefs.h >>conftest.$ac_ext
27646 cat >>conftest.$ac_ext <<_ACEOF
27647 /* end confdefs.h. */
27648 #include <signal.h>
27653 if (sizeof (sig_atomic_t))
27659 rm -f conftest.$ac_objext
27660 if { (ac_try="$ac_compile"
27661 case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27666 $as_echo "$ac_try_echo") >&5
27667 (eval "$ac_compile") 2>conftest.er1
27669 grep -v '^ *+' conftest.er1 >conftest.err
27671 cat conftest.err >&5
27672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } && {
27674 test -z "$ac_c_werror_flag" ||
27675 test ! -s conftest.err
27676 } && test -s conftest.$ac_objext; then
27677 cat >conftest.$ac_ext <<_ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h. */
27683 #include <signal.h>
27688 if (sizeof ((sig_atomic_t)))
27694 rm -f conftest.$ac_objext
27695 if { (ac_try="$ac_compile"
27696 case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27701 $as_echo "$ac_try_echo") >&5
27702 (eval "$ac_compile") 2>conftest.er1
27704 grep -v '^ *+' conftest.er1 >conftest.err
27706 cat conftest.err >&5
27707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } && {
27709 test -z "$ac_c_werror_flag" ||
27710 test ! -s conftest.err
27711 } && test -s conftest.$ac_objext; then
27714 $as_echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27717 ac_cv_type_sig_atomic_t=yes
27720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 $as_echo "$as_me: failed program was:" >&5
27723 sed 's/^/| /' conftest.$ac_ext >&5
27728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27731 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27732 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27734 cat >>confdefs.h <<_ACEOF
27735 #define HAVE_SIG_ATOMIC_T 1
27743 if test "$PORTNAME" != "win32"
27745 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27746 $as_echo_n "checking for POSIX signal interface... " >&6; }
27747 if test "${pgac_cv_func_posix_signals+set}" = set; then
27748 $as_echo_n "(cached) " >&6
27750 cat >conftest.$ac_ext <<_ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27756 #include <signal.h>
27761 struct sigaction act, oact;
27762 sigemptyset(&act.sa_mask);
27763 act.sa_flags = SA_RESTART;
27764 sigaction(0, &act, &oact);
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (ac_try="$ac_link"
27771 case "(($ac_try" in
27772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773 *) ac_try_echo=$ac_try;;
27775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27776 $as_echo "$ac_try_echo") >&5
27777 (eval "$ac_link") 2>conftest.er1
27779 grep -v '^ *+' conftest.er1 >conftest.err
27781 cat conftest.err >&5
27782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } && {
27784 test -z "$ac_c_werror_flag" ||
27785 test ! -s conftest.err
27786 } && test -s conftest$ac_exeext && {
27787 test "$cross_compiling" = yes ||
27788 $as_test_x conftest$ac_exeext
27790 pgac_cv_func_posix_signals=yes
27792 $as_echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27795 pgac_cv_func_posix_signals=no
27798 rm -rf conftest.dSYM
27799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27800 conftest$ac_exeext conftest.$ac_ext
27802 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27803 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27804 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27806 cat >>confdefs.h <<\_ACEOF
27807 #define HAVE_POSIX_SIGNALS /**/
27811 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27813 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27814 { { $as_echo "$as_me:$LINENO: error:
27815 Thread-safety requires POSIX signals, which are not supported by this
27816 operating system; use --disable-thread-safety to disable thread safety." >&5
27817 $as_echo "$as_me: error:
27818 Thread-safety requires POSIX signals, which are not supported by this
27819 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27820 { (exit 1); exit 1; }; }
27824 # SunOS doesn't handle negative byte comparisons properly with +/- return
27825 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27826 $as_echo_n "checking for working memcmp... " >&6; }
27827 if test "${ac_cv_func_memcmp_working+set}" = set; then
27828 $as_echo_n "(cached) " >&6
27830 if test "$cross_compiling" = yes; then
27831 ac_cv_func_memcmp_working=no
27833 cat >conftest.$ac_ext <<_ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27839 $ac_includes_default
27844 /* Some versions of memcmp are not 8-bit clean. */
27845 char c0 = '\100', c1 = '\200', c2 = '\201';
27846 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27849 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27850 or more and with at least one buffer not starting on a 4-byte boundary.
27851 William Lewis provided this test program. */
27856 for (i = 0; i < 4; i++)
27860 strcpy (a, "--------01111111");
27861 strcpy (b, "--------10000000");
27862 if (memcmp (a, b, 16) >= 0)
27872 rm -f conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27879 $as_echo "$ac_try_echo") >&5
27880 (eval "$ac_link") 2>&5
27882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27884 { (case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27889 $as_echo "$ac_try_echo") >&5
27890 (eval "$ac_try") 2>&5
27892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; }; then
27894 ac_cv_func_memcmp_working=yes
27896 $as_echo "$as_me: program exited with status $ac_status" >&5
27897 $as_echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27900 ( exit $ac_status )
27901 ac_cv_func_memcmp_working=no
27903 rm -rf conftest.dSYM
27904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27909 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27910 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27911 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27912 *" memcmp.$ac_objext "* ) ;;
27913 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27920 # Select semaphore implementation type.
27921 if test "$PORTNAME" != "win32"; then
27922 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27924 cat >>confdefs.h <<\_ACEOF
27925 #define USE_NAMED_POSIX_SEMAPHORES 1
27928 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27930 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27932 cat >>confdefs.h <<\_ACEOF
27933 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27936 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27939 cat >>confdefs.h <<\_ACEOF
27940 #define USE_SYSV_SEMAPHORES 1
27943 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27948 cat >>confdefs.h <<\_ACEOF
27949 #define USE_WIN32_SEMAPHORES 1
27952 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27956 # Select shared-memory implementation type.
27957 if test "$PORTNAME" != "win32"; then
27959 cat >>confdefs.h <<\_ACEOF
27960 #define USE_SYSV_SHARED_MEMORY 1
27963 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27966 cat >>confdefs.h <<\_ACEOF
27967 #define USE_WIN32_SHARED_MEMORY 1
27970 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27973 # Select latch implementation type.
27974 if test "$PORTNAME" != "win32"; then
27975 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
27977 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
27980 # If not set in template file, set bytes to use libc memset()
27981 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27982 MEMSET_LOOP_LIMIT=1024
27985 cat >>confdefs.h <<_ACEOF
27986 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27991 if test "$enable_nls" = yes ; then
27993 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27994 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27995 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27996 $as_echo_n "(cached) " >&6
27998 ac_func_search_save_LIBS=$LIBS
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28006 /* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28012 char bind_textdomain_codeset ();
28016 return bind_textdomain_codeset ();
28021 for ac_lib in '' intl; do
28022 if test -z "$ac_lib"; then
28023 ac_res="none required"
28026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28028 rm -f conftest.$ac_objext conftest$ac_exeext
28029 if { (ac_try="$ac_link"
28030 case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28035 $as_echo "$ac_try_echo") >&5
28036 (eval "$ac_link") 2>conftest.er1
28038 grep -v '^ *+' conftest.er1 >conftest.err
28040 cat conftest.err >&5
28041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } && {
28043 test -z "$ac_c_werror_flag" ||
28044 test ! -s conftest.err
28045 } && test -s conftest$ac_exeext && {
28046 test "$cross_compiling" = yes ||
28047 $as_test_x conftest$ac_exeext
28049 ac_cv_search_bind_textdomain_codeset=$ac_res
28051 $as_echo "$as_me: failed program was:" >&5
28052 sed 's/^/| /' conftest.$ac_ext >&5
28057 rm -rf conftest.dSYM
28058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28060 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28064 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28067 ac_cv_search_bind_textdomain_codeset=no
28069 rm conftest.$ac_ext
28070 LIBS=$ac_func_search_save_LIBS
28072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28073 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28074 ac_res=$ac_cv_search_bind_textdomain_codeset
28075 if test "$ac_res" != no; then
28076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28079 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28080 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28081 { (exit 1); exit 1; }; }
28084 if test "${ac_cv_header_libintl_h+set}" = set; then
28085 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28086 $as_echo_n "checking for libintl.h... " >&6; }
28087 if test "${ac_cv_header_libintl_h+set}" = set; then
28088 $as_echo_n "(cached) " >&6
28090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28091 $as_echo "$ac_cv_header_libintl_h" >&6; }
28093 # Is the header compilable?
28094 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28095 $as_echo_n "checking libintl.h usability... " >&6; }
28096 cat >conftest.$ac_ext <<_ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h. */
28102 $ac_includes_default
28103 #include <libintl.h>
28105 rm -f conftest.$ac_objext
28106 if { (ac_try="$ac_compile"
28107 case "(($ac_try" in
28108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109 *) ac_try_echo=$ac_try;;
28111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28112 $as_echo "$ac_try_echo") >&5
28113 (eval "$ac_compile") 2>conftest.er1
28115 grep -v '^ *+' conftest.er1 >conftest.err
28117 cat conftest.err >&5
28118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); } && {
28120 test -z "$ac_c_werror_flag" ||
28121 test ! -s conftest.err
28122 } && test -s conftest.$ac_objext; then
28123 ac_header_compiler=yes
28125 $as_echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28128 ac_header_compiler=no
28131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28133 $as_echo "$ac_header_compiler" >&6; }
28135 # Is the header present?
28136 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28137 $as_echo_n "checking libintl.h presence... " >&6; }
28138 cat >conftest.$ac_ext <<_ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h. */
28144 #include <libintl.h>
28146 if { (ac_try="$ac_cpp conftest.$ac_ext"
28147 case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28152 $as_echo "$ac_try_echo") >&5
28153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28155 grep -v '^ *+' conftest.er1 >conftest.err
28157 cat conftest.err >&5
28158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); } >/dev/null && {
28160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28161 test ! -s conftest.err
28163 ac_header_preproc=yes
28165 $as_echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28168 ac_header_preproc=no
28171 rm -f conftest.err conftest.$ac_ext
28172 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28173 $as_echo "$ac_header_preproc" >&6; }
28175 # So? What about this header?
28176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28178 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28179 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28180 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28181 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28182 ac_header_preproc=yes
28185 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28186 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28187 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28188 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28189 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28190 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28191 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28192 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28193 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28194 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28195 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28196 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28198 ## ---------------------------------------- ##
28199 ## Report this to pgsql-bugs@postgresql.org ##
28200 ## ---------------------------------------- ##
28202 ) | sed "s/^/$as_me: WARNING: /" >&2
28205 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28206 $as_echo_n "checking for libintl.h... " >&6; }
28207 if test "${ac_cv_header_libintl_h+set}" = set; then
28208 $as_echo_n "(cached) " >&6
28210 ac_cv_header_libintl_h=$ac_header_preproc
28212 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28213 $as_echo "$ac_cv_header_libintl_h" >&6; }
28216 if test "x$ac_cv_header_libintl_h" = x""yes; then
28219 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28220 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28221 { (exit 1); exit 1; }; }
28225 for ac_prog in msgfmt
28227 # Extract the first word of "$ac_prog", so it can be a program name with args.
28228 set dummy $ac_prog; ac_word=$2
28229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28230 $as_echo_n "checking for $ac_word... " >&6; }
28231 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28232 $as_echo_n "(cached) " >&6
28234 if test -n "$MSGFMT"; then
28235 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28238 for as_dir in $PATH
28241 test -z "$as_dir" && as_dir=.
28242 for ac_exec_ext in '' $ac_executable_extensions; do
28243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28244 ac_cv_prog_MSGFMT="$ac_prog"
28245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28254 MSGFMT=$ac_cv_prog_MSGFMT
28255 if test -n "$MSGFMT"; then
28256 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28257 $as_echo "$MSGFMT" >&6; }
28259 { $as_echo "$as_me:$LINENO: result: no" >&5
28260 $as_echo "no" >&6; }
28264 test -n "$MSGFMT" && break
28267 if test -z "$MSGFMT"; then
28268 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28269 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28270 { (exit 1); exit 1; }; }
28272 for ac_prog in msgmerge
28274 # Extract the first word of "$ac_prog", so it can be a program name with args.
28275 set dummy $ac_prog; ac_word=$2
28276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28277 $as_echo_n "checking for $ac_word... " >&6; }
28278 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28279 $as_echo_n "(cached) " >&6
28281 if test -n "$MSGMERGE"; then
28282 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28285 for as_dir in $PATH
28288 test -z "$as_dir" && as_dir=.
28289 for ac_exec_ext in '' $ac_executable_extensions; do
28290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28291 ac_cv_prog_MSGMERGE="$ac_prog"
28292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28301 MSGMERGE=$ac_cv_prog_MSGMERGE
28302 if test -n "$MSGMERGE"; then
28303 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28304 $as_echo "$MSGMERGE" >&6; }
28306 { $as_echo "$as_me:$LINENO: result: no" >&5
28307 $as_echo "no" >&6; }
28311 test -n "$MSGMERGE" && break
28314 for ac_prog in xgettext
28316 # Extract the first word of "$ac_prog", so it can be a program name with args.
28317 set dummy $ac_prog; ac_word=$2
28318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28319 $as_echo_n "checking for $ac_word... " >&6; }
28320 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28321 $as_echo_n "(cached) " >&6
28323 if test -n "$XGETTEXT"; then
28324 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28327 for as_dir in $PATH
28330 test -z "$as_dir" && as_dir=.
28331 for ac_exec_ext in '' $ac_executable_extensions; do
28332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28333 ac_cv_prog_XGETTEXT="$ac_prog"
28334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28343 XGETTEXT=$ac_cv_prog_XGETTEXT
28344 if test -n "$XGETTEXT"; then
28345 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28346 $as_echo "$XGETTEXT" >&6; }
28348 { $as_echo "$as_me:$LINENO: result: no" >&5
28349 $as_echo "no" >&6; }
28353 test -n "$XGETTEXT" && break
28359 # Check for Tcl configuration script tclConfig.sh
28360 if test "$with_tcl" = yes; then
28361 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28363 # Extract the first word of "$ac_prog", so it can be a program name with args.
28364 set dummy $ac_prog; ac_word=$2
28365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28366 $as_echo_n "checking for $ac_word... " >&6; }
28367 if test "${ac_cv_path_TCLSH+set}" = set; then
28368 $as_echo_n "(cached) " >&6
28372 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28376 for as_dir in $PATH
28379 test -z "$as_dir" && as_dir=.
28380 for ac_exec_ext in '' $ac_executable_extensions; do
28381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28382 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28393 TCLSH=$ac_cv_path_TCLSH
28394 if test -n "$TCLSH"; then
28395 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28396 $as_echo "$TCLSH" >&6; }
28398 { $as_echo "$as_me:$LINENO: result: no" >&5
28399 $as_echo "no" >&6; }
28403 test -n "$TCLSH" && break
28406 if test x"$TCLSH" = x""; then
28407 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28408 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28409 { (exit 1); exit 1; }; }
28412 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28413 $as_echo_n "checking for tclConfig.sh... " >&6; }
28414 # Let user override test
28415 if test -z "$TCL_CONFIG_SH"; then
28416 pgac_test_dirs="$with_tclconfig"
28418 set X $pgac_test_dirs; shift
28419 if test $# -eq 0; then
28420 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28421 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28422 { (exit 1); exit 1; }; }
28423 set X `echo 'puts $auto_path' | $TCLSH`; shift
28427 if test -r "$pgac_dir/tclConfig.sh"; then
28428 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28434 if test -z "$TCL_CONFIG_SH"; then
28435 { $as_echo "$as_me:$LINENO: result: no" >&5
28436 $as_echo "no" >&6; }
28437 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28438 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28439 { (exit 1); exit 1; }; }
28441 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28442 $as_echo "$TCL_CONFIG_SH" >&6; }
28448 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28449 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28450 eval TCL_LIBS=\"$TCL_LIBS\"
28451 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28452 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28454 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28455 ac_save_CPPFLAGS=$CPPFLAGS
28456 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28457 if test "${ac_cv_header_tcl_h+set}" = set; then
28458 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28459 $as_echo_n "checking for tcl.h... " >&6; }
28460 if test "${ac_cv_header_tcl_h+set}" = set; then
28461 $as_echo_n "(cached) " >&6
28463 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28464 $as_echo "$ac_cv_header_tcl_h" >&6; }
28466 # Is the header compilable?
28467 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28468 $as_echo_n "checking tcl.h usability... " >&6; }
28469 cat >conftest.$ac_ext <<_ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h. */
28475 $ac_includes_default
28478 rm -f conftest.$ac_objext
28479 if { (ac_try="$ac_compile"
28480 case "(($ac_try" in
28481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482 *) ac_try_echo=$ac_try;;
28484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28485 $as_echo "$ac_try_echo") >&5
28486 (eval "$ac_compile") 2>conftest.er1
28488 grep -v '^ *+' conftest.er1 >conftest.err
28490 cat conftest.err >&5
28491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); } && {
28493 test -z "$ac_c_werror_flag" ||
28494 test ! -s conftest.err
28495 } && test -s conftest.$ac_objext; then
28496 ac_header_compiler=yes
28498 $as_echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28501 ac_header_compiler=no
28504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28506 $as_echo "$ac_header_compiler" >&6; }
28508 # Is the header present?
28509 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28510 $as_echo_n "checking tcl.h presence... " >&6; }
28511 cat >conftest.$ac_ext <<_ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h. */
28519 if { (ac_try="$ac_cpp conftest.$ac_ext"
28520 case "(($ac_try" in
28521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28522 *) ac_try_echo=$ac_try;;
28524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28525 $as_echo "$ac_try_echo") >&5
28526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28528 grep -v '^ *+' conftest.er1 >conftest.err
28530 cat conftest.err >&5
28531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } >/dev/null && {
28533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28534 test ! -s conftest.err
28536 ac_header_preproc=yes
28538 $as_echo "$as_me: failed program was:" >&5
28539 sed 's/^/| /' conftest.$ac_ext >&5
28541 ac_header_preproc=no
28544 rm -f conftest.err conftest.$ac_ext
28545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28546 $as_echo "$ac_header_preproc" >&6; }
28548 # So? What about this header?
28549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28551 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28552 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28553 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28554 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28555 ac_header_preproc=yes
28558 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28559 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28560 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28561 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28562 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28563 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28564 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28565 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28566 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28567 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28568 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28569 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28571 ## ---------------------------------------- ##
28572 ## Report this to pgsql-bugs@postgresql.org ##
28573 ## ---------------------------------------- ##
28575 ) | sed "s/^/$as_me: WARNING: /" >&2
28578 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28579 $as_echo_n "checking for tcl.h... " >&6; }
28580 if test "${ac_cv_header_tcl_h+set}" = set; then
28581 $as_echo_n "(cached) " >&6
28583 ac_cv_header_tcl_h=$ac_header_preproc
28585 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28586 $as_echo "$ac_cv_header_tcl_h" >&6; }
28589 if test "x$ac_cv_header_tcl_h" = x""yes; then
28592 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28593 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28594 { (exit 1); exit 1; }; }
28598 CPPFLAGS=$ac_save_CPPFLAGS
28602 # Check for DocBook and tools
28604 for ac_prog in onsgmls nsgmls
28606 # Extract the first word of "$ac_prog", so it can be a program name with args.
28607 set dummy $ac_prog; ac_word=$2
28608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28609 $as_echo_n "checking for $ac_word... " >&6; }
28610 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28611 $as_echo_n "(cached) " >&6
28613 if test -n "$NSGMLS"; then
28614 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28617 for as_dir in $PATH
28620 test -z "$as_dir" && as_dir=.
28621 for ac_exec_ext in '' $ac_executable_extensions; do
28622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28623 ac_cv_prog_NSGMLS="$ac_prog"
28624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28633 NSGMLS=$ac_cv_prog_NSGMLS
28634 if test -n "$NSGMLS"; then
28635 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28636 $as_echo "$NSGMLS" >&6; }
28638 { $as_echo "$as_me:$LINENO: result: no" >&5
28639 $as_echo "no" >&6; }
28643 test -n "$NSGMLS" && break
28646 for ac_prog in openjade jade
28648 # Extract the first word of "$ac_prog", so it can be a program name with args.
28649 set dummy $ac_prog; ac_word=$2
28650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28651 $as_echo_n "checking for $ac_word... " >&6; }
28652 if test "${ac_cv_prog_JADE+set}" = set; then
28653 $as_echo_n "(cached) " >&6
28655 if test -n "$JADE"; then
28656 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28659 for as_dir in $PATH
28662 test -z "$as_dir" && as_dir=.
28663 for ac_exec_ext in '' $ac_executable_extensions; do
28664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28665 ac_cv_prog_JADE="$ac_prog"
28666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28675 JADE=$ac_cv_prog_JADE
28676 if test -n "$JADE"; then
28677 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28678 $as_echo "$JADE" >&6; }
28680 { $as_echo "$as_me:$LINENO: result: no" >&5
28681 $as_echo "no" >&6; }
28685 test -n "$JADE" && break
28689 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28690 $as_echo_n "checking for DocBook V4.2... " >&6; }
28691 if test "${pgac_cv_check_docbook+set}" = set; then
28692 $as_echo_n "(cached) " >&6
28694 cat >conftest.sgml <<EOF
28695 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28697 <title>test</title>
28699 <title>random</title>
28701 <title>testsect</title>
28708 pgac_cv_check_docbook=no
28710 if test -n "$NSGMLS"; then
28711 $NSGMLS -s conftest.sgml 1>&5 2>&1
28712 if test $? -eq 0; then
28713 pgac_cv_check_docbook=yes
28716 rm -f conftest.sgml
28718 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28719 $as_echo "$pgac_cv_check_docbook" >&6; }
28721 have_docbook=$pgac_cv_check_docbook
28724 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28725 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28726 if test "${pgac_cv_path_stylesheets+set}" = set; then
28727 $as_echo_n "(cached) " >&6
28729 if test -n "$DOCBOOKSTYLE"; then
28730 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28732 for pgac_prefix in /usr /usr/local /opt /sw; do
28733 for pgac_infix in share lib; do
28734 for pgac_postfix in \
28735 sgml/stylesheets/nwalsh-modular \
28736 sgml/stylesheets/docbook \
28737 sgml/stylesheets/dsssl/docbook \
28738 sgml/docbook-dsssl \
28739 sgml/docbook/dsssl/modular \
28740 sgml/docbook/stylesheet/dsssl/modular \
28741 sgml/docbook/dsssl-stylesheets \
28742 sgml/dsssl/docbook-dsssl-nwalsh
28744 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28745 if test -r "$pgac_candidate/html/docbook.dsl" \
28746 && test -r "$pgac_candidate/print/docbook.dsl"
28748 pgac_cv_path_stylesheets=$pgac_candidate
28757 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28759 if test -n "$DOCBOOKSTYLE"; then
28760 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28761 $as_echo "$DOCBOOKSTYLE" >&6; }
28763 { $as_echo "$as_me:$LINENO: result: no" >&5
28764 $as_echo "no" >&6; }
28766 if test -n "$DOCBOOKSTYLE"; then
28767 for ac_prog in collateindex.pl
28769 # Extract the first word of "$ac_prog", so it can be a program name with args.
28770 set dummy $ac_prog; ac_word=$2
28771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28772 $as_echo_n "checking for $ac_word... " >&6; }
28773 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28774 $as_echo_n "(cached) " >&6
28776 case $COLLATEINDEX in
28778 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28782 for as_dir in $DOCBOOKSTYLE/bin $PATH
28785 test -z "$as_dir" && as_dir=.
28786 for ac_exec_ext in '' $ac_executable_extensions; do
28787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28788 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28799 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28800 if test -n "$COLLATEINDEX"; then
28801 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28802 $as_echo "$COLLATEINDEX" >&6; }
28804 { $as_echo "$as_me:$LINENO: result: no" >&5
28805 $as_echo "no" >&6; }
28809 test -n "$COLLATEINDEX" && break
28813 for ac_prog in collateindex.pl
28815 # Extract the first word of "$ac_prog", so it can be a program name with args.
28816 set dummy $ac_prog; ac_word=$2
28817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28818 $as_echo_n "checking for $ac_word... " >&6; }
28819 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28820 $as_echo_n "(cached) " >&6
28822 case $COLLATEINDEX in
28824 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28828 for as_dir in $PATH
28831 test -z "$as_dir" && as_dir=.
28832 for ac_exec_ext in '' $ac_executable_extensions; do
28833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28834 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28845 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28846 if test -n "$COLLATEINDEX"; then
28847 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28848 $as_echo "$COLLATEINDEX" >&6; }
28850 { $as_echo "$as_me:$LINENO: result: no" >&5
28851 $as_echo "no" >&6; }
28855 test -n "$COLLATEINDEX" && break
28859 for ac_prog in xsltproc
28861 # Extract the first word of "$ac_prog", so it can be a program name with args.
28862 set dummy $ac_prog; ac_word=$2
28863 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28864 $as_echo_n "checking for $ac_word... " >&6; }
28865 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28866 $as_echo_n "(cached) " >&6
28868 if test -n "$XSLTPROC"; then
28869 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28872 for as_dir in $PATH
28875 test -z "$as_dir" && as_dir=.
28876 for ac_exec_ext in '' $ac_executable_extensions; do
28877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28878 ac_cv_prog_XSLTPROC="$ac_prog"
28879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28888 XSLTPROC=$ac_cv_prog_XSLTPROC
28889 if test -n "$XSLTPROC"; then
28890 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28891 $as_echo "$XSLTPROC" >&6; }
28893 { $as_echo "$as_me:$LINENO: result: no" >&5
28894 $as_echo "no" >&6; }
28898 test -n "$XSLTPROC" && break
28901 for ac_prog in osx sgml2xml sx
28903 # Extract the first word of "$ac_prog", so it can be a program name with args.
28904 set dummy $ac_prog; ac_word=$2
28905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28906 $as_echo_n "checking for $ac_word... " >&6; }
28907 if test "${ac_cv_prog_OSX+set}" = set; then
28908 $as_echo_n "(cached) " >&6
28910 if test -n "$OSX"; then
28911 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28914 for as_dir in $PATH
28917 test -z "$as_dir" && as_dir=.
28918 for ac_exec_ext in '' $ac_executable_extensions; do
28919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28920 ac_cv_prog_OSX="$ac_prog"
28921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28930 OSX=$ac_cv_prog_OSX
28931 if test -n "$OSX"; then
28932 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28933 $as_echo "$OSX" >&6; }
28935 { $as_echo "$as_me:$LINENO: result: no" >&5
28936 $as_echo "no" >&6; }
28940 test -n "$OSX" && break
28946 # We have to run the thread test near the end so we have all our symbols
28947 # defined. Cross compiling throws a warning.
28949 if test "$enable_thread_safety" = yes; then
28950 if test "$PORTNAME" != "win32"
28952 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28953 $as_echo_n "checking thread safety of required library functions... " >&6; }
28957 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28958 LIBS="$LIBS $PTHREAD_LIBS"
28959 if test "$cross_compiling" = yes; then
28960 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28961 $as_echo "maybe" >&6; }
28962 { $as_echo "$as_me:$LINENO: WARNING:
28963 *** Skipping thread test program because of cross-compile build.
28964 *** Run the program in src/test/thread on the target machine.
28966 $as_echo "$as_me: WARNING:
28967 *** Skipping thread test program because of cross-compile build.
28968 *** Run the program in src/test/thread on the target machine.
28971 cat >conftest.$ac_ext <<_ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28977 #include "$srcdir/src/test/thread/thread_test.c"
28979 rm -f conftest$ac_exeext
28980 if { (ac_try="$ac_link"
28981 case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28986 $as_echo "$ac_try_echo") >&5
28987 (eval "$ac_link") 2>&5
28989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28991 { (case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28996 $as_echo "$ac_try_echo") >&5
28997 (eval "$ac_try") 2>&5
28999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29001 { $as_echo "$as_me:$LINENO: result: yes" >&5
29002 $as_echo "yes" >&6; }
29004 $as_echo "$as_me: program exited with status $ac_status" >&5
29005 $as_echo "$as_me: failed program was:" >&5
29006 sed 's/^/| /' conftest.$ac_ext >&5
29008 ( exit $ac_status )
29009 { $as_echo "$as_me:$LINENO: result: no" >&5
29010 $as_echo "no" >&6; }
29011 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29012 This platform is not thread-safe. Check the file 'config.log' or compile
29013 and run src/test/thread/thread_test for the exact reason.
29014 Use --disable-thread-safety to disable thread safety." >&5
29015 $as_echo "$as_me: error: thread test program failed
29016 This platform is not thread-safe. Check the file 'config.log' or compile
29017 and run src/test/thread/thread_test for the exact reason.
29018 Use --disable-thread-safety to disable thread safety." >&2;}
29019 { (exit 1); exit 1; }; }
29021 rm -rf conftest.dSYM
29022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29029 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29030 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29034 # If compiler will take -Wl,--as-needed (or various platform-specific
29035 # spellings thereof) then add that to LDFLAGS. This is much easier than
29036 # trying to filter LIBS to the minimum for each executable.
29037 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29038 # libreadline; therefore we postpone testing it until we know what library
29039 # dependencies readline has. The test code will try to link with $LIBS.
29040 if test "$with_readline" = yes; then
29041 link_test_func=readline
29043 link_test_func=exit
29046 if test "$PORTNAME" = "darwin"; then
29047 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29048 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29049 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29050 $as_echo_n "(cached) " >&6
29052 pgac_save_LDFLAGS=$LDFLAGS
29053 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29054 if test "$cross_compiling" = yes; then
29055 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29057 cat >conftest.$ac_ext <<_ACEOF
29060 cat confdefs.h >>conftest.$ac_ext
29061 cat >>conftest.$ac_ext <<_ACEOF
29062 /* end confdefs.h. */
29063 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29072 rm -f conftest$ac_exeext
29073 if { (ac_try="$ac_link"
29074 case "(($ac_try" in
29075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29076 *) ac_try_echo=$ac_try;;
29078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29079 $as_echo "$ac_try_echo") >&5
29080 (eval "$ac_link") 2>&5
29082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29084 { (case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29089 $as_echo "$ac_try_echo") >&5
29090 (eval "$ac_try") 2>&5
29092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29096 $as_echo "$as_me: program exited with status $ac_status" >&5
29097 $as_echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29100 ( exit $ac_status )
29101 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29103 rm -rf conftest.dSYM
29104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29108 LDFLAGS="$pgac_save_LDFLAGS"
29110 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29111 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29112 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29113 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29116 elif test "$PORTNAME" = "openbsd"; then
29117 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29118 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29119 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29120 $as_echo_n "(cached) " >&6
29122 pgac_save_LDFLAGS=$LDFLAGS
29123 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29124 if test "$cross_compiling" = yes; then
29125 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29142 rm -f conftest$ac_exeext
29143 if { (ac_try="$ac_link"
29144 case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29149 $as_echo "$ac_try_echo") >&5
29150 (eval "$ac_link") 2>&5
29152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29154 { (case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29159 $as_echo "$ac_try_echo") >&5
29160 (eval "$ac_try") 2>&5
29162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29166 $as_echo "$as_me: program exited with status $ac_status" >&5
29167 $as_echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ( exit $ac_status )
29171 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29173 rm -rf conftest.dSYM
29174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29178 LDFLAGS="$pgac_save_LDFLAGS"
29180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29181 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29182 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29183 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29187 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29188 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29189 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29190 $as_echo_n "(cached) " >&6
29192 pgac_save_LDFLAGS=$LDFLAGS
29193 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29194 if test "$cross_compiling" = yes; then
29195 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29197 cat >conftest.$ac_ext <<_ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29212 rm -f conftest$ac_exeext
29213 if { (ac_try="$ac_link"
29214 case "(($ac_try" in
29215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216 *) ac_try_echo=$ac_try;;
29218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29219 $as_echo "$ac_try_echo") >&5
29220 (eval "$ac_link") 2>&5
29222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29224 { (case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29229 $as_echo "$ac_try_echo") >&5
29230 (eval "$ac_try") 2>&5
29232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29236 $as_echo "$as_me: program exited with status $ac_status" >&5
29237 $as_echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29240 ( exit $ac_status )
29241 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29243 rm -rf conftest.dSYM
29244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29248 LDFLAGS="$pgac_save_LDFLAGS"
29250 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29251 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29252 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29253 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29259 # Begin output steps
29261 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29262 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29263 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29264 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29265 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29266 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29268 # Create compiler version string
29269 if test x"$GCC" = x"yes" ; then
29270 cc_string="GCC `${CC} --version | sed q`"
29271 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29272 cc_string=`${CC} -V 2>&1 | sed q`
29278 cat >>confdefs.h <<_ACEOF
29279 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29283 # Supply a numeric version string for use by 3rd party add-ons
29284 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29285 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29287 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29289 cat >>confdefs.h <<_ACEOF
29290 #define PG_VERSION_NUM $PG_VERSION_NUM
29295 # prepare build tree if outside source tree
29296 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29297 # Note 2: /bin/pwd might be better than shell's built-in at getting
29298 # a symlink-free name.
29299 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29303 if test "$no_create" != yes; then
29304 $as_echo_n "preparing build tree... " >&6
29305 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29306 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29307 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29308 $as_echo "$as_me: error: failed" >&2;}
29309 { (exit 1); exit 1; }; }
29310 { $as_echo "$as_me:$LINENO: result: done" >&5
29311 $as_echo "done" >&6; }
29317 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29320 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}"
29323 if test "$PORTNAME" = "win32"; then
29324 ac_config_commands="$ac_config_commands check_win32_symlinks"
29328 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29331 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29334 cat >confcache <<\_ACEOF
29335 # This file is a shell script that caches the results of configure
29336 # tests run on this system so they can be shared between configure
29337 # scripts and configure runs, see configure's option --config-cache.
29338 # It is not useful on other systems. If it contains results you don't
29339 # want to keep, you may remove or edit it.
29341 # config.status only pays attention to the cache file if you give it
29342 # the --recheck option to rerun configure.
29344 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29345 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29346 # following values.
29350 # The following way of writing the cache mishandles newlines in values,
29351 # but we know of no workaround that is simple, portable, and efficient.
29352 # So, we kill variables containing newlines.
29353 # Ultrix sh set writes to stderr and can't be redirected directly,
29354 # and sets the high bit in the cache file unless we assign to the vars.
29356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29357 eval ac_val=\$$ac_var
29361 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29362 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29365 _ | IFS | as_nl) ;; #(
29366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29367 *) $as_unset $ac_var ;;
29373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29374 *${as_nl}ac_space=\ *)
29375 # `set' does not quote correctly, so add quotes (double-quote
29376 # substitution turns \\\\ into \\, and sed turns \\ into \).
29379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29382 # `set' quotes correctly as required by POSIX, so do not add quotes.
29383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29397 if test -w "$cache_file"; then
29398 test "x$cache_file" != "x/dev/null" &&
29399 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29400 $as_echo "$as_me: updating cache $cache_file" >&6;}
29401 cat confcache >$cache_file
29403 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29404 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29410 # Let make expand exec_prefix.
29411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29413 DEFS=-DHAVE_CONFIG_H
29417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29418 # 1. Remove the extension, and $U if already installed.
29419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29420 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29422 # will be set to the directory where LIBOBJS objects are built.
29423 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29424 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29426 LIBOBJS=$ac_libobjs
29428 LTLIBOBJS=$ac_ltlibobjs
29433 : ${CONFIG_STATUS=./config.status}
29435 ac_clean_files_save=$ac_clean_files
29436 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29437 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29438 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29439 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29441 # Generated by $as_me.
29442 # Run this file to recreate the current configuration.
29443 # Compiler output produced by configure, useful for debugging
29444 # configure, is in config.log if it exists.
29447 ac_cs_recheck=false
29449 SHELL=\${CONFIG_SHELL-$SHELL}
29452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29453 ## --------------------- ##
29454 ## M4sh Initialization. ##
29455 ## --------------------- ##
29457 # Be more Bourne compatible
29458 DUALCASE=1; export DUALCASE # for MKS sh
29459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29463 # is contrary to our usage. Disable this feature.
29464 alias -g '${1+"$@"}'='"$@"'
29465 setopt NO_GLOB_SUBST
29467 case `(set -o) 2>/dev/null` in
29468 *posix*) set -o posix ;;
29477 # Avoid depending upon Character Ranges.
29478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29481 as_cr_digits='0123456789'
29482 as_cr_alnum=$as_cr_Letters$as_cr_digits
29487 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29488 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29491 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29492 as_echo='printf %s\n'
29493 as_echo_n='printf %s'
29495 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29496 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29497 as_echo_n='/usr/ucb/echo -n'
29499 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29500 as_echo_n_body='eval
29504 expr "X$arg" : "X\\(.*\\)$as_nl";
29505 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29507 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29509 export as_echo_n_body
29510 as_echo_n='sh -c $as_echo_n_body as_echo'
29512 export as_echo_body
29513 as_echo='sh -c $as_echo_body as_echo'
29516 # The user is always right.
29517 if test "${PATH_SEPARATOR+set}" != set; then
29519 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29520 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29525 # Support unset when possible.
29526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29534 # We need space, tab and new line, in precisely that order. Quoting is
29535 # there to prevent editors from complaining about space-tab.
29536 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29537 # splitting by setting IFS to empty value.)
29540 # Find who we are. Look in the path if we contain no directory separator.
29542 *[\\/]* ) as_myself=$0 ;;
29543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29544 for as_dir in $PATH
29547 test -z "$as_dir" && as_dir=.
29548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29554 # We did not find ourselves, most probably we were run as `sh COMMAND'
29555 # in which case we are not to be found in the path.
29556 if test "x$as_myself" = x; then
29559 if test ! -f "$as_myself"; then
29560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29561 { (exit 1); exit 1; }
29564 # Work around bugs in pre-3.0 UWIN ksh.
29565 for as_var in ENV MAIL MAILPATH
29566 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29578 # Required to use basename.
29579 if expr a : '\(a\)' >/dev/null 2>&1 &&
29580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29587 as_basename=basename
29593 # Name of the executable.
29594 as_me=`$as_basename -- "$0" ||
29595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29596 X"$0" : 'X\(//\)$' \| \
29597 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29599 sed '/^.*\/\([^/][^/]*\)\/*$/{
29618 as_lineno_1=$LINENO
29619 as_lineno_2=$LINENO
29620 test "x$as_lineno_1" != "x$as_lineno_2" &&
29621 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29623 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29624 # uniformly replaced by the line number. The first 'sed' inserts a
29625 # line-number line after each line using $LINENO; the second 'sed'
29626 # does the real work. The second script uses 'N' to pair each
29627 # line-number line with the line containing $LINENO, and appends
29628 # trailing '-' during substitution so that $LINENO is not a special
29629 # case at line end.
29630 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29631 # scripts with optimization help from Paolo Bonzini. Blame Lee
29632 # E. McMahon (1931-1989) for sed's syntax. :-)
29644 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29647 ' >$as_me.lineno &&
29648 chmod +x "$as_me.lineno" ||
29649 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29650 { (exit 1); exit 1; }; }
29652 # Don't try to exec as it changes $[0], causing all sort of problems
29653 # (the dirname of $[0] is not the place where we might find the
29654 # original and so on. Autoconf is especially sensitive to this).
29655 . "./$as_me.lineno"
29656 # Exit status is that of the last command.
29661 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29667 ECHO_C= ECHO_N= ECHO_T=
29668 case `echo -n x` in
29670 case `echo 'x\c'` in
29671 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29677 if expr a : '\(a\)' >/dev/null 2>&1 &&
29678 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29684 rm -f conf$$ conf$$.exe conf$$.file
29685 if test -d conf$$.dir; then
29686 rm -f conf$$.dir/conf$$.file
29689 mkdir conf$$.dir 2>/dev/null
29691 if (echo >conf$$.file) 2>/dev/null; then
29692 if ln -s conf$$.file conf$$ 2>/dev/null; then
29694 # ... but there are two gotchas:
29695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29697 # In both cases, we have to default to `cp -p'.
29698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29700 elif ln conf$$.file conf$$ 2>/dev/null; then
29708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29709 rmdir conf$$.dir 2>/dev/null
29711 if mkdir -p . 2>/dev/null; then
29714 test -d ./-p && rmdir ./-p
29718 if test -x / >/dev/null 2>&1; then
29719 as_test_x='test -x'
29721 if ls -dL / >/dev/null 2>&1; then
29728 if test -d "$1"; then
29734 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29735 ???[sx]*):;;*)false;;esac;fi
29739 as_executable_p=$as_test_x
29741 # Sed expression to map a string onto a valid CPP name.
29742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29744 # Sed expression to map a string onto a valid variable name.
29745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29750 # Save the log message, to keep $[0] and so on meaningful, and to
29751 # report actual input values of CONFIG_FILES etc. instead of their
29752 # values after options handling.
29754 This file was extended by PostgreSQL $as_me 9.1devel, which was
29755 generated by GNU Autoconf 2.63. Invocation command line was
29757 CONFIG_FILES = $CONFIG_FILES
29758 CONFIG_HEADERS = $CONFIG_HEADERS
29759 CONFIG_LINKS = $CONFIG_LINKS
29760 CONFIG_COMMANDS = $CONFIG_COMMANDS
29763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29768 case $ac_config_files in *"
29769 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29772 case $ac_config_headers in *"
29773 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29778 # Files that config.status was made for.
29779 config_files="$ac_config_files"
29780 config_headers="$ac_config_headers"
29781 config_links="$ac_config_links"
29782 config_commands="$ac_config_commands"
29786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29788 \`$as_me' instantiates files from templates according to the
29789 current configuration.
29791 Usage: $0 [OPTION]... [FILE]...
29793 -h, --help print this help, then exit
29794 -V, --version print version number and configuration settings, then exit
29795 -q, --quiet, --silent
29796 do not print progress messages
29797 -d, --debug don't remove temporary files
29798 --recheck update $as_me by reconfiguring in the same conditions
29799 --file=FILE[:TEMPLATE]
29800 instantiate the configuration file FILE
29801 --header=FILE[:TEMPLATE]
29802 instantiate the configuration header FILE
29804 Configuration files:
29807 Configuration headers:
29810 Configuration links:
29813 Configuration commands:
29816 Report bugs to <bug-autoconf@gnu.org>."
29819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29821 PostgreSQL config.status 9.1devel
29822 configured by $0, generated by GNU Autoconf 2.63,
29823 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29825 Copyright (C) 2008 Free Software Foundation, Inc.
29826 This config.status script is free software; the Free Software Foundation
29827 gives unlimited permission to copy, distribute and modify it."
29833 test -n "\$AWK" || AWK=awk
29836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29837 # The default lists apply if the user does not specify any file.
29843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29855 # Handling of the options.
29856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29859 $as_echo "$ac_cs_version"; exit ;;
29860 --debug | --debu | --deb | --de | --d | -d )
29862 --file | --fil | --fi | --f )
29865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29867 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29868 ac_need_defaults=false;;
29869 --header | --heade | --head | --hea )
29872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29874 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29875 ac_need_defaults=false;;
29877 # Conflict between --help and --header
29878 { $as_echo "$as_me: error: ambiguous option: $1
29879 Try \`$0 --help' for more information." >&2
29880 { (exit 1); exit 1; }; };;
29881 --help | --hel | -h )
29882 $as_echo "$ac_cs_usage"; exit ;;
29883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29887 # This is an error.
29888 -*) { $as_echo "$as_me: error: unrecognized option: $1
29889 Try \`$0 --help' for more information." >&2
29890 { (exit 1); exit 1; }; } ;;
29892 *) ac_config_targets="$ac_config_targets $1"
29893 ac_need_defaults=false ;;
29899 ac_configure_extra_args=
29901 if $ac_cs_silent; then
29903 ac_configure_extra_args="$ac_configure_extra_args --silent"
29907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29908 if \$ac_cs_recheck; then
29909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29912 CONFIG_SHELL='$SHELL'
29913 export CONFIG_SHELL
29918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29923 ## Running $as_me. ##
29929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29934 # Handling of arguments.
29935 for ac_config_target in $ac_config_targets
29937 case $ac_config_target in
29938 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29939 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29940 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29941 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29942 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29943 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29944 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
29945 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29946 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29947 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29948 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29949 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29950 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29952 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29953 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29954 { (exit 1); exit 1; }; };;
29959 # If the user did not use the arguments to specify the items to instantiate,
29960 # then the envvar interface is used. Set only those that are not.
29961 # We use the long form for the default assignment because of an extremely
29962 # bizarre bug on SunOS 4.1.3.
29963 if $ac_need_defaults; then
29964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29966 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29970 # Have a temporary directory for convenience. Make it in the build tree
29971 # simply because there is no reason against having it here, and in addition,
29972 # creating and moving files from /tmp can sometimes cause problems.
29973 # Hook for its removal unless debugging.
29974 # Note that there is a small window in which the directory will not be cleaned:
29975 # after its creation but before its name has been assigned to `$tmp'.
29979 trap 'exit_status=$?
29980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29982 trap '{ (exit 1); exit 1; }' 1 2 13 15
29984 # Create a (secure) tmp directory for tmp files.
29987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29988 test -n "$tmp" && test -d "$tmp"
29991 tmp=./conf$$-$RANDOM
29992 (umask 077 && mkdir "$tmp")
29995 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29996 { (exit 1); exit 1; }
29999 # Set up the scripts for CONFIG_FILES section.
30000 # No need to generate them if there are no CONFIG_FILES.
30001 # This happens for instance with `./config.status config.h'.
30002 if test -n "$CONFIG_FILES"; then
30006 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30007 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30010 ac_cs_awk_cr=$ac_cr
30013 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30018 echo "cat >conf$$subs.awk <<_ACEOF" &&
30019 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30021 } >conf$$subs.sh ||
30022 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30023 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30024 { (exit 1); exit 1; }; }
30025 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30027 for ac_last_try in false false false false false :; do
30028 . ./conf$$subs.sh ||
30029 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30030 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30031 { (exit 1); exit 1; }; }
30033 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30034 if test $ac_delim_n = $ac_delim_num; then
30036 elif $ac_last_try; then
30037 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30038 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30039 { (exit 1); exit 1; }; }
30041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30044 rm -f conf$$subs.sh
30046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30047 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30051 s/^/S["/; s/!.*/"]=/
30061 s/\(.\{148\}\).*/\1/
30063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30075 s/\(.\{148\}\).*/\1/
30077 s/["\\]/\\&/g; s/^/"/; s/$/"/
30081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30086 ' <conf$$subs.awk | sed '
30091 ' >>$CONFIG_STATUS || ac_write_fail=1
30092 rm -f conf$$subs.awk
30093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30095 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30096 for (key in S) S_is_set[key] = 1
30102 nfields = split(line, field, "@")
30104 len = length(field[1])
30105 for (i = 2; i < nfields; i++) {
30107 keylen = length(key)
30108 if (S_is_set[key]) {
30110 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30111 len += length(value) + length(field[++i])
30122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30124 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30127 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30128 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30129 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30130 { (exit 1); exit 1; }; }
30133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30135 # trailing colons and then remove the whole line if VPATH becomes empty
30136 # (actually we leave an empty line to preserve line numbers).
30137 if test "x$srcdir" = x.; then
30138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30139 s/:*\$(srcdir):*/:/
30140 s/:*\${srcdir}:*/:/
30142 s/^\([^=]*=[ ]*\):*/\1/
30148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30149 fi # test -n "$CONFIG_FILES"
30151 # Set up the scripts for CONFIG_HEADERS section.
30152 # No need to generate them if there are no CONFIG_HEADERS.
30153 # This happens for instance with `./config.status Makefile'.
30154 if test -n "$CONFIG_HEADERS"; then
30155 cat >"$tmp/defines.awk" <<\_ACAWK ||
30159 # Transform confdefs.h into an awk script `defines.awk', embedded as
30160 # here-document in config.status, that substitutes the proper values into
30161 # config.h.in to produce config.h.
30163 # Create a delimiter string that does not exist in confdefs.h, to ease
30164 # handling of long lines.
30166 for ac_last_try in false false :; do
30167 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30168 if test -z "$ac_t"; then
30170 elif $ac_last_try; then
30171 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30172 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30173 { (exit 1); exit 1; }; }
30175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30179 # For the awk script, D is an array of macro values keyed by name,
30180 # likewise P contains macro parameters if any. Preserve backslash
30181 # newline sequences.
30183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30185 s/.\{148\}/&'"$ac_delim"'/g
30188 s/^[ ]*#[ ]*define[ ][ ]*/ /
30195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30197 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30202 D["\1"]=" \3\\\\\\n"\\/p
30204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30209 s/.\{148\}/&'"$ac_delim"'/g
30214 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30217 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30219 ' <confdefs.h | sed '
30220 s/'"$ac_delim"'/"\\\
30221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30224 for (key in D) D_is_set[key] = 1
30227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30229 split(line, arg, " ")
30230 if (arg[1] == "#") {
30234 defundef = substr(arg[1], 2)
30237 split(mac1, mac2, "(") #)
30239 prefix = substr(line, 1, index(line, defundef) - 1)
30240 if (D_is_set[macro]) {
30241 # Preserve the white space surrounding the "#".
30242 print prefix "define", macro P[macro] D[macro]
30245 # Replace #undef with comments. This is necessary, for example,
30246 # in the case of _POSIX_SOURCE, which is predefined and required
30247 # on some systems where configure will not decide to define it.
30248 if (defundef == "undef") {
30249 print "/*", prefix defundef, macro, "*/"
30257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30258 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30259 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30260 { (exit 1); exit 1; }; }
30261 fi # test -n "$CONFIG_HEADERS"
30264 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30269 :[FHLC]) ac_mode=$ac_tag; continue;;
30271 case $ac_mode$ac_tag in
30273 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30274 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30275 { (exit 1); exit 1; }; };;
30276 :[FH]-) ac_tag=-:-;;
30277 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30294 -) ac_f="$tmp/stdin";;
30295 *) # Look for the file first in the build tree, then in the source tree
30296 # (if the path is not absolute). The absolute path cannot be DOS-style,
30297 # because $ac_f cannot contain `:'.
30301 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30303 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30304 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30305 { (exit 1); exit 1; }; };;
30307 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30308 ac_file_inputs="$ac_file_inputs '$ac_f'"
30311 # Let's still pretend it is `configure' which instantiates (i.e., don't
30312 # use $as_me), people would be surprised to read:
30313 # /* config.h. Generated by config.status. */
30314 configure_input='Generated from '`
30315 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30317 if test x"$ac_file" != x-; then
30318 configure_input="$ac_file. $configure_input"
30319 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30320 $as_echo "$as_me: creating $ac_file" >&6;}
30322 # Neutralize special characters interpreted by sed in replacement strings.
30323 case $configure_input in #(
30324 *\&* | *\|* | *\\* )
30325 ac_sed_conf_input=`$as_echo "$configure_input" |
30326 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30327 *) ac_sed_conf_input=$configure_input;;
30331 *:-:* | *:-) cat >"$tmp/stdin" \
30332 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30333 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30334 { (exit 1); exit 1; }; } ;;
30339 ac_dir=`$as_dirname -- "$ac_file" ||
30340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30341 X"$ac_file" : 'X\(//\)[^/]' \| \
30342 X"$ac_file" : 'X\(//\)$' \| \
30343 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30344 $as_echo X"$ac_file" |
30345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30349 /^X\(\/\/\)[^/].*/{
30364 -*) as_dir=./$as_dir;;
30366 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30371 *) as_qdir=$as_dir;;
30373 as_dirs="'$as_qdir' $as_dirs"
30374 as_dir=`$as_dirname -- "$as_dir" ||
30375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30376 X"$as_dir" : 'X\(//\)[^/]' \| \
30377 X"$as_dir" : 'X\(//\)$' \| \
30378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30379 $as_echo X"$as_dir" |
30380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30384 /^X\(\/\/\)[^/].*/{
30397 test -d "$as_dir" && break
30399 test -z "$as_dirs" || eval "mkdir $as_dirs"
30400 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30401 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30402 { (exit 1); exit 1; }; }; }
30406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30409 # A ".." for each directory in $ac_dir_suffix.
30410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30411 case $ac_top_builddir_sub in
30412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30416 ac_abs_top_builddir=$ac_pwd
30417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30418 # for backward compatibility:
30419 ac_top_builddir=$ac_top_build_prefix
30422 .) # We are building in place.
30424 ac_top_srcdir=$ac_top_builddir_sub
30425 ac_abs_top_srcdir=$ac_pwd ;;
30426 [\\/]* | ?:[\\/]* ) # Absolute name.
30427 ac_srcdir=$srcdir$ac_dir_suffix;
30428 ac_top_srcdir=$srcdir
30429 ac_abs_top_srcdir=$srcdir ;;
30430 *) # Relative name.
30431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30432 ac_top_srcdir=$ac_top_build_prefix$srcdir
30433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30444 ac_MKDIR_P=$MKDIR_P
30446 [\\/$]* | ?:[\\/]* ) ;;
30447 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30452 # If the template does not know about datarootdir, expand it.
30453 # FIXME: This hack should be removed a few years after 2.60.
30454 ac_datarootdir_hack=; ac_datarootdir_seen=
30467 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30468 *datarootdir*) ac_datarootdir_seen=yes;;
30469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30470 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30471 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30474 ac_datarootdir_hack='
30475 s&@datadir@&$datadir&g
30476 s&@docdir@&$docdir&g
30477 s&@infodir@&$infodir&g
30478 s&@localedir@&$localedir&g
30479 s&@mandir@&$mandir&g
30480 s&\\\${datarootdir}&$datarootdir&g' ;;
30484 # Neutralize VPATH when `$srcdir' = `.'.
30485 # Shell code in configure.ac might set extrasub.
30486 # FIXME: do we really want to maintain this feature?
30487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30488 ac_sed_extra="$ac_vpsub
30491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30494 s|@configure_input@|$ac_sed_conf_input|;t t
30495 s&@top_builddir@&$ac_top_builddir_sub&;t t
30496 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30497 s&@srcdir@&$ac_srcdir&;t t
30498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30499 s&@top_srcdir@&$ac_top_srcdir&;t t
30500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30501 s&@builddir@&$ac_builddir&;t t
30502 s&@abs_builddir@&$ac_abs_builddir&;t t
30503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30504 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30505 $ac_datarootdir_hack
30507 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30508 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30509 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30510 { (exit 1); exit 1; }; }
30512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30513 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30515 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30516 which seems to be undefined. Please make sure it is defined." >&5
30517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30518 which seems to be undefined. Please make sure it is defined." >&2;}
30522 -) cat "$tmp/out" && rm -f "$tmp/out";;
30523 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30525 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30526 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30527 { (exit 1); exit 1; }; }
30533 if test x"$ac_file" != x-; then
30535 $as_echo "/* $configure_input */" \
30536 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30537 } >"$tmp/config.h" \
30538 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30539 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30540 { (exit 1); exit 1; }; }
30541 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30542 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30543 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30546 mv "$tmp/config.h" "$ac_file" \
30547 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30548 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30549 { (exit 1); exit 1; }; }
30552 $as_echo "/* $configure_input */" \
30553 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30554 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30555 $as_echo "$as_me: error: could not create -" >&2;}
30556 { (exit 1); exit 1; }; }
30564 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30567 # Prefer the file from the source tree if names are identical.
30568 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30569 ac_source=$srcdir/$ac_source
30572 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30573 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30575 if test ! -r "$ac_source"; then
30576 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30577 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30578 { (exit 1); exit 1; }; }
30582 # Try a relative symlink, then a hard link, then a copy.
30584 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30585 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30587 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30588 ln "$ac_source" "$ac_file" 2>/dev/null ||
30589 cp -p "$ac_source" "$ac_file" ||
30590 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30591 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30592 { (exit 1); exit 1; }; }
30595 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30596 $as_echo "$as_me: executing $ac_file commands" >&6;}
30601 case $ac_file$ac_mode in
30602 "check_win32_symlinks":C)
30603 # Links sometimes fail undetected on Mingw -
30604 # so here we detect it and warn the user
30605 for FILE in $CONFIG_LINKS
30607 # test -e works for symlinks in the MinGW console
30608 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30609 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30612 "src/include/pg_config.h":H)
30613 # Update timestamp for pg_config.h (see Makefile.global)
30614 echo >src/include/stamp-h
30616 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30622 { (exit 0); exit 0; }
30624 chmod +x $CONFIG_STATUS
30625 ac_clean_files=$ac_clean_files_save
30627 test $ac_write_fail = 0 ||
30628 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30629 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30630 { (exit 1); exit 1; }; }
30633 # configure is writing to config.log, and then calls config.status.
30634 # config.status does its own redirection, appending to config.log.
30635 # Unfortunately, on DOS this fails, as config.log is still kept open
30636 # by configure, so config.status won't be able to write to it; its
30637 # output is simply discarded. So we exec the FD to /dev/null,
30638 # effectively closing config.log, so it can be properly (re)opened and
30639 # appended to by config.status. When coming back to configure, we
30640 # need to make the FD available again.
30641 if test "$no_create" != yes; then
30643 ac_config_status_args=
30644 test "$silent" = yes &&
30645 ac_config_status_args="$ac_config_status_args --quiet"
30647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30650 # would make configure fail if this is the last instruction.
30651 $ac_cs_success || { (exit 1); exit 1; }
30653 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30654 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30655 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}