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-2010, 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
674 python_additional_libs
793 program_transform_name
805 enable_option_checking
810 enable_integer_datetimes
840 with_libedit_preferred
851 ac_precious_vars='build_alias
865 # Initialize some variables set by options.
867 ac_init_version=false
868 ac_unrecognized_opts=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name=s,x,x,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999 { (exit 1); exit 1; }; }
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1231 eval with_$ac_useropt=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286 { (exit 1); exit 1; }; } ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of PostgreSQL 9.1devel:";;
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-integer-datetimes
1489 disable 64-bit integer date/time support
1490 --enable-nls[=LANGUAGES]
1491 enable Native Language Support
1492 --disable-shared do not build shared libraries
1493 --disable-rpath do not embed shared library search path in
1495 --disable-spinlocks do not use spinlocks
1496 --enable-debug build with debugging symbols (-g)
1497 --enable-profiling build with profiling enabled
1498 --enable-coverage build with coverage testing instrumentation
1499 --enable-dtrace build with DTrace support
1500 --enable-depend turn on automatic dependency tracking
1501 --enable-cassert enable assertion checks (for debugging)
1502 --disable-thread-safety disable thread-safety in client libraries
1503 --disable-largefile omit support for large files
1504 --disable-float4-byval disable float4 passed by value
1505 --disable-float8-byval disable float8 passed by value
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-template=NAME override operating system template
1511 --with-includes=DIRS look for additional header files in DIRS
1512 --with-libraries=DIRS look for additional libraries in DIRS
1513 --with-libs=DIRS alternative spelling of --with-libraries
1514 --with-pgport=PORTNUM set default port number [5432]
1515 --with-blocksize=BLOCKSIZE
1516 set table block size in kB [8]
1517 --with-segsize=SEGSIZE set table segment size in GB [1]
1518 --with-wal-blocksize=BLOCKSIZE
1519 set WAL block size in kB [8]
1520 --with-wal-segsize=SEGSIZE
1521 set WAL segment size in MB [16]
1522 --with-CC=CMD set compiler (deprecated)
1523 --with-tcl build Tcl modules (PL/Tcl)
1524 --with-tclconfig=DIR tclConfig.sh is in DIR
1525 --with-perl build Perl modules (PL/Perl)
1526 --with-python build Python modules (PL/Python)
1527 --with-gssapi build with GSSAPI support
1528 --with-krb5 build with Kerberos 5 support
1529 --with-krb-srvnam=NAME default service principal name in Kerberos
1531 --with-pam build with PAM support
1532 --with-ldap build with LDAP support
1533 --with-bonjour build with Bonjour support
1534 --with-openssl build with OpenSSL support
1535 --without-readline do not use GNU Readline nor BSD Libedit for editing
1536 --with-libedit-preferred
1537 prefer BSD Libedit over GNU Readline
1538 --with-ossp-uuid use OSSP UUID library when building
1540 --with-libxml build with XML support
1541 --with-libxslt use XSLT support when building contrib/xml2
1542 --with-system-tzdata=DIR
1543 use system time zone data in DIR
1544 --without-zlib do not use Zlib
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 LDFLAGS_EX extra linker flags for linking executables only
1557 LDFLAGS_SL extra linker flags for linking shared libraries only
1559 location of DocBook stylesheets
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 PostgreSQL configure 9.1devel
1628 generated by GNU Autoconf 2.63
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1643 It was created by PostgreSQL $as_me 9.1devel, which was
1644 generated by GNU Autoconf 2.63. Invocation command line was
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1665 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1666 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1669 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1670 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1671 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 $as_echo "PATH: $as_dir"
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_must_keep_next=false
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1715 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 -* ) ac_must_keep_next=true ;;
1736 ac_configure_args="$ac_configure_args '$ac_arg'"
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Save into config.log some information that might help in debugging.
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1760 # The following way of writing the cache mishandles newlines in values,
1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763 eval ac_val=\$$ac_var
1767 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1771 _ | IFS | as_nl) ;; #(
1772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773 *) $as_unset $ac_var ;;
1778 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1798 for ac_var in $ac_subst_vars
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 $as_echo "$ac_var='\''$ac_val'\''"
1808 if test -n "$ac_subst_files"; then
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1815 for ac_var in $ac_subst_files
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 $as_echo "$ac_var='\''$ac_val'\''"
1826 if test -s confdefs.h; then
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 # Predefined preprocessor variables.
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886 ac_site_file1=$prefix/share/config.site
1887 ac_site_file2=$prefix/etc/config.site
1889 ac_site_file1=$ac_default_prefix/share/config.site
1890 ac_site_file2=$ac_default_prefix/etc/config.site
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894 test "x$ac_site_file" = xNONE && continue
1895 if test -r "$ac_site_file"; then
1896 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920 # Check that the precious variables saved in the cache have kept the same
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 # differences in whitespace do not lead to failure.
1941 ac_old_val_w=`echo x $ac_old_val`
1942 ac_new_val_w=`echo x $ac_new_val`
1943 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946 ac_cache_corrupted=:
1948 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950 eval $ac_var=\$ac_old_val
1952 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1953 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1954 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1961 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 if $ac_cache_corrupted; then
1971 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977 { (exit 1); exit 1; }; }
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 for ac_dir in config "$srcdir"/config; do
2017 if test -f "$ac_dir/install-sh"; then
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2021 elif test -f "$ac_dir/install.sh"; then
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2025 elif test -f "$ac_dir/shtool"; then
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2031 if test -z "$ac_aux_dir"; then
2032 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047 configure_args=$ac_configure_args
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2074 ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084 { (exit 1); exit 1; }; }
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093 { (exit 1); exit 1; }; };;
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 $as_echo_n "(cached) " >&6
2114 if test "x$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120 { (exit 1); exit 1; }; }
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130 { (exit 1); exit 1; }; };;
2133 ac_save_IFS=$IFS; IFS='-'
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156 withval=$with_template;
2159 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166 { (exit 1); exit 1; }; }
2171 list) echo; ls "$srcdir/src/template"; exit;;
2172 *) if test -f "$srcdir/src/template/$with_template" ; then
2175 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177 { (exit 1); exit 1; }; }
2186 # --with-template not given
2189 aix*) template=aix ;;
2190 bsdi*) template=bsdi ;;
2191 cygwin*) template=cygwin ;;
2192 darwin*) template=darwin ;;
2193 dgux*) template=dgux ;;
2194 freebsd*) template=freebsd ;;
2195 hpux*) template=hpux ;;
2196 irix*) template=irix ;;
2197 linux*|gnu*|k*bsd*-gnu)
2199 mingw*) template=win32 ;;
2200 netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202 openbsd*) template=openbsd ;;
2203 osf*) template=osf ;;
2204 sco*) template=sco ;;
2205 solaris*) template=solaris ;;
2206 sunos*) template=sunos4 ;;
2208 case $host_vendor in
2209 univel) template=univel ;;
2211 sysv4*) template=svr4 ;;
2212 sysv5*) template=unixware ;;
2213 ultrix*) template=ultrix4 ;;
2216 if test x"$template" = x"" ; then
2217 { { $as_echo "$as_me:$LINENO: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this. Include the above 'checking host system type...'
2226 *******************************************************************
2228 $as_echo "$as_me: error:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration, look into the src/template directory
2232 for a similar platform and use the '--with-template=' option.
2234 Please also contact <pgsql-bugs@postgresql.org> to see about
2235 rectifying this. Include the above 'checking host system type...'
2237 *******************************************************************
2239 { (exit 1); exit 1; }; }
2247 { $as_echo "$as_me:$LINENO: result: $template" >&5
2248 $as_echo "$template" >&6; }
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set). This can be overridden by the template file
2255 # when it's executed.
2262 ## Command line options
2266 # Add non-standard directories to the include path
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273 withval=$with_includes;
2276 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2277 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2278 { (exit 1); exit 1; }; }
2281 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283 { (exit 1); exit 1; }; }
2296 # Add non-standard directories to the library search path
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303 withval=$with_libraries;
2306 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2307 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313 { (exit 1); exit 1; }; }
2316 LIBRARY_DIRS=$withval
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2332 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2333 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2334 { (exit 1); exit 1; }; }
2337 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339 { (exit 1); exit 1; }; }
2342 LIBRARY_DIRS=$withval
2352 # 64-bit integer date/time storage: enabled by default.
2354 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2355 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360 enableval=$enable_integer_datetimes;
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2373 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2374 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2375 { (exit 1); exit 1; }; }
2380 enable_integer_datetimes=yes
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2389 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2397 $as_echo_n "checking whether NLS is wanted... " >&6; }
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402 enableval=$enable_nls;
2412 WANTED_LANGUAGES=$enableval
2422 if test "$enable_nls" = yes; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2430 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2436 # Default port number (--with-pgport), default 5432
2438 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2439 $as_echo_n "checking for default port number... " >&6; }
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445 withval=$with_pgport;
2448 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2449 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2450 { (exit 1); exit 1; }; }
2453 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455 { (exit 1); exit 1; }; }
2458 default_port=$withval
2467 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2483 # Option to disable shared libraries
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489 enableval=$enable_shared;
2498 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2499 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2500 { (exit 1); exit 1; }; }
2513 # '-rpath'-like feature can be disabled
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519 enableval=$enable_rpath;
2528 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2529 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2530 { (exit 1); exit 1; }; }
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549 enableval=$enable_spinlocks;
2558 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2559 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2560 { (exit 1); exit 1; }; }
2565 enable_spinlocks=yes
2572 # --enable-debug adds -g to compiler flags
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578 enableval=$enable_debug;
2587 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2588 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2589 { (exit 1); exit 1; }; }
2602 # --enable-profiling enables gcc profiling
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608 enableval=$enable_profiling;
2617 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2618 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2619 { (exit 1); exit 1; }; }
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638 enableval=$enable_coverage;
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$GCOV"; then
2651 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_GCOV="$ac_prog"
2661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2675 { $as_echo "$as_me:$LINENO: result: no" >&5
2676 $as_echo "no" >&6; }
2680 test -n "$GCOV" && break
2683 if test -z "$GCOV"; then
2684 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2685 $as_echo "$as_me: error: gcov not found" >&2;}
2686 { (exit 1); exit 1; }; }
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$LCOV"; then
2698 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_LCOV="$ac_prog"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$LCOV" && break
2730 if test -z "$LCOV"; then
2731 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2732 $as_echo "$as_me: error: lcov not found" >&2;}
2733 { (exit 1); exit 1; }; }
2735 for ac_prog in genhtml
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$GENHTML"; then
2745 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_GENHTML="$ac_prog"
2755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2769 { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2774 test -n "$GENHTML" && break
2777 if test -z "$GENHTML"; then
2778 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2779 $as_echo "$as_me: error: genhtml not found" >&2;}
2780 { (exit 1); exit 1; }; }
2787 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2788 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2789 { (exit 1); exit 1; }; }
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808 enableval=$enable_dtrace;
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2816 for ac_prog in dtrace
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$DTRACE"; then
2826 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_DTRACE="$ac_prog"
2836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$DTRACE" && break
2858 if test -z "$DTRACE"; then
2859 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2860 $as_echo "$as_me: error: dtrace not found" >&2;}
2861 { (exit 1); exit 1; }; }
2869 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2870 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2871 { (exit 1); exit 1; }; }
2886 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2887 $as_echo_n "checking for block size... " >&6; }
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893 withval=$with_blocksize;
2896 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2897 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2898 { (exit 1); exit 1; }; }
2901 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903 { (exit 1); exit 1; }; }
2915 case ${blocksize} in
2922 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2923 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2924 { (exit 1); exit 1; }; }
2926 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2927 $as_echo "${blocksize}kB" >&6; }
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2936 # Relation segment size
2938 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2939 $as_echo_n "checking for segment size... " >&6; }
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945 withval=$with_segsize;
2948 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2950 { (exit 1); exit 1; }; }
2953 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955 { (exit 1); exit 1; }; }
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2972 $as_echo "${segsize}GB" >&6; }
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2983 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2984 $as_echo_n "checking for WAL block size... " >&6; }
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990 withval=$with_wal_blocksize;
2993 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2994 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2995 { (exit 1); exit 1; }; }
2998 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000 { (exit 1); exit 1; }; }
3003 wal_blocksize=$withval
3012 case ${wal_blocksize} in
3013 1) XLOG_BLCKSZ=1024;;
3014 2) XLOG_BLCKSZ=2048;;
3015 4) XLOG_BLCKSZ=4096;;
3016 8) XLOG_BLCKSZ=8192;;
3017 16) XLOG_BLCKSZ=16384;;
3018 32) XLOG_BLCKSZ=32768;;
3019 64) XLOG_BLCKSZ=65536;;
3020 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3021 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3022 { (exit 1); exit 1; }; }
3024 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3025 $as_echo "${wal_blocksize}kB" >&6; }
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3036 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3037 $as_echo_n "checking for WAL segment size... " >&6; }
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043 withval=$with_wal_segsize;
3046 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3047 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3048 { (exit 1); exit 1; }; }
3051 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053 { (exit 1); exit 1; }; }
3056 wal_segsize=$withval
3065 case ${wal_segsize} in
3073 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3074 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3075 { (exit 1); exit 1; }; }
3077 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3078 $as_echo "${wal_segsize}MB" >&6; }
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3101 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3102 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3103 { (exit 1); exit 1; }; }
3106 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108 { (exit 1); exit 1; }; }
3120 aix) pgac_cc_list="gcc xlc";;
3121 irix) pgac_cc_list="cc";; # no gcc
3122 *) pgac_cc_list="gcc cc";;
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in $pgac_cc_list
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$CC" && break
3173 if test -z "$CC"; then
3175 for ac_prog in $pgac_cc_list
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3214 test -n "$ac_ct_CC" && break
3217 if test "x$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }; }
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3243 { (ac_try="$ac_compiler --version >&5"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compiler --version >&5") 2>&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compiler -v >&5") 2>&5
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compiler -V >&5") 2>&5
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305 for ac_file in $ac_files
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 if { (ac_try="$ac_link_default"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_link_default") 2>&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373 { (exit 77); exit 77; }; }; }
3376 ac_exeext=$ac_cv_exeext
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_try") 2>&5
3394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 if test "$cross_compiling" = maybe; then
3401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }; }
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link") 2>&5
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }; }
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_compile") 2>&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; then
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }; }
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3738 if test "$GCC" = yes; then
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 ac_cv_prog_cc_c89=no
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3775 s = g (p, va_arg (v,int));
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 rm -f conftest.$ac_ext
3846 case "x$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own. We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3881 #ifndef __INTEL_COMPILER
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && {
3950 test -z "$ac_c_werror_flag" ||
3951 test ! -s conftest.err
3952 } && test -s conftest.$ac_objext; then
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 . "$srcdir/src/template/$template" || exit
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else: If the template file set something, that is used.
3975 # else: If coverage was enabled, don't set anything.
3976 # else: If the compiler is GCC, then we use -O2.
3977 # else: If the compiler is something else, then we use -O, unless debugging.
3979 if test "$ac_env_CFLAGS_set" = set; then
3980 CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982 : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984 : # no optimization by default
3985 elif test "$GCC" = yes; then
3988 # if the user selected debug mode, don't use -O
3989 if test "$enable_debug" != yes; then
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own. Also check other compiler-specific flags here.
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001 # These work in some but not all gcc versions
4002 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4004 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4005 $as_echo_n "(cached) " >&6
4007 pgac_save_CFLAGS=$CFLAGS
4008 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032 (eval "$ac_compile") 2>conftest.er1
4034 grep -v '^ *+' conftest.er1 >conftest.err
4036 cat conftest.err >&5
4037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && {
4039 test -z "$ac_c_werror_flag" ||
4040 test ! -s conftest.err
4041 } && test -s conftest.$ac_objext; then
4042 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 CFLAGS="$pgac_save_CFLAGS"
4053 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4054 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4055 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4056 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4059 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4060 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4061 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4062 $as_echo_n "(cached) " >&6
4064 pgac_save_CFLAGS=$CFLAGS
4065 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 pgac_cv_prog_cc_cflags__Wendif_labels=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 CFLAGS="$pgac_save_CFLAGS"
4110 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4111 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4112 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4113 CFLAGS="$CFLAGS -Wendif-labels"
4116 # Disable strict-aliasing rules; needed for gcc 3.3+
4117 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4118 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4119 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4120 $as_echo_n "(cached) " >&6
4122 pgac_save_CFLAGS=$CFLAGS
4123 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } && {
4154 test -z "$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 } && test -s conftest.$ac_objext; then
4157 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 CFLAGS="$pgac_save_CFLAGS"
4168 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4169 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4170 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4171 CFLAGS="$CFLAGS -fno-strict-aliasing"
4174 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4175 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4176 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4177 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4178 $as_echo_n "(cached) " >&6
4180 pgac_save_CFLAGS=$CFLAGS
4181 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4204 $as_echo "$ac_try_echo") >&5
4205 (eval "$ac_compile") 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } && {
4212 test -z "$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4214 } && test -s conftest.$ac_objext; then
4215 pgac_cv_prog_cc_cflags__fwrapv=yes
4217 $as_echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 pgac_cv_prog_cc_cflags__fwrapv=no
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 CFLAGS="$pgac_save_CFLAGS"
4226 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4227 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4228 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4229 CFLAGS="$CFLAGS -fwrapv"
4232 elif test "$ICC" = yes; then
4233 # Intel's compiler has a bug/misoptimization in checking for
4234 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4235 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4236 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4237 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4238 $as_echo_n "(cached) " >&6
4240 pgac_save_CFLAGS=$CFLAGS
4241 CFLAGS="$pgac_save_CFLAGS -mp1"
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4267 grep -v '^ *+' conftest.er1 >conftest.err
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4275 pgac_cv_prog_cc_cflags__mp1=yes
4277 $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 pgac_cv_prog_cc_cflags__mp1=no
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 CFLAGS="$pgac_save_CFLAGS"
4286 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4287 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4288 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4289 CFLAGS="$CFLAGS -mp1"
4292 # Make sure strict aliasing is off (though this is said to be the default)
4293 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4294 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4295 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4298 pgac_save_CFLAGS=$CFLAGS
4299 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4322 $as_echo "$ac_try_echo") >&5
4323 (eval "$ac_compile") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && {
4330 test -z "$ac_c_werror_flag" ||
4331 test ! -s conftest.err
4332 } && test -s conftest.$ac_objext; then
4333 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4335 $as_echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 CFLAGS="$pgac_save_CFLAGS"
4344 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4345 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4346 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4347 CFLAGS="$CFLAGS -fno-strict-aliasing"
4350 elif test "$PORTNAME" = "aix"; then
4351 # AIX's xlc has to have strict aliasing turned off too
4352 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4353 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4354 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4357 pgac_save_CFLAGS=$CFLAGS
4358 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4374 rm -f conftest.$ac_objext
4375 if { (ac_try="$ac_compile"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381 $as_echo "$ac_try_echo") >&5
4382 (eval "$ac_compile") 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && {
4389 test -z "$ac_c_werror_flag" ||
4390 test ! -s conftest.err
4391 } && test -s conftest.$ac_objext; then
4392 pgac_cv_prog_cc_cflags__qnoansialias=yes
4394 $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4397 pgac_cv_prog_cc_cflags__qnoansialias=no
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 CFLAGS="$pgac_save_CFLAGS"
4403 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4404 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4405 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4406 CFLAGS="$CFLAGS -qnoansialias"
4411 # supply -g if --enable-debug
4412 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4416 # enable code coverage if --enable-coverage
4417 if test "$enable_coverage" = yes; then
4418 if test "$GCC" = yes; then
4419 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4421 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4422 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4423 { (exit 1); exit 1; }; }
4427 # enable profiling if --enable-profiling
4428 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4429 if test "$GCC" = yes; then
4431 cat >>confdefs.h <<\_ACEOF
4432 #define PROFILE_PID_DIR 1
4435 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4437 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4438 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4439 { (exit 1); exit 1; }; }
4443 # We already have this in Makefile.win32, but configure needs it too
4444 if test "$PORTNAME" = "win32"; then
4445 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4448 # Check if the compiler still works with the template settings
4449 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4450 $as_echo_n "checking whether the C compiler still works... " >&6; }
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (ac_try="$ac_link"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474 (eval "$ac_link") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } && {
4481 test -z "$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 } && test -s conftest$ac_exeext && {
4484 test "$cross_compiling" = yes ||
4485 $as_test_x conftest$ac_exeext
4487 { $as_echo "$as_me:$LINENO: result: yes" >&5
4488 $as_echo "yes" >&6; }
4490 $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 { $as_echo "$as_me:$LINENO: result: no" >&5
4494 $as_echo "no" >&6; }
4495 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4496 $as_echo "$as_me: error: cannot proceed" >&2;}
4497 { (exit 1); exit 1; }; }
4500 rm -rf conftest.dSYM
4501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4502 conftest$ac_exeext conftest.$ac_ext
4504 # Defend against gcc -ffast-math
4505 if test "$GCC" = yes; then
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4516 #ifdef __FAST_MATH__
4523 rm -f conftest.$ac_objext
4524 if { (ac_try="$ac_compile"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest.$ac_objext; then
4543 $as_echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4547 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4548 { (exit 1); exit 1; }; }
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4560 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4561 # On Suns, sometimes $CPP names a directory.
4562 if test -n "$CPP" && test -d "$CPP"; then
4565 if test -z "$CPP"; then
4566 if test "${ac_cv_prog_CPP+set}" = set; then
4567 $as_echo_n "(cached) " >&6
4569 # Double quotes because CPP needs to be expanded
4570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4573 for ac_c_preproc_warn_flag in '' yes
4575 # Use a header file that comes with gcc, so configuring glibc
4576 # with a fresh cross-compiler works.
4577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 # <limits.h> exists even on freestanding compilers.
4579 # On the NeXT, cc -E runs the code through the compiler's parser,
4580 # not just through cpp. "Syntax error" is here to catch this case.
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4588 # include <limits.h>
4590 # include <assert.h>
4594 if { (ac_try="$ac_cpp conftest.$ac_ext"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } >/dev/null && {
4608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4613 $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 # Broken: fails on valid input.
4620 rm -f conftest.err conftest.$ac_ext
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 #include <ac_nonexistent.h>
4632 if { (ac_try="$ac_cpp conftest.$ac_ext"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4638 $as_echo "$ac_try_echo") >&5
4639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } >/dev/null && {
4646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4649 # Broken: success on invalid input.
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 # Passes both tests.
4660 rm -f conftest.err conftest.$ac_ext
4663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4664 rm -f conftest.err conftest.$ac_ext
4665 if $ac_preproc_ok; then
4677 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4678 $as_echo "$CPP" >&6; }
4680 for ac_c_preproc_warn_flag in '' yes
4682 # Use a header file that comes with gcc, so configuring glibc
4683 # with a fresh cross-compiler works.
4684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4685 # <limits.h> exists even on freestanding compilers.
4686 # On the NeXT, cc -E runs the code through the compiler's parser,
4687 # not just through cpp. "Syntax error" is here to catch this case.
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4695 # include <limits.h>
4697 # include <assert.h>
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4707 $as_echo "$ac_try_echo") >&5
4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null && {
4715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4720 $as_echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 # Broken: fails on valid input.
4727 rm -f conftest.err conftest.$ac_ext
4729 # OK, works on sane cases. Now check whether nonexistent headers
4730 # can be detected and how.
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 #include <ac_nonexistent.h>
4739 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4756 # Broken: success on invalid input.
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 # Passes both tests.
4767 rm -f conftest.err conftest.$ac_ext
4770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4771 rm -f conftest.err conftest.$ac_ext
4772 if $ac_preproc_ok; then
4775 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4778 See \`config.log' for more details." >&5
4779 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4780 See \`config.log' for more details." >&2;}
4781 { (exit 1); exit 1; }; }; }
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 # Set up TAS assembly code if needed; the template file has now had its
4795 # chance to request this.
4797 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4800 if test "$need_tas" = yes ; then
4809 # Automatic dependency tracking
4813 # Check whether --enable-depend was given.
4814 if test "${enable_depend+set}" = set; then
4815 enableval=$enable_depend;
4824 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4825 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4826 { (exit 1); exit 1; }; }
4840 # Enable assert checks
4844 # Check whether --enable-cassert was given.
4845 if test "${enable_cassert+set}" = set; then
4846 enableval=$enable_cassert;
4850 cat >>confdefs.h <<\_ACEOF
4851 #define USE_ASSERT_CHECKING 1
4859 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4860 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4861 { (exit 1); exit 1; }; }
4874 # Include directories
4877 IFS="${IFS}${PATH_SEPARATOR}"
4878 # SRCH_INC comes from the template file
4879 for dir in $with_includes $SRCH_INC; do
4880 if test -d "$dir"; then
4881 INCLUDES="$INCLUDES -I$dir"
4883 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4884 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4892 # Library directories
4895 IFS="${IFS}${PATH_SEPARATOR}"
4896 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4897 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4898 if test -d "$dir"; then
4899 LIBDIRS="$LIBDIRS -L$dir"
4901 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4902 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4908 # Enable thread-safe client libraries
4910 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4911 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4914 # Check whether --enable-thread-safety was given.
4915 if test "${enable_thread_safety+set}" = set; then
4916 enableval=$enable_thread_safety;
4925 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4926 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4927 { (exit 1); exit 1; }; }
4932 enable_thread_safety=yes
4937 if test "$enable_thread_safety" = yes; then
4939 cat >>confdefs.h <<\_ACEOF
4940 #define ENABLE_THREAD_SAFETY 1
4944 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4945 $as_echo "$enable_thread_safety" >&6; }
4949 # Optionally build Tcl modules (PL/Tcl)
4951 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4952 $as_echo_n "checking whether to build with Tcl... " >&6; }
4956 # Check whether --with-tcl was given.
4957 if test "${with_tcl+set}" = set; then
4967 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4968 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4969 { (exit 1); exit 1; }; }
4979 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4980 $as_echo "$with_tcl" >&6; }
4983 # We see if the path to the Tcl/Tk configuration scripts is specified.
4984 # This will override the use of tclsh to find the paths to search.
4989 # Check whether --with-tclconfig was given.
4990 if test "${with_tclconfig+set}" = set; then
4991 withval=$with_tclconfig;
4994 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4995 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4996 { (exit 1); exit 1; }; }
4999 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5000 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5001 { (exit 1); exit 1; }; }
5013 # Optionally build Perl modules (PL/Perl)
5015 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5016 $as_echo_n "checking whether to build Perl modules... " >&6; }
5020 # Check whether --with-perl was given.
5021 if test "${with_perl+set}" = set; then
5031 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5032 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5033 { (exit 1); exit 1; }; }
5043 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5044 $as_echo "$with_perl" >&6; }
5048 # Optionally build Python modules (PL/Python)
5050 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5051 $as_echo_n "checking whether to build Python modules... " >&6; }
5055 # Check whether --with-python was given.
5056 if test "${with_python+set}" = set; then
5057 withval=$with_python;
5066 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5067 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5068 { (exit 1); exit 1; }; }
5078 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5079 $as_echo "$with_python" >&6; }
5085 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5086 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5090 # Check whether --with-gssapi was given.
5091 if test "${with_gssapi+set}" = set; then
5092 withval=$with_gssapi;
5097 cat >>confdefs.h <<\_ACEOF
5098 #define ENABLE_GSS 1
5101 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5108 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5109 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5110 { (exit 1); exit 1; }; }
5120 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5121 $as_echo "$with_gssapi" >&6; }
5127 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5128 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5132 # Check whether --with-krb5 was given.
5133 if test "${with_krb5+set}" = set; then
5139 cat >>confdefs.h <<\_ACEOF
5143 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5150 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5151 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5152 { (exit 1); exit 1; }; }
5162 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5163 $as_echo "$with_krb5" >&6; }
5171 # Kerberos configuration parameters
5176 # Check whether --with-krb-srvnam was given.
5177 if test "${with_krb_srvnam+set}" = set; then
5178 withval=$with_krb_srvnam;
5181 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5182 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5183 { (exit 1); exit 1; }; }
5186 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5187 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5188 { (exit 1); exit 1; }; }
5196 with_krb_srvnam="postgres"
5201 cat >>confdefs.h <<_ACEOF
5202 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5210 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5211 $as_echo_n "checking whether to build with PAM support... " >&6; }
5215 # Check whether --with-pam was given.
5216 if test "${with_pam+set}" = set; then
5221 cat >>confdefs.h <<\_ACEOF
5230 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5231 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5232 { (exit 1); exit 1; }; }
5242 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5243 $as_echo "$with_pam" >&6; }
5250 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5251 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5255 # Check whether --with-ldap was given.
5256 if test "${with_ldap+set}" = set; then
5261 cat >>confdefs.h <<\_ACEOF
5270 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5271 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5272 { (exit 1); exit 1; }; }
5282 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5283 $as_echo "$with_ldap" >&6; }
5290 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5291 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5295 # Check whether --with-bonjour was given.
5296 if test "${with_bonjour+set}" = set; then
5297 withval=$with_bonjour;
5301 cat >>confdefs.h <<\_ACEOF
5302 #define USE_BONJOUR 1
5310 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5311 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5312 { (exit 1); exit 1; }; }
5322 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5323 $as_echo "$with_bonjour" >&6; }
5330 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5331 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5335 # Check whether --with-openssl was given.
5336 if test "${with_openssl+set}" = set; then
5337 withval=$with_openssl;
5341 cat >>confdefs.h <<\_ACEOF
5350 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5351 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5352 { (exit 1); exit 1; }; }
5362 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5363 $as_echo "$with_openssl" >&6; }
5373 # Check whether --with-readline was given.
5374 if test "${with_readline+set}" = set; then
5375 withval=$with_readline;
5384 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5385 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5386 { (exit 1); exit 1; }; }
5396 # readline on MinGW has problems with backslashes in psql and other bugs.
5397 # This is particularly a problem with non-US code pages.
5398 # Therefore disable its use until we understand the cause. 2004-07-20
5399 if test "$PORTNAME" = "win32"; then
5400 if test "$with_readline" = yes; then
5401 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5402 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5414 # Check whether --with-libedit-preferred was given.
5415 if test "${with_libedit_preferred+set}" = set; then
5416 withval=$with_libedit_preferred;
5425 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5426 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5427 { (exit 1); exit 1; }; }
5432 with_libedit_preferred=no
5445 # Check whether --with-ossp-uuid was given.
5446 if test "${with_ossp_uuid+set}" = set; then
5447 withval=$with_ossp_uuid;
5456 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5457 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5458 { (exit 1); exit 1; }; }
5477 # Check whether --with-libxml was given.
5478 if test "${with_libxml+set}" = set; then
5479 withval=$with_libxml;
5483 cat >>confdefs.h <<\_ACEOF
5484 #define USE_LIBXML 1
5492 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5493 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5494 { (exit 1); exit 1; }; }
5505 if test "$with_libxml" = yes ; then
5506 for ac_prog in xml2-config
5508 # Extract the first word of "$ac_prog", so it can be a program name with args.
5509 set dummy $ac_prog; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5515 if test -n "$XML2_CONFIG"; then
5516 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_prog_XML2_CONFIG="$ac_prog"
5526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5536 if test -n "$XML2_CONFIG"; then
5537 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5538 $as_echo "$XML2_CONFIG" >&6; }
5540 { $as_echo "$as_me:$LINENO: result: no" >&5
5541 $as_echo "no" >&6; }
5545 test -n "$XML2_CONFIG" && break
5548 if test -n "$XML2_CONFIG"; then
5549 for pgac_option in `$XML2_CONFIG --cflags`; do
5550 case $pgac_option in
5551 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5554 for pgac_option in `$XML2_CONFIG --libs`; do
5555 case $pgac_option in
5556 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5570 # Check whether --with-libxslt was given.
5571 if test "${with_libxslt+set}" = set; then
5572 withval=$with_libxslt;
5576 cat >>confdefs.h <<\_ACEOF
5577 #define USE_LIBXSLT 1
5585 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5586 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5587 { (exit 1); exit 1; }; }
5607 # Check whether --with-system-tzdata was given.
5608 if test "${with_system_tzdata+set}" = set; then
5609 withval=$with_system_tzdata;
5612 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5613 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5614 { (exit 1); exit 1; }; }
5617 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5618 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5619 { (exit 1); exit 1; }; }
5637 # Check whether --with-zlib was given.
5638 if test "${with_zlib+set}" = set; then
5648 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5649 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5650 { (exit 1); exit 1; }; }
5666 # Assume system is ELF if it predefines __ELF__ as 1,
5667 # otherwise believe host_os based default.
5669 freebsd1*|freebsd2*) elf=no;;
5670 freebsd3*|freebsd4*) elf=yes;;
5674 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5676 if test "${ac_cv_path_GREP+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5679 if test -z "$GREP"; then
5680 ac_path_GREP_found=false
5681 # Loop through the user's path and test for each of PROGNAME-LIST
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5686 test -z "$as_dir" && as_dir=.
5687 for ac_prog in grep ggrep; do
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5690 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5691 # Check for GNU ac_path_GREP and select it if it is found.
5692 # Check for GNU $ac_path_GREP
5693 case `"$ac_path_GREP" --version 2>&1` in
5695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5698 $as_echo_n 0123456789 >"conftest.in"
5701 cat "conftest.in" "conftest.in" >"conftest.tmp"
5702 mv "conftest.tmp" "conftest.in"
5703 cp "conftest.in" "conftest.nl"
5704 $as_echo 'GREP' >> "conftest.nl"
5705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5707 ac_count=`expr $ac_count + 1`
5708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5709 # Best one so far, save it but keep looking for a better one
5710 ac_cv_path_GREP="$ac_path_GREP"
5711 ac_path_GREP_max=$ac_count
5713 # 10*(2^10) chars as input seems more than enough
5714 test $ac_count -gt 10 && break
5716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5719 $ac_path_GREP_found && break 3
5724 if test -z "$ac_cv_path_GREP"; then
5725 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5726 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5727 { (exit 1); exit 1; }; }
5730 ac_cv_path_GREP=$GREP
5734 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5735 $as_echo "$ac_cv_path_GREP" >&6; }
5736 GREP="$ac_cv_path_GREP"
5739 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5740 $as_echo_n "checking for egrep... " >&6; }
5741 if test "${ac_cv_path_EGREP+set}" = set; then
5742 $as_echo_n "(cached) " >&6
5744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5745 then ac_cv_path_EGREP="$GREP -E"
5747 if test -z "$EGREP"; then
5748 ac_path_EGREP_found=false
5749 # Loop through the user's path and test for each of PROGNAME-LIST
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5754 test -z "$as_dir" && as_dir=.
5755 for ac_prog in egrep; do
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5759 # Check for GNU ac_path_EGREP and select it if it is found.
5760 # Check for GNU $ac_path_EGREP
5761 case `"$ac_path_EGREP" --version 2>&1` in
5763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5766 $as_echo_n 0123456789 >"conftest.in"
5769 cat "conftest.in" "conftest.in" >"conftest.tmp"
5770 mv "conftest.tmp" "conftest.in"
5771 cp "conftest.in" "conftest.nl"
5772 $as_echo 'EGREP' >> "conftest.nl"
5773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5775 ac_count=`expr $ac_count + 1`
5776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5777 # Best one so far, save it but keep looking for a better one
5778 ac_cv_path_EGREP="$ac_path_EGREP"
5779 ac_path_EGREP_max=$ac_count
5781 # 10*(2^10) chars as input seems more than enough
5782 test $ac_count -gt 10 && break
5784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5787 $ac_path_EGREP_found && break 3
5792 if test -z "$ac_cv_path_EGREP"; then
5793 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5794 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5795 { (exit 1); exit 1; }; }
5798 ac_cv_path_EGREP=$EGREP
5803 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5804 $as_echo "$ac_cv_path_EGREP" >&6; }
5805 EGREP="$ac_cv_path_EGREP"
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5820 $EGREP "yes" >/dev/null 2>&1; then
5823 if test "X$elf" = "Xyes" ; then
5837 CPPFLAGS="$CPPFLAGS $INCLUDES"
5838 LDFLAGS="$LDFLAGS $LIBDIRS"
5844 # Check whether --with-gnu-ld was given.
5845 if test "${with_gnu_ld+set}" = set; then
5846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5852 if test "$GCC" = yes; then
5853 # Check if gcc -print-prog-name=ld gives a path.
5854 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5855 $as_echo_n "checking for ld used by GCC... " >&6; }
5858 # gcc leaves a trailing carriage return which upsets mingw
5859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5864 # Accept absolute paths.
5865 [\\/]* | [A-Za-z]:[\\/]*)
5866 re_direlt='/[^/][^/]*/\.\./'
5867 # Canonicalize the path of ld
5868 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5870 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5872 test -z "$LD" && LD="$ac_prog"
5875 # If it fails, then pretend we aren't using GCC.
5879 # If it is relative, then search for the first ld in PATH.
5883 elif test "$with_gnu_ld" = yes; then
5884 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5887 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5890 if test "${ac_cv_path_LD+set}" = set; then
5891 $as_echo_n "(cached) " >&6
5893 if test -z "$LD"; then
5894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5895 for ac_dir in $PATH; do
5896 test -z "$ac_dir" && ac_dir=.
5897 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5898 ac_cv_path_LD="$ac_dir/$ac_prog"
5899 # Check to see if the program is GNU ld. I'd rather use --version,
5900 # but apparently some GNU ld's only accept -v.
5901 # Break only if it was the GNU/non-GNU ld that we prefer.
5902 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5903 test "$with_gnu_ld" != no && break
5905 test "$with_gnu_ld" != yes && break
5911 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5916 if test -n "$LD"; then
5917 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5918 $as_echo "$LD" >&6; }
5920 { $as_echo "$as_me:$LINENO: result: no" >&5
5921 $as_echo "no" >&6; }
5923 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5924 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5925 { (exit 1); exit 1; }; }
5926 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5928 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5929 $as_echo_n "(cached) " >&6
5931 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5932 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5933 ac_cv_prog_gnu_ld=yes
5935 ac_cv_prog_gnu_ld=no
5938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5939 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5940 with_gnu_ld=$ac_cv_prog_gnu_ld
5945 case $host_os in sysv5*)
5946 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5947 $as_echo_n "checking whether ld -R works... " >&6; }
5948 if test "${pgac_cv_prog_ld_R+set}" = set; then
5949 $as_echo_n "(cached) " >&6
5952 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976 (eval "$ac_link") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest$ac_exeext && {
5986 test "$cross_compiling" = yes ||
5987 $as_test_x conftest$ac_exeext
5989 pgac_cv_prog_ld_R=yes
5991 $as_echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5994 pgac_cv_prog_ld_R=no
5997 rm -rf conftest.dSYM
5998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999 conftest$ac_exeext conftest.$ac_ext
6000 LDFLAGS=$pgac_save_LDFLAGS
6003 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6004 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6005 ld_R_works=$pgac_cv_prog_ld_R
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_RANLIB+set}" = set; then
6014 $as_echo_n "(cached) " >&6
6016 if test -n "$RANLIB"; then
6017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 RANLIB=$ac_cv_prog_RANLIB
6037 if test -n "$RANLIB"; then
6038 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6039 $as_echo "$RANLIB" >&6; }
6041 { $as_echo "$as_me:$LINENO: result: no" >&5
6042 $as_echo "no" >&6; }
6047 if test -z "$ac_cv_prog_RANLIB"; then
6048 ac_ct_RANLIB=$RANLIB
6049 # Extract the first word of "ranlib", so it can be a program name with args.
6050 set dummy ranlib; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$ac_ct_RANLIB"; then
6057 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_RANLIB="ranlib"
6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6077 if test -n "$ac_ct_RANLIB"; then
6078 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6079 $as_echo "$ac_ct_RANLIB" >&6; }
6081 { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6085 if test "x$ac_ct_RANLIB" = x; then
6088 case $cross_compiling:$ac_tool_warned in
6090 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6094 RANLIB=$ac_ct_RANLIB
6097 RANLIB="$ac_cv_prog_RANLIB"
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}strip; ac_word=$2
6104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if test "${ac_cv_prog_STRIP+set}" = set; then
6107 $as_echo_n "(cached) " >&6
6109 if test -n "$STRIP"; then
6110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 STRIP=$ac_cv_prog_STRIP
6130 if test -n "$STRIP"; then
6131 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6132 $as_echo "$STRIP" >&6; }
6134 { $as_echo "$as_me:$LINENO: result: no" >&5
6135 $as_echo "no" >&6; }
6140 if test -z "$ac_cv_prog_STRIP"; then
6142 # Extract the first word of "strip", so it can be a program name with args.
6143 set dummy strip; ac_word=$2
6144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$ac_ct_STRIP"; then
6150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_ac_ct_STRIP="strip"
6160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6170 if test -n "$ac_ct_STRIP"; then
6171 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6172 $as_echo "$ac_ct_STRIP" >&6; }
6174 { $as_echo "$as_me:$LINENO: result: no" >&5
6175 $as_echo "no" >&6; }
6178 if test "x$ac_ct_STRIP" = x; then
6181 case $cross_compiling:$ac_tool_warned in
6183 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6190 STRIP="$ac_cv_prog_STRIP"
6194 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6195 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6196 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6197 STRIP_STATIC_LIB="$STRIP -x"
6198 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6199 { $as_echo "$as_me:$LINENO: result: yes" >&5
6200 $as_echo "yes" >&6; }
6204 { $as_echo "$as_me:$LINENO: result: no" >&5
6205 $as_echo "no" >&6; }
6210 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}ar; ac_word=$2
6213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if test "${ac_cv_prog_AR+set}" = set; then
6216 $as_echo_n "(cached) " >&6
6218 if test -n "$AR"; then
6219 ac_cv_prog_AR="$AR" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_AR="${ac_tool_prefix}ar"
6229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 if test -n "$AR"; then
6240 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6241 $as_echo "$AR" >&6; }
6243 { $as_echo "$as_me:$LINENO: result: no" >&5
6244 $as_echo "no" >&6; }
6249 if test -z "$ac_cv_prog_AR"; then
6251 # Extract the first word of "ar", so it can be a program name with args.
6252 set dummy ar; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$ac_ct_AR"; then
6259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_AR="ar"
6269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6279 if test -n "$ac_ct_AR"; then
6280 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6281 $as_echo "$ac_ct_AR" >&6; }
6283 { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6287 if test "x$ac_ct_AR" = x; then
6290 case $cross_compiling:$ac_tool_warned in
6292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6294 ac_tool_warned=yes ;;
6302 if test "$PORTNAME" = "win32"; then
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$DLLTOOL"; then
6312 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 DLLTOOL=$ac_cv_prog_DLLTOOL
6332 if test -n "$DLLTOOL"; then
6333 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6334 $as_echo "$DLLTOOL" >&6; }
6336 { $as_echo "$as_me:$LINENO: result: no" >&5
6337 $as_echo "no" >&6; }
6342 if test -z "$ac_cv_prog_DLLTOOL"; then
6343 ac_ct_DLLTOOL=$DLLTOOL
6344 # Extract the first word of "dlltool", so it can be a program name with args.
6345 set dummy dlltool; ac_word=$2
6346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$ac_ct_DLLTOOL"; then
6352 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6372 if test -n "$ac_ct_DLLTOOL"; then
6373 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6374 $as_echo "$ac_ct_DLLTOOL" >&6; }
6376 { $as_echo "$as_me:$LINENO: result: no" >&5
6377 $as_echo "no" >&6; }
6380 if test "x$ac_ct_DLLTOOL" = x; then
6383 case $cross_compiling:$ac_tool_warned in
6385 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6389 DLLTOOL=$ac_ct_DLLTOOL
6392 DLLTOOL="$ac_cv_prog_DLLTOOL"
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$DLLWRAP"; then
6404 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 DLLWRAP=$ac_cv_prog_DLLWRAP
6424 if test -n "$DLLWRAP"; then
6425 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6426 $as_echo "$DLLWRAP" >&6; }
6428 { $as_echo "$as_me:$LINENO: result: no" >&5
6429 $as_echo "no" >&6; }
6434 if test -z "$ac_cv_prog_DLLWRAP"; then
6435 ac_ct_DLLWRAP=$DLLWRAP
6436 # Extract the first word of "dllwrap", so it can be a program name with args.
6437 set dummy dllwrap; ac_word=$2
6438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$ac_ct_DLLWRAP"; then
6444 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6464 if test -n "$ac_ct_DLLWRAP"; then
6465 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6466 $as_echo "$ac_ct_DLLWRAP" >&6; }
6468 { $as_echo "$as_me:$LINENO: result: no" >&5
6469 $as_echo "no" >&6; }
6472 if test "x$ac_ct_DLLWRAP" = x; then
6475 case $cross_compiling:$ac_tool_warned in
6477 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6481 DLLWRAP=$ac_ct_DLLWRAP
6484 DLLWRAP="$ac_cv_prog_DLLWRAP"
6487 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}windres; ac_word=$2
6490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_WINDRES+set}" = set; then
6493 $as_echo_n "(cached) " >&6
6495 if test -n "$WINDRES"; then
6496 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 WINDRES=$ac_cv_prog_WINDRES
6516 if test -n "$WINDRES"; then
6517 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6518 $as_echo "$WINDRES" >&6; }
6520 { $as_echo "$as_me:$LINENO: result: no" >&5
6521 $as_echo "no" >&6; }
6526 if test -z "$ac_cv_prog_WINDRES"; then
6527 ac_ct_WINDRES=$WINDRES
6528 # Extract the first word of "windres", so it can be a program name with args.
6529 set dummy windres; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6533 $as_echo_n "(cached) " >&6
6535 if test -n "$ac_ct_WINDRES"; then
6536 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_ac_ct_WINDRES="windres"
6546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6556 if test -n "$ac_ct_WINDRES"; then
6557 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6558 $as_echo "$ac_ct_WINDRES" >&6; }
6560 { $as_echo "$as_me:$LINENO: result: no" >&5
6561 $as_echo "no" >&6; }
6564 if test "x$ac_ct_WINDRES" = x; then
6567 case $cross_compiling:$ac_tool_warned in
6569 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6573 WINDRES=$ac_ct_WINDRES
6576 WINDRES="$ac_cv_prog_WINDRES"
6581 # Extract the first word of "tar", so it can be a program name with args.
6582 set dummy tar; ac_word=$2
6583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_path_TAR+set}" = set; then
6586 $as_echo_n "(cached) " >&6
6590 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 if test -n "$TAR"; then
6613 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6614 $as_echo "$TAR" >&6; }
6616 { $as_echo "$as_me:$LINENO: result: no" >&5
6617 $as_echo "no" >&6; }
6621 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6622 $as_echo_n "checking whether ln -s works... " >&6; }
6624 if test "$LN_S" = "ln -s"; then
6625 { $as_echo "$as_me:$LINENO: result: yes" >&5
6626 $as_echo "yes" >&6; }
6628 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6629 $as_echo "no, using $LN_S" >&6; }
6632 for ac_prog in gawk mawk nawk awk
6634 # Extract the first word of "$ac_prog", so it can be a program name with args.
6635 set dummy $ac_prog; ac_word=$2
6636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_AWK+set}" = set; then
6639 $as_echo_n "(cached) " >&6
6641 if test -n "$AWK"; then
6642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_AWK="$ac_prog"
6652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 if test -n "$AWK"; then
6663 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6664 $as_echo "$AWK" >&6; }
6666 { $as_echo "$as_me:$LINENO: result: no" >&5
6667 $as_echo "no" >&6; }
6671 test -n "$AWK" && break
6674 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6675 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6676 if test -z "$MKDIR_P"; then
6677 if test "${ac_cv_path_mkdir+set}" = set; then
6678 $as_echo_n "(cached) " >&6
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6684 test -z "$as_dir" && as_dir=.
6685 for ac_prog in mkdir gmkdir; do
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6688 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6689 'mkdir (GNU coreutils) '* | \
6690 'mkdir (coreutils) '* | \
6691 'mkdir (fileutils) '4.1*)
6692 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6702 if test "${ac_cv_path_mkdir+set}" = set; then
6703 MKDIR_P="$ac_cv_path_mkdir -p"
6705 # As a last resort, use the slow shell script. Don't cache a
6706 # value for MKDIR_P within a source directory, because that will
6707 # break other packages using the cache if that directory is
6708 # removed, or if the value is a relative name.
6709 test -d ./--version && rmdir ./--version
6710 MKDIR_P="$ac_install_sh -d"
6713 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6714 $as_echo "$MKDIR_P" >&6; }
6716 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6717 # a relative path to it in each makefile where it subsitutes it. This clashes
6718 # with our Makefile.global concept. This workaround helps.
6720 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6723 # Let the user override the search
6724 if test -z "$BISON"; then
6725 for ac_prog in bison
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_path_BISON+set}" = set; then
6732 $as_echo_n "(cached) " >&6
6736 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 BISON=$ac_cv_path_BISON
6758 if test -n "$BISON"; then
6759 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6760 $as_echo "$BISON" >&6; }
6762 { $as_echo "$as_me:$LINENO: result: no" >&5
6763 $as_echo "no" >&6; }
6767 test -n "$BISON" && break
6772 if test "$BISON"; then
6773 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6774 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6775 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6776 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6778 { $as_echo "$as_me:$LINENO: WARNING:
6779 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6780 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6781 $as_echo "$as_me: WARNING:
6782 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6783 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6788 if test -z "$BISON"; then
6789 { $as_echo "$as_me:$LINENO: WARNING:
6790 *** Without Bison you will not be able to build PostgreSQL from Git nor
6791 *** change any of the parser definition files. You can obtain Bison from
6792 *** a GNU mirror site. (If you are using the official distribution of
6793 *** PostgreSQL then you do not need to worry about this, because the Bison
6794 *** output is pre-generated.)" >&5
6795 $as_echo "$as_me: WARNING:
6796 *** Without Bison you will not be able to build PostgreSQL from Git nor
6797 *** change any of the parser definition files. You can obtain Bison from
6798 *** a GNU mirror site. (If you are using the official distribution of
6799 *** PostgreSQL then you do not need to worry about this, because the Bison
6800 *** output is pre-generated.)" >&2;}
6802 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6805 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6806 $as_echo_n "checking for flex... " >&6; }
6807 if test "${pgac_cv_path_flex+set}" = set; then
6808 $as_echo_n "(cached) " >&6
6810 # Let the user override the test
6811 if test -n "$FLEX"; then
6812 pgac_cv_path_flex=$FLEX
6816 for pgac_dir in $PATH; do
6818 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6821 for pgac_prog in flex lex; do
6822 pgac_candidate="$pgac_dir/$pgac_prog"
6823 if test -f "$pgac_candidate" \
6824 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6826 echo '%%' > conftest.l
6827 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6828 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6829 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6831 pgac_cv_path_flex=$pgac_candidate
6834 { $as_echo "$as_me:$LINENO: WARNING:
6835 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6836 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6837 $as_echo "$as_me: WARNING:
6838 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6839 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6845 rm -f conftest.l lex.yy.c
6846 : ${pgac_cv_path_flex=no}
6850 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6851 $as_echo "$pgac_cv_path_flex" >&6; }
6852 if test x"$pgac_cv_path_flex" = x"no"; then
6853 { $as_echo "$as_me:$LINENO: WARNING:
6854 *** Without Flex you will not be able to build PostgreSQL from Git nor
6855 *** change any of the scanner definition files. You can obtain Flex from
6856 *** a GNU mirror site. (If you are using the official distribution of
6857 *** PostgreSQL then you do not need to worry about this because the Flex
6858 *** output is pre-generated.)" >&5
6859 $as_echo "$as_me: WARNING:
6860 *** Without Flex you will not be able to build PostgreSQL from Git nor
6861 *** change any of the scanner definition files. You can obtain Flex from
6862 *** a GNU mirror site. (If you are using the official distribution of
6863 *** PostgreSQL then you do not need to worry about this because the Flex
6864 *** output is pre-generated.)" >&2;}
6868 FLEX=$pgac_cv_path_flex
6869 pgac_flex_version=`$FLEX --version 2>/dev/null`
6870 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6871 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6878 # Let the user override the search
6879 if test -z "$PERL"; then
6880 # Extract the first word of "perl", so it can be a program name with args.
6881 set dummy perl; ac_word=$2
6882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_path_PERL+set}" = set; then
6885 $as_echo_n "(cached) " >&6
6889 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 PERL=$ac_cv_path_PERL
6911 if test -n "$PERL"; then
6912 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6913 $as_echo "$PERL" >&6; }
6915 { $as_echo "$as_me:$LINENO: result: no" >&5
6916 $as_echo "no" >&6; }
6922 if test "$PERL"; then
6923 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'`
6924 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6925 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6926 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6927 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6929 { $as_echo "$as_me:$LINENO: WARNING:
6930 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6931 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6932 $as_echo "$as_me: WARNING:
6933 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6934 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6939 if test -z "$PERL"; then
6940 { $as_echo "$as_me:$LINENO: WARNING:
6941 *** Without Perl you will not be able to build PostgreSQL from Git.
6942 *** You can obtain Perl from any CPAN mirror site.
6943 *** (If you are using the official distribution of PostgreSQL then you do not
6944 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6945 $as_echo "$as_me: WARNING:
6946 *** Without Perl you will not be able to build PostgreSQL from Git.
6947 *** You can obtain Perl from any CPAN mirror site.
6948 *** (If you are using the official distribution of PostgreSQL then you do not
6949 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6952 if test "$with_perl" = yes; then
6953 if test -z "$PERL"; then
6954 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6955 $as_echo "$as_me: error: Perl not found" >&2;}
6956 { (exit 1); exit 1; }; }
6959 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6960 $as_echo_n "checking for Perl archlibexp... " >&6; }
6961 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6962 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6963 $as_echo "$perl_archlibexp" >&6; }
6964 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6965 $as_echo_n "checking for Perl privlibexp... " >&6; }
6966 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6967 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6968 $as_echo "$perl_privlibexp" >&6; }
6969 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6970 $as_echo_n "checking for Perl useshrplib... " >&6; }
6971 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6972 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6973 $as_echo "$perl_useshrplib" >&6; }
6975 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6976 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6977 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6978 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6979 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6980 if test -z "$perl_embed_ldflags" ; then
6981 { $as_echo "$as_me:$LINENO: result: no" >&5
6982 $as_echo "no" >&6; }
6983 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6984 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6986 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6987 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6989 { (exit 1); exit 1; }; }
6991 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6992 $as_echo "$perl_embed_ldflags" >&6; }
6997 if test "$with_python" = yes; then
6998 # Extract the first word of "python", so it can be a program name with args.
6999 set dummy python; ac_word=$2
7000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if test "${ac_cv_path_PYTHON+set}" = set; then
7003 $as_echo_n "(cached) " >&6
7007 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 PYTHON=$ac_cv_path_PYTHON
7029 if test -n "$PYTHON"; then
7030 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7031 $as_echo "$PYTHON" >&6; }
7033 { $as_echo "$as_me:$LINENO: result: no" >&5
7034 $as_echo "no" >&6; }
7038 if test x"$PYTHON" = x""; then
7039 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7040 $as_echo "$as_me: error: Python not found" >&2;}
7041 { (exit 1); exit 1; }; }
7045 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7046 $as_echo_n "checking for Python distutils module... " >&6; }
7047 if "${PYTHON}" -c 'import distutils' 2>&5
7049 { $as_echo "$as_me:$LINENO: result: yes" >&5
7050 $as_echo "yes" >&6; }
7052 { $as_echo "$as_me:$LINENO: result: no" >&5
7053 $as_echo "no" >&6; }
7054 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7055 $as_echo "$as_me: error: distutils module not found" >&2;}
7056 { (exit 1); exit 1; }; }
7058 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7059 $as_echo_n "checking Python configuration directory... " >&6; }
7060 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7061 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7062 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'))"`
7063 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7065 # This should be enough of a message.
7066 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7067 $as_echo "$python_configdir" >&6; }
7070 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7071 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7073 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7074 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7075 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7076 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7078 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7080 # New way: use the official shared library
7081 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7082 python_libspec="-L${python_libdir} -l${ldlibrary}"
7084 # Old way: use libpython from python_configdir
7085 python_libdir="${python_configdir}"
7086 python_libspec="-L${python_libdir} -lpython${python_version}"
7089 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7091 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7092 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7095 # threaded python is not supported on bsd's
7096 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7097 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7098 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7099 if test "$pythreads" = "1"; then
7100 { $as_echo "$as_me:$LINENO: result: yes" >&5
7101 $as_echo "yes" >&6; }
7104 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7105 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7106 { (exit 1); exit 1; }; }
7110 { $as_echo "$as_me:$LINENO: result: no" >&5
7111 $as_echo "no" >&6; }
7117 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7118 # Extract the first word of "zic", so it can be a program name with args.
7119 set dummy zic; ac_word=$2
7120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_path_ZIC+set}" = set; then
7123 $as_echo_n "(cached) " >&6
7127 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 if test -n "$ZIC"; then
7150 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7151 $as_echo "$ZIC" >&6; }
7153 { $as_echo "$as_me:$LINENO: result: no" >&5
7154 $as_echo "no" >&6; }
7158 if test -z "$ZIC"; then
7159 { { $as_echo "$as_me:$LINENO: error:
7160 When cross-compiling, either use the option --with-system-tzdata to use
7161 existing time-zone data, or set the environment variable ZIC to a zic
7162 program to use during the build." >&5
7163 $as_echo "$as_me: error:
7164 When cross-compiling, either use the option --with-system-tzdata to use
7165 existing time-zone data, or set the environment variable ZIC to a zic
7166 program to use during the build." >&2;}
7167 { (exit 1); exit 1; }; }
7175 ## Most libraries are included only if they demonstrably provide a function
7176 ## we need, but libm is an exception: always include it, because there are
7177 ## too many compilers that play cute optimization games that will break
7178 ## probes for standard functions such as pow().
7182 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7183 $as_echo_n "checking for main in -lm... " >&6; }
7184 if test "${ac_cv_lib_m_main+set}" = set; then
7185 $as_echo_n "(cached) " >&6
7187 ac_check_lib_save_LIBS=$LIBS
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7205 rm -f conftest.$ac_objext conftest$ac_exeext
7206 if { (ac_try="$ac_link"
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7212 $as_echo "$ac_try_echo") >&5
7213 (eval "$ac_link") 2>conftest.er1
7215 grep -v '^ *+' conftest.er1 >conftest.err
7217 cat conftest.err >&5
7218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } && {
7220 test -z "$ac_c_werror_flag" ||
7221 test ! -s conftest.err
7222 } && test -s conftest$ac_exeext && {
7223 test "$cross_compiling" = yes ||
7224 $as_test_x conftest$ac_exeext
7226 ac_cv_lib_m_main=yes
7228 $as_echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7234 rm -rf conftest.dSYM
7235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7236 conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7240 $as_echo "$ac_cv_lib_m_main" >&6; }
7241 if test "x$ac_cv_lib_m_main" = x""yes; then
7242 cat >>confdefs.h <<_ACEOF
7250 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7251 $as_echo_n "checking for library containing setproctitle... " >&6; }
7252 if test "${ac_cv_search_setproctitle+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7255 ac_func_search_save_LIBS=$LIBS
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7263 /* Override any GCC internal prototype to avoid an error.
7264 Use char because int might match the return type of a GCC
7265 builtin and then its argument prototype would still apply. */
7269 char setproctitle ();
7273 return setproctitle ();
7278 for ac_lib in '' util; do
7279 if test -z "$ac_lib"; then
7280 ac_res="none required"
7283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293 (eval "$ac_link") 2>conftest.er1
7295 grep -v '^ *+' conftest.er1 >conftest.err
7297 cat conftest.err >&5
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest$ac_exeext && {
7303 test "$cross_compiling" = yes ||
7304 $as_test_x conftest$ac_exeext
7306 ac_cv_search_setproctitle=$ac_res
7308 $as_echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7314 rm -rf conftest.dSYM
7315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317 if test "${ac_cv_search_setproctitle+set}" = set; then
7321 if test "${ac_cv_search_setproctitle+set}" = set; then
7324 ac_cv_search_setproctitle=no
7327 LIBS=$ac_func_search_save_LIBS
7329 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7330 $as_echo "$ac_cv_search_setproctitle" >&6; }
7331 ac_res=$ac_cv_search_setproctitle
7332 if test "$ac_res" != no; then
7333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7337 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7338 $as_echo_n "checking for library containing dlopen... " >&6; }
7339 if test "${ac_cv_search_dlopen+set}" = set; then
7340 $as_echo_n "(cached) " >&6
7342 ac_func_search_save_LIBS=$LIBS
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7350 /* Override any GCC internal prototype to avoid an error.
7351 Use char because int might match the return type of a GCC
7352 builtin and then its argument prototype would still apply. */
7365 for ac_lib in '' dl; do
7366 if test -z "$ac_lib"; then
7367 ac_res="none required"
7370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7372 rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (ac_try="$ac_link"
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7379 $as_echo "$ac_try_echo") >&5
7380 (eval "$ac_link") 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest$ac_exeext && {
7390 test "$cross_compiling" = yes ||
7391 $as_test_x conftest$ac_exeext
7393 ac_cv_search_dlopen=$ac_res
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7401 rm -rf conftest.dSYM
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7404 if test "${ac_cv_search_dlopen+set}" = set; then
7408 if test "${ac_cv_search_dlopen+set}" = set; then
7411 ac_cv_search_dlopen=no
7414 LIBS=$ac_func_search_save_LIBS
7416 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7417 $as_echo "$ac_cv_search_dlopen" >&6; }
7418 ac_res=$ac_cv_search_dlopen
7419 if test "$ac_res" != no; then
7420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7424 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7425 $as_echo_n "checking for library containing socket... " >&6; }
7426 if test "${ac_cv_search_socket+set}" = set; then
7427 $as_echo_n "(cached) " >&6
7429 ac_func_search_save_LIBS=$LIBS
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7437 /* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7452 for ac_lib in '' socket wsock32; do
7453 if test -z "$ac_lib"; then
7454 ac_res="none required"
7457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (ac_try="$ac_link"
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7466 $as_echo "$ac_try_echo") >&5
7467 (eval "$ac_link") 2>conftest.er1
7469 grep -v '^ *+' conftest.er1 >conftest.err
7471 cat conftest.err >&5
7472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && {
7474 test -z "$ac_c_werror_flag" ||
7475 test ! -s conftest.err
7476 } && test -s conftest$ac_exeext && {
7477 test "$cross_compiling" = yes ||
7478 $as_test_x conftest$ac_exeext
7480 ac_cv_search_socket=$ac_res
7482 $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7488 rm -rf conftest.dSYM
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7491 if test "${ac_cv_search_socket+set}" = set; then
7495 if test "${ac_cv_search_socket+set}" = set; then
7498 ac_cv_search_socket=no
7501 LIBS=$ac_func_search_save_LIBS
7503 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7504 $as_echo "$ac_cv_search_socket" >&6; }
7505 ac_res=$ac_cv_search_socket
7506 if test "$ac_res" != no; then
7507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7511 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7512 $as_echo_n "checking for library containing shl_load... " >&6; }
7513 if test "${ac_cv_search_shl_load+set}" = set; then
7514 $as_echo_n "(cached) " >&6
7516 ac_func_search_save_LIBS=$LIBS
7517 cat >conftest.$ac_ext <<_ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7524 /* Override any GCC internal prototype to avoid an error.
7525 Use char because int might match the return type of a GCC
7526 builtin and then its argument prototype would still apply. */
7539 for ac_lib in '' dld; do
7540 if test -z "$ac_lib"; then
7541 ac_res="none required"
7544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (ac_try="$ac_link"
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_link") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext && {
7564 test "$cross_compiling" = yes ||
7565 $as_test_x conftest$ac_exeext
7567 ac_cv_search_shl_load=$ac_res
7569 $as_echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7575 rm -rf conftest.dSYM
7576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7578 if test "${ac_cv_search_shl_load+set}" = set; then
7582 if test "${ac_cv_search_shl_load+set}" = set; then
7585 ac_cv_search_shl_load=no
7588 LIBS=$ac_func_search_save_LIBS
7590 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7591 $as_echo "$ac_cv_search_shl_load" >&6; }
7592 ac_res=$ac_cv_search_shl_load
7593 if test "$ac_res" != no; then
7594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7598 # We only use libld in port/dynloader/aix.c
7601 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7602 $as_echo_n "checking for library containing ldopen... " >&6; }
7603 if test "${ac_cv_search_ldopen+set}" = set; then
7604 $as_echo_n "(cached) " >&6
7606 ac_func_search_save_LIBS=$LIBS
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7614 /* Override any GCC internal prototype to avoid an error.
7615 Use char because int might match the return type of a GCC
7616 builtin and then its argument prototype would still apply. */
7629 for ac_lib in '' ld; do
7630 if test -z "$ac_lib"; then
7631 ac_res="none required"
7634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7636 rm -f conftest.$ac_objext conftest$ac_exeext
7637 if { (ac_try="$ac_link"
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7643 $as_echo "$ac_try_echo") >&5
7644 (eval "$ac_link") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1 >conftest.err
7648 cat conftest.err >&5
7649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest$ac_exeext && {
7654 test "$cross_compiling" = yes ||
7655 $as_test_x conftest$ac_exeext
7657 ac_cv_search_ldopen=$ac_res
7659 $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7665 rm -rf conftest.dSYM
7666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7668 if test "${ac_cv_search_ldopen+set}" = set; then
7672 if test "${ac_cv_search_ldopen+set}" = set; then
7675 ac_cv_search_ldopen=no
7678 LIBS=$ac_func_search_save_LIBS
7680 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7681 $as_echo "$ac_cv_search_ldopen" >&6; }
7682 ac_res=$ac_cv_search_ldopen
7683 if test "$ac_res" != no; then
7684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7690 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7691 $as_echo_n "checking for library containing getopt_long... " >&6; }
7692 if test "${ac_cv_search_getopt_long+set}" = set; then
7693 $as_echo_n "(cached) " >&6
7695 ac_func_search_save_LIBS=$LIBS
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7709 char getopt_long ();
7713 return getopt_long ();
7718 for ac_lib in '' getopt gnugetopt; do
7719 if test -z "$ac_lib"; then
7720 ac_res="none required"
7723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (ac_try="$ac_link"
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733 (eval "$ac_link") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest$ac_exeext && {
7743 test "$cross_compiling" = yes ||
7744 $as_test_x conftest$ac_exeext
7746 ac_cv_search_getopt_long=$ac_res
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7754 rm -rf conftest.dSYM
7755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7757 if test "${ac_cv_search_getopt_long+set}" = set; then
7761 if test "${ac_cv_search_getopt_long+set}" = set; then
7764 ac_cv_search_getopt_long=no
7767 LIBS=$ac_func_search_save_LIBS
7769 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7770 $as_echo "$ac_cv_search_getopt_long" >&6; }
7771 ac_res=$ac_cv_search_getopt_long
7772 if test "$ac_res" != no; then
7773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7777 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7778 $as_echo_n "checking for library containing crypt... " >&6; }
7779 if test "${ac_cv_search_crypt+set}" = set; then
7780 $as_echo_n "(cached) " >&6
7782 ac_func_search_save_LIBS=$LIBS
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7790 /* Override any GCC internal prototype to avoid an error.
7791 Use char because int might match the return type of a GCC
7792 builtin and then its argument prototype would still apply. */
7805 for ac_lib in '' crypt; do
7806 if test -z "$ac_lib"; then
7807 ac_res="none required"
7810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820 (eval "$ac_link") 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && {
7827 test -z "$ac_c_werror_flag" ||
7828 test ! -s conftest.err
7829 } && test -s conftest$ac_exeext && {
7830 test "$cross_compiling" = yes ||
7831 $as_test_x conftest$ac_exeext
7833 ac_cv_search_crypt=$ac_res
7835 $as_echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7841 rm -rf conftest.dSYM
7842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7844 if test "${ac_cv_search_crypt+set}" = set; then
7848 if test "${ac_cv_search_crypt+set}" = set; then
7851 ac_cv_search_crypt=no
7854 LIBS=$ac_func_search_save_LIBS
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7857 $as_echo "$ac_cv_search_crypt" >&6; }
7858 ac_res=$ac_cv_search_crypt
7859 if test "$ac_res" != no; then
7860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7865 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7866 $as_echo_n "checking for library containing fdatasync... " >&6; }
7867 if test "${ac_cv_search_fdatasync+set}" = set; then
7868 $as_echo_n "(cached) " >&6
7870 ac_func_search_save_LIBS=$LIBS
7871 cat >conftest.$ac_ext <<_ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7888 return fdatasync ();
7893 for ac_lib in '' rt posix4; do
7894 if test -z "$ac_lib"; then
7895 ac_res="none required"
7898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7900 rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (ac_try="$ac_link"
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7907 $as_echo "$ac_try_echo") >&5
7908 (eval "$ac_link") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest$ac_exeext && {
7918 test "$cross_compiling" = yes ||
7919 $as_test_x conftest$ac_exeext
7921 ac_cv_search_fdatasync=$ac_res
7923 $as_echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7929 rm -rf conftest.dSYM
7930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932 if test "${ac_cv_search_fdatasync+set}" = set; then
7936 if test "${ac_cv_search_fdatasync+set}" = set; then
7939 ac_cv_search_fdatasync=no
7942 LIBS=$ac_func_search_save_LIBS
7944 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7945 $as_echo "$ac_cv_search_fdatasync" >&6; }
7946 ac_res=$ac_cv_search_fdatasync
7947 if test "$ac_res" != no; then
7948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7952 # Required for thread_test.c on Solaris 2.5:
7953 # Other ports use it too (HP-UX) so test unconditionally
7954 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7955 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7956 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7957 $as_echo_n "(cached) " >&6
7959 ac_func_search_save_LIBS=$LIBS
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7967 /* Override any GCC internal prototype to avoid an error.
7968 Use char because int might match the return type of a GCC
7969 builtin and then its argument prototype would still apply. */
7973 char gethostbyname_r ();
7977 return gethostbyname_r ();
7982 for ac_lib in '' nsl; do
7983 if test -z "$ac_lib"; then
7984 ac_res="none required"
7987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (ac_try="$ac_link"
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7996 $as_echo "$ac_try_echo") >&5
7997 (eval "$ac_link") 2>conftest.er1
7999 grep -v '^ *+' conftest.er1 >conftest.err
8001 cat conftest.err >&5
8002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } && {
8004 test -z "$ac_c_werror_flag" ||
8005 test ! -s conftest.err
8006 } && test -s conftest$ac_exeext && {
8007 test "$cross_compiling" = yes ||
8008 $as_test_x conftest$ac_exeext
8010 ac_cv_search_gethostbyname_r=$ac_res
8012 $as_echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8018 rm -rf conftest.dSYM
8019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8025 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8028 ac_cv_search_gethostbyname_r=no
8031 LIBS=$ac_func_search_save_LIBS
8033 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8034 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8035 ac_res=$ac_cv_search_gethostbyname_r
8036 if test "$ac_res" != no; then
8037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8042 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8043 $as_echo_n "checking for library containing shmget... " >&6; }
8044 if test "${ac_cv_search_shmget+set}" = set; then
8045 $as_echo_n "(cached) " >&6
8047 ac_func_search_save_LIBS=$LIBS
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8055 /* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
8070 for ac_lib in '' cygipc; do
8071 if test -z "$ac_lib"; then
8072 ac_res="none required"
8075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085 (eval "$ac_link") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest$ac_exeext && {
8095 test "$cross_compiling" = yes ||
8096 $as_test_x conftest$ac_exeext
8098 ac_cv_search_shmget=$ac_res
8100 $as_echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8106 rm -rf conftest.dSYM
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109 if test "${ac_cv_search_shmget+set}" = set; then
8113 if test "${ac_cv_search_shmget+set}" = set; then
8116 ac_cv_search_shmget=no
8119 LIBS=$ac_func_search_save_LIBS
8121 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8122 $as_echo "$ac_cv_search_shmget" >&6; }
8123 ac_res=$ac_cv_search_shmget
8124 if test "$ac_res" != no; then
8125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8130 if test "$with_readline" = yes; then
8133 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8134 $as_echo_n "checking for library containing readline... " >&6; }
8135 if test "${pgac_cv_check_readline+set}" = set; then
8136 $as_echo_n "(cached) " >&6
8138 pgac_cv_check_readline=no
8139 pgac_save_LIBS=$LIBS
8140 if test x"$with_libedit_preferred" != x"yes"
8141 then READLINE_ORDER="-lreadline -ledit"
8142 else READLINE_ORDER="-ledit -lreadline"
8144 for pgac_rllib in $READLINE_ORDER ; do
8145 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8146 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (ac_try="$ac_link"
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176 $as_echo "$ac_try_echo") >&5
8177 (eval "$ac_link") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest$ac_exeext && {
8187 test "$cross_compiling" = yes ||
8188 $as_test_x conftest$ac_exeext
8191 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8192 # recognize dependent libraries; assume curses is needed if we didn't
8193 # find any dependency.
8195 netbsd* | openbsd* | irix*)
8196 if test x"$pgac_lib" = x"" ; then
8197 pgac_lib=" -lcurses"
8201 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8205 $as_echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8211 rm -rf conftest.dSYM
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213 conftest$ac_exeext conftest.$ac_ext
8215 if test "$pgac_cv_check_readline" != no ; then
8219 LIBS=$pgac_save_LIBS
8222 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8223 $as_echo "$pgac_cv_check_readline" >&6; }
8224 if test "$pgac_cv_check_readline" != no ; then
8225 LIBS="$pgac_cv_check_readline $LIBS"
8227 cat >>confdefs.h <<\_ACEOF
8228 #define HAVE_LIBREADLINE 1
8234 if test x"$pgac_cv_check_readline" = x"no"; then
8235 { { $as_echo "$as_me:$LINENO: error: readline library not found
8236 If you have readline already installed, see config.log for details on the
8237 failure. It is possible the compiler isn't looking in the proper directory.
8238 Use --without-readline to disable readline support." >&5
8239 $as_echo "$as_me: error: readline library not found
8240 If you have readline already installed, see config.log for details on the
8241 failure. It is possible the compiler isn't looking in the proper directory.
8242 Use --without-readline to disable readline support." >&2;}
8243 { (exit 1); exit 1; }; }
8247 if test "$with_zlib" = yes; then
8249 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8250 $as_echo_n "checking for inflate in -lz... " >&6; }
8251 if test "${ac_cv_lib_z_inflate+set}" = set; then
8252 $as_echo_n "(cached) " >&6
8254 ac_check_lib_save_LIBS=$LIBS
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8263 /* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285 $as_echo "$ac_try_echo") >&5
8286 (eval "$ac_link") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1 >conftest.err
8290 cat conftest.err >&5
8291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest$ac_exeext && {
8296 test "$cross_compiling" = yes ||
8297 $as_test_x conftest$ac_exeext
8299 ac_cv_lib_z_inflate=yes
8301 $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_lib_z_inflate=no
8307 rm -rf conftest.dSYM
8308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8309 conftest$ac_exeext conftest.$ac_ext
8310 LIBS=$ac_check_lib_save_LIBS
8312 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8313 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8314 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8315 cat >>confdefs.h <<_ACEOF
8322 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8323 If you have zlib already installed, see config.log for details on the
8324 failure. It is possible the compiler isn't looking in the proper directory.
8325 Use --without-zlib to disable zlib support." >&5
8326 $as_echo "$as_me: error: zlib library not found
8327 If you have zlib already installed, see config.log for details on the
8328 failure. It is possible the compiler isn't looking in the proper directory.
8329 Use --without-zlib to disable zlib support." >&2;}
8330 { (exit 1); exit 1; }; }
8335 if test "$enable_spinlocks" = yes; then
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_SPINLOCKS 1
8342 { $as_echo "$as_me:$LINENO: WARNING:
8343 *** Not using spinlocks will cause poor performance." >&5
8344 $as_echo "$as_me: WARNING:
8345 *** Not using spinlocks will cause poor performance." >&2;}
8348 if test "$with_gssapi" = yes ; then
8349 if test "$PORTNAME" != "win32"; then
8350 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8351 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8352 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8353 $as_echo_n "(cached) " >&6
8355 ac_func_search_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8363 /* Override any GCC internal prototype to avoid an error.
8364 Use char because int might match the return type of a GCC
8365 builtin and then its argument prototype would still apply. */
8369 char gss_init_sec_context ();
8373 return gss_init_sec_context ();
8378 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8379 if test -z "$ac_lib"; then
8380 ac_res="none required"
8383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392 $as_echo "$ac_try_echo") >&5
8393 (eval "$ac_link") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } && {
8400 test -z "$ac_c_werror_flag" ||
8401 test ! -s conftest.err
8402 } && test -s conftest$ac_exeext && {
8403 test "$cross_compiling" = yes ||
8404 $as_test_x conftest$ac_exeext
8406 ac_cv_search_gss_init_sec_context=$ac_res
8408 $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8414 rm -rf conftest.dSYM
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8421 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8424 ac_cv_search_gss_init_sec_context=no
8427 LIBS=$ac_func_search_save_LIBS
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8430 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8431 ac_res=$ac_cv_search_gss_init_sec_context
8432 if test "$ac_res" != no; then
8433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8436 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8437 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8438 { (exit 1); exit 1; }; }
8442 LIBS="$LIBS -lgssapi32"
8446 if test "$with_krb5" = yes ; then
8447 if test "$PORTNAME" != "win32"; then
8448 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8449 $as_echo_n "checking for library containing com_err... " >&6; }
8450 if test "${ac_cv_search_com_err+set}" = set; then
8451 $as_echo_n "(cached) " >&6
8453 ac_func_search_save_LIBS=$LIBS
8454 cat >conftest.$ac_ext <<_ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8461 /* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8476 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8477 if test -z "$ac_lib"; then
8478 ac_res="none required"
8481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490 $as_echo "$ac_try_echo") >&5
8491 (eval "$ac_link") 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
8495 cat conftest.err >&5
8496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest$ac_exeext && {
8501 test "$cross_compiling" = yes ||
8502 $as_test_x conftest$ac_exeext
8504 ac_cv_search_com_err=$ac_res
8506 $as_echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -rf conftest.dSYM
8513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515 if test "${ac_cv_search_com_err+set}" = set; then
8519 if test "${ac_cv_search_com_err+set}" = set; then
8522 ac_cv_search_com_err=no
8525 LIBS=$ac_func_search_save_LIBS
8527 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8528 $as_echo "$ac_cv_search_com_err" >&6; }
8529 ac_res=$ac_cv_search_com_err
8530 if test "$ac_res" != no; then
8531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8534 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8535 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8536 { (exit 1); exit 1; }; }
8539 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8540 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8541 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8542 $as_echo_n "(cached) " >&6
8544 ac_func_search_save_LIBS=$LIBS
8545 cat >conftest.$ac_ext <<_ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8552 /* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
8558 char krb5_sendauth ();
8562 return krb5_sendauth ();
8567 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8568 if test -z "$ac_lib"; then
8569 ac_res="none required"
8572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (ac_try="$ac_link"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582 (eval "$ac_link") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest$ac_exeext && {
8592 test "$cross_compiling" = yes ||
8593 $as_test_x conftest$ac_exeext
8595 ac_cv_search_krb5_sendauth=$ac_res
8597 $as_echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8603 rm -rf conftest.dSYM
8604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8610 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8613 ac_cv_search_krb5_sendauth=no
8616 LIBS=$ac_func_search_save_LIBS
8618 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8619 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8620 ac_res=$ac_cv_search_krb5_sendauth
8621 if test "$ac_res" != no; then
8622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8625 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8626 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8627 { (exit 1); exit 1; }; }
8631 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8632 $as_echo_n "checking for library containing com_err... " >&6; }
8633 if test "${ac_cv_search_com_err+set}" = set; then
8634 $as_echo_n "(cached) " >&6
8636 ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8659 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8660 if test -z "$ac_lib"; then
8661 ac_res="none required"
8664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674 (eval "$ac_link") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest$ac_exeext && {
8684 test "$cross_compiling" = yes ||
8685 $as_test_x conftest$ac_exeext
8687 ac_cv_search_com_err=$ac_res
8689 $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8698 if test "${ac_cv_search_com_err+set}" = set; then
8702 if test "${ac_cv_search_com_err+set}" = set; then
8705 ac_cv_search_com_err=no
8708 LIBS=$ac_func_search_save_LIBS
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8711 $as_echo "$ac_cv_search_com_err" >&6; }
8712 ac_res=$ac_cv_search_com_err
8713 if test "$ac_res" != no; then
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8717 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8718 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8719 { (exit 1); exit 1; }; }
8725 if test "$with_openssl" = yes ; then
8726 if test "$PORTNAME" != "win32"; then
8728 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8729 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8730 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8733 ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lcrypto $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 /* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8748 char CRYPTO_new_ex_data ();
8752 return CRYPTO_new_ex_data ();
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest$ac_exeext && {
8775 test "$cross_compiling" = yes ||
8776 $as_test_x conftest$ac_exeext
8778 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8788 conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8792 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8793 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_LIBCRYPTO 1
8798 LIBS="-lcrypto $LIBS"
8801 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8802 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8803 { (exit 1); exit 1; }; }
8807 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8808 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8809 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8810 $as_echo_n "(cached) " >&6
8812 ac_check_lib_save_LIBS=$LIBS
8814 cat >conftest.$ac_ext <<_ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8821 /* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
8827 char SSL_library_init ();
8831 return SSL_library_init ();
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (ac_try="$ac_link"
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8843 $as_echo "$ac_try_echo") >&5
8844 (eval "$ac_link") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest$ac_exeext && {
8854 test "$cross_compiling" = yes ||
8855 $as_test_x conftest$ac_exeext
8857 ac_cv_lib_ssl_SSL_library_init=yes
8859 $as_echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_lib_ssl_SSL_library_init=no
8865 rm -rf conftest.dSYM
8866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8867 conftest$ac_exeext conftest.$ac_ext
8868 LIBS=$ac_check_lib_save_LIBS
8870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8871 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8872 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8873 cat >>confdefs.h <<_ACEOF
8874 #define HAVE_LIBSSL 1
8880 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8881 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8882 { (exit 1); exit 1; }; }
8887 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8888 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8889 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8890 $as_echo_n "(cached) " >&6
8892 ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-leay32 $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8907 char CRYPTO_new_ex_data ();
8911 return CRYPTO_new_ex_data ();
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8923 $as_echo "$ac_try_echo") >&5
8924 (eval "$ac_link") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest$ac_exeext && {
8934 test "$cross_compiling" = yes ||
8935 $as_test_x conftest$ac_exeext
8937 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8939 $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8945 rm -rf conftest.dSYM
8946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8951 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8952 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_LIBEAY32 1
8957 LIBS="-leay32 $LIBS"
8960 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8961 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8962 { (exit 1); exit 1; }; }
8966 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8967 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8968 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8969 $as_echo_n "(cached) " >&6
8971 ac_check_lib_save_LIBS=$LIBS
8972 LIBS="-lssleay32 $LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8980 /* Override any GCC internal prototype to avoid an error.
8981 Use char because int might match the return type of a GCC
8982 builtin and then its argument prototype would still apply. */
8986 char SSL_library_init ();
8990 return SSL_library_init ();
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (ac_try="$ac_link"
8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999 *) ac_try_echo=$ac_try;;
9001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9002 $as_echo "$ac_try_echo") >&5
9003 (eval "$ac_link") 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } && {
9010 test -z "$ac_c_werror_flag" ||
9011 test ! -s conftest.err
9012 } && test -s conftest$ac_exeext && {
9013 test "$cross_compiling" = yes ||
9014 $as_test_x conftest$ac_exeext
9016 ac_cv_lib_ssleay32_SSL_library_init=yes
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_cv_lib_ssleay32_SSL_library_init=no
9024 rm -rf conftest.dSYM
9025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026 conftest$ac_exeext conftest.$ac_ext
9027 LIBS=$ac_check_lib_save_LIBS
9029 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9030 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9031 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9032 cat >>confdefs.h <<_ACEOF
9033 #define HAVE_LIBSSLEAY32 1
9036 LIBS="-lssleay32 $LIBS"
9039 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9040 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9041 { (exit 1); exit 1; }; }
9047 if test "$with_pam" = yes ; then
9049 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9050 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9051 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9052 $as_echo_n "(cached) " >&6
9054 ac_check_lib_save_LIBS=$LIBS
9056 cat >conftest.$ac_ext <<_ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9063 /* Override any GCC internal prototype to avoid an error.
9064 Use char because int might match the return type of a GCC
9065 builtin and then its argument prototype would still apply. */
9073 return pam_start ();
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (ac_try="$ac_link"
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9085 $as_echo "$ac_try_echo") >&5
9086 (eval "$ac_link") 2>conftest.er1
9088 grep -v '^ *+' conftest.er1 >conftest.err
9090 cat conftest.err >&5
9091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } && {
9093 test -z "$ac_c_werror_flag" ||
9094 test ! -s conftest.err
9095 } && test -s conftest$ac_exeext && {
9096 test "$cross_compiling" = yes ||
9097 $as_test_x conftest$ac_exeext
9099 ac_cv_lib_pam_pam_start=yes
9101 $as_echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_lib_pam_pam_start=no
9107 rm -rf conftest.dSYM
9108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9109 conftest$ac_exeext conftest.$ac_ext
9110 LIBS=$ac_check_lib_save_LIBS
9112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9113 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9114 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_LIBPAM 1
9122 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9123 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9124 { (exit 1); exit 1; }; }
9129 if test "$with_libxml" = yes ; then
9131 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9132 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9133 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9134 $as_echo_n "(cached) " >&6
9136 ac_check_lib_save_LIBS=$LIBS
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9145 /* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9151 char xmlSaveToBuffer ();
9155 return xmlSaveToBuffer ();
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (ac_try="$ac_link"
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9167 $as_echo "$ac_try_echo") >&5
9168 (eval "$ac_link") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest$ac_exeext && {
9178 test "$cross_compiling" = yes ||
9179 $as_test_x conftest$ac_exeext
9181 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9183 $as_echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9186 ac_cv_lib_xml2_xmlSaveToBuffer=no
9189 rm -rf conftest.dSYM
9190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9191 conftest$ac_exeext conftest.$ac_ext
9192 LIBS=$ac_check_lib_save_LIBS
9194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9195 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9196 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_LIBXML2 1
9204 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9205 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9206 { (exit 1); exit 1; }; }
9211 if test "$with_libxslt" = yes ; then
9213 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9214 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9215 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9216 $as_echo_n "(cached) " >&6
9218 ac_check_lib_save_LIBS=$LIBS
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9227 /* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9233 char xsltCleanupGlobals ();
9237 return xsltCleanupGlobals ();
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (ac_try="$ac_link"
9245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246 *) ac_try_echo=$ac_try;;
9248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9249 $as_echo "$ac_try_echo") >&5
9250 (eval "$ac_link") 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest$ac_exeext && {
9260 test "$cross_compiling" = yes ||
9261 $as_test_x conftest$ac_exeext
9263 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9265 $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9268 ac_cv_lib_xslt_xsltCleanupGlobals=no
9271 rm -rf conftest.dSYM
9272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9277 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9278 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9279 cat >>confdefs.h <<_ACEOF
9280 #define HAVE_LIBXSLT 1
9286 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9287 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9288 { (exit 1); exit 1; }; }
9293 # for contrib/uuid-ossp
9294 if test "$with_ossp_uuid" = yes ; then
9295 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9296 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9297 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9298 $as_echo_n "(cached) " >&6
9300 ac_check_lib_save_LIBS=$LIBS
9301 LIBS="-lossp-uuid $LIBS"
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9309 /* Override any GCC internal prototype to avoid an error.
9310 Use char because int might match the return type of a GCC
9311 builtin and then its argument prototype would still apply. */
9315 char uuid_export ();
9319 return uuid_export ();
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (ac_try="$ac_link"
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9331 $as_echo "$ac_try_echo") >&5
9332 (eval "$ac_link") 2>conftest.er1
9334 grep -v '^ *+' conftest.er1 >conftest.err
9336 cat conftest.err >&5
9337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && {
9339 test -z "$ac_c_werror_flag" ||
9340 test ! -s conftest.err
9341 } && test -s conftest$ac_exeext && {
9342 test "$cross_compiling" = yes ||
9343 $as_test_x conftest$ac_exeext
9345 ac_cv_lib_ossp_uuid_uuid_export=yes
9347 $as_echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_cv_lib_ossp_uuid_uuid_export=no
9353 rm -rf conftest.dSYM
9354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9355 conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_lib_save_LIBS
9358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9359 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9360 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9361 OSSP_UUID_LIBS="-lossp-uuid"
9363 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9364 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9365 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9366 $as_echo_n "(cached) " >&6
9368 ac_check_lib_save_LIBS=$LIBS
9370 cat >conftest.$ac_ext <<_ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9377 /* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9383 char uuid_export ();
9387 return uuid_export ();
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9399 $as_echo "$ac_try_echo") >&5
9400 (eval "$ac_link") 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest$ac_exeext && {
9410 test "$cross_compiling" = yes ||
9411 $as_test_x conftest$ac_exeext
9413 ac_cv_lib_uuid_uuid_export=yes
9415 $as_echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_lib_uuid_uuid_export=no
9421 rm -rf conftest.dSYM
9422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423 conftest$ac_exeext conftest.$ac_ext
9424 LIBS=$ac_check_lib_save_LIBS
9426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9427 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9428 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9429 OSSP_UUID_LIBS="-luuid"
9431 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9432 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9433 { (exit 1); exit 1; }; }
9446 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9447 $as_echo_n "checking for ANSI C header files... " >&6; }
9448 if test "${ac_cv_header_stdc+set}" = set; then
9449 $as_echo_n "(cached) " >&6
9451 cat >conftest.$ac_ext <<_ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9477 $as_echo "$ac_try_echo") >&5
9478 (eval "$ac_compile") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest.$ac_objext; then
9488 ac_cv_header_stdc=yes
9490 $as_echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_cv_header_stdc=no
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 if test $ac_cv_header_stdc = yes; then
9499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9510 $EGREP "memchr" >/dev/null 2>&1; then
9513 ac_cv_header_stdc=no
9519 if test $ac_cv_header_stdc = yes; then
9520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531 $EGREP "free" >/dev/null 2>&1; then
9534 ac_cv_header_stdc=no
9540 if test $ac_cv_header_stdc = yes; then
9541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9542 if test "$cross_compiling" = yes; then
9545 cat >conftest.$ac_ext <<_ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9553 #if ((' ' & 0x0FF) == 0x020)
9554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9557 # define ISLOWER(c) \
9558 (('a' <= (c) && (c) <= 'i') \
9559 || ('j' <= (c) && (c) <= 'r') \
9560 || ('s' <= (c) && (c) <= 'z'))
9561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9569 for (i = 0; i < 256; i++)
9570 if (XOR (islower (i), ISLOWER (i))
9571 || toupper (i) != TOUPPER (i))
9576 rm -f conftest$ac_exeext
9577 if { (ac_try="$ac_link"
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583 $as_echo "$ac_try_echo") >&5
9584 (eval "$ac_link") 2>&5
9586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9593 $as_echo "$ac_try_echo") >&5
9594 (eval "$ac_try") 2>&5
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9600 $as_echo "$as_me: program exited with status $ac_status" >&5
9601 $as_echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_header_stdc=no
9607 rm -rf conftest.dSYM
9608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9614 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9615 $as_echo "$ac_cv_header_stdc" >&6; }
9616 if test $ac_cv_header_stdc = yes; then
9618 cat >>confdefs.h <<\_ACEOF
9619 #define STDC_HEADERS 1
9624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9635 inttypes.h stdint.h unistd.h
9637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 $as_echo_n "checking for $ac_header... " >&6; }
9640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9641 $as_echo_n "(cached) " >&6
9643 cat >conftest.$ac_ext <<_ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 $ac_includes_default
9651 #include <$ac_header>
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661 (eval "$ac_compile") 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest.$ac_objext; then
9671 eval "$as_ac_Header=yes"
9673 $as_echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 eval "$as_ac_Header=no"
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 ac_res=`eval 'as_val=${'$as_ac_Header'}
9682 $as_echo "$as_val"'`
9683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9684 $as_echo "$ac_res" >&6; }
9685 as_val=`eval 'as_val=${'$as_ac_Header'}
9686 $as_echo "$as_val"'`
9687 if test "x$as_val" = x""yes; then
9688 cat >>confdefs.h <<_ACEOF
9689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 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
9729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 $as_echo_n "checking for $ac_header... " >&6; }
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734 $as_echo_n "(cached) " >&6
9736 ac_res=`eval 'as_val=${'$as_ac_Header'}
9737 $as_echo "$as_val"'`
9738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9739 $as_echo "$ac_res" >&6; }
9741 # Is the header compilable?
9742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 $as_echo_n "checking $ac_header usability... " >&6; }
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 #include <$ac_header>
9753 rm -f conftest.$ac_objext
9754 if { (ac_try="$ac_compile"
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761 (eval "$ac_compile") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest.$ac_objext; then
9771 ac_header_compiler=yes
9773 $as_echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_header_compiler=no
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 $as_echo "$ac_header_compiler" >&6; }
9783 # Is the header present?
9784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 $as_echo_n "checking $ac_header presence... " >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <$ac_header>
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800 $as_echo "$ac_try_echo") >&5
9801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null && {
9808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9811 ac_header_preproc=yes
9813 $as_echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_header_preproc=no
9819 rm -f conftest.err conftest.$ac_ext
9820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 $as_echo "$ac_header_preproc" >&6; }
9823 # So? What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830 ac_header_preproc=yes
9833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9846 ## ---------------------------------------- ##
9847 ## Report this to pgsql-bugs@postgresql.org ##
9848 ## ---------------------------------------- ##
9850 ) | sed "s/^/$as_me: WARNING: /" >&2
9853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 $as_echo_n "checking for $ac_header... " >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 $as_echo_n "(cached) " >&6
9858 eval "$as_ac_Header=\$ac_header_preproc"
9860 ac_res=`eval 'as_val=${'$as_ac_Header'}
9861 $as_echo "$as_val"'`
9862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9863 $as_echo "$ac_res" >&6; }
9866 as_val=`eval 'as_val=${'$as_ac_Header'}
9867 $as_echo "$as_val"'`
9868 if test "x$as_val" = x""yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9878 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9879 # is included first.
9881 for ac_header in net/if.h
9883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 $as_echo_n "checking for $ac_header... " >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 $as_echo_n "(cached) " >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 $ac_includes_default
9896 #ifdef HAVE_SYS_SOCKET_H
9897 #include <sys/socket.h>
9901 #include <$ac_header>
9903 rm -f conftest.$ac_objext
9904 if { (ac_try="$ac_compile"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9910 $as_echo "$ac_try_echo") >&5
9911 (eval "$ac_compile") 2>conftest.er1
9913 grep -v '^ *+' conftest.er1 >conftest.err
9915 cat conftest.err >&5
9916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && {
9918 test -z "$ac_c_werror_flag" ||
9919 test ! -s conftest.err
9920 } && test -s conftest.$ac_objext; then
9921 eval "$as_ac_Header=yes"
9923 $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 eval "$as_ac_Header=no"
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 ac_res=`eval 'as_val=${'$as_ac_Header'}
9932 $as_echo "$as_val"'`
9933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9934 $as_echo "$ac_res" >&6; }
9935 as_val=`eval 'as_val=${'$as_ac_Header'}
9936 $as_echo "$as_val"'`
9937 if test "x$as_val" = x""yes; then
9938 cat >>confdefs.h <<_ACEOF
9939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9947 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9948 # netinet/in.h is included first.
9950 for ac_header in netinet/in.h
9952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 $as_echo_n "checking for $ac_header... " >&6; }
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957 $as_echo_n "(cached) " >&6
9959 ac_res=`eval 'as_val=${'$as_ac_Header'}
9960 $as_echo "$as_val"'`
9961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9962 $as_echo "$ac_res" >&6; }
9964 # Is the header compilable?
9965 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9966 $as_echo_n "checking $ac_header usability... " >&6; }
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9973 $ac_includes_default
9974 #include <$ac_header>
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9983 $as_echo "$ac_try_echo") >&5
9984 (eval "$ac_compile") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest.$ac_objext; then
9994 ac_header_compiler=yes
9996 $as_echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 ac_header_compiler=no
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 $as_echo "$ac_header_compiler" >&6; }
10006 # Is the header present?
10007 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10008 $as_echo_n "checking $ac_header presence... " >&6; }
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 #include <$ac_header>
10017 if { (ac_try="$ac_cpp conftest.$ac_ext"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10023 $as_echo "$ac_try_echo") >&5
10024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } >/dev/null && {
10031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10034 ac_header_preproc=yes
10036 $as_echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_header_preproc=no
10042 rm -f conftest.err conftest.$ac_ext
10043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 $as_echo "$ac_header_preproc" >&6; }
10046 # So? What about this header?
10047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10050 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10053 ac_header_preproc=yes
10056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10057 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10059 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10061 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10063 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10067 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10069 ## ---------------------------------------- ##
10070 ## Report this to pgsql-bugs@postgresql.org ##
10071 ## ---------------------------------------- ##
10073 ) | sed "s/^/$as_me: WARNING: /" >&2
10076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10077 $as_echo_n "checking for $ac_header... " >&6; }
10078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079 $as_echo_n "(cached) " >&6
10081 eval "$as_ac_Header=\$ac_header_preproc"
10083 ac_res=`eval 'as_val=${'$as_ac_Header'}
10084 $as_echo "$as_val"'`
10085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10086 $as_echo "$ac_res" >&6; }
10089 as_val=`eval 'as_val=${'$as_ac_Header'}
10090 $as_echo "$as_val"'`
10091 if test "x$as_val" = x""yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10101 for ac_header in netinet/tcp.h
10103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10105 $as_echo_n "checking for $ac_header... " >&6; }
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 $as_echo_n "(cached) " >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 #ifdef HAVE_NETINET_IN_H
10117 #include <netinet/in.h>
10121 #include <$ac_header>
10123 rm -f conftest.$ac_objext
10124 if { (ac_try="$ac_compile"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10130 $as_echo "$ac_try_echo") >&5
10131 (eval "$ac_compile") 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest.$ac_objext; then
10141 eval "$as_ac_Header=yes"
10143 $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 eval "$as_ac_Header=no"
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 ac_res=`eval 'as_val=${'$as_ac_Header'}
10152 $as_echo "$as_val"'`
10153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10155 as_val=`eval 'as_val=${'$as_ac_Header'}
10156 $as_echo "$as_val"'`
10157 if test "x$as_val" = x""yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10167 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10169 for ac_header in readline/readline.h
10171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10174 $as_echo_n "checking for $ac_header... " >&6; }
10175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10176 $as_echo_n "(cached) " >&6
10178 ac_res=`eval 'as_val=${'$as_ac_Header'}
10179 $as_echo "$as_val"'`
10180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10181 $as_echo "$ac_res" >&6; }
10183 # Is the header compilable?
10184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10185 $as_echo_n "checking $ac_header usability... " >&6; }
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 $ac_includes_default
10193 #include <$ac_header>
10195 rm -f conftest.$ac_objext
10196 if { (ac_try="$ac_compile"
10197 case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203 (eval "$ac_compile") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest.$ac_objext; then
10213 ac_header_compiler=yes
10215 $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_header_compiler=no
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10223 $as_echo "$ac_header_compiler" >&6; }
10225 # Is the header present?
10226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10227 $as_echo_n "checking $ac_header presence... " >&6; }
10228 cat >conftest.$ac_ext <<_ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 #include <$ac_header>
10236 if { (ac_try="$ac_cpp conftest.$ac_ext"
10237 case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10242 $as_echo "$ac_try_echo") >&5
10243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } >/dev/null && {
10250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10253 ac_header_preproc=yes
10255 $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_header_preproc=no
10261 rm -f conftest.err conftest.$ac_ext
10262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10263 $as_echo "$ac_header_preproc" >&6; }
10265 # So? What about this header?
10266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10272 ac_header_preproc=yes
10275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10288 ## ---------------------------------------- ##
10289 ## Report this to pgsql-bugs@postgresql.org ##
10290 ## ---------------------------------------- ##
10292 ) | sed "s/^/$as_me: WARNING: /" >&2
10295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10296 $as_echo_n "checking for $ac_header... " >&6; }
10297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 $as_echo_n "(cached) " >&6
10300 eval "$as_ac_Header=\$ac_header_preproc"
10302 ac_res=`eval 'as_val=${'$as_ac_Header'}
10303 $as_echo "$as_val"'`
10304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10305 $as_echo "$ac_res" >&6; }
10308 as_val=`eval 'as_val=${'$as_ac_Header'}
10309 $as_echo "$as_val"'`
10310 if test "x$as_val" = x""yes; then
10311 cat >>confdefs.h <<_ACEOF
10312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10317 for ac_header in readline.h
10319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 $as_echo_n "checking for $ac_header... " >&6; }
10323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10324 $as_echo_n "(cached) " >&6
10326 ac_res=`eval 'as_val=${'$as_ac_Header'}
10327 $as_echo "$as_val"'`
10328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10329 $as_echo "$ac_res" >&6; }
10331 # Is the header compilable?
10332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10333 $as_echo_n "checking $ac_header usability... " >&6; }
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10340 $ac_includes_default
10341 #include <$ac_header>
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10350 $as_echo "$ac_try_echo") >&5
10351 (eval "$ac_compile") 2>conftest.er1
10353 grep -v '^ *+' conftest.er1 >conftest.err
10355 cat conftest.err >&5
10356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && {
10358 test -z "$ac_c_werror_flag" ||
10359 test ! -s conftest.err
10360 } && test -s conftest.$ac_objext; then
10361 ac_header_compiler=yes
10363 $as_echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_header_compiler=no
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10371 $as_echo "$ac_header_compiler" >&6; }
10373 # Is the header present?
10374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10375 $as_echo_n "checking $ac_header presence... " >&6; }
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 #include <$ac_header>
10384 if { (ac_try="$ac_cpp conftest.$ac_ext"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10390 $as_echo "$ac_try_echo") >&5
10391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10393 grep -v '^ *+' conftest.er1 >conftest.err
10395 cat conftest.err >&5
10396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } >/dev/null && {
10398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10401 ac_header_preproc=yes
10403 $as_echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_header_preproc=no
10409 rm -f conftest.err conftest.$ac_ext
10410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10411 $as_echo "$ac_header_preproc" >&6; }
10413 # So? What about this header?
10414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10420 ac_header_preproc=yes
10423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10436 ## ---------------------------------------- ##
10437 ## Report this to pgsql-bugs@postgresql.org ##
10438 ## ---------------------------------------- ##
10440 ) | sed "s/^/$as_me: WARNING: /" >&2
10443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 $as_echo_n "checking for $ac_header... " >&6; }
10445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10446 $as_echo_n "(cached) " >&6
10448 eval "$as_ac_Header=\$ac_header_preproc"
10450 ac_res=`eval 'as_val=${'$as_ac_Header'}
10451 $as_echo "$as_val"'`
10452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10453 $as_echo "$ac_res" >&6; }
10456 as_val=`eval 'as_val=${'$as_ac_Header'}
10457 $as_echo "$as_val"'`
10458 if test "x$as_val" = x""yes; then
10459 cat >>confdefs.h <<_ACEOF
10460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10464 { { $as_echo "$as_me:$LINENO: error: readline header not found
10465 If you have readline already installed, see config.log for details on the
10466 failure. It is possible the compiler isn't looking in the proper directory.
10467 Use --without-readline to disable readline support." >&5
10468 $as_echo "$as_me: error: readline header not found
10469 If you have readline already installed, see config.log for details on the
10470 failure. It is possible the compiler isn't looking in the proper directory.
10471 Use --without-readline to disable readline support." >&2;}
10472 { (exit 1); exit 1; }; }
10482 for ac_header in readline/history.h
10484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10486 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10487 $as_echo_n "checking for $ac_header... " >&6; }
10488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10489 $as_echo_n "(cached) " >&6
10491 ac_res=`eval 'as_val=${'$as_ac_Header'}
10492 $as_echo "$as_val"'`
10493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10494 $as_echo "$ac_res" >&6; }
10496 # Is the header compilable?
10497 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498 $as_echo_n "checking $ac_header usability... " >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10506 #include <$ac_header>
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10515 $as_echo "$ac_try_echo") >&5
10516 (eval "$ac_compile") 2>conftest.er1
10518 grep -v '^ *+' conftest.er1 >conftest.err
10520 cat conftest.err >&5
10521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } && {
10523 test -z "$ac_c_werror_flag" ||
10524 test ! -s conftest.err
10525 } && test -s conftest.$ac_objext; then
10526 ac_header_compiler=yes
10528 $as_echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 ac_header_compiler=no
10534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10536 $as_echo "$ac_header_compiler" >&6; }
10538 # Is the header present?
10539 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10540 $as_echo_n "checking $ac_header presence... " >&6; }
10541 cat >conftest.$ac_ext <<_ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 #include <$ac_header>
10549 if { (ac_try="$ac_cpp conftest.$ac_ext"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10555 $as_echo "$ac_try_echo") >&5
10556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10558 grep -v '^ *+' conftest.er1 >conftest.err
10560 cat conftest.err >&5
10561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } >/dev/null && {
10563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10566 ac_header_preproc=yes
10568 $as_echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_header_preproc=no
10574 rm -f conftest.err conftest.$ac_ext
10575 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10576 $as_echo "$ac_header_preproc" >&6; }
10578 # So? What about this header?
10579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10582 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10584 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10585 ac_header_preproc=yes
10588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10589 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10591 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10593 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10595 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10597 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10599 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10601 ## ---------------------------------------- ##
10602 ## Report this to pgsql-bugs@postgresql.org ##
10603 ## ---------------------------------------- ##
10605 ) | sed "s/^/$as_me: WARNING: /" >&2
10608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10609 $as_echo_n "checking for $ac_header... " >&6; }
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611 $as_echo_n "(cached) " >&6
10613 eval "$as_ac_Header=\$ac_header_preproc"
10615 ac_res=`eval 'as_val=${'$as_ac_Header'}
10616 $as_echo "$as_val"'`
10617 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10618 $as_echo "$ac_res" >&6; }
10621 as_val=`eval 'as_val=${'$as_ac_Header'}
10622 $as_echo "$as_val"'`
10623 if test "x$as_val" = x""yes; then
10624 cat >>confdefs.h <<_ACEOF
10625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10630 for ac_header in history.h
10632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 $as_echo_n "checking for $ac_header... " >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637 $as_echo_n "(cached) " >&6
10639 ac_res=`eval 'as_val=${'$as_ac_Header'}
10640 $as_echo "$as_val"'`
10641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10642 $as_echo "$ac_res" >&6; }
10644 # Is the header compilable?
10645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10646 $as_echo_n "checking $ac_header usability... " >&6; }
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 $ac_includes_default
10654 #include <$ac_header>
10656 rm -f conftest.$ac_objext
10657 if { (ac_try="$ac_compile"
10658 case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10663 $as_echo "$ac_try_echo") >&5
10664 (eval "$ac_compile") 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && {
10671 test -z "$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10673 } && test -s conftest.$ac_objext; then
10674 ac_header_compiler=yes
10676 $as_echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_header_compiler=no
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10684 $as_echo "$ac_header_compiler" >&6; }
10686 # Is the header present?
10687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10688 $as_echo_n "checking $ac_header presence... " >&6; }
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 #include <$ac_header>
10697 if { (ac_try="$ac_cpp conftest.$ac_ext"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } >/dev/null && {
10711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10714 ac_header_preproc=yes
10716 $as_echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_header_preproc=no
10722 rm -f conftest.err conftest.$ac_ext
10723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724 $as_echo "$ac_header_preproc" >&6; }
10726 # So? What about this header?
10727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10733 ac_header_preproc=yes
10736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10739 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10743 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10749 ## ---------------------------------------- ##
10750 ## Report this to pgsql-bugs@postgresql.org ##
10751 ## ---------------------------------------- ##
10753 ) | sed "s/^/$as_me: WARNING: /" >&2
10756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 $as_echo_n "checking for $ac_header... " >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 $as_echo_n "(cached) " >&6
10761 eval "$as_ac_Header=\$ac_header_preproc"
10763 ac_res=`eval 'as_val=${'$as_ac_Header'}
10764 $as_echo "$as_val"'`
10765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10766 $as_echo "$ac_res" >&6; }
10769 as_val=`eval 'as_val=${'$as_ac_Header'}
10770 $as_echo "$as_val"'`
10771 if test "x$as_val" = x""yes; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10777 { { $as_echo "$as_me:$LINENO: error: history header not found
10778 If you have readline already installed, see config.log for details on the
10779 failure. It is possible the compiler isn't looking in the proper directory.
10780 Use --without-readline to disable readline support." >&5
10781 $as_echo "$as_me: error: history header not found
10782 If you have readline already installed, see config.log for details on the
10783 failure. It is possible the compiler isn't looking in the proper directory.
10784 Use --without-readline to disable readline support." >&2;}
10785 { (exit 1); exit 1; }; }
10796 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10797 # Some installations of libedit usurp /usr/include/readline/, which seems
10798 # bad practice, since in combined installations readline will have its headers
10799 # there. We might have to resort to AC_EGREP checks to make sure we found
10800 # the proper header...
10802 for ac_header in editline/readline.h
10804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10807 $as_echo_n "checking for $ac_header... " >&6; }
10808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809 $as_echo_n "(cached) " >&6
10811 ac_res=`eval 'as_val=${'$as_ac_Header'}
10812 $as_echo "$as_val"'`
10813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10814 $as_echo "$ac_res" >&6; }
10816 # Is the header compilable?
10817 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 $as_echo_n "checking $ac_header usability... " >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10826 #include <$ac_header>
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10846 ac_header_compiler=yes
10848 $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_header_compiler=no
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10856 $as_echo "$ac_header_compiler" >&6; }
10858 # Is the header present?
10859 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10860 $as_echo_n "checking $ac_header presence... " >&6; }
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 #include <$ac_header>
10869 if { (ac_try="$ac_cpp conftest.$ac_ext"
10870 case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10875 $as_echo "$ac_try_echo") >&5
10876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } >/dev/null && {
10883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10886 ac_header_preproc=yes
10888 $as_echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_header_preproc=no
10894 rm -f conftest.err conftest.$ac_ext
10895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10896 $as_echo "$ac_header_preproc" >&6; }
10898 # So? What about this header?
10899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10902 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10905 ac_header_preproc=yes
10908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10909 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10911 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10913 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10915 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10921 ## ---------------------------------------- ##
10922 ## Report this to pgsql-bugs@postgresql.org ##
10923 ## ---------------------------------------- ##
10925 ) | sed "s/^/$as_me: WARNING: /" >&2
10928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10929 $as_echo_n "checking for $ac_header... " >&6; }
10930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10931 $as_echo_n "(cached) " >&6
10933 eval "$as_ac_Header=\$ac_header_preproc"
10935 ac_res=`eval 'as_val=${'$as_ac_Header'}
10936 $as_echo "$as_val"'`
10937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10938 $as_echo "$ac_res" >&6; }
10941 as_val=`eval 'as_val=${'$as_ac_Header'}
10942 $as_echo "$as_val"'`
10943 if test "x$as_val" = x""yes; then
10944 cat >>confdefs.h <<_ACEOF
10945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10950 for ac_header in readline.h
10952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10955 $as_echo_n "checking for $ac_header... " >&6; }
10956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10957 $as_echo_n "(cached) " >&6
10959 ac_res=`eval 'as_val=${'$as_ac_Header'}
10960 $as_echo "$as_val"'`
10961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10962 $as_echo "$ac_res" >&6; }
10964 # Is the header compilable?
10965 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10966 $as_echo_n "checking $ac_header usability... " >&6; }
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 $ac_includes_default
10974 #include <$ac_header>
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10983 $as_echo "$ac_try_echo") >&5
10984 (eval "$ac_compile") 2>conftest.er1
10986 grep -v '^ *+' conftest.er1 >conftest.err
10988 cat conftest.err >&5
10989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest.$ac_objext; then
10994 ac_header_compiler=yes
10996 $as_echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 ac_header_compiler=no
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11004 $as_echo "$ac_header_compiler" >&6; }
11006 # Is the header present?
11007 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11008 $as_echo_n "checking $ac_header presence... " >&6; }
11009 cat >conftest.$ac_ext <<_ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 #include <$ac_header>
11017 if { (ac_try="$ac_cpp conftest.$ac_ext"
11018 case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11023 $as_echo "$ac_try_echo") >&5
11024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } >/dev/null && {
11031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11034 ac_header_preproc=yes
11036 $as_echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_header_preproc=no
11042 rm -f conftest.err conftest.$ac_ext
11043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11044 $as_echo "$ac_header_preproc" >&6; }
11046 # So? What about this header?
11047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11050 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11053 ac_header_preproc=yes
11056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11057 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11059 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11061 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11063 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11067 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11069 ## ---------------------------------------- ##
11070 ## Report this to pgsql-bugs@postgresql.org ##
11071 ## ---------------------------------------- ##
11073 ) | sed "s/^/$as_me: WARNING: /" >&2
11076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 $as_echo_n "checking for $ac_header... " >&6; }
11078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079 $as_echo_n "(cached) " >&6
11081 eval "$as_ac_Header=\$ac_header_preproc"
11083 ac_res=`eval 'as_val=${'$as_ac_Header'}
11084 $as_echo "$as_val"'`
11085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11086 $as_echo "$ac_res" >&6; }
11089 as_val=`eval 'as_val=${'$as_ac_Header'}
11090 $as_echo "$as_val"'`
11091 if test "x$as_val" = x""yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11098 for ac_header in readline/readline.h
11100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11103 $as_echo_n "checking for $ac_header... " >&6; }
11104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11105 $as_echo_n "(cached) " >&6
11107 ac_res=`eval 'as_val=${'$as_ac_Header'}
11108 $as_echo "$as_val"'`
11109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11110 $as_echo "$ac_res" >&6; }
11112 # Is the header compilable?
11113 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11114 $as_echo_n "checking $ac_header usability... " >&6; }
11115 cat >conftest.$ac_ext <<_ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 $ac_includes_default
11122 #include <$ac_header>
11124 rm -f conftest.$ac_objext
11125 if { (ac_try="$ac_compile"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131 $as_echo "$ac_try_echo") >&5
11132 (eval "$ac_compile") 2>conftest.er1
11134 grep -v '^ *+' conftest.er1 >conftest.err
11136 cat conftest.err >&5
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest.$ac_objext; then
11142 ac_header_compiler=yes
11144 $as_echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_header_compiler=no
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 $as_echo "$ac_header_compiler" >&6; }
11154 # Is the header present?
11155 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 $as_echo_n "checking $ac_header presence... " >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <$ac_header>
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11171 $as_echo "$ac_try_echo") >&5
11172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11174 grep -v '^ *+' conftest.er1 >conftest.err
11176 cat conftest.err >&5
11177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } >/dev/null && {
11179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11180 test ! -s conftest.err
11182 ac_header_preproc=yes
11184 $as_echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_header_preproc=no
11190 rm -f conftest.err conftest.$ac_ext
11191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11192 $as_echo "$ac_header_preproc" >&6; }
11194 # So? What about this header?
11195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11198 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11201 ac_header_preproc=yes
11204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11207 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11209 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11211 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11215 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11217 ## ---------------------------------------- ##
11218 ## Report this to pgsql-bugs@postgresql.org ##
11219 ## ---------------------------------------- ##
11221 ) | sed "s/^/$as_me: WARNING: /" >&2
11224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11225 $as_echo_n "checking for $ac_header... " >&6; }
11226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227 $as_echo_n "(cached) " >&6
11229 eval "$as_ac_Header=\$ac_header_preproc"
11231 ac_res=`eval 'as_val=${'$as_ac_Header'}
11232 $as_echo "$as_val"'`
11233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11234 $as_echo "$ac_res" >&6; }
11237 as_val=`eval 'as_val=${'$as_ac_Header'}
11238 $as_echo "$as_val"'`
11239 if test "x$as_val" = x""yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 { { $as_echo "$as_me:$LINENO: error: readline header not found
11246 If you have libedit already installed, see config.log for details on the
11247 failure. It is possible the compiler isn't looking in the proper directory.
11248 Use --without-readline to disable libedit support." >&5
11249 $as_echo "$as_me: error: readline header not found
11250 If you have libedit already installed, see config.log for details on the
11251 failure. It is possible the compiler isn't looking in the proper directory.
11252 Use --without-readline to disable libedit support." >&2;}
11253 { (exit 1); exit 1; }; }
11266 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11267 # not be there at all. Hence, don't complain if not found. We must check
11268 # though, since in yet other versions it is an independent header.
11270 for ac_header in editline/history.h
11272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 $as_echo_n "checking for $ac_header... " >&6; }
11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277 $as_echo_n "(cached) " >&6
11279 ac_res=`eval 'as_val=${'$as_ac_Header'}
11280 $as_echo "$as_val"'`
11281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11282 $as_echo "$ac_res" >&6; }
11284 # Is the header compilable?
11285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11286 $as_echo_n "checking $ac_header usability... " >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 $ac_includes_default
11294 #include <$ac_header>
11296 rm -f conftest.$ac_objext
11297 if { (ac_try="$ac_compile"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11303 $as_echo "$ac_try_echo") >&5
11304 (eval "$ac_compile") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest.$ac_objext; then
11314 ac_header_compiler=yes
11316 $as_echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_header_compiler=no
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 $as_echo "$ac_header_compiler" >&6; }
11326 # Is the header present?
11327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 $as_echo_n "checking $ac_header presence... " >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <$ac_header>
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } >/dev/null && {
11351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11354 ac_header_preproc=yes
11356 $as_echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_preproc=no
11362 rm -f conftest.err conftest.$ac_ext
11363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 $as_echo "$ac_header_preproc" >&6; }
11366 # So? What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11379 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11383 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 ## ---------------------------------------- ##
11390 ## Report this to pgsql-bugs@postgresql.org ##
11391 ## ---------------------------------------- ##
11393 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 $as_echo_n "checking for $ac_header... " >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 $as_echo_n "(cached) " >&6
11401 eval "$as_ac_Header=\$ac_header_preproc"
11403 ac_res=`eval 'as_val=${'$as_ac_Header'}
11404 $as_echo "$as_val"'`
11405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11406 $as_echo "$ac_res" >&6; }
11409 as_val=`eval 'as_val=${'$as_ac_Header'}
11410 $as_echo "$as_val"'`
11411 if test "x$as_val" = x""yes; then
11412 cat >>confdefs.h <<_ACEOF
11413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418 for ac_header in history.h
11420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 $as_echo_n "checking for $ac_header... " >&6; }
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 $as_echo_n "(cached) " >&6
11427 ac_res=`eval 'as_val=${'$as_ac_Header'}
11428 $as_echo "$as_val"'`
11429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11430 $as_echo "$ac_res" >&6; }
11432 # Is the header compilable?
11433 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11434 $as_echo_n "checking $ac_header usability... " >&6; }
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 $ac_includes_default
11442 #include <$ac_header>
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11451 $as_echo "$ac_try_echo") >&5
11452 (eval "$ac_compile") 2>conftest.er1
11454 grep -v '^ *+' conftest.er1 >conftest.err
11456 cat conftest.err >&5
11457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } && {
11459 test -z "$ac_c_werror_flag" ||
11460 test ! -s conftest.err
11461 } && test -s conftest.$ac_objext; then
11462 ac_header_compiler=yes
11464 $as_echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_header_compiler=no
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472 $as_echo "$ac_header_compiler" >&6; }
11474 # Is the header present?
11475 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476 $as_echo_n "checking $ac_header presence... " >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 #include <$ac_header>
11485 if { (ac_try="$ac_cpp conftest.$ac_ext"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11491 $as_echo "$ac_try_echo") >&5
11492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } >/dev/null && {
11499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11500 test ! -s conftest.err
11502 ac_header_preproc=yes
11504 $as_echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ac_header_preproc=no
11510 rm -f conftest.err conftest.$ac_ext
11511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512 $as_echo "$ac_header_preproc" >&6; }
11514 # So? What about this header?
11515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521 ac_header_preproc=yes
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11527 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11531 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11537 ## ---------------------------------------- ##
11538 ## Report this to pgsql-bugs@postgresql.org ##
11539 ## ---------------------------------------- ##
11541 ) | sed "s/^/$as_me: WARNING: /" >&2
11544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11545 $as_echo_n "checking for $ac_header... " >&6; }
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547 $as_echo_n "(cached) " >&6
11549 eval "$as_ac_Header=\$ac_header_preproc"
11551 ac_res=`eval 'as_val=${'$as_ac_Header'}
11552 $as_echo "$as_val"'`
11553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11554 $as_echo "$ac_res" >&6; }
11557 as_val=`eval 'as_val=${'$as_ac_Header'}
11558 $as_echo "$as_val"'`
11559 if test "x$as_val" = x""yes; then
11560 cat >>confdefs.h <<_ACEOF
11561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 for ac_header in readline/history.h
11568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 $as_echo_n "checking for $ac_header... " >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 $as_echo_n "(cached) " >&6
11575 ac_res=`eval 'as_val=${'$as_ac_Header'}
11576 $as_echo "$as_val"'`
11577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11578 $as_echo "$ac_res" >&6; }
11580 # Is the header compilable?
11581 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582 $as_echo_n "checking $ac_header usability... " >&6; }
11583 cat >conftest.$ac_ext <<_ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589 $ac_includes_default
11590 #include <$ac_header>
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599 $as_echo "$ac_try_echo") >&5
11600 (eval "$ac_compile") 2>conftest.er1
11602 grep -v '^ *+' conftest.er1 >conftest.err
11604 cat conftest.err >&5
11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest.$ac_objext; then
11610 ac_header_compiler=yes
11612 $as_echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_header_compiler=no
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 $as_echo "$ac_header_compiler" >&6; }
11622 # Is the header present?
11623 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11624 $as_echo_n "checking $ac_header presence... " >&6; }
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <$ac_header>
11633 if { (ac_try="$ac_cpp conftest.$ac_ext"
11634 case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11639 $as_echo "$ac_try_echo") >&5
11640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } >/dev/null && {
11647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11650 ac_header_preproc=yes
11652 $as_echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_preproc=no
11658 rm -f conftest.err conftest.$ac_ext
11659 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 $as_echo "$ac_header_preproc" >&6; }
11662 # So? What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669 ac_header_preproc=yes
11672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11675 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11679 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11685 ## ---------------------------------------- ##
11686 ## Report this to pgsql-bugs@postgresql.org ##
11687 ## ---------------------------------------- ##
11689 ) | sed "s/^/$as_me: WARNING: /" >&2
11692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 $as_echo_n "checking for $ac_header... " >&6; }
11694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11695 $as_echo_n "(cached) " >&6
11697 eval "$as_ac_Header=\$ac_header_preproc"
11699 ac_res=`eval 'as_val=${'$as_ac_Header'}
11700 $as_echo "$as_val"'`
11701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11702 $as_echo "$ac_res" >&6; }
11705 as_val=`eval 'as_val=${'$as_ac_Header'}
11706 $as_echo "$as_val"'`
11707 if test "x$as_val" = x""yes; then
11708 cat >>confdefs.h <<_ACEOF
11709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726 if test "$with_zlib" = yes; then
11727 if test "${ac_cv_header_zlib_h+set}" = set; then
11728 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11729 $as_echo_n "checking for zlib.h... " >&6; }
11730 if test "${ac_cv_header_zlib_h+set}" = set; then
11731 $as_echo_n "(cached) " >&6
11733 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11734 $as_echo "$ac_cv_header_zlib_h" >&6; }
11736 # Is the header compilable?
11737 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11738 $as_echo_n "checking zlib.h usability... " >&6; }
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 $ac_includes_default
11748 rm -f conftest.$ac_objext
11749 if { (ac_try="$ac_compile"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11755 $as_echo "$ac_try_echo") >&5
11756 (eval "$ac_compile") 2>conftest.er1
11758 grep -v '^ *+' conftest.er1 >conftest.err
11760 cat conftest.err >&5
11761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && {
11763 test -z "$ac_c_werror_flag" ||
11764 test ! -s conftest.err
11765 } && test -s conftest.$ac_objext; then
11766 ac_header_compiler=yes
11768 $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_header_compiler=no
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11776 $as_echo "$ac_header_compiler" >&6; }
11778 # Is the header present?
11779 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11780 $as_echo_n "checking zlib.h presence... " >&6; }
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11789 if { (ac_try="$ac_cpp conftest.$ac_ext"
11790 case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11795 $as_echo "$ac_try_echo") >&5
11796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } >/dev/null && {
11803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11806 ac_header_preproc=yes
11808 $as_echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_header_preproc=no
11814 rm -f conftest.err conftest.$ac_ext
11815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11816 $as_echo "$ac_header_preproc" >&6; }
11818 # So? What about this header?
11819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11821 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11822 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11823 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11824 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11825 ac_header_preproc=yes
11828 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11829 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11830 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11831 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11832 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11833 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11834 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11835 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11836 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11837 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11838 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11839 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11841 ## ---------------------------------------- ##
11842 ## Report this to pgsql-bugs@postgresql.org ##
11843 ## ---------------------------------------- ##
11845 ) | sed "s/^/$as_me: WARNING: /" >&2
11848 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11849 $as_echo_n "checking for zlib.h... " >&6; }
11850 if test "${ac_cv_header_zlib_h+set}" = set; then
11851 $as_echo_n "(cached) " >&6
11853 ac_cv_header_zlib_h=$ac_header_preproc
11855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11856 $as_echo "$ac_cv_header_zlib_h" >&6; }
11859 if test "x$ac_cv_header_zlib_h" = x""yes; then
11862 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11863 If you have zlib already installed, see config.log for details on the
11864 failure. It is possible the compiler isn't looking in the proper directory.
11865 Use --without-zlib to disable zlib support." >&5
11866 $as_echo "$as_me: error: zlib header not found
11867 If you have zlib already installed, see config.log for details on the
11868 failure. It is possible the compiler isn't looking in the proper directory.
11869 Use --without-zlib to disable zlib support." >&2;}
11870 { (exit 1); exit 1; }; }
11876 if test "$with_gssapi" = yes ; then
11878 for ac_header in gssapi/gssapi.h
11880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11883 $as_echo_n "checking for $ac_header... " >&6; }
11884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11885 $as_echo_n "(cached) " >&6
11887 ac_res=`eval 'as_val=${'$as_ac_Header'}
11888 $as_echo "$as_val"'`
11889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11890 $as_echo "$ac_res" >&6; }
11892 # Is the header compilable?
11893 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11894 $as_echo_n "checking $ac_header usability... " >&6; }
11895 cat >conftest.$ac_ext <<_ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 $ac_includes_default
11902 #include <$ac_header>
11904 rm -f conftest.$ac_objext
11905 if { (ac_try="$ac_compile"
11906 case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11911 $as_echo "$ac_try_echo") >&5
11912 (eval "$ac_compile") 2>conftest.er1
11914 grep -v '^ *+' conftest.er1 >conftest.err
11916 cat conftest.err >&5
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } && {
11919 test -z "$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 } && test -s conftest.$ac_objext; then
11922 ac_header_compiler=yes
11924 $as_echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_header_compiler=no
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11932 $as_echo "$ac_header_compiler" >&6; }
11934 # Is the header present?
11935 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11936 $as_echo_n "checking $ac_header presence... " >&6; }
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 #include <$ac_header>
11945 if { (ac_try="$ac_cpp conftest.$ac_ext"
11946 case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11951 $as_echo "$ac_try_echo") >&5
11952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } >/dev/null && {
11959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11962 ac_header_preproc=yes
11964 $as_echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11967 ac_header_preproc=no
11970 rm -f conftest.err conftest.$ac_ext
11971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11972 $as_echo "$ac_header_preproc" >&6; }
11974 # So? What about this header?
11975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11978 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11981 ac_header_preproc=yes
11984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11985 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11987 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11989 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11991 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11995 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11997 ## ---------------------------------------- ##
11998 ## Report this to pgsql-bugs@postgresql.org ##
11999 ## ---------------------------------------- ##
12001 ) | sed "s/^/$as_me: WARNING: /" >&2
12004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 $as_echo_n "checking for $ac_header... " >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007 $as_echo_n "(cached) " >&6
12009 eval "$as_ac_Header=\$ac_header_preproc"
12011 ac_res=`eval 'as_val=${'$as_ac_Header'}
12012 $as_echo "$as_val"'`
12013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12014 $as_echo "$ac_res" >&6; }
12017 as_val=`eval 'as_val=${'$as_ac_Header'}
12018 $as_echo "$as_val"'`
12019 if test "x$as_val" = x""yes; then
12020 cat >>confdefs.h <<_ACEOF
12021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12026 for ac_header in gssapi.h
12028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 $as_echo_n "checking for $ac_header... " >&6; }
12032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12033 $as_echo_n "(cached) " >&6
12035 ac_res=`eval 'as_val=${'$as_ac_Header'}
12036 $as_echo "$as_val"'`
12037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12038 $as_echo "$ac_res" >&6; }
12040 # Is the header compilable?
12041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042 $as_echo_n "checking $ac_header usability... " >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <$ac_header>
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059 $as_echo "$ac_try_echo") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest.$ac_objext; then
12070 ac_header_compiler=yes
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 ac_header_compiler=no
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080 $as_echo "$ac_header_compiler" >&6; }
12082 # Is the header present?
12083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084 $as_echo_n "checking $ac_header presence... " >&6; }
12085 cat >conftest.$ac_ext <<_ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 #include <$ac_header>
12093 if { (ac_try="$ac_cpp conftest.$ac_ext"
12094 case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12099 $as_echo "$ac_try_echo") >&5
12100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12102 grep -v '^ *+' conftest.er1 >conftest.err
12104 cat conftest.err >&5
12105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } >/dev/null && {
12107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12108 test ! -s conftest.err
12110 ac_header_preproc=yes
12112 $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_header_preproc=no
12118 rm -f conftest.err conftest.$ac_ext
12119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12120 $as_echo "$ac_header_preproc" >&6; }
12122 # So? What about this header?
12123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12129 ac_header_preproc=yes
12132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12135 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12139 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12145 ## ---------------------------------------- ##
12146 ## Report this to pgsql-bugs@postgresql.org ##
12147 ## ---------------------------------------- ##
12149 ) | sed "s/^/$as_me: WARNING: /" >&2
12152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12153 $as_echo_n "checking for $ac_header... " >&6; }
12154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12155 $as_echo_n "(cached) " >&6
12157 eval "$as_ac_Header=\$ac_header_preproc"
12159 ac_res=`eval 'as_val=${'$as_ac_Header'}
12160 $as_echo "$as_val"'`
12161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12162 $as_echo "$ac_res" >&6; }
12165 as_val=`eval 'as_val=${'$as_ac_Header'}
12166 $as_echo "$as_val"'`
12167 if test "x$as_val" = x""yes; then
12168 cat >>confdefs.h <<_ACEOF
12169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12173 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12174 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12175 { (exit 1); exit 1; }; }
12186 if test "$with_krb5" = yes ; then
12187 if test "${ac_cv_header_krb5_h+set}" = set; then
12188 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12189 $as_echo_n "checking for krb5.h... " >&6; }
12190 if test "${ac_cv_header_krb5_h+set}" = set; then
12191 $as_echo_n "(cached) " >&6
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12194 $as_echo "$ac_cv_header_krb5_h" >&6; }
12196 # Is the header compilable?
12197 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12198 $as_echo_n "checking krb5.h usability... " >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_header_compiler=yes
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_compiler=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 $as_echo "$ac_header_compiler" >&6; }
12238 # Is the header present?
12239 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12240 $as_echo_n "checking krb5.h presence... " >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1 >conftest.err
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } >/dev/null && {
12263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12266 ac_header_preproc=yes
12268 $as_echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12271 ac_header_preproc=no
12274 rm -f conftest.err conftest.$ac_ext
12275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 $as_echo "$ac_header_preproc" >&6; }
12278 # So? What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12281 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12282 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12284 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc=yes
12288 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12289 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12290 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12291 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12292 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12293 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12294 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12295 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12297 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12299 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12301 ## ---------------------------------------- ##
12302 ## Report this to pgsql-bugs@postgresql.org ##
12303 ## ---------------------------------------- ##
12305 ) | sed "s/^/$as_me: WARNING: /" >&2
12308 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12309 $as_echo_n "checking for krb5.h... " >&6; }
12310 if test "${ac_cv_header_krb5_h+set}" = set; then
12311 $as_echo_n "(cached) " >&6
12313 ac_cv_header_krb5_h=$ac_header_preproc
12315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12316 $as_echo "$ac_cv_header_krb5_h" >&6; }
12319 if test "x$ac_cv_header_krb5_h" = x""yes; then
12322 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12323 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12324 { (exit 1); exit 1; }; }
12330 if test "$with_openssl" = yes ; then
12331 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12332 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12333 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12334 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12335 $as_echo_n "(cached) " >&6
12337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12338 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12340 # Is the header compilable?
12341 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12342 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <openssl/ssl.h>
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12359 $as_echo "$ac_try_echo") >&5
12360 (eval "$ac_compile") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest.$ac_objext; then
12370 ac_header_compiler=yes
12372 $as_echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_header_compiler=no
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380 $as_echo "$ac_header_compiler" >&6; }
12382 # Is the header present?
12383 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12384 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12385 cat >conftest.$ac_ext <<_ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 #include <openssl/ssl.h>
12393 if { (ac_try="$ac_cpp conftest.$ac_ext"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } >/dev/null && {
12407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12410 ac_header_preproc=yes
12412 $as_echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_header_preproc=no
12418 rm -f conftest.err conftest.$ac_ext
12419 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 $as_echo "$ac_header_preproc" >&6; }
12422 # So? What about this header?
12423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12425 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12426 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12428 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
12432 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12433 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12434 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12435 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12436 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12437 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12438 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12439 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12440 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12441 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12442 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12443 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12445 ## ---------------------------------------- ##
12446 ## Report this to pgsql-bugs@postgresql.org ##
12447 ## ---------------------------------------- ##
12449 ) | sed "s/^/$as_me: WARNING: /" >&2
12452 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12453 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12454 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12457 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12460 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12463 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12466 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12467 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12468 { (exit 1); exit 1; }; }
12472 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12473 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12474 $as_echo_n "checking for openssl/err.h... " >&6; }
12475 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12476 $as_echo_n "(cached) " >&6
12478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12479 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12481 # Is the header compilable?
12482 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12483 $as_echo_n "checking openssl/err.h usability... " >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 $ac_includes_default
12491 #include <openssl/err.h>
12493 rm -f conftest.$ac_objext
12494 if { (ac_try="$ac_compile"
12495 case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12500 $as_echo "$ac_try_echo") >&5
12501 (eval "$ac_compile") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } && {
12508 test -z "$ac_c_werror_flag" ||
12509 test ! -s conftest.err
12510 } && test -s conftest.$ac_objext; then
12511 ac_header_compiler=yes
12513 $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_header_compiler=no
12519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12520 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12521 $as_echo "$ac_header_compiler" >&6; }
12523 # Is the header present?
12524 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12525 $as_echo_n "checking openssl/err.h presence... " >&6; }
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <openssl/err.h>
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } >/dev/null && {
12548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12551 ac_header_preproc=yes
12553 $as_echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_header_preproc=no
12559 rm -f conftest.err conftest.$ac_ext
12560 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12561 $as_echo "$ac_header_preproc" >&6; }
12563 # So? What about this header?
12564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12566 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12567 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12568 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12569 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12570 ac_header_preproc=yes
12573 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12574 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12575 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12576 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12577 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12578 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12579 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12580 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12581 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12582 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12583 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12584 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12586 ## ---------------------------------------- ##
12587 ## Report this to pgsql-bugs@postgresql.org ##
12588 ## ---------------------------------------- ##
12590 ) | sed "s/^/$as_me: WARNING: /" >&2
12593 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12594 $as_echo_n "checking for openssl/err.h... " >&6; }
12595 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12596 $as_echo_n "(cached) " >&6
12598 ac_cv_header_openssl_err_h=$ac_header_preproc
12600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12601 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12604 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12607 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12608 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12609 { (exit 1); exit 1; }; }
12614 for ac_func in ERR_set_mark
12616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12617 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12618 $as_echo_n "checking for $ac_func... " >&6; }
12619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12620 $as_echo_n "(cached) " >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12630 #define $ac_func innocuous_$ac_func
12632 /* System header to define __stub macros and hopefully few prototypes,
12633 which can conflict with char $ac_func (); below.
12634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635 <limits.h> exists even on freestanding compilers. */
12638 # include <limits.h>
12640 # include <assert.h>
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12652 /* The GNU C library defines this for functions which it implements
12653 to always fail with ENOSYS. Some functions are actually named
12654 something starting with __ and the normal name is an alias. */
12655 #if defined __stub_$ac_func || defined __stub___$ac_func
12662 return $ac_func ();
12667 rm -f conftest.$ac_objext conftest$ac_exeext
12668 if { (ac_try="$ac_link"
12669 case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12674 $as_echo "$ac_try_echo") >&5
12675 (eval "$ac_link") 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && {
12682 test -z "$ac_c_werror_flag" ||
12683 test ! -s conftest.err
12684 } && test -s conftest$ac_exeext && {
12685 test "$cross_compiling" = yes ||
12686 $as_test_x conftest$ac_exeext
12688 eval "$as_ac_var=yes"
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 eval "$as_ac_var=no"
12696 rm -rf conftest.dSYM
12697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12698 conftest$ac_exeext conftest.$ac_ext
12700 ac_res=`eval 'as_val=${'$as_ac_var'}
12701 $as_echo "$as_val"'`
12702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12703 $as_echo "$ac_res" >&6; }
12704 as_val=`eval 'as_val=${'$as_ac_var'}
12705 $as_echo "$as_val"'`
12706 if test "x$as_val" = x""yes; then
12707 cat >>confdefs.h <<_ACEOF
12708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12716 if test "$with_pam" = yes ; then
12718 for ac_header in security/pam_appl.h
12720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 $as_echo_n "checking for $ac_header... " >&6; }
12724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725 $as_echo_n "(cached) " >&6
12727 ac_res=`eval 'as_val=${'$as_ac_Header'}
12728 $as_echo "$as_val"'`
12729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12730 $as_echo "$ac_res" >&6; }
12732 # Is the header compilable?
12733 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12734 $as_echo_n "checking $ac_header usability... " >&6; }
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741 $ac_includes_default
12742 #include <$ac_header>
12744 rm -f conftest.$ac_objext
12745 if { (ac_try="$ac_compile"
12746 case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751 $as_echo "$ac_try_echo") >&5
12752 (eval "$ac_compile") 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest.$ac_objext; then
12762 ac_header_compiler=yes
12764 $as_echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ac_header_compiler=no
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12772 $as_echo "$ac_header_compiler" >&6; }
12774 # Is the header present?
12775 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12776 $as_echo_n "checking $ac_header presence... " >&6; }
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 #include <$ac_header>
12785 if { (ac_try="$ac_cpp conftest.$ac_ext"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } >/dev/null && {
12799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12802 ac_header_preproc=yes
12804 $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_header_preproc=no
12810 rm -f conftest.err conftest.$ac_ext
12811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12812 $as_echo "$ac_header_preproc" >&6; }
12814 # So? What about this header?
12815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12818 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12820 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12821 ac_header_preproc=yes
12824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12825 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12827 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12829 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12831 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12835 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12837 ## ---------------------------------------- ##
12838 ## Report this to pgsql-bugs@postgresql.org ##
12839 ## ---------------------------------------- ##
12841 ) | sed "s/^/$as_me: WARNING: /" >&2
12844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12845 $as_echo_n "checking for $ac_header... " >&6; }
12846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12847 $as_echo_n "(cached) " >&6
12849 eval "$as_ac_Header=\$ac_header_preproc"
12851 ac_res=`eval 'as_val=${'$as_ac_Header'}
12852 $as_echo "$as_val"'`
12853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12854 $as_echo "$ac_res" >&6; }
12857 as_val=`eval 'as_val=${'$as_ac_Header'}
12858 $as_echo "$as_val"'`
12859 if test "x$as_val" = x""yes; then
12860 cat >>confdefs.h <<_ACEOF
12861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12866 for ac_header in pam/pam_appl.h
12868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12871 $as_echo_n "checking for $ac_header... " >&6; }
12872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12873 $as_echo_n "(cached) " >&6
12875 ac_res=`eval 'as_val=${'$as_ac_Header'}
12876 $as_echo "$as_val"'`
12877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12878 $as_echo "$ac_res" >&6; }
12880 # Is the header compilable?
12881 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12882 $as_echo_n "checking $ac_header usability... " >&6; }
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 $ac_includes_default
12890 #include <$ac_header>
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
12910 ac_header_compiler=yes
12912 $as_echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_header_compiler=no
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12920 $as_echo "$ac_header_compiler" >&6; }
12922 # Is the header present?
12923 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12924 $as_echo_n "checking $ac_header presence... " >&6; }
12925 cat >conftest.$ac_ext <<_ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 #include <$ac_header>
12933 if { (ac_try="$ac_cpp conftest.$ac_ext"
12934 case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12942 grep -v '^ *+' conftest.er1 >conftest.err
12944 cat conftest.err >&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } >/dev/null && {
12947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12950 ac_header_preproc=yes
12952 $as_echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_header_preproc=no
12958 rm -f conftest.err conftest.$ac_ext
12959 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960 $as_echo "$ac_header_preproc" >&6; }
12962 # So? What about this header?
12963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969 ac_header_preproc=yes
12972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12975 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12979 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12985 ## ---------------------------------------- ##
12986 ## Report this to pgsql-bugs@postgresql.org ##
12987 ## ---------------------------------------- ##
12989 ) | sed "s/^/$as_me: WARNING: /" >&2
12992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 $as_echo_n "checking for $ac_header... " >&6; }
12994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12995 $as_echo_n "(cached) " >&6
12997 eval "$as_ac_Header=\$ac_header_preproc"
12999 ac_res=`eval 'as_val=${'$as_ac_Header'}
13000 $as_echo "$as_val"'`
13001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13002 $as_echo "$ac_res" >&6; }
13005 as_val=`eval 'as_val=${'$as_ac_Header'}
13006 $as_echo "$as_val"'`
13007 if test "x$as_val" = x""yes; then
13008 cat >>confdefs.h <<_ACEOF
13009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13013 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13014 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13015 { (exit 1); exit 1; }; }
13026 if test "$with_libxml" = yes ; then
13027 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13028 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13029 $as_echo_n "checking for libxml/parser.h... " >&6; }
13030 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13031 $as_echo_n "(cached) " >&6
13033 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13034 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13036 # Is the header compilable?
13037 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13038 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 $ac_includes_default
13046 #include <libxml/parser.h>
13048 rm -f conftest.$ac_objext
13049 if { (ac_try="$ac_compile"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055 $as_echo "$ac_try_echo") >&5
13056 (eval "$ac_compile") 2>conftest.er1
13058 grep -v '^ *+' conftest.er1 >conftest.err
13060 cat conftest.err >&5
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } && {
13063 test -z "$ac_c_werror_flag" ||
13064 test ! -s conftest.err
13065 } && test -s conftest.$ac_objext; then
13066 ac_header_compiler=yes
13068 $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 ac_header_compiler=no
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13076 $as_echo "$ac_header_compiler" >&6; }
13078 # Is the header present?
13079 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13080 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 #include <libxml/parser.h>
13089 if { (ac_try="$ac_cpp conftest.$ac_ext"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } >/dev/null && {
13103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13104 test ! -s conftest.err
13106 ac_header_preproc=yes
13108 $as_echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 ac_header_preproc=no
13114 rm -f conftest.err conftest.$ac_ext
13115 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13116 $as_echo "$ac_header_preproc" >&6; }
13118 # So? What about this header?
13119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13121 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13122 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13123 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13124 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13125 ac_header_preproc=yes
13128 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13129 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13130 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13131 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13132 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13133 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13134 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13135 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13136 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13137 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13138 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13139 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13141 ## ---------------------------------------- ##
13142 ## Report this to pgsql-bugs@postgresql.org ##
13143 ## ---------------------------------------- ##
13145 ) | sed "s/^/$as_me: WARNING: /" >&2
13148 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13149 $as_echo_n "checking for libxml/parser.h... " >&6; }
13150 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13151 $as_echo_n "(cached) " >&6
13153 ac_cv_header_libxml_parser_h=$ac_header_preproc
13155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13156 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13159 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13162 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13163 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13164 { (exit 1); exit 1; }; }
13170 if test "$with_libxslt" = yes ; then
13171 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13172 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13173 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13174 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13175 $as_echo_n "(cached) " >&6
13177 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13178 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13180 # Is the header compilable?
13181 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13182 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13190 #include <libxslt/xslt.h>
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.$ac_objext; then
13210 ac_header_compiler=yes
13212 $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ac_header_compiler=no
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13220 $as_echo "$ac_header_compiler" >&6; }
13222 # Is the header present?
13223 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13224 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <libxslt/xslt.h>
13233 if { (ac_try="$ac_cpp conftest.$ac_ext"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239 $as_echo "$ac_try_echo") >&5
13240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null && {
13247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13250 ac_header_preproc=yes
13252 $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_header_preproc=no
13258 rm -f conftest.err conftest.$ac_ext
13259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 $as_echo "$ac_header_preproc" >&6; }
13262 # So? What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13265 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13266 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13268 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13269 ac_header_preproc=yes
13272 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13273 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13274 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13275 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13276 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13277 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13278 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13279 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13280 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13281 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13282 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13283 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13285 ## ---------------------------------------- ##
13286 ## Report this to pgsql-bugs@postgresql.org ##
13287 ## ---------------------------------------- ##
13289 ) | sed "s/^/$as_me: WARNING: /" >&2
13292 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13293 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13294 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13295 $as_echo_n "(cached) " >&6
13297 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13300 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13303 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13306 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13307 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13308 { (exit 1); exit 1; }; }
13314 if test "$with_ldap" = yes ; then
13315 if test "$PORTNAME" != "win32"; then
13317 for ac_header in ldap.h
13319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 $as_echo_n "checking for $ac_header... " >&6; }
13323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13324 $as_echo_n "(cached) " >&6
13326 ac_res=`eval 'as_val=${'$as_ac_Header'}
13327 $as_echo "$as_val"'`
13328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13329 $as_echo "$ac_res" >&6; }
13331 # Is the header compilable?
13332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333 $as_echo_n "checking $ac_header usability... " >&6; }
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 $ac_includes_default
13341 #include <$ac_header>
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13350 $as_echo "$ac_try_echo") >&5
13351 (eval "$ac_compile") 2>conftest.er1
13353 grep -v '^ *+' conftest.er1 >conftest.err
13355 cat conftest.err >&5
13356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && {
13358 test -z "$ac_c_werror_flag" ||
13359 test ! -s conftest.err
13360 } && test -s conftest.$ac_objext; then
13361 ac_header_compiler=yes
13363 $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_header_compiler=no
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 $as_echo "$ac_header_compiler" >&6; }
13373 # Is the header present?
13374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13375 $as_echo_n "checking $ac_header presence... " >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13382 #include <$ac_header>
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } >/dev/null && {
13398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13401 ac_header_preproc=yes
13403 $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_header_preproc=no
13409 rm -f conftest.err conftest.$ac_ext
13410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13411 $as_echo "$ac_header_preproc" >&6; }
13413 # So? What about this header?
13414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13420 ac_header_preproc=yes
13423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13436 ## ---------------------------------------- ##
13437 ## Report this to pgsql-bugs@postgresql.org ##
13438 ## ---------------------------------------- ##
13440 ) | sed "s/^/$as_me: WARNING: /" >&2
13443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 $as_echo_n "checking for $ac_header... " >&6; }
13445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13446 $as_echo_n "(cached) " >&6
13448 eval "$as_ac_Header=\$ac_header_preproc"
13450 ac_res=`eval 'as_val=${'$as_ac_Header'}
13451 $as_echo "$as_val"'`
13452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13453 $as_echo "$ac_res" >&6; }
13456 as_val=`eval 'as_val=${'$as_ac_Header'}
13457 $as_echo "$as_val"'`
13458 if test "x$as_val" = x""yes; then
13459 cat >>confdefs.h <<_ACEOF
13460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13464 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13465 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13466 { (exit 1); exit 1; }; }
13473 for ac_header in winldap.h
13475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13476 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 $as_echo_n "checking for $ac_header... " >&6; }
13478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13479 $as_echo_n "(cached) " >&6
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 $ac_includes_default
13488 #include <windows.h>
13491 #include <$ac_header>
13493 rm -f conftest.$ac_objext
13494 if { (ac_try="$ac_compile"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13500 $as_echo "$ac_try_echo") >&5
13501 (eval "$ac_compile") 2>conftest.er1
13503 grep -v '^ *+' conftest.er1 >conftest.err
13505 cat conftest.err >&5
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest.$ac_objext; then
13511 eval "$as_ac_Header=yes"
13513 $as_echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 eval "$as_ac_Header=no"
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 ac_res=`eval 'as_val=${'$as_ac_Header'}
13522 $as_echo "$as_val"'`
13523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13524 $as_echo "$ac_res" >&6; }
13525 as_val=`eval 'as_val=${'$as_ac_Header'}
13526 $as_echo "$as_val"'`
13527 if test "x$as_val" = x""yes; then
13528 cat >>confdefs.h <<_ACEOF
13529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13533 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13534 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13535 { (exit 1); exit 1; }; }
13543 if test "$with_bonjour" = yes ; then
13544 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13545 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13546 $as_echo_n "checking for dns_sd.h... " >&6; }
13547 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13548 $as_echo_n "(cached) " >&6
13550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13551 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13553 # Is the header compilable?
13554 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13555 $as_echo_n "checking dns_sd.h usability... " >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 #include <dns_sd.h>
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573 (eval "$ac_compile") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_c_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest.$ac_objext; then
13583 ac_header_compiler=yes
13585 $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_header_compiler=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13593 $as_echo "$ac_header_compiler" >&6; }
13595 # Is the header present?
13596 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13597 $as_echo_n "checking dns_sd.h presence... " >&6; }
13598 cat >conftest.$ac_ext <<_ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13604 #include <dns_sd.h>
13606 if { (ac_try="$ac_cpp conftest.$ac_ext"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } >/dev/null && {
13620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13623 ac_header_preproc=yes
13625 $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_preproc=no
13631 rm -f conftest.err conftest.$ac_ext
13632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 $as_echo "$ac_header_preproc" >&6; }
13635 # So? What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13638 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13639 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13641 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13642 ac_header_preproc=yes
13645 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13646 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13647 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13648 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13649 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13650 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13651 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13652 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13653 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13654 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13655 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13656 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13658 ## ---------------------------------------- ##
13659 ## Report this to pgsql-bugs@postgresql.org ##
13660 ## ---------------------------------------- ##
13662 ) | sed "s/^/$as_me: WARNING: /" >&2
13665 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13666 $as_echo_n "checking for dns_sd.h... " >&6; }
13667 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13668 $as_echo_n "(cached) " >&6
13670 ac_cv_header_dns_sd_h=$ac_header_preproc
13672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13673 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13676 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13679 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13680 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13681 { (exit 1); exit 1; }; }
13687 # for contrib/uuid-ossp
13688 if test "$with_ossp_uuid" = yes ; then
13690 for ac_header in ossp/uuid.h
13692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 $as_echo_n "checking for $ac_header... " >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 $as_echo_n "(cached) " >&6
13699 ac_res=`eval 'as_val=${'$as_ac_Header'}
13700 $as_echo "$as_val"'`
13701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13702 $as_echo "$ac_res" >&6; }
13704 # Is the header compilable?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13706 $as_echo_n "checking $ac_header usability... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 #include <$ac_header>
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724 (eval "$ac_compile") 2>conftest.er1
13726 grep -v '^ *+' conftest.er1 >conftest.err
13728 cat conftest.err >&5
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && {
13731 test -z "$ac_c_werror_flag" ||
13732 test ! -s conftest.err
13733 } && test -s conftest.$ac_objext; then
13734 ac_header_compiler=yes
13736 $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 ac_header_compiler=no
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 $as_echo "$ac_header_compiler" >&6; }
13746 # Is the header present?
13747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 $as_echo_n "checking $ac_header presence... " >&6; }
13749 cat >conftest.$ac_ext <<_ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755 #include <$ac_header>
13757 if { (ac_try="$ac_cpp conftest.$ac_ext"
13758 case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null && {
13771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13774 ac_header_preproc=yes
13776 $as_echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_header_preproc=no
13782 rm -f conftest.err conftest.$ac_ext
13783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 $as_echo "$ac_header_preproc" >&6; }
13786 # So? What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13809 ## ---------------------------------------- ##
13810 ## Report this to pgsql-bugs@postgresql.org ##
13811 ## ---------------------------------------- ##
13813 ) | sed "s/^/$as_me: WARNING: /" >&2
13816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13817 $as_echo_n "checking for $ac_header... " >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 $as_echo_n "(cached) " >&6
13821 eval "$as_ac_Header=\$ac_header_preproc"
13823 ac_res=`eval 'as_val=${'$as_ac_Header'}
13824 $as_echo "$as_val"'`
13825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13826 $as_echo "$ac_res" >&6; }
13829 as_val=`eval 'as_val=${'$as_ac_Header'}
13830 $as_echo "$as_val"'`
13831 if test "x$as_val" = x""yes; then
13832 cat >>confdefs.h <<_ACEOF
13833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13839 for ac_header in uuid.h
13841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 $as_echo_n "checking for $ac_header... " >&6; }
13845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846 $as_echo_n "(cached) " >&6
13848 ac_res=`eval 'as_val=${'$as_ac_Header'}
13849 $as_echo "$as_val"'`
13850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13851 $as_echo "$ac_res" >&6; }
13853 # Is the header compilable?
13854 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13855 $as_echo_n "checking $ac_header usability... " >&6; }
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 $ac_includes_default
13863 #include <$ac_header>
13865 rm -f conftest.$ac_objext
13866 if { (ac_try="$ac_compile"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13872 $as_echo "$ac_try_echo") >&5
13873 (eval "$ac_compile") 2>conftest.er1
13875 grep -v '^ *+' conftest.er1 >conftest.err
13877 cat conftest.err >&5
13878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } && {
13880 test -z "$ac_c_werror_flag" ||
13881 test ! -s conftest.err
13882 } && test -s conftest.$ac_objext; then
13883 ac_header_compiler=yes
13885 $as_echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_header_compiler=no
13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893 $as_echo "$ac_header_compiler" >&6; }
13895 # Is the header present?
13896 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897 $as_echo_n "checking $ac_header presence... " >&6; }
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #include <$ac_header>
13906 if { (ac_try="$ac_cpp conftest.$ac_ext"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13912 $as_echo "$ac_try_echo") >&5
13913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } >/dev/null && {
13920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13923 ac_header_preproc=yes
13925 $as_echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_header_preproc=no
13931 rm -f conftest.err conftest.$ac_ext
13932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13933 $as_echo "$ac_header_preproc" >&6; }
13935 # So? What about this header?
13936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13939 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13942 ac_header_preproc=yes
13945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13946 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13948 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13950 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13952 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13956 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13958 ## ---------------------------------------- ##
13959 ## Report this to pgsql-bugs@postgresql.org ##
13960 ## ---------------------------------------- ##
13962 ) | sed "s/^/$as_me: WARNING: /" >&2
13965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13966 $as_echo_n "checking for $ac_header... " >&6; }
13967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13968 $as_echo_n "(cached) " >&6
13970 eval "$as_ac_Header=\$ac_header_preproc"
13972 ac_res=`eval 'as_val=${'$as_ac_Header'}
13973 $as_echo "$as_val"'`
13974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13975 $as_echo "$ac_res" >&6; }
13978 as_val=`eval 'as_val=${'$as_ac_Header'}
13979 $as_echo "$as_val"'`
13980 if test "x$as_val" = x""yes; then
13981 cat >>confdefs.h <<_ACEOF
13982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13986 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13987 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13988 { (exit 1); exit 1; }; }
14001 ## Types, structures, compiler characteristics
14005 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14006 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14007 if test "${ac_cv_c_bigendian+set}" = set; then
14008 $as_echo_n "(cached) " >&6
14010 ac_cv_c_bigendian=unknown
14011 # See if we're dealing with a universal compiler.
14012 cat >conftest.$ac_ext <<_ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018 #ifndef __APPLE_CC__
14019 not a universal capable compiler
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032 (eval "$ac_compile") 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest.$ac_objext; then
14043 # Check for potential -arch flags. It is not universal unless
14044 # there are some -arch flags. Note that *ppc* also matches
14045 # ppc64. This check is also rather less than ideal.
14046 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14047 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14050 $as_echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 if test $ac_cv_c_bigendian = unknown; then
14058 # See if sys/param.h defines the BYTE_ORDER macro.
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <sys/types.h>
14066 #include <sys/param.h>
14071 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14072 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14074 bogus endian macros
14081 rm -f conftest.$ac_objext
14082 if { (ac_try="$ac_compile"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14088 $as_echo "$ac_try_echo") >&5
14089 (eval "$ac_compile") 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } && {
14096 test -z "$ac_c_werror_flag" ||
14097 test ! -s conftest.err
14098 } && test -s conftest.$ac_objext; then
14099 # It does; now see whether it defined to BIG_ENDIAN or not.
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 #include <sys/types.h>
14107 #include <sys/param.h>
14112 #if BYTE_ORDER != BIG_ENDIAN
14120 rm -f conftest.$ac_objext
14121 if { (ac_try="$ac_compile"
14122 case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14127 $as_echo "$ac_try_echo") >&5
14128 (eval "$ac_compile") 2>conftest.er1
14130 grep -v '^ *+' conftest.er1 >conftest.err
14132 cat conftest.err >&5
14133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } && {
14135 test -z "$ac_c_werror_flag" ||
14136 test ! -s conftest.err
14137 } && test -s conftest.$ac_objext; then
14138 ac_cv_c_bigendian=yes
14140 $as_echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_cv_c_bigendian=no
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14148 $as_echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156 if test $ac_cv_c_bigendian = unknown; then
14157 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14158 cat >conftest.$ac_ext <<_ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 #include <limits.h>
14169 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14170 bogus endian macros
14177 rm -f conftest.$ac_objext
14178 if { (ac_try="$ac_compile"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14184 $as_echo "$ac_try_echo") >&5
14185 (eval "$ac_compile") 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } && {
14192 test -z "$ac_c_werror_flag" ||
14193 test ! -s conftest.err
14194 } && test -s conftest.$ac_objext; then
14195 # It does; now see whether it defined to _BIG_ENDIAN or not.
14196 cat >conftest.$ac_ext <<_ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 #include <limits.h>
14207 #ifndef _BIG_ENDIAN
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14222 $as_echo "$ac_try_echo") >&5
14223 (eval "$ac_compile") 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest.$ac_objext; then
14233 ac_cv_c_bigendian=yes
14235 $as_echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14238 ac_cv_c_bigendian=no
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251 if test $ac_cv_c_bigendian = unknown; then
14252 # Compile a test program.
14253 if test "$cross_compiling" = yes; then
14254 # Try to guess by grepping values from an object file.
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 short int ascii_mm[] =
14262 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14263 short int ascii_ii[] =
14264 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14265 int use_ascii (int i) {
14266 return ascii_mm[i] + ascii_ii[i];
14268 short int ebcdic_ii[] =
14269 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14270 short int ebcdic_mm[] =
14271 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14272 int use_ebcdic (int i) {
14273 return ebcdic_mm[i] + ebcdic_ii[i];
14280 return use_ascii (foo) == use_ebcdic (foo);
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292 $as_echo "$ac_try_echo") >&5
14293 (eval "$ac_compile") 2>conftest.er1
14295 grep -v '^ *+' conftest.er1 >conftest.err
14297 cat conftest.err >&5
14298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14302 } && test -s conftest.$ac_objext; then
14303 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14304 ac_cv_c_bigendian=yes
14306 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14307 if test "$ac_cv_c_bigendian" = unknown; then
14308 ac_cv_c_bigendian=no
14310 # finding both strings is unlikely to happen, but who knows?
14311 ac_cv_c_bigendian=unknown
14315 $as_echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14334 /* Are we little or big endian? From Harbison&Steele. */
14338 char c[sizeof (long int)];
14341 return u.c[sizeof (long int) - 1] == 1;
14347 rm -f conftest$ac_exeext
14348 if { (ac_try="$ac_link"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14354 $as_echo "$ac_try_echo") >&5
14355 (eval "$ac_link") 2>&5
14357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14364 $as_echo "$ac_try_echo") >&5
14365 (eval "$ac_try") 2>&5
14367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_c_bigendian=no
14371 $as_echo "$as_me: program exited with status $ac_status" >&5
14372 $as_echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14375 ( exit $ac_status )
14376 ac_cv_c_bigendian=yes
14378 rm -rf conftest.dSYM
14379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14385 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14386 $as_echo "$ac_cv_c_bigendian" >&6; }
14387 case $ac_cv_c_bigendian in #(
14389 cat >>confdefs.h <<\_ACEOF
14390 #define WORDS_BIGENDIAN 1
14397 cat >>confdefs.h <<\_ACEOF
14398 #define AC_APPLE_UNIVERSAL_BUILD 1
14403 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14404 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14405 $as_echo "$as_me: error: unknown endianness
14406 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14407 { (exit 1); exit 1; }; } ;;
14410 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14411 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14412 if test "${ac_cv_c_const+set}" = set; then
14413 $as_echo_n "(cached) " >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14425 /* FIXME: Include the comments suggested by Paul. */
14426 #ifndef __cplusplus
14427 /* Ultrix mips cc rejects this. */
14428 typedef int charset[2];
14430 /* SunOS 4.1.1 cc rejects this. */
14431 char const *const *pcpcc;
14433 /* NEC SVR4.0.2 mips cc rejects this. */
14434 struct point {int x, y;};
14435 static struct point const zero = {0,0};
14436 /* AIX XL C 1.02.0.0 rejects this.
14437 It does not let you subtract one const X* pointer from another in
14438 an arm of an if-expression whose if-part is not a constant
14440 const char *g = "string";
14441 pcpcc = &g + (g ? g-g : 0);
14442 /* HPUX 7.0 cc rejects these. */
14444 ppc = (char**) pcpcc;
14445 pcpcc = (char const *const *) ppc;
14446 { /* SCO 3.2v4 cc rejects this. */
14448 char const *s = 0 ? (char *) 0 : (char const *) 0;
14453 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14454 int x[] = {25, 17};
14455 const int *foo = &x[0];
14458 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14459 typedef const int *iptr;
14463 { /* AIX XL C 1.02.0.0 rejects this saying
14464 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14465 struct s { int j; const int *ap[3]; };
14466 struct s *b; b->j = 5;
14468 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14469 const int foo = 10;
14470 if (!foo) return 0;
14472 return !cs[0] && !zero.x;
14479 rm -f conftest.$ac_objext
14480 if { (ac_try="$ac_compile"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487 (eval "$ac_compile") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && {
14494 test -z "$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 } && test -s conftest.$ac_objext; then
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14508 $as_echo "$ac_cv_c_const" >&6; }
14509 if test $ac_cv_c_const = no; then
14511 cat >>confdefs.h <<\_ACEOF
14517 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14518 $as_echo_n "checking for inline... " >&6; }
14519 if test "${ac_cv_c_inline+set}" = set; then
14520 $as_echo_n "(cached) " >&6
14523 for ac_kw in inline __inline__ __inline; do
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 #ifndef __cplusplus
14532 static $ac_kw foo_t static_foo () {return 0; }
14533 $ac_kw foo_t foo () {return 0; }
14537 rm -f conftest.$ac_objext
14538 if { (ac_try="$ac_compile"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14544 $as_echo "$ac_try_echo") >&5
14545 (eval "$ac_compile") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.$ac_objext; then
14555 ac_cv_c_inline=$ac_kw
14557 $as_echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564 test "$ac_cv_c_inline" != no && break
14568 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14569 $as_echo "$ac_cv_c_inline" >&6; }
14572 case $ac_cv_c_inline in
14575 case $ac_cv_c_inline in
14577 *) ac_val=$ac_cv_c_inline;;
14579 cat >>confdefs.h <<_ACEOF
14580 #ifndef __cplusplus
14581 #define inline $ac_val
14587 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14588 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14589 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14590 $as_echo_n "(cached) " >&6
14592 pgac_cv_c_inline_quietly=no
14593 if test "$ac_cv_c_inline" != no; then
14594 pgac_c_inline_save_werror=$ac_c_werror_flag
14595 ac_c_werror_flag=yes
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 static inline int fun () {return 0;}
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (ac_try="$ac_link"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14618 $as_echo "$ac_try_echo") >&5
14619 (eval "$ac_link") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1 >conftest.err
14623 cat conftest.err >&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext && {
14629 test "$cross_compiling" = yes ||
14630 $as_test_x conftest$ac_exeext
14632 pgac_cv_c_inline_quietly=yes
14634 $as_echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14640 rm -rf conftest.dSYM
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14643 ac_c_werror_flag=$pgac_c_inline_save_werror
14646 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14647 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14648 if test "$pgac_cv_c_inline_quietly" != no; then
14650 cat >>confdefs.h <<_ACEOF
14651 #define USE_INLINE 1
14656 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14657 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14658 if test "${ac_cv_c_stringize+set}" = set; then
14659 $as_echo_n "(cached) " >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14669 char *s = x(teststring);
14671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14672 $EGREP "#teststring" >/dev/null 2>&1; then
14673 ac_cv_c_stringize=no
14675 ac_cv_c_stringize=yes
14680 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14681 $as_echo "$ac_cv_c_stringize" >&6; }
14682 if test $ac_cv_c_stringize = yes; then
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_STRINGIZE 1
14690 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14691 $as_echo_n "checking for signed types... " >&6; }
14692 if test "${pgac_cv_c_signed+set}" = set; then
14693 $as_echo_n "(cached) " >&6
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14705 signed char c; signed short s; signed int i;
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest.$ac_objext; then
14728 pgac_cv_c_signed=yes
14730 $as_echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 pgac_cv_c_signed=no
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14739 $as_echo "$pgac_cv_c_signed" >&6; }
14740 if test x"$pgac_cv_c_signed" = xno ; then
14742 cat >>confdefs.h <<\_ACEOF
14743 #define signed /**/
14747 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14748 $as_echo_n "checking for working volatile... " >&6; }
14749 if test "${ac_cv_c_volatile+set}" = set; then
14750 $as_echo_n "(cached) " >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14764 int * volatile y = (int *) 0;
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14777 $as_echo "$ac_try_echo") >&5
14778 (eval "$ac_compile") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest.$ac_objext; then
14788 ac_cv_c_volatile=yes
14790 $as_echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_cv_c_volatile=no
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14799 $as_echo "$ac_cv_c_volatile" >&6; }
14800 if test $ac_cv_c_volatile = no; then
14802 cat >>confdefs.h <<\_ACEOF
14803 #define volatile /**/
14808 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14809 $as_echo_n "checking for __func__... " >&6; }
14810 if test "${pgac_cv_funcname_func_support+set}" = set; then
14811 $as_echo_n "(cached) " >&6
14813 cat >conftest.$ac_ext <<_ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14823 printf("%s\n", __func__);
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836 (eval "$ac_compile") 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest.$ac_objext; then
14846 pgac_cv_funcname_func_support=yes
14848 $as_echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 pgac_cv_funcname_func_support=no
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14857 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14858 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_FUNCNAME__FUNC 1
14865 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14866 $as_echo_n "checking for __FUNCTION__... " >&6; }
14867 if test "${pgac_cv_funcname_function_support+set}" = set; then
14868 $as_echo_n "(cached) " >&6
14870 cat >conftest.$ac_ext <<_ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14880 printf("%s\n", __FUNCTION__);
14885 rm -f conftest.$ac_objext
14886 if { (ac_try="$ac_compile"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892 $as_echo "$ac_try_echo") >&5
14893 (eval "$ac_compile") 2>conftest.er1
14895 grep -v '^ *+' conftest.er1 >conftest.err
14897 cat conftest.err >&5
14898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest.$ac_objext; then
14903 pgac_cv_funcname_function_support=yes
14905 $as_echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 pgac_cv_funcname_function_support=no
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14914 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14915 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_FUNCNAME__FUNCTION 1
14923 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14924 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14925 if test "${ac_cv_struct_tm+set}" = set; then
14926 $as_echo_n "(cached) " >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 #include <sys/types.h>
14941 int *p = &tm.tm_sec;
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } && {
14962 test -z "$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 } && test -s conftest.$ac_objext; then
14965 ac_cv_struct_tm=time.h
14967 $as_echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_cv_struct_tm=sys/time.h
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14975 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14976 $as_echo "$ac_cv_struct_tm" >&6; }
14977 if test $ac_cv_struct_tm = sys/time.h; then
14979 cat >>confdefs.h <<\_ACEOF
14980 #define TM_IN_SYS_TIME 1
14985 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14986 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14987 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14988 $as_echo_n "(cached) " >&6
14990 cat >conftest.$ac_ext <<_ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 #include <sys/types.h>
14997 #include <$ac_cv_struct_tm>
15003 static struct tm ac_aggr;
15004 if (ac_aggr.tm_zone)
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15017 $as_echo "$ac_try_echo") >&5
15018 (eval "$ac_compile") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && {
15025 test -z "$ac_c_werror_flag" ||
15026 test ! -s conftest.err
15027 } && test -s conftest.$ac_objext; then
15028 ac_cv_member_struct_tm_tm_zone=yes
15030 $as_echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <sys/types.h>
15040 #include <$ac_cv_struct_tm>
15046 static struct tm ac_aggr;
15047 if (sizeof ac_aggr.tm_zone)
15053 rm -f conftest.$ac_objext
15054 if { (ac_try="$ac_compile"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15060 $as_echo "$ac_try_echo") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15063 grep -v '^ *+' conftest.er1 >conftest.err
15065 cat conftest.err >&5
15066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } && {
15068 test -z "$ac_c_werror_flag" ||
15069 test ! -s conftest.err
15070 } && test -s conftest.$ac_objext; then
15071 ac_cv_member_struct_tm_tm_zone=yes
15073 $as_echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 ac_cv_member_struct_tm_tm_zone=no
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15085 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15086 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15088 cat >>confdefs.h <<_ACEOF
15089 #define HAVE_STRUCT_TM_TM_ZONE 1
15095 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_TM_ZONE 1
15102 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15103 $as_echo_n "checking for tzname... " >&6; }
15104 if test "${ac_cv_var_tzname+set}" = set; then
15105 $as_echo_n "(cached) " >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15114 #ifndef tzname /* For SGI. */
15115 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_link") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext && {
15144 test "$cross_compiling" = yes ||
15145 $as_test_x conftest$ac_exeext
15147 ac_cv_var_tzname=yes
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_cv_var_tzname=no
15155 rm -rf conftest.dSYM
15156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15157 conftest$ac_exeext conftest.$ac_ext
15159 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15160 $as_echo "$ac_cv_var_tzname" >&6; }
15161 if test $ac_cv_var_tzname = yes; then
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_TZNAME 1
15169 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15170 $as_echo_n "checking for union semun... " >&6; }
15171 if test "${ac_cv_type_union_semun+set}" = set; then
15172 $as_echo_n "(cached) " >&6
15174 ac_cv_type_union_semun=no
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <sys/types.h>
15182 #include <sys/ipc.h>
15183 #include <sys/sem.h>
15188 if (sizeof (union semun))
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15201 $as_echo "$ac_try_echo") >&5
15202 (eval "$ac_compile") 2>conftest.er1
15204 grep -v '^ *+' conftest.er1 >conftest.err
15206 cat conftest.err >&5
15207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && {
15209 test -z "$ac_c_werror_flag" ||
15210 test ! -s conftest.err
15211 } && test -s conftest.$ac_objext; then
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <sys/types.h>
15219 #include <sys/ipc.h>
15220 #include <sys/sem.h>
15225 if (sizeof ((union semun)))
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239 (eval "$ac_compile") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest.$ac_objext; then
15251 $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_type_union_semun=yes
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 $as_echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15268 $as_echo "$ac_cv_type_union_semun" >&6; }
15269 if test "x$ac_cv_type_union_semun" = x""yes; then
15271 cat >>confdefs.h <<_ACEOF
15272 #define HAVE_UNION_SEMUN 1
15278 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15279 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15280 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15281 $as_echo_n "(cached) " >&6
15283 ac_cv_type_struct_sockaddr_un=no
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <sys/types.h>
15291 #ifdef HAVE_SYS_UN_H
15292 #include <sys/un.h>
15299 if (sizeof (struct sockaddr_un))
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15312 $as_echo "$ac_try_echo") >&5
15313 (eval "$ac_compile") 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } && {
15320 test -z "$ac_c_werror_flag" ||
15321 test ! -s conftest.err
15322 } && test -s conftest.$ac_objext; then
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 #include <sys/types.h>
15330 #ifdef HAVE_SYS_UN_H
15331 #include <sys/un.h>
15338 if (sizeof ((struct sockaddr_un)))
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15351 $as_echo "$ac_try_echo") >&5
15352 (eval "$ac_compile") 2>conftest.er1
15354 grep -v '^ *+' conftest.er1 >conftest.err
15356 cat conftest.err >&5
15357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && {
15359 test -z "$ac_c_werror_flag" ||
15360 test ! -s conftest.err
15361 } && test -s conftest.$ac_objext; then
15364 $as_echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_type_struct_sockaddr_un=yes
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 $as_echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15381 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15382 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15384 cat >>confdefs.h <<_ACEOF
15385 #define HAVE_STRUCT_SOCKADDR_UN 1
15389 cat >>confdefs.h <<\_ACEOF
15390 #define HAVE_UNIX_SOCKETS 1
15395 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15396 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15397 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15398 $as_echo_n "(cached) " >&6
15400 ac_cv_type_struct_sockaddr_storage=no
15401 cat >conftest.$ac_ext <<_ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/types.h>
15408 #ifdef HAVE_SYS_SOCKET_H
15409 #include <sys/socket.h>
15416 if (sizeof (struct sockaddr_storage))
15422 rm -f conftest.$ac_objext
15423 if { (ac_try="$ac_compile"
15424 case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15429 $as_echo "$ac_try_echo") >&5
15430 (eval "$ac_compile") 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_c_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest.$ac_objext; then
15440 cat >conftest.$ac_ext <<_ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <sys/types.h>
15447 #ifdef HAVE_SYS_SOCKET_H
15448 #include <sys/socket.h>
15455 if (sizeof ((struct sockaddr_storage)))
15461 rm -f conftest.$ac_objext
15462 if { (ac_try="$ac_compile"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15468 $as_echo "$ac_try_echo") >&5
15469 (eval "$ac_compile") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest.$ac_objext; then
15481 $as_echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 ac_cv_type_struct_sockaddr_storage=yes
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 $as_echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15498 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15499 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15508 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15509 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15510 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15511 $as_echo_n "(cached) " >&6
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15528 static struct sockaddr_storage ac_aggr;
15529 if (ac_aggr.ss_family)
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } && {
15550 test -z "$ac_c_werror_flag" ||
15551 test ! -s conftest.err
15552 } && test -s conftest.$ac_objext; then
15553 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15555 $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 #include <sys/types.h>
15565 #ifdef HAVE_SYS_SOCKET_H
15566 #include <sys/socket.h>
15573 static struct sockaddr_storage ac_aggr;
15574 if (sizeof ac_aggr.ss_family)
15580 rm -f conftest.$ac_objext
15581 if { (ac_try="$ac_compile"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15587 $as_echo "$ac_try_echo") >&5
15588 (eval "$ac_compile") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest.$ac_objext; then
15598 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15600 $as_echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_member_struct_sockaddr_storage_ss_family=no
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15612 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15613 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15615 cat >>confdefs.h <<_ACEOF
15616 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15621 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15622 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15623 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15624 $as_echo_n "(cached) " >&6
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15641 static struct sockaddr_storage ac_aggr;
15642 if (ac_aggr.__ss_family)
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15658 grep -v '^ *+' conftest.er1 >conftest.err
15660 cat conftest.err >&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest.$ac_objext; then
15666 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15668 $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <sys/types.h>
15678 #ifdef HAVE_SYS_SOCKET_H
15679 #include <sys/socket.h>
15686 static struct sockaddr_storage ac_aggr;
15687 if (sizeof ac_aggr.__ss_family)
15693 rm -f conftest.$ac_objext
15694 if { (ac_try="$ac_compile"
15695 case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700 $as_echo "$ac_try_echo") >&5
15701 (eval "$ac_compile") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest.$ac_objext; then
15711 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15713 $as_echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15716 ac_cv_member_struct_sockaddr_storage___ss_family=no
15719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15725 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15726 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15728 cat >>confdefs.h <<_ACEOF
15729 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15734 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15735 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15736 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15737 $as_echo_n "(cached) " >&6
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15754 static struct sockaddr_storage ac_aggr;
15755 if (ac_aggr.ss_len)
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769 (eval "$ac_compile") 2>conftest.er1
15771 grep -v '^ *+' conftest.er1 >conftest.err
15773 cat conftest.err >&5
15774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest.$ac_objext; then
15779 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15781 $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <sys/types.h>
15791 #ifdef HAVE_SYS_SOCKET_H
15792 #include <sys/socket.h>
15799 static struct sockaddr_storage ac_aggr;
15800 if (sizeof ac_aggr.ss_len)
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15813 $as_echo "$ac_try_echo") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15826 $as_echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_cv_member_struct_sockaddr_storage_ss_len=no
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15838 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15839 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15847 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15848 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15849 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15850 $as_echo_n "(cached) " >&6
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15867 static struct sockaddr_storage ac_aggr;
15868 if (ac_aggr.__ss_len)
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882 (eval "$ac_compile") 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest.$ac_objext; then
15892 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15894 $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 #include <sys/types.h>
15904 #ifdef HAVE_SYS_SOCKET_H
15905 #include <sys/socket.h>
15912 static struct sockaddr_storage ac_aggr;
15913 if (sizeof ac_aggr.__ss_len)
15919 rm -f conftest.$ac_objext
15920 if { (ac_try="$ac_compile"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927 (eval "$ac_compile") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest.$ac_objext; then
15937 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_cv_member_struct_sockaddr_storage___ss_len=no
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15950 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15951 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15952 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15954 cat >>confdefs.h <<_ACEOF
15955 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15960 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15961 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15962 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15963 $as_echo_n "(cached) " >&6
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15980 static struct sockaddr ac_aggr;
15981 if (ac_aggr.sa_len)
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1 >conftest.err
15999 cat conftest.err >&5
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest.$ac_objext; then
16005 ac_cv_member_struct_sockaddr_sa_len=yes
16007 $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <sys/types.h>
16017 #ifdef HAVE_SYS_SOCKET_H
16018 #include <sys/socket.h>
16025 static struct sockaddr ac_aggr;
16026 if (sizeof ac_aggr.sa_len)
16032 rm -f conftest.$ac_objext
16033 if { (ac_try="$ac_compile"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16039 $as_echo "$ac_try_echo") >&5
16040 (eval "$ac_compile") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } && {
16047 test -z "$ac_c_werror_flag" ||
16048 test ! -s conftest.err
16049 } && test -s conftest.$ac_objext; then
16050 ac_cv_member_struct_sockaddr_sa_len=yes
16052 $as_echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16055 ac_cv_member_struct_sockaddr_sa_len=no
16058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16064 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16065 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16067 cat >>confdefs.h <<_ACEOF
16068 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16074 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16075 $as_echo_n "checking for struct addrinfo... " >&6; }
16076 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16077 $as_echo_n "(cached) " >&6
16079 ac_cv_type_struct_addrinfo=no
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 #include <sys/types.h>
16087 #include <sys/socket.h>
16094 if (sizeof (struct addrinfo))
16100 rm -f conftest.$ac_objext
16101 if { (ac_try="$ac_compile"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16107 $as_echo "$ac_try_echo") >&5
16108 (eval "$ac_compile") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } && {
16115 test -z "$ac_c_werror_flag" ||
16116 test ! -s conftest.err
16117 } && test -s conftest.$ac_objext; then
16118 cat >conftest.$ac_ext <<_ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 #include <sys/types.h>
16125 #include <sys/socket.h>
16132 if (sizeof ((struct addrinfo)))
16138 rm -f conftest.$ac_objext
16139 if { (ac_try="$ac_compile"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16145 $as_echo "$ac_try_echo") >&5
16146 (eval "$ac_compile") 2>conftest.er1
16148 grep -v '^ *+' conftest.er1 >conftest.err
16150 cat conftest.err >&5
16151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest.$ac_objext; then
16158 $as_echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 ac_cv_type_struct_addrinfo=yes
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166 $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16175 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16176 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_STRUCT_ADDRINFO 1
16186 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16187 $as_echo_n "checking for intptr_t... " >&6; }
16188 if test "${ac_cv_type_intptr_t+set}" = set; then
16189 $as_echo_n "(cached) " >&6
16191 ac_cv_type_intptr_t=no
16192 cat >conftest.$ac_ext <<_ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 $ac_includes_default
16202 if (sizeof (intptr_t))
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $ac_includes_default
16236 if (sizeof ((intptr_t)))
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.$ac_objext; then
16262 $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_cv_type_intptr_t=yes
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16279 $as_echo "$ac_cv_type_intptr_t" >&6; }
16280 if test "x$ac_cv_type_intptr_t" = x""yes; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_INTPTR_T 1
16287 for ac_type in 'int' 'long int' 'long long int'; do
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 $ac_includes_default
16298 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16312 $as_echo "$ac_try_echo") >&5
16313 (eval "$ac_compile") 2>conftest.er1
16315 grep -v '^ *+' conftest.er1 >conftest.err
16317 cat conftest.err >&5
16318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && {
16320 test -z "$ac_c_werror_flag" ||
16321 test ! -s conftest.err
16322 } && test -s conftest.$ac_objext; then
16324 cat >>confdefs.h <<_ACEOF
16325 #define intptr_t $ac_type
16330 $as_echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 test -z "$ac_type" && break
16343 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16344 $as_echo_n "checking for uintptr_t... " >&6; }
16345 if test "${ac_cv_type_uintptr_t+set}" = set; then
16346 $as_echo_n "(cached) " >&6
16348 ac_cv_type_uintptr_t=no
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16359 if (sizeof (uintptr_t))
16365 rm -f conftest.$ac_objext
16366 if { (ac_try="$ac_compile"
16367 case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16372 $as_echo "$ac_try_echo") >&5
16373 (eval "$ac_compile") 2>conftest.er1
16375 grep -v '^ *+' conftest.er1 >conftest.err
16377 cat conftest.err >&5
16378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } && {
16380 test -z "$ac_c_werror_flag" ||
16381 test ! -s conftest.err
16382 } && test -s conftest.$ac_objext; then
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 $ac_includes_default
16393 if (sizeof ((uintptr_t)))
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407 (eval "$ac_compile") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest.$ac_objext; then
16419 $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_cv_type_uintptr_t=yes
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427 $as_echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16436 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16437 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_UINTPTR_T 1
16444 for ac_type in 'unsigned int' 'unsigned long int' \
16445 'unsigned long long int'; do
16446 cat >conftest.$ac_ext <<_ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 $ac_includes_default
16456 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16463 rm -f conftest.$ac_objext
16464 if { (ac_try="$ac_compile"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && {
16478 test -z "$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 } && test -s conftest.$ac_objext; then
16482 cat >>confdefs.h <<_ACEOF
16483 #define uintptr_t $ac_type
16488 $as_echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 test -z "$ac_type" && break
16501 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16502 $as_echo_n "checking for long long int... " >&6; }
16503 if test "${ac_cv_type_long_long_int+set}" = set; then
16504 $as_echo_n "(cached) " >&6
16506 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 /* For now, do not test the preprocessor; as of 2007 there are too many
16514 implementations with broken preprocessors. Perhaps this can
16515 be revisited in 2012. In the meantime, code should not expect
16516 #if to work with literals wider than 32 bits. */
16517 /* Test literals. */
16518 long long int ll = 9223372036854775807ll;
16519 long long int nll = -9223372036854775807LL;
16520 unsigned long long int ull = 18446744073709551615ULL;
16521 /* Test constant expressions. */
16522 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16524 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16530 /* Test availability of runtime routines for shift and division. */
16531 long long int llmax = 9223372036854775807ll;
16532 unsigned long long int ullmax = 18446744073709551615ull;
16533 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16534 | (llmax / ll) | (llmax % ll)
16535 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16536 | (ullmax / ull) | (ullmax % ull));
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (ac_try="$ac_link"
16544 case "(($ac_try" in
16545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546 *) ac_try_echo=$ac_try;;
16548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16549 $as_echo "$ac_try_echo") >&5
16550 (eval "$ac_link") 2>conftest.er1
16552 grep -v '^ *+' conftest.er1 >conftest.err
16554 cat conftest.err >&5
16555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && {
16557 test -z "$ac_c_werror_flag" ||
16558 test ! -s conftest.err
16559 } && test -s conftest$ac_exeext && {
16560 test "$cross_compiling" = yes ||
16561 $as_test_x conftest$ac_exeext
16563 if test "$cross_compiling" = yes; then
16564 ac_cv_type_long_long_int=yes
16566 cat >conftest.$ac_ext <<_ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 #include <limits.h>
16575 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16576 # define LLONG_MAX (HALF - 1 + HALF)
16581 long long int n = 1;
16585 long long int m = n << i;
16588 if (LLONG_MAX / 2 < m)
16596 rm -f conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16603 $as_echo "$ac_try_echo") >&5
16604 (eval "$ac_link") 2>&5
16606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16613 $as_echo "$ac_try_echo") >&5
16614 (eval "$ac_try") 2>&5
16616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_type_long_long_int=yes
16620 $as_echo "$as_me: program exited with status $ac_status" >&5
16621 $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 ( exit $ac_status )
16625 ac_cv_type_long_long_int=no
16627 rm -rf conftest.dSYM
16628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16633 $as_echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 ac_cv_type_long_long_int=no
16639 rm -rf conftest.dSYM
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641 conftest$ac_exeext conftest.$ac_ext
16643 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16644 $as_echo "$ac_cv_type_long_long_int" >&6; }
16645 if test $ac_cv_type_long_long_int = yes; then
16647 cat >>confdefs.h <<\_ACEOF
16648 #define HAVE_LONG_LONG_INT 1
16654 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16655 $as_echo_n "checking for struct cmsgcred... " >&6; }
16656 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16657 $as_echo_n "(cached) " >&6
16659 ac_cv_type_struct_cmsgcred=no
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 #include <sys/param.h>
16667 #include <sys/types.h>
16668 #include <sys/socket.h>
16669 #include <sys/ucred.h>
16674 if (sizeof (struct cmsgcred))
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16687 $as_echo "$ac_try_echo") >&5
16688 (eval "$ac_compile") 2>conftest.er1
16690 grep -v '^ *+' conftest.er1 >conftest.err
16692 cat conftest.err >&5
16693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } && {
16695 test -z "$ac_c_werror_flag" ||
16696 test ! -s conftest.err
16697 } && test -s conftest.$ac_objext; then
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <sys/param.h>
16705 #include <sys/types.h>
16706 #include <sys/socket.h>
16707 #include <sys/ucred.h>
16712 if (sizeof ((struct cmsgcred)))
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest.$ac_objext; then
16738 $as_echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_type_struct_cmsgcred=yes
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16755 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16756 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_STRUCT_CMSGCRED 1
16764 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16765 $as_echo_n "checking for struct fcred... " >&6; }
16766 if test "${ac_cv_type_struct_fcred+set}" = set; then
16767 $as_echo_n "(cached) " >&6
16769 ac_cv_type_struct_fcred=no
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 #include <sys/param.h>
16777 #include <sys/types.h>
16778 #include <sys/socket.h>
16779 #include <sys/ucred.h>
16784 if (sizeof (struct fcred))
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16797 $as_echo "$ac_try_echo") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 #include <sys/param.h>
16815 #include <sys/types.h>
16816 #include <sys/socket.h>
16817 #include <sys/ucred.h>
16822 if (sizeof ((struct fcred)))
16828 rm -f conftest.$ac_objext
16829 if { (ac_try="$ac_compile"
16830 case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16835 $as_echo "$ac_try_echo") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16838 grep -v '^ *+' conftest.er1 >conftest.err
16840 cat conftest.err >&5
16841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } && {
16843 test -z "$ac_c_werror_flag" ||
16844 test ! -s conftest.err
16845 } && test -s conftest.$ac_objext; then
16848 $as_echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16851 ac_cv_type_struct_fcred=yes
16854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 $as_echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16865 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16866 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define HAVE_STRUCT_FCRED 1
16874 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16875 $as_echo_n "checking for struct sockcred... " >&6; }
16876 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16877 $as_echo_n "(cached) " >&6
16879 ac_cv_type_struct_sockcred=no
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 #include <sys/param.h>
16887 #include <sys/types.h>
16888 #include <sys/socket.h>
16889 #include <sys/ucred.h>
16894 if (sizeof (struct sockcred))
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16907 $as_echo "$ac_try_echo") >&5
16908 (eval "$ac_compile") 2>conftest.er1
16910 grep -v '^ *+' conftest.er1 >conftest.err
16912 cat conftest.err >&5
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } && {
16915 test -z "$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 } && test -s conftest.$ac_objext; then
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 #include <sys/param.h>
16925 #include <sys/types.h>
16926 #include <sys/socket.h>
16927 #include <sys/ucred.h>
16932 if (sizeof ((struct sockcred)))
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16945 $as_echo "$ac_try_echo") >&5
16946 (eval "$ac_compile") 2>conftest.er1
16948 grep -v '^ *+' conftest.er1 >conftest.err
16950 cat conftest.err >&5
16951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } && {
16953 test -z "$ac_c_werror_flag" ||
16954 test ! -s conftest.err
16955 } && test -s conftest.$ac_objext; then
16958 $as_echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 ac_cv_type_struct_sockcred=yes
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 $as_echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16975 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16976 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_STRUCT_SOCKCRED 1
16986 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16987 $as_echo_n "checking for struct option... " >&6; }
16988 if test "${ac_cv_type_struct_option+set}" = set; then
16989 $as_echo_n "(cached) " >&6
16991 ac_cv_type_struct_option=no
16992 cat >conftest.$ac_ext <<_ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #ifdef HAVE_GETOPT_H
16999 #include <getopt.h>
17005 if (sizeof (struct option))
17011 rm -f conftest.$ac_objext
17012 if { (ac_try="$ac_compile"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17018 $as_echo "$ac_try_echo") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && {
17026 test -z "$ac_c_werror_flag" ||
17027 test ! -s conftest.err
17028 } && test -s conftest.$ac_objext; then
17029 cat >conftest.$ac_ext <<_ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 #ifdef HAVE_GETOPT_H
17036 #include <getopt.h>
17042 if (sizeof ((struct option)))
17048 rm -f conftest.$ac_objext
17049 if { (ac_try="$ac_compile"
17050 case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17055 $as_echo "$ac_try_echo") >&5
17056 (eval "$ac_compile") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && {
17063 test -z "$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17065 } && test -s conftest.$ac_objext; then
17068 $as_echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_cv_type_struct_option=yes
17074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076 $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17085 $as_echo "$ac_cv_type_struct_option" >&6; }
17086 if test "x$ac_cv_type_struct_option" = x""yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define HAVE_STRUCT_OPTION 1
17096 if test "$with_zlib" = yes; then
17097 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17098 # did not). While we could work around the lack of z_streamp, it
17099 # seems unwise to encourage people to use such old zlib versions...
17100 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17101 $as_echo_n "checking for z_streamp... " >&6; }
17102 if test "${ac_cv_type_z_streamp+set}" = set; then
17103 $as_echo_n "(cached) " >&6
17105 ac_cv_type_z_streamp=no
17106 cat >conftest.$ac_ext <<_ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h. */
17117 if (sizeof (z_streamp))
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17130 $as_echo "$ac_try_echo") >&5
17131 (eval "$ac_compile") 2>conftest.er1
17133 grep -v '^ *+' conftest.er1 >conftest.err
17135 cat conftest.err >&5
17136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && {
17138 test -z "$ac_c_werror_flag" ||
17139 test ! -s conftest.err
17140 } && test -s conftest.$ac_objext; then
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17152 if (sizeof ((z_streamp)))
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165 $as_echo "$ac_try_echo") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest.$ac_objext; then
17178 $as_echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_type_z_streamp=yes
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17186 $as_echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17195 $as_echo "$ac_cv_type_z_streamp" >&6; }
17196 if test "x$ac_cv_type_z_streamp" = x""yes; then
17199 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17200 Use --without-zlib to disable zlib support." >&5
17201 $as_echo "$as_me: error: zlib version is too old
17202 Use --without-zlib to disable zlib support." >&2;}
17203 { (exit 1); exit 1; }; }
17208 if test "$with_krb5" = yes; then
17209 # Check for differences between MIT and Heimdal (KTH) releases
17210 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17211 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17212 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17213 $as_echo_n "(cached) " >&6
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17226 static krb5_ticket ac_aggr;
17227 if (ac_aggr.enc_part2)
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240 $as_echo "$ac_try_echo") >&5
17241 (eval "$ac_compile") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } && {
17248 test -z "$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17250 } && test -s conftest.$ac_objext; then
17251 ac_cv_member_krb5_ticket_enc_part2=yes
17253 $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17267 static krb5_ticket ac_aggr;
17268 if (sizeof ac_aggr.enc_part2)
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282 (eval "$ac_compile") 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } && {
17289 test -z "$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 } && test -s conftest.$ac_objext; then
17292 ac_cv_member_krb5_ticket_enc_part2=yes
17294 $as_echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_cv_member_krb5_ticket_enc_part2=no
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17306 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17307 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17309 cat >>confdefs.h <<_ACEOF
17310 #define HAVE_KRB5_TICKET_ENC_PART2 1
17315 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17316 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17317 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17318 $as_echo_n "(cached) " >&6
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17331 static krb5_ticket ac_aggr;
17332 if (ac_aggr.client)
17338 rm -f conftest.$ac_objext
17339 if { (ac_try="$ac_compile"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17345 $as_echo "$ac_try_echo") >&5
17346 (eval "$ac_compile") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } && {
17353 test -z "$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 } && test -s conftest.$ac_objext; then
17356 ac_cv_member_krb5_ticket_client=yes
17358 $as_echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17372 static krb5_ticket ac_aggr;
17373 if (sizeof ac_aggr.client)
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17386 $as_echo "$ac_try_echo") >&5
17387 (eval "$ac_compile") 2>conftest.er1
17389 grep -v '^ *+' conftest.er1 >conftest.err
17391 cat conftest.err >&5
17392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } && {
17394 test -z "$ac_c_werror_flag" ||
17395 test ! -s conftest.err
17396 } && test -s conftest.$ac_objext; then
17397 ac_cv_member_krb5_ticket_client=yes
17399 $as_echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_member_krb5_ticket_client=no
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17411 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17412 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17414 cat >>confdefs.h <<_ACEOF
17415 #define HAVE_KRB5_TICKET_CLIENT 1
17420 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17421 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17422 { (exit 1); exit 1; }; }
17427 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17428 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17429 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17430 $as_echo_n "(cached) " >&6
17432 cat >conftest.$ac_ext <<_ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17443 static krb5_error ac_aggr;
17444 if (ac_aggr.text.data)
17450 rm -f conftest.$ac_objext
17451 if { (ac_try="$ac_compile"
17452 case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17457 $as_echo "$ac_try_echo") >&5
17458 (eval "$ac_compile") 2>conftest.er1
17460 grep -v '^ *+' conftest.er1 >conftest.err
17462 cat conftest.err >&5
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && {
17465 test -z "$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 } && test -s conftest.$ac_objext; then
17468 ac_cv_member_krb5_error_text_data=yes
17470 $as_echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17484 static krb5_error ac_aggr;
17485 if (sizeof ac_aggr.text.data)
17491 rm -f conftest.$ac_objext
17492 if { (ac_try="$ac_compile"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17498 $as_echo "$ac_try_echo") >&5
17499 (eval "$ac_compile") 2>conftest.er1
17501 grep -v '^ *+' conftest.er1 >conftest.err
17503 cat conftest.err >&5
17504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } && {
17506 test -z "$ac_c_werror_flag" ||
17507 test ! -s conftest.err
17508 } && test -s conftest.$ac_objext; then
17509 ac_cv_member_krb5_error_text_data=yes
17511 $as_echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 ac_cv_member_krb5_error_text_data=no
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17523 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17524 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17532 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17533 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17534 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17535 $as_echo_n "(cached) " >&6
17537 cat >conftest.$ac_ext <<_ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17548 static krb5_error ac_aggr;
17549 if (ac_aggr.e_data)
17555 rm -f conftest.$ac_objext
17556 if { (ac_try="$ac_compile"
17557 case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17562 $as_echo "$ac_try_echo") >&5
17563 (eval "$ac_compile") 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest.$ac_objext; then
17573 ac_cv_member_krb5_error_e_data=yes
17575 $as_echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17578 cat >conftest.$ac_ext <<_ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17589 static krb5_error ac_aggr;
17590 if (sizeof ac_aggr.e_data)
17596 rm -f conftest.$ac_objext
17597 if { (ac_try="$ac_compile"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17603 $as_echo "$ac_try_echo") >&5
17604 (eval "$ac_compile") 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && {
17611 test -z "$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17613 } && test -s conftest.$ac_objext; then
17614 ac_cv_member_krb5_error_e_data=yes
17616 $as_echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ac_cv_member_krb5_error_e_data=no
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17628 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17629 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17631 cat >>confdefs.h <<_ACEOF
17632 #define HAVE_KRB5_ERROR_E_DATA 1
17637 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17638 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17639 { (exit 1); exit 1; }; }
17645 # Win32 requires headers to be loaded for __stdcall, so can't use
17646 # AC_CHECK_FUNCS here.
17647 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17648 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17649 cat >conftest.$ac_ext <<_ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17659 krb5_free_unparsed_name(NULL,NULL);
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (ac_try="$ac_link"
17666 case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17671 $as_echo "$ac_try_echo") >&5
17672 (eval "$ac_link") 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest$ac_exeext && {
17682 test "$cross_compiling" = yes ||
17683 $as_test_x conftest$ac_exeext
17686 cat >>confdefs.h <<\_ACEOF
17687 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17690 { $as_echo "$as_me:$LINENO: result: yes" >&5
17691 $as_echo "yes" >&6; }
17693 $as_echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 { $as_echo "$as_me:$LINENO: result: no" >&5
17697 $as_echo "no" >&6; }
17700 rm -rf conftest.dSYM
17701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17702 conftest$ac_exeext conftest.$ac_ext
17705 # Check largefile support. You might think this is a system service not a
17706 # compiler characteristic, but you'd be wrong. We must check this before
17707 # probing existence of related functions such as fseeko, since the largefile
17708 # defines can affect what is generated for that.
17709 # Check whether --enable-largefile was given.
17710 if test "${enable_largefile+set}" = set; then
17711 enableval=$enable_largefile;
17714 if test "$enable_largefile" != no; then
17716 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17717 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17718 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17719 $as_echo_n "(cached) " >&6
17721 ac_cv_sys_largefile_CC=no
17722 if test "$GCC" != yes; then
17725 # IRIX 6.2 and later do not support large files by default,
17726 # so use the C compiler's -n32 option if that helps.
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <sys/types.h>
17734 /* Check that off_t can represent 2**63 - 1 correctly.
17735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17736 since some C++ compilers masquerading as C compilers
17737 incorrectly reject 9223372036854775807. */
17738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17740 && LARGE_OFF_T % 2147483647 == 1)
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17757 $as_echo "$ac_try_echo") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.$ac_objext; then
17770 $as_echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17776 rm -f core conftest.err conftest.$ac_objext
17778 rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17785 $as_echo "$ac_try_echo") >&5
17786 (eval "$ac_compile") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest.$ac_objext; then
17796 ac_cv_sys_largefile_CC=' -n32'; break
17798 $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17804 rm -f core conftest.err conftest.$ac_objext
17808 rm -f conftest.$ac_ext
17811 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17812 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17813 if test "$ac_cv_sys_largefile_CC" != no; then
17814 CC=$CC$ac_cv_sys_largefile_CC
17817 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17818 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17820 $as_echo_n "(cached) " >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 #include <sys/types.h>
17830 /* Check that off_t can represent 2**63 - 1 correctly.
17831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17832 since some C++ compilers masquerading as C compilers
17833 incorrectly reject 9223372036854775807. */
17834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17836 && LARGE_OFF_T % 2147483647 == 1)
17846 rm -f conftest.$ac_objext
17847 if { (ac_try="$ac_compile"
17848 case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853 $as_echo "$ac_try_echo") >&5
17854 (eval "$ac_compile") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest.$ac_objext; then
17864 ac_cv_sys_file_offset_bits=no; break
17866 $as_echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 cat >conftest.$ac_ext <<_ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17879 #define _FILE_OFFSET_BITS 64
17880 #include <sys/types.h>
17881 /* Check that off_t can represent 2**63 - 1 correctly.
17882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17883 since some C++ compilers masquerading as C compilers
17884 incorrectly reject 9223372036854775807. */
17885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17887 && LARGE_OFF_T % 2147483647 == 1)
17897 rm -f conftest.$ac_objext
17898 if { (ac_try="$ac_compile"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904 $as_echo "$ac_try_echo") >&5
17905 (eval "$ac_compile") 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest.$ac_objext; then
17915 ac_cv_sys_file_offset_bits=64; break
17917 $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 ac_cv_sys_file_offset_bits=unknown
17928 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17929 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17930 case $ac_cv_sys_file_offset_bits in #(
17933 cat >>confdefs.h <<_ACEOF
17934 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17939 if test $ac_cv_sys_file_offset_bits = unknown; then
17940 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17941 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17942 if test "${ac_cv_sys_large_files+set}" = set; then
17943 $as_echo_n "(cached) " >&6
17946 cat >conftest.$ac_ext <<_ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 #include <sys/types.h>
17953 /* Check that off_t can represent 2**63 - 1 correctly.
17954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17955 since some C++ compilers masquerading as C compilers
17956 incorrectly reject 9223372036854775807. */
17957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17959 && LARGE_OFF_T % 2147483647 == 1)
17969 rm -f conftest.$ac_objext
17970 if { (ac_try="$ac_compile"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17976 $as_echo "$ac_try_echo") >&5
17977 (eval "$ac_compile") 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } && {
17984 test -z "$ac_c_werror_flag" ||
17985 test ! -s conftest.err
17986 } && test -s conftest.$ac_objext; then
17987 ac_cv_sys_large_files=no; break
17989 $as_echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 #define _LARGE_FILES 1
18003 #include <sys/types.h>
18004 /* Check that off_t can represent 2**63 - 1 correctly.
18005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18006 since some C++ compilers masquerading as C compilers
18007 incorrectly reject 9223372036854775807. */
18008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18010 && LARGE_OFF_T % 2147483647 == 1)
18020 rm -f conftest.$ac_objext
18021 if { (ac_try="$ac_compile"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18027 $as_echo "$ac_try_echo") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest.$ac_objext; then
18038 ac_cv_sys_large_files=1; break
18040 $as_echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 ac_cv_sys_large_files=unknown
18051 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18052 $as_echo "$ac_cv_sys_large_files" >&6; }
18053 case $ac_cv_sys_large_files in #(
18056 cat >>confdefs.h <<_ACEOF
18057 #define _LARGE_FILES $ac_cv_sys_large_files
18066 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18067 # The cast to long int works around a bug in the HP C Compiler
18068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18070 # This bug is HP SR number 8606223364.
18071 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18072 $as_echo_n "checking size of off_t... " >&6; }
18073 if test "${ac_cv_sizeof_off_t+set}" = set; then
18074 $as_echo_n "(cached) " >&6
18076 if test "$cross_compiling" = yes; then
18077 # Depending upon the size, compute the lo and hi bounds.
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18088 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18095 rm -f conftest.$ac_objext
18096 if { (ac_try="$ac_compile"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103 (eval "$ac_compile") 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } && {
18110 test -z "$ac_c_werror_flag" ||
18111 test ! -s conftest.err
18112 } && test -s conftest.$ac_objext; then
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 $ac_includes_default
18125 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18132 rm -f conftest.$ac_objext
18133 if { (ac_try="$ac_compile"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18139 $as_echo "$ac_try_echo") >&5
18140 (eval "$ac_compile") 2>conftest.er1
18142 grep -v '^ *+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest.$ac_objext; then
18150 ac_hi=$ac_mid; break
18152 $as_echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 ac_lo=`expr $ac_mid + 1`
18156 if test $ac_lo -le $ac_mid; then
18160 ac_mid=`expr 2 '*' $ac_mid + 1`
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 $as_echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 $ac_includes_default
18179 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18186 rm -f conftest.$ac_objext
18187 if { (ac_try="$ac_compile"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18193 $as_echo "$ac_try_echo") >&5
18194 (eval "$ac_compile") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest.$ac_objext; then
18206 cat >conftest.$ac_ext <<_ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 $ac_includes_default
18216 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18223 rm -f conftest.$ac_objext
18224 if { (ac_try="$ac_compile"
18225 case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18230 $as_echo "$ac_try_echo") >&5
18231 (eval "$ac_compile") 2>conftest.er1
18233 grep -v '^ *+' conftest.er1 >conftest.err
18235 cat conftest.err >&5
18236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } && {
18238 test -z "$ac_c_werror_flag" ||
18239 test ! -s conftest.err
18240 } && test -s conftest.$ac_objext; then
18241 ac_lo=$ac_mid; break
18243 $as_echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18246 ac_hi=`expr '(' $ac_mid ')' - 1`
18247 if test $ac_mid -le $ac_hi; then
18251 ac_mid=`expr 2 '*' $ac_mid`
18254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 $as_echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 # Binary search between lo and hi bounds.
18268 while test "x$ac_lo" != "x$ac_hi"; do
18269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 $ac_includes_default
18280 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18287 rm -f conftest.$ac_objext
18288 if { (ac_try="$ac_compile"
18289 case "(($ac_try" in
18290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291 *) ac_try_echo=$ac_try;;
18293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18294 $as_echo "$ac_try_echo") >&5
18295 (eval "$ac_compile") 2>conftest.er1
18297 grep -v '^ *+' conftest.er1 >conftest.err
18299 cat conftest.err >&5
18300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } && {
18302 test -z "$ac_c_werror_flag" ||
18303 test ! -s conftest.err
18304 } && test -s conftest.$ac_objext; then
18307 $as_echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18310 ac_lo=`expr '(' $ac_mid ')' + 1`
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18317 '') if test "$ac_cv_type_off_t" = yes; then
18318 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18320 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18321 See \`config.log' for more details." >&5
18322 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18323 See \`config.log' for more details." >&2;}
18324 { (exit 77); exit 77; }; }; }
18326 ac_cv_sizeof_off_t=0
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 $ac_includes_default
18337 static long int longval () { return (long int) (sizeof (off_t)); }
18338 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18340 #include <stdlib.h>
18345 FILE *f = fopen ("conftest.val", "w");
18348 if (((long int) (sizeof (off_t))) < 0)
18350 long int i = longval ();
18351 if (i != ((long int) (sizeof (off_t))))
18353 fprintf (f, "%ld", i);
18357 unsigned long int i = ulongval ();
18358 if (i != ((long int) (sizeof (off_t))))
18360 fprintf (f, "%lu", i);
18362 /* Do not output a trailing newline, as this causes \r\n confusion
18363 on some platforms. */
18364 return ferror (f) || fclose (f) != 0;
18370 rm -f conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18377 $as_echo "$ac_try_echo") >&5
18378 (eval "$ac_link") 2>&5
18380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18382 { (case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18387 $as_echo "$ac_try_echo") >&5
18388 (eval "$ac_try") 2>&5
18390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_sizeof_off_t=`cat conftest.val`
18394 $as_echo "$as_me: program exited with status $ac_status" >&5
18395 $as_echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ( exit $ac_status )
18399 if test "$ac_cv_type_off_t" = yes; then
18400 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18402 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18403 See \`config.log' for more details." >&5
18404 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18405 See \`config.log' for more details." >&2;}
18406 { (exit 77); exit 77; }; }; }
18408 ac_cv_sizeof_off_t=0
18411 rm -rf conftest.dSYM
18412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18416 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18417 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18421 cat >>confdefs.h <<_ACEOF
18422 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18427 # If we don't have largefile support, can't handle segsize >= 2GB.
18428 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18429 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18430 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18431 { (exit 1); exit 1; }; }
18436 ## Functions, global variables
18439 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18440 $as_echo_n "checking for int timezone... " >&6; }
18441 if test "${pgac_cv_var_int_timezone+set}" = set; then
18442 $as_echo_n "(cached) " >&6
18444 cat >conftest.$ac_ext <<_ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18456 res = timezone / 60;
18458 res = _timezone / 60;
18464 rm -f conftest.$ac_objext conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest$ac_exeext && {
18482 test "$cross_compiling" = yes ||
18483 $as_test_x conftest$ac_exeext
18485 pgac_cv_var_int_timezone=yes
18487 $as_echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18490 pgac_cv_var_int_timezone=no
18493 rm -rf conftest.dSYM
18494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18495 conftest$ac_exeext conftest.$ac_ext
18497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18498 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18499 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_INT_TIMEZONE /**/
18506 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18507 $as_echo_n "checking types of arguments for accept()... " >&6; }
18508 if test "${ac_cv_func_accept_return+set}" = set; then
18509 $as_echo_n "(cached) " >&6
18511 if test "${ac_cv_func_accept_arg1+set}" = set; then
18512 $as_echo_n "(cached) " >&6
18514 if test "${ac_cv_func_accept_arg2+set}" = set; then
18515 $as_echo_n "(cached) " >&6
18517 if test "${ac_cv_func_accept_arg3+set}" = set; then
18518 $as_echo_n "(cached) " >&6
18520 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18521 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18522 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18523 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18524 cat >conftest.$ac_ext <<_ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 #ifdef HAVE_SYS_TYPES_H
18531 #include <sys/types.h>
18533 #ifdef HAVE_SYS_SOCKET_H
18534 #include <sys/socket.h>
18536 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18545 rm -f conftest.$ac_objext
18546 if { (ac_try="$ac_compile"
18547 case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18552 $as_echo "$ac_try_echo") >&5
18553 (eval "$ac_compile") 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } && {
18560 test -z "$ac_c_werror_flag" ||
18561 test ! -s conftest.err
18562 } && test -s conftest.$ac_objext; then
18563 ac_not_found=no; break 4
18565 $as_echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 if test "$ac_not_found" = yes; then
18577 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18578 $as_echo "$as_me: error: could not determine argument types" >&2;}
18579 { (exit 1); exit 1; }; }
18581 if test "$ac_cv_func_accept_arg3" = "void"; then
18582 ac_cv_func_accept_arg3=int
18592 { $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
18593 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18595 cat >>confdefs.h <<_ACEOF
18596 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18600 cat >>confdefs.h <<_ACEOF
18601 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18605 cat >>confdefs.h <<_ACEOF
18606 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18610 cat >>confdefs.h <<_ACEOF
18611 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18615 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18616 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18617 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18618 $as_echo_n "(cached) " >&6
18620 cat >conftest.$ac_ext <<_ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 #include <sys/time.h>
18630 struct timeval *tp;
18631 struct timezone *tzp;
18632 gettimeofday(tp,tzp);
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645 (eval "$ac_compile") 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest.$ac_objext; then
18655 pgac_cv_func_gettimeofday_1arg=no
18657 $as_echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 pgac_cv_func_gettimeofday_1arg=yes
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18665 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18666 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18667 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18669 cat >>confdefs.h <<\_ACEOF
18670 #define GETTIMEOFDAY_1ARG /**/
18700 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
18702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18703 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18704 $as_echo_n "checking for $ac_func... " >&6; }
18705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18706 $as_echo_n "(cached) " >&6
18708 cat >conftest.$ac_ext <<_ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18716 #define $ac_func innocuous_$ac_func
18718 /* System header to define __stub macros and hopefully few prototypes,
18719 which can conflict with char $ac_func (); below.
18720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18721 <limits.h> exists even on freestanding compilers. */
18724 # include <limits.h>
18726 # include <assert.h>
18731 /* Override any GCC internal prototype to avoid an error.
18732 Use char because int might match the return type of a GCC
18733 builtin and then its argument prototype would still apply. */
18738 /* The GNU C library defines this for functions which it implements
18739 to always fail with ENOSYS. Some functions are actually named
18740 something starting with __ and the normal name is an alias. */
18741 #if defined __stub_$ac_func || defined __stub___$ac_func
18748 return $ac_func ();
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18760 $as_echo "$ac_try_echo") >&5
18761 (eval "$ac_link") 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } && {
18768 test -z "$ac_c_werror_flag" ||
18769 test ! -s conftest.err
18770 } && test -s conftest$ac_exeext && {
18771 test "$cross_compiling" = yes ||
18772 $as_test_x conftest$ac_exeext
18774 eval "$as_ac_var=yes"
18776 $as_echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 eval "$as_ac_var=no"
18782 rm -rf conftest.dSYM
18783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18784 conftest$ac_exeext conftest.$ac_ext
18786 ac_res=`eval 'as_val=${'$as_ac_var'}
18787 $as_echo "$as_val"'`
18788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18789 $as_echo "$ac_res" >&6; }
18790 as_val=`eval 'as_val=${'$as_ac_var'}
18791 $as_echo "$as_val"'`
18792 if test "x$as_val" = x""yes; then
18793 cat >>confdefs.h <<_ACEOF
18794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18802 for ac_func in fseeko
18804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18805 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18806 $as_echo_n "checking for $ac_func... " >&6; }
18807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18808 $as_echo_n "(cached) " >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18818 #define $ac_func innocuous_$ac_func
18820 /* System header to define __stub macros and hopefully few prototypes,
18821 which can conflict with char $ac_func (); below.
18822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 <limits.h> exists even on freestanding compilers. */
18826 # include <limits.h>
18828 # include <assert.h>
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18840 /* The GNU C library defines this for functions which it implements
18841 to always fail with ENOSYS. Some functions are actually named
18842 something starting with __ and the normal name is an alias. */
18843 #if defined __stub_$ac_func || defined __stub___$ac_func
18850 return $ac_func ();
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (ac_try="$ac_link"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18862 $as_echo "$ac_try_echo") >&5
18863 (eval "$ac_link") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest$ac_exeext && {
18873 test "$cross_compiling" = yes ||
18874 $as_test_x conftest$ac_exeext
18876 eval "$as_ac_var=yes"
18878 $as_echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 eval "$as_ac_var=no"
18884 rm -rf conftest.dSYM
18885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18886 conftest$ac_exeext conftest.$ac_ext
18888 ac_res=`eval 'as_val=${'$as_ac_var'}
18889 $as_echo "$as_val"'`
18890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18891 $as_echo "$ac_res" >&6; }
18892 as_val=`eval 'as_val=${'$as_ac_var'}
18893 $as_echo "$as_val"'`
18894 if test "x$as_val" = x""yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18900 case " $LIBOBJS " in
18901 *" $ac_func.$ac_objext "* ) ;;
18902 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18911 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18912 # Mingw uses macros to access Win32 API calls
18913 bsdi*|netbsd*|mingw*)
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_FSEEKO 1
18919 ac_cv_func_fseeko=yes;;
18921 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18922 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18923 if test "${ac_cv_sys_largefile_source+set}" = set; then
18924 $as_echo_n "(cached) " >&6
18927 cat >conftest.$ac_ext <<_ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 #include <sys/types.h> /* for off_t */
18938 int (*fp) (FILE *, off_t, int) = fseeko;
18939 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (ac_try="$ac_link"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext && {
18962 test "$cross_compiling" = yes ||
18963 $as_test_x conftest$ac_exeext
18965 ac_cv_sys_largefile_source=no; break
18967 $as_echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18973 rm -rf conftest.dSYM
18974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975 conftest$ac_exeext conftest.$ac_ext
18976 cat >conftest.$ac_ext <<_ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #define _LARGEFILE_SOURCE 1
18983 #include <sys/types.h> /* for off_t */
18988 int (*fp) (FILE *, off_t, int) = fseeko;
18989 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (ac_try="$ac_link"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
19000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19001 $as_echo "$ac_try_echo") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest$ac_exeext && {
19012 test "$cross_compiling" = yes ||
19013 $as_test_x conftest$ac_exeext
19015 ac_cv_sys_largefile_source=1; break
19017 $as_echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19023 rm -rf conftest.dSYM
19024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19025 conftest$ac_exeext conftest.$ac_ext
19026 ac_cv_sys_largefile_source=unknown
19030 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19031 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19032 case $ac_cv_sys_largefile_source in #(
19035 cat >>confdefs.h <<_ACEOF
19036 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19042 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19043 # in glibc 2.1.3, but that breaks too many other things.
19044 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19045 if test $ac_cv_sys_largefile_source != unknown; then
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_FSEEKO 1
19055 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19056 # by calling it, 2009-04-02
19057 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19058 if test "$PORTNAME" != "solaris"; then
19060 for ac_func in posix_fadvise
19062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19064 $as_echo_n "checking for $ac_func... " >&6; }
19065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19066 $as_echo_n "(cached) " >&6
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19076 #define $ac_func innocuous_$ac_func
19078 /* System header to define __stub macros and hopefully few prototypes,
19079 which can conflict with char $ac_func (); below.
19080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19081 <limits.h> exists even on freestanding compilers. */
19084 # include <limits.h>
19086 # include <assert.h>
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19098 /* The GNU C library defines this for functions which it implements
19099 to always fail with ENOSYS. Some functions are actually named
19100 something starting with __ and the normal name is an alias. */
19101 #if defined __stub_$ac_func || defined __stub___$ac_func
19108 return $ac_func ();
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19120 $as_echo "$ac_try_echo") >&5
19121 (eval "$ac_link") 2>conftest.er1
19123 grep -v '^ *+' conftest.er1 >conftest.err
19125 cat conftest.err >&5
19126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && {
19128 test -z "$ac_c_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest$ac_exeext && {
19131 test "$cross_compiling" = yes ||
19132 $as_test_x conftest$ac_exeext
19134 eval "$as_ac_var=yes"
19136 $as_echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 eval "$as_ac_var=no"
19142 rm -rf conftest.dSYM
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144 conftest$ac_exeext conftest.$ac_ext
19146 ac_res=`eval 'as_val=${'$as_ac_var'}
19147 $as_echo "$as_val"'`
19148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19149 $as_echo "$ac_res" >&6; }
19150 as_val=`eval 'as_val=${'$as_ac_var'}
19151 $as_echo "$as_val"'`
19152 if test "x$as_val" = x""yes; then
19153 cat >>confdefs.h <<_ACEOF
19154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19160 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19161 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19162 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19163 $as_echo_n "(cached) " >&6
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19176 #ifndef posix_fadvise
19177 (void) posix_fadvise;
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19191 $as_echo "$ac_try_echo") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest.$ac_objext; then
19202 ac_cv_have_decl_posix_fadvise=yes
19204 $as_echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ac_cv_have_decl_posix_fadvise=no
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19213 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19214 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19216 cat >>confdefs.h <<_ACEOF
19217 #define HAVE_DECL_POSIX_FADVISE 1
19222 cat >>confdefs.h <<_ACEOF
19223 #define HAVE_DECL_POSIX_FADVISE 0
19232 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19233 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19234 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19235 $as_echo_n "(cached) " >&6
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 #include <unistd.h>
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19263 $as_echo "$ac_try_echo") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19266 grep -v '^ *+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_cv_have_decl_fdatasync=yes
19276 $as_echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_cv_have_decl_fdatasync=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19285 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19286 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19288 cat >>confdefs.h <<_ACEOF
19289 #define HAVE_DECL_FDATASYNC 1
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_DECL_FDATASYNC 0
19302 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19303 $as_echo_n "checking whether strlcat is declared... " >&6; }
19304 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19305 $as_echo_n "(cached) " >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 $ac_includes_default
19325 rm -f conftest.$ac_objext
19326 if { (ac_try="$ac_compile"
19327 case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19332 $as_echo "$ac_try_echo") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } && {
19340 test -z "$ac_c_werror_flag" ||
19341 test ! -s conftest.err
19342 } && test -s conftest.$ac_objext; then
19343 ac_cv_have_decl_strlcat=yes
19345 $as_echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 ac_cv_have_decl_strlcat=no
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19354 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19355 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19357 cat >>confdefs.h <<_ACEOF
19358 #define HAVE_DECL_STRLCAT 1
19363 cat >>confdefs.h <<_ACEOF
19364 #define HAVE_DECL_STRLCAT 0
19369 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19370 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19371 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19372 $as_echo_n "(cached) " >&6
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 $ac_includes_default
19392 rm -f conftest.$ac_objext
19393 if { (ac_try="$ac_compile"
19394 case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400 (eval "$ac_compile") 2>conftest.er1
19402 grep -v '^ *+' conftest.er1 >conftest.err
19404 cat conftest.err >&5
19405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } && {
19407 test -z "$ac_c_werror_flag" ||
19408 test ! -s conftest.err
19409 } && test -s conftest.$ac_objext; then
19410 ac_cv_have_decl_strlcpy=yes
19412 $as_echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 ac_cv_have_decl_strlcpy=no
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19421 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19422 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_DECL_STRLCPY 1
19430 cat >>confdefs.h <<_ACEOF
19431 #define HAVE_DECL_STRLCPY 0
19438 # This is probably only present on Darwin, but may as well check always
19439 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19440 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19441 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19442 $as_echo_n "(cached) " >&6
19444 cat >conftest.$ac_ext <<_ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19455 #ifndef F_FULLFSYNC
19456 (void) F_FULLFSYNC;
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19470 $as_echo "$ac_try_echo") >&5
19471 (eval "$ac_compile") 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest.$ac_objext; then
19481 ac_cv_have_decl_F_FULLFSYNC=yes
19483 $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_have_decl_F_FULLFSYNC=no
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19492 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19493 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE_DECL_F_FULLFSYNC 1
19501 cat >>confdefs.h <<_ACEOF
19502 #define HAVE_DECL_F_FULLFSYNC 0
19511 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19512 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19513 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19514 $as_echo_n "(cached) " >&6
19516 ac_cv_type_struct_sockaddr_in6=no
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 $ac_includes_default
19524 #include <netinet/in.h>
19529 if (sizeof (struct sockaddr_in6))
19535 rm -f conftest.$ac_objext
19536 if { (ac_try="$ac_compile"
19537 case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19542 $as_echo "$ac_try_echo") >&5
19543 (eval "$ac_compile") 2>conftest.er1
19545 grep -v '^ *+' conftest.er1 >conftest.err
19547 cat conftest.err >&5
19548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } && {
19550 test -z "$ac_c_werror_flag" ||
19551 test ! -s conftest.err
19552 } && test -s conftest.$ac_objext; then
19553 cat >conftest.$ac_ext <<_ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 $ac_includes_default
19560 #include <netinet/in.h>
19565 if (sizeof ((struct sockaddr_in6)))
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19578 $as_echo "$ac_try_echo") >&5
19579 (eval "$ac_compile") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest.$ac_objext; then
19591 $as_echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_type_struct_sockaddr_in6=yes
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 $as_echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19607 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19608 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19609 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_IPV6 1
19620 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19621 $as_echo_n "checking for PS_STRINGS... " >&6; }
19622 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19623 $as_echo_n "(cached) " >&6
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 #include <machine/vmparam.h>
19632 #include <sys/exec.h>
19637 PS_STRINGS->ps_nargvstr = 1;
19638 PS_STRINGS->ps_argvstr = "foo";
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19650 $as_echo "$ac_try_echo") >&5
19651 (eval "$ac_link") 2>conftest.er1
19653 grep -v '^ *+' conftest.er1 >conftest.err
19655 cat conftest.err >&5
19656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); } && {
19658 test -z "$ac_c_werror_flag" ||
19659 test ! -s conftest.err
19660 } && test -s conftest$ac_exeext && {
19661 test "$cross_compiling" = yes ||
19662 $as_test_x conftest$ac_exeext
19664 pgac_cv_var_PS_STRINGS=yes
19666 $as_echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 pgac_cv_var_PS_STRINGS=no
19672 rm -rf conftest.dSYM
19673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19674 conftest$ac_exeext conftest.$ac_ext
19676 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19677 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19678 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_PS_STRINGS /**/
19687 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19688 # is missing. Yes, there are machines that have only one. We may
19689 # also decide to use snprintf.c if snprintf() is present but does not
19690 # have all the features we need --- see below.
19692 if test "$PORTNAME" = "win32"; then
19693 # Win32 gets snprintf.c built unconditionally.
19695 # To properly translate all NLS languages strings, we must support the
19696 # *printf() %$ format, which allows *printf() arguments to be selected
19697 # by position in the translated string.
19699 # libintl versions < 0.13 use the native *printf() functions, and Win32
19700 # *printf() doesn't understand %$, so we must use our /port versions,
19701 # which do understand %$. libintl versions >= 0.13 include their own
19702 # *printf versions on Win32. The libintl 0.13 release note text is:
19704 # C format strings with positions, as they arise when a translator
19705 # needs to reorder a sentence, are now supported on all platforms.
19706 # On those few platforms (NetBSD and Woe32) for which the native
19707 # printf()/fprintf()/... functions don't support such format
19708 # strings, replacements are provided through <libintl.h>.
19710 # We could use libintl >= 0.13's *printf() if we were sure that we had
19711 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19712 # to guarantee that, it is best to just use our own, so we are sure to
19713 # get %$ support. In include/port.h we disable the *printf() macros
19714 # that might have been defined by libintl.
19716 # We do this unconditionally whether NLS is used or not so we are sure
19717 # that all Win32 libraries and binaries behave the same.
19718 pgac_need_repl_snprintf=yes
19720 pgac_need_repl_snprintf=no
19722 for ac_func in snprintf
19724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 $as_echo_n "checking for $ac_func... " >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728 $as_echo_n "(cached) " >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19738 #define $ac_func innocuous_$ac_func
19740 /* System header to define __stub macros and hopefully few prototypes,
19741 which can conflict with char $ac_func (); below.
19742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743 <limits.h> exists even on freestanding compilers. */
19746 # include <limits.h>
19748 # include <assert.h>
19753 /* Override any GCC internal prototype to avoid an error.
19754 Use char because int might match the return type of a GCC
19755 builtin and then its argument prototype would still apply. */
19760 /* The GNU C library defines this for functions which it implements
19761 to always fail with ENOSYS. Some functions are actually named
19762 something starting with __ and the normal name is an alias. */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19770 return $ac_func ();
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19782 $as_echo "$ac_try_echo") >&5
19783 (eval "$ac_link") 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext && {
19793 test "$cross_compiling" = yes ||
19794 $as_test_x conftest$ac_exeext
19796 eval "$as_ac_var=yes"
19798 $as_echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 eval "$as_ac_var=no"
19804 rm -rf conftest.dSYM
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806 conftest$ac_exeext conftest.$ac_ext
19808 ac_res=`eval 'as_val=${'$as_ac_var'}
19809 $as_echo "$as_val"'`
19810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19811 $as_echo "$ac_res" >&6; }
19812 as_val=`eval 'as_val=${'$as_ac_var'}
19813 $as_echo "$as_val"'`
19814 if test "x$as_val" = x""yes; then
19815 cat >>confdefs.h <<_ACEOF
19816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19820 pgac_need_repl_snprintf=yes
19825 for ac_func in vsnprintf
19827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19829 $as_echo_n "checking for $ac_func... " >&6; }
19830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19831 $as_echo_n "(cached) " >&6
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19841 #define $ac_func innocuous_$ac_func
19843 /* System header to define __stub macros and hopefully few prototypes,
19844 which can conflict with char $ac_func (); below.
19845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846 <limits.h> exists even on freestanding compilers. */
19849 # include <limits.h>
19851 # include <assert.h>
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19863 /* The GNU C library defines this for functions which it implements
19864 to always fail with ENOSYS. Some functions are actually named
19865 something starting with __ and the normal name is an alias. */
19866 #if defined __stub_$ac_func || defined __stub___$ac_func
19873 return $ac_func ();
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19885 $as_echo "$ac_try_echo") >&5
19886 (eval "$ac_link") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext && {
19896 test "$cross_compiling" = yes ||
19897 $as_test_x conftest$ac_exeext
19899 eval "$as_ac_var=yes"
19901 $as_echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 eval "$as_ac_var=no"
19907 rm -rf conftest.dSYM
19908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19909 conftest$ac_exeext conftest.$ac_ext
19911 ac_res=`eval 'as_val=${'$as_ac_var'}
19912 $as_echo "$as_val"'`
19913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19914 $as_echo "$ac_res" >&6; }
19915 as_val=`eval 'as_val=${'$as_ac_var'}
19916 $as_echo "$as_val"'`
19917 if test "x$as_val" = x""yes; then
19918 cat >>confdefs.h <<_ACEOF
19919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19923 pgac_need_repl_snprintf=yes
19930 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19931 # include/c.h will provide declarations. Note this is a separate test
19932 # from whether the functions exist in the C library --- there are
19933 # systems that have the functions but don't bother to declare them :-(
19935 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19936 $as_echo_n "checking whether snprintf is declared... " >&6; }
19937 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19938 $as_echo_n "(cached) " >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 $ac_includes_default
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966 (eval "$ac_compile") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest.$ac_objext; then
19976 ac_cv_have_decl_snprintf=yes
19978 $as_echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19981 ac_cv_have_decl_snprintf=no
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19986 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19987 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19988 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19990 cat >>confdefs.h <<_ACEOF
19991 #define HAVE_DECL_SNPRINTF 1
19996 cat >>confdefs.h <<_ACEOF
19997 #define HAVE_DECL_SNPRINTF 0
20002 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20003 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20004 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20005 $as_echo_n "(cached) " >&6
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 $ac_includes_default
20025 rm -f conftest.$ac_objext
20026 if { (ac_try="$ac_compile"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20032 $as_echo "$ac_try_echo") >&5
20033 (eval "$ac_compile") 2>conftest.er1
20035 grep -v '^ *+' conftest.er1 >conftest.err
20037 cat conftest.err >&5
20038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest.$ac_objext; then
20043 ac_cv_have_decl_vsnprintf=yes
20045 $as_echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_have_decl_vsnprintf=no
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20054 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20055 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20057 cat >>confdefs.h <<_ACEOF
20058 #define HAVE_DECL_VSNPRINTF 1
20063 cat >>confdefs.h <<_ACEOF
20064 #define HAVE_DECL_VSNPRINTF 0
20073 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20074 $as_echo_n "checking for isinf... " >&6; }
20075 if test "${ac_cv_func_isinf+set}" = set; then
20076 $as_echo_n "(cached) " >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20086 double glob_double;
20091 return isinf(glob_double) ? 0 : 1;
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20103 $as_echo "$ac_try_echo") >&5
20104 (eval "$ac_link") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest$ac_exeext && {
20114 test "$cross_compiling" = yes ||
20115 $as_test_x conftest$ac_exeext
20117 ac_cv_func_isinf=yes
20119 $as_echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 ac_cv_func_isinf=no
20125 rm -rf conftest.dSYM
20126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20127 conftest$ac_exeext conftest.$ac_ext
20129 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20130 $as_echo "$ac_cv_func_isinf" >&6; }
20132 if test $ac_cv_func_isinf = yes ; then
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_ISINF 1
20139 case " $LIBOBJS " in
20140 *" isinf.$ac_objext "* ) ;;
20141 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20145 # Look for a way to implement a substitute for isinf()
20150 for ac_func in fpclass fp_class fp_class_d class
20152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20153 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20154 $as_echo_n "checking for $ac_func... " >&6; }
20155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20156 $as_echo_n "(cached) " >&6
20158 cat >conftest.$ac_ext <<_ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20166 #define $ac_func innocuous_$ac_func
20168 /* System header to define __stub macros and hopefully few prototypes,
20169 which can conflict with char $ac_func (); below.
20170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20171 <limits.h> exists even on freestanding compilers. */
20174 # include <limits.h>
20176 # include <assert.h>
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20188 /* The GNU C library defines this for functions which it implements
20189 to always fail with ENOSYS. Some functions are actually named
20190 something starting with __ and the normal name is an alias. */
20191 #if defined __stub_$ac_func || defined __stub___$ac_func
20198 return $ac_func ();
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20210 $as_echo "$ac_try_echo") >&5
20211 (eval "$ac_link") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest$ac_exeext && {
20221 test "$cross_compiling" = yes ||
20222 $as_test_x conftest$ac_exeext
20224 eval "$as_ac_var=yes"
20226 $as_echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 eval "$as_ac_var=no"
20232 rm -rf conftest.dSYM
20233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20234 conftest$ac_exeext conftest.$ac_ext
20236 ac_res=`eval 'as_val=${'$as_ac_var'}
20237 $as_echo "$as_val"'`
20238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20239 $as_echo "$ac_res" >&6; }
20240 as_val=`eval 'as_val=${'$as_ac_var'}
20241 $as_echo "$as_val"'`
20242 if test "x$as_val" = x""yes; then
20243 cat >>confdefs.h <<_ACEOF
20244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20252 # Some versions of libedit contain strlcpy(); so disregard that library while
20253 # checking for these standard libc functions.
20254 pgac_save_LIBS="$LIBS"
20255 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20271 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20274 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20275 $as_echo_n "checking for $ac_func... " >&6; }
20276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20277 $as_echo_n "(cached) " >&6
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20287 #define $ac_func innocuous_$ac_func
20289 /* System header to define __stub macros and hopefully few prototypes,
20290 which can conflict with char $ac_func (); below.
20291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20292 <limits.h> exists even on freestanding compilers. */
20295 # include <limits.h>
20297 # include <assert.h>
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20309 /* The GNU C library defines this for functions which it implements
20310 to always fail with ENOSYS. Some functions are actually named
20311 something starting with __ and the normal name is an alias. */
20312 #if defined __stub_$ac_func || defined __stub___$ac_func
20319 return $ac_func ();
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20331 $as_echo "$ac_try_echo") >&5
20332 (eval "$ac_link") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext && {
20342 test "$cross_compiling" = yes ||
20343 $as_test_x conftest$ac_exeext
20345 eval "$as_ac_var=yes"
20347 $as_echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 eval "$as_ac_var=no"
20353 rm -rf conftest.dSYM
20354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20355 conftest$ac_exeext conftest.$ac_ext
20357 ac_res=`eval 'as_val=${'$as_ac_var'}
20358 $as_echo "$as_val"'`
20359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20360 $as_echo "$ac_res" >&6; }
20361 as_val=`eval 'as_val=${'$as_ac_var'}
20362 $as_echo "$as_val"'`
20363 if test "x$as_val" = x""yes; then
20364 cat >>confdefs.h <<_ACEOF
20365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20369 case " $LIBOBJS " in
20370 *" $ac_func.$ac_objext "* ) ;;
20371 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20382 # Windows uses a specialised env handler
20385 cat >>confdefs.h <<\_ACEOF
20386 #define HAVE_UNSETENV 1
20389 ac_cv_func_unsetenv=yes;;
20392 for ac_func in unsetenv
20394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20396 $as_echo_n "checking for $ac_func... " >&6; }
20397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20398 $as_echo_n "(cached) " >&6
20400 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20408 #define $ac_func innocuous_$ac_func
20410 /* System header to define __stub macros and hopefully few prototypes,
20411 which can conflict with char $ac_func (); below.
20412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 <limits.h> exists even on freestanding compilers. */
20416 # include <limits.h>
20418 # include <assert.h>
20423 /* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20430 /* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433 #if defined __stub_$ac_func || defined __stub___$ac_func
20440 return $ac_func ();
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20452 $as_echo "$ac_try_echo") >&5
20453 (eval "$ac_link") 2>conftest.er1
20455 grep -v '^ *+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && {
20460 test -z "$ac_c_werror_flag" ||
20461 test ! -s conftest.err
20462 } && test -s conftest$ac_exeext && {
20463 test "$cross_compiling" = yes ||
20464 $as_test_x conftest$ac_exeext
20466 eval "$as_ac_var=yes"
20468 $as_echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 eval "$as_ac_var=no"
20474 rm -rf conftest.dSYM
20475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20476 conftest$ac_exeext conftest.$ac_ext
20478 ac_res=`eval 'as_val=${'$as_ac_var'}
20479 $as_echo "$as_val"'`
20480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20481 $as_echo "$ac_res" >&6; }
20482 as_val=`eval 'as_val=${'$as_ac_var'}
20483 $as_echo "$as_val"'`
20484 if test "x$as_val" = x""yes; then
20485 cat >>confdefs.h <<_ACEOF
20486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20490 case " $LIBOBJS " in
20491 *" $ac_func.$ac_objext "* ) ;;
20492 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20504 LIBS="$pgac_save_LIBS"
20506 # System's version of getaddrinfo(), if any, may be used only if we found
20507 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20508 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20509 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20510 # because we want to use our own getaddrinfo.c on Windows anyway.)
20511 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20513 for ac_func in getaddrinfo
20515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20517 $as_echo_n "checking for $ac_func... " >&6; }
20518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20519 $as_echo_n "(cached) " >&6
20521 cat >conftest.$ac_ext <<_ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h. */
20527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20529 #define $ac_func innocuous_$ac_func
20531 /* System header to define __stub macros and hopefully few prototypes,
20532 which can conflict with char $ac_func (); below.
20533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20534 <limits.h> exists even on freestanding compilers. */
20537 # include <limits.h>
20539 # include <assert.h>
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20551 /* The GNU C library defines this for functions which it implements
20552 to always fail with ENOSYS. Some functions are actually named
20553 something starting with __ and the normal name is an alias. */
20554 #if defined __stub_$ac_func || defined __stub___$ac_func
20561 return $ac_func ();
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (ac_try="$ac_link"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20573 $as_echo "$ac_try_echo") >&5
20574 (eval "$ac_link") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && {
20581 test -z "$ac_c_werror_flag" ||
20582 test ! -s conftest.err
20583 } && test -s conftest$ac_exeext && {
20584 test "$cross_compiling" = yes ||
20585 $as_test_x conftest$ac_exeext
20587 eval "$as_ac_var=yes"
20589 $as_echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 eval "$as_ac_var=no"
20595 rm -rf conftest.dSYM
20596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20597 conftest$ac_exeext conftest.$ac_ext
20599 ac_res=`eval 'as_val=${'$as_ac_var'}
20600 $as_echo "$as_val"'`
20601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20602 $as_echo "$ac_res" >&6; }
20603 as_val=`eval 'as_val=${'$as_ac_var'}
20604 $as_echo "$as_val"'`
20605 if test "x$as_val" = x""yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20611 case " $LIBOBJS " in
20612 *" $ac_func.$ac_objext "* ) ;;
20613 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20622 case " $LIBOBJS " in
20623 *" getaddrinfo.$ac_objext "* ) ;;
20624 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20630 # Similarly, use system's getopt_long() only if system provides struct option.
20631 if test x"$ac_cv_type_struct_option" = xyes ; then
20633 for ac_func in getopt_long
20635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20637 $as_echo_n "checking for $ac_func... " >&6; }
20638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20639 $as_echo_n "(cached) " >&6
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20649 #define $ac_func innocuous_$ac_func
20651 /* System header to define __stub macros and hopefully few prototypes,
20652 which can conflict with char $ac_func (); below.
20653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20654 <limits.h> exists even on freestanding compilers. */
20657 # include <limits.h>
20659 # include <assert.h>
20664 /* Override any GCC internal prototype to avoid an error.
20665 Use char because int might match the return type of a GCC
20666 builtin and then its argument prototype would still apply. */
20671 /* The GNU C library defines this for functions which it implements
20672 to always fail with ENOSYS. Some functions are actually named
20673 something starting with __ and the normal name is an alias. */
20674 #if defined __stub_$ac_func || defined __stub___$ac_func
20681 return $ac_func ();
20686 rm -f conftest.$ac_objext conftest$ac_exeext
20687 if { (ac_try="$ac_link"
20688 case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693 $as_echo "$ac_try_echo") >&5
20694 (eval "$ac_link") 2>conftest.er1
20696 grep -v '^ *+' conftest.er1 >conftest.err
20698 cat conftest.err >&5
20699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } && {
20701 test -z "$ac_c_werror_flag" ||
20702 test ! -s conftest.err
20703 } && test -s conftest$ac_exeext && {
20704 test "$cross_compiling" = yes ||
20705 $as_test_x conftest$ac_exeext
20707 eval "$as_ac_var=yes"
20709 $as_echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 eval "$as_ac_var=no"
20715 rm -rf conftest.dSYM
20716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20717 conftest$ac_exeext conftest.$ac_ext
20719 ac_res=`eval 'as_val=${'$as_ac_var'}
20720 $as_echo "$as_val"'`
20721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20722 $as_echo "$ac_res" >&6; }
20723 as_val=`eval 'as_val=${'$as_ac_var'}
20724 $as_echo "$as_val"'`
20725 if test "x$as_val" = x""yes; then
20726 cat >>confdefs.h <<_ACEOF
20727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20731 case " $LIBOBJS " in
20732 *" $ac_func.$ac_objext "* ) ;;
20733 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20742 case " $LIBOBJS " in
20743 *" getopt_long.$ac_objext "* ) ;;
20744 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20750 # Solaris' getopt() doesn't do what we want for long options, so always use
20751 # our version on that platform.
20752 if test "$PORTNAME" = "solaris"; then
20753 case " $LIBOBJS " in
20754 *" getopt.$ac_objext "* ) ;;
20755 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20761 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20762 # so always use our version on Windows.
20763 if test "$PORTNAME" = "win32"; then
20764 case " $LIBOBJS " in
20765 *" getopt.$ac_objext "* ) ;;
20766 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20770 case " $LIBOBJS " in
20771 *" getopt_long.$ac_objext "* ) ;;
20772 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20778 # Cygwin's erand48() is broken (always returns zero) in some releases,
20779 # so force use of ours.
20780 if test "$PORTNAME" = "cygwin"; then
20781 case " $LIBOBJS " in
20782 *" erand48.$ac_objext "* ) ;;
20783 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20790 if test "$PORTNAME" = "win32"; then
20792 for ac_func in gettimeofday
20794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20796 $as_echo_n "checking for $ac_func... " >&6; }
20797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20798 $as_echo_n "(cached) " >&6
20800 cat >conftest.$ac_ext <<_ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20808 #define $ac_func innocuous_$ac_func
20810 /* System header to define __stub macros and hopefully few prototypes,
20811 which can conflict with char $ac_func (); below.
20812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20813 <limits.h> exists even on freestanding compilers. */
20816 # include <limits.h>
20818 # include <assert.h>
20823 /* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20830 /* The GNU C library defines this for functions which it implements
20831 to always fail with ENOSYS. Some functions are actually named
20832 something starting with __ and the normal name is an alias. */
20833 #if defined __stub_$ac_func || defined __stub___$ac_func
20840 return $ac_func ();
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20852 $as_echo "$ac_try_echo") >&5
20853 (eval "$ac_link") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest$ac_exeext && {
20863 test "$cross_compiling" = yes ||
20864 $as_test_x conftest$ac_exeext
20866 eval "$as_ac_var=yes"
20868 $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 eval "$as_ac_var=no"
20874 rm -rf conftest.dSYM
20875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20876 conftest$ac_exeext conftest.$ac_ext
20878 ac_res=`eval 'as_val=${'$as_ac_var'}
20879 $as_echo "$as_val"'`
20880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20881 $as_echo "$ac_res" >&6; }
20882 as_val=`eval 'as_val=${'$as_ac_var'}
20883 $as_echo "$as_val"'`
20884 if test "x$as_val" = x""yes; then
20885 cat >>confdefs.h <<_ACEOF
20886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20890 case " $LIBOBJS " in
20891 *" $ac_func.$ac_objext "* ) ;;
20892 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20900 case " $LIBOBJS " in
20901 *" kill.$ac_objext "* ) ;;
20902 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20906 case " $LIBOBJS " in
20907 *" open.$ac_objext "* ) ;;
20908 *) LIBOBJS="$LIBOBJS open.$ac_objext"
20912 case " $LIBOBJS " in
20913 *" win32env.$ac_objext "* ) ;;
20914 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20918 case " $LIBOBJS " in
20919 *" win32error.$ac_objext "* ) ;;
20920 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_SYMLINK 1
20931 if test "$with_readline" = yes; then
20932 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20933 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20934 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
20935 $as_echo_n "(cached) " >&6
20937 cat >conftest.$ac_ext <<_ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20944 #ifdef HAVE_READLINE_READLINE_H
20945 # include <readline/readline.h>
20946 #elif defined(HAVE_READLINE_H)
20947 # include <readline.h>
20953 rl_completion_append_character = 'x';
20958 rm -f conftest.$ac_objext conftest$ac_exeext
20959 if { (ac_try="$ac_link"
20960 case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20965 $as_echo "$ac_try_echo") >&5
20966 (eval "$ac_link") 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest$ac_exeext && {
20976 test "$cross_compiling" = yes ||
20977 $as_test_x conftest$ac_exeext
20979 pgac_cv_var_rl_completion_append_character=yes
20981 $as_echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 pgac_cv_var_rl_completion_append_character=no
20987 rm -rf conftest.dSYM
20988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20989 conftest$ac_exeext conftest.$ac_ext
20991 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
20992 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
20993 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21002 for ac_func in rl_completion_matches rl_filename_completion_function
21004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21005 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21006 $as_echo_n "checking for $ac_func... " >&6; }
21007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21008 $as_echo_n "(cached) " >&6
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21018 #define $ac_func innocuous_$ac_func
21020 /* System header to define __stub macros and hopefully few prototypes,
21021 which can conflict with char $ac_func (); below.
21022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21023 <limits.h> exists even on freestanding compilers. */
21026 # include <limits.h>
21028 # include <assert.h>
21033 /* Override any GCC internal prototype to avoid an error.
21034 Use char because int might match the return type of a GCC
21035 builtin and then its argument prototype would still apply. */
21040 /* The GNU C library defines this for functions which it implements
21041 to always fail with ENOSYS. Some functions are actually named
21042 something starting with __ and the normal name is an alias. */
21043 #if defined __stub_$ac_func || defined __stub___$ac_func
21050 return $ac_func ();
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063 (eval "$ac_link") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest$ac_exeext && {
21073 test "$cross_compiling" = yes ||
21074 $as_test_x conftest$ac_exeext
21076 eval "$as_ac_var=yes"
21078 $as_echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 eval "$as_ac_var=no"
21084 rm -rf conftest.dSYM
21085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21086 conftest$ac_exeext conftest.$ac_ext
21088 ac_res=`eval 'as_val=${'$as_ac_var'}
21089 $as_echo "$as_val"'`
21090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21091 $as_echo "$ac_res" >&6; }
21092 as_val=`eval 'as_val=${'$as_ac_var'}
21093 $as_echo "$as_val"'`
21094 if test "x$as_val" = x""yes; then
21095 cat >>confdefs.h <<_ACEOF
21096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21104 for ac_func in append_history history_truncate_file
21106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21108 $as_echo_n "checking for $ac_func... " >&6; }
21109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21110 $as_echo_n "(cached) " >&6
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21120 #define $ac_func innocuous_$ac_func
21122 /* System header to define __stub macros and hopefully few prototypes,
21123 which can conflict with char $ac_func (); below.
21124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125 <limits.h> exists even on freestanding compilers. */
21128 # include <limits.h>
21130 # include <assert.h>
21135 /* Override any GCC internal prototype to avoid an error.
21136 Use char because int might match the return type of a GCC
21137 builtin and then its argument prototype would still apply. */
21142 /* The GNU C library defines this for functions which it implements
21143 to always fail with ENOSYS. Some functions are actually named
21144 something starting with __ and the normal name is an alias. */
21145 #if defined __stub_$ac_func || defined __stub___$ac_func
21152 return $ac_func ();
21157 rm -f conftest.$ac_objext conftest$ac_exeext
21158 if { (ac_try="$ac_link"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21164 $as_echo "$ac_try_echo") >&5
21165 (eval "$ac_link") 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest$ac_exeext && {
21175 test "$cross_compiling" = yes ||
21176 $as_test_x conftest$ac_exeext
21178 eval "$as_ac_var=yes"
21180 $as_echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 eval "$as_ac_var=no"
21186 rm -rf conftest.dSYM
21187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21188 conftest$ac_exeext conftest.$ac_ext
21190 ac_res=`eval 'as_val=${'$as_ac_var'}
21191 $as_echo "$as_val"'`
21192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21193 $as_echo "$ac_res" >&6; }
21194 as_val=`eval 'as_val=${'$as_ac_var'}
21195 $as_echo "$as_val"'`
21196 if test "x$as_val" = x""yes; then
21197 cat >>confdefs.h <<_ACEOF
21198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21207 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21208 $as_echo_n "checking for sigsetjmp... " >&6; }
21209 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21210 $as_echo_n "(cached) " >&6
21212 cat >conftest.$ac_ext <<_ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21218 #include <setjmp.h>
21222 sigjmp_buf x; sigsetjmp(x, 1);
21227 rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21234 $as_echo "$ac_try_echo") >&5
21235 (eval "$ac_link") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest$ac_exeext && {
21245 test "$cross_compiling" = yes ||
21246 $as_test_x conftest$ac_exeext
21248 pgac_cv_func_sigsetjmp=yes
21250 $as_echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21253 pgac_cv_func_sigsetjmp=no
21256 rm -rf conftest.dSYM
21257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21258 conftest$ac_exeext conftest.$ac_ext
21260 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21261 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21262 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_SIGSETJMP 1
21270 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21271 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21272 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21273 $as_echo_n "(cached) " >&6
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 #include <signal.h>
21282 /* NetBSD declares sys_siglist in unistd.h. */
21283 #ifdef HAVE_UNISTD_H
21284 # include <unistd.h>
21291 #ifndef sys_siglist
21292 (void) sys_siglist;
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21306 $as_echo "$ac_try_echo") >&5
21307 (eval "$ac_compile") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } && {
21314 test -z "$ac_c_werror_flag" ||
21315 test ! -s conftest.err
21316 } && test -s conftest.$ac_objext; then
21317 ac_cv_have_decl_sys_siglist=yes
21319 $as_echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21322 ac_cv_have_decl_sys_siglist=no
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21328 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21329 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21331 cat >>confdefs.h <<_ACEOF
21332 #define HAVE_DECL_SYS_SIGLIST 1
21337 cat >>confdefs.h <<_ACEOF
21338 #define HAVE_DECL_SYS_SIGLIST 0
21347 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21348 $as_echo_n "checking for syslog... " >&6; }
21349 if test "${ac_cv_func_syslog+set}" = set; then
21350 $as_echo_n "(cached) " >&6
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21360 #define syslog innocuous_syslog
21362 /* System header to define __stub macros and hopefully few prototypes,
21363 which can conflict with char syslog (); below.
21364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21365 <limits.h> exists even on freestanding compilers. */
21368 # include <limits.h>
21370 # include <assert.h>
21375 /* Override any GCC internal prototype to avoid an error.
21376 Use char because int might match the return type of a GCC
21377 builtin and then its argument prototype would still apply. */
21382 /* The GNU C library defines this for functions which it implements
21383 to always fail with ENOSYS. Some functions are actually named
21384 something starting with __ and the normal name is an alias. */
21385 #if defined __stub_syslog || defined __stub___syslog
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (ac_try="$ac_link"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21404 $as_echo "$ac_try_echo") >&5
21405 (eval "$ac_link") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest$ac_exeext && {
21415 test "$cross_compiling" = yes ||
21416 $as_test_x conftest$ac_exeext
21418 ac_cv_func_syslog=yes
21420 $as_echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21423 ac_cv_func_syslog=no
21426 rm -rf conftest.dSYM
21427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21428 conftest$ac_exeext conftest.$ac_ext
21430 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21431 $as_echo "$ac_cv_func_syslog" >&6; }
21432 if test "x$ac_cv_func_syslog" = x""yes; then
21433 if test "${ac_cv_header_syslog_h+set}" = set; then
21434 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21435 $as_echo_n "checking for syslog.h... " >&6; }
21436 if test "${ac_cv_header_syslog_h+set}" = set; then
21437 $as_echo_n "(cached) " >&6
21439 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21440 $as_echo "$ac_cv_header_syslog_h" >&6; }
21442 # Is the header compilable?
21443 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21444 $as_echo_n "checking syslog.h usability... " >&6; }
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 $ac_includes_default
21452 #include <syslog.h>
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21461 $as_echo "$ac_try_echo") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.$ac_objext; then
21472 ac_header_compiler=yes
21474 $as_echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_header_compiler=no
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 $as_echo "$ac_header_compiler" >&6; }
21484 # Is the header present?
21485 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21486 $as_echo_n "checking syslog.h presence... " >&6; }
21487 cat >conftest.$ac_ext <<_ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <syslog.h>
21495 if { (ac_try="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21501 $as_echo "$ac_try_echo") >&5
21502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21504 grep -v '^ *+' conftest.er1 >conftest.err
21506 cat conftest.err >&5
21507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } >/dev/null && {
21509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21512 ac_header_preproc=yes
21514 $as_echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ac_header_preproc=no
21520 rm -f conftest.err conftest.$ac_ext
21521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21522 $as_echo "$ac_header_preproc" >&6; }
21524 # So? What about this header?
21525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21527 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21528 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21529 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21530 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21531 ac_header_preproc=yes
21534 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21535 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21536 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21537 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21538 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21539 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21540 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21541 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21542 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21543 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21544 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21545 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21547 ## ---------------------------------------- ##
21548 ## Report this to pgsql-bugs@postgresql.org ##
21549 ## ---------------------------------------- ##
21551 ) | sed "s/^/$as_me: WARNING: /" >&2
21554 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21555 $as_echo_n "checking for syslog.h... " >&6; }
21556 if test "${ac_cv_header_syslog_h+set}" = set; then
21557 $as_echo_n "(cached) " >&6
21559 ac_cv_header_syslog_h=$ac_header_preproc
21561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21562 $as_echo "$ac_cv_header_syslog_h" >&6; }
21565 if test "x$ac_cv_header_syslog_h" = x""yes; then
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_SYSLOG 1
21577 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21578 $as_echo_n "checking for opterr... " >&6; }
21579 if test "${pgac_cv_var_int_opterr+set}" = set; then
21580 $as_echo_n "(cached) " >&6
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <unistd.h>
21592 extern int opterr; opterr = 1;
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (ac_try="$ac_link"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21604 $as_echo "$ac_try_echo") >&5
21605 (eval "$ac_link") 2>conftest.er1
21607 grep -v '^ *+' conftest.er1 >conftest.err
21609 cat conftest.err >&5
21610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } && {
21612 test -z "$ac_c_werror_flag" ||
21613 test ! -s conftest.err
21614 } && test -s conftest$ac_exeext && {
21615 test "$cross_compiling" = yes ||
21616 $as_test_x conftest$ac_exeext
21618 pgac_cv_var_int_opterr=yes
21620 $as_echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 pgac_cv_var_int_opterr=no
21626 rm -rf conftest.dSYM
21627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21628 conftest$ac_exeext conftest.$ac_ext
21630 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21631 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21632 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21634 cat >>confdefs.h <<\_ACEOF
21635 #define HAVE_INT_OPTERR 1
21640 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21641 $as_echo_n "checking for optreset... " >&6; }
21642 if test "${pgac_cv_var_int_optreset+set}" = set; then
21643 $as_echo_n "(cached) " >&6
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <unistd.h>
21655 extern int optreset; optreset = 1;
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21667 $as_echo "$ac_try_echo") >&5
21668 (eval "$ac_link") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest$ac_exeext && {
21678 test "$cross_compiling" = yes ||
21679 $as_test_x conftest$ac_exeext
21681 pgac_cv_var_int_optreset=yes
21683 $as_echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 pgac_cv_var_int_optreset=no
21689 rm -rf conftest.dSYM
21690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21691 conftest$ac_exeext conftest.$ac_ext
21693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21694 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21695 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21697 cat >>confdefs.h <<\_ACEOF
21698 #define HAVE_INT_OPTRESET 1
21705 for ac_func in strtoll strtoq
21707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21709 $as_echo_n "checking for $ac_func... " >&6; }
21710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21711 $as_echo_n "(cached) " >&6
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21721 #define $ac_func innocuous_$ac_func
21723 /* System header to define __stub macros and hopefully few prototypes,
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21729 # include <limits.h>
21731 # include <assert.h>
21736 /* Override any GCC internal prototype to avoid an error.
21737 Use char because int might match the return type of a GCC
21738 builtin and then its argument prototype would still apply. */
21743 /* The GNU C library defines this for functions which it implements
21744 to always fail with ENOSYS. Some functions are actually named
21745 something starting with __ and the normal name is an alias. */
21746 #if defined __stub_$ac_func || defined __stub___$ac_func
21753 return $ac_func ();
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21765 $as_echo "$ac_try_echo") >&5
21766 (eval "$ac_link") 2>conftest.er1
21768 grep -v '^ *+' conftest.er1 >conftest.err
21770 cat conftest.err >&5
21771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest$ac_exeext && {
21776 test "$cross_compiling" = yes ||
21777 $as_test_x conftest$ac_exeext
21779 eval "$as_ac_var=yes"
21781 $as_echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 eval "$as_ac_var=no"
21787 rm -rf conftest.dSYM
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21791 ac_res=`eval 'as_val=${'$as_ac_var'}
21792 $as_echo "$as_val"'`
21793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21794 $as_echo "$ac_res" >&6; }
21795 as_val=`eval 'as_val=${'$as_ac_var'}
21796 $as_echo "$as_val"'`
21797 if test "x$as_val" = x""yes; then
21798 cat >>confdefs.h <<_ACEOF
21799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21807 for ac_func in strtoull strtouq
21809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21810 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21811 $as_echo_n "checking for $ac_func... " >&6; }
21812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21813 $as_echo_n "(cached) " >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21823 #define $ac_func innocuous_$ac_func
21825 /* System header to define __stub macros and hopefully few prototypes,
21826 which can conflict with char $ac_func (); below.
21827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21828 <limits.h> exists even on freestanding compilers. */
21831 # include <limits.h>
21833 # include <assert.h>
21838 /* Override any GCC internal prototype to avoid an error.
21839 Use char because int might match the return type of a GCC
21840 builtin and then its argument prototype would still apply. */
21845 /* The GNU C library defines this for functions which it implements
21846 to always fail with ENOSYS. Some functions are actually named
21847 something starting with __ and the normal name is an alias. */
21848 #if defined __stub_$ac_func || defined __stub___$ac_func
21855 return $ac_func ();
21860 rm -f conftest.$ac_objext conftest$ac_exeext
21861 if { (ac_try="$ac_link"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21867 $as_echo "$ac_try_echo") >&5
21868 (eval "$ac_link") 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest$ac_exeext && {
21878 test "$cross_compiling" = yes ||
21879 $as_test_x conftest$ac_exeext
21881 eval "$as_ac_var=yes"
21883 $as_echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 eval "$as_ac_var=no"
21889 rm -rf conftest.dSYM
21890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21891 conftest$ac_exeext conftest.$ac_ext
21893 ac_res=`eval 'as_val=${'$as_ac_var'}
21894 $as_echo "$as_val"'`
21895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21896 $as_echo "$ac_res" >&6; }
21897 as_val=`eval 'as_val=${'$as_ac_var'}
21898 $as_echo "$as_val"'`
21899 if test "x$as_val" = x""yes; then
21900 cat >>confdefs.h <<_ACEOF
21901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21908 # Check for one of atexit() or on_exit()
21910 for ac_func in atexit
21912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21914 $as_echo_n "checking for $ac_func... " >&6; }
21915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21916 $as_echo_n "(cached) " >&6
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21926 #define $ac_func innocuous_$ac_func
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char $ac_func (); below.
21930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931 <limits.h> exists even on freestanding compilers. */
21934 # include <limits.h>
21936 # include <assert.h>
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined __stub_$ac_func || defined __stub___$ac_func
21958 return $ac_func ();
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21970 $as_echo "$ac_try_echo") >&5
21971 (eval "$ac_link") 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest$ac_exeext && {
21981 test "$cross_compiling" = yes ||
21982 $as_test_x conftest$ac_exeext
21984 eval "$as_ac_var=yes"
21986 $as_echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21989 eval "$as_ac_var=no"
21992 rm -rf conftest.dSYM
21993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21994 conftest$ac_exeext conftest.$ac_ext
21996 ac_res=`eval 'as_val=${'$as_ac_var'}
21997 $as_echo "$as_val"'`
21998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21999 $as_echo "$ac_res" >&6; }
22000 as_val=`eval 'as_val=${'$as_ac_var'}
22001 $as_echo "$as_val"'`
22002 if test "x$as_val" = x""yes; then
22003 cat >>confdefs.h <<_ACEOF
22004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22009 for ac_func in on_exit
22011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22013 $as_echo_n "checking for $ac_func... " >&6; }
22014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22015 $as_echo_n "(cached) " >&6
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22025 #define $ac_func innocuous_$ac_func
22027 /* System header to define __stub macros and hopefully few prototypes,
22028 which can conflict with char $ac_func (); below.
22029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22030 <limits.h> exists even on freestanding compilers. */
22033 # include <limits.h>
22035 # include <assert.h>
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22047 /* The GNU C library defines this for functions which it implements
22048 to always fail with ENOSYS. Some functions are actually named
22049 something starting with __ and the normal name is an alias. */
22050 #if defined __stub_$ac_func || defined __stub___$ac_func
22057 return $ac_func ();
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22069 $as_echo "$ac_try_echo") >&5
22070 (eval "$ac_link") 2>conftest.er1
22072 grep -v '^ *+' conftest.er1 >conftest.err
22074 cat conftest.err >&5
22075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } && {
22077 test -z "$ac_c_werror_flag" ||
22078 test ! -s conftest.err
22079 } && test -s conftest$ac_exeext && {
22080 test "$cross_compiling" = yes ||
22081 $as_test_x conftest$ac_exeext
22083 eval "$as_ac_var=yes"
22085 $as_echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 eval "$as_ac_var=no"
22091 rm -rf conftest.dSYM
22092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22093 conftest$ac_exeext conftest.$ac_ext
22095 ac_res=`eval 'as_val=${'$as_ac_var'}
22096 $as_echo "$as_val"'`
22097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 as_val=`eval 'as_val=${'$as_ac_var'}
22100 $as_echo "$as_val"'`
22101 if test "x$as_val" = x""yes; then
22102 cat >>confdefs.h <<_ACEOF
22103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22107 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22108 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22109 { (exit 1); exit 1; }; }
22121 # For each platform, we need to know about any special compile and link
22122 # libraries, and whether the normal C function names are thread-safe.
22123 # See the comment at the top of src/port/thread.c for more information.
22124 # WIN32 doesn't need the pthread tests; it always uses threads
22125 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22130 ac_cpp='$CPP $CPPFLAGS'
22131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22137 # We used to check for pthread.h first, but this fails if pthread.h
22138 # requires special compiler flags (e.g. on True64 or Sequent).
22139 # It gets checked for in the link test anyway.
22141 # First of all, check if the user has set any of the PTHREAD_LIBS,
22142 # etcetera environment variables, and if threads linking works using
22144 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22145 save_CFLAGS="$CFLAGS"
22146 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22148 LIBS="$PTHREAD_LIBS $LIBS"
22149 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22150 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22158 /* Override any GCC internal prototype to avoid an error.
22159 Use char because int might match the return type of a GCC
22160 builtin and then its argument prototype would still apply. */
22164 char pthread_join ();
22168 return pthread_join ();
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181 (eval "$ac_link") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest$ac_exeext && {
22191 test "$cross_compiling" = yes ||
22192 $as_test_x conftest$ac_exeext
22196 $as_echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22202 rm -rf conftest.dSYM
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204 conftest$ac_exeext conftest.$ac_ext
22205 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22206 $as_echo "$acx_pthread_ok" >&6; }
22207 if test x"$acx_pthread_ok" = xno; then
22212 CFLAGS="$save_CFLAGS"
22215 # We must check for the threads library under a number of different
22216 # names; the ordering is very important because some systems
22217 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22218 # libraries is broken (non-POSIX).
22220 # Create a list of thread flags to try. Items starting with a "-" are
22221 # C compiler flags, and other items are library names, except for "none"
22222 # which indicates that we try without any flags at all, and "pthread-config"
22223 # which is a program returning the flags for the Pth emulation library.
22225 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22227 # The ordering *is* (sometimes) important. Some notes on the
22228 # individual items follow:
22230 # pthreads: AIX (must check this before -lpthread)
22231 # none: in case threads are in libc; should be tried before -Kthread and
22232 # other compiler flags to prevent continual compiler warnings
22233 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22234 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22235 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22236 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22237 # -pthreads: Solaris/gcc
22238 # -mthreads: Mingw32/gcc, Lynx/gcc
22239 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22240 # doesn't hurt to check since this sometimes defines pthreads too;
22241 # also defines -D_REENTRANT)
22242 # pthread: Linux, etcetera
22243 # --thread-safe: KAI C++
22244 # pthread-config: use pthread-config program (for GNU Pth library)
22246 case "${host_cpu}-${host_os}" in
22249 # On Solaris (at least, for some versions), libc contains stubbed
22250 # (non-functional) versions of the pthreads routines, so link-based
22251 # tests will erroneously succeed. (We need to link with -pthread or
22252 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22253 # a function called by this macro, so we could check for that, but
22254 # who knows whether they'll stub that too in a future libc.) So,
22255 # we'll just look for -pthreads and -lpthread first:
22257 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22261 if test x"$acx_pthread_ok" = xno; then
22262 for flag in $acx_pthread_flags; do
22264 tryPTHREAD_CFLAGS=""
22268 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22269 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22273 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22274 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22275 tryPTHREAD_CFLAGS="$flag"
22279 # skip this if we already have flags defined, for PostgreSQL
22280 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22281 # Extract the first word of "pthread-config", so it can be a program name with args.
22282 set dummy pthread-config; ac_word=$2
22283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22286 $as_echo_n "(cached) " >&6
22288 if test -n "$acx_pthread_config"; then
22289 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22292 for as_dir in $PATH
22295 test -z "$as_dir" && as_dir=.
22296 for ac_exec_ext in '' $ac_executable_extensions; do
22297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22298 ac_cv_prog_acx_pthread_config="yes"
22299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22306 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22309 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22310 if test -n "$acx_pthread_config"; then
22311 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22312 $as_echo "$acx_pthread_config" >&6; }
22314 { $as_echo "$as_me:$LINENO: result: no" >&5
22315 $as_echo "no" >&6; }
22319 if test x"$acx_pthread_config" = xno; then continue; fi
22320 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22321 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22325 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22326 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22327 tryPTHREAD_LIBS="-l$flag"
22332 save_CFLAGS="$CFLAGS"
22333 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22334 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22336 # Check for various functions. We must include pthread.h,
22337 # since some functions may be macros. (On the Sequent, we
22338 # need a special flag -Kthread to make this header compile.)
22339 # We check for pthread_join because it is in -lpthread on IRIX
22340 # while pthread_create is in libc. We check for pthread_attr_init
22341 # due to DEC craziness with -lpthreads. We check for
22342 # pthread_cleanup_push because it is one of the few pthread
22343 # functions on Solaris that doesn't have a non-functional libc stub.
22344 # We try pthread_create on general principles.
22345 cat >conftest.$ac_ext <<_ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22351 #include <pthread.h>
22355 pthread_t th; pthread_join(th, 0);
22356 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22357 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22362 rm -f conftest.$ac_objext conftest$ac_exeext
22363 if { (ac_try="$ac_link"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22369 $as_echo "$ac_try_echo") >&5
22370 (eval "$ac_link") 2>conftest.er1
22372 grep -v '^ *+' conftest.er1 >conftest.err
22374 cat conftest.err >&5
22375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest$ac_exeext && {
22380 test "$cross_compiling" = yes ||
22381 $as_test_x conftest$ac_exeext
22385 $as_echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22391 rm -rf conftest.dSYM
22392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22393 conftest$ac_exeext conftest.$ac_ext
22395 if test "x$acx_pthread_ok" = xyes; then
22396 # Don't use options that are ignored by the compiler.
22397 # We find them by checking stderror.
22398 cat >conftest.$ac_ext <<_ACEOF
22400 main (int argc, char **argv)
22407 rm -f conftest.$ac_objext conftest$ac_exeext
22408 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22409 # we continue with more flags because Linux needs -lpthread
22410 # for libpq builds on PostgreSQL. The test above only
22411 # tests for building binaries, not shared libraries.
22412 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22413 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22414 else acx_pthread_ok=no
22419 CFLAGS="$save_CFLAGS"
22421 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22422 $as_echo "$acx_pthread_ok" >&6; }
22426 # Various other checks:
22427 if test "x$acx_pthread_ok" = xyes; then
22429 LIBS="$PTHREAD_LIBS $LIBS"
22430 save_CFLAGS="$CFLAGS"
22431 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22433 # Detect AIX lossage: threads are created detached by default
22434 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22435 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22436 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 #include <pthread.h>
22447 int attr=PTHREAD_CREATE_JOINABLE;
22452 rm -f conftest.$ac_objext conftest$ac_exeext
22453 if { (ac_try="$ac_link"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22459 $as_echo "$ac_try_echo") >&5
22460 (eval "$ac_link") 2>conftest.er1
22462 grep -v '^ *+' conftest.er1 >conftest.err
22464 cat conftest.err >&5
22465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest$ac_exeext && {
22470 test "$cross_compiling" = yes ||
22471 $as_test_x conftest$ac_exeext
22473 ok=PTHREAD_CREATE_JOINABLE
22475 $as_echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22481 rm -rf conftest.dSYM
22482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22483 conftest$ac_exeext conftest.$ac_ext
22484 if test x"$ok" = xunknown; then
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22491 #include <pthread.h>
22495 int attr=PTHREAD_CREATE_UNDETACHED;
22500 rm -f conftest.$ac_objext conftest$ac_exeext
22501 if { (ac_try="$ac_link"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22507 $as_echo "$ac_try_echo") >&5
22508 (eval "$ac_link") 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest$ac_exeext && {
22518 test "$cross_compiling" = yes ||
22519 $as_test_x conftest$ac_exeext
22521 ok=PTHREAD_CREATE_UNDETACHED
22523 $as_echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22529 rm -rf conftest.dSYM
22530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22531 conftest$ac_exeext conftest.$ac_ext
22533 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22535 cat >>confdefs.h <<\_ACEOF
22536 #define PTHREAD_CREATE_JOINABLE $ok
22540 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22541 $as_echo "${ok}" >&6; }
22542 if test x"$ok" = xunknown; then
22543 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22544 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22547 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22548 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22550 # We always add these in PostgreSQL
22551 # case "${host_cpu}-${host_os}" in
22552 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22553 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22555 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22556 $as_echo "${flag}" >&6; }
22557 if test "x$flag" != xno; then
22558 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22562 CFLAGS="$save_CFLAGS"
22564 # Supporting cc_r would require a special CC in all places that
22565 # use libpq, and that is ugly, so we don't do it. Users can still
22566 # define their compiler as cc_r to do thread builds of everything.
22567 # More AIX lossage: must compile with cc_r
22568 # Extract the first word of "cc_r", so it can be a program name with args.
22569 set dummy cc_r; ac_word=$2
22570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22571 $as_echo_n "checking for $ac_word... " >&6; }
22572 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22573 $as_echo_n "(cached) " >&6
22575 if test -n "$PTHREAD_CC"; then
22576 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579 for as_dir in $PATH
22582 test -z "$as_dir" && as_dir=.
22583 for ac_exec_ext in '' $ac_executable_extensions; do
22584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22585 ac_cv_prog_PTHREAD_CC="cc_r"
22586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22593 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22596 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22597 if test -n "$PTHREAD_CC"; then
22598 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22599 $as_echo "$PTHREAD_CC" >&6; }
22601 { $as_echo "$as_me:$LINENO: result: no" >&5
22602 $as_echo "no" >&6; }
22614 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22615 if test x"$acx_pthread_ok" = xyes; then
22617 cat >>confdefs.h <<\_ACEOF
22618 #define HAVE_PTHREAD 1
22627 ac_cpp='$CPP $CPPFLAGS'
22628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22634 # Some platforms use these, so just define them. They can't hurt if they
22635 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22636 # enables 5-arg getpwuid_r, among other things.
22637 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22640 # At this point, we don't want to muck with the compiler name for threading.
22641 # Let's see who fails, perhaps AIX. 2004-04-23
22642 if test "$PTHREAD_CC" != "$CC"; then
22643 { { $as_echo "$as_me:$LINENO: error:
22644 PostgreSQL does not support platforms that require a special compiler
22645 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22646 $as_echo "$as_me: error:
22647 PostgreSQL does not support platforms that require a special compiler
22648 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22649 { (exit 1); exit 1; }; }
22652 # Check for *_r functions
22655 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22656 LIBS="$LIBS $PTHREAD_LIBS"
22658 if test "$PORTNAME" != "win32"; then
22659 if test "${ac_cv_header_pthread_h+set}" = set; then
22660 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22661 $as_echo_n "checking for pthread.h... " >&6; }
22662 if test "${ac_cv_header_pthread_h+set}" = set; then
22663 $as_echo_n "(cached) " >&6
22665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22666 $as_echo "$ac_cv_header_pthread_h" >&6; }
22668 # Is the header compilable?
22669 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22670 $as_echo_n "checking pthread.h usability... " >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22678 #include <pthread.h>
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684 *) ac_try_echo=$ac_try;;
22686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22687 $as_echo "$ac_try_echo") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22698 ac_header_compiler=yes
22700 $as_echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 ac_header_compiler=no
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22708 $as_echo "$ac_header_compiler" >&6; }
22710 # Is the header present?
22711 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22712 $as_echo_n "checking pthread.h presence... " >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 #include <pthread.h>
22721 if { (ac_try="$ac_cpp conftest.$ac_ext"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22727 $as_echo "$ac_try_echo") >&5
22728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } >/dev/null && {
22735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22738 ac_header_preproc=yes
22740 $as_echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 ac_header_preproc=no
22746 rm -f conftest.err conftest.$ac_ext
22747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22748 $as_echo "$ac_header_preproc" >&6; }
22750 # So? What about this header?
22751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22753 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22754 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22755 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22756 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22757 ac_header_preproc=yes
22760 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22761 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22762 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22763 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22764 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22765 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22766 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22767 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22768 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22769 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22770 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22771 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22773 ## ---------------------------------------- ##
22774 ## Report this to pgsql-bugs@postgresql.org ##
22775 ## ---------------------------------------- ##
22777 ) | sed "s/^/$as_me: WARNING: /" >&2
22780 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22781 $as_echo_n "checking for pthread.h... " >&6; }
22782 if test "${ac_cv_header_pthread_h+set}" = set; then
22783 $as_echo_n "(cached) " >&6
22785 ac_cv_header_pthread_h=$ac_header_preproc
22787 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22788 $as_echo "$ac_cv_header_pthread_h" >&6; }
22791 if test "x$ac_cv_header_pthread_h" = x""yes; then
22794 { { $as_echo "$as_me:$LINENO: error:
22795 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
22796 $as_echo "$as_me: error:
22797 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
22798 { (exit 1); exit 1; }; }
22807 for ac_func in strerror_r getpwuid_r gethostbyname_r
22809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22810 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22811 $as_echo_n "checking for $ac_func... " >&6; }
22812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22813 $as_echo_n "(cached) " >&6
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22823 #define $ac_func innocuous_$ac_func
22825 /* System header to define __stub macros and hopefully few prototypes,
22826 which can conflict with char $ac_func (); below.
22827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22828 <limits.h> exists even on freestanding compilers. */
22831 # include <limits.h>
22833 # include <assert.h>
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22845 /* The GNU C library defines this for functions which it implements
22846 to always fail with ENOSYS. Some functions are actually named
22847 something starting with __ and the normal name is an alias. */
22848 #if defined __stub_$ac_func || defined __stub___$ac_func
22855 return $ac_func ();
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22867 $as_echo "$ac_try_echo") >&5
22868 (eval "$ac_link") 2>conftest.er1
22870 grep -v '^ *+' conftest.er1 >conftest.err
22872 cat conftest.err >&5
22873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && {
22875 test -z "$ac_c_werror_flag" ||
22876 test ! -s conftest.err
22877 } && test -s conftest$ac_exeext && {
22878 test "$cross_compiling" = yes ||
22879 $as_test_x conftest$ac_exeext
22881 eval "$as_ac_var=yes"
22883 $as_echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22886 eval "$as_ac_var=no"
22889 rm -rf conftest.dSYM
22890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22891 conftest$ac_exeext conftest.$ac_ext
22893 ac_res=`eval 'as_val=${'$as_ac_var'}
22894 $as_echo "$as_val"'`
22895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22896 $as_echo "$ac_res" >&6; }
22897 as_val=`eval 'as_val=${'$as_ac_var'}
22898 $as_echo "$as_val"'`
22899 if test "x$as_val" = x""yes; then
22900 cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22908 # Do test here with the proper thread flags
22909 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22910 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22911 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22912 $as_echo_n "(cached) " >&6
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include <sys/types.h>
22926 struct passwd *space;
22929 struct passwd **result;
22930 getpwuid_r(uid, space, buf, bufsize, result);
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22942 $as_echo "$ac_try_echo") >&5
22943 (eval "$ac_compile") 2>conftest.er1
22945 grep -v '^ *+' conftest.er1 >conftest.err
22947 cat conftest.err >&5
22948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest.$ac_objext; then
22953 pgac_cv_func_getpwuid_r_5arg=yes
22955 $as_echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 pgac_cv_func_getpwuid_r_5arg=no
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22964 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22965 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define GETPWUID_R_5ARG /**/
22973 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22974 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22975 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22976 $as_echo_n "(cached) " >&6
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 #include <string.h>
22989 int strerror_r(int, char *, size_t);
22991 /* Older AIX has 'int' for the third argument so we don't test the args. */
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23005 $as_echo "$ac_try_echo") >&5
23006 (eval "$ac_compile") 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest.$ac_objext; then
23016 pgac_cv_func_strerror_r_int=yes
23018 $as_echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 pgac_cv_func_strerror_r_int=no
23024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23027 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23028 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23030 cat >>confdefs.h <<\_ACEOF
23031 #define STRERROR_R_INT /**/
23041 # do not use values from template file
23050 # We can test for libldap_r only after we know PTHREAD_LIBS
23051 if test "$with_ldap" = yes ; then
23053 if test "$PORTNAME" != "win32"; then
23055 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23056 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23057 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23058 $as_echo_n "(cached) " >&6
23060 ac_check_lib_save_LIBS=$LIBS
23061 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23069 /* Override any GCC internal prototype to avoid an error.
23070 Use char because int might match the return type of a GCC
23071 builtin and then its argument prototype would still apply. */
23079 return ldap_bind ();
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_link") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest$ac_exeext && {
23102 test "$cross_compiling" = yes ||
23103 $as_test_x conftest$ac_exeext
23105 ac_cv_lib_ldap_ldap_bind=yes
23107 $as_echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_cv_lib_ldap_ldap_bind=no
23113 rm -rf conftest.dSYM
23114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23115 conftest$ac_exeext conftest.$ac_ext
23116 LIBS=$ac_check_lib_save_LIBS
23118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23119 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23120 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23121 cat >>confdefs.h <<_ACEOF
23122 #define HAVE_LIBLDAP 1
23125 LIBS="-lldap $LIBS"
23128 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23129 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23130 { (exit 1); exit 1; }; }
23133 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23134 if test "$enable_thread_safety" = yes; then
23135 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23137 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23138 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23139 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23140 $as_echo_n "(cached) " >&6
23142 ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23144 cat >conftest.$ac_ext <<_ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23151 /* Override any GCC internal prototype to avoid an error.
23152 Use char because int might match the return type of a GCC
23153 builtin and then its argument prototype would still apply. */
23157 char ldap_simple_bind ();
23161 return ldap_simple_bind ();
23166 rm -f conftest.$ac_objext conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170 *) ac_try_echo=$ac_try;;
23172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23173 $as_echo "$ac_try_echo") >&5
23174 (eval "$ac_link") 2>conftest.er1
23176 grep -v '^ *+' conftest.er1 >conftest.err
23178 cat conftest.err >&5
23179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } && {
23181 test -z "$ac_c_werror_flag" ||
23182 test ! -s conftest.err
23183 } && test -s conftest$ac_exeext && {
23184 test "$cross_compiling" = yes ||
23185 $as_test_x conftest$ac_exeext
23187 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23189 $as_echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 ac_cv_lib_ldap_r_ldap_simple_bind=no
23195 rm -rf conftest.dSYM
23196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23197 conftest$ac_exeext conftest.$ac_ext
23198 LIBS=$ac_check_lib_save_LIBS
23200 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23201 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23202 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23203 cat >>confdefs.h <<_ACEOF
23204 #define HAVE_LIBLDAP_R 1
23207 LIBS="-lldap_r $LIBS"
23210 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23211 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23212 { (exit 1); exit 1; }; }
23215 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23217 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23221 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23222 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23223 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23224 $as_echo_n "(cached) " >&6
23226 ac_check_lib_save_LIBS=$LIBS
23227 LIBS="-lwldap32 $LIBS"
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23235 /* Override any GCC internal prototype to avoid an error.
23236 Use char because int might match the return type of a GCC
23237 builtin and then its argument prototype would still apply. */
23245 return ldap_bind ();
23250 rm -f conftest.$ac_objext conftest$ac_exeext
23251 if { (ac_try="$ac_link"
23252 case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23257 $as_echo "$ac_try_echo") >&5
23258 (eval "$ac_link") 2>conftest.er1
23260 grep -v '^ *+' conftest.er1 >conftest.err
23262 cat conftest.err >&5
23263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } && {
23265 test -z "$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 } && test -s conftest$ac_exeext && {
23268 test "$cross_compiling" = yes ||
23269 $as_test_x conftest$ac_exeext
23271 ac_cv_lib_wldap32_ldap_bind=yes
23273 $as_echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23276 ac_cv_lib_wldap32_ldap_bind=no
23279 rm -rf conftest.dSYM
23280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23281 conftest$ac_exeext conftest.$ac_ext
23282 LIBS=$ac_check_lib_save_LIBS
23284 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23285 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23286 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23287 cat >>confdefs.h <<_ACEOF
23288 #define HAVE_LIBWLDAP32 1
23291 LIBS="-lwldap32 $LIBS"
23294 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23295 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23296 { (exit 1); exit 1; }; }
23299 LDAP_LIBS_FE="-lwldap32"
23300 LDAP_LIBS_BE="-lwldap32"
23308 # This test makes sure that run tests work at all. Sometimes a shared
23309 # library is found by the linker, but the runtime linker can't find it.
23310 # This check should come after all modifications of compiler or linker
23311 # variables, and before any other run tests.
23312 { $as_echo "$as_me:$LINENO: checking test program" >&5
23313 $as_echo_n "checking test program... " >&6; }
23314 if test "$cross_compiling" = yes; then
23315 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23316 $as_echo "cross-compiling" >&6; }
23318 cat >conftest.$ac_ext <<_ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 int main() { return 0; }
23326 rm -f conftest$ac_exeext
23327 if { (ac_try="$ac_link"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334 (eval "$ac_link") 2>&5
23336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23338 { (case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344 (eval "$ac_try") 2>&5
23346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 { $as_echo "$as_me:$LINENO: result: ok" >&5
23349 $as_echo "ok" >&6; }
23351 $as_echo "$as_me: program exited with status $ac_status" >&5
23352 $as_echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ( exit $ac_status )
23356 { $as_echo "$as_me:$LINENO: result: failed" >&5
23357 $as_echo "failed" >&6; }
23358 { { $as_echo "$as_me:$LINENO: error:
23359 Could not execute a simple test program. This may be a problem
23360 related to locating shared libraries. Check the file 'config.log'
23361 for the exact reason." >&5
23362 $as_echo "$as_me: error:
23363 Could not execute a simple test program. This may be a problem
23364 related to locating shared libraries. Check the file 'config.log'
23365 for the exact reason." >&2;}
23366 { (exit 1); exit 1; }; }
23368 rm -rf conftest.dSYM
23369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23374 # --------------------
23375 # Run tests below here
23376 # --------------------
23378 # Force use of our snprintf if system's doesn't do arg control
23379 # See comment above at snprintf test for details.
23380 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23381 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23382 $as_echo_n "checking whether printf supports argument control... " >&6; }
23383 if test "${pgac_cv_printf_arg_control+set}" = set; then
23384 $as_echo_n "(cached) " >&6
23386 if test "$cross_compiling" = yes; then
23387 pgac_cv_printf_arg_control=cross
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23396 #include <string.h>
23402 /* can it swap arguments? */
23403 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23404 if (strcmp(buf, "4 3") != 0)
23409 rm -f conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417 (eval "$ac_link") 2>&5
23419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23421 { (case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_try") 2>&5
23429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 pgac_cv_printf_arg_control=yes
23433 $as_echo "$as_me: program exited with status $ac_status" >&5
23434 $as_echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ( exit $ac_status )
23438 pgac_cv_printf_arg_control=no
23440 rm -rf conftest.dSYM
23441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23447 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23448 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23450 if test $pgac_cv_printf_arg_control != yes ; then
23451 pgac_need_repl_snprintf=yes
23458 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23459 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23460 if test "${pgac_cv_type_long_int_64+set}" = set; then
23461 $as_echo_n "(cached) " >&6
23463 if test "$cross_compiling" = yes; then
23464 # If cross-compiling, check the size reported by the compiler and
23465 # trust that the arithmetic works.
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23476 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487 *) ac_try_echo=$ac_try;;
23489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23490 $as_echo "$ac_try_echo") >&5
23491 (eval "$ac_compile") 2>conftest.er1
23493 grep -v '^ *+' conftest.er1 >conftest.err
23495 cat conftest.err >&5
23496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest.$ac_objext; then
23501 pgac_cv_type_long_int_64=yes
23503 $as_echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23506 pgac_cv_type_long_int_64=no
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23511 cat >conftest.$ac_ext <<_ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 typedef long int ac_int64;
23520 * These are globals to discourage the compiler from folding all the
23521 * arithmetic tests down to compile-time constants.
23523 ac_int64 a = 20000001;
23524 ac_int64 b = 40000005;
23526 int does_int64_work()
23530 if (sizeof(ac_int64) != 8)
23531 return 0; /* definitely not the right size */
23533 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23541 exit(! does_int64_work());
23544 rm -f conftest$ac_exeext
23545 if { (ac_try="$ac_link"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552 (eval "$ac_link") 2>&5
23554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23556 { (case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23561 $as_echo "$ac_try_echo") >&5
23562 (eval "$ac_try") 2>&5
23564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 pgac_cv_type_long_int_64=yes
23568 $as_echo "$as_me: program exited with status $ac_status" >&5
23569 $as_echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23572 ( exit $ac_status )
23573 pgac_cv_type_long_int_64=no
23575 rm -rf conftest.dSYM
23576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23581 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23582 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23584 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23585 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23587 cat >>confdefs.h <<\_ACEOF
23588 #define HAVE_LONG_INT_64 1
23594 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23595 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23596 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23597 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23598 $as_echo_n "(cached) " >&6
23600 if test "$cross_compiling" = yes; then
23601 # If cross-compiling, check the size reported by the compiler and
23602 # trust that the arithmetic works.
23603 cat >conftest.$ac_ext <<_ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h. */
23613 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23627 $as_echo "$ac_try_echo") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23630 grep -v '^ *+' conftest.er1 >conftest.err
23632 cat conftest.err >&5
23633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.$ac_objext; then
23638 pgac_cv_type_long_long_int_64=yes
23640 $as_echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23643 pgac_cv_type_long_long_int_64=no
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 typedef long long int ac_int64;
23657 * These are globals to discourage the compiler from folding all the
23658 * arithmetic tests down to compile-time constants.
23660 ac_int64 a = 20000001;
23661 ac_int64 b = 40000005;
23663 int does_int64_work()
23667 if (sizeof(ac_int64) != 8)
23668 return 0; /* definitely not the right size */
23670 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23678 exit(! does_int64_work());
23681 rm -f conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23688 $as_echo "$ac_try_echo") >&5
23689 (eval "$ac_link") 2>&5
23691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23693 { (case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23698 $as_echo "$ac_try_echo") >&5
23699 (eval "$ac_try") 2>&5
23701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 pgac_cv_type_long_long_int_64=yes
23705 $as_echo "$as_me: program exited with status $ac_status" >&5
23706 $as_echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 ( exit $ac_status )
23710 pgac_cv_type_long_long_int_64=no
23712 rm -rf conftest.dSYM
23713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23718 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23719 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23721 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23722 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23724 cat >>confdefs.h <<\_ACEOF
23725 #define HAVE_LONG_LONG_INT_64 1
23730 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23731 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23732 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23733 { (exit 1); exit 1; }; }
23739 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23740 cat >conftest.$ac_ext <<_ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23747 #define INT64CONST(x) x##LL
23748 long long int foo = INT64CONST(0x1234567890123456);
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23765 $as_echo "$ac_try_echo") >&5
23766 (eval "$ac_compile") 2>conftest.er1
23768 grep -v '^ *+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest.$ac_objext; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_LL_CONSTANTS 1
23782 $as_echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23792 # If we found "long int" is 64 bits, assume snprintf handles it. If
23793 # we found we need to use "long long int", better check. We cope with
23794 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23795 # work, fall back to our own snprintf emulation (which we know uses %lld).
23797 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23798 if test $pgac_need_repl_snprintf = no; then
23799 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23800 $as_echo_n "checking snprintf format for long long int... " >&6; }
23801 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23802 $as_echo_n "(cached) " >&6
23804 for pgac_format in '%lld' '%qd' '%I64d'; do
23805 if test "$cross_compiling" = yes; then
23806 pgac_cv_snprintf_long_long_int_format=cross; break
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23815 typedef long long int ac_int64;
23816 #define INT64_FORMAT "$pgac_format"
23818 ac_int64 a = 20000001;
23819 ac_int64 b = 40000005;
23821 int does_int64_snprintf_work()
23826 if (sizeof(ac_int64) != 8)
23827 return 0; /* doesn't look like the right size */
23830 snprintf(buf, 100, INT64_FORMAT, c);
23831 if (strcmp(buf, "800000140000005") != 0)
23832 return 0; /* either multiply or snprintf is busted */
23836 exit(! does_int64_snprintf_work());
23839 rm -f conftest$ac_exeext
23840 if { (ac_try="$ac_link"
23841 case "(($ac_try" in
23842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843 *) ac_try_echo=$ac_try;;
23845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23846 $as_echo "$ac_try_echo") >&5
23847 (eval "$ac_link") 2>&5
23849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23851 { (case "(($ac_try" in
23852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853 *) ac_try_echo=$ac_try;;
23855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23856 $as_echo "$ac_try_echo") >&5
23857 (eval "$ac_try") 2>&5
23859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23863 $as_echo "$as_me: program exited with status $ac_status" >&5
23864 $as_echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23868 rm -rf conftest.dSYM
23869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23876 LONG_LONG_INT_FORMAT=''
23878 case $pgac_cv_snprintf_long_long_int_format in
23879 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23880 $as_echo "cannot test (not on host machine)" >&6; };;
23881 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23882 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23883 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23884 *) { $as_echo "$as_me:$LINENO: result: none" >&5
23885 $as_echo "none" >&6; };;
23887 if test "$LONG_LONG_INT_FORMAT" = ""; then
23888 # Force usage of our own snprintf, since system snprintf is broken
23889 pgac_need_repl_snprintf=yes
23890 LONG_LONG_INT_FORMAT='%lld'
23893 # Here if we previously decided we needed to use our own snprintf
23894 LONG_LONG_INT_FORMAT='%lld'
23896 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23897 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23898 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23900 # Here if we are not using 'long long int' at all
23901 INT64_FORMAT='"%ld"'
23902 UINT64_FORMAT='"%lu"'
23906 cat >>confdefs.h <<_ACEOF
23907 #define INT64_FORMAT $INT64_FORMAT
23912 cat >>confdefs.h <<_ACEOF
23913 #define UINT64_FORMAT $UINT64_FORMAT
23917 # Now we have checked all the reasons to replace snprintf
23918 if test $pgac_need_repl_snprintf = yes; then
23920 cat >>confdefs.h <<\_ACEOF
23921 #define USE_REPL_SNPRINTF 1
23924 case " $LIBOBJS " in
23925 *" snprintf.$ac_objext "* ) ;;
23926 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23932 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23933 # The cast to long int works around a bug in the HP C Compiler
23934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23936 # This bug is HP SR number 8606223364.
23937 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23938 $as_echo_n "checking size of void *... " >&6; }
23939 if test "${ac_cv_sizeof_void_p+set}" = set; then
23940 $as_echo_n "(cached) " >&6
23942 if test "$cross_compiling" = yes; then
23943 # Depending upon the size, compute the lo and hi bounds.
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 $ac_includes_default
23954 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23968 $as_echo "$ac_try_echo") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23971 grep -v '^ *+' conftest.er1 >conftest.err
23973 cat conftest.err >&5
23974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23981 cat >conftest.$ac_ext <<_ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h. */
23987 $ac_includes_default
23991 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24005 $as_echo "$ac_try_echo") >&5
24006 (eval "$ac_compile") 2>conftest.er1
24008 grep -v '^ *+' conftest.er1 >conftest.err
24010 cat conftest.err >&5
24011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); } && {
24013 test -z "$ac_c_werror_flag" ||
24014 test ! -s conftest.err
24015 } && test -s conftest.$ac_objext; then
24016 ac_hi=$ac_mid; break
24018 $as_echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24021 ac_lo=`expr $ac_mid + 1`
24022 if test $ac_lo -le $ac_mid; then
24026 ac_mid=`expr 2 '*' $ac_mid + 1`
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032 $as_echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24035 cat >conftest.$ac_ext <<_ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041 $ac_includes_default
24045 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24052 rm -f conftest.$ac_objext
24053 if { (ac_try="$ac_compile"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1 >conftest.err
24064 cat conftest.err >&5
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.$ac_objext; then
24072 cat >conftest.$ac_ext <<_ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24078 $ac_includes_default
24082 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24089 rm -f conftest.$ac_objext
24090 if { (ac_try="$ac_compile"
24091 case "(($ac_try" in
24092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093 *) ac_try_echo=$ac_try;;
24095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24096 $as_echo "$ac_try_echo") >&5
24097 (eval "$ac_compile") 2>conftest.er1
24099 grep -v '^ *+' conftest.er1 >conftest.err
24101 cat conftest.err >&5
24102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); } && {
24104 test -z "$ac_c_werror_flag" ||
24105 test ! -s conftest.err
24106 } && test -s conftest.$ac_objext; then
24107 ac_lo=$ac_mid; break
24109 $as_echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24112 ac_hi=`expr '(' $ac_mid ')' - 1`
24113 if test $ac_mid -le $ac_hi; then
24117 ac_mid=`expr 2 '*' $ac_mid`
24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 $as_echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 # Binary search between lo and hi bounds.
24134 while test "x$ac_lo" != "x$ac_hi"; do
24135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24136 cat >conftest.$ac_ext <<_ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142 $ac_includes_default
24146 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24153 rm -f conftest.$ac_objext
24154 if { (ac_try="$ac_compile"
24155 case "(($ac_try" in
24156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157 *) ac_try_echo=$ac_try;;
24159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24160 $as_echo "$ac_try_echo") >&5
24161 (eval "$ac_compile") 2>conftest.er1
24163 grep -v '^ *+' conftest.er1 >conftest.err
24165 cat conftest.err >&5
24166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } && {
24168 test -z "$ac_c_werror_flag" ||
24169 test ! -s conftest.err
24170 } && test -s conftest.$ac_objext; then
24173 $as_echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 ac_lo=`expr '(' $ac_mid ')' + 1`
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24182 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24183 '') if test "$ac_cv_type_void_p" = yes; then
24184 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24186 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24187 See \`config.log' for more details." >&5
24188 $as_echo "$as_me: error: cannot compute sizeof (void *)
24189 See \`config.log' for more details." >&2;}
24190 { (exit 77); exit 77; }; }; }
24192 ac_cv_sizeof_void_p=0
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202 $ac_includes_default
24203 static long int longval () { return (long int) (sizeof (void *)); }
24204 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24206 #include <stdlib.h>
24211 FILE *f = fopen ("conftest.val", "w");
24214 if (((long int) (sizeof (void *))) < 0)
24216 long int i = longval ();
24217 if (i != ((long int) (sizeof (void *))))
24219 fprintf (f, "%ld", i);
24223 unsigned long int i = ulongval ();
24224 if (i != ((long int) (sizeof (void *))))
24226 fprintf (f, "%lu", i);
24228 /* Do not output a trailing newline, as this causes \r\n confusion
24229 on some platforms. */
24230 return ferror (f) || fclose (f) != 0;
24236 rm -f conftest$ac_exeext
24237 if { (ac_try="$ac_link"
24238 case "(($ac_try" in
24239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240 *) ac_try_echo=$ac_try;;
24242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24243 $as_echo "$ac_try_echo") >&5
24244 (eval "$ac_link") 2>&5
24246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24248 { (case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254 (eval "$ac_try") 2>&5
24256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258 ac_cv_sizeof_void_p=`cat conftest.val`
24260 $as_echo "$as_me: program exited with status $ac_status" >&5
24261 $as_echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ( exit $ac_status )
24265 if test "$ac_cv_type_void_p" = yes; then
24266 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24268 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24269 See \`config.log' for more details." >&5
24270 $as_echo "$as_me: error: cannot compute sizeof (void *)
24271 See \`config.log' for more details." >&2;}
24272 { (exit 77); exit 77; }; }; }
24274 ac_cv_sizeof_void_p=0
24277 rm -rf conftest.dSYM
24278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24282 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24283 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24287 cat >>confdefs.h <<_ACEOF
24288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24292 # The cast to long int works around a bug in the HP C Compiler
24293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24295 # This bug is HP SR number 8606223364.
24296 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24297 $as_echo_n "checking size of size_t... " >&6; }
24298 if test "${ac_cv_sizeof_size_t+set}" = set; then
24299 $as_echo_n "(cached) " >&6
24301 if test "$cross_compiling" = yes; then
24302 # Depending upon the size, compute the lo and hi bounds.
24303 cat >conftest.$ac_ext <<_ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 $ac_includes_default
24313 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24327 $as_echo "$ac_try_echo") >&5
24328 (eval "$ac_compile") 2>conftest.er1
24330 grep -v '^ *+' conftest.er1 >conftest.err
24332 cat conftest.err >&5
24333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } && {
24335 test -z "$ac_c_werror_flag" ||
24336 test ! -s conftest.err
24337 } && test -s conftest.$ac_objext; then
24340 cat >conftest.$ac_ext <<_ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h. */
24346 $ac_includes_default
24350 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361 *) ac_try_echo=$ac_try;;
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24375 ac_hi=$ac_mid; break
24377 $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_lo=`expr $ac_mid + 1`
24381 if test $ac_lo -le $ac_mid; then
24385 ac_mid=`expr 2 '*' $ac_mid + 1`
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 $as_echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24394 cat >conftest.$ac_ext <<_ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h. */
24400 $ac_includes_default
24404 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24411 rm -f conftest.$ac_objext
24412 if { (ac_try="$ac_compile"
24413 case "(($ac_try" in
24414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415 *) ac_try_echo=$ac_try;;
24417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24418 $as_echo "$ac_try_echo") >&5
24419 (eval "$ac_compile") 2>conftest.er1
24421 grep -v '^ *+' conftest.er1 >conftest.err
24423 cat conftest.err >&5
24424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); } && {
24426 test -z "$ac_c_werror_flag" ||
24427 test ! -s conftest.err
24428 } && test -s conftest.$ac_objext; then
24431 cat >conftest.$ac_ext <<_ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24437 $ac_includes_default
24441 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452 *) ac_try_echo=$ac_try;;
24454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24455 $as_echo "$ac_try_echo") >&5
24456 (eval "$ac_compile") 2>conftest.er1
24458 grep -v '^ *+' conftest.er1 >conftest.err
24460 cat conftest.err >&5
24461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } && {
24463 test -z "$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24465 } && test -s conftest.$ac_objext; then
24466 ac_lo=$ac_mid; break
24468 $as_echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24471 ac_hi=`expr '(' $ac_mid ')' - 1`
24472 if test $ac_mid -le $ac_hi; then
24476 ac_mid=`expr 2 '*' $ac_mid`
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482 $as_echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492 # Binary search between lo and hi bounds.
24493 while test "x$ac_lo" != "x$ac_hi"; do
24494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24501 $ac_includes_default
24505 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24512 rm -f conftest.$ac_objext
24513 if { (ac_try="$ac_compile"
24514 case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24522 grep -v '^ *+' conftest.er1 >conftest.err
24524 cat conftest.err >&5
24525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.$ac_objext; then
24532 $as_echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24535 ac_lo=`expr '(' $ac_mid ')' + 1`
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24542 '') if test "$ac_cv_type_size_t" = yes; then
24543 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24545 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24546 See \`config.log' for more details." >&5
24547 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24548 See \`config.log' for more details." >&2;}
24549 { (exit 77); exit 77; }; }; }
24551 ac_cv_sizeof_size_t=0
24555 cat >conftest.$ac_ext <<_ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h. */
24561 $ac_includes_default
24562 static long int longval () { return (long int) (sizeof (size_t)); }
24563 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24565 #include <stdlib.h>
24570 FILE *f = fopen ("conftest.val", "w");
24573 if (((long int) (sizeof (size_t))) < 0)
24575 long int i = longval ();
24576 if (i != ((long int) (sizeof (size_t))))
24578 fprintf (f, "%ld", i);
24582 unsigned long int i = ulongval ();
24583 if (i != ((long int) (sizeof (size_t))))
24585 fprintf (f, "%lu", i);
24587 /* Do not output a trailing newline, as this causes \r\n confusion
24588 on some platforms. */
24589 return ferror (f) || fclose (f) != 0;
24595 rm -f conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24602 $as_echo "$ac_try_echo") >&5
24603 (eval "$ac_link") 2>&5
24605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24607 { (case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613 (eval "$ac_try") 2>&5
24615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; }; then
24617 ac_cv_sizeof_size_t=`cat conftest.val`
24619 $as_echo "$as_me: program exited with status $ac_status" >&5
24620 $as_echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24623 ( exit $ac_status )
24624 if test "$ac_cv_type_size_t" = yes; then
24625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24627 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24628 See \`config.log' for more details." >&5
24629 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24630 See \`config.log' for more details." >&2;}
24631 { (exit 77); exit 77; }; }; }
24633 ac_cv_sizeof_size_t=0
24636 rm -rf conftest.dSYM
24637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24641 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24642 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24646 cat >>confdefs.h <<_ACEOF
24647 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24651 # The cast to long int works around a bug in the HP C Compiler
24652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24654 # This bug is HP SR number 8606223364.
24655 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24656 $as_echo_n "checking size of long... " >&6; }
24657 if test "${ac_cv_sizeof_long+set}" = set; then
24658 $as_echo_n "(cached) " >&6
24660 if test "$cross_compiling" = yes; then
24661 # Depending upon the size, compute the lo and hi bounds.
24662 cat >conftest.$ac_ext <<_ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h. */
24668 $ac_includes_default
24672 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24679 rm -f conftest.$ac_objext
24680 if { (ac_try="$ac_compile"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24686 $as_echo "$ac_try_echo") >&5
24687 (eval "$ac_compile") 2>conftest.er1
24689 grep -v '^ *+' conftest.er1 >conftest.err
24691 cat conftest.err >&5
24692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } && {
24694 test -z "$ac_c_werror_flag" ||
24695 test ! -s conftest.err
24696 } && test -s conftest.$ac_objext; then
24699 cat >conftest.$ac_ext <<_ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 $ac_includes_default
24709 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24723 $as_echo "$ac_try_echo") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 ac_hi=$ac_mid; break
24736 $as_echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_lo=`expr $ac_mid + 1`
24740 if test $ac_lo -le $ac_mid; then
24744 ac_mid=`expr 2 '*' $ac_mid + 1`
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750 $as_echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 cat >conftest.$ac_ext <<_ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h. */
24759 $ac_includes_default
24763 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774 *) ac_try_echo=$ac_try;;
24776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24777 $as_echo "$ac_try_echo") >&5
24778 (eval "$ac_compile") 2>conftest.er1
24780 grep -v '^ *+' conftest.er1 >conftest.err
24782 cat conftest.err >&5
24783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } && {
24785 test -z "$ac_c_werror_flag" ||
24786 test ! -s conftest.err
24787 } && test -s conftest.$ac_objext; then
24790 cat >conftest.$ac_ext <<_ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 $ac_includes_default
24800 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24807 rm -f conftest.$ac_objext
24808 if { (ac_try="$ac_compile"
24809 case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24814 $as_echo "$ac_try_echo") >&5
24815 (eval "$ac_compile") 2>conftest.er1
24817 grep -v '^ *+' conftest.er1 >conftest.err
24819 cat conftest.err >&5
24820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && {
24822 test -z "$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24824 } && test -s conftest.$ac_objext; then
24825 ac_lo=$ac_mid; break
24827 $as_echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 ac_hi=`expr '(' $ac_mid ')' - 1`
24831 if test $ac_mid -le $ac_hi; then
24835 ac_mid=`expr 2 '*' $ac_mid`
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24841 $as_echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851 # Binary search between lo and hi bounds.
24852 while test "x$ac_lo" != "x$ac_hi"; do
24853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24854 cat >conftest.$ac_ext <<_ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860 $ac_includes_default
24864 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24871 rm -f conftest.$ac_objext
24872 if { (ac_try="$ac_compile"
24873 case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24878 $as_echo "$ac_try_echo") >&5
24879 (eval "$ac_compile") 2>conftest.er1
24881 grep -v '^ *+' conftest.er1 >conftest.err
24883 cat conftest.err >&5
24884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); } && {
24886 test -z "$ac_c_werror_flag" ||
24887 test ! -s conftest.err
24888 } && test -s conftest.$ac_objext; then
24891 $as_echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24894 ac_lo=`expr '(' $ac_mid ')' + 1`
24897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 ?*) ac_cv_sizeof_long=$ac_lo;;
24901 '') if test "$ac_cv_type_long" = yes; then
24902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24904 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24905 See \`config.log' for more details." >&5
24906 $as_echo "$as_me: error: cannot compute sizeof (long)
24907 See \`config.log' for more details." >&2;}
24908 { (exit 77); exit 77; }; }; }
24910 ac_cv_sizeof_long=0
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24920 $ac_includes_default
24921 static long int longval () { return (long int) (sizeof (long)); }
24922 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24924 #include <stdlib.h>
24929 FILE *f = fopen ("conftest.val", "w");
24932 if (((long int) (sizeof (long))) < 0)
24934 long int i = longval ();
24935 if (i != ((long int) (sizeof (long))))
24937 fprintf (f, "%ld", i);
24941 unsigned long int i = ulongval ();
24942 if (i != ((long int) (sizeof (long))))
24944 fprintf (f, "%lu", i);
24946 /* Do not output a trailing newline, as this causes \r\n confusion
24947 on some platforms. */
24948 return ferror (f) || fclose (f) != 0;
24954 rm -f conftest$ac_exeext
24955 if { (ac_try="$ac_link"
24956 case "(($ac_try" in
24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958 *) ac_try_echo=$ac_try;;
24960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24961 $as_echo "$ac_try_echo") >&5
24962 (eval "$ac_link") 2>&5
24964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24966 { (case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972 (eval "$ac_try") 2>&5
24974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); }; }; then
24976 ac_cv_sizeof_long=`cat conftest.val`
24978 $as_echo "$as_me: program exited with status $ac_status" >&5
24979 $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ( exit $ac_status )
24983 if test "$ac_cv_type_long" = yes; then
24984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24986 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24987 See \`config.log' for more details." >&5
24988 $as_echo "$as_me: error: cannot compute sizeof (long)
24989 See \`config.log' for more details." >&2;}
24990 { (exit 77); exit 77; }; }; }
24992 ac_cv_sizeof_long=0
24995 rm -rf conftest.dSYM
24996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25001 $as_echo "$ac_cv_sizeof_long" >&6; }
25005 cat >>confdefs.h <<_ACEOF
25006 #define SIZEOF_LONG $ac_cv_sizeof_long
25011 # Decide whether float4 is passed by value: user-selectable, enabled by default
25012 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25013 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25016 # Check whether --enable-float4-byval was given.
25017 if test "${enable_float4_byval+set}" = set; then
25018 enableval=$enable_float4_byval;
25022 cat >>confdefs.h <<\_ACEOF
25023 #define USE_FLOAT4_BYVAL 1
25026 float4passbyval=true
25029 float4passbyval=false
25032 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25033 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25034 { (exit 1); exit 1; }; }
25039 enable_float4_byval=yes
25041 cat >>confdefs.h <<\_ACEOF
25042 #define USE_FLOAT4_BYVAL 1
25045 float4passbyval=true
25049 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25050 $as_echo "$enable_float4_byval" >&6; }
25052 cat >>confdefs.h <<_ACEOF
25053 #define FLOAT4PASSBYVAL $float4passbyval
25057 # Decide whether float8 is passed by value.
25058 # Note: this setting also controls int8 and related types such as timestamp.
25059 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25060 # If not, trying to select it is an error.
25061 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25062 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25063 if test $ac_cv_sizeof_void_p -ge 8 ; then
25066 # Check whether --enable-float8-byval was given.
25067 if test "${enable_float8_byval+set}" = set; then
25068 enableval=$enable_float8_byval;
25077 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25078 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25079 { (exit 1); exit 1; }; }
25084 enable_float8_byval=yes
25092 # Check whether --enable-float8-byval was given.
25093 if test "${enable_float8_byval+set}" = set; then
25094 enableval=$enable_float8_byval;
25103 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25104 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25105 { (exit 1); exit 1; }; }
25110 enable_float8_byval=no
25115 if test "$enable_float8_byval" = yes ; then
25116 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25117 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25118 { (exit 1); exit 1; }; }
25121 if test "$enable_float8_byval" = yes ; then
25123 cat >>confdefs.h <<\_ACEOF
25124 #define USE_FLOAT8_BYVAL 1
25127 float8passbyval=true
25129 float8passbyval=false
25131 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25132 $as_echo "$enable_float8_byval" >&6; }
25134 cat >>confdefs.h <<_ACEOF
25135 #define FLOAT8PASSBYVAL $float8passbyval
25139 # Determine memory alignment requirements for the basic C data types.
25141 # The cast to long int works around a bug in the HP C Compiler,
25142 # see AC_CHECK_SIZEOF for more information.
25143 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25144 $as_echo_n "checking alignment of short... " >&6; }
25145 if test "${ac_cv_alignof_short+set}" = set; then
25146 $as_echo_n "(cached) " >&6
25148 if test "$cross_compiling" = yes; then
25149 # Depending upon the size, compute the lo and hi bounds.
25150 cat >conftest.$ac_ext <<_ACEOF
25153 cat confdefs.h >>conftest.$ac_ext
25154 cat >>conftest.$ac_ext <<_ACEOF
25155 /* end confdefs.h. */
25156 $ac_includes_default
25158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25160 typedef struct { char x; short y; } ac__type_alignof_;
25164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179 (eval "$ac_compile") 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } && {
25186 test -z "$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25188 } && test -s conftest.$ac_objext; then
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 $ac_includes_default
25199 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25201 typedef struct { char x; short y; } ac__type_alignof_;
25205 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25212 rm -f conftest.$ac_objext
25213 if { (ac_try="$ac_compile"
25214 case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25219 $as_echo "$ac_try_echo") >&5
25220 (eval "$ac_compile") 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } && {
25227 test -z "$ac_c_werror_flag" ||
25228 test ! -s conftest.err
25229 } && test -s conftest.$ac_objext; then
25230 ac_hi=$ac_mid; break
25232 $as_echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ac_lo=`expr $ac_mid + 1`
25236 if test $ac_lo -le $ac_mid; then
25240 ac_mid=`expr 2 '*' $ac_mid + 1`
25243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246 $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25249 cat >conftest.$ac_ext <<_ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h. */
25255 $ac_includes_default
25257 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25259 typedef struct { char x; short y; } ac__type_alignof_;
25263 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25270 rm -f conftest.$ac_objext
25271 if { (ac_try="$ac_compile"
25272 case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25277 $as_echo "$ac_try_echo") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 $ac_includes_default
25298 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25300 typedef struct { char x; short y; } ac__type_alignof_;
25304 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25318 $as_echo "$ac_try_echo") >&5
25319 (eval "$ac_compile") 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest.$ac_objext; then
25329 ac_lo=$ac_mid; break
25331 $as_echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25334 ac_hi=`expr '(' $ac_mid ')' - 1`
25335 if test $ac_mid -le $ac_hi; then
25339 ac_mid=`expr 2 '*' $ac_mid`
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345 $as_echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 # Binary search between lo and hi bounds.
25356 while test "x$ac_lo" != "x$ac_hi"; do
25357 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25358 cat >conftest.$ac_ext <<_ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h. */
25364 $ac_includes_default
25366 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25368 typedef struct { char x; short y; } ac__type_alignof_;
25372 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25386 $as_echo "$ac_try_echo") >&5
25387 (eval "$ac_compile") 2>conftest.er1
25389 grep -v '^ *+' conftest.er1 >conftest.err
25391 cat conftest.err >&5
25392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); } && {
25394 test -z "$ac_c_werror_flag" ||
25395 test ! -s conftest.err
25396 } && test -s conftest.$ac_objext; then
25399 $as_echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25402 ac_lo=`expr '(' $ac_mid ')' + 1`
25405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408 ?*) ac_cv_alignof_short=$ac_lo;;
25409 '') if test "$ac_cv_type_short" = yes; then
25410 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25412 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25413 See \`config.log' for more details." >&5
25414 $as_echo "$as_me: error: cannot compute alignment of short
25415 See \`config.log' for more details." >&2;}
25416 { (exit 77); exit 77; }; }; }
25418 ac_cv_alignof_short=0
25422 cat >conftest.$ac_ext <<_ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 $ac_includes_default
25430 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25432 typedef struct { char x; short y; } ac__type_alignof_;
25433 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25434 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25436 #include <stdlib.h>
25441 FILE *f = fopen ("conftest.val", "w");
25444 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25446 long int i = longval ();
25447 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25449 fprintf (f, "%ld", i);
25453 unsigned long int i = ulongval ();
25454 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25456 fprintf (f, "%lu", i);
25458 /* Do not output a trailing newline, as this causes \r\n confusion
25459 on some platforms. */
25460 return ferror (f) || fclose (f) != 0;
25466 rm -f conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25473 $as_echo "$ac_try_echo") >&5
25474 (eval "$ac_link") 2>&5
25476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25478 { (case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484 (eval "$ac_try") 2>&5
25486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); }; }; then
25488 ac_cv_alignof_short=`cat conftest.val`
25490 $as_echo "$as_me: program exited with status $ac_status" >&5
25491 $as_echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25494 ( exit $ac_status )
25495 if test "$ac_cv_type_short" = yes; then
25496 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25498 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25499 See \`config.log' for more details." >&5
25500 $as_echo "$as_me: error: cannot compute alignment of short
25501 See \`config.log' for more details." >&2;}
25502 { (exit 77); exit 77; }; }; }
25504 ac_cv_alignof_short=0
25507 rm -rf conftest.dSYM
25508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25512 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25513 $as_echo "$ac_cv_alignof_short" >&6; }
25517 cat >>confdefs.h <<_ACEOF
25518 #define ALIGNOF_SHORT $ac_cv_alignof_short
25522 # The cast to long int works around a bug in the HP C Compiler,
25523 # see AC_CHECK_SIZEOF for more information.
25524 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25525 $as_echo_n "checking alignment of int... " >&6; }
25526 if test "${ac_cv_alignof_int+set}" = set; then
25527 $as_echo_n "(cached) " >&6
25529 if test "$cross_compiling" = yes; then
25530 # Depending upon the size, compute the lo and hi bounds.
25531 cat >conftest.$ac_ext <<_ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h. */
25537 $ac_includes_default
25539 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25541 typedef struct { char x; int y; } ac__type_alignof_;
25545 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25552 rm -f conftest.$ac_objext
25553 if { (ac_try="$ac_compile"
25554 case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25559 $as_echo "$ac_try_echo") >&5
25560 (eval "$ac_compile") 2>conftest.er1
25562 grep -v '^ *+' conftest.er1 >conftest.err
25564 cat conftest.err >&5
25565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); } && {
25567 test -z "$ac_c_werror_flag" ||
25568 test ! -s conftest.err
25569 } && test -s conftest.$ac_objext; then
25572 cat >conftest.$ac_ext <<_ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 $ac_includes_default
25580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25582 typedef struct { char x; int y; } ac__type_alignof_;
25586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25593 rm -f conftest.$ac_objext
25594 if { (ac_try="$ac_compile"
25595 case "(($ac_try" in
25596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597 *) ac_try_echo=$ac_try;;
25599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25600 $as_echo "$ac_try_echo") >&5
25601 (eval "$ac_compile") 2>conftest.er1
25603 grep -v '^ *+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } && {
25608 test -z "$ac_c_werror_flag" ||
25609 test ! -s conftest.err
25610 } && test -s conftest.$ac_objext; then
25611 ac_hi=$ac_mid; break
25613 $as_echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25616 ac_lo=`expr $ac_mid + 1`
25617 if test $ac_lo -le $ac_mid; then
25621 ac_mid=`expr 2 '*' $ac_mid + 1`
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25627 $as_echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.$ac_ext >&5
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25638 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25640 typedef struct { char x; int y; } ac__type_alignof_;
25644 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25651 rm -f conftest.$ac_objext
25652 if { (ac_try="$ac_compile"
25653 case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25658 $as_echo "$ac_try_echo") >&5
25659 (eval "$ac_compile") 2>conftest.er1
25661 grep -v '^ *+' conftest.er1 >conftest.err
25663 cat conftest.err >&5
25664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); } && {
25666 test -z "$ac_c_werror_flag" ||
25667 test ! -s conftest.err
25668 } && test -s conftest.$ac_objext; then
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25679 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25681 typedef struct { char x; int y; } ac__type_alignof_;
25685 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25699 $as_echo "$ac_try_echo") >&5
25700 (eval "$ac_compile") 2>conftest.er1
25702 grep -v '^ *+' conftest.er1 >conftest.err
25704 cat conftest.err >&5
25705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } && {
25707 test -z "$ac_c_werror_flag" ||
25708 test ! -s conftest.err
25709 } && test -s conftest.$ac_objext; then
25710 ac_lo=$ac_mid; break
25712 $as_echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25715 ac_hi=`expr '(' $ac_mid ')' - 1`
25716 if test $ac_mid -le $ac_hi; then
25720 ac_mid=`expr 2 '*' $ac_mid`
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736 # Binary search between lo and hi bounds.
25737 while test "x$ac_lo" != "x$ac_hi"; do
25738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25745 $ac_includes_default
25747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25749 typedef struct { char x; int y; } ac__type_alignof_;
25753 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25760 rm -f conftest.$ac_objext
25761 if { (ac_try="$ac_compile"
25762 case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25767 $as_echo "$ac_try_echo") >&5
25768 (eval "$ac_compile") 2>conftest.er1
25770 grep -v '^ *+' conftest.er1 >conftest.err
25772 cat conftest.err >&5
25773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest.$ac_objext; then
25780 $as_echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25783 ac_lo=`expr '(' $ac_mid ')' + 1`
25786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25789 ?*) ac_cv_alignof_int=$ac_lo;;
25790 '') if test "$ac_cv_type_int" = yes; then
25791 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25793 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25794 See \`config.log' for more details." >&5
25795 $as_echo "$as_me: error: cannot compute alignment of int
25796 See \`config.log' for more details." >&2;}
25797 { (exit 77); exit 77; }; }; }
25799 ac_cv_alignof_int=0
25803 cat >conftest.$ac_ext <<_ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 $ac_includes_default
25811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25813 typedef struct { char x; int y; } ac__type_alignof_;
25814 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25815 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25817 #include <stdlib.h>
25822 FILE *f = fopen ("conftest.val", "w");
25825 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25827 long int i = longval ();
25828 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25830 fprintf (f, "%ld", i);
25834 unsigned long int i = ulongval ();
25835 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25837 fprintf (f, "%lu", i);
25839 /* Do not output a trailing newline, as this causes \r\n confusion
25840 on some platforms. */
25841 return ferror (f) || fclose (f) != 0;
25847 rm -f conftest$ac_exeext
25848 if { (ac_try="$ac_link"
25849 case "(($ac_try" in
25850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851 *) ac_try_echo=$ac_try;;
25853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25854 $as_echo "$ac_try_echo") >&5
25855 (eval "$ac_link") 2>&5
25857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25859 { (case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_try") 2>&5
25867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 ac_cv_alignof_int=`cat conftest.val`
25871 $as_echo "$as_me: program exited with status $ac_status" >&5
25872 $as_echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25875 ( exit $ac_status )
25876 if test "$ac_cv_type_int" = yes; then
25877 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25879 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25880 See \`config.log' for more details." >&5
25881 $as_echo "$as_me: error: cannot compute alignment of int
25882 See \`config.log' for more details." >&2;}
25883 { (exit 77); exit 77; }; }; }
25885 ac_cv_alignof_int=0
25888 rm -rf conftest.dSYM
25889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25893 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25894 $as_echo "$ac_cv_alignof_int" >&6; }
25898 cat >>confdefs.h <<_ACEOF
25899 #define ALIGNOF_INT $ac_cv_alignof_int
25903 # The cast to long int works around a bug in the HP C Compiler,
25904 # see AC_CHECK_SIZEOF for more information.
25905 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25906 $as_echo_n "checking alignment of long... " >&6; }
25907 if test "${ac_cv_alignof_long+set}" = set; then
25908 $as_echo_n "(cached) " >&6
25910 if test "$cross_compiling" = yes; then
25911 # Depending upon the size, compute the lo and hi bounds.
25912 cat >conftest.$ac_ext <<_ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25918 $ac_includes_default
25920 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25922 typedef struct { char x; long y; } ac__type_alignof_;
25926 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25933 rm -f conftest.$ac_objext
25934 if { (ac_try="$ac_compile"
25935 case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25940 $as_echo "$ac_try_echo") >&5
25941 (eval "$ac_compile") 2>conftest.er1
25943 grep -v '^ *+' conftest.er1 >conftest.err
25945 cat conftest.err >&5
25946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } && {
25948 test -z "$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25950 } && test -s conftest.$ac_objext; then
25953 cat >conftest.$ac_ext <<_ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 $ac_includes_default
25961 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25963 typedef struct { char x; long y; } ac__type_alignof_;
25967 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25974 rm -f conftest.$ac_objext
25975 if { (ac_try="$ac_compile"
25976 case "(($ac_try" in
25977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982 (eval "$ac_compile") 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_c_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest.$ac_objext; then
25992 ac_hi=$ac_mid; break
25994 $as_echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25997 ac_lo=`expr $ac_mid + 1`
25998 if test $ac_lo -le $ac_mid; then
26002 ac_mid=`expr 2 '*' $ac_mid + 1`
26005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008 $as_echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26011 cat >conftest.$ac_ext <<_ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h. */
26017 $ac_includes_default
26019 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26021 typedef struct { char x; long y; } ac__type_alignof_;
26025 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26032 rm -f conftest.$ac_objext
26033 if { (ac_try="$ac_compile"
26034 case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26039 $as_echo "$ac_try_echo") >&5
26040 (eval "$ac_compile") 2>conftest.er1
26042 grep -v '^ *+' conftest.er1 >conftest.err
26044 cat conftest.err >&5
26045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } && {
26047 test -z "$ac_c_werror_flag" ||
26048 test ! -s conftest.err
26049 } && test -s conftest.$ac_objext; then
26052 cat >conftest.$ac_ext <<_ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26058 $ac_includes_default
26060 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26062 typedef struct { char x; long y; } ac__type_alignof_;
26066 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26073 rm -f conftest.$ac_objext
26074 if { (ac_try="$ac_compile"
26075 case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26080 $as_echo "$ac_try_echo") >&5
26081 (eval "$ac_compile") 2>conftest.er1
26083 grep -v '^ *+' conftest.er1 >conftest.err
26085 cat conftest.err >&5
26086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } && {
26088 test -z "$ac_c_werror_flag" ||
26089 test ! -s conftest.err
26090 } && test -s conftest.$ac_objext; then
26091 ac_lo=$ac_mid; break
26093 $as_echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26096 ac_hi=`expr '(' $ac_mid ')' - 1`
26097 if test $ac_mid -le $ac_hi; then
26101 ac_mid=`expr 2 '*' $ac_mid`
26104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26107 $as_echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117 # Binary search between lo and hi bounds.
26118 while test "x$ac_lo" != "x$ac_hi"; do
26119 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26120 cat >conftest.$ac_ext <<_ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h. */
26126 $ac_includes_default
26128 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26130 typedef struct { char x; long y; } ac__type_alignof_;
26134 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26141 rm -f conftest.$ac_objext
26142 if { (ac_try="$ac_compile"
26143 case "(($ac_try" in
26144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145 *) ac_try_echo=$ac_try;;
26147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26148 $as_echo "$ac_try_echo") >&5
26149 (eval "$ac_compile") 2>conftest.er1
26151 grep -v '^ *+' conftest.er1 >conftest.err
26153 cat conftest.err >&5
26154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); } && {
26156 test -z "$ac_c_werror_flag" ||
26157 test ! -s conftest.err
26158 } && test -s conftest.$ac_objext; then
26161 $as_echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26164 ac_lo=`expr '(' $ac_mid ')' + 1`
26167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26170 ?*) ac_cv_alignof_long=$ac_lo;;
26171 '') if test "$ac_cv_type_long" = yes; then
26172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26174 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26175 See \`config.log' for more details." >&5
26176 $as_echo "$as_me: error: cannot compute alignment of long
26177 See \`config.log' for more details." >&2;}
26178 { (exit 77); exit 77; }; }; }
26180 ac_cv_alignof_long=0
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 $ac_includes_default
26192 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26194 typedef struct { char x; long y; } ac__type_alignof_;
26195 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26196 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26198 #include <stdlib.h>
26203 FILE *f = fopen ("conftest.val", "w");
26206 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26208 long int i = longval ();
26209 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26211 fprintf (f, "%ld", i);
26215 unsigned long int i = ulongval ();
26216 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26218 fprintf (f, "%lu", i);
26220 /* Do not output a trailing newline, as this causes \r\n confusion
26221 on some platforms. */
26222 return ferror (f) || fclose (f) != 0;
26228 rm -f conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232 *) ac_try_echo=$ac_try;;
26234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26235 $as_echo "$ac_try_echo") >&5
26236 (eval "$ac_link") 2>&5
26238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26240 { (case "(($ac_try" in
26241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242 *) ac_try_echo=$ac_try;;
26244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26245 $as_echo "$ac_try_echo") >&5
26246 (eval "$ac_try") 2>&5
26248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; }; then
26250 ac_cv_alignof_long=`cat conftest.val`
26252 $as_echo "$as_me: program exited with status $ac_status" >&5
26253 $as_echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 ( exit $ac_status )
26257 if test "$ac_cv_type_long" = yes; then
26258 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26260 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26261 See \`config.log' for more details." >&5
26262 $as_echo "$as_me: error: cannot compute alignment of long
26263 See \`config.log' for more details." >&2;}
26264 { (exit 77); exit 77; }; }; }
26266 ac_cv_alignof_long=0
26269 rm -rf conftest.dSYM
26270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26274 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26275 $as_echo "$ac_cv_alignof_long" >&6; }
26279 cat >>confdefs.h <<_ACEOF
26280 #define ALIGNOF_LONG $ac_cv_alignof_long
26284 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26285 # The cast to long int works around a bug in the HP C Compiler,
26286 # see AC_CHECK_SIZEOF for more information.
26287 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26288 $as_echo_n "checking alignment of long long int... " >&6; }
26289 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26290 $as_echo_n "(cached) " >&6
26292 if test "$cross_compiling" = yes; then
26293 # Depending upon the size, compute the lo and hi bounds.
26294 cat >conftest.$ac_ext <<_ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 $ac_includes_default
26302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26304 typedef struct { char x; long long int y; } ac__type_alignof_;
26308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26315 rm -f conftest.$ac_objext
26316 if { (ac_try="$ac_compile"
26317 case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26322 $as_echo "$ac_try_echo") >&5
26323 (eval "$ac_compile") 2>conftest.er1
26325 grep -v '^ *+' conftest.er1 >conftest.err
26327 cat conftest.err >&5
26328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } && {
26330 test -z "$ac_c_werror_flag" ||
26331 test ! -s conftest.err
26332 } && test -s conftest.$ac_objext; then
26335 cat >conftest.$ac_ext <<_ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h. */
26341 $ac_includes_default
26343 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26345 typedef struct { char x; long long int y; } ac__type_alignof_;
26349 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26356 rm -f conftest.$ac_objext
26357 if { (ac_try="$ac_compile"
26358 case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363 $as_echo "$ac_try_echo") >&5
26364 (eval "$ac_compile") 2>conftest.er1
26366 grep -v '^ *+' conftest.er1 >conftest.err
26368 cat conftest.err >&5
26369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest.$ac_objext; then
26374 ac_hi=$ac_mid; break
26376 $as_echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26379 ac_lo=`expr $ac_mid + 1`
26380 if test $ac_lo -le $ac_mid; then
26384 ac_mid=`expr 2 '*' $ac_mid + 1`
26387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26390 $as_echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 $ac_includes_default
26401 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26403 typedef struct { char x; long long int y; } ac__type_alignof_;
26407 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26414 rm -f conftest.$ac_objext
26415 if { (ac_try="$ac_compile"
26416 case "(($ac_try" in
26417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26418 *) ac_try_echo=$ac_try;;
26420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26421 $as_echo "$ac_try_echo") >&5
26422 (eval "$ac_compile") 2>conftest.er1
26424 grep -v '^ *+' conftest.er1 >conftest.err
26426 cat conftest.err >&5
26427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } && {
26429 test -z "$ac_c_werror_flag" ||
26430 test ! -s conftest.err
26431 } && test -s conftest.$ac_objext; then
26434 cat >conftest.$ac_ext <<_ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h. */
26440 $ac_includes_default
26442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26444 typedef struct { char x; long long int y; } ac__type_alignof_;
26448 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26455 rm -f conftest.$ac_objext
26456 if { (ac_try="$ac_compile"
26457 case "(($ac_try" in
26458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459 *) ac_try_echo=$ac_try;;
26461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26462 $as_echo "$ac_try_echo") >&5
26463 (eval "$ac_compile") 2>conftest.er1
26465 grep -v '^ *+' conftest.er1 >conftest.err
26467 cat conftest.err >&5
26468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); } && {
26470 test -z "$ac_c_werror_flag" ||
26471 test ! -s conftest.err
26472 } && test -s conftest.$ac_objext; then
26473 ac_lo=$ac_mid; break
26475 $as_echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26478 ac_hi=`expr '(' $ac_mid ')' - 1`
26479 if test $ac_mid -le $ac_hi; then
26483 ac_mid=`expr 2 '*' $ac_mid`
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26489 $as_echo "$as_me: failed program was:" >&5
26490 sed 's/^/| /' conftest.$ac_ext >&5
26495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26499 # Binary search between lo and hi bounds.
26500 while test "x$ac_lo" != "x$ac_hi"; do
26501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 $ac_includes_default
26510 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26512 typedef struct { char x; long long int y; } ac__type_alignof_;
26516 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26523 rm -f conftest.$ac_objext
26524 if { (ac_try="$ac_compile"
26525 case "(($ac_try" in
26526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26530 $as_echo "$ac_try_echo") >&5
26531 (eval "$ac_compile") 2>conftest.er1
26533 grep -v '^ *+' conftest.er1 >conftest.err
26535 cat conftest.err >&5
26536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } && {
26538 test -z "$ac_c_werror_flag" ||
26539 test ! -s conftest.err
26540 } && test -s conftest.$ac_objext; then
26543 $as_echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 ac_lo=`expr '(' $ac_mid ')' + 1`
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26552 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26553 '') if test "$ac_cv_type_long_long_int" = yes; then
26554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26556 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26557 See \`config.log' for more details." >&5
26558 $as_echo "$as_me: error: cannot compute alignment of long long int
26559 See \`config.log' for more details." >&2;}
26560 { (exit 77); exit 77; }; }; }
26562 ac_cv_alignof_long_long_int=0
26566 cat >conftest.$ac_ext <<_ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572 $ac_includes_default
26574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26576 typedef struct { char x; long long int y; } ac__type_alignof_;
26577 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26578 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26580 #include <stdlib.h>
26585 FILE *f = fopen ("conftest.val", "w");
26588 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26590 long int i = longval ();
26591 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26593 fprintf (f, "%ld", i);
26597 unsigned long int i = ulongval ();
26598 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26600 fprintf (f, "%lu", i);
26602 /* Do not output a trailing newline, as this causes \r\n confusion
26603 on some platforms. */
26604 return ferror (f) || fclose (f) != 0;
26610 rm -f conftest$ac_exeext
26611 if { (ac_try="$ac_link"
26612 case "(($ac_try" in
26613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614 *) ac_try_echo=$ac_try;;
26616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26617 $as_echo "$ac_try_echo") >&5
26618 (eval "$ac_link") 2>&5
26620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26622 { (case "(($ac_try" in
26623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624 *) ac_try_echo=$ac_try;;
26626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26627 $as_echo "$ac_try_echo") >&5
26628 (eval "$ac_try") 2>&5
26630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); }; }; then
26632 ac_cv_alignof_long_long_int=`cat conftest.val`
26634 $as_echo "$as_me: program exited with status $ac_status" >&5
26635 $as_echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 ( exit $ac_status )
26639 if test "$ac_cv_type_long_long_int" = yes; then
26640 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26642 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26643 See \`config.log' for more details." >&5
26644 $as_echo "$as_me: error: cannot compute alignment of long long int
26645 See \`config.log' for more details." >&2;}
26646 { (exit 77); exit 77; }; }; }
26648 ac_cv_alignof_long_long_int=0
26651 rm -rf conftest.dSYM
26652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26656 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26657 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26661 cat >>confdefs.h <<_ACEOF
26662 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26667 # The cast to long int works around a bug in the HP C Compiler,
26668 # see AC_CHECK_SIZEOF for more information.
26669 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26670 $as_echo_n "checking alignment of double... " >&6; }
26671 if test "${ac_cv_alignof_double+set}" = set; then
26672 $as_echo_n "(cached) " >&6
26674 if test "$cross_compiling" = yes; then
26675 # Depending upon the size, compute the lo and hi bounds.
26676 cat >conftest.$ac_ext <<_ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26682 $ac_includes_default
26684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26686 typedef struct { char x; double y; } ac__type_alignof_;
26690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26697 rm -f conftest.$ac_objext
26698 if { (ac_try="$ac_compile"
26699 case "(($ac_try" in
26700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26701 *) ac_try_echo=$ac_try;;
26703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26704 $as_echo "$ac_try_echo") >&5
26705 (eval "$ac_compile") 2>conftest.er1
26707 grep -v '^ *+' conftest.er1 >conftest.err
26709 cat conftest.err >&5
26710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); } && {
26712 test -z "$ac_c_werror_flag" ||
26713 test ! -s conftest.err
26714 } && test -s conftest.$ac_objext; then
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26723 $ac_includes_default
26725 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26727 typedef struct { char x; double y; } ac__type_alignof_;
26731 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26738 rm -f conftest.$ac_objext
26739 if { (ac_try="$ac_compile"
26740 case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26745 $as_echo "$ac_try_echo") >&5
26746 (eval "$ac_compile") 2>conftest.er1
26748 grep -v '^ *+' conftest.er1 >conftest.err
26750 cat conftest.err >&5
26751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } && {
26753 test -z "$ac_c_werror_flag" ||
26754 test ! -s conftest.err
26755 } && test -s conftest.$ac_objext; then
26756 ac_hi=$ac_mid; break
26758 $as_echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26761 ac_lo=`expr $ac_mid + 1`
26762 if test $ac_lo -le $ac_mid; then
26766 ac_mid=`expr 2 '*' $ac_mid + 1`
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26772 $as_echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26781 $ac_includes_default
26783 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26785 typedef struct { char x; double y; } ac__type_alignof_;
26789 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26796 rm -f conftest.$ac_objext
26797 if { (ac_try="$ac_compile"
26798 case "(($ac_try" in
26799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26800 *) ac_try_echo=$ac_try;;
26802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26803 $as_echo "$ac_try_echo") >&5
26804 (eval "$ac_compile") 2>conftest.er1
26806 grep -v '^ *+' conftest.er1 >conftest.err
26808 cat conftest.err >&5
26809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } && {
26811 test -z "$ac_c_werror_flag" ||
26812 test ! -s conftest.err
26813 } && test -s conftest.$ac_objext; then
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26822 $ac_includes_default
26824 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26826 typedef struct { char x; double y; } ac__type_alignof_;
26830 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26837 rm -f conftest.$ac_objext
26838 if { (ac_try="$ac_compile"
26839 case "(($ac_try" in
26840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26841 *) ac_try_echo=$ac_try;;
26843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26844 $as_echo "$ac_try_echo") >&5
26845 (eval "$ac_compile") 2>conftest.er1
26847 grep -v '^ *+' conftest.er1 >conftest.err
26849 cat conftest.err >&5
26850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } && {
26852 test -z "$ac_c_werror_flag" ||
26853 test ! -s conftest.err
26854 } && test -s conftest.$ac_objext; then
26855 ac_lo=$ac_mid; break
26857 $as_echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26860 ac_hi=`expr '(' $ac_mid ')' - 1`
26861 if test $ac_mid -le $ac_hi; then
26865 ac_mid=`expr 2 '*' $ac_mid`
26868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871 $as_echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26881 # Binary search between lo and hi bounds.
26882 while test "x$ac_lo" != "x$ac_hi"; do
26883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26884 cat >conftest.$ac_ext <<_ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h. */
26890 $ac_includes_default
26892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26894 typedef struct { char x; double y; } ac__type_alignof_;
26898 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26905 rm -f conftest.$ac_objext
26906 if { (ac_try="$ac_compile"
26907 case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26912 $as_echo "$ac_try_echo") >&5
26913 (eval "$ac_compile") 2>conftest.er1
26915 grep -v '^ *+' conftest.er1 >conftest.err
26917 cat conftest.err >&5
26918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } && {
26920 test -z "$ac_c_werror_flag" ||
26921 test ! -s conftest.err
26922 } && test -s conftest.$ac_objext; then
26925 $as_echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_lo=`expr '(' $ac_mid ')' + 1`
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26934 ?*) ac_cv_alignof_double=$ac_lo;;
26935 '') if test "$ac_cv_type_double" = yes; then
26936 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26938 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26939 See \`config.log' for more details." >&5
26940 $as_echo "$as_me: error: cannot compute alignment of double
26941 See \`config.log' for more details." >&2;}
26942 { (exit 77); exit 77; }; }; }
26944 ac_cv_alignof_double=0
26948 cat >conftest.$ac_ext <<_ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h. */
26954 $ac_includes_default
26956 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26958 typedef struct { char x; double y; } ac__type_alignof_;
26959 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26960 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26962 #include <stdlib.h>
26967 FILE *f = fopen ("conftest.val", "w");
26970 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26972 long int i = longval ();
26973 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26975 fprintf (f, "%ld", i);
26979 unsigned long int i = ulongval ();
26980 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26982 fprintf (f, "%lu", i);
26984 /* Do not output a trailing newline, as this causes \r\n confusion
26985 on some platforms. */
26986 return ferror (f) || fclose (f) != 0;
26992 rm -f conftest$ac_exeext
26993 if { (ac_try="$ac_link"
26994 case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26999 $as_echo "$ac_try_echo") >&5
27000 (eval "$ac_link") 2>&5
27002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27004 { (case "(($ac_try" in
27005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006 *) ac_try_echo=$ac_try;;
27008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27009 $as_echo "$ac_try_echo") >&5
27010 (eval "$ac_try") 2>&5
27012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; }; then
27014 ac_cv_alignof_double=`cat conftest.val`
27016 $as_echo "$as_me: program exited with status $ac_status" >&5
27017 $as_echo "$as_me: failed program was:" >&5
27018 sed 's/^/| /' conftest.$ac_ext >&5
27020 ( exit $ac_status )
27021 if test "$ac_cv_type_double" = yes; then
27022 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27024 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27025 See \`config.log' for more details." >&5
27026 $as_echo "$as_me: error: cannot compute alignment of double
27027 See \`config.log' for more details." >&2;}
27028 { (exit 77); exit 77; }; }; }
27030 ac_cv_alignof_double=0
27033 rm -rf conftest.dSYM
27034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27038 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27039 $as_echo "$ac_cv_alignof_double" >&6; }
27043 cat >>confdefs.h <<_ACEOF
27044 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27049 # Compute maximum alignment of any basic type.
27050 # We assume long's alignment is at least as strong as char, short, or int;
27051 # but we must check long long (if it exists) and double.
27053 MAX_ALIGNOF=$ac_cv_alignof_long
27054 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27055 MAX_ALIGNOF=$ac_cv_alignof_double
27057 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27058 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27061 cat >>confdefs.h <<_ACEOF
27062 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27067 # Some platforms predefine the types int8, int16, etc. Only check
27068 # a (hopefully) representative subset.
27069 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27070 $as_echo_n "checking for int8... " >&6; }
27071 if test "${ac_cv_type_int8+set}" = set; then
27072 $as_echo_n "(cached) " >&6
27075 cat >conftest.$ac_ext <<_ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h. */
27082 #ifdef HAVE_SUPPORTDEFS_H
27083 #include <SupportDefs.h>
27095 rm -f conftest.$ac_objext
27096 if { (ac_try="$ac_compile"
27097 case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27102 $as_echo "$ac_try_echo") >&5
27103 (eval "$ac_compile") 2>conftest.er1
27105 grep -v '^ *+' conftest.er1 >conftest.err
27107 cat conftest.err >&5
27108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } && {
27110 test -z "$ac_c_werror_flag" ||
27111 test ! -s conftest.err
27112 } && test -s conftest.$ac_objext; then
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27120 #ifdef HAVE_SUPPORTDEFS_H
27121 #include <SupportDefs.h>
27127 if (sizeof ((int8)))
27133 rm -f conftest.$ac_objext
27134 if { (ac_try="$ac_compile"
27135 case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27140 $as_echo "$ac_try_echo") >&5
27141 (eval "$ac_compile") 2>conftest.er1
27143 grep -v '^ *+' conftest.er1 >conftest.err
27145 cat conftest.err >&5
27146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } && {
27148 test -z "$ac_c_werror_flag" ||
27149 test ! -s conftest.err
27150 } && test -s conftest.$ac_objext; then
27153 $as_echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_cv_type_int8=yes
27159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161 $as_echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27170 $as_echo "$ac_cv_type_int8" >&6; }
27171 if test "x$ac_cv_type_int8" = x""yes; then
27173 cat >>confdefs.h <<_ACEOF
27174 #define HAVE_INT8 1
27179 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27180 $as_echo_n "checking for uint8... " >&6; }
27181 if test "${ac_cv_type_uint8+set}" = set; then
27182 $as_echo_n "(cached) " >&6
27184 ac_cv_type_uint8=no
27185 cat >conftest.$ac_ext <<_ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h. */
27192 #ifdef HAVE_SUPPORTDEFS_H
27193 #include <SupportDefs.h>
27199 if (sizeof (uint8))
27205 rm -f conftest.$ac_objext
27206 if { (ac_try="$ac_compile"
27207 case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27212 $as_echo "$ac_try_echo") >&5
27213 (eval "$ac_compile") 2>conftest.er1
27215 grep -v '^ *+' conftest.er1 >conftest.err
27217 cat conftest.err >&5
27218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } && {
27220 test -z "$ac_c_werror_flag" ||
27221 test ! -s conftest.err
27222 } && test -s conftest.$ac_objext; then
27223 cat >conftest.$ac_ext <<_ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h. */
27230 #ifdef HAVE_SUPPORTDEFS_H
27231 #include <SupportDefs.h>
27237 if (sizeof ((uint8)))
27243 rm -f conftest.$ac_objext
27244 if { (ac_try="$ac_compile"
27245 case "(($ac_try" in
27246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247 *) ac_try_echo=$ac_try;;
27249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27250 $as_echo "$ac_try_echo") >&5
27251 (eval "$ac_compile") 2>conftest.er1
27253 grep -v '^ *+' conftest.er1 >conftest.err
27255 cat conftest.err >&5
27256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } && {
27258 test -z "$ac_c_werror_flag" ||
27259 test ! -s conftest.err
27260 } && test -s conftest.$ac_objext; then
27263 $as_echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27266 ac_cv_type_uint8=yes
27269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27271 $as_echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27280 $as_echo "$ac_cv_type_uint8" >&6; }
27281 if test "x$ac_cv_type_uint8" = x""yes; then
27283 cat >>confdefs.h <<_ACEOF
27284 #define HAVE_UINT8 1
27289 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27290 $as_echo_n "checking for int64... " >&6; }
27291 if test "${ac_cv_type_int64+set}" = set; then
27292 $as_echo_n "(cached) " >&6
27294 ac_cv_type_int64=no
27295 cat >conftest.$ac_ext <<_ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h. */
27302 #ifdef HAVE_SUPPORTDEFS_H
27303 #include <SupportDefs.h>
27309 if (sizeof (int64))
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27322 $as_echo "$ac_try_echo") >&5
27323 (eval "$ac_compile") 2>conftest.er1
27325 grep -v '^ *+' conftest.er1 >conftest.err
27327 cat conftest.err >&5
27328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); } && {
27330 test -z "$ac_c_werror_flag" ||
27331 test ! -s conftest.err
27332 } && test -s conftest.$ac_objext; then
27333 cat >conftest.$ac_ext <<_ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27340 #ifdef HAVE_SUPPORTDEFS_H
27341 #include <SupportDefs.h>
27347 if (sizeof ((int64)))
27353 rm -f conftest.$ac_objext
27354 if { (ac_try="$ac_compile"
27355 case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27360 $as_echo "$ac_try_echo") >&5
27361 (eval "$ac_compile") 2>conftest.er1
27363 grep -v '^ *+' conftest.er1 >conftest.err
27365 cat conftest.err >&5
27366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } && {
27368 test -z "$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27370 } && test -s conftest.$ac_objext; then
27373 $as_echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 ac_cv_type_int64=yes
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 $as_echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27390 $as_echo "$ac_cv_type_int64" >&6; }
27391 if test "x$ac_cv_type_int64" = x""yes; then
27393 cat >>confdefs.h <<_ACEOF
27394 #define HAVE_INT64 1
27399 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27400 $as_echo_n "checking for uint64... " >&6; }
27401 if test "${ac_cv_type_uint64+set}" = set; then
27402 $as_echo_n "(cached) " >&6
27404 ac_cv_type_uint64=no
27405 cat >conftest.$ac_ext <<_ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h. */
27412 #ifdef HAVE_SUPPORTDEFS_H
27413 #include <SupportDefs.h>
27419 if (sizeof (uint64))
27425 rm -f conftest.$ac_objext
27426 if { (ac_try="$ac_compile"
27427 case "(($ac_try" in
27428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429 *) ac_try_echo=$ac_try;;
27431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27432 $as_echo "$ac_try_echo") >&5
27433 (eval "$ac_compile") 2>conftest.er1
27435 grep -v '^ *+' conftest.er1 >conftest.err
27437 cat conftest.err >&5
27438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); } && {
27440 test -z "$ac_c_werror_flag" ||
27441 test ! -s conftest.err
27442 } && test -s conftest.$ac_objext; then
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27450 #ifdef HAVE_SUPPORTDEFS_H
27451 #include <SupportDefs.h>
27457 if (sizeof ((uint64)))
27463 rm -f conftest.$ac_objext
27464 if { (ac_try="$ac_compile"
27465 case "(($ac_try" in
27466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467 *) ac_try_echo=$ac_try;;
27469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27470 $as_echo "$ac_try_echo") >&5
27471 (eval "$ac_compile") 2>conftest.er1
27473 grep -v '^ *+' conftest.er1 >conftest.err
27475 cat conftest.err >&5
27476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } && {
27478 test -z "$ac_c_werror_flag" ||
27479 test ! -s conftest.err
27480 } && test -s conftest.$ac_objext; then
27483 $as_echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27486 ac_cv_type_uint64=yes
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27491 $as_echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27500 $as_echo "$ac_cv_type_uint64" >&6; }
27501 if test "x$ac_cv_type_uint64" = x""yes; then
27503 cat >>confdefs.h <<_ACEOF
27504 #define HAVE_UINT64 1
27511 # We also check for sig_atomic_t, which *should* be defined per ANSI
27512 # C, but is missing on some old platforms.
27513 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27514 $as_echo_n "checking for sig_atomic_t... " >&6; }
27515 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27516 $as_echo_n "(cached) " >&6
27518 ac_cv_type_sig_atomic_t=no
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 #include <signal.h>
27530 if (sizeof (sig_atomic_t))
27536 rm -f conftest.$ac_objext
27537 if { (ac_try="$ac_compile"
27538 case "(($ac_try" in
27539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540 *) ac_try_echo=$ac_try;;
27542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27543 $as_echo "$ac_try_echo") >&5
27544 (eval "$ac_compile") 2>conftest.er1
27546 grep -v '^ *+' conftest.er1 >conftest.err
27548 cat conftest.err >&5
27549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } && {
27551 test -z "$ac_c_werror_flag" ||
27552 test ! -s conftest.err
27553 } && test -s conftest.$ac_objext; then
27554 cat >conftest.$ac_ext <<_ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h. */
27560 #include <signal.h>
27565 if (sizeof ((sig_atomic_t)))
27571 rm -f conftest.$ac_objext
27572 if { (ac_try="$ac_compile"
27573 case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27578 $as_echo "$ac_try_echo") >&5
27579 (eval "$ac_compile") 2>conftest.er1
27581 grep -v '^ *+' conftest.er1 >conftest.err
27583 cat conftest.err >&5
27584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } && {
27586 test -z "$ac_c_werror_flag" ||
27587 test ! -s conftest.err
27588 } && test -s conftest.$ac_objext; then
27591 $as_echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ac_cv_type_sig_atomic_t=yes
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27607 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27608 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27609 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27611 cat >>confdefs.h <<_ACEOF
27612 #define HAVE_SIG_ATOMIC_T 1
27620 if test "$PORTNAME" != "win32"
27622 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27623 $as_echo_n "checking for POSIX signal interface... " >&6; }
27624 if test "${pgac_cv_func_posix_signals+set}" = set; then
27625 $as_echo_n "(cached) " >&6
27627 cat >conftest.$ac_ext <<_ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 #include <signal.h>
27638 struct sigaction act, oact;
27639 sigemptyset(&act.sa_mask);
27640 act.sa_flags = SA_RESTART;
27641 sigaction(0, &act, &oact);
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27653 $as_echo "$ac_try_echo") >&5
27654 (eval "$ac_link") 2>conftest.er1
27656 grep -v '^ *+' conftest.er1 >conftest.err
27658 cat conftest.err >&5
27659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660 (exit $ac_status); } && {
27661 test -z "$ac_c_werror_flag" ||
27662 test ! -s conftest.err
27663 } && test -s conftest$ac_exeext && {
27664 test "$cross_compiling" = yes ||
27665 $as_test_x conftest$ac_exeext
27667 pgac_cv_func_posix_signals=yes
27669 $as_echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 pgac_cv_func_posix_signals=no
27675 rm -rf conftest.dSYM
27676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27677 conftest$ac_exeext conftest.$ac_ext
27679 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27680 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27681 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27683 cat >>confdefs.h <<\_ACEOF
27684 #define HAVE_POSIX_SIGNALS /**/
27688 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27690 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27691 { { $as_echo "$as_me:$LINENO: error:
27692 Thread-safety requires POSIX signals, which are not supported by this
27693 operating system; use --disable-thread-safety to disable thread safety." >&5
27694 $as_echo "$as_me: error:
27695 Thread-safety requires POSIX signals, which are not supported by this
27696 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27697 { (exit 1); exit 1; }; }
27701 # SunOS doesn't handle negative byte comparisons properly with +/- return
27702 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27703 $as_echo_n "checking for working memcmp... " >&6; }
27704 if test "${ac_cv_func_memcmp_working+set}" = set; then
27705 $as_echo_n "(cached) " >&6
27707 if test "$cross_compiling" = yes; then
27708 ac_cv_func_memcmp_working=no
27710 cat >conftest.$ac_ext <<_ACEOF
27713 cat confdefs.h >>conftest.$ac_ext
27714 cat >>conftest.$ac_ext <<_ACEOF
27715 /* end confdefs.h. */
27716 $ac_includes_default
27721 /* Some versions of memcmp are not 8-bit clean. */
27722 char c0 = '\100', c1 = '\200', c2 = '\201';
27723 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27726 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27727 or more and with at least one buffer not starting on a 4-byte boundary.
27728 William Lewis provided this test program. */
27733 for (i = 0; i < 4; i++)
27737 strcpy (a, "--------01111111");
27738 strcpy (b, "--------10000000");
27739 if (memcmp (a, b, 16) >= 0)
27749 rm -f conftest$ac_exeext
27750 if { (ac_try="$ac_link"
27751 case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27756 $as_echo "$ac_try_echo") >&5
27757 (eval "$ac_link") 2>&5
27759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27766 $as_echo "$ac_try_echo") >&5
27767 (eval "$ac_try") 2>&5
27769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; }; then
27771 ac_cv_func_memcmp_working=yes
27773 $as_echo "$as_me: program exited with status $ac_status" >&5
27774 $as_echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27777 ( exit $ac_status )
27778 ac_cv_func_memcmp_working=no
27780 rm -rf conftest.dSYM
27781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27786 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27787 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27788 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27789 *" memcmp.$ac_objext "* ) ;;
27790 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27797 # Select semaphore implementation type.
27798 if test "$PORTNAME" != "win32"; then
27799 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27801 cat >>confdefs.h <<\_ACEOF
27802 #define USE_NAMED_POSIX_SEMAPHORES 1
27805 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27807 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27809 cat >>confdefs.h <<\_ACEOF
27810 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27813 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27816 cat >>confdefs.h <<\_ACEOF
27817 #define USE_SYSV_SEMAPHORES 1
27820 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27825 cat >>confdefs.h <<\_ACEOF
27826 #define USE_WIN32_SEMAPHORES 1
27829 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27833 # Select shared-memory implementation type.
27834 if test "$PORTNAME" != "win32"; then
27836 cat >>confdefs.h <<\_ACEOF
27837 #define USE_SYSV_SHARED_MEMORY 1
27840 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27843 cat >>confdefs.h <<\_ACEOF
27844 #define USE_WIN32_SHARED_MEMORY 1
27847 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27850 # Select latch implementation type.
27851 if test "$PORTNAME" != "win32"; then
27852 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
27854 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
27857 # If not set in template file, set bytes to use libc memset()
27858 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27859 MEMSET_LOOP_LIMIT=1024
27862 cat >>confdefs.h <<_ACEOF
27863 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27868 if test "$enable_nls" = yes ; then
27870 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27871 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27872 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27873 $as_echo_n "(cached) " >&6
27875 ac_func_search_save_LIBS=$LIBS
27876 cat >conftest.$ac_ext <<_ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27883 /* Override any GCC internal prototype to avoid an error.
27884 Use char because int might match the return type of a GCC
27885 builtin and then its argument prototype would still apply. */
27889 char bind_textdomain_codeset ();
27893 return bind_textdomain_codeset ();
27898 for ac_lib in '' intl; do
27899 if test -z "$ac_lib"; then
27900 ac_res="none required"
27903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27905 rm -f conftest.$ac_objext conftest$ac_exeext
27906 if { (ac_try="$ac_link"
27907 case "(($ac_try" in
27908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909 *) ac_try_echo=$ac_try;;
27911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27912 $as_echo "$ac_try_echo") >&5
27913 (eval "$ac_link") 2>conftest.er1
27915 grep -v '^ *+' conftest.er1 >conftest.err
27917 cat conftest.err >&5
27918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919 (exit $ac_status); } && {
27920 test -z "$ac_c_werror_flag" ||
27921 test ! -s conftest.err
27922 } && test -s conftest$ac_exeext && {
27923 test "$cross_compiling" = yes ||
27924 $as_test_x conftest$ac_exeext
27926 ac_cv_search_bind_textdomain_codeset=$ac_res
27928 $as_echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27934 rm -rf conftest.dSYM
27935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27937 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27941 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27944 ac_cv_search_bind_textdomain_codeset=no
27946 rm conftest.$ac_ext
27947 LIBS=$ac_func_search_save_LIBS
27949 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27950 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27951 ac_res=$ac_cv_search_bind_textdomain_codeset
27952 if test "$ac_res" != no; then
27953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27956 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27957 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27958 { (exit 1); exit 1; }; }
27961 if test "${ac_cv_header_libintl_h+set}" = set; then
27962 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27963 $as_echo_n "checking for libintl.h... " >&6; }
27964 if test "${ac_cv_header_libintl_h+set}" = set; then
27965 $as_echo_n "(cached) " >&6
27967 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27968 $as_echo "$ac_cv_header_libintl_h" >&6; }
27970 # Is the header compilable?
27971 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27972 $as_echo_n "checking libintl.h usability... " >&6; }
27973 cat >conftest.$ac_ext <<_ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h. */
27979 $ac_includes_default
27980 #include <libintl.h>
27982 rm -f conftest.$ac_objext
27983 if { (ac_try="$ac_compile"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27989 $as_echo "$ac_try_echo") >&5
27990 (eval "$ac_compile") 2>conftest.er1
27992 grep -v '^ *+' conftest.er1 >conftest.err
27994 cat conftest.err >&5
27995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } && {
27997 test -z "$ac_c_werror_flag" ||
27998 test ! -s conftest.err
27999 } && test -s conftest.$ac_objext; then
28000 ac_header_compiler=yes
28002 $as_echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28005 ac_header_compiler=no
28008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28010 $as_echo "$ac_header_compiler" >&6; }
28012 # Is the header present?
28013 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28014 $as_echo_n "checking libintl.h presence... " >&6; }
28015 cat >conftest.$ac_ext <<_ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h. */
28021 #include <libintl.h>
28023 if { (ac_try="$ac_cpp conftest.$ac_ext"
28024 case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28029 $as_echo "$ac_try_echo") >&5
28030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28032 grep -v '^ *+' conftest.er1 >conftest.err
28034 cat conftest.err >&5
28035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } >/dev/null && {
28037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28038 test ! -s conftest.err
28040 ac_header_preproc=yes
28042 $as_echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28045 ac_header_preproc=no
28048 rm -f conftest.err conftest.$ac_ext
28049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28050 $as_echo "$ac_header_preproc" >&6; }
28052 # So? What about this header?
28053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28055 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28056 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28057 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28058 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28059 ac_header_preproc=yes
28062 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28063 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28064 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28065 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28066 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28067 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28068 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28069 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28070 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28071 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28072 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28073 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28075 ## ---------------------------------------- ##
28076 ## Report this to pgsql-bugs@postgresql.org ##
28077 ## ---------------------------------------- ##
28079 ) | sed "s/^/$as_me: WARNING: /" >&2
28082 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28083 $as_echo_n "checking for libintl.h... " >&6; }
28084 if test "${ac_cv_header_libintl_h+set}" = set; then
28085 $as_echo_n "(cached) " >&6
28087 ac_cv_header_libintl_h=$ac_header_preproc
28089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28090 $as_echo "$ac_cv_header_libintl_h" >&6; }
28093 if test "x$ac_cv_header_libintl_h" = x""yes; then
28096 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28097 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28098 { (exit 1); exit 1; }; }
28102 for ac_prog in msgfmt
28104 # Extract the first word of "$ac_prog", so it can be a program name with args.
28105 set dummy $ac_prog; ac_word=$2
28106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28107 $as_echo_n "checking for $ac_word... " >&6; }
28108 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28109 $as_echo_n "(cached) " >&6
28111 if test -n "$MSGFMT"; then
28112 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28115 for as_dir in $PATH
28118 test -z "$as_dir" && as_dir=.
28119 for ac_exec_ext in '' $ac_executable_extensions; do
28120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28121 ac_cv_prog_MSGFMT="$ac_prog"
28122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28131 MSGFMT=$ac_cv_prog_MSGFMT
28132 if test -n "$MSGFMT"; then
28133 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28134 $as_echo "$MSGFMT" >&6; }
28136 { $as_echo "$as_me:$LINENO: result: no" >&5
28137 $as_echo "no" >&6; }
28141 test -n "$MSGFMT" && break
28144 if test -z "$MSGFMT"; then
28145 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28146 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28147 { (exit 1); exit 1; }; }
28149 for ac_prog in msgmerge
28151 # Extract the first word of "$ac_prog", so it can be a program name with args.
28152 set dummy $ac_prog; ac_word=$2
28153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28154 $as_echo_n "checking for $ac_word... " >&6; }
28155 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28156 $as_echo_n "(cached) " >&6
28158 if test -n "$MSGMERGE"; then
28159 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28162 for as_dir in $PATH
28165 test -z "$as_dir" && as_dir=.
28166 for ac_exec_ext in '' $ac_executable_extensions; do
28167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28168 ac_cv_prog_MSGMERGE="$ac_prog"
28169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28178 MSGMERGE=$ac_cv_prog_MSGMERGE
28179 if test -n "$MSGMERGE"; then
28180 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28181 $as_echo "$MSGMERGE" >&6; }
28183 { $as_echo "$as_me:$LINENO: result: no" >&5
28184 $as_echo "no" >&6; }
28188 test -n "$MSGMERGE" && break
28191 for ac_prog in xgettext
28193 # Extract the first word of "$ac_prog", so it can be a program name with args.
28194 set dummy $ac_prog; ac_word=$2
28195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28196 $as_echo_n "checking for $ac_word... " >&6; }
28197 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28198 $as_echo_n "(cached) " >&6
28200 if test -n "$XGETTEXT"; then
28201 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28204 for as_dir in $PATH
28207 test -z "$as_dir" && as_dir=.
28208 for ac_exec_ext in '' $ac_executable_extensions; do
28209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28210 ac_cv_prog_XGETTEXT="$ac_prog"
28211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28220 XGETTEXT=$ac_cv_prog_XGETTEXT
28221 if test -n "$XGETTEXT"; then
28222 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28223 $as_echo "$XGETTEXT" >&6; }
28225 { $as_echo "$as_me:$LINENO: result: no" >&5
28226 $as_echo "no" >&6; }
28230 test -n "$XGETTEXT" && break
28236 # Check for Tcl configuration script tclConfig.sh
28237 if test "$with_tcl" = yes; then
28238 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28240 # Extract the first word of "$ac_prog", so it can be a program name with args.
28241 set dummy $ac_prog; ac_word=$2
28242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28243 $as_echo_n "checking for $ac_word... " >&6; }
28244 if test "${ac_cv_path_TCLSH+set}" = set; then
28245 $as_echo_n "(cached) " >&6
28249 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28253 for as_dir in $PATH
28256 test -z "$as_dir" && as_dir=.
28257 for ac_exec_ext in '' $ac_executable_extensions; do
28258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28259 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28270 TCLSH=$ac_cv_path_TCLSH
28271 if test -n "$TCLSH"; then
28272 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28273 $as_echo "$TCLSH" >&6; }
28275 { $as_echo "$as_me:$LINENO: result: no" >&5
28276 $as_echo "no" >&6; }
28280 test -n "$TCLSH" && break
28283 if test x"$TCLSH" = x""; then
28284 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28285 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28286 { (exit 1); exit 1; }; }
28289 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28290 $as_echo_n "checking for tclConfig.sh... " >&6; }
28291 # Let user override test
28292 if test -z "$TCL_CONFIG_SH"; then
28293 pgac_test_dirs="$with_tclconfig"
28295 set X $pgac_test_dirs; shift
28296 if test $# -eq 0; then
28297 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28298 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28299 { (exit 1); exit 1; }; }
28300 set X `echo 'puts $auto_path' | $TCLSH`; shift
28304 if test -r "$pgac_dir/tclConfig.sh"; then
28305 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28311 if test -z "$TCL_CONFIG_SH"; then
28312 { $as_echo "$as_me:$LINENO: result: no" >&5
28313 $as_echo "no" >&6; }
28314 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28315 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28316 { (exit 1); exit 1; }; }
28318 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28319 $as_echo "$TCL_CONFIG_SH" >&6; }
28325 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28326 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28327 eval TCL_LIBS=\"$TCL_LIBS\"
28328 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28329 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28331 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28332 ac_save_CPPFLAGS=$CPPFLAGS
28333 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28334 if test "${ac_cv_header_tcl_h+set}" = set; then
28335 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28336 $as_echo_n "checking for tcl.h... " >&6; }
28337 if test "${ac_cv_header_tcl_h+set}" = set; then
28338 $as_echo_n "(cached) " >&6
28340 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28341 $as_echo "$ac_cv_header_tcl_h" >&6; }
28343 # Is the header compilable?
28344 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28345 $as_echo_n "checking tcl.h usability... " >&6; }
28346 cat >conftest.$ac_ext <<_ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h. */
28352 $ac_includes_default
28355 rm -f conftest.$ac_objext
28356 if { (ac_try="$ac_compile"
28357 case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28362 $as_echo "$ac_try_echo") >&5
28363 (eval "$ac_compile") 2>conftest.er1
28365 grep -v '^ *+' conftest.er1 >conftest.err
28367 cat conftest.err >&5
28368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } && {
28370 test -z "$ac_c_werror_flag" ||
28371 test ! -s conftest.err
28372 } && test -s conftest.$ac_objext; then
28373 ac_header_compiler=yes
28375 $as_echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28378 ac_header_compiler=no
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28383 $as_echo "$ac_header_compiler" >&6; }
28385 # Is the header present?
28386 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28387 $as_echo_n "checking tcl.h presence... " >&6; }
28388 cat >conftest.$ac_ext <<_ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28396 if { (ac_try="$ac_cpp conftest.$ac_ext"
28397 case "(($ac_try" in
28398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399 *) ac_try_echo=$ac_try;;
28401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28402 $as_echo "$ac_try_echo") >&5
28403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28405 grep -v '^ *+' conftest.er1 >conftest.err
28407 cat conftest.err >&5
28408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } >/dev/null && {
28410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28411 test ! -s conftest.err
28413 ac_header_preproc=yes
28415 $as_echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28418 ac_header_preproc=no
28421 rm -f conftest.err conftest.$ac_ext
28422 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28423 $as_echo "$ac_header_preproc" >&6; }
28425 # So? What about this header?
28426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28428 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28429 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28430 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28431 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28432 ac_header_preproc=yes
28435 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28436 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28437 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28438 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28439 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28440 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28441 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28442 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28443 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28444 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28445 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28446 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28448 ## ---------------------------------------- ##
28449 ## Report this to pgsql-bugs@postgresql.org ##
28450 ## ---------------------------------------- ##
28452 ) | sed "s/^/$as_me: WARNING: /" >&2
28455 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28456 $as_echo_n "checking for tcl.h... " >&6; }
28457 if test "${ac_cv_header_tcl_h+set}" = set; then
28458 $as_echo_n "(cached) " >&6
28460 ac_cv_header_tcl_h=$ac_header_preproc
28462 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28463 $as_echo "$ac_cv_header_tcl_h" >&6; }
28466 if test "x$ac_cv_header_tcl_h" = x""yes; then
28469 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28470 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28471 { (exit 1); exit 1; }; }
28475 CPPFLAGS=$ac_save_CPPFLAGS
28479 # Check for DocBook and tools
28481 for ac_prog in onsgmls nsgmls
28483 # Extract the first word of "$ac_prog", so it can be a program name with args.
28484 set dummy $ac_prog; ac_word=$2
28485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28486 $as_echo_n "checking for $ac_word... " >&6; }
28487 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28488 $as_echo_n "(cached) " >&6
28490 if test -n "$NSGMLS"; then
28491 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28494 for as_dir in $PATH
28497 test -z "$as_dir" && as_dir=.
28498 for ac_exec_ext in '' $ac_executable_extensions; do
28499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28500 ac_cv_prog_NSGMLS="$ac_prog"
28501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28510 NSGMLS=$ac_cv_prog_NSGMLS
28511 if test -n "$NSGMLS"; then
28512 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28513 $as_echo "$NSGMLS" >&6; }
28515 { $as_echo "$as_me:$LINENO: result: no" >&5
28516 $as_echo "no" >&6; }
28520 test -n "$NSGMLS" && break
28523 for ac_prog in openjade jade
28525 # Extract the first word of "$ac_prog", so it can be a program name with args.
28526 set dummy $ac_prog; ac_word=$2
28527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28528 $as_echo_n "checking for $ac_word... " >&6; }
28529 if test "${ac_cv_prog_JADE+set}" = set; then
28530 $as_echo_n "(cached) " >&6
28532 if test -n "$JADE"; then
28533 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28536 for as_dir in $PATH
28539 test -z "$as_dir" && as_dir=.
28540 for ac_exec_ext in '' $ac_executable_extensions; do
28541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28542 ac_cv_prog_JADE="$ac_prog"
28543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28552 JADE=$ac_cv_prog_JADE
28553 if test -n "$JADE"; then
28554 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28555 $as_echo "$JADE" >&6; }
28557 { $as_echo "$as_me:$LINENO: result: no" >&5
28558 $as_echo "no" >&6; }
28562 test -n "$JADE" && break
28566 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28567 $as_echo_n "checking for DocBook V4.2... " >&6; }
28568 if test "${pgac_cv_check_docbook+set}" = set; then
28569 $as_echo_n "(cached) " >&6
28571 cat >conftest.sgml <<EOF
28572 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28574 <title>test</title>
28576 <title>random</title>
28578 <title>testsect</title>
28585 pgac_cv_check_docbook=no
28587 if test -n "$NSGMLS"; then
28588 $NSGMLS -s conftest.sgml 1>&5 2>&1
28589 if test $? -eq 0; then
28590 pgac_cv_check_docbook=yes
28593 rm -f conftest.sgml
28595 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28596 $as_echo "$pgac_cv_check_docbook" >&6; }
28598 have_docbook=$pgac_cv_check_docbook
28601 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28602 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28603 if test "${pgac_cv_path_stylesheets+set}" = set; then
28604 $as_echo_n "(cached) " >&6
28606 if test -n "$DOCBOOKSTYLE"; then
28607 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28609 for pgac_prefix in /usr /usr/local /opt /sw; do
28610 for pgac_infix in share lib; do
28611 for pgac_postfix in \
28612 sgml/stylesheets/nwalsh-modular \
28613 sgml/stylesheets/docbook \
28614 sgml/stylesheets/dsssl/docbook \
28615 sgml/docbook-dsssl \
28616 sgml/docbook/dsssl/modular \
28617 sgml/docbook/stylesheet/dsssl/modular \
28618 sgml/docbook/dsssl-stylesheets \
28619 sgml/dsssl/docbook-dsssl-nwalsh
28621 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28622 if test -r "$pgac_candidate/html/docbook.dsl" \
28623 && test -r "$pgac_candidate/print/docbook.dsl"
28625 pgac_cv_path_stylesheets=$pgac_candidate
28634 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28636 if test -n "$DOCBOOKSTYLE"; then
28637 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28638 $as_echo "$DOCBOOKSTYLE" >&6; }
28640 { $as_echo "$as_me:$LINENO: result: no" >&5
28641 $as_echo "no" >&6; }
28643 if test -n "$DOCBOOKSTYLE"; then
28644 for ac_prog in collateindex.pl
28646 # Extract the first word of "$ac_prog", so it can be a program name with args.
28647 set dummy $ac_prog; ac_word=$2
28648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28649 $as_echo_n "checking for $ac_word... " >&6; }
28650 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28651 $as_echo_n "(cached) " >&6
28653 case $COLLATEINDEX in
28655 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28659 for as_dir in $DOCBOOKSTYLE/bin $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_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28676 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28677 if test -n "$COLLATEINDEX"; then
28678 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28679 $as_echo "$COLLATEINDEX" >&6; }
28681 { $as_echo "$as_me:$LINENO: result: no" >&5
28682 $as_echo "no" >&6; }
28686 test -n "$COLLATEINDEX" && break
28690 for ac_prog in collateindex.pl
28692 # Extract the first word of "$ac_prog", so it can be a program name with args.
28693 set dummy $ac_prog; ac_word=$2
28694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28695 $as_echo_n "checking for $ac_word... " >&6; }
28696 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28697 $as_echo_n "(cached) " >&6
28699 case $COLLATEINDEX in
28701 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28705 for as_dir in $PATH
28708 test -z "$as_dir" && as_dir=.
28709 for ac_exec_ext in '' $ac_executable_extensions; do
28710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28711 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28722 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28723 if test -n "$COLLATEINDEX"; then
28724 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28725 $as_echo "$COLLATEINDEX" >&6; }
28727 { $as_echo "$as_me:$LINENO: result: no" >&5
28728 $as_echo "no" >&6; }
28732 test -n "$COLLATEINDEX" && break
28736 for ac_prog in xsltproc
28738 # Extract the first word of "$ac_prog", so it can be a program name with args.
28739 set dummy $ac_prog; ac_word=$2
28740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28741 $as_echo_n "checking for $ac_word... " >&6; }
28742 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28743 $as_echo_n "(cached) " >&6
28745 if test -n "$XSLTPROC"; then
28746 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28749 for as_dir in $PATH
28752 test -z "$as_dir" && as_dir=.
28753 for ac_exec_ext in '' $ac_executable_extensions; do
28754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28755 ac_cv_prog_XSLTPROC="$ac_prog"
28756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28765 XSLTPROC=$ac_cv_prog_XSLTPROC
28766 if test -n "$XSLTPROC"; then
28767 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28768 $as_echo "$XSLTPROC" >&6; }
28770 { $as_echo "$as_me:$LINENO: result: no" >&5
28771 $as_echo "no" >&6; }
28775 test -n "$XSLTPROC" && break
28778 for ac_prog in osx sgml2xml sx
28780 # Extract the first word of "$ac_prog", so it can be a program name with args.
28781 set dummy $ac_prog; ac_word=$2
28782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28783 $as_echo_n "checking for $ac_word... " >&6; }
28784 if test "${ac_cv_prog_OSX+set}" = set; then
28785 $as_echo_n "(cached) " >&6
28787 if test -n "$OSX"; then
28788 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28791 for as_dir in $PATH
28794 test -z "$as_dir" && as_dir=.
28795 for ac_exec_ext in '' $ac_executable_extensions; do
28796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28797 ac_cv_prog_OSX="$ac_prog"
28798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28807 OSX=$ac_cv_prog_OSX
28808 if test -n "$OSX"; then
28809 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28810 $as_echo "$OSX" >&6; }
28812 { $as_echo "$as_me:$LINENO: result: no" >&5
28813 $as_echo "no" >&6; }
28817 test -n "$OSX" && break
28823 # We have to run the thread test near the end so we have all our symbols
28824 # defined. Cross compiling throws a warning.
28826 if test "$enable_thread_safety" = yes; then
28827 if test "$PORTNAME" != "win32"
28829 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28830 $as_echo_n "checking thread safety of required library functions... " >&6; }
28834 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28835 LIBS="$LIBS $PTHREAD_LIBS"
28836 if test "$cross_compiling" = yes; then
28837 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28838 $as_echo "maybe" >&6; }
28839 { $as_echo "$as_me:$LINENO: WARNING:
28840 *** Skipping thread test program because of cross-compile build.
28841 *** Run the program in src/test/thread on the target machine.
28843 $as_echo "$as_me: WARNING:
28844 *** Skipping thread test program because of cross-compile build.
28845 *** Run the program in src/test/thread on the target machine.
28848 cat >conftest.$ac_ext <<_ACEOF
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h. */
28854 #include "$srcdir/src/test/thread/thread_test.c"
28856 rm -f conftest$ac_exeext
28857 if { (ac_try="$ac_link"
28858 case "(($ac_try" in
28859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860 *) ac_try_echo=$ac_try;;
28862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28863 $as_echo "$ac_try_echo") >&5
28864 (eval "$ac_link") 2>&5
28866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28868 { (case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28873 $as_echo "$ac_try_echo") >&5
28874 (eval "$ac_try") 2>&5
28876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; }; then
28878 { $as_echo "$as_me:$LINENO: result: yes" >&5
28879 $as_echo "yes" >&6; }
28881 $as_echo "$as_me: program exited with status $ac_status" >&5
28882 $as_echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28885 ( exit $ac_status )
28886 { $as_echo "$as_me:$LINENO: result: no" >&5
28887 $as_echo "no" >&6; }
28888 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28889 This platform is not thread-safe. Check the file 'config.log' or compile
28890 and run src/test/thread/thread_test for the exact reason.
28891 Use --disable-thread-safety to disable thread safety." >&5
28892 $as_echo "$as_me: error: thread test program failed
28893 This platform is not thread-safe. Check the file 'config.log' or compile
28894 and run src/test/thread/thread_test for the exact reason.
28895 Use --disable-thread-safety to disable thread safety." >&2;}
28896 { (exit 1); exit 1; }; }
28898 rm -rf conftest.dSYM
28899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28906 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28907 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28911 # If compiler will take -Wl,--as-needed (or various platform-specific
28912 # spellings thereof) then add that to LDFLAGS. This is much easier than
28913 # trying to filter LIBS to the minimum for each executable.
28914 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28915 # libreadline; therefore we postpone testing it until we know what library
28916 # dependencies readline has. The test code will try to link with $LIBS.
28917 if test "$with_readline" = yes; then
28918 link_test_func=readline
28920 link_test_func=exit
28923 if test "$PORTNAME" = "darwin"; then
28924 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
28925 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28926 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
28927 $as_echo_n "(cached) " >&6
28929 pgac_save_LDFLAGS=$LDFLAGS
28930 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28931 if test "$cross_compiling" = yes; then
28932 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
28934 cat >conftest.$ac_ext <<_ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h. */
28940 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28949 rm -f conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28956 $as_echo "$ac_try_echo") >&5
28957 (eval "$ac_link") 2>&5
28959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28961 { (case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28966 $as_echo "$ac_try_echo") >&5
28967 (eval "$ac_try") 2>&5
28969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; }; then
28971 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
28973 $as_echo "$as_me: program exited with status $ac_status" >&5
28974 $as_echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ( exit $ac_status )
28978 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
28980 rm -rf conftest.dSYM
28981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28985 LDFLAGS="$pgac_save_LDFLAGS"
28987 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
28988 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
28989 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
28990 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
28993 elif test "$PORTNAME" = "openbsd"; then
28994 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
28995 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
28996 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
28997 $as_echo_n "(cached) " >&6
28999 pgac_save_LDFLAGS=$LDFLAGS
29000 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29001 if test "$cross_compiling" = yes; then
29002 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29004 cat >conftest.$ac_ext <<_ACEOF
29007 cat confdefs.h >>conftest.$ac_ext
29008 cat >>conftest.$ac_ext <<_ACEOF
29009 /* end confdefs.h. */
29010 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29019 rm -f conftest$ac_exeext
29020 if { (ac_try="$ac_link"
29021 case "(($ac_try" in
29022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023 *) ac_try_echo=$ac_try;;
29025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29026 $as_echo "$ac_try_echo") >&5
29027 (eval "$ac_link") 2>&5
29029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29031 { (case "(($ac_try" in
29032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033 *) ac_try_echo=$ac_try;;
29035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29036 $as_echo "$ac_try_echo") >&5
29037 (eval "$ac_try") 2>&5
29039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040 (exit $ac_status); }; }; then
29041 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29043 $as_echo "$as_me: program exited with status $ac_status" >&5
29044 $as_echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29047 ( exit $ac_status )
29048 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29050 rm -rf conftest.dSYM
29051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29055 LDFLAGS="$pgac_save_LDFLAGS"
29057 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29058 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29059 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29060 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29064 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29065 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29066 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29067 $as_echo_n "(cached) " >&6
29069 pgac_save_LDFLAGS=$LDFLAGS
29070 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29071 if test "$cross_compiling" = yes; then
29072 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29074 cat >conftest.$ac_ext <<_ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h. */
29080 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29089 rm -f conftest$ac_exeext
29090 if { (ac_try="$ac_link"
29091 case "(($ac_try" in
29092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093 *) ac_try_echo=$ac_try;;
29095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29096 $as_echo "$ac_try_echo") >&5
29097 (eval "$ac_link") 2>&5
29099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29101 { (case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29106 $as_echo "$ac_try_echo") >&5
29107 (eval "$ac_try") 2>&5
29109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29113 $as_echo "$as_me: program exited with status $ac_status" >&5
29114 $as_echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29117 ( exit $ac_status )
29118 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29120 rm -rf conftest.dSYM
29121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29125 LDFLAGS="$pgac_save_LDFLAGS"
29127 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29128 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29129 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29130 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29136 # Begin output steps
29138 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29139 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29140 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29141 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29142 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29143 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29145 # Create compiler version string
29146 if test x"$GCC" = x"yes" ; then
29147 cc_string="GCC `${CC} --version | sed q`"
29148 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29149 cc_string=`${CC} -V 2>&1 | sed q`
29155 cat >>confdefs.h <<_ACEOF
29156 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29160 # Supply a numeric version string for use by 3rd party add-ons
29161 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29162 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29164 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29166 cat >>confdefs.h <<_ACEOF
29167 #define PG_VERSION_NUM $PG_VERSION_NUM
29172 # prepare build tree if outside source tree
29173 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29174 # Note 2: /bin/pwd might be better than shell's built-in at getting
29175 # a symlink-free name.
29176 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29180 if test "$no_create" != yes; then
29181 $as_echo_n "preparing build tree... " >&6
29182 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29183 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29184 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29185 $as_echo "$as_me: error: failed" >&2;}
29186 { (exit 1); exit 1; }; }
29187 { $as_echo "$as_me:$LINENO: result: done" >&5
29188 $as_echo "done" >&6; }
29194 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29197 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}"
29200 if test "$PORTNAME" = "win32"; then
29201 ac_config_commands="$ac_config_commands check_win32_symlinks"
29205 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29208 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29211 cat >confcache <<\_ACEOF
29212 # This file is a shell script that caches the results of configure
29213 # tests run on this system so they can be shared between configure
29214 # scripts and configure runs, see configure's option --config-cache.
29215 # It is not useful on other systems. If it contains results you don't
29216 # want to keep, you may remove or edit it.
29218 # config.status only pays attention to the cache file if you give it
29219 # the --recheck option to rerun configure.
29221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29223 # following values.
29227 # The following way of writing the cache mishandles newlines in values,
29228 # but we know of no workaround that is simple, portable, and efficient.
29229 # So, we kill variables containing newlines.
29230 # Ultrix sh set writes to stderr and can't be redirected directly,
29231 # and sets the high bit in the cache file unless we assign to the vars.
29233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29234 eval ac_val=\$$ac_var
29238 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29242 _ | IFS | as_nl) ;; #(
29243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29244 *) $as_unset $ac_var ;;
29250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29251 *${as_nl}ac_space=\ *)
29252 # `set' does not quote correctly, so add quotes (double-quote
29253 # substitution turns \\\\ into \\, and sed turns \\ into \).
29256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29259 # `set' quotes correctly as required by POSIX, so do not add quotes.
29260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29274 if test -w "$cache_file"; then
29275 test "x$cache_file" != "x/dev/null" &&
29276 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29277 $as_echo "$as_me: updating cache $cache_file" >&6;}
29278 cat confcache >$cache_file
29280 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29287 # Let make expand exec_prefix.
29288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29290 DEFS=-DHAVE_CONFIG_H
29294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29295 # 1. Remove the extension, and $U if already installed.
29296 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29297 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29299 # will be set to the directory where LIBOBJS objects are built.
29300 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29301 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29303 LIBOBJS=$ac_libobjs
29305 LTLIBOBJS=$ac_ltlibobjs
29310 : ${CONFIG_STATUS=./config.status}
29312 ac_clean_files_save=$ac_clean_files
29313 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29314 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29316 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29318 # Generated by $as_me.
29319 # Run this file to recreate the current configuration.
29320 # Compiler output produced by configure, useful for debugging
29321 # configure, is in config.log if it exists.
29324 ac_cs_recheck=false
29326 SHELL=\${CONFIG_SHELL-$SHELL}
29329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29330 ## --------------------- ##
29331 ## M4sh Initialization. ##
29332 ## --------------------- ##
29334 # Be more Bourne compatible
29335 DUALCASE=1; export DUALCASE # for MKS sh
29336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29339 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29340 # is contrary to our usage. Disable this feature.
29341 alias -g '${1+"$@"}'='"$@"'
29342 setopt NO_GLOB_SUBST
29344 case `(set -o) 2>/dev/null` in
29345 *posix*) set -o posix ;;
29354 # Avoid depending upon Character Ranges.
29355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29358 as_cr_digits='0123456789'
29359 as_cr_alnum=$as_cr_Letters$as_cr_digits
29364 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29365 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29366 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29368 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29369 as_echo='printf %s\n'
29370 as_echo_n='printf %s'
29372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29373 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29374 as_echo_n='/usr/ucb/echo -n'
29376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29377 as_echo_n_body='eval
29381 expr "X$arg" : "X\\(.*\\)$as_nl";
29382 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29384 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29386 export as_echo_n_body
29387 as_echo_n='sh -c $as_echo_n_body as_echo'
29389 export as_echo_body
29390 as_echo='sh -c $as_echo_body as_echo'
29393 # The user is always right.
29394 if test "${PATH_SEPARATOR+set}" != set; then
29396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29397 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29402 # Support unset when possible.
29403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29411 # We need space, tab and new line, in precisely that order. Quoting is
29412 # there to prevent editors from complaining about space-tab.
29413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29414 # splitting by setting IFS to empty value.)
29417 # Find who we are. Look in the path if we contain no directory separator.
29419 *[\\/]* ) as_myself=$0 ;;
29420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29421 for as_dir in $PATH
29424 test -z "$as_dir" && as_dir=.
29425 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29431 # We did not find ourselves, most probably we were run as `sh COMMAND'
29432 # in which case we are not to be found in the path.
29433 if test "x$as_myself" = x; then
29436 if test ! -f "$as_myself"; then
29437 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29438 { (exit 1); exit 1; }
29441 # Work around bugs in pre-3.0 UWIN ksh.
29442 for as_var in ENV MAIL MAILPATH
29443 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29455 # Required to use basename.
29456 if expr a : '\(a\)' >/dev/null 2>&1 &&
29457 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29464 as_basename=basename
29470 # Name of the executable.
29471 as_me=`$as_basename -- "$0" ||
29472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29473 X"$0" : 'X\(//\)$' \| \
29474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29476 sed '/^.*\/\([^/][^/]*\)\/*$/{
29495 as_lineno_1=$LINENO
29496 as_lineno_2=$LINENO
29497 test "x$as_lineno_1" != "x$as_lineno_2" &&
29498 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29500 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29501 # uniformly replaced by the line number. The first 'sed' inserts a
29502 # line-number line after each line using $LINENO; the second 'sed'
29503 # does the real work. The second script uses 'N' to pair each
29504 # line-number line with the line containing $LINENO, and appends
29505 # trailing '-' during substitution so that $LINENO is not a special
29506 # case at line end.
29507 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29508 # scripts with optimization help from Paolo Bonzini. Blame Lee
29509 # E. McMahon (1931-1989) for sed's syntax. :-)
29521 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29524 ' >$as_me.lineno &&
29525 chmod +x "$as_me.lineno" ||
29526 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29527 { (exit 1); exit 1; }; }
29529 # Don't try to exec as it changes $[0], causing all sort of problems
29530 # (the dirname of $[0] is not the place where we might find the
29531 # original and so on. Autoconf is especially sensitive to this).
29532 . "./$as_me.lineno"
29533 # Exit status is that of the last command.
29538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29544 ECHO_C= ECHO_N= ECHO_T=
29545 case `echo -n x` in
29547 case `echo 'x\c'` in
29548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29554 if expr a : '\(a\)' >/dev/null 2>&1 &&
29555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29561 rm -f conf$$ conf$$.exe conf$$.file
29562 if test -d conf$$.dir; then
29563 rm -f conf$$.dir/conf$$.file
29566 mkdir conf$$.dir 2>/dev/null
29568 if (echo >conf$$.file) 2>/dev/null; then
29569 if ln -s conf$$.file conf$$ 2>/dev/null; then
29571 # ... but there are two gotchas:
29572 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29573 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29574 # In both cases, we have to default to `cp -p'.
29575 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29577 elif ln conf$$.file conf$$ 2>/dev/null; then
29585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29586 rmdir conf$$.dir 2>/dev/null
29588 if mkdir -p . 2>/dev/null; then
29591 test -d ./-p && rmdir ./-p
29595 if test -x / >/dev/null 2>&1; then
29596 as_test_x='test -x'
29598 if ls -dL / >/dev/null 2>&1; then
29605 if test -d "$1"; then
29611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29612 ???[sx]*):;;*)false;;esac;fi
29616 as_executable_p=$as_test_x
29618 # Sed expression to map a string onto a valid CPP name.
29619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29621 # Sed expression to map a string onto a valid variable name.
29622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29627 # Save the log message, to keep $[0] and so on meaningful, and to
29628 # report actual input values of CONFIG_FILES etc. instead of their
29629 # values after options handling.
29631 This file was extended by PostgreSQL $as_me 9.1devel, which was
29632 generated by GNU Autoconf 2.63. Invocation command line was
29634 CONFIG_FILES = $CONFIG_FILES
29635 CONFIG_HEADERS = $CONFIG_HEADERS
29636 CONFIG_LINKS = $CONFIG_LINKS
29637 CONFIG_COMMANDS = $CONFIG_COMMANDS
29640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29645 case $ac_config_files in *"
29646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29649 case $ac_config_headers in *"
29650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29655 # Files that config.status was made for.
29656 config_files="$ac_config_files"
29657 config_headers="$ac_config_headers"
29658 config_links="$ac_config_links"
29659 config_commands="$ac_config_commands"
29663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29665 \`$as_me' instantiates files from templates according to the
29666 current configuration.
29668 Usage: $0 [OPTION]... [FILE]...
29670 -h, --help print this help, then exit
29671 -V, --version print version number and configuration settings, then exit
29672 -q, --quiet, --silent
29673 do not print progress messages
29674 -d, --debug don't remove temporary files
29675 --recheck update $as_me by reconfiguring in the same conditions
29676 --file=FILE[:TEMPLATE]
29677 instantiate the configuration file FILE
29678 --header=FILE[:TEMPLATE]
29679 instantiate the configuration header FILE
29681 Configuration files:
29684 Configuration headers:
29687 Configuration links:
29690 Configuration commands:
29693 Report bugs to <bug-autoconf@gnu.org>."
29696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29698 PostgreSQL config.status 9.1devel
29699 configured by $0, generated by GNU Autoconf 2.63,
29700 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29702 Copyright (C) 2008 Free Software Foundation, Inc.
29703 This config.status script is free software; the Free Software Foundation
29704 gives unlimited permission to copy, distribute and modify it."
29710 test -n "\$AWK" || AWK=awk
29713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29714 # The default lists apply if the user does not specify any file.
29720 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29721 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29732 # Handling of the options.
29733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29735 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29736 $as_echo "$ac_cs_version"; exit ;;
29737 --debug | --debu | --deb | --de | --d | -d )
29739 --file | --fil | --fi | --f )
29742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29744 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29745 ac_need_defaults=false;;
29746 --header | --heade | --head | --hea )
29749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29751 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29752 ac_need_defaults=false;;
29754 # Conflict between --help and --header
29755 { $as_echo "$as_me: error: ambiguous option: $1
29756 Try \`$0 --help' for more information." >&2
29757 { (exit 1); exit 1; }; };;
29758 --help | --hel | -h )
29759 $as_echo "$ac_cs_usage"; exit ;;
29760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29764 # This is an error.
29765 -*) { $as_echo "$as_me: error: unrecognized option: $1
29766 Try \`$0 --help' for more information." >&2
29767 { (exit 1); exit 1; }; } ;;
29769 *) ac_config_targets="$ac_config_targets $1"
29770 ac_need_defaults=false ;;
29776 ac_configure_extra_args=
29778 if $ac_cs_silent; then
29780 ac_configure_extra_args="$ac_configure_extra_args --silent"
29784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29785 if \$ac_cs_recheck; then
29786 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29788 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29789 CONFIG_SHELL='$SHELL'
29790 export CONFIG_SHELL
29795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29800 ## Running $as_me. ##
29806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29811 # Handling of arguments.
29812 for ac_config_target in $ac_config_targets
29814 case $ac_config_target in
29815 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29816 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29817 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29818 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29819 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29820 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29821 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
29822 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29823 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29824 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29825 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29826 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29827 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29829 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29830 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29831 { (exit 1); exit 1; }; };;
29836 # If the user did not use the arguments to specify the items to instantiate,
29837 # then the envvar interface is used. Set only those that are not.
29838 # We use the long form for the default assignment because of an extremely
29839 # bizarre bug on SunOS 4.1.3.
29840 if $ac_need_defaults; then
29841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29843 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29847 # Have a temporary directory for convenience. Make it in the build tree
29848 # simply because there is no reason against having it here, and in addition,
29849 # creating and moving files from /tmp can sometimes cause problems.
29850 # Hook for its removal unless debugging.
29851 # Note that there is a small window in which the directory will not be cleaned:
29852 # after its creation but before its name has been assigned to `$tmp'.
29856 trap 'exit_status=$?
29857 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29859 trap '{ (exit 1); exit 1; }' 1 2 13 15
29861 # Create a (secure) tmp directory for tmp files.
29864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29865 test -n "$tmp" && test -d "$tmp"
29868 tmp=./conf$$-$RANDOM
29869 (umask 077 && mkdir "$tmp")
29872 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29873 { (exit 1); exit 1; }
29876 # Set up the scripts for CONFIG_FILES section.
29877 # No need to generate them if there are no CONFIG_FILES.
29878 # This happens for instance with `./config.status config.h'.
29879 if test -n "$CONFIG_FILES"; then
29883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29887 ac_cs_awk_cr=$ac_cr
29890 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29895 echo "cat >conf$$subs.awk <<_ACEOF" &&
29896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29898 } >conf$$subs.sh ||
29899 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29900 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29901 { (exit 1); exit 1; }; }
29902 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29904 for ac_last_try in false false false false false :; do
29905 . ./conf$$subs.sh ||
29906 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29907 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29908 { (exit 1); exit 1; }; }
29910 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29911 if test $ac_delim_n = $ac_delim_num; then
29913 elif $ac_last_try; then
29914 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29915 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29916 { (exit 1); exit 1; }; }
29918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29921 rm -f conf$$subs.sh
29923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29924 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29928 s/^/S["/; s/!.*/"]=/
29938 s/\(.\{148\}\).*/\1/
29940 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29952 s/\(.\{148\}\).*/\1/
29954 s/["\\]/\\&/g; s/^/"/; s/$/"/
29958 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29963 ' <conf$$subs.awk | sed '
29968 ' >>$CONFIG_STATUS || ac_write_fail=1
29969 rm -f conf$$subs.awk
29970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29972 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29973 for (key in S) S_is_set[key] = 1
29979 nfields = split(line, field, "@")
29981 len = length(field[1])
29982 for (i = 2; i < nfields; i++) {
29984 keylen = length(key)
29985 if (S_is_set[key]) {
29987 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29988 len += length(value) + length(field[++i])
29999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30000 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30001 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30004 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30005 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30006 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30007 { (exit 1); exit 1; }; }
30010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30012 # trailing colons and then remove the whole line if VPATH becomes empty
30013 # (actually we leave an empty line to preserve line numbers).
30014 if test "x$srcdir" = x.; then
30015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30016 s/:*\$(srcdir):*/:/
30017 s/:*\${srcdir}:*/:/
30019 s/^\([^=]*=[ ]*\):*/\1/
30025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30026 fi # test -n "$CONFIG_FILES"
30028 # Set up the scripts for CONFIG_HEADERS section.
30029 # No need to generate them if there are no CONFIG_HEADERS.
30030 # This happens for instance with `./config.status Makefile'.
30031 if test -n "$CONFIG_HEADERS"; then
30032 cat >"$tmp/defines.awk" <<\_ACAWK ||
30036 # Transform confdefs.h into an awk script `defines.awk', embedded as
30037 # here-document in config.status, that substitutes the proper values into
30038 # config.h.in to produce config.h.
30040 # Create a delimiter string that does not exist in confdefs.h, to ease
30041 # handling of long lines.
30043 for ac_last_try in false false :; do
30044 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30045 if test -z "$ac_t"; then
30047 elif $ac_last_try; then
30048 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30049 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30050 { (exit 1); exit 1; }; }
30052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30056 # For the awk script, D is an array of macro values keyed by name,
30057 # likewise P contains macro parameters if any. Preserve backslash
30058 # newline sequences.
30060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30062 s/.\{148\}/&'"$ac_delim"'/g
30065 s/^[ ]*#[ ]*define[ ][ ]*/ /
30072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30079 D["\1"]=" \3\\\\\\n"\\/p
30081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30086 s/.\{148\}/&'"$ac_delim"'/g
30091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30096 ' <confdefs.h | sed '
30097 s/'"$ac_delim"'/"\\\
30098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30101 for (key in D) D_is_set[key] = 1
30104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30106 split(line, arg, " ")
30107 if (arg[1] == "#") {
30111 defundef = substr(arg[1], 2)
30114 split(mac1, mac2, "(") #)
30116 prefix = substr(line, 1, index(line, defundef) - 1)
30117 if (D_is_set[macro]) {
30118 # Preserve the white space surrounding the "#".
30119 print prefix "define", macro P[macro] D[macro]
30122 # Replace #undef with comments. This is necessary, for example,
30123 # in the case of _POSIX_SOURCE, which is predefined and required
30124 # on some systems where configure will not decide to define it.
30125 if (defundef == "undef") {
30126 print "/*", prefix defundef, macro, "*/"
30134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30135 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30136 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30137 { (exit 1); exit 1; }; }
30138 fi # test -n "$CONFIG_HEADERS"
30141 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30146 :[FHLC]) ac_mode=$ac_tag; continue;;
30148 case $ac_mode$ac_tag in
30150 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30151 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30152 { (exit 1); exit 1; }; };;
30153 :[FH]-) ac_tag=-:-;;
30154 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30171 -) ac_f="$tmp/stdin";;
30172 *) # Look for the file first in the build tree, then in the source tree
30173 # (if the path is not absolute). The absolute path cannot be DOS-style,
30174 # because $ac_f cannot contain `:'.
30178 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30180 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30181 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30182 { (exit 1); exit 1; }; };;
30184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30185 ac_file_inputs="$ac_file_inputs '$ac_f'"
30188 # Let's still pretend it is `configure' which instantiates (i.e., don't
30189 # use $as_me), people would be surprised to read:
30190 # /* config.h. Generated by config.status. */
30191 configure_input='Generated from '`
30192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30194 if test x"$ac_file" != x-; then
30195 configure_input="$ac_file. $configure_input"
30196 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30197 $as_echo "$as_me: creating $ac_file" >&6;}
30199 # Neutralize special characters interpreted by sed in replacement strings.
30200 case $configure_input in #(
30201 *\&* | *\|* | *\\* )
30202 ac_sed_conf_input=`$as_echo "$configure_input" |
30203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30204 *) ac_sed_conf_input=$configure_input;;
30208 *:-:* | *:-) cat >"$tmp/stdin" \
30209 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30210 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30211 { (exit 1); exit 1; }; } ;;
30216 ac_dir=`$as_dirname -- "$ac_file" ||
30217 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30218 X"$ac_file" : 'X\(//\)[^/]' \| \
30219 X"$ac_file" : 'X\(//\)$' \| \
30220 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30221 $as_echo X"$ac_file" |
30222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30226 /^X\(\/\/\)[^/].*/{
30241 -*) as_dir=./$as_dir;;
30243 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30248 *) as_qdir=$as_dir;;
30250 as_dirs="'$as_qdir' $as_dirs"
30251 as_dir=`$as_dirname -- "$as_dir" ||
30252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30253 X"$as_dir" : 'X\(//\)[^/]' \| \
30254 X"$as_dir" : 'X\(//\)$' \| \
30255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30256 $as_echo X"$as_dir" |
30257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30261 /^X\(\/\/\)[^/].*/{
30274 test -d "$as_dir" && break
30276 test -z "$as_dirs" || eval "mkdir $as_dirs"
30277 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30278 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30279 { (exit 1); exit 1; }; }; }
30283 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30285 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30286 # A ".." for each directory in $ac_dir_suffix.
30287 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30288 case $ac_top_builddir_sub in
30289 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30290 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30293 ac_abs_top_builddir=$ac_pwd
30294 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30295 # for backward compatibility:
30296 ac_top_builddir=$ac_top_build_prefix
30299 .) # We are building in place.
30301 ac_top_srcdir=$ac_top_builddir_sub
30302 ac_abs_top_srcdir=$ac_pwd ;;
30303 [\\/]* | ?:[\\/]* ) # Absolute name.
30304 ac_srcdir=$srcdir$ac_dir_suffix;
30305 ac_top_srcdir=$srcdir
30306 ac_abs_top_srcdir=$srcdir ;;
30307 *) # Relative name.
30308 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30309 ac_top_srcdir=$ac_top_build_prefix$srcdir
30310 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30312 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30321 ac_MKDIR_P=$MKDIR_P
30323 [\\/$]* | ?:[\\/]* ) ;;
30324 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30329 # If the template does not know about datarootdir, expand it.
30330 # FIXME: This hack should be removed a few years after 2.60.
30331 ac_datarootdir_hack=; ac_datarootdir_seen=
30344 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30345 *datarootdir*) ac_datarootdir_seen=yes;;
30346 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30347 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30348 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30351 ac_datarootdir_hack='
30352 s&@datadir@&$datadir&g
30353 s&@docdir@&$docdir&g
30354 s&@infodir@&$infodir&g
30355 s&@localedir@&$localedir&g
30356 s&@mandir@&$mandir&g
30357 s&\\\${datarootdir}&$datarootdir&g' ;;
30361 # Neutralize VPATH when `$srcdir' = `.'.
30362 # Shell code in configure.ac might set extrasub.
30363 # FIXME: do we really want to maintain this feature?
30364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30365 ac_sed_extra="$ac_vpsub
30368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30371 s|@configure_input@|$ac_sed_conf_input|;t t
30372 s&@top_builddir@&$ac_top_builddir_sub&;t t
30373 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30374 s&@srcdir@&$ac_srcdir&;t t
30375 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30376 s&@top_srcdir@&$ac_top_srcdir&;t t
30377 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30378 s&@builddir@&$ac_builddir&;t t
30379 s&@abs_builddir@&$ac_abs_builddir&;t t
30380 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30382 $ac_datarootdir_hack
30384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30385 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30386 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30387 { (exit 1); exit 1; }; }
30389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30390 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30392 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30393 which seems to be undefined. Please make sure it is defined." >&5
30394 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30395 which seems to be undefined. Please make sure it is defined." >&2;}
30399 -) cat "$tmp/out" && rm -f "$tmp/out";;
30400 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30402 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30403 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30404 { (exit 1); exit 1; }; }
30410 if test x"$ac_file" != x-; then
30412 $as_echo "/* $configure_input */" \
30413 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30414 } >"$tmp/config.h" \
30415 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30416 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30417 { (exit 1); exit 1; }; }
30418 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30419 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30420 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30423 mv "$tmp/config.h" "$ac_file" \
30424 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30425 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30426 { (exit 1); exit 1; }; }
30429 $as_echo "/* $configure_input */" \
30430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30431 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30432 $as_echo "$as_me: error: could not create -" >&2;}
30433 { (exit 1); exit 1; }; }
30441 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30444 # Prefer the file from the source tree if names are identical.
30445 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30446 ac_source=$srcdir/$ac_source
30449 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30450 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30452 if test ! -r "$ac_source"; then
30453 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30454 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30455 { (exit 1); exit 1; }; }
30459 # Try a relative symlink, then a hard link, then a copy.
30461 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30462 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30464 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30465 ln "$ac_source" "$ac_file" 2>/dev/null ||
30466 cp -p "$ac_source" "$ac_file" ||
30467 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30468 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30469 { (exit 1); exit 1; }; }
30472 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30473 $as_echo "$as_me: executing $ac_file commands" >&6;}
30478 case $ac_file$ac_mode in
30479 "check_win32_symlinks":C)
30480 # Links sometimes fail undetected on Mingw -
30481 # so here we detect it and warn the user
30482 for FILE in $CONFIG_LINKS
30484 # test -e works for symlinks in the MinGW console
30485 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30486 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30489 "src/include/pg_config.h":H)
30490 # Update timestamp for pg_config.h (see Makefile.global)
30491 echo >src/include/stamp-h
30493 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30499 { (exit 0); exit 0; }
30501 chmod +x $CONFIG_STATUS
30502 ac_clean_files=$ac_clean_files_save
30504 test $ac_write_fail = 0 ||
30505 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30506 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30507 { (exit 1); exit 1; }; }
30510 # configure is writing to config.log, and then calls config.status.
30511 # config.status does its own redirection, appending to config.log.
30512 # Unfortunately, on DOS this fails, as config.log is still kept open
30513 # by configure, so config.status won't be able to write to it; its
30514 # output is simply discarded. So we exec the FD to /dev/null,
30515 # effectively closing config.log, so it can be properly (re)opened and
30516 # appended to by config.status. When coming back to configure, we
30517 # need to make the FD available again.
30518 if test "$no_create" != yes; then
30520 ac_config_status_args=
30521 test "$silent" = yes &&
30522 ac_config_status_args="$ac_config_status_args --quiet"
30524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30527 # would make configure fail if this is the last instruction.
30528 $ac_cs_success || { (exit 1); exit 1; }
30530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30531 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}