2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 9.4beta1.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1996-2014, PostgreSQL Global Development Group
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (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 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 *v*x* | *x*v* ) as_opts=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir=.
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
242 if test "x$CONFIG_SHELL" != x; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 *v*x* | *x*v* ) as_opts=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: pgsql-bugs@postgresql.org about your system, including
273 $0: any error possibly output before this message. Then
274 $0: install a modern shell, or manually run the script
275 $0: under such a shell if you do have one."
281 SHELL=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir=./$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 as_val=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status=$1; test $as_status -eq 0 && as_status=1
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534 elif ln conf$$.file conf$$ 2>/dev/null; then
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
548 test -d ./-p && rmdir ./-p
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" || exec 7<&0 </dev/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix=/usr/local
575 ac_config_libobj_dir=.
582 # Identity of this package.
583 PACKAGE_NAME='PostgreSQL'
584 PACKAGE_TARNAME='postgresql'
585 PACKAGE_VERSION='9.4beta1'
586 PACKAGE_STRING='PostgreSQL 9.4beta1'
587 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
590 ac_unique_file="src/backend/access/common/heaptuple.c"
591 ac_default_prefix=/usr/local/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars='LTLIBOBJS
663 python_additional_libs
781 program_transform_name
794 enable_option_checking
800 enable_integer_datetimes
829 with_libedit_preferred
841 ac_precious_vars='build_alias
855 # Initialize some variables set by options.
857 ac_init_version=false
858 ac_unrecognized_opts=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name=s,x,x,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1162 -site=* | --site=* | --sit=*)
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval with_$ac_useropt=no ;;
1221 # Obsolete; use --with-x.
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1289 # Be sure to have absolute directory names.
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures PostgreSQL 9.4beta1 to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of PostgreSQL 9.4beta1:";;
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --disable-integer-datetimes
1467 disable 64-bit integer date/time support
1468 --enable-nls[=LANGUAGES]
1469 enable Native Language Support
1470 --disable-rpath do not embed shared library search path in
1472 --disable-spinlocks do not use spinlocks
1473 --enable-debug build with debugging symbols (-g)
1474 --enable-profiling build with profiling enabled
1475 --enable-coverage build with coverage testing instrumentation
1476 --enable-dtrace build with DTrace support
1477 --enable-depend turn on automatic dependency tracking
1478 --enable-cassert enable assertion checks (for debugging)
1479 --disable-thread-safety disable thread-safety in client libraries
1480 --disable-largefile omit support for large files
1481 --disable-float4-byval disable float4 passed by value
1482 --disable-float8-byval disable float8 passed by value
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-extra-version=STRING
1488 append STRING to version
1489 --with-template=NAME override operating system template
1490 --with-includes=DIRS look for additional header files in DIRS
1491 --with-libraries=DIRS look for additional libraries in DIRS
1492 --with-libs=DIRS alternative spelling of --with-libraries
1493 --with-pgport=PORTNUM set default port number [5432]
1494 --with-blocksize=BLOCKSIZE
1495 set table block size in kB [8]
1496 --with-segsize=SEGSIZE set table segment size in GB [1]
1497 --with-wal-blocksize=BLOCKSIZE
1498 set WAL block size in kB [8]
1499 --with-wal-segsize=SEGSIZE
1500 set WAL segment size in MB [16]
1501 --with-CC=CMD set compiler (deprecated)
1502 --with-tcl build Tcl modules (PL/Tcl)
1503 --with-tclconfig=DIR tclConfig.sh is in DIR
1504 --with-perl build Perl modules (PL/Perl)
1505 --with-python build Python modules (PL/Python)
1506 --with-gssapi build with GSSAPI support
1507 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1509 --with-pam build with PAM support
1510 --with-ldap build with LDAP support
1511 --with-bonjour build with Bonjour support
1512 --with-openssl build with OpenSSL support
1513 --with-selinux build with SELinux support
1514 --without-readline do not use GNU Readline nor BSD Libedit for editing
1515 --with-libedit-preferred
1516 prefer BSD Libedit over GNU Readline
1517 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1518 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1519 --with-libxml build with XML support
1520 --with-libxslt use XSLT support when building contrib/xml2
1521 --with-system-tzdata=DIR
1522 use system time zone data in DIR
1523 --without-zlib do not use Zlib
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 LDFLAGS_EX extra linker flags for linking executables only
1536 LDFLAGS_SL extra linker flags for linking shared libraries only
1538 location of DocBook stylesheets
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to <pgsql-bugs@postgresql.org>.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 PostgreSQL configure 9.4beta1
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1613 Copyright (c) 1996-2014, PostgreSQL Global Development Group
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1658 } # ac_fn_c_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1766 # include <limits.h>
1768 # include <assert.h>
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1795 if ac_fn_c_try_link "$LINENO"; then :
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_func
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ---------------------------------------- ##
1881 ## Report this to pgsql-bugs@postgresql.org ##
1882 ## ---------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_try_run LINENO
1902 # ----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904 # that executables *can* be run.
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=$ac_status
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_header_compile
1974 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1975 # ----------------------------------------------------
1976 # Tries to find if the field MEMBER exists in type AGGR, after including
1977 # INCLUDES, setting cache variable VAR accordingly.
1978 ac_fn_c_check_member ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1982 $as_echo_n "checking for $2.$3... " >&6; }
1983 if eval \${$4+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2009 if (sizeof ac_aggr.$3)
2015 if ac_fn_c_try_compile "$LINENO"; then :
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_check_member
2031 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2032 # -------------------------------------------
2033 # Tests whether TYPE exists after having included INCLUDES, setting cache
2034 # variable VAR accordingly.
2035 ac_fn_c_check_type ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2069 if ac_fn_c_try_compile "$LINENO"; then :
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_type
2085 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2086 # --------------------------------------------
2087 # Tries to find the compile-time value of EXPR in a program that includes
2088 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2090 ac_fn_c_compute_int ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 if test "$cross_compiling" = yes; then
2094 # Depending upon the size, compute the lo and hi bounds.
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) >= 0)];
2103 return test_array [0];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 return test_array [0];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid; break
2129 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2130 if test $ac_lo -le $ac_mid; then
2134 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) < 0)];
2147 return test_array [0];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_lo=$ac_mid; break
2173 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2174 if test $ac_mid -le $ac_hi; then
2178 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 # Binary search between lo and hi bounds.
2189 while test "x$ac_lo" != "x$ac_hi"; do
2190 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2208 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2220 static long int longval () { return $2; }
2221 static unsigned long int ulongval () { return $2; }
2228 FILE *f = fopen ("conftest.val", "w");
2233 long int i = longval ();
2236 fprintf (f, "%ld", i);
2240 unsigned long int i = ulongval ();
2243 fprintf (f, "%lu", i);
2245 /* Do not output a trailing newline, as this causes \r\n confusion
2246 on some platforms. */
2247 return ferror (f) || fclose (f) != 0;
2253 if ac_fn_c_try_run "$LINENO"; then :
2254 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2259 conftest.$ac_objext conftest.beam conftest.$ac_ext
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 as_fn_set_status $ac_retval
2266 } # ac_fn_c_compute_int
2268 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2269 # ---------------------------------------------
2270 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2272 ac_fn_c_check_decl ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 as_decl_name=`echo $2|sed 's/ *(.*//'`
2276 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2278 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2279 if eval \${$3+:} false; then :
2280 $as_echo_n "(cached) " >&6
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 #ifndef $as_decl_name
2290 (void) $as_decl_use;
2292 (void) $as_decl_name;
2300 if ac_fn_c_try_compile "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_decl
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2317 It was created by PostgreSQL $as_me 9.4beta1, which was
2318 generated by GNU Autoconf 2.69. Invocation command line was
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2340 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2343 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2344 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2345 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 $as_echo "PATH: $as_dir"
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2378 ac_must_keep_next=false
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2389 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 -* ) ac_must_keep_next=true ;;
2410 as_fn_append ac_configure_args " '$ac_arg'"
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Save into config.log some information that might help in debugging.
2428 $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -n "$ac_subst_files"; then
2479 $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 $as_echo "$ac_var='\''$ac_val'\''"
2494 if test -s confdefs.h; then
2495 $as_echo "## ----------- ##
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2518 $as_echo "/* confdefs.h */" > confdefs.h
2520 # Predefined preprocessor variables.
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2551 if test -n "$CONFIG_SITE"; then
2552 # We do not want a PATH search for config.site.
2553 case $CONFIG_SITE in #((
2554 -*) ac_site_file1=./$CONFIG_SITE;;
2555 */*) ac_site_file1=$CONFIG_SITE;;
2556 *) ac_site_file1=./$CONFIG_SITE;;
2558 elif test "x$prefix" != xNONE; then
2559 ac_site_file1=$prefix/share/config.site
2560 ac_site_file2=$prefix/etc/config.site
2562 ac_site_file1=$ac_default_prefix/share/config.site
2563 ac_site_file2=$ac_default_prefix/etc/config.site
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 test "x$ac_site_file" = xNONE && continue
2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 sed 's/^/| /' "$ac_site_file" >&5
2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2580 if test -r "$cache_file"; then
2581 # Some versions of bash will fail to source /dev/null (special files
2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2587 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588 *) . "./$cache_file";;
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2597 # Check that the precious variables saved in the cache have kept the same
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602 eval ac_new_set=\$ac_env_${ac_var}_set
2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604 eval ac_new_val=\$ac_env_${ac_var}_value
2605 case $ac_old_set,$ac_new_set in
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2616 if test "x$ac_old_val" != "x$ac_new_val"; then
2617 # differences in whitespace do not lead to failure.
2618 ac_old_val_w=`echo x $ac_old_val`
2619 ac_new_val_w=`echo x $ac_new_val`
2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623 ac_cache_corrupted=:
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627 eval $ac_var=\$ac_old_val
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2630 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2632 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2635 # Pass precious variables to config.status.
2636 if test "$ac_new_set" = set; then
2638 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 *) ac_arg=$ac_var=$ac_new_val ;;
2641 case " $ac_configure_args " in
2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2643 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 if $ac_cache_corrupted; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2652 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 for ac_dir in config "$srcdir"/config; do
2671 if test -f "$ac_dir/install-sh"; then
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2675 elif test -f "$ac_dir/install.sh"; then
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2679 elif test -f "$ac_dir/shtool"; then
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2685 if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 configure_args=$ac_configure_args
2702 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2705 cat >>confdefs.h <<_ACEOF
2706 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2713 # Check whether --with-extra-version was given.
2714 if test "${with_extra_version+set}" = set; then :
2715 withval=$with_extra_version;
2718 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2721 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2724 PG_VERSION="$PACKAGE_VERSION$withval"
2729 PG_VERSION="$PACKAGE_VERSION"
2734 cat >>confdefs.h <<_ACEOF
2735 #define PG_VERSION "$PG_VERSION"
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS=$IFS; IFS='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2797 ac_save_IFS=$IFS; IFS='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2813 $as_echo_n "checking which template to use... " >&6; }
2818 # Check whether --with-template was given.
2819 if test "${with_template+set}" = set; then :
2820 withval=$with_template;
2823 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2826 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2831 list) echo; ls "$srcdir/src/template"; exit;;
2832 *) if test -f "$srcdir/src/template/$with_template" ; then
2835 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2844 # --with-template not given
2847 aix*) template=aix ;;
2848 cygwin*) template=cygwin ;;
2849 darwin*) template=darwin ;;
2850 dragonfly*) template=netbsd ;;
2851 freebsd*) template=freebsd ;;
2852 hpux*) template=hpux ;;
2853 linux*|gnu*|k*bsd*-gnu)
2855 mingw*) template=win32 ;;
2856 netbsd*) template=netbsd ;;
2857 openbsd*) template=openbsd ;;
2858 osf*) template=osf ;;
2859 sco*) template=sco ;;
2860 solaris*) template=solaris ;;
2861 sysv5*) template=unixware ;;
2864 if test x"$template" = x"" ; then
2866 *******************************************************************
2867 PostgreSQL has apparently not been ported to your platform yet.
2868 To try a manual configuration, look into the src/template directory
2869 for a similar platform and use the '--with-template=' option.
2871 Please also contact <pgsql-bugs@postgresql.org> to see about
2872 rectifying this. Include the above 'checking host system type...'
2874 *******************************************************************
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2884 $as_echo "$template" >&6; }
2889 # Initialize default assumption that we do not need separate assembly code
2890 # for TAS (test-and-set). This can be overridden by the template file
2891 # when it's executed.
2898 ## Command line options
2902 # Add non-standard directories to the include path
2907 # Check whether --with-includes was given.
2908 if test "${with_includes+set}" = set; then :
2909 withval=$with_includes;
2912 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2915 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2928 # Add non-standard directories to the library search path
2933 # Check whether --with-libraries was given.
2934 if test "${with_libraries+set}" = set; then :
2935 withval=$with_libraries;
2938 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2941 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2944 LIBRARY_DIRS=$withval
2955 # Check whether --with-libs was given.
2956 if test "${with_libs+set}" = set; then :
2960 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2963 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2966 LIBRARY_DIRS=$withval
2976 # 64-bit integer date/time storage: enabled by default.
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2979 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2982 # Check whether --enable-integer-datetimes was given.
2983 if test "${enable_integer_datetimes+set}" = set; then :
2984 enableval=$enable_integer_datetimes;
2988 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
2995 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3000 enable_integer_datetimes=yes
3002 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3008 $as_echo "$enable_integer_datetimes" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3015 $as_echo_n "checking whether NLS is wanted... " >&6; }
3018 # Check whether --enable-nls was given.
3019 if test "${enable_nls+set}" = set; then :
3020 enableval=$enable_nls;
3030 WANTED_LANGUAGES=$enableval
3040 if test "$enable_nls" = yes; then
3042 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3047 $as_echo "$enable_nls" >&6; }
3052 # Default port number (--with-pgport), default 5432
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3055 $as_echo_n "checking for default port number... " >&6; }
3059 # Check whether --with-pgport was given.
3060 if test "${with_pgport+set}" = set; then :
3061 withval=$with_pgport;
3064 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3067 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3070 default_port=$withval
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3080 $as_echo "$default_port" >&6; }
3081 # Need both of these because some places want an integer and some a string
3083 cat >>confdefs.h <<_ACEOF
3084 #define DEF_PGPORT ${default_port}
3088 cat >>confdefs.h <<_ACEOF
3089 #define DEF_PGPORT_STR "${default_port}"
3095 # '-rpath'-like feature can be disabled
3099 # Check whether --enable-rpath was given.
3100 if test "${enable_rpath+set}" = set; then :
3101 enableval=$enable_rpath;
3110 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3127 # Check whether --enable-spinlocks was given.
3128 if test "${enable_spinlocks+set}" = set; then :
3129 enableval=$enable_spinlocks;
3138 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3143 enable_spinlocks=yes
3150 # --enable-debug adds -g to compiler flags
3154 # Check whether --enable-debug was given.
3155 if test "${enable_debug+set}" = set; then :
3156 enableval=$enable_debug;
3165 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3178 # --enable-profiling enables gcc profiling
3182 # Check whether --enable-profiling was given.
3183 if test "${enable_profiling+set}" = set; then :
3184 enableval=$enable_profiling;
3193 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3205 # --enable-coverage enables generation of code coverage metrics with gcov
3209 # Check whether --enable-coverage was given.
3210 if test "${enable_coverage+set}" = set; then :
3211 enableval=$enable_coverage;
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_GCOV+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$GCOV"; then
3224 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_GCOV="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 GCOV=$ac_cv_prog_GCOV
3244 if test -n "$GCOV"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3246 $as_echo "$GCOV" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3253 test -n "$GCOV" && break
3256 if test -z "$GCOV"; then
3257 as_fn_error $? "gcov not found" "$LINENO" 5
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_LCOV+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$LCOV"; then
3269 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_LCOV="$ac_prog"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 LCOV=$ac_cv_prog_LCOV
3289 if test -n "$LCOV"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3291 $as_echo "$LCOV" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$LCOV" && break
3301 if test -z "$LCOV"; then
3302 as_fn_error $? "lcov not found" "$LINENO" 5
3304 for ac_prog in genhtml
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_GENHTML+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$GENHTML"; then
3314 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_GENHTML="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 GENHTML=$ac_cv_prog_GENHTML
3334 if test -n "$GENHTML"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3336 $as_echo "$GENHTML" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3343 test -n "$GENHTML" && break
3346 if test -z "$GENHTML"; then
3347 as_fn_error $? "genhtml not found" "$LINENO" 5
3354 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3371 # Check whether --enable-dtrace was given.
3372 if test "${enable_dtrace+set}" = set; then :
3373 enableval=$enable_dtrace;
3376 for ac_prog in dtrace
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_DTRACE+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$DTRACE"; then
3386 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_DTRACE="$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 DTRACE=$ac_cv_prog_DTRACE
3406 if test -n "$DTRACE"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3408 $as_echo "$DTRACE" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3415 test -n "$DTRACE" && break
3418 if test -z "$DTRACE"; then
3419 as_fn_error $? "dtrace not found" "$LINENO" 5
3427 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3443 $as_echo_n "checking for block size... " >&6; }
3447 # Check whether --with-blocksize was given.
3448 if test "${with_blocksize+set}" = set; then :
3449 withval=$with_blocksize;
3452 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3455 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3467 case ${blocksize} in
3474 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3477 $as_echo "${blocksize}kB" >&6; }
3480 cat >>confdefs.h <<_ACEOF
3481 #define BLCKSZ ${BLCKSZ}
3486 # Relation segment size
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3489 $as_echo_n "checking for segment size... " >&6; }
3493 # Check whether --with-segsize was given.
3494 if test "${with_segsize+set}" = set; then :
3495 withval=$with_segsize;
3498 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3501 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3513 # this expression is set up to avoid unnecessary integer overflow
3514 # blocksize is already guaranteed to be a factor of 1024
3515 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3516 test $? -eq 0 || exit 1
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3518 $as_echo "${segsize}GB" >&6; }
3521 cat >>confdefs.h <<_ACEOF
3522 #define RELSEG_SIZE ${RELSEG_SIZE}
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3530 $as_echo_n "checking for WAL block size... " >&6; }
3534 # Check whether --with-wal-blocksize was given.
3535 if test "${with_wal_blocksize+set}" = set; then :
3536 withval=$with_wal_blocksize;
3539 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3542 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3545 wal_blocksize=$withval
3554 case ${wal_blocksize} in
3555 1) XLOG_BLCKSZ=1024;;
3556 2) XLOG_BLCKSZ=2048;;
3557 4) XLOG_BLCKSZ=4096;;
3558 8) XLOG_BLCKSZ=8192;;
3559 16) XLOG_BLCKSZ=16384;;
3560 32) XLOG_BLCKSZ=32768;;
3561 64) XLOG_BLCKSZ=65536;;
3562 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3565 $as_echo "${wal_blocksize}kB" >&6; }
3568 cat >>confdefs.h <<_ACEOF
3569 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3577 $as_echo_n "checking for WAL segment size... " >&6; }
3581 # Check whether --with-wal-segsize was given.
3582 if test "${with_wal_segsize+set}" = set; then :
3583 withval=$with_wal_segsize;
3586 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3589 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3592 wal_segsize=$withval
3601 case ${wal_segsize} in
3609 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3612 $as_echo "${wal_segsize}MB" >&6; }
3615 cat >>confdefs.h <<_ACEOF
3616 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3624 # For historical reasons you can also use --with-CC to specify the C compiler
3625 # to use, although the standard way to do this is to set the CC environment
3630 # Check whether --with-CC was given.
3631 if test "${with_CC+set}" = set; then :
3635 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3638 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3650 aix) pgac_cc_list="gcc xlc";;
3651 *) pgac_cc_list="gcc cc";;
3655 ac_cpp='$CPP $CPPFLAGS'
3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659 if test -n "$ac_tool_prefix"; then
3660 for ac_prog in $pgac_cc_list
3662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if ${ac_cv_prog_CC+:} false; then :
3667 $as_echo_n "(cached) " >&6
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 if test -n "$CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 $as_echo "$CC" >&6; }
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3699 test -n "$CC" && break
3702 if test -z "$CC"; then
3704 for ac_prog in $pgac_cc_list
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 if test -n "$ac_ct_CC"; then
3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_ac_ct_CC="$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 $as_echo "$ac_ct_CC" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$ac_ct_CC" && break
3746 if test "x$ac_ct_CC" = x; then
3749 case $cross_compiling:$ac_tool_warned in
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error $? "no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details" "$LINENO" 5; }
3765 # Provide some information about the compiler.
3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3769 for ac_option in --version -v -V -qversion; do
3770 { { ac_try="$ac_compiler $ac_option >&5"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3779 if test -s conftest.err; then
3781 ... rest of stderr output deleted ...
3782 10q' conftest.err >conftest.er1
3783 cat conftest.er1 >&5
3785 rm -f conftest.er1 conftest.err
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3801 ac_clean_files_save=$ac_clean_files
3802 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3803 # Try to create an executable without -o first, disregard a.out.
3804 # It will help us diagnose broken compilers, and finding out an intuition
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3807 $as_echo_n "checking whether the C compiler works... " >&6; }
3808 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3810 # The possible output files:
3811 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3814 for ac_file in $ac_files
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3823 if { { ac_try="$ac_link_default"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_link_default") 2>&5
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; then :
3834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3837 # so that the user can short-circuit this test for compilers unknown to
3839 for ac_file in $ac_files ''
3841 test -f "$ac_file" || continue
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3846 # We found the default executable, but exeext='' is most
3850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854 # We set ac_cv_exeext here because the later test for it is not
3855 # safe: cross compilers may not add the suffix if given an `-o'
3856 # argument, so we may need to know it at that point already.
3857 # Even if this section looks crufty: it has the advantage of
3864 test "$ac_cv_exeext" = no && ac_cv_exeext=
3869 if test -z "$ac_file"; then :
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error 77 "C compiler cannot create executables
3878 See \`config.log' for more details" "$LINENO" 5; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881 $as_echo "yes" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3884 $as_echo_n "checking for C compiler default output file name... " >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3886 $as_echo "$ac_file" >&6; }
3887 ac_exeext=$ac_cv_exeext
3889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3890 ac_clean_files=$ac_clean_files_save
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3892 $as_echo_n "checking for suffix of executables... " >&6; }
3893 if { { ac_try="$ac_link"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link") 2>&5
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3906 # work properly (i.e., refer to `conftest.exe'), while it won't with
3908 for ac_file in conftest.exe conftest conftest.*; do
3909 test -f "$ac_file" || continue
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3921 See \`config.log' for more details" "$LINENO" 5; }
3923 rm -f conftest conftest$ac_cv_exeext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3925 $as_echo "$ac_cv_exeext" >&6; }
3927 rm -f conftest.$ac_ext
3928 EXEEXT=$ac_cv_exeext
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3936 FILE *f = fopen ("conftest.out", "w");
3937 return ferror (f) || fclose (f) != 0;
3943 ac_clean_files="$ac_clean_files conftest.out"
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 if test "$cross_compiling" != yes; then
3949 { { ac_try="$ac_link"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 if { ac_try='./conftest$ac_cv_exeext'
3961 { { case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_try") 2>&5
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; }; then
3973 if test "$cross_compiling" = maybe; then
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot run C compiled programs.
3979 If you meant to cross compile, use \`--host'.
3980 See \`config.log' for more details" "$LINENO" 5; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3985 $as_echo "$cross_compiling" >&6; }
3987 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3988 ac_clean_files=$ac_clean_files_save
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if ${ac_cv_objext+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details" "$LINENO" 5; }
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if ${ac_cv_c_compiler_gnu+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if ${ac_cv_prog_cc_g+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4149 if test "$GCC" = yes; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if ${ac_cv_prog_cc_c89+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_cv_prog_cc_c89=no
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4181 s = g (p, va_arg (v,int));
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 CC="$ac_save_CC $ac_arg"
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_c89=$ac_arg
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 rm -f conftest.$ac_ext
4229 case "x$ac_cv_prog_cc_c89" in
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4253 # but has idiosyncrasies of its own. We assume icc will define
4254 # __INTEL_COMPILER regardless of CFLAGS.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4262 #ifndef __INTEL_COMPILER
4269 if ac_fn_c_try_compile "$LINENO"; then :
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 # Check if it's Sun Studio compiler. We assume that
4277 # __SUNPRO_C will be defined for Sun Studio compilers
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4291 if ac_fn_c_try_compile "$LINENO"; then :
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 . "$srcdir/src/template/$template" || exit
4307 # CFLAGS are selected so:
4308 # If the user specifies something in the environment, that is used.
4309 # else: If the template file set something, that is used.
4310 # else: If coverage was enabled, don't set anything.
4311 # else: If the compiler is GCC, then we use -O2.
4312 # else: If the compiler is something else, then we use -O, unless debugging.
4314 if test "$ac_env_CFLAGS_set" = set; then
4315 CFLAGS=$ac_env_CFLAGS_value
4316 elif test "${CFLAGS+set}" = set; then
4317 : # (keep what template set)
4318 elif test "$enable_coverage" = yes; then
4319 : # no optimization by default
4320 elif test "$GCC" = yes; then
4323 # if the user selected debug mode, don't use -O
4324 if test "$enable_debug" != yes; then
4329 # set CFLAGS_VECTOR from the environment, if available
4330 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4331 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4334 # Some versions of GCC support some additional useful warning flags.
4335 # Check whether they are supported, and add them to CFLAGS if so.
4336 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4337 # but has its own. Also check other compiler-specific flags here.
4339 if test "$GCC" = yes -a "$ICC" = no; then
4340 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4341 # These work in some but not all gcc versions
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4343 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4344 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 pgac_save_CFLAGS=$CFLAGS
4348 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4349 ac_save_c_werror_flag=$ac_c_werror_flag
4350 ac_c_werror_flag=yes
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4365 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 ac_c_werror_flag=$ac_save_c_werror_flag
4369 CFLAGS="$pgac_save_CFLAGS"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4372 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4373 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4374 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4378 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4379 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 pgac_save_CFLAGS=$CFLAGS
4383 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4384 ac_save_c_werror_flag=$ac_c_werror_flag
4385 ac_c_werror_flag=yes
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4400 pgac_cv_prog_cc_cflags__Wendif_labels=no
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="$pgac_save_CFLAGS"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4407 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4408 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4409 CFLAGS="$CFLAGS -Wendif-labels"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4413 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4414 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 pgac_save_CFLAGS=$CFLAGS
4418 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4419 ac_save_c_werror_flag=$ac_c_werror_flag
4420 ac_c_werror_flag=yes
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4432 if ac_fn_c_try_compile "$LINENO"; then :
4433 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4435 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4439 CFLAGS="$pgac_save_CFLAGS"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4442 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4443 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4444 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4447 # This was included in -Wall/-Wformat in older GCC versions
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4449 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4450 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4451 $as_echo_n "(cached) " >&6
4453 pgac_save_CFLAGS=$CFLAGS
4454 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4455 ac_save_c_werror_flag=$ac_c_werror_flag
4456 ac_c_werror_flag=yes
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 pgac_cv_prog_cc_cflags__Wformat_security=yes
4471 pgac_cv_prog_cc_cflags__Wformat_security=no
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 ac_c_werror_flag=$ac_save_c_werror_flag
4475 CFLAGS="$pgac_save_CFLAGS"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4478 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4479 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4480 CFLAGS="$CFLAGS -Wformat-security"
4483 # Disable strict-aliasing rules; needed for gcc 3.3+
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4485 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4486 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 pgac_save_CFLAGS=$CFLAGS
4490 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4491 ac_save_c_werror_flag=$ac_c_werror_flag
4492 ac_c_werror_flag=yes
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4507 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_c_werror_flag=$ac_save_c_werror_flag
4511 CFLAGS="$pgac_save_CFLAGS"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4514 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4515 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4516 CFLAGS="$CFLAGS -fno-strict-aliasing"
4519 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4521 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4522 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 pgac_save_CFLAGS=$CFLAGS
4526 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4540 if ac_fn_c_try_compile "$LINENO"; then :
4541 pgac_cv_prog_cc_cflags__fwrapv=yes
4543 pgac_cv_prog_cc_cflags__fwrapv=no
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_c_werror_flag=$ac_save_c_werror_flag
4547 CFLAGS="$pgac_save_CFLAGS"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4550 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4551 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4552 CFLAGS="$CFLAGS -fwrapv"
4555 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4557 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4558 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4559 $as_echo_n "(cached) " >&6
4561 pgac_save_CFLAGS=$CFLAGS
4562 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4563 ac_save_c_werror_flag=$ac_c_werror_flag
4564 ac_c_werror_flag=yes
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4576 if ac_fn_c_try_compile "$LINENO"; then :
4577 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4579 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 ac_c_werror_flag=$ac_save_c_werror_flag
4583 CFLAGS="$pgac_save_CFLAGS"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4586 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4587 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4588 CFLAGS="$CFLAGS -fexcess-precision=standard"
4591 # Optimization flags for specific files that benefit from vectorization
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4593 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4594 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 pgac_save_CFLAGS=$CFLAGS
4598 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4599 ac_save_c_werror_flag=$ac_c_werror_flag
4600 ac_c_werror_flag=yes
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 pgac_cv_prog_cc_cflags__funroll_loops=yes
4615 pgac_cv_prog_cc_cflags__funroll_loops=no
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_c_werror_flag=$ac_save_c_werror_flag
4619 CFLAGS="$pgac_save_CFLAGS"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4622 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4623 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4624 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4628 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4629 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 pgac_save_CFLAGS=$CFLAGS
4633 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4634 ac_save_c_werror_flag=$ac_c_werror_flag
4635 ac_c_werror_flag=yes
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4650 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 ac_c_werror_flag=$ac_save_c_werror_flag
4654 CFLAGS="$pgac_save_CFLAGS"
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4657 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4658 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4659 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4662 elif test "$ICC" = yes; then
4663 # Intel's compiler has a bug/misoptimization in checking for
4664 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4666 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4667 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 pgac_save_CFLAGS=$CFLAGS
4671 CFLAGS="$pgac_save_CFLAGS -mp1"
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 pgac_cv_prog_cc_cflags__mp1=yes
4688 pgac_cv_prog_cc_cflags__mp1=no
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692 CFLAGS="$pgac_save_CFLAGS"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4695 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4696 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4697 CFLAGS="$CFLAGS -mp1"
4700 # Make sure strict aliasing is off (though this is said to be the default)
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4702 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4703 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 pgac_save_CFLAGS=$CFLAGS
4707 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4724 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4728 CFLAGS="$pgac_save_CFLAGS"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4731 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4732 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4733 CFLAGS="$CFLAGS -fno-strict-aliasing"
4736 elif test "$PORTNAME" = "aix"; then
4737 # AIX's xlc has to have strict aliasing turned off too
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4739 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4740 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4741 $as_echo_n "(cached) " >&6
4743 pgac_save_CFLAGS=$CFLAGS
4744 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4745 ac_save_c_werror_flag=$ac_c_werror_flag
4746 ac_c_werror_flag=yes
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 pgac_cv_prog_cc_cflags__qnoansialias=yes
4761 pgac_cv_prog_cc_cflags__qnoansialias=no
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_c_werror_flag=$ac_save_c_werror_flag
4765 CFLAGS="$pgac_save_CFLAGS"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4768 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4769 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4770 CFLAGS="$CFLAGS -qnoansialias"
4773 elif test "$PORTNAME" = "hpux"; then
4774 # On some versions of HP-UX, libm functions do not set errno by default.
4775 # Fix that by using +Olibmerrno if the compiler recognizes it.
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4777 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4778 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 pgac_save_CFLAGS=$CFLAGS
4782 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4783 ac_save_c_werror_flag=$ac_c_werror_flag
4784 ac_c_werror_flag=yes
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4799 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_c_werror_flag=$ac_save_c_werror_flag
4803 CFLAGS="$pgac_save_CFLAGS"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4806 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4807 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4808 CFLAGS="$CFLAGS +Olibmerrno"
4813 CFLAGS_VECTOR=$CFLAGS_VECTOR
4816 # supply -g if --enable-debug
4817 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4821 # enable code coverage if --enable-coverage
4822 if test "$enable_coverage" = yes; then
4823 if test "$GCC" = yes; then
4824 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4826 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4830 # enable profiling if --enable-profiling
4831 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4832 if test "$GCC" = yes; then
4834 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4836 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4838 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4842 # We already have this in Makefile.win32, but configure needs it too
4843 if test "$PORTNAME" = "win32"; then
4844 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4847 # Check if the compiler still works with the template settings
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
4849 $as_echo_n "checking whether the C compiler still works... " >&6; }
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_c_try_link "$LINENO"; then :
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4863 $as_echo "yes" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4867 as_fn_error $? "cannot proceed" "$LINENO" 5
4869 rm -f core conftest.err conftest.$ac_objext \
4870 conftest$ac_exeext conftest.$ac_ext
4872 # Defend against gcc -ffast-math
4873 if test "$GCC" = yes; then
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4880 #ifdef __FAST_MATH__
4887 if ac_fn_c_try_compile "$LINENO"; then :
4890 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4902 # On Suns, sometimes $CPP names a directory.
4903 if test -n "$CPP" && test -d "$CPP"; then
4906 if test -z "$CPP"; then
4907 if ${ac_cv_prog_CPP+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 # Double quotes because CPP needs to be expanded
4911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4914 for ac_c_preproc_warn_flag in '' yes
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4925 # include <limits.h>
4927 # include <assert.h>
4931 if ac_fn_c_try_cpp "$LINENO"; then :
4934 # Broken: fails on valid input.
4937 rm -f conftest.err conftest.i conftest.$ac_ext
4939 # OK, works on sane cases. Now check whether nonexistent headers
4940 # can be detected and how.
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 #include <ac_nonexistent.h>
4945 if ac_fn_c_try_cpp "$LINENO"; then :
4946 # Broken: success on invalid input.
4949 # Passes both tests.
4953 rm -f conftest.err conftest.i conftest.$ac_ext
4956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4957 rm -f conftest.i conftest.err conftest.$ac_ext
4958 if $ac_preproc_ok; then :
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4971 $as_echo "$CPP" >&6; }
4973 for ac_c_preproc_warn_flag in '' yes
4975 # Use a header file that comes with gcc, so configuring glibc
4976 # with a fresh cross-compiler works.
4977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 # <limits.h> exists even on freestanding compilers.
4979 # On the NeXT, cc -E runs the code through the compiler's parser,
4980 # not just through cpp. "Syntax error" is here to catch this case.
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4984 # include <limits.h>
4986 # include <assert.h>
4990 if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: fails on valid input.
4996 rm -f conftest.err conftest.i conftest.$ac_ext
4998 # OK, works on sane cases. Now check whether nonexistent headers
4999 # can be detected and how.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <ac_nonexistent.h>
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5005 # Broken: success on invalid input.
5008 # Passes both tests.
5012 rm -f conftest.err conftest.i conftest.$ac_ext
5015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016 rm -f conftest.i conftest.err conftest.$ac_ext
5017 if $ac_preproc_ok; then :
5020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5023 See \`config.log' for more details" "$LINENO" 5; }
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 # Set up TAS assembly code if needed; the template file has now had its
5037 # chance to request this.
5039 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5042 if test "$need_tas" = yes ; then
5051 # Automatic dependency tracking
5055 # Check whether --enable-depend was given.
5056 if test "${enable_depend+set}" = set; then :
5057 enableval=$enable_depend;
5066 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5080 # Enable assert checks
5084 # Check whether --enable-cassert was given.
5085 if test "${enable_cassert+set}" = set; then :
5086 enableval=$enable_cassert;
5090 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5097 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5110 # Include directories
5113 IFS="${IFS}${PATH_SEPARATOR}"
5114 # SRCH_INC comes from the template file
5115 for dir in $with_includes $SRCH_INC; do
5116 if test -d "$dir"; then
5117 INCLUDES="$INCLUDES -I$dir"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5120 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5128 # Library directories
5131 IFS="${IFS}${PATH_SEPARATOR}"
5132 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5133 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5134 if test -d "$dir"; then
5135 LIBDIRS="$LIBDIRS -L$dir"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5138 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5144 # Enable thread-safe client libraries
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5147 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5150 # Check whether --enable-thread-safety was given.
5151 if test "${enable_thread_safety+set}" = set; then :
5152 enableval=$enable_thread_safety;
5161 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5166 enable_thread_safety=yes
5171 if test "$enable_thread_safety" = yes; then
5173 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5177 $as_echo "$enable_thread_safety" >&6; }
5181 # Optionally build Tcl modules (PL/Tcl)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5184 $as_echo_n "checking whether to build with Tcl... " >&6; }
5188 # Check whether --with-tcl was given.
5189 if test "${with_tcl+set}" = set; then :
5199 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5210 $as_echo "$with_tcl" >&6; }
5213 # We see if the path to the Tcl/Tk configuration scripts is specified.
5214 # This will override the use of tclsh to find the paths to search.
5219 # Check whether --with-tclconfig was given.
5220 if test "${with_tclconfig+set}" = set; then :
5221 withval=$with_tclconfig;
5224 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5227 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5239 # Optionally build Perl modules (PL/Perl)
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5242 $as_echo_n "checking whether to build Perl modules... " >&6; }
5246 # Check whether --with-perl was given.
5247 if test "${with_perl+set}" = set; then :
5257 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5268 $as_echo "$with_perl" >&6; }
5272 # Optionally build Python modules (PL/Python)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5275 $as_echo_n "checking whether to build Python modules... " >&6; }
5279 # Check whether --with-python was given.
5280 if test "${with_python+set}" = set; then :
5281 withval=$with_python;
5290 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5301 $as_echo "$with_python" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5308 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5312 # Check whether --with-gssapi was given.
5313 if test "${with_gssapi+set}" = set; then :
5314 withval=$with_gssapi;
5319 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5321 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5328 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5339 $as_echo "$with_gssapi" >&6; }
5346 # Kerberos configuration parameters
5351 # Check whether --with-krb-srvnam was given.
5352 if test "${with_krb_srvnam+set}" = set; then :
5353 withval=$with_krb_srvnam;
5356 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5359 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5367 with_krb_srvnam="postgres"
5372 cat >>confdefs.h <<_ACEOF
5373 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5382 $as_echo_n "checking whether to build with PAM support... " >&6; }
5386 # Check whether --with-pam was given.
5387 if test "${with_pam+set}" = set; then :
5392 $as_echo "#define USE_PAM 1" >>confdefs.h
5399 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5410 $as_echo "$with_pam" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5417 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5421 # Check whether --with-ldap was given.
5422 if test "${with_ldap+set}" = set; then :
5427 $as_echo "#define USE_LDAP 1" >>confdefs.h
5434 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5445 $as_echo "$with_ldap" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5452 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5456 # Check whether --with-bonjour was given.
5457 if test "${with_bonjour+set}" = set; then :
5458 withval=$with_bonjour;
5462 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5469 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5480 $as_echo "$with_bonjour" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5487 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5491 # Check whether --with-openssl was given.
5492 if test "${with_openssl+set}" = set; then :
5493 withval=$with_openssl;
5497 $as_echo "#define USE_SSL 1" >>confdefs.h
5504 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5515 $as_echo "$with_openssl" >&6; }
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5522 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5526 # Check whether --with-selinux was given.
5527 if test "${with_selinux+set}" = set; then :
5528 withval=$with_selinux;
5537 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5549 $as_echo "$with_selinux" >&6; }
5557 # Check whether --with-readline was given.
5558 if test "${with_readline+set}" = set; then :
5559 withval=$with_readline;
5568 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5578 # readline on MinGW has problems with backslashes in psql and other bugs.
5579 # This is particularly a problem with non-US code pages.
5580 # Therefore disable its use until we understand the cause. 2004-07-20
5581 if test "$PORTNAME" = "win32"; then
5582 if test "$with_readline" = yes; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5584 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5596 # Check whether --with-libedit-preferred was given.
5597 if test "${with_libedit_preferred+set}" = set; then :
5598 withval=$with_libedit_preferred;
5607 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5612 with_libedit_preferred=no
5622 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5623 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5624 # UUID library. More than one of these might be present on a given platform,
5625 # so we make the user say which one she wants.
5630 # Check whether --with-uuid was given.
5631 if test "${with_uuid+set}" = set; then :
5635 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5638 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5648 if test x"$with_uuid" = x"" ; then
5654 # Check whether --with-ossp-uuid was given.
5655 if test "${with_ossp_uuid+set}" = set; then :
5656 withval=$with_ossp_uuid;
5665 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5675 if test "$with_ossp_uuid" = yes ; then
5679 if test "$with_uuid" = bsd ; then
5681 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5683 UUID_EXTRA_OBJS="md5.o sha1.o"
5684 elif test "$with_uuid" = e2fs ; then
5686 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5688 UUID_EXTRA_OBJS="md5.o sha1.o"
5689 elif test "$with_uuid" = ossp ; then
5691 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5694 elif test "$with_uuid" = no ; then
5697 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5709 # Check whether --with-libxml was given.
5710 if test "${with_libxml+set}" = set; then :
5711 withval=$with_libxml;
5715 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5722 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5733 if test "$with_libxml" = yes ; then
5734 for ac_prog in xml2-config
5736 # Extract the first word of "$ac_prog", so it can be a program name with args.
5737 set dummy $ac_prog; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5741 $as_echo_n "(cached) " >&6
5743 if test -n "$XML2_CONFIG"; then
5744 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_XML2_CONFIG="$ac_prog"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5764 if test -n "$XML2_CONFIG"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5766 $as_echo "$XML2_CONFIG" >&6; }
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5773 test -n "$XML2_CONFIG" && break
5776 if test -n "$XML2_CONFIG"; then
5777 for pgac_option in `$XML2_CONFIG --cflags`; do
5778 case $pgac_option in
5779 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5782 for pgac_option in `$XML2_CONFIG --libs`; do
5783 case $pgac_option in
5784 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5798 # Check whether --with-libxslt was given.
5799 if test "${with_libxslt+set}" = set; then :
5800 withval=$with_libxslt;
5804 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5811 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5831 # Check whether --with-system-tzdata was given.
5832 if test "${with_system_tzdata+set}" = set; then :
5833 withval=$with_system_tzdata;
5836 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5839 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5857 # Check whether --with-zlib was given.
5858 if test "${with_zlib+set}" = set; then :
5868 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
5884 # Assume system is ELF if it predefines __ELF__ as 1,
5885 # otherwise believe host_os based default.
5887 freebsd1*|freebsd2*) elf=no;;
5888 freebsd3*|freebsd4*) elf=yes;;
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5893 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5894 if ${ac_cv_path_GREP+:} false; then :
5895 $as_echo_n "(cached) " >&6
5897 if test -z "$GREP"; then
5898 ac_path_GREP_found=false
5899 # Loop through the user's path and test for each of PROGNAME-LIST
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5904 test -z "$as_dir" && as_dir=.
5905 for ac_prog in grep ggrep; do
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5908 as_fn_executable_p "$ac_path_GREP" || continue
5909 # Check for GNU ac_path_GREP and select it if it is found.
5910 # Check for GNU $ac_path_GREP
5911 case `"$ac_path_GREP" --version 2>&1` in
5913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5916 $as_echo_n 0123456789 >"conftest.in"
5919 cat "conftest.in" "conftest.in" >"conftest.tmp"
5920 mv "conftest.tmp" "conftest.in"
5921 cp "conftest.in" "conftest.nl"
5922 $as_echo 'GREP' >> "conftest.nl"
5923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5925 as_fn_arith $ac_count + 1 && ac_count=$as_val
5926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5927 # Best one so far, save it but keep looking for a better one
5928 ac_cv_path_GREP="$ac_path_GREP"
5929 ac_path_GREP_max=$ac_count
5931 # 10*(2^10) chars as input seems more than enough
5932 test $ac_count -gt 10 && break
5934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5937 $ac_path_GREP_found && break 3
5942 if test -z "$ac_cv_path_GREP"; then
5943 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5946 ac_cv_path_GREP=$GREP
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5951 $as_echo "$ac_cv_path_GREP" >&6; }
5952 GREP="$ac_cv_path_GREP"
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5956 $as_echo_n "checking for egrep... " >&6; }
5957 if ${ac_cv_path_EGREP+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5961 then ac_cv_path_EGREP="$GREP -E"
5963 if test -z "$EGREP"; then
5964 ac_path_EGREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5970 test -z "$as_dir" && as_dir=.
5971 for ac_prog in egrep; do
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5974 as_fn_executable_p "$ac_path_EGREP" || continue
5975 # Check for GNU ac_path_EGREP and select it if it is found.
5976 # Check for GNU $ac_path_EGREP
5977 case `"$ac_path_EGREP" --version 2>&1` in
5979 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5982 $as_echo_n 0123456789 >"conftest.in"
5985 cat "conftest.in" "conftest.in" >"conftest.tmp"
5986 mv "conftest.tmp" "conftest.in"
5987 cp "conftest.in" "conftest.nl"
5988 $as_echo 'EGREP' >> "conftest.nl"
5989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5991 as_fn_arith $ac_count + 1 && ac_count=$as_val
5992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5993 # Best one so far, save it but keep looking for a better one
5994 ac_cv_path_EGREP="$ac_path_EGREP"
5995 ac_path_EGREP_max=$ac_count
5997 # 10*(2^10) chars as input seems more than enough
5998 test $ac_count -gt 10 && break
6000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6003 $ac_path_EGREP_found && break 3
6008 if test -z "$ac_cv_path_EGREP"; then
6009 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6012 ac_cv_path_EGREP=$EGREP
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6018 $as_echo "$ac_cv_path_EGREP" >&6; }
6019 EGREP="$ac_cv_path_EGREP"
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6030 $EGREP "yes" >/dev/null 2>&1; then :
6033 if test "X$elf" = "Xyes" ; then
6047 CPPFLAGS="$CPPFLAGS $INCLUDES"
6048 LDFLAGS="$LDFLAGS $LIBDIRS"
6054 # Check whether --with-gnu-ld was given.
6055 if test "${with_gnu_ld+set}" = set; then :
6056 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6062 if test "$GCC" = yes; then
6063 # Check if gcc -print-prog-name=ld gives a path.
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6065 $as_echo_n "checking for ld used by GCC... " >&6; }
6068 # gcc leaves a trailing carriage return which upsets mingw
6069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6074 # Accept absolute paths.
6075 [\\/]* | [A-Za-z]:[\\/]*)
6076 re_direlt='/[^/][^/]*/\.\./'
6077 # Canonicalize the path of ld
6078 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6079 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6080 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6082 test -z "$LD" && LD="$ac_prog"
6085 # If it fails, then pretend we aren't using GCC.
6089 # If it is relative, then search for the first ld in PATH.
6093 elif test "$with_gnu_ld" = yes; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6095 $as_echo_n "checking for GNU ld... " >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6098 $as_echo_n "checking for non-GNU ld... " >&6; }
6100 if ${ac_cv_path_LD+:} false; then :
6101 $as_echo_n "(cached) " >&6
6103 if test -z "$LD"; then
6104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6105 for ac_dir in $PATH; do
6106 test -z "$ac_dir" && ac_dir=.
6107 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6108 ac_cv_path_LD="$ac_dir/$ac_prog"
6109 # Check to see if the program is GNU ld. I'd rather use --version,
6110 # but apparently some GNU ld's only accept -v.
6111 # Break only if it was the GNU/non-GNU ld that we prefer.
6112 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6113 test "$with_gnu_ld" != no && break
6115 test "$with_gnu_ld" != yes && break
6121 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6126 if test -n "$LD"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6128 $as_echo "$LD" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6133 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6135 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6136 if ${ac_cv_prog_gnu_ld+:} false; then :
6137 $as_echo_n "(cached) " >&6
6139 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6140 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6141 ac_cv_prog_gnu_ld=yes
6143 ac_cv_prog_gnu_ld=no
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6147 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6148 with_gnu_ld=$ac_cv_prog_gnu_ld
6153 case $host_os in sysv5*)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6155 $as_echo_n "checking whether ld -R works... " >&6; }
6156 if ${pgac_cv_prog_ld_R+:} false; then :
6157 $as_echo_n "(cached) " >&6
6160 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6172 if ac_fn_c_try_link "$LINENO"; then :
6173 pgac_cv_prog_ld_R=yes
6175 pgac_cv_prog_ld_R=no
6177 rm -f core conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179 LDFLAGS=$pgac_save_LDFLAGS
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6183 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6184 ld_R_works=$pgac_cv_prog_ld_R
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_prog_RANLIB+:} false; then :
6193 $as_echo_n "(cached) " >&6
6195 if test -n "$RANLIB"; then
6196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 RANLIB=$ac_cv_prog_RANLIB
6216 if test -n "$RANLIB"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6218 $as_echo "$RANLIB" >&6; }
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6226 if test -z "$ac_cv_prog_RANLIB"; then
6227 ac_ct_RANLIB=$RANLIB
6228 # Extract the first word of "ranlib", so it can be a program name with args.
6229 set dummy ranlib; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6233 $as_echo_n "(cached) " >&6
6235 if test -n "$ac_ct_RANLIB"; then
6236 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_ac_ct_RANLIB="ranlib"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6256 if test -n "$ac_ct_RANLIB"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6258 $as_echo "$ac_ct_RANLIB" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6264 if test "x$ac_ct_RANLIB" = x; then
6267 case $cross_compiling:$ac_tool_warned in
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271 ac_tool_warned=yes ;;
6273 RANLIB=$ac_ct_RANLIB
6276 RANLIB="$ac_cv_prog_RANLIB"
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6282 set dummy ${ac_tool_prefix}strip; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_STRIP+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$STRIP"; then
6289 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 STRIP=$ac_cv_prog_STRIP
6309 if test -n "$STRIP"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6311 $as_echo "$STRIP" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6319 if test -z "$ac_cv_prog_STRIP"; then
6321 # Extract the first word of "strip", so it can be a program name with args.
6322 set dummy strip; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6326 $as_echo_n "(cached) " >&6
6328 if test -n "$ac_ct_STRIP"; then
6329 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_STRIP="strip"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6349 if test -n "$ac_ct_STRIP"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6351 $as_echo "$ac_ct_STRIP" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6357 if test "x$ac_ct_STRIP" = x; then
6360 case $cross_compiling:$ac_tool_warned in
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6364 ac_tool_warned=yes ;;
6369 STRIP="$ac_cv_prog_STRIP"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6374 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6375 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6376 STRIP_STATIC_LIB="$STRIP -x"
6377 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6379 $as_echo "yes" >&6; }
6384 STRIP_STATIC_LIB=$STRIP
6385 STRIP_SHARED_LIB=$STRIP
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6387 $as_echo "yes" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}ar; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_AR+:} false; then :
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$AR"; then
6409 ac_cv_prog_AR="$AR" # Let the user override the test.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_AR="${ac_tool_prefix}ar"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 if test -n "$AR"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6431 $as_echo "$AR" >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6439 if test -z "$ac_cv_prog_AR"; then
6441 # Extract the first word of "ar", so it can be a program name with args.
6442 set dummy ar; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$ac_ct_AR"; then
6449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_ac_ct_AR="ar"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6469 if test -n "$ac_ct_AR"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6471 $as_echo "$ac_ct_AR" >&6; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6477 if test "x$ac_ct_AR" = x; then
6480 case $cross_compiling:$ac_tool_warned in
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6492 if test "$PORTNAME" = "win32"; then
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_DLLTOOL+:} false; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$DLLTOOL"; then
6502 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 DLLTOOL=$ac_cv_prog_DLLTOOL
6522 if test -n "$DLLTOOL"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6524 $as_echo "$DLLTOOL" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6532 if test -z "$ac_cv_prog_DLLTOOL"; then
6533 ac_ct_DLLTOOL=$DLLTOOL
6534 # Extract the first word of "dlltool", so it can be a program name with args.
6535 set dummy dlltool; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$ac_ct_DLLTOOL"; then
6542 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6562 if test -n "$ac_ct_DLLTOOL"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6564 $as_echo "$ac_ct_DLLTOOL" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6570 if test "x$ac_ct_DLLTOOL" = x; then
6573 case $cross_compiling:$ac_tool_warned in
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6579 DLLTOOL=$ac_ct_DLLTOOL
6582 DLLTOOL="$ac_cv_prog_DLLTOOL"
6585 if test -n "$ac_tool_prefix"; then
6586 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6587 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_DLLWRAP+:} false; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$DLLWRAP"; then
6594 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 DLLWRAP=$ac_cv_prog_DLLWRAP
6614 if test -n "$DLLWRAP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6616 $as_echo "$DLLWRAP" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6624 if test -z "$ac_cv_prog_DLLWRAP"; then
6625 ac_ct_DLLWRAP=$DLLWRAP
6626 # Extract the first word of "dllwrap", so it can be a program name with args.
6627 set dummy dllwrap; ac_word=$2
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6631 $as_echo_n "(cached) " >&6
6633 if test -n "$ac_ct_DLLWRAP"; then
6634 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6654 if test -n "$ac_ct_DLLWRAP"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6656 $as_echo "$ac_ct_DLLWRAP" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6662 if test "x$ac_ct_DLLWRAP" = x; then
6665 case $cross_compiling:$ac_tool_warned in
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6671 DLLWRAP=$ac_ct_DLLWRAP
6674 DLLWRAP="$ac_cv_prog_DLLWRAP"
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}windres; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_WINDRES+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 if test -n "$WINDRES"; then
6686 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 WINDRES=$ac_cv_prog_WINDRES
6706 if test -n "$WINDRES"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6708 $as_echo "$WINDRES" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6716 if test -z "$ac_cv_prog_WINDRES"; then
6717 ac_ct_WINDRES=$WINDRES
6718 # Extract the first word of "windres", so it can be a program name with args.
6719 set dummy windres; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6723 $as_echo_n "(cached) " >&6
6725 if test -n "$ac_ct_WINDRES"; then
6726 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_ac_ct_WINDRES="windres"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6746 if test -n "$ac_ct_WINDRES"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6748 $as_echo "$ac_ct_WINDRES" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6754 if test "x$ac_ct_WINDRES" = x; then
6757 case $cross_compiling:$ac_tool_warned in
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6763 WINDRES=$ac_ct_WINDRES
6766 WINDRES="$ac_cv_prog_WINDRES"
6771 # Find a good install program. We prefer a C program (faster),
6772 # so one script is as good as another. But avoid the broken or
6773 # incompatible versions:
6774 # SysV /etc/install, /usr/sbin/install
6775 # SunOS /usr/etc/install
6776 # IRIX /sbin/install
6778 # AmigaOS /C/install, which installs bootblocks on floppy discs
6779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6782 # OS/2's system install, which has a completely different semantic
6783 # ./install, which can be erroneously created by make from ./install.sh.
6784 # Reject install programs that cannot install multiple files.
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6786 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6787 if test -z "$INSTALL"; then
6788 if ${ac_cv_path_install+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 test -z "$as_dir" && as_dir=.
6796 # Account for people who put trailing slashes in PATH elements.
6797 case $as_dir/ in #((
6798 ./ | .// | /[cC]/* | \
6799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6800 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6803 # OSF1 and SCO ODT 3.0 have their own names for install.
6804 # Don't use installbsd from OSF since it installs stuff as root
6806 for ac_prog in ginstall scoinst install; do
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6809 if test $ac_prog = install &&
6810 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6811 # AIX install. It has an incompatible calling convention.
6813 elif test $ac_prog = install &&
6814 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6815 # program-specific install script used by HP pwplus--don't use.
6818 rm -rf conftest.one conftest.two conftest.dir
6819 echo one > conftest.one
6820 echo two > conftest.two
6822 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6823 test -s conftest.one && test -s conftest.two &&
6824 test -s conftest.dir/conftest.one &&
6825 test -s conftest.dir/conftest.two
6827 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6840 rm -rf conftest.one conftest.two conftest.dir
6843 if test "${ac_cv_path_install+set}" = set; then
6844 INSTALL=$ac_cv_path_install
6846 # As a last resort, use the slow shell script. Don't cache a
6847 # value for INSTALL within a source directory, because that will
6848 # break other packages using the cache if that directory is
6849 # removed, or if the value is a relative name.
6850 INSTALL=$ac_install_sh
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6854 $as_echo "$INSTALL" >&6; }
6856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6857 # It thinks the first close brace ends the variable substitution.
6858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6864 # When Autoconf chooses install-sh as install program it tries to generate
6865 # a relative path to it in each makefile where it subsitutes it. This clashes
6866 # with our Makefile.global concept. This workaround helps.
6868 *install-sh*) install_bin='';;
6869 *) install_bin=$INSTALL;;
6873 # Extract the first word of "tar", so it can be a program name with args.
6874 set dummy tar; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_path_TAR+:} false; then :
6878 $as_echo_n "(cached) " >&6
6882 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 if test -n "$TAR"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6906 $as_echo "$TAR" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6914 $as_echo_n "checking whether ln -s works... " >&6; }
6916 if test "$LN_S" = "ln -s"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6918 $as_echo "yes" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6921 $as_echo "no, using $LN_S" >&6; }
6924 for ac_prog in gawk mawk nawk awk
6926 # Extract the first word of "$ac_prog", so it can be a program name with args.
6927 set dummy $ac_prog; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_AWK+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 if test -n "$AWK"; then
6934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_AWK="$ac_prog"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 if test -n "$AWK"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6956 $as_echo "$AWK" >&6; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6963 test -n "$AWK" && break
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6967 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6968 if test -z "$MKDIR_P"; then
6969 if ${ac_cv_path_mkdir+:} false; then :
6970 $as_echo_n "(cached) " >&6
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6976 test -z "$as_dir" && as_dir=.
6977 for ac_prog in mkdir gmkdir; do
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6980 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6981 'mkdir (GNU coreutils) '* | \
6982 'mkdir (coreutils) '* | \
6983 'mkdir (fileutils) '4.1*)
6984 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6994 test -d ./--version && rmdir ./--version
6995 if test "${ac_cv_path_mkdir+set}" = set; then
6996 MKDIR_P="$ac_cv_path_mkdir -p"
6998 # As a last resort, use the slow shell script. Don't cache a
6999 # value for MKDIR_P within a source directory, because that will
7000 # break other packages using the cache if that directory is
7001 # removed, or if the value is a relative name.
7002 MKDIR_P="$ac_install_sh -d"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7006 $as_echo "$MKDIR_P" >&6; }
7008 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7009 # a relative path to it in each makefile where it subsitutes it. This clashes
7010 # with our Makefile.global concept. This workaround helps.
7012 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7015 # Let the user override the search
7016 if test -z "$BISON"; then
7017 for ac_prog in bison
7019 # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_path_BISON+:} false; then :
7024 $as_echo_n "(cached) " >&6
7028 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 BISON=$ac_cv_path_BISON
7050 if test -n "$BISON"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7052 $as_echo "$BISON" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7059 test -n "$BISON" && break
7064 if test "$BISON"; then
7065 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7067 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7068 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7071 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7072 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7073 $as_echo "$as_me: WARNING:
7074 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7075 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7080 if test -z "$BISON"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7082 *** Without Bison you will not be able to build PostgreSQL from Git nor
7083 *** change any of the parser definition files. You can obtain Bison from
7084 *** a GNU mirror site. (If you are using the official distribution of
7085 *** PostgreSQL then you do not need to worry about this, because the Bison
7086 *** output is pre-generated.)" >&5
7087 $as_echo "$as_me: WARNING:
7088 *** Without Bison you will not be able to build PostgreSQL from Git nor
7089 *** change any of the parser definition files. You can obtain Bison from
7090 *** a GNU mirror site. (If you are using the official distribution of
7091 *** PostgreSQL then you do not need to worry about this, because the Bison
7092 *** output is pre-generated.)" >&2;}
7094 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7098 $as_echo_n "checking for flex... " >&6; }
7099 if ${pgac_cv_path_flex+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 # Let the user override the test
7103 if test -n "$FLEX"; then
7104 pgac_cv_path_flex=$FLEX
7108 for pgac_dir in $PATH; do
7110 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7113 for pgac_prog in flex lex; do
7114 pgac_candidate="$pgac_dir/$pgac_prog"
7115 if test -f "$pgac_candidate" \
7116 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7118 echo '%%' > conftest.l
7119 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7120 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7121 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7123 pgac_cv_path_flex=$pgac_candidate
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7127 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7128 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7129 $as_echo "$as_me: WARNING:
7130 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7131 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7137 rm -f conftest.l lex.yy.c
7138 : ${pgac_cv_path_flex=no}
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7143 $as_echo "$pgac_cv_path_flex" >&6; }
7144 if test x"$pgac_cv_path_flex" = x"no"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7146 *** Without Flex you will not be able to build PostgreSQL from Git nor
7147 *** change any of the scanner definition files. You can obtain Flex from
7148 *** a GNU mirror site. (If you are using the official distribution of
7149 *** PostgreSQL then you do not need to worry about this because the Flex
7150 *** output is pre-generated.)" >&5
7151 $as_echo "$as_me: WARNING:
7152 *** Without Flex you will not be able to build PostgreSQL from Git nor
7153 *** change any of the scanner definition files. You can obtain Flex from
7154 *** a GNU mirror site. (If you are using the official distribution of
7155 *** PostgreSQL then you do not need to worry about this because the Flex
7156 *** output is pre-generated.)" >&2;}
7160 FLEX=$pgac_cv_path_flex
7161 pgac_flex_version=`$FLEX --version 2>/dev/null`
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7163 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7170 # Let the user override the search
7171 if test -z "$PERL"; then
7172 # Extract the first word of "perl", so it can be a program name with args.
7173 set dummy perl; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_path_PERL+:} false; then :
7177 $as_echo_n "(cached) " >&6
7181 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 PERL=$ac_cv_path_PERL
7203 if test -n "$PERL"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7205 $as_echo "$PERL" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7214 if test "$PERL"; then
7215 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'`
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7217 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7218 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7219 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7222 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7223 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7224 $as_echo "$as_me: WARNING:
7225 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7226 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7231 if test -z "$PERL"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7233 *** Without Perl you will not be able to build PostgreSQL from Git.
7234 *** You can obtain Perl from any CPAN mirror site.
7235 *** (If you are using the official distribution of PostgreSQL then you do not
7236 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7237 $as_echo "$as_me: WARNING:
7238 *** Without Perl you will not be able to build PostgreSQL from Git.
7239 *** You can obtain Perl from any CPAN mirror site.
7240 *** (If you are using the official distribution of PostgreSQL then you do not
7241 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7244 if test "$with_perl" = yes; then
7245 if test -z "$PERL"; then
7246 as_fn_error $? "Perl not found" "$LINENO" 5
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7250 $as_echo_n "checking for Perl archlibexp... " >&6; }
7251 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7252 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7254 $as_echo "$perl_archlibexp" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7256 $as_echo_n "checking for Perl privlibexp... " >&6; }
7257 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7258 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7260 $as_echo "$perl_privlibexp" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7262 $as_echo_n "checking for Perl useshrplib... " >&6; }
7263 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7264 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7266 $as_echo "$perl_useshrplib" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7269 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7270 if test "$PORTNAME" = "win32" ; then
7271 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7272 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7274 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7275 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7276 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7278 if test -z "$perl_embed_ldflags" ; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 as_fn_error $? "could not determine flags for linking embedded Perl.
7282 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7283 installed." "$LINENO" 5
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7286 $as_echo "$perl_embed_ldflags" >&6; }
7291 if test "$with_python" = yes; then
7292 # Extract the first word of "python", so it can be a program name with args.
7293 set dummy python; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_path_PYTHON+:} false; then :
7297 $as_echo_n "(cached) " >&6
7301 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 PYTHON=$ac_cv_path_PYTHON
7323 if test -n "$PYTHON"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7325 $as_echo "$PYTHON" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7332 if test x"$PYTHON" = x""; then
7333 as_fn_error $? "Python not found" "$LINENO" 5
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7338 $as_echo_n "checking for Python distutils module... " >&6; }
7339 if "${PYTHON}" -c 'import distutils' 2>&5
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7342 $as_echo "yes" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 as_fn_error $? "distutils module not found" "$LINENO" 5
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7349 $as_echo_n "checking Python configuration directory... " >&6; }
7350 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7351 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7352 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7354 $as_echo "$python_configdir" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7357 $as_echo_n "checking Python include directories... " >&6; }
7358 python_includespec=`${PYTHON} -c "
7359 import distutils.sysconfig
7360 a = '-I' + distutils.sysconfig.get_python_inc(False)
7361 b = '-I' + distutils.sysconfig.get_python_inc(True)
7365 print(a + ' ' + b)"`
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7367 $as_echo "$python_includespec" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7372 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7374 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7375 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7376 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7377 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7378 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7379 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7381 if test -n "$python_framework"; then
7382 python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7383 python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7384 python_enable_shared=1
7385 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7387 # New way: use the official shared library
7388 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7389 python_libspec="-L${python_libdir} -l${ldlibrary}"
7391 # Old way: use libpython from python_configdir
7392 python_libdir="${python_configdir}"
7393 # LDVERSION was introduced in Python 3.2.
7394 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7395 if test x"${python_ldversion}" = x""; then
7396 python_ldversion=$python_version
7398 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7401 if test -z "$python_framework"; then
7402 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7406 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7409 # threaded python is not supported on OpenBSD
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support" >&5
7411 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7412 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7413 if test "$pythreads" = "1"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7415 $as_echo "yes" >&6; }
7418 as_fn_error $? "threaded Python not supported on this platform" "$LINENO" 5
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7429 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7430 # Extract the first word of "zic", so it can be a program name with args.
7431 set dummy zic; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_path_ZIC+:} false; then :
7435 $as_echo_n "(cached) " >&6
7439 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 if test -n "$ZIC"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7463 $as_echo "$ZIC" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 if test -z "$ZIC"; then
7472 When cross-compiling, either use the option --with-system-tzdata to use
7473 existing time-zone data, or set the environment variable ZIC to a zic
7474 program to use during the build." "$LINENO" 5
7482 ## Most libraries are included only if they demonstrably provide a function
7483 ## we need, but libm is an exception: always include it, because there are
7484 ## too many compilers that play cute optimization games that will break
7485 ## probes for standard functions such as pow().
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7489 $as_echo_n "checking for main in -lm... " >&6; }
7490 if ${ac_cv_lib_m_main+:} false; then :
7491 $as_echo_n "(cached) " >&6
7493 ac_check_lib_save_LIBS=$LIBS
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7507 if ac_fn_c_try_link "$LINENO"; then :
7508 ac_cv_lib_m_main=yes
7512 rm -f core conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7517 $as_echo "$ac_cv_lib_m_main" >&6; }
7518 if test "x$ac_cv_lib_m_main" = xyes; then :
7519 cat >>confdefs.h <<_ACEOF
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
7528 $as_echo_n "checking for library containing setproctitle... " >&6; }
7529 if ${ac_cv_search_setproctitle+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 ac_func_search_save_LIBS=$LIBS
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7536 /* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
7542 char setproctitle ();
7546 return setproctitle ();
7551 for ac_lib in '' util; do
7552 if test -z "$ac_lib"; then
7553 ac_res="none required"
7556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7558 if ac_fn_c_try_link "$LINENO"; then :
7559 ac_cv_search_setproctitle=$ac_res
7561 rm -f core conftest.err conftest.$ac_objext \
7563 if ${ac_cv_search_setproctitle+:} false; then :
7567 if ${ac_cv_search_setproctitle+:} false; then :
7570 ac_cv_search_setproctitle=no
7573 LIBS=$ac_func_search_save_LIBS
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
7576 $as_echo "$ac_cv_search_setproctitle" >&6; }
7577 ac_res=$ac_cv_search_setproctitle
7578 if test "$ac_res" != no; then :
7579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7584 $as_echo_n "checking for library containing dlopen... " >&6; }
7585 if ${ac_cv_search_dlopen+:} false; then :
7586 $as_echo_n "(cached) " >&6
7588 ac_func_search_save_LIBS=$LIBS
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7607 for ac_lib in '' dl; do
7608 if test -z "$ac_lib"; then
7609 ac_res="none required"
7612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7614 if ac_fn_c_try_link "$LINENO"; then :
7615 ac_cv_search_dlopen=$ac_res
7617 rm -f core conftest.err conftest.$ac_objext \
7619 if ${ac_cv_search_dlopen+:} false; then :
7623 if ${ac_cv_search_dlopen+:} false; then :
7626 ac_cv_search_dlopen=no
7629 LIBS=$ac_func_search_save_LIBS
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7632 $as_echo "$ac_cv_search_dlopen" >&6; }
7633 ac_res=$ac_cv_search_dlopen
7634 if test "$ac_res" != no; then :
7635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7640 $as_echo_n "checking for library containing socket... " >&6; }
7641 if ${ac_cv_search_socket+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 ac_func_search_save_LIBS=$LIBS
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7663 for ac_lib in '' socket wsock32; do
7664 if test -z "$ac_lib"; then
7665 ac_res="none required"
7668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7670 if ac_fn_c_try_link "$LINENO"; then :
7671 ac_cv_search_socket=$ac_res
7673 rm -f core conftest.err conftest.$ac_objext \
7675 if ${ac_cv_search_socket+:} false; then :
7679 if ${ac_cv_search_socket+:} false; then :
7682 ac_cv_search_socket=no
7685 LIBS=$ac_func_search_save_LIBS
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7688 $as_echo "$ac_cv_search_socket" >&6; }
7689 ac_res=$ac_cv_search_socket
7690 if test "$ac_res" != no; then :
7691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7696 $as_echo_n "checking for library containing shl_load... " >&6; }
7697 if ${ac_cv_search_shl_load+:} false; then :
7698 $as_echo_n "(cached) " >&6
7700 ac_func_search_save_LIBS=$LIBS
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7704 /* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
7719 for ac_lib in '' dld; do
7720 if test -z "$ac_lib"; then
7721 ac_res="none required"
7724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7726 if ac_fn_c_try_link "$LINENO"; then :
7727 ac_cv_search_shl_load=$ac_res
7729 rm -f core conftest.err conftest.$ac_objext \
7731 if ${ac_cv_search_shl_load+:} false; then :
7735 if ${ac_cv_search_shl_load+:} false; then :
7738 ac_cv_search_shl_load=no
7741 LIBS=$ac_func_search_save_LIBS
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7744 $as_echo "$ac_cv_search_shl_load" >&6; }
7745 ac_res=$ac_cv_search_shl_load
7746 if test "$ac_res" != no; then :
7747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7751 # We only use libld in port/dynloader/aix.c
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
7755 $as_echo_n "checking for library containing ldopen... " >&6; }
7756 if ${ac_cv_search_ldopen+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 ac_func_search_save_LIBS=$LIBS
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7778 for ac_lib in '' ld; do
7779 if test -z "$ac_lib"; then
7780 ac_res="none required"
7783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7785 if ac_fn_c_try_link "$LINENO"; then :
7786 ac_cv_search_ldopen=$ac_res
7788 rm -f core conftest.err conftest.$ac_objext \
7790 if ${ac_cv_search_ldopen+:} false; then :
7794 if ${ac_cv_search_ldopen+:} false; then :
7797 ac_cv_search_ldopen=no
7800 LIBS=$ac_func_search_save_LIBS
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
7803 $as_echo "$ac_cv_search_ldopen" >&6; }
7804 ac_res=$ac_cv_search_ldopen
7805 if test "$ac_res" != no; then :
7806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
7813 $as_echo_n "checking for library containing getopt_long... " >&6; }
7814 if ${ac_cv_search_getopt_long+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 ac_func_search_save_LIBS=$LIBS
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 /* Override any GCC internal prototype to avoid an error.
7822 Use char because int might match the return type of a GCC
7823 builtin and then its argument prototype would still apply. */
7827 char getopt_long ();
7831 return getopt_long ();
7836 for ac_lib in '' getopt gnugetopt; do
7837 if test -z "$ac_lib"; then
7838 ac_res="none required"
7841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7843 if ac_fn_c_try_link "$LINENO"; then :
7844 ac_cv_search_getopt_long=$ac_res
7846 rm -f core conftest.err conftest.$ac_objext \
7848 if ${ac_cv_search_getopt_long+:} false; then :
7852 if ${ac_cv_search_getopt_long+:} false; then :
7855 ac_cv_search_getopt_long=no
7858 LIBS=$ac_func_search_save_LIBS
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
7861 $as_echo "$ac_cv_search_getopt_long" >&6; }
7862 ac_res=$ac_cv_search_getopt_long
7863 if test "$ac_res" != no; then :
7864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
7869 $as_echo_n "checking for library containing crypt... " >&6; }
7870 if ${ac_cv_search_crypt+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 ac_func_search_save_LIBS=$LIBS
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7892 for ac_lib in '' crypt; do
7893 if test -z "$ac_lib"; then
7894 ac_res="none required"
7897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 ac_cv_search_crypt=$ac_res
7902 rm -f core conftest.err conftest.$ac_objext \
7904 if ${ac_cv_search_crypt+:} false; then :
7908 if ${ac_cv_search_crypt+:} false; then :
7911 ac_cv_search_crypt=no
7914 LIBS=$ac_func_search_save_LIBS
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
7917 $as_echo "$ac_cv_search_crypt" >&6; }
7918 ac_res=$ac_cv_search_crypt
7919 if test "$ac_res" != no; then :
7920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
7925 $as_echo_n "checking for library containing shm_open... " >&6; }
7926 if ${ac_cv_search_shm_open+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 ac_func_search_save_LIBS=$LIBS
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7948 for ac_lib in '' rt; do
7949 if test -z "$ac_lib"; then
7950 ac_res="none required"
7953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7955 if ac_fn_c_try_link "$LINENO"; then :
7956 ac_cv_search_shm_open=$ac_res
7958 rm -f core conftest.err conftest.$ac_objext \
7960 if ${ac_cv_search_shm_open+:} false; then :
7964 if ${ac_cv_search_shm_open+:} false; then :
7967 ac_cv_search_shm_open=no
7970 LIBS=$ac_func_search_save_LIBS
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
7973 $as_echo "$ac_cv_search_shm_open" >&6; }
7974 ac_res=$ac_cv_search_shm_open
7975 if test "$ac_res" != no; then :
7976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
7981 $as_echo_n "checking for library containing shm_unlink... " >&6; }
7982 if ${ac_cv_search_shm_unlink+:} false; then :
7983 $as_echo_n "(cached) " >&6
7985 ac_func_search_save_LIBS=$LIBS
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7999 return shm_unlink ();
8004 for ac_lib in '' rt; do
8005 if test -z "$ac_lib"; then
8006 ac_res="none required"
8009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 ac_cv_search_shm_unlink=$ac_res
8014 rm -f core conftest.err conftest.$ac_objext \
8016 if ${ac_cv_search_shm_unlink+:} false; then :
8020 if ${ac_cv_search_shm_unlink+:} false; then :
8023 ac_cv_search_shm_unlink=no
8026 LIBS=$ac_func_search_save_LIBS
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
8029 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8030 ac_res=$ac_cv_search_shm_unlink
8031 if test "$ac_res" != no; then :
8032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
8038 $as_echo_n "checking for library containing fdatasync... " >&6; }
8039 if ${ac_cv_search_fdatasync+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 ac_func_search_save_LIBS=$LIBS
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8046 /* Override any GCC internal prototype to avoid an error.
8047 Use char because int might match the return type of a GCC
8048 builtin and then its argument prototype would still apply. */
8056 return fdatasync ();
8061 for ac_lib in '' rt posix4; do
8062 if test -z "$ac_lib"; then
8063 ac_res="none required"
8066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8068 if ac_fn_c_try_link "$LINENO"; then :
8069 ac_cv_search_fdatasync=$ac_res
8071 rm -f core conftest.err conftest.$ac_objext \
8073 if ${ac_cv_search_fdatasync+:} false; then :
8077 if ${ac_cv_search_fdatasync+:} false; then :
8080 ac_cv_search_fdatasync=no
8083 LIBS=$ac_func_search_save_LIBS
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
8086 $as_echo "$ac_cv_search_fdatasync" >&6; }
8087 ac_res=$ac_cv_search_fdatasync
8088 if test "$ac_res" != no; then :
8089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8093 # Required for thread_test.c on Solaris 2.5:
8094 # Other ports use it too (HP-UX) so test unconditionally
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
8096 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8097 if ${ac_cv_search_gethostbyname_r+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 ac_func_search_save_LIBS=$LIBS
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8110 char gethostbyname_r ();
8114 return gethostbyname_r ();
8119 for ac_lib in '' nsl; do
8120 if test -z "$ac_lib"; then
8121 ac_res="none required"
8124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8126 if ac_fn_c_try_link "$LINENO"; then :
8127 ac_cv_search_gethostbyname_r=$ac_res
8129 rm -f core conftest.err conftest.$ac_objext \
8131 if ${ac_cv_search_gethostbyname_r+:} false; then :
8135 if ${ac_cv_search_gethostbyname_r+:} false; then :
8138 ac_cv_search_gethostbyname_r=no
8141 LIBS=$ac_func_search_save_LIBS
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
8144 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8145 ac_res=$ac_cv_search_gethostbyname_r
8146 if test "$ac_res" != no; then :
8147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
8153 $as_echo_n "checking for library containing shmget... " >&6; }
8154 if ${ac_cv_search_shmget+:} false; then :
8155 $as_echo_n "(cached) " >&6
8157 ac_func_search_save_LIBS=$LIBS
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8176 for ac_lib in '' cygipc; do
8177 if test -z "$ac_lib"; then
8178 ac_res="none required"
8181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 ac_cv_search_shmget=$ac_res
8186 rm -f core conftest.err conftest.$ac_objext \
8188 if ${ac_cv_search_shmget+:} false; then :
8192 if ${ac_cv_search_shmget+:} false; then :
8195 ac_cv_search_shmget=no
8198 LIBS=$ac_func_search_save_LIBS
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
8201 $as_echo "$ac_cv_search_shmget" >&6; }
8202 ac_res=$ac_cv_search_shmget
8203 if test "$ac_res" != no; then :
8204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8209 if test "$with_readline" = yes; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
8213 $as_echo_n "checking for library containing readline... " >&6; }
8214 if ${pgac_cv_check_readline+:} false; then :
8215 $as_echo_n "(cached) " >&6
8217 pgac_cv_check_readline=no
8218 pgac_save_LIBS=$LIBS
8219 if test x"$with_libedit_preferred" != x"yes"
8220 then READLINE_ORDER="-lreadline -ledit"
8221 else READLINE_ORDER="-ledit -lreadline"
8223 for pgac_rllib in $READLINE_ORDER ; do
8224 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8225 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8229 /* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8244 if ac_fn_c_try_link "$LINENO"; then :
8246 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8247 # recognize dependent libraries; assume curses is needed if we didn't
8248 # find any dependency.
8250 netbsd* | openbsd* | irix*)
8251 if test x"$pgac_lib" = x"" ; then
8252 pgac_lib=" -lcurses"
8256 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8260 rm -f core conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8263 if test "$pgac_cv_check_readline" != no ; then
8267 LIBS=$pgac_save_LIBS
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
8271 $as_echo "$pgac_cv_check_readline" >&6; }
8272 if test "$pgac_cv_check_readline" != no ; then
8273 LIBS="$pgac_cv_check_readline $LIBS"
8275 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8280 if test x"$pgac_cv_check_readline" = x"no"; then
8281 as_fn_error $? "readline library not found
8282 If you have readline already installed, see config.log for details on the
8283 failure. It is possible the compiler isn't looking in the proper directory.
8284 Use --without-readline to disable readline support." "$LINENO" 5
8288 if test "$with_zlib" = yes; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8290 $as_echo_n "checking for inflate in -lz... " >&6; }
8291 if ${ac_cv_lib_z_inflate+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 ac_check_lib_save_LIBS=$LIBS
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8299 /* Override any GCC internal prototype to avoid an error.
8300 Use char because int might match the return type of a GCC
8301 builtin and then its argument prototype would still apply. */
8314 if ac_fn_c_try_link "$LINENO"; then :
8315 ac_cv_lib_z_inflate=yes
8317 ac_cv_lib_z_inflate=no
8319 rm -f core conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
8321 LIBS=$ac_check_lib_save_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8324 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8325 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8326 cat >>confdefs.h <<_ACEOF
8333 as_fn_error $? "zlib library not found
8334 If you have zlib already installed, see config.log for details on the
8335 failure. It is possible the compiler isn't looking in the proper directory.
8336 Use --without-zlib to disable zlib support." "$LINENO" 5
8341 if test "$enable_spinlocks" = yes; then
8343 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8347 *** Not using spinlocks will cause poor performance." >&5
8348 $as_echo "$as_me: WARNING:
8349 *** Not using spinlocks will cause poor performance." >&2;}
8352 if test "$with_gssapi" = yes ; then
8353 if test "$PORTNAME" != "win32"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
8355 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8356 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 ac_func_search_save_LIBS=$LIBS
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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 if ac_fn_c_try_link "$LINENO"; then :
8386 ac_cv_search_gss_init_sec_context=$ac_res
8388 rm -f core conftest.err conftest.$ac_objext \
8390 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8394 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8397 ac_cv_search_gss_init_sec_context=no
8400 LIBS=$ac_func_search_save_LIBS
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
8403 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8404 ac_res=$ac_cv_search_gss_init_sec_context
8405 if test "$ac_res" != no; then :
8406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8409 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
8413 LIBS="$LIBS -lgssapi32"
8417 if test "$with_openssl" = yes ; then
8418 if test "$PORTNAME" != "win32"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8420 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8421 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-lcrypto $LIBS"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8429 /* Override any GCC internal prototype to avoid an error.
8430 Use char because int might match the return type of a GCC
8431 builtin and then its argument prototype would still apply. */
8435 char CRYPTO_new_ex_data ();
8439 return CRYPTO_new_ex_data ();
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8447 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8454 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8455 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_LIBCRYPTO 1
8460 LIBS="-lcrypto $LIBS"
8463 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
8467 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8468 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 ac_check_lib_save_LIBS=$LIBS
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8476 /* Override any GCC internal prototype to avoid an error.
8477 Use char because int might match the return type of a GCC
8478 builtin and then its argument prototype would still apply. */
8482 char SSL_library_init ();
8486 return SSL_library_init ();
8491 if ac_fn_c_try_link "$LINENO"; then :
8492 ac_cv_lib_ssl_SSL_library_init=yes
8494 ac_cv_lib_ssl_SSL_library_init=no
8496 rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 LIBS=$ac_check_lib_save_LIBS
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8501 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8502 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
8503 cat >>confdefs.h <<_ACEOF
8504 #define HAVE_LIBSSL 1
8510 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
8515 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
8516 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 ac_func_search_save_LIBS=$LIBS
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8523 /* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8529 char CRYPTO_new_ex_data ();
8533 return CRYPTO_new_ex_data ();
8538 for ac_lib in '' eay32 crypto; do
8539 if test -z "$ac_lib"; then
8540 ac_res="none required"
8543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8545 if ac_fn_c_try_link "$LINENO"; then :
8546 ac_cv_search_CRYPTO_new_ex_data=$ac_res
8548 rm -f core conftest.err conftest.$ac_objext \
8550 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8554 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8557 ac_cv_search_CRYPTO_new_ex_data=no
8560 LIBS=$ac_func_search_save_LIBS
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
8563 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
8564 ac_res=$ac_cv_search_CRYPTO_new_ex_data
8565 if test "$ac_res" != no; then :
8566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8569 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
8573 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
8574 if ${ac_cv_search_SSL_library_init+:} false; then :
8575 $as_echo_n "(cached) " >&6
8577 ac_func_search_save_LIBS=$LIBS
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8587 char SSL_library_init ();
8591 return SSL_library_init ();
8596 for ac_lib in '' ssleay32 ssl; do
8597 if test -z "$ac_lib"; then
8598 ac_res="none required"
8601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8603 if ac_fn_c_try_link "$LINENO"; then :
8604 ac_cv_search_SSL_library_init=$ac_res
8606 rm -f core conftest.err conftest.$ac_objext \
8608 if ${ac_cv_search_SSL_library_init+:} false; then :
8612 if ${ac_cv_search_SSL_library_init+:} false; then :
8615 ac_cv_search_SSL_library_init=no
8618 LIBS=$ac_func_search_save_LIBS
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
8621 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
8622 ac_res=$ac_cv_search_SSL_library_init
8623 if test "$ac_res" != no; then :
8624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
8633 if test "$with_pam" = yes ; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8635 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8636 if ${ac_cv_lib_pam_pam_start+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 ac_check_lib_save_LIBS=$LIBS
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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. */
8654 return pam_start ();
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 ac_cv_lib_pam_pam_start=yes
8662 ac_cv_lib_pam_pam_start=no
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8669 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8670 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8671 cat >>confdefs.h <<_ACEOF
8672 #define HAVE_LIBPAM 1
8678 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
8683 if test "$with_libxml" = yes ; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
8685 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
8686 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 ac_check_lib_save_LIBS=$LIBS
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8694 /* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
8700 char xmlSaveToBuffer ();
8704 return xmlSaveToBuffer ();
8709 if ac_fn_c_try_link "$LINENO"; then :
8710 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8712 ac_cv_lib_xml2_xmlSaveToBuffer=no
8714 rm -f core conftest.err conftest.$ac_objext \
8715 conftest$ac_exeext conftest.$ac_ext
8716 LIBS=$ac_check_lib_save_LIBS
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8719 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8720 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
8721 cat >>confdefs.h <<_ACEOF
8722 #define HAVE_LIBXML2 1
8728 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
8733 if test "$with_libxslt" = yes ; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
8735 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
8736 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
8737 $as_echo_n "(cached) " >&6
8739 ac_check_lib_save_LIBS=$LIBS
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8750 char xsltCleanupGlobals ();
8754 return xsltCleanupGlobals ();
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8762 ac_cv_lib_xslt_xsltCleanupGlobals=no
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LIBS=$ac_check_lib_save_LIBS
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8769 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8770 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_LIBXSLT 1
8778 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
8783 # for contrib/sepgsql
8784 if test "$with_selinux" = yes; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
8786 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
8787 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
8788 $as_echo_n "(cached) " >&6
8790 ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-lselinux $LIBS"
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8795 /* Override any GCC internal prototype to avoid an error.
8796 Use char because int might match the return type of a GCC
8797 builtin and then its argument prototype would still apply. */
8801 char security_compute_create_name ();
8805 return security_compute_create_name ();
8810 if ac_fn_c_try_link "$LINENO"; then :
8811 ac_cv_lib_selinux_security_compute_create_name=yes
8813 ac_cv_lib_selinux_security_compute_create_name=no
8815 rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
8820 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
8821 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
8822 cat >>confdefs.h <<_ACEOF
8823 #define HAVE_LIBSELINUX 1
8826 LIBS="-lselinux $LIBS"
8829 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
8834 # for contrib/uuid-ossp
8835 if test "$with_uuid" = bsd ; then
8836 # On BSD, the UUID functions are in libc
8837 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
8838 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
8841 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
8844 elif test "$with_uuid" = e2fs ; then
8845 # On OS X, the UUID functions are in libc
8846 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
8847 if test "x$ac_cv_func_uuid_generate" = xyes; then :
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
8851 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
8852 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 ac_check_lib_save_LIBS=$LIBS
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8866 char uuid_generate ();
8870 return uuid_generate ();
8875 if ac_fn_c_try_link "$LINENO"; then :
8876 ac_cv_lib_uuid_uuid_generate=yes
8878 ac_cv_lib_uuid_uuid_generate=no
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882 LIBS=$ac_check_lib_save_LIBS
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
8885 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
8886 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
8889 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
8894 elif test "$with_uuid" = ossp ; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
8896 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
8897 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
8898 $as_echo_n "(cached) " >&6
8900 ac_check_lib_save_LIBS=$LIBS
8901 LIBS="-lossp-uuid $LIBS"
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8905 /* Override any GCC internal prototype to avoid an error.
8906 Use char because int might match the return type of a GCC
8907 builtin and then its argument prototype would still apply. */
8911 char uuid_export ();
8915 return uuid_export ();
8920 if ac_fn_c_try_link "$LINENO"; then :
8921 ac_cv_lib_ossp_uuid_uuid_export=yes
8923 ac_cv_lib_ossp_uuid_uuid_export=no
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8930 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8931 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
8932 UUID_LIBS="-lossp-uuid"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
8935 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
8936 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 ac_check_lib_save_LIBS=$LIBS
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8950 char uuid_export ();
8954 return uuid_export ();
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 ac_cv_lib_uuid_uuid_export=yes
8962 ac_cv_lib_uuid_uuid_export=no
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 LIBS=$ac_check_lib_save_LIBS
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
8969 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
8970 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
8973 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8987 $as_echo_n "checking for ANSI C header files... " >&6; }
8988 if ${ac_cv_header_stdc+:} false; then :
8989 $as_echo_n "(cached) " >&6
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
9006 if ac_fn_c_try_compile "$LINENO"; then :
9007 ac_cv_header_stdc=yes
9009 ac_cv_header_stdc=no
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 if test $ac_cv_header_stdc = yes; then
9014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9021 $EGREP "memchr" >/dev/null 2>&1; then :
9024 ac_cv_header_stdc=no
9030 if test $ac_cv_header_stdc = yes; then
9031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 $EGREP "free" >/dev/null 2>&1; then :
9041 ac_cv_header_stdc=no
9047 if test $ac_cv_header_stdc = yes; then
9048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9049 if test "$cross_compiling" = yes; then :
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9056 #if ((' ' & 0x0FF) == 0x020)
9057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9060 # define ISLOWER(c) \
9061 (('a' <= (c) && (c) <= 'i') \
9062 || ('j' <= (c) && (c) <= 'r') \
9063 || ('s' <= (c) && (c) <= 'z'))
9064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9072 for (i = 0; i < 256; i++)
9073 if (XOR (islower (i), ISLOWER (i))
9074 || toupper (i) != TOUPPER (i))
9079 if ac_fn_c_try_run "$LINENO"; then :
9082 ac_cv_header_stdc=no
9084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9085 conftest.$ac_objext conftest.beam conftest.$ac_ext
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9091 $as_echo "$ac_cv_header_stdc" >&6; }
9092 if test $ac_cv_header_stdc = yes; then
9094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9099 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9100 inttypes.h stdint.h unistd.h
9102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9106 cat >>confdefs.h <<_ACEOF
9107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9115 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
9117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9118 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9119 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9120 cat >>confdefs.h <<_ACEOF
9121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9129 # On BSD, test for net/if.h will fail unless sys/socket.h
9130 # is included first.
9131 for ac_header in net/if.h
9133 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9134 #ifdef HAVE_SYS_SOCKET_H
9135 #include <sys/socket.h>
9139 if test "x$ac_cv_header_net_if_h" = xyes; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define HAVE_NET_IF_H 1
9149 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
9150 # is included first.
9151 for ac_header in sys/ucred.h
9153 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
9154 #include <sys/param.h>
9157 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
9158 cat >>confdefs.h <<_ACEOF
9159 #define HAVE_SYS_UCRED_H 1
9167 # At least on IRIX, test for netinet/tcp.h will fail unless
9168 # netinet/in.h is included first.
9169 for ac_header in netinet/in.h
9171 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9172 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_NETINET_IN_H 1
9181 for ac_header in netinet/tcp.h
9183 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
9184 #ifdef HAVE_NETINET_IN_H
9185 #include <netinet/in.h>
9189 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_NETINET_TCP_H 1
9199 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9200 for ac_header in readline/readline.h
9202 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9203 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_READLINE_READLINE_H 1
9209 for ac_header in readline.h
9211 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9212 if test "x$ac_cv_header_readline_h" = xyes; then :
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_READLINE_H 1
9218 as_fn_error $? "readline header not found
9219 If you have readline already installed, see config.log for details on the
9220 failure. It is possible the compiler isn't looking in the proper directory.
9221 Use --without-readline to disable readline support." "$LINENO" 5
9230 for ac_header in readline/history.h
9232 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9233 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_READLINE_HISTORY_H 1
9239 for ac_header in history.h
9241 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9242 if test "x$ac_cv_header_history_h" = xyes; then :
9243 cat >>confdefs.h <<_ACEOF
9244 #define HAVE_HISTORY_H 1
9248 as_fn_error $? "history header not found
9249 If you have readline already installed, see config.log for details on the
9250 failure. It is possible the compiler isn't looking in the proper directory.
9251 Use --without-readline to disable readline support." "$LINENO" 5
9262 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9263 # Some installations of libedit usurp /usr/include/readline/, which seems
9264 # bad practice, since in combined installations readline will have its headers
9265 # there. We might have to resort to AC_EGREP checks to make sure we found
9266 # the proper header...
9267 for ac_header in editline/readline.h
9269 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
9270 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
9271 cat >>confdefs.h <<_ACEOF
9272 #define HAVE_EDITLINE_READLINE_H 1
9276 for ac_header in readline.h
9278 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9279 if test "x$ac_cv_header_readline_h" = xyes; then :
9280 cat >>confdefs.h <<_ACEOF
9281 #define HAVE_READLINE_H 1
9285 for ac_header in readline/readline.h
9287 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9288 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9289 cat >>confdefs.h <<_ACEOF
9290 #define HAVE_READLINE_READLINE_H 1
9294 as_fn_error $? "readline header not found
9295 If you have libedit already installed, see config.log for details on the
9296 failure. It is possible the compiler isn't looking in the proper directory.
9297 Use --without-readline to disable libedit support." "$LINENO" 5
9310 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9311 # not be there at all. Hence, don't complain if not found. We must check
9312 # though, since in yet other versions it is an independent header.
9313 for ac_header in editline/history.h
9315 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
9316 if test "x$ac_cv_header_editline_history_h" = xyes; then :
9317 cat >>confdefs.h <<_ACEOF
9318 #define HAVE_EDITLINE_HISTORY_H 1
9322 for ac_header in history.h
9324 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9325 if test "x$ac_cv_header_history_h" = xyes; then :
9326 cat >>confdefs.h <<_ACEOF
9327 #define HAVE_HISTORY_H 1
9331 for ac_header in readline/history.h
9333 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9334 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9335 cat >>confdefs.h <<_ACEOF
9336 #define HAVE_READLINE_HISTORY_H 1
9353 if test "$with_zlib" = yes; then
9354 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9355 if test "x$ac_cv_header_zlib_h" = xyes; then :
9358 as_fn_error $? "zlib header not found
9359 If you have zlib already installed, see config.log for details on the
9360 failure. It is possible the compiler isn't looking in the proper directory.
9361 Use --without-zlib to disable zlib support." "$LINENO" 5
9367 if test "$with_gssapi" = yes ; then
9368 for ac_header in gssapi/gssapi.h
9370 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9371 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
9372 cat >>confdefs.h <<_ACEOF
9373 #define HAVE_GSSAPI_GSSAPI_H 1
9377 for ac_header in gssapi.h
9379 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9380 if test "x$ac_cv_header_gssapi_h" = xyes; then :
9381 cat >>confdefs.h <<_ACEOF
9382 #define HAVE_GSSAPI_H 1
9386 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
9397 if test "$with_openssl" = yes ; then
9398 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9399 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9402 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
9406 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
9407 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
9410 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
9416 if test "$with_pam" = yes ; then
9417 for ac_header in security/pam_appl.h
9419 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9420 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9421 cat >>confdefs.h <<_ACEOF
9422 #define HAVE_SECURITY_PAM_APPL_H 1
9426 for ac_header in pam/pam_appl.h
9428 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9429 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define HAVE_PAM_PAM_APPL_H 1
9435 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
9446 if test "$with_libxml" = yes ; then
9447 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9448 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
9451 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
9457 if test "$with_libxslt" = yes ; then
9458 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
9459 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
9462 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
9468 if test "$with_ldap" = yes ; then
9469 if test "$PORTNAME" != "win32"; then
9470 for ac_header in ldap.h
9472 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9473 if test "x$ac_cv_header_ldap_h" = xyes; then :
9474 cat >>confdefs.h <<_ACEOF
9475 #define HAVE_LDAP_H 1
9479 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
9485 for ac_header in winldap.h
9487 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
9488 #include <windows.h>
9491 if test "x$ac_cv_header_winldap_h" = xyes; then :
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_WINLDAP_H 1
9497 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
9505 if test "$with_bonjour" = yes ; then
9506 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9507 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9510 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
9516 # for contrib/uuid-ossp
9517 if test "$with_uuid" = bsd ; then
9518 for ac_header in uuid.h
9520 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9521 if test "x$ac_cv_header_uuid_h" = xyes; then :
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_UUID_H 1
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
9534 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
9539 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
9544 elif test "$with_uuid" = e2fs ; then
9545 for ac_header in uuid/uuid.h
9547 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
9548 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
9549 cat >>confdefs.h <<_ACEOF
9550 #define HAVE_UUID_UUID_H 1
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 #include <uuid/uuid.h>
9557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9558 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9561 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
9566 for ac_header in uuid.h
9568 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9569 if test "x$ac_cv_header_uuid_h" = xyes; then :
9570 cat >>confdefs.h <<_ACEOF
9571 #define HAVE_UUID_H 1
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9579 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9582 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
9587 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
9596 elif test "$with_uuid" = ossp ; then
9597 for ac_header in ossp/uuid.h
9599 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
9600 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_OSSP_UUID_H 1
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 #include <ossp/uuid.h>
9609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9610 $EGREP "uuid_export" >/dev/null 2>&1; then :
9613 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
9618 for ac_header in uuid.h
9620 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9621 if test "x$ac_cv_header_uuid_h" = xyes; then :
9622 cat >>confdefs.h <<_ACEOF
9623 #define HAVE_UUID_H 1
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9631 $EGREP "uuid_export" >/dev/null 2>&1; then :
9634 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
9639 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
9650 if test "$PORTNAME" = "win32" ; then
9651 for ac_header in crtdefs.h
9653 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
9654 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
9655 cat >>confdefs.h <<_ACEOF
9656 #define HAVE_CRTDEFS_H 1
9666 ## Types, structures, compiler characteristics
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9670 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9671 if ${ac_cv_c_bigendian+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 ac_cv_c_bigendian=unknown
9675 # See if we're dealing with a universal compiler.
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 #ifndef __APPLE_CC__
9679 not a universal capable compiler
9684 if ac_fn_c_try_compile "$LINENO"; then :
9686 # Check for potential -arch flags. It is not universal unless
9687 # there are at least two -arch flags with different values.
9690 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9691 if test -n "$ac_prev"; then
9693 i?86 | x86_64 | ppc | ppc64)
9694 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9697 ac_cv_c_bigendian=universal
9703 elif test "x$ac_word" = "x-arch"; then
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 if test $ac_cv_c_bigendian = unknown; then
9710 # See if sys/param.h defines the BYTE_ORDER macro.
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include <sys/types.h>
9714 #include <sys/param.h>
9719 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9720 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9729 if ac_fn_c_try_compile "$LINENO"; then :
9730 # It does; now see whether it defined to BIG_ENDIAN or not.
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733 #include <sys/types.h>
9734 #include <sys/param.h>
9739 #if BYTE_ORDER != BIG_ENDIAN
9747 if ac_fn_c_try_compile "$LINENO"; then :
9748 ac_cv_c_bigendian=yes
9750 ac_cv_c_bigendian=no
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756 if test $ac_cv_c_bigendian = unknown; then
9757 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9765 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 # It does; now see whether it defined to _BIG_ENDIAN or not.
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791 ac_cv_c_bigendian=yes
9793 ac_cv_c_bigendian=no
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 if test $ac_cv_c_bigendian = unknown; then
9800 # Compile a test program.
9801 if test "$cross_compiling" = yes; then :
9802 # Try to guess by grepping values from an object file.
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 short int ascii_mm[] =
9806 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9807 short int ascii_ii[] =
9808 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9809 int use_ascii (int i) {
9810 return ascii_mm[i] + ascii_ii[i];
9812 short int ebcdic_ii[] =
9813 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9814 short int ebcdic_mm[] =
9815 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9816 int use_ebcdic (int i) {
9817 return ebcdic_mm[i] + ebcdic_ii[i];
9824 return use_ascii (foo) == use_ebcdic (foo);
9829 if ac_fn_c_try_compile "$LINENO"; then :
9830 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9831 ac_cv_c_bigendian=yes
9833 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9834 if test "$ac_cv_c_bigendian" = unknown; then
9835 ac_cv_c_bigendian=no
9837 # finding both strings is unlikely to happen, but who knows?
9838 ac_cv_c_bigendian=unknown
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 $ac_includes_default
9851 /* Are we little or big endian? From Harbison&Steele. */
9855 char c[sizeof (long int)];
9858 return u.c[sizeof (long int) - 1] == 1;
9864 if ac_fn_c_try_run "$LINENO"; then :
9865 ac_cv_c_bigendian=no
9867 ac_cv_c_bigendian=yes
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9870 conftest.$ac_objext conftest.beam conftest.$ac_ext
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9876 $as_echo "$ac_cv_c_bigendian" >&6; }
9877 case $ac_cv_c_bigendian in #(
9879 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9885 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9889 as_fn_error $? "unknown endianness
9890 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9894 $as_echo_n "checking for inline... " >&6; }
9895 if ${ac_cv_c_inline+:} false; then :
9896 $as_echo_n "(cached) " >&6
9899 for ac_kw in inline __inline__ __inline; do
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9904 static $ac_kw foo_t static_foo () {return 0; }
9905 $ac_kw foo_t foo () {return 0; }
9909 if ac_fn_c_try_compile "$LINENO"; then :
9910 ac_cv_c_inline=$ac_kw
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 test "$ac_cv_c_inline" != no && break
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9918 $as_echo "$ac_cv_c_inline" >&6; }
9920 case $ac_cv_c_inline in
9923 case $ac_cv_c_inline in
9925 *) ac_val=$ac_cv_c_inline;;
9927 cat >>confdefs.h <<_ACEOF
9929 #define inline $ac_val
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiet inline (no complaint if unreferenced)" >&5
9936 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
9937 if ${pgac_cv_c_inline_quietly+:} false; then :
9938 $as_echo_n "(cached) " >&6
9940 pgac_cv_c_inline_quietly=no
9941 if test "$ac_cv_c_inline" != no; then
9942 pgac_c_inline_save_werror=$ac_c_werror_flag
9943 ac_c_werror_flag=yes
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include "$srcdir/config/test_quiet_include.h"
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 pgac_cv_c_inline_quietly=yes
9958 rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 ac_c_werror_flag=$pgac_c_inline_save_werror
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_inline_quietly" >&5
9964 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
9965 if test "$pgac_cv_c_inline_quietly" != no; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define PG_USE_INLINE 1
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
9975 $as_echo_n "checking for flexible array members... " >&6; }
9976 if ${ac_cv_c_flexmember+:} false; then :
9977 $as_echo_n "(cached) " >&6
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9984 struct s { int n; double d[]; };
9989 struct s *p = malloc (offsetof (struct s, d)
9990 + m * sizeof (double));
9992 return p->d != (double *) NULL;
9997 if ac_fn_c_try_compile "$LINENO"; then :
9998 ac_cv_c_flexmember=yes
10000 ac_cv_c_flexmember=no
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
10005 $as_echo "$ac_cv_c_flexmember" >&6; }
10006 if test $ac_cv_c_flexmember = yes; then
10008 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
10011 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
10016 $as_echo_n "checking for signed types... " >&6; }
10017 if ${pgac_cv_c_signed+:} false; then :
10018 $as_echo_n "(cached) " >&6
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10026 signed char c; signed short s; signed int i;
10031 if ac_fn_c_try_compile "$LINENO"; then :
10032 pgac_cv_c_signed=yes
10034 pgac_cv_c_signed=no
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
10039 $as_echo "$pgac_cv_c_signed" >&6; }
10040 if test x"$pgac_cv_c_signed" = xno ; then
10042 $as_echo "#define signed /**/" >>confdefs.h
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
10046 $as_echo_n "checking for __func__... " >&6; }
10047 if ${pgac_cv_funcname_func_support+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10056 printf("%s\n", __func__);
10061 if ac_fn_c_try_compile "$LINENO"; then :
10062 pgac_cv_funcname_func_support=yes
10064 pgac_cv_funcname_func_support=no
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
10069 $as_echo "$pgac_cv_funcname_func_support" >&6; }
10070 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10072 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
10076 $as_echo_n "checking for __FUNCTION__... " >&6; }
10077 if ${pgac_cv_funcname_function_support+:} false; then :
10078 $as_echo_n "(cached) " >&6
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10086 printf("%s\n", __FUNCTION__);
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 pgac_cv_funcname_function_support=yes
10094 pgac_cv_funcname_function_support=no
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
10099 $as_echo "$pgac_cv_funcname_function_support" >&6; }
10100 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10102 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
10107 $as_echo_n "checking for _Static_assert... " >&6; }
10108 if ${pgac_cv__static_assert+:} false; then :
10109 $as_echo_n "(cached) " >&6
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10117 ({ _Static_assert(1, "foo"); })
10122 if ac_fn_c_try_link "$LINENO"; then :
10123 pgac_cv__static_assert=yes
10125 pgac_cv__static_assert=no
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
10131 $as_echo "$pgac_cv__static_assert" >&6; }
10132 if test x"$pgac_cv__static_assert" = xyes ; then
10134 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
10138 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
10139 if ${pgac_cv__types_compatible+:} false; then :
10140 $as_echo_n "(cached) " >&6
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10148 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 pgac_cv__types_compatible=yes
10156 pgac_cv__types_compatible=no
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
10161 $as_echo "$pgac_cv__types_compatible" >&6; }
10162 if test x"$pgac_cv__types_compatible" = xyes ; then
10164 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
10168 $as_echo_n "checking for __builtin_constant_p... " >&6; }
10169 if ${pgac_cv__builtin_constant_p+:} false; then :
10170 $as_echo_n "(cached) " >&6
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 static int x; static int y[__builtin_constant_p(x) ? x : 1];
10183 if ac_fn_c_try_compile "$LINENO"; then :
10184 pgac_cv__builtin_constant_p=yes
10186 pgac_cv__builtin_constant_p=no
10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
10191 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
10192 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
10194 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
10198 $as_echo_n "checking for __builtin_unreachable... " >&6; }
10199 if ${pgac_cv__builtin_unreachable+:} false; then :
10200 $as_echo_n "(cached) " >&6
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10208 __builtin_unreachable();
10213 if ac_fn_c_try_link "$LINENO"; then :
10214 pgac_cv__builtin_unreachable=yes
10216 pgac_cv__builtin_unreachable=no
10218 rm -f core conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
10222 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
10223 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
10225 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
10229 $as_echo_n "checking for __VA_ARGS__... " >&6; }
10230 if ${pgac_cv__va_args+:} false; then :
10231 $as_echo_n "(cached) " >&6
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10239 #define debug(...) fprintf(stderr, __VA_ARGS__)
10240 debug("%s", "blarg");
10246 if ac_fn_c_try_compile "$LINENO"; then :
10247 pgac_cv__va_args=yes
10249 pgac_cv__va_args=no
10251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
10254 $as_echo "$pgac_cv__va_args" >&6; }
10255 if test x"$pgac_cv__va_args" = xyes ; then
10257 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10261 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10262 if ${ac_cv_struct_tm+:} false; then :
10263 $as_echo_n "(cached) " >&6
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 #include <sys/types.h>
10274 int *p = &tm.tm_sec;
10280 if ac_fn_c_try_compile "$LINENO"; then :
10281 ac_cv_struct_tm=time.h
10283 ac_cv_struct_tm=sys/time.h
10285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10288 $as_echo "$ac_cv_struct_tm" >&6; }
10289 if test $ac_cv_struct_tm = sys/time.h; then
10291 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10295 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10296 #include <$ac_cv_struct_tm>
10299 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_STRUCT_TM_TM_ZONE 1
10308 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10310 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10314 $as_echo_n "checking for tzname... " >&6; }
10315 if ${ac_cv_var_tzname+:} false; then :
10316 $as_echo_n "(cached) " >&6
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10321 #ifndef tzname /* For SGI. */
10322 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 ac_cv_var_tzname=yes
10336 ac_cv_var_tzname=no
10338 rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10342 $as_echo "$ac_cv_var_tzname" >&6; }
10343 if test $ac_cv_var_tzname = yes; then
10345 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10349 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
10350 #include <sys/ipc.h>
10351 #include <sys/sem.h>
10353 if test "x$ac_cv_type_union_semun" = xyes; then :
10355 cat >>confdefs.h <<_ACEOF
10356 #define HAVE_UNION_SEMUN 1
10362 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
10363 #ifdef HAVE_SYS_UN_H
10364 #include <sys/un.h>
10368 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
10370 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
10374 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
10375 #ifdef HAVE_SYS_SOCKET_H
10376 #include <sys/socket.h>
10380 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10382 cat >>confdefs.h <<_ACEOF
10383 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10389 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10390 #ifdef HAVE_SYS_SOCKET_H
10391 #include <sys/socket.h>
10395 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
10397 cat >>confdefs.h <<_ACEOF
10398 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10403 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
10404 #ifdef HAVE_SYS_SOCKET_H
10405 #include <sys/socket.h>
10409 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
10411 cat >>confdefs.h <<_ACEOF
10412 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10417 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
10418 #ifdef HAVE_SYS_SOCKET_H
10419 #include <sys/socket.h>
10423 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
10425 cat >>confdefs.h <<_ACEOF
10426 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10431 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
10432 #ifdef HAVE_SYS_SOCKET_H
10433 #include <sys/socket.h>
10437 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10445 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10446 #ifdef HAVE_SYS_SOCKET_H
10447 #include <sys/socket.h>
10451 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10453 cat >>confdefs.h <<_ACEOF
10454 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10460 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
10461 #include <sys/socket.h>
10465 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
10467 cat >>confdefs.h <<_ACEOF
10468 #define HAVE_STRUCT_ADDRINFO 1
10475 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10476 if test "x$ac_cv_type_intptr_t" = xyes; then :
10478 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
10481 for ac_type in 'int' 'long int' 'long long int'; do
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 $ac_includes_default
10488 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10489 test_array [0] = 0;
10490 return test_array [0];
10496 if ac_fn_c_try_compile "$LINENO"; then :
10498 cat >>confdefs.h <<_ACEOF
10499 #define intptr_t $ac_type
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 test -z "$ac_type" && break
10511 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10512 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10514 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
10517 for ac_type in 'unsigned int' 'unsigned long int' \
10518 'unsigned long long int'; do
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 $ac_includes_default
10525 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10526 test_array [0] = 0;
10527 return test_array [0];
10533 if ac_fn_c_try_compile "$LINENO"; then :
10535 cat >>confdefs.h <<_ACEOF
10536 #define uintptr_t $ac_type
10541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 test -z "$ac_type" && break
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10549 $as_echo_n "checking for unsigned long long int... " >&6; }
10550 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10551 $as_echo_n "(cached) " >&6
10553 ac_cv_type_unsigned_long_long_int=yes
10554 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10558 /* For now, do not test the preprocessor; as of 2007 there are too many
10559 implementations with broken preprocessors. Perhaps this can
10560 be revisited in 2012. In the meantime, code should not expect
10561 #if to work with literals wider than 32 bits. */
10562 /* Test literals. */
10563 long long int ll = 9223372036854775807ll;
10564 long long int nll = -9223372036854775807LL;
10565 unsigned long long int ull = 18446744073709551615ULL;
10566 /* Test constant expressions. */
10567 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10569 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10575 /* Test availability of runtime routines for shift and division. */
10576 long long int llmax = 9223372036854775807ll;
10577 unsigned long long int ullmax = 18446744073709551615ull;
10578 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10579 | (llmax / ll) | (llmax % ll)
10580 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10581 | (ullmax / ull) | (ullmax % ull));
10587 if ac_fn_c_try_link "$LINENO"; then :
10590 ac_cv_type_unsigned_long_long_int=no
10592 rm -f core conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10597 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10598 if test $ac_cv_type_unsigned_long_long_int = yes; then
10600 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10607 $as_echo_n "checking for long long int... " >&6; }
10608 if ${ac_cv_type_long_long_int+:} false; then :
10609 $as_echo_n "(cached) " >&6
10611 ac_cv_type_long_long_int=yes
10612 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10613 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10614 if test $ac_cv_type_long_long_int = yes; then
10615 if test "$cross_compiling" = yes; then :
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #include <limits.h>
10623 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10624 # define LLONG_MAX (HALF - 1 + HALF)
10629 long long int n = 1;
10633 long long int m = n << i;
10636 if (LLONG_MAX / 2 < m)
10644 if ac_fn_c_try_run "$LINENO"; then :
10647 ac_cv_type_long_long_int=no
10649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10650 conftest.$ac_objext conftest.beam conftest.$ac_ext
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10657 $as_echo "$ac_cv_type_long_long_int" >&6; }
10658 if test $ac_cv_type_long_long_int = yes; then
10660 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
10666 $as_echo_n "checking for locale_t... " >&6; }
10667 if ${pgac_cv_type_locale_t+:} false; then :
10668 $as_echo_n "(cached) " >&6
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <locale.h>
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 pgac_cv_type_locale_t=yes
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #include <xlocale.h>
10697 if ac_fn_c_try_compile "$LINENO"; then :
10698 pgac_cv_type_locale_t='yes (in xlocale.h)'
10700 pgac_cv_type_locale_t=no
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
10707 $as_echo "$pgac_cv_type_locale_t" >&6; }
10708 if test "$pgac_cv_type_locale_t" != no; then
10710 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
10713 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
10715 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
10719 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
10720 #include <sys/param.h>
10721 #ifdef HAVE_SYS_UCRED_H
10722 #include <sys/ucred.h>
10725 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_STRUCT_CMSGCRED 1
10735 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
10736 #include <getopt.h>
10739 if test "x$ac_cv_type_struct_option" = xyes; then :
10741 cat >>confdefs.h <<_ACEOF
10742 #define HAVE_STRUCT_OPTION 1
10749 if test "$with_zlib" = yes; then
10750 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10751 # did not). While we could work around the lack of z_streamp, it
10752 # seems unwise to encourage people to use such old zlib versions...
10753 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
10755 if test "x$ac_cv_type_z_streamp" = xyes; then :
10758 as_fn_error $? "zlib version is too old
10759 Use --without-zlib to disable zlib support." "$LINENO" 5
10764 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
10768 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10775 int a = 0; int *p = &a; int r;
10776 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
10781 if ac_fn_c_try_compile "$LINENO"; then :
10782 pgac_cv_have_ppc_mutex_hint=yes
10784 pgac_cv_have_ppc_mutex_hint=no
10786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
10788 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
10789 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
10791 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
10797 # Check largefile support. You might think this is a system service not a
10798 # compiler characteristic, but you'd be wrong. We must check this before
10799 # probing existence of related functions such as fseeko, since the largefile
10800 # defines can affect what is generated for that.
10801 if test "$PORTNAME" != "win32"; then
10802 # Check whether --enable-largefile was given.
10803 if test "${enable_largefile+set}" = set; then :
10804 enableval=$enable_largefile;
10807 if test "$enable_largefile" != no; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10810 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10811 if ${ac_cv_sys_largefile_CC+:} false; then :
10812 $as_echo_n "(cached) " >&6
10814 ac_cv_sys_largefile_CC=no
10815 if test "$GCC" != yes; then
10818 # IRIX 6.2 and later do not support large files by default,
10819 # so use the C compiler's -n32 option if that helps.
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 #include <sys/types.h>
10823 /* Check that off_t can represent 2**63 - 1 correctly.
10824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10825 since some C++ compilers masquerading as C compilers
10826 incorrectly reject 9223372036854775807. */
10827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10829 && LARGE_OFF_T % 2147483647 == 1)
10839 if ac_fn_c_try_compile "$LINENO"; then :
10842 rm -f core conftest.err conftest.$ac_objext
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845 ac_cv_sys_largefile_CC=' -n32'; break
10847 rm -f core conftest.err conftest.$ac_objext
10851 rm -f conftest.$ac_ext
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10855 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10856 if test "$ac_cv_sys_largefile_CC" != no; then
10857 CC=$CC$ac_cv_sys_largefile_CC
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10861 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10862 if ${ac_cv_sys_file_offset_bits+:} false; then :
10863 $as_echo_n "(cached) " >&6
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include <sys/types.h>
10869 /* Check that off_t can represent 2**63 - 1 correctly.
10870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10871 since some C++ compilers masquerading as C compilers
10872 incorrectly reject 9223372036854775807. */
10873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10875 && LARGE_OFF_T % 2147483647 == 1)
10885 if ac_fn_c_try_compile "$LINENO"; then :
10886 ac_cv_sys_file_offset_bits=no; break
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #define _FILE_OFFSET_BITS 64
10892 #include <sys/types.h>
10893 /* Check that off_t can represent 2**63 - 1 correctly.
10894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10895 since some C++ compilers masquerading as C compilers
10896 incorrectly reject 9223372036854775807. */
10897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10899 && LARGE_OFF_T % 2147483647 == 1)
10909 if ac_fn_c_try_compile "$LINENO"; then :
10910 ac_cv_sys_file_offset_bits=64; break
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 ac_cv_sys_file_offset_bits=unknown
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10918 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10919 case $ac_cv_sys_file_offset_bits in #(
10922 cat >>confdefs.h <<_ACEOF
10923 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10928 if test $ac_cv_sys_file_offset_bits = unknown; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10930 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10931 if ${ac_cv_sys_large_files+:} false; then :
10932 $as_echo_n "(cached) " >&6
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937 #include <sys/types.h>
10938 /* Check that off_t can represent 2**63 - 1 correctly.
10939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10940 since some C++ compilers masquerading as C compilers
10941 incorrectly reject 9223372036854775807. */
10942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10944 && LARGE_OFF_T % 2147483647 == 1)
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 ac_cv_sys_large_files=no; break
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10960 #define _LARGE_FILES 1
10961 #include <sys/types.h>
10962 /* Check that off_t can represent 2**63 - 1 correctly.
10963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10964 since some C++ compilers masquerading as C compilers
10965 incorrectly reject 9223372036854775807. */
10966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10968 && LARGE_OFF_T % 2147483647 == 1)
10978 if ac_fn_c_try_compile "$LINENO"; then :
10979 ac_cv_sys_large_files=1; break
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 ac_cv_sys_large_files=unknown
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10987 $as_echo "$ac_cv_sys_large_files" >&6; }
10988 case $ac_cv_sys_large_files in #(
10991 cat >>confdefs.h <<_ACEOF
10992 #define _LARGE_FILES $ac_cv_sys_large_files
11005 # Check for largefile support (must be after AC_SYS_LARGEFILE)
11006 # The cast to long int works around a bug in the HP C Compiler
11007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11009 # This bug is HP SR number 8606223364.
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11011 $as_echo_n "checking size of off_t... " >&6; }
11012 if ${ac_cv_sizeof_off_t+:} false; then :
11013 $as_echo_n "(cached) " >&6
11015 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
11018 if test "$ac_cv_type_off_t" = yes; then
11019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11021 as_fn_error 77 "cannot compute sizeof (off_t)
11022 See \`config.log' for more details" "$LINENO" 5; }
11024 ac_cv_sizeof_off_t=0
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11030 $as_echo "$ac_cv_sizeof_off_t" >&6; }
11034 cat >>confdefs.h <<_ACEOF
11035 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11040 # If we don't have largefile support, can't handle segsize >= 2GB.
11041 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
11042 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
11047 ## Functions, global variables
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
11051 $as_echo_n "checking for int timezone... " >&6; }
11052 if ${pgac_cv_var_int_timezone+:} false; then :
11053 $as_echo_n "(cached) " >&6
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11063 res = timezone / 60;
11065 res = _timezone / 60;
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 pgac_cv_var_int_timezone=yes
11074 pgac_cv_var_int_timezone=no
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
11080 $as_echo "$pgac_cv_var_int_timezone" >&6; }
11081 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11083 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
11087 $as_echo_n "checking types of arguments for accept()... " >&6; }
11088 if ${ac_cv_func_accept_return+:} false; then :
11089 $as_echo_n "(cached) " >&6
11091 if ${ac_cv_func_accept_arg1+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 if ${ac_cv_func_accept_arg2+:} false; then :
11095 $as_echo_n "(cached) " >&6
11097 if ${ac_cv_func_accept_arg3+:} false; then :
11098 $as_echo_n "(cached) " >&6
11100 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
11101 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
11102 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11103 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11106 #ifdef HAVE_SYS_TYPES_H
11107 #include <sys/types.h>
11109 #ifdef HAVE_SYS_SOCKET_H
11110 #include <sys/socket.h>
11112 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11121 if ac_fn_c_try_compile "$LINENO"; then :
11122 ac_not_found=no; break 4
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 if test "$ac_not_found" = yes; then
11132 as_fn_error $? "could not determine argument types" "$LINENO" 5
11134 if test "$ac_cv_func_accept_arg3" = "void"; then
11135 ac_cv_func_accept_arg3=int
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11146 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
11148 cat >>confdefs.h <<_ACEOF
11149 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11153 cat >>confdefs.h <<_ACEOF
11154 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11158 cat >>confdefs.h <<_ACEOF
11159 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11163 cat >>confdefs.h <<_ACEOF
11164 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
11169 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
11170 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
11171 $as_echo_n "(cached) " >&6
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175 #include <sys/time.h>
11179 struct timeval *tp;
11180 struct timezone *tzp;
11181 gettimeofday(tp,tzp);
11186 if ac_fn_c_try_compile "$LINENO"; then :
11187 pgac_cv_func_gettimeofday_1arg=no
11189 pgac_cv_func_gettimeofday_1arg=yes
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
11194 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
11195 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11197 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
11202 # Some versions of libedit contain strlcpy(), setproctitle(), and other
11203 # symbols that that library has no business exposing to the world. Pending
11204 # acquisition of a clue by those developers, ignore libedit (including its
11205 # possible alias of libreadline) while checking for everything else.
11206 LIBS_including_readline="$LIBS"
11207 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
11209 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
11211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11212 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11213 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11214 cat >>confdefs.h <<_ACEOF
11215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
11223 if test "x$ac_cv_func_fseeko" = xyes; then :
11224 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11227 case " $LIBOBJS " in
11228 *" fseeko.$ac_objext "* ) ;;
11229 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
11237 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
11238 # Mingw uses macros to access Win32 API calls
11241 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11243 ac_cv_func_fseeko=yes;;
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11246 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11247 if ${ac_cv_sys_largefile_source+:} false; then :
11248 $as_echo_n "(cached) " >&6
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253 #include <sys/types.h> /* for off_t */
11258 int (*fp) (FILE *, off_t, int) = fseeko;
11259 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 ac_cv_sys_largefile_source=no; break
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271 #define _LARGEFILE_SOURCE 1
11272 #include <sys/types.h> /* for off_t */
11277 int (*fp) (FILE *, off_t, int) = fseeko;
11278 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11283 if ac_fn_c_try_link "$LINENO"; then :
11284 ac_cv_sys_largefile_source=1; break
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 ac_cv_sys_largefile_source=unknown
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11293 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11294 case $ac_cv_sys_largefile_source in #(
11297 cat >>confdefs.h <<_ACEOF
11298 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11304 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11305 # in glibc 2.1.3, but that breaks too many other things.
11306 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11307 if test $ac_cv_sys_largefile_source != unknown; then
11309 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11315 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
11316 # by calling it, 2009-04-02
11317 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
11318 if test "$PORTNAME" != "solaris"; then
11319 for ac_func in posix_fadvise
11321 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
11322 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
11323 cat >>confdefs.h <<_ACEOF
11324 #define HAVE_POSIX_FADVISE 1
11330 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
11332 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
11338 cat >>confdefs.h <<_ACEOF
11339 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
11344 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
11346 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define HAVE_DECL_FDATASYNC $ac_have_decl
11356 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
11357 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
11363 cat >>confdefs.h <<_ACEOF
11364 #define HAVE_DECL_STRLCAT $ac_have_decl
11366 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
11367 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
11373 cat >>confdefs.h <<_ACEOF
11374 #define HAVE_DECL_STRLCPY $ac_have_decl
11377 # This is probably only present on Darwin, but may as well check always
11378 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
11380 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
11386 cat >>confdefs.h <<_ACEOF
11387 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
11392 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
11393 #include <netinet/in.h>
11395 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
11397 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
11405 $as_echo_n "checking for PS_STRINGS... " >&6; }
11406 if ${pgac_cv_var_PS_STRINGS+:} false; then :
11407 $as_echo_n "(cached) " >&6
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 #include <machine/vmparam.h>
11412 #include <sys/exec.h>
11417 PS_STRINGS->ps_nargvstr = 1;
11418 PS_STRINGS->ps_argvstr = "foo";
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 pgac_cv_var_PS_STRINGS=yes
11426 pgac_cv_var_PS_STRINGS=no
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
11432 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
11433 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11435 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
11440 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11441 # is missing. Yes, there are machines that have only one. We may
11442 # also decide to use snprintf.c if snprintf() is present but does not
11443 # have all the features we need --- see below.
11445 if test "$PORTNAME" = "win32"; then
11446 # Win32 gets snprintf.c built unconditionally.
11448 # To properly translate all NLS languages strings, we must support the
11449 # *printf() %$ format, which allows *printf() arguments to be selected
11450 # by position in the translated string.
11452 # libintl versions < 0.13 use the native *printf() functions, and Win32
11453 # *printf() doesn't understand %$, so we must use our /port versions,
11454 # which do understand %$. libintl versions >= 0.13 include their own
11455 # *printf versions on Win32. The libintl 0.13 release note text is:
11457 # C format strings with positions, as they arise when a translator
11458 # needs to reorder a sentence, are now supported on all platforms.
11459 # On those few platforms (NetBSD and Woe32) for which the native
11460 # printf()/fprintf()/... functions don't support such format
11461 # strings, replacements are provided through <libintl.h>.
11463 # We could use libintl >= 0.13's *printf() if we were sure that we had
11464 # a litint >= 0.13 at runtime, but seeing that there is no clean way
11465 # to guarantee that, it is best to just use our own, so we are sure to
11466 # get %$ support. In include/port.h we disable the *printf() macros
11467 # that might have been defined by libintl.
11469 # We do this unconditionally whether NLS is used or not so we are sure
11470 # that all Win32 libraries and binaries behave the same.
11471 pgac_need_repl_snprintf=yes
11473 pgac_need_repl_snprintf=no
11474 for ac_func in snprintf
11476 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11477 if test "x$ac_cv_func_snprintf" = xyes; then :
11478 cat >>confdefs.h <<_ACEOF
11479 #define HAVE_SNPRINTF 1
11483 pgac_need_repl_snprintf=yes
11487 for ac_func in vsnprintf
11489 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
11490 if test "x$ac_cv_func_vsnprintf" = xyes; then :
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_VSNPRINTF 1
11496 pgac_need_repl_snprintf=yes
11503 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11504 # include/c.h will provide declarations. Note this is a separate test
11505 # from whether the functions exist in the C library --- there are
11506 # systems that have the functions but don't bother to declare them :-(
11508 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11509 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11515 cat >>confdefs.h <<_ACEOF
11516 #define HAVE_DECL_SNPRINTF $ac_have_decl
11518 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11519 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
11525 cat >>confdefs.h <<_ACEOF
11526 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
11532 $as_echo_n "checking for isinf... " >&6; }
11533 if ${ac_cv_func_isinf+:} false; then :
11534 $as_echo_n "(cached) " >&6
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11540 double glob_double;
11545 return isinf(glob_double) ? 0 : 1;
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_func_isinf=yes
11553 ac_cv_func_isinf=no
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
11559 $as_echo "$ac_cv_func_isinf" >&6; }
11561 if test $ac_cv_func_isinf = yes ; then
11563 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
11566 case " $LIBOBJS " in
11567 *" isinf.$ac_objext "* ) ;;
11568 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
11572 # Look for a way to implement a substitute for isinf()
11573 for ac_func in fpclass fp_class fp_class_d class
11575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11577 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11578 cat >>confdefs.h <<_ACEOF
11579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11587 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
11588 if test "x$ac_cv_func_crypt" = xyes; then :
11589 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
11592 case " $LIBOBJS " in
11593 *" crypt.$ac_objext "* ) ;;
11594 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
11600 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
11601 if test "x$ac_cv_func_fls" = xyes; then :
11602 $as_echo "#define HAVE_FLS 1" >>confdefs.h
11605 case " $LIBOBJS " in
11606 *" fls.$ac_objext "* ) ;;
11607 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
11613 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
11614 if test "x$ac_cv_func_getopt" = xyes; then :
11615 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
11618 case " $LIBOBJS " in
11619 *" getopt.$ac_objext "* ) ;;
11620 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11626 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
11627 if test "x$ac_cv_func_getrusage" = xyes; then :
11628 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
11631 case " $LIBOBJS " in
11632 *" getrusage.$ac_objext "* ) ;;
11633 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
11639 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11640 if test "x$ac_cv_func_inet_aton" = xyes; then :
11641 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11644 case " $LIBOBJS " in
11645 *" inet_aton.$ac_objext "* ) ;;
11646 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11652 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
11653 if test "x$ac_cv_func_random" = xyes; then :
11654 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
11657 case " $LIBOBJS " in
11658 *" random.$ac_objext "* ) ;;
11659 *) LIBOBJS="$LIBOBJS random.$ac_objext"
11665 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
11666 if test "x$ac_cv_func_rint" = xyes; then :
11667 $as_echo "#define HAVE_RINT 1" >>confdefs.h
11670 case " $LIBOBJS " in
11671 *" rint.$ac_objext "* ) ;;
11672 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
11678 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11679 if test "x$ac_cv_func_srandom" = xyes; then :
11680 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
11683 case " $LIBOBJS " in
11684 *" srandom.$ac_objext "* ) ;;
11685 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
11691 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11692 if test "x$ac_cv_func_strerror" = xyes; then :
11693 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11696 case " $LIBOBJS " in
11697 *" strerror.$ac_objext "* ) ;;
11698 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
11704 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11705 if test "x$ac_cv_func_strlcat" = xyes; then :
11706 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
11709 case " $LIBOBJS " in
11710 *" strlcat.$ac_objext "* ) ;;
11711 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
11717 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11718 if test "x$ac_cv_func_strlcpy" = xyes; then :
11719 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
11722 case " $LIBOBJS " in
11723 *" strlcpy.$ac_objext "* ) ;;
11724 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
11734 # Windows uses a specialised env handler
11735 # and doesn't need a replacement getpeereid because it doesn't use
11739 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11742 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11744 ac_cv_func_unsetenv=yes
11745 ac_cv_func_getpeereid=yes;;
11747 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11748 if test "x$ac_cv_func_unsetenv" = xyes; then :
11749 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11752 case " $LIBOBJS " in
11753 *" unsetenv.$ac_objext "* ) ;;
11754 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
11760 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
11761 if test "x$ac_cv_func_getpeereid" = xyes; then :
11762 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11765 case " $LIBOBJS " in
11766 *" getpeereid.$ac_objext "* ) ;;
11767 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
11777 # System's version of getaddrinfo(), if any, may be used only if we found
11778 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
11779 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
11780 # versions of getaddrinfo don't follow normal C call protocol. This is OK
11781 # because we want to use our own getaddrinfo.c on Windows anyway.)
11782 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11783 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11784 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11785 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11788 case " $LIBOBJS " in
11789 *" getaddrinfo.$ac_objext "* ) ;;
11790 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11798 case " $LIBOBJS " in
11799 *" getaddrinfo.$ac_objext "* ) ;;
11800 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11806 # Similarly, use system's getopt_long() only if system provides struct option.
11807 if test x"$ac_cv_type_struct_option" = xyes ; then
11808 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
11809 if test "x$ac_cv_func_getopt_long" = xyes; then :
11810 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
11813 case " $LIBOBJS " in
11814 *" getopt_long.$ac_objext "* ) ;;
11815 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11823 case " $LIBOBJS " in
11824 *" getopt_long.$ac_objext "* ) ;;
11825 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11831 # Solaris' getopt() doesn't do what we want for long options, so always use
11832 # our version on that platform.
11833 if test "$PORTNAME" = "solaris"; then
11834 case " $LIBOBJS " in
11835 *" getopt.$ac_objext "* ) ;;
11836 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11842 # mingw has adopted a GNU-centric interpretation of optind/optreset,
11843 # so always use our version on Windows.
11844 if test "$PORTNAME" = "win32"; then
11845 case " $LIBOBJS " in
11846 *" getopt.$ac_objext "* ) ;;
11847 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11851 case " $LIBOBJS " in
11852 *" getopt_long.$ac_objext "* ) ;;
11853 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11860 if test "$PORTNAME" = "win32"; then
11861 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11862 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11863 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11866 case " $LIBOBJS " in
11867 *" gettimeofday.$ac_objext "* ) ;;
11868 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
11875 case " $LIBOBJS " in
11876 *" kill.$ac_objext "* ) ;;
11877 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
11881 case " $LIBOBJS " in
11882 *" open.$ac_objext "* ) ;;
11883 *) LIBOBJS="$LIBOBJS open.$ac_objext"
11887 case " $LIBOBJS " in
11888 *" system.$ac_objext "* ) ;;
11889 *) LIBOBJS="$LIBOBJS system.$ac_objext"
11893 case " $LIBOBJS " in
11894 *" win32env.$ac_objext "* ) ;;
11895 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
11899 case " $LIBOBJS " in
11900 *" win32error.$ac_objext "* ) ;;
11901 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
11905 case " $LIBOBJS " in
11906 *" win32setlocale.$ac_objext "* ) ;;
11907 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
11912 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
11914 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
11915 #define WIN32_LEAN_AND_MEAN
11916 #include <windows.h>
11917 #include <string.h>
11918 #include <dbghelp.h>
11920 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
11922 cat >>confdefs.h <<_ACEOF
11923 #define HAVE_MINIDUMP_TYPE 1
11926 pgac_minidump_type=yes
11928 pgac_minidump_type=no
11932 if test x"$pgac_minidump_type" = x"yes" ; then
11933 have_win32_dbghelp=yes
11936 have_win32_dbghelp=no
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11941 $as_echo_n "checking for sigsetjmp... " >&6; }
11942 if ${pgac_cv_func_sigsetjmp+:} false; then :
11943 $as_echo_n "(cached) " >&6
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 #include <setjmp.h>
11951 sigjmp_buf x; sigsetjmp(x, 1);
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 pgac_cv_func_sigsetjmp=yes
11959 pgac_cv_func_sigsetjmp=no
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_sigsetjmp" >&5
11965 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
11966 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
11968 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11972 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11973 /* NetBSD declares sys_siglist in unistd.h. */
11974 #ifdef HAVE_UNISTD_H
11975 # include <unistd.h>
11979 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11991 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
11992 if test "x$ac_cv_func_syslog" = xyes; then :
11993 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11994 if test "x$ac_cv_header_syslog_h" = xyes; then :
11996 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
12005 $as_echo_n "checking for opterr... " >&6; }
12006 if ${pgac_cv_var_int_opterr+:} false; then :
12007 $as_echo_n "(cached) " >&6
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <unistd.h>
12015 extern int opterr; opterr = 1;
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 pgac_cv_var_int_opterr=yes
12023 pgac_cv_var_int_opterr=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
12029 $as_echo "$pgac_cv_var_int_opterr" >&6; }
12030 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
12032 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
12037 $as_echo_n "checking for optreset... " >&6; }
12038 if ${pgac_cv_var_int_optreset+:} false; then :
12039 $as_echo_n "(cached) " >&6
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 #include <unistd.h>
12047 extern int optreset; optreset = 1;
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 pgac_cv_var_int_optreset=yes
12055 pgac_cv_var_int_optreset=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
12061 $as_echo "$pgac_cv_var_int_optreset" >&6; }
12062 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12064 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
12068 for ac_func in strtoll strtoq
12070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12072 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12073 cat >>confdefs.h <<_ACEOF
12074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12080 for ac_func in strtoull strtouq
12082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12084 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12085 cat >>confdefs.h <<_ACEOF
12086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin locking functions" >&5
12094 $as_echo_n "checking for builtin locking functions... " >&6; }
12095 if ${pgac_cv_gcc_int_atomics+:} false; then :
12096 $as_echo_n "(cached) " >&6
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12105 __sync_lock_test_and_set(&lock, 1);
12106 __sync_lock_release(&lock);
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 pgac_cv_gcc_int_atomics="yes"
12114 pgac_cv_gcc_int_atomics="no"
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_int_atomics" >&5
12120 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
12121 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
12123 $as_echo "#define HAVE_GCC_INT_ATOMICS 1" >>confdefs.h
12127 # Lastly, restore full LIBS list and check for readline/libedit symbols
12128 LIBS="$LIBS_including_readline"
12130 if test "$with_readline" = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
12132 $as_echo_n "checking for rl_completion_append_character... " >&6; }
12133 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
12134 $as_echo_n "(cached) " >&6
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12139 #ifdef HAVE_READLINE_READLINE_H
12140 # include <readline/readline.h>
12141 #elif defined(HAVE_READLINE_H)
12142 # include <readline.h>
12148 rl_completion_append_character = 'x';
12153 if ac_fn_c_try_link "$LINENO"; then :
12154 pgac_cv_var_rl_completion_append_character=yes
12156 pgac_cv_var_rl_completion_append_character=no
12158 rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
12162 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
12163 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
12165 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12168 for ac_func in rl_completion_matches rl_filename_completion_function
12170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12173 cat >>confdefs.h <<_ACEOF
12174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12180 for ac_func in append_history history_truncate_file
12182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12185 cat >>confdefs.h <<_ACEOF
12186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12198 # For each platform, we need to know about any special compile and link
12199 # libraries, and whether the normal C function names are thread-safe.
12200 # See the comment at the top of src/port/thread.c for more information.
12201 # WIN32 doesn't need the pthread tests; it always uses threads
12202 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12214 # We used to check for pthread.h first, but this fails if pthread.h
12215 # requires special compiler flags (e.g. on True64 or Sequent).
12216 # It gets checked for in the link test anyway.
12218 # First of all, check if the user has set any of the PTHREAD_LIBS,
12219 # etcetera environment variables, and if threads linking works using
12221 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12222 save_CFLAGS="$CFLAGS"
12223 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12225 LIBS="$PTHREAD_LIBS $LIBS"
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12227 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12231 /* Override any GCC internal prototype to avoid an error.
12232 Use char because int might match the return type of a GCC
12233 builtin and then its argument prototype would still apply. */
12237 char pthread_join ();
12241 return pthread_join ();
12246 if ac_fn_c_try_link "$LINENO"; then :
12249 rm -f core conftest.err conftest.$ac_objext \
12250 conftest$ac_exeext conftest.$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12252 $as_echo "$acx_pthread_ok" >&6; }
12253 if test x"$acx_pthread_ok" = xno; then
12258 CFLAGS="$save_CFLAGS"
12261 # We must check for the threads library under a number of different
12262 # names; the ordering is very important because some systems
12263 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12264 # libraries is broken (non-POSIX).
12266 # Create a list of thread flags to try. Items starting with a "-" are
12267 # C compiler flags, and other items are library names, except for "none"
12268 # which indicates that we try without any flags at all, and "pthread-config"
12269 # which is a program returning the flags for the Pth emulation library.
12271 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
12273 # The ordering *is* (sometimes) important. Some notes on the
12274 # individual items follow:
12276 # pthreads: AIX (must check this before -lpthread)
12277 # none: in case threads are in libc; should be tried before -Kthread and
12278 # other compiler flags to prevent continual compiler warnings
12279 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12280 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12281 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12282 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12283 # -pthreads: Solaris/gcc
12284 # -mthreads: Mingw32/gcc, Lynx/gcc
12285 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12286 # doesn't hurt to check since this sometimes defines pthreads too;
12287 # also defines -D_REENTRANT)
12288 # pthread: Linux, etcetera
12289 # --thread-safe: KAI C++
12290 # pthread-config: use pthread-config program (for GNU Pth library)
12292 case "${host_cpu}-${host_os}" in
12295 # On Solaris (at least, for some versions), libc contains stubbed
12296 # (non-functional) versions of the pthreads routines, so link-based
12297 # tests will erroneously succeed. (We need to link with -pthread or
12298 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12299 # a function called by this macro, so we could check for that, but
12300 # who knows whether they'll stub that too in a future libc.) So,
12301 # we'll just look for -pthreads and -lpthread first:
12303 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
12307 if test x"$acx_pthread_ok" = xno; then
12308 for flag in $acx_pthread_flags; do
12310 tryPTHREAD_CFLAGS=""
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12315 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12320 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12321 tryPTHREAD_CFLAGS="$flag"
12325 # skip this if we already have flags defined, for PostgreSQL
12326 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
12327 # Extract the first word of "pthread-config", so it can be a program name with args.
12328 set dummy pthread-config; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if ${ac_cv_prog_acx_pthread_config+:} false; then :
12332 $as_echo_n "(cached) " >&6
12334 if test -n "$acx_pthread_config"; then
12335 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344 ac_cv_prog_acx_pthread_config="yes"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
12355 acx_pthread_config=$ac_cv_prog_acx_pthread_config
12356 if test -n "$acx_pthread_config"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
12358 $as_echo "$acx_pthread_config" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12365 if test x"$acx_pthread_config" = xno; then continue; fi
12366 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
12367 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12372 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12373 tryPTHREAD_LIBS="-l$flag"
12378 save_CFLAGS="$CFLAGS"
12379 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
12380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12382 # Check for various functions. We must include pthread.h,
12383 # since some functions may be macros. (On the Sequent, we
12384 # need a special flag -Kthread to make this header compile.)
12385 # We check for pthread_join because it is in -lpthread on IRIX
12386 # while pthread_create is in libc. We check for pthread_attr_init
12387 # due to DEC craziness with -lpthreads. We check for
12388 # pthread_cleanup_push because it is one of the few pthread
12389 # functions on Solaris that doesn't have a non-functional libc stub.
12390 # We try pthread_create on general principles.
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393 #include <pthread.h>
12397 pthread_t th; pthread_join(th, 0);
12398 pthread_attr_init(0); pthread_cleanup_push(0, 0);
12399 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
12404 if ac_fn_c_try_link "$LINENO"; then :
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12412 if test "x$acx_pthread_ok" = xyes; then
12413 # Don't use options that are ignored by the compiler.
12414 # We find them by checking stderror.
12415 cat >conftest.$ac_ext <<_ACEOF
12417 main (int argc, char **argv)
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 # Check both linking and compiling, because they might tolerate different options.
12426 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
12427 # we continue with more flags because Linux needs -lpthread
12428 # for libpq builds on PostgreSQL. The test above only
12429 # tests for building binaries, not shared libraries.
12430 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
12431 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12432 else acx_pthread_ok=no
12437 CFLAGS="$save_CFLAGS"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12440 $as_echo "$acx_pthread_ok" >&6; }
12444 # Various other checks:
12445 if test "x$acx_pthread_ok" = xyes; then
12447 LIBS="$PTHREAD_LIBS $LIBS"
12448 save_CFLAGS="$CFLAGS"
12449 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12451 # Detect AIX lossage: threads are created detached by default
12452 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12454 $as_echo_n "checking for joinable pthread attribute... " >&6; }
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 #include <pthread.h>
12461 int attr=PTHREAD_CREATE_JOINABLE;
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ok=PTHREAD_CREATE_JOINABLE
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 if test x"$ok" = xunknown; then
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #include <pthread.h>
12480 int attr=PTHREAD_CREATE_UNDETACHED;
12485 if ac_fn_c_try_link "$LINENO"; then :
12486 ok=PTHREAD_CREATE_UNDETACHED
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12493 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
12495 $as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
12499 $as_echo "${ok}" >&6; }
12500 if test x"$ok" = xunknown; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
12502 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
12506 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
12508 # We always add these in PostgreSQL
12509 # case "${host_cpu}-${host_os}" in
12510 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
12511 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
12514 $as_echo "${flag}" >&6; }
12515 if test "x$flag" != xno; then
12516 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12520 CFLAGS="$save_CFLAGS"
12522 # Supporting cc_r would require a special CC in all places that
12523 # use libpq, and that is ugly, so we don't do it. Users can still
12524 # define their compiler as cc_r to do thread builds of everything.
12525 # More AIX lossage: must compile with cc_r
12526 # Extract the first word of "cc_r", so it can be a program name with args.
12527 set dummy cc_r; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
12531 $as_echo_n "(cached) " >&6
12533 if test -n "$PTHREAD_CC"; then
12534 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543 ac_cv_prog_PTHREAD_CC="cc_r"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12551 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
12554 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12555 if test -n "$PTHREAD_CC"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12557 $as_echo "$PTHREAD_CC" >&6; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12572 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12573 if test x"$acx_pthread_ok" = xyes; then
12575 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
12583 ac_cpp='$CPP $CPPFLAGS'
12584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12590 # Some platforms use these, so just define them. They can't hurt if they
12591 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
12592 # enables 5-arg getpwuid_r, among other things.
12593 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
12596 # At this point, we don't want to muck with the compiler name for threading.
12597 # Let's see who fails, perhaps AIX. 2004-04-23
12598 if test "$PTHREAD_CC" != "$CC"; then
12600 PostgreSQL does not support platforms that require a special compiler
12601 for thread safety; use --disable-thread-safety to disable thread safety." "$LINENO" 5
12604 # Check for *_r functions
12607 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12608 LIBS="$LIBS $PTHREAD_LIBS"
12610 if test "$PORTNAME" != "win32"; then
12611 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12612 if test "x$ac_cv_header_pthread_h" = xyes; then :
12616 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
12622 for ac_func in strerror_r getpwuid_r gethostbyname_r
12624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12625 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12627 cat >>confdefs.h <<_ACEOF
12628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12635 # Do test here with the proper thread flags
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwuid_r takes a fifth argument" >&5
12637 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
12638 if ${pgac_cv_func_getpwuid_r_5arg+:} false; then :
12639 $as_echo_n "(cached) " >&6
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <sys/types.h>
12649 struct passwd *space;
12652 struct passwd **result;
12653 getpwuid_r(uid, space, buf, bufsize, result);
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659 pgac_cv_func_getpwuid_r_5arg=yes
12661 pgac_cv_func_getpwuid_r_5arg=no
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_getpwuid_r_5arg" >&5
12666 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
12667 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
12669 $as_echo "#define GETPWUID_R_5ARG 1" >>confdefs.h
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
12674 $as_echo_n "checking whether strerror_r returns int... " >&6; }
12675 if ${pgac_cv_func_strerror_r_int+:} false; then :
12676 $as_echo_n "(cached) " >&6
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680 #include <string.h>
12685 int strerror_r(int, char *, size_t);
12687 /* Older AIX has 'int' for the third argument so we don't test the args. */
12694 if ac_fn_c_try_compile "$LINENO"; then :
12695 pgac_cv_func_strerror_r_int=yes
12697 pgac_cv_func_strerror_r_int=no
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
12702 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
12703 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
12705 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
12714 # do not use values from template file
12723 # We can test for libldap_r only after we know PTHREAD_LIBS
12724 if test "$with_ldap" = yes ; then
12726 if test "$PORTNAME" != "win32"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12728 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12729 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
12730 $as_echo_n "(cached) " >&6
12732 ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12747 return ldap_bind ();
12752 if ac_fn_c_try_link "$LINENO"; then :
12753 ac_cv_lib_ldap_ldap_bind=yes
12755 ac_cv_lib_ldap_ldap_bind=no
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759 LIBS=$ac_check_lib_save_LIBS
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12762 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12763 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
12764 cat >>confdefs.h <<_ACEOF
12765 #define HAVE_LIBLDAP 1
12768 LIBS="-lldap $LIBS"
12771 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
12774 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
12775 if test "$enable_thread_safety" = yes; then
12776 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12778 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12779 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
12780 $as_echo_n "(cached) " >&6
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12793 char ldap_simple_bind ();
12797 return ldap_simple_bind ();
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12805 ac_cv_lib_ldap_r_ldap_simple_bind=no
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12812 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12813 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12814 cat >>confdefs.h <<_ACEOF
12815 #define HAVE_LIBLDAP_R 1
12818 LIBS="-lldap_r $LIBS"
12821 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12824 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12826 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12830 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12831 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12832 $as_echo_n "(cached) " >&6
12834 ac_check_lib_save_LIBS=$LIBS
12835 LIBS="-lwldap32 $LIBS"
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12849 return ldap_bind ();
12854 if ac_fn_c_try_link "$LINENO"; then :
12855 ac_cv_lib_wldap32_ldap_bind=yes
12857 ac_cv_lib_wldap32_ldap_bind=no
12859 rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 LIBS=$ac_check_lib_save_LIBS
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12864 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12865 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12866 cat >>confdefs.h <<_ACEOF
12867 #define HAVE_LIBWLDAP32 1
12870 LIBS="-lwldap32 $LIBS"
12873 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12876 LDAP_LIBS_FE="-lwldap32"
12877 LDAP_LIBS_BE="-lwldap32"
12885 # This test makes sure that run tests work at all. Sometimes a shared
12886 # library is found by the linker, but the runtime linker can't find it.
12887 # This check should come after all modifications of compiler or linker
12888 # variables, and before any other run tests.
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
12890 $as_echo_n "checking test program... " >&6; }
12891 if test "$cross_compiling" = yes; then :
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
12893 $as_echo "cross-compiling" >&6; }
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897 int main() { return 0; }
12899 if ac_fn_c_try_run "$LINENO"; then :
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12901 $as_echo "ok" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12904 $as_echo "failed" >&6; }
12906 Could not execute a simple test program. This may be a problem
12907 related to locating shared libraries. Check the file 'config.log'
12908 for the exact reason." "$LINENO" 5
12910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12911 conftest.$ac_objext conftest.beam conftest.$ac_ext
12915 # --------------------
12916 # Run tests below here
12917 # --------------------
12919 # Force use of our snprintf if system's doesn't do arg control
12920 # See comment above at snprintf test for details.
12921 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
12923 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
12924 if ${pgac_cv_snprintf_arg_control+:} false; then :
12925 $as_echo_n "(cached) " >&6
12927 if test "$cross_compiling" = yes; then :
12928 pgac_cv_snprintf_arg_control=cross
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12933 #include <string.h>
12939 /* can it swap arguments? */
12940 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
12941 if (strcmp(buf, "4 3") != 0)
12946 if ac_fn_c_try_run "$LINENO"; then :
12947 pgac_cv_snprintf_arg_control=yes
12949 pgac_cv_snprintf_arg_control=no
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12952 conftest.$ac_objext conftest.beam conftest.$ac_ext
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
12958 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
12960 if test $pgac_cv_snprintf_arg_control != yes ; then
12961 pgac_need_repl_snprintf=yes
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
12969 $as_echo_n "checking whether long int is 64 bits... " >&6; }
12970 if ${pgac_cv_type_long_int_64+:} false; then :
12971 $as_echo_n "(cached) " >&6
12973 if test "$cross_compiling" = yes; then :
12974 # If cross-compiling, check the size reported by the compiler and
12975 # trust that the arithmetic works.
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12982 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12983 test_array [0] = 0;
12984 return test_array [0];
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991 pgac_cv_type_long_int_64=yes
12993 pgac_cv_type_long_int_64=no
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
12999 typedef long int ac_int64;
13002 * These are globals to discourage the compiler from folding all the
13003 * arithmetic tests down to compile-time constants.
13005 ac_int64 a = 20000001;
13006 ac_int64 b = 40000005;
13008 int does_int64_work()
13012 if (sizeof(ac_int64) != 8)
13013 return 0; /* definitely not the right size */
13015 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13023 exit(! does_int64_work());
13026 if ac_fn_c_try_run "$LINENO"; then :
13027 pgac_cv_type_long_int_64=yes
13029 pgac_cv_type_long_int_64=no
13031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13032 conftest.$ac_objext conftest.beam conftest.$ac_ext
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13037 $as_echo "$pgac_cv_type_long_int_64" >&6; }
13039 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13040 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13042 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13047 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
13048 pg_int64_type="long int"
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13051 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
13052 if ${pgac_cv_type_long_long_int_64+:} false; then :
13053 $as_echo_n "(cached) " >&6
13055 if test "$cross_compiling" = yes; then :
13056 # If cross-compiling, check the size reported by the compiler and
13057 # trust that the arithmetic works.
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13064 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13065 test_array [0] = 0;
13066 return test_array [0];
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073 pgac_cv_type_long_long_int_64=yes
13075 pgac_cv_type_long_long_int_64=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 typedef long long int ac_int64;
13084 * These are globals to discourage the compiler from folding all the
13085 * arithmetic tests down to compile-time constants.
13087 ac_int64 a = 20000001;
13088 ac_int64 b = 40000005;
13090 int does_int64_work()
13094 if (sizeof(ac_int64) != 8)
13095 return 0; /* definitely not the right size */
13097 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13105 exit(! does_int64_work());
13108 if ac_fn_c_try_run "$LINENO"; then :
13109 pgac_cv_type_long_long_int_64=yes
13111 pgac_cv_type_long_long_int_64=no
13113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13114 conftest.$ac_objext conftest.beam conftest.$ac_ext
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13119 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13121 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13122 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13124 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13128 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13129 pg_int64_type="long long int"
13131 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13136 cat >>confdefs.h <<_ACEOF
13137 #define PG_INT64_TYPE $pg_int64_type
13142 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13146 #define INT64CONST(x) x##LL
13147 long long int foo = INT64CONST(0x1234567890123456);
13157 if ac_fn_c_try_compile "$LINENO"; then :
13159 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 # If we found "long int" is 64 bits, assume snprintf handles it. If
13167 # we found we need to use "long long int", better check. We cope with
13168 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13169 # work, fall back to our own snprintf emulation (which we know uses %lld).
13171 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13172 if test $pgac_need_repl_snprintf = no; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf format for long long int" >&5
13174 $as_echo_n "checking snprintf format for long long int... " >&6; }
13175 if ${pgac_cv_snprintf_long_long_int_format+:} false; then :
13176 $as_echo_n "(cached) " >&6
13178 for pgac_format in '%lld' '%qd' '%I64d'; do
13179 if test "$cross_compiling" = yes; then :
13180 pgac_cv_snprintf_long_long_int_format=cross; break
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13185 typedef long long int ac_int64;
13186 #define INT64_FORMAT "$pgac_format"
13188 ac_int64 a = 20000001;
13189 ac_int64 b = 40000005;
13191 int does_int64_snprintf_work()
13196 if (sizeof(ac_int64) != 8)
13197 return 0; /* doesn't look like the right size */
13200 snprintf(buf, 100, INT64_FORMAT, c);
13201 if (strcmp(buf, "800000140000005") != 0)
13202 return 0; /* either multiply or snprintf is busted */
13206 exit(! does_int64_snprintf_work());
13209 if ac_fn_c_try_run "$LINENO"; then :
13210 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13213 conftest.$ac_objext conftest.beam conftest.$ac_ext
13219 LONG_LONG_INT_FORMAT=''
13221 case $pgac_cv_snprintf_long_long_int_format in
13222 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13223 $as_echo "cannot test (not on host machine)" >&6; };;
13224 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_format" >&5
13225 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
13226 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13227 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13228 $as_echo "none" >&6; };;
13230 if test "$LONG_LONG_INT_FORMAT" = ""; then
13231 # Force usage of our own snprintf, since system snprintf is broken
13232 pgac_need_repl_snprintf=yes
13233 LONG_LONG_INT_FORMAT='%lld'
13236 # Here if we previously decided we needed to use our own snprintf
13237 LONG_LONG_INT_FORMAT='%lld'
13239 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
13240 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13241 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
13243 # Here if we are not using 'long long int' at all
13244 INT64_FORMAT='"%ld"'
13245 UINT64_FORMAT='"%lu"'
13249 cat >>confdefs.h <<_ACEOF
13250 #define INT64_FORMAT $INT64_FORMAT
13255 cat >>confdefs.h <<_ACEOF
13256 #define UINT64_FORMAT $UINT64_FORMAT
13260 # Also force use of our snprintf if the system's doesn't support the %z flag.
13261 if test "$pgac_need_repl_snprintf" = no; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13263 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13264 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13265 $as_echo_n "(cached) " >&6
13267 if test "$cross_compiling" = yes; then :
13268 pgac_cv_snprintf_size_t_support=cross
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 #include <string.h>
13281 * Print the largest unsigned number fitting in a size_t using both %zu
13282 * and the previously-determined format for 64-bit integers. Note that
13283 * we don't run this code unless we know snprintf handles 64-bit ints.
13285 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13286 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13287 snprintf(buf64, sizeof(buf64), UINT64_FORMAT, (PG_INT64_TYPE) ~((size_t) 0));
13288 if (strcmp(bufz, buf64) != 0)
13293 if ac_fn_c_try_run "$LINENO"; then :
13294 pgac_cv_snprintf_size_t_support=yes
13296 pgac_cv_snprintf_size_t_support=no
13298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13299 conftest.$ac_objext conftest.beam conftest.$ac_ext
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13305 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13307 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13308 pgac_need_repl_snprintf=yes
13312 # Now we have checked all the reasons to replace snprintf
13313 if test $pgac_need_repl_snprintf = yes; then
13315 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13317 case " $LIBOBJS " in
13318 *" snprintf.$ac_objext "* ) ;;
13319 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13325 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13326 # The cast to long int works around a bug in the HP C Compiler
13327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13329 # This bug is HP SR number 8606223364.
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13331 $as_echo_n "checking size of void *... " >&6; }
13332 if ${ac_cv_sizeof_void_p+:} false; then :
13333 $as_echo_n "(cached) " >&6
13335 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13338 if test "$ac_cv_type_void_p" = yes; then
13339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13341 as_fn_error 77 "cannot compute sizeof (void *)
13342 See \`config.log' for more details" "$LINENO" 5; }
13344 ac_cv_sizeof_void_p=0
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13350 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13354 cat >>confdefs.h <<_ACEOF
13355 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13359 # The cast to long int works around a bug in the HP C Compiler
13360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13362 # This bug is HP SR number 8606223364.
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13364 $as_echo_n "checking size of size_t... " >&6; }
13365 if ${ac_cv_sizeof_size_t+:} false; then :
13366 $as_echo_n "(cached) " >&6
13368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13371 if test "$ac_cv_type_size_t" = yes; then
13372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13374 as_fn_error 77 "cannot compute sizeof (size_t)
13375 See \`config.log' for more details" "$LINENO" 5; }
13377 ac_cv_sizeof_size_t=0
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13383 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13387 cat >>confdefs.h <<_ACEOF
13388 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13392 # The cast to long int works around a bug in the HP C Compiler
13393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13395 # This bug is HP SR number 8606223364.
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13397 $as_echo_n "checking size of long... " >&6; }
13398 if ${ac_cv_sizeof_long+:} false; then :
13399 $as_echo_n "(cached) " >&6
13401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13404 if test "$ac_cv_type_long" = yes; then
13405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13407 as_fn_error 77 "cannot compute sizeof (long)
13408 See \`config.log' for more details" "$LINENO" 5; }
13410 ac_cv_sizeof_long=0
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13416 $as_echo "$ac_cv_sizeof_long" >&6; }
13420 cat >>confdefs.h <<_ACEOF
13421 #define SIZEOF_LONG $ac_cv_sizeof_long
13426 # Decide whether float4 is passed by value: user-selectable, enabled by default
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13428 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13431 # Check whether --enable-float4-byval was given.
13432 if test "${enable_float4_byval+set}" = set; then :
13433 enableval=$enable_float4_byval;
13437 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13439 float4passbyval=true
13442 float4passbyval=false
13445 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
13450 enable_float4_byval=yes
13452 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13454 float4passbyval=true
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
13459 $as_echo "$enable_float4_byval" >&6; }
13461 cat >>confdefs.h <<_ACEOF
13462 #define FLOAT4PASSBYVAL $float4passbyval
13466 # Decide whether float8 is passed by value.
13467 # Note: this setting also controls int8 and related types such as timestamp.
13468 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
13469 # If not, trying to select it is an error.
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
13471 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
13472 if test $ac_cv_sizeof_void_p -ge 8 ; then
13475 # Check whether --enable-float8-byval was given.
13476 if test "${enable_float8_byval+set}" = set; then :
13477 enableval=$enable_float8_byval;
13486 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13491 enable_float8_byval=yes
13499 # Check whether --enable-float8-byval was given.
13500 if test "${enable_float8_byval+set}" = set; then :
13501 enableval=$enable_float8_byval;
13510 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13515 enable_float8_byval=no
13520 if test "$enable_float8_byval" = yes ; then
13521 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
13524 if test "$enable_float8_byval" = yes ; then
13526 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
13528 float8passbyval=true
13530 float8passbyval=false
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
13533 $as_echo "$enable_float8_byval" >&6; }
13535 cat >>confdefs.h <<_ACEOF
13536 #define FLOAT8PASSBYVAL $float8passbyval
13540 # Determine memory alignment requirements for the basic C data types.
13542 # The cast to long int works around a bug in the HP C Compiler,
13543 # see AC_CHECK_SIZEOF for more information.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
13545 $as_echo_n "checking alignment of short... " >&6; }
13546 if ${ac_cv_alignof_short+:} false; then :
13547 $as_echo_n "(cached) " >&6
13549 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
13551 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13553 typedef struct { char x; short y; } ac__type_alignof_;"; then :
13556 if test "$ac_cv_type_short" = yes; then
13557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13559 as_fn_error 77 "cannot compute alignment of short
13560 See \`config.log' for more details" "$LINENO" 5; }
13562 ac_cv_alignof_short=0
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
13568 $as_echo "$ac_cv_alignof_short" >&6; }
13572 cat >>confdefs.h <<_ACEOF
13573 #define ALIGNOF_SHORT $ac_cv_alignof_short
13577 # The cast to long int works around a bug in the HP C Compiler,
13578 # see AC_CHECK_SIZEOF for more information.
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
13580 $as_echo_n "checking alignment of int... " >&6; }
13581 if ${ac_cv_alignof_int+:} false; then :
13582 $as_echo_n "(cached) " >&6
13584 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
13586 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13588 typedef struct { char x; int y; } ac__type_alignof_;"; then :
13591 if test "$ac_cv_type_int" = yes; then
13592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13594 as_fn_error 77 "cannot compute alignment of int
13595 See \`config.log' for more details" "$LINENO" 5; }
13597 ac_cv_alignof_int=0
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
13603 $as_echo "$ac_cv_alignof_int" >&6; }
13607 cat >>confdefs.h <<_ACEOF
13608 #define ALIGNOF_INT $ac_cv_alignof_int
13612 # The cast to long int works around a bug in the HP C Compiler,
13613 # see AC_CHECK_SIZEOF for more information.
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
13615 $as_echo_n "checking alignment of long... " >&6; }
13616 if ${ac_cv_alignof_long+:} false; then :
13617 $as_echo_n "(cached) " >&6
13619 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
13621 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13623 typedef struct { char x; long y; } ac__type_alignof_;"; then :
13626 if test "$ac_cv_type_long" = yes; then
13627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13629 as_fn_error 77 "cannot compute alignment of long
13630 See \`config.log' for more details" "$LINENO" 5; }
13632 ac_cv_alignof_long=0
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
13638 $as_echo "$ac_cv_alignof_long" >&6; }
13642 cat >>confdefs.h <<_ACEOF
13643 #define ALIGNOF_LONG $ac_cv_alignof_long
13647 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13648 # The cast to long int works around a bug in the HP C Compiler,
13649 # see AC_CHECK_SIZEOF for more information.
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
13651 $as_echo_n "checking alignment of long long int... " >&6; }
13652 if ${ac_cv_alignof_long_long_int+:} false; then :
13653 $as_echo_n "(cached) " >&6
13655 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
13657 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13659 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
13662 if test "$ac_cv_type_long_long_int" = yes; then
13663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13665 as_fn_error 77 "cannot compute alignment of long long int
13666 See \`config.log' for more details" "$LINENO" 5; }
13668 ac_cv_alignof_long_long_int=0
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
13674 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
13678 cat >>confdefs.h <<_ACEOF
13679 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
13684 # The cast to long int works around a bug in the HP C Compiler,
13685 # see AC_CHECK_SIZEOF for more information.
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13687 $as_echo_n "checking alignment of double... " >&6; }
13688 if ${ac_cv_alignof_double+:} false; then :
13689 $as_echo_n "(cached) " >&6
13691 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
13693 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13695 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13698 if test "$ac_cv_type_double" = yes; then
13699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13701 as_fn_error 77 "cannot compute alignment of double
13702 See \`config.log' for more details" "$LINENO" 5; }
13704 ac_cv_alignof_double=0
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13710 $as_echo "$ac_cv_alignof_double" >&6; }
13714 cat >>confdefs.h <<_ACEOF
13715 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13720 # Compute maximum alignment of any basic type.
13721 # We assume long's alignment is at least as strong as char, short, or int;
13722 # but we must check long long (if it exists) and double.
13724 MAX_ALIGNOF=$ac_cv_alignof_long
13725 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
13726 MAX_ALIGNOF=$ac_cv_alignof_double
13728 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
13729 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
13732 cat >>confdefs.h <<_ACEOF
13733 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
13738 # Some platforms predefine the types int8, int16, etc. Only check
13739 # a (hopefully) representative subset.
13740 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
13742 if test "x$ac_cv_type_int8" = xyes; then :
13744 cat >>confdefs.h <<_ACEOF
13745 #define HAVE_INT8 1
13750 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
13752 if test "x$ac_cv_type_uint8" = xyes; then :
13754 cat >>confdefs.h <<_ACEOF
13755 #define HAVE_UINT8 1
13760 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
13762 if test "x$ac_cv_type_int64" = xyes; then :
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_INT64 1
13770 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
13772 if test "x$ac_cv_type_uint64" = xyes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define HAVE_UINT64 1
13782 # We also check for sig_atomic_t, which *should* be defined per ANSI
13783 # C, but is missing on some old platforms.
13784 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
13786 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_SIG_ATOMIC_T 1
13797 if test "$PORTNAME" != "win32"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX signal interface" >&5
13800 $as_echo_n "checking for POSIX signal interface... " >&6; }
13801 if ${pgac_cv_func_posix_signals+:} false; then :
13802 $as_echo_n "(cached) " >&6
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 #include <signal.h>
13811 struct sigaction act, oact;
13812 sigemptyset(&act.sa_mask);
13813 act.sa_flags = SA_RESTART;
13814 sigaction(0, &act, &oact);
13819 if ac_fn_c_try_link "$LINENO"; then :
13820 pgac_cv_func_posix_signals=yes
13822 pgac_cv_func_posix_signals=no
13824 rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_posix_signals" >&5
13828 $as_echo "$pgac_cv_func_posix_signals" >&6; }
13829 if test x"$pgac_cv_func_posix_signals" = xyes ; then
13831 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13834 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
13836 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
13838 Thread-safety requires POSIX signals, which are not supported by this
13839 operating system; use --disable-thread-safety to disable thread safety." "$LINENO" 5
13844 # Select semaphore implementation type.
13845 if test "$PORTNAME" != "win32"; then
13846 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
13848 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13850 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13852 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
13854 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13856 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13859 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
13861 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
13866 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
13868 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
13872 # Select shared-memory implementation type.
13873 if test "$PORTNAME" != "win32"; then
13875 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
13877 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
13880 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
13882 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
13885 # Select latch implementation type.
13886 if test "$PORTNAME" != "win32"; then
13887 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
13889 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
13892 # If not set in template file, set bytes to use libc memset()
13893 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
13894 MEMSET_LOOP_LIMIT=1024
13897 cat >>confdefs.h <<_ACEOF
13898 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
13903 if test "$enable_nls" = yes ; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
13906 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
13907 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13908 $as_echo_n "(cached) " >&6
13910 ac_func_search_save_LIBS=$LIBS
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13920 char bind_textdomain_codeset ();
13924 return bind_textdomain_codeset ();
13929 for ac_lib in '' intl; do
13930 if test -z "$ac_lib"; then
13931 ac_res="none required"
13934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13936 if ac_fn_c_try_link "$LINENO"; then :
13937 ac_cv_search_bind_textdomain_codeset=$ac_res
13939 rm -f core conftest.err conftest.$ac_objext \
13941 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13945 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13948 ac_cv_search_bind_textdomain_codeset=no
13950 rm conftest.$ac_ext
13951 LIBS=$ac_func_search_save_LIBS
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
13954 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
13955 ac_res=$ac_cv_search_bind_textdomain_codeset
13956 if test "$ac_res" != no; then :
13957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13960 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
13963 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13964 if test "x$ac_cv_header_libintl_h" = xyes; then :
13967 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
13971 for ac_prog in msgfmt
13973 # Extract the first word of "$ac_prog", so it can be a program name with args.
13974 set dummy $ac_prog; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_prog_MSGFMT+:} false; then :
13978 $as_echo_n "(cached) " >&6
13980 if test -n "$MSGFMT"; then
13981 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984 for as_dir in $PATH
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
13989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13990 ac_cv_prog_MSGFMT="$ac_prog"
13991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 MSGFMT=$ac_cv_prog_MSGFMT
14001 if test -n "$MSGFMT"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14003 $as_echo "$MSGFMT" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14010 test -n "$MSGFMT" && break
14013 if test -z "$MSGFMT"; then
14014 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
14017 $as_echo_n "checking for msgfmt flags... " >&6; }
14018 if ${pgac_cv_msgfmt_flags+:} false; then :
14019 $as_echo_n "(cached) " >&6
14021 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
14022 pgac_cv_msgfmt_flags=-c
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
14026 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
14027 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
14029 for ac_prog in msgmerge
14031 # Extract the first word of "$ac_prog", so it can be a program name with args.
14032 set dummy $ac_prog; ac_word=$2
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if ${ac_cv_prog_MSGMERGE+:} false; then :
14036 $as_echo_n "(cached) " >&6
14038 if test -n "$MSGMERGE"; then
14039 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_prog_MSGMERGE="$ac_prog"
14049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 MSGMERGE=$ac_cv_prog_MSGMERGE
14059 if test -n "$MSGMERGE"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14061 $as_echo "$MSGMERGE" >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14068 test -n "$MSGMERGE" && break
14071 for ac_prog in xgettext
14073 # Extract the first word of "$ac_prog", so it can be a program name with args.
14074 set dummy $ac_prog; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if ${ac_cv_prog_XGETTEXT+:} false; then :
14078 $as_echo_n "(cached) " >&6
14080 if test -n "$XGETTEXT"; then
14081 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14090 ac_cv_prog_XGETTEXT="$ac_prog"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100 XGETTEXT=$ac_cv_prog_XGETTEXT
14101 if test -n "$XGETTEXT"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14103 $as_echo "$XGETTEXT" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14110 test -n "$XGETTEXT" && break
14116 # Check for Tcl configuration script tclConfig.sh
14117 if test "$with_tcl" = yes; then
14118 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
14120 # Extract the first word of "$ac_prog", so it can be a program name with args.
14121 set dummy $ac_prog; ac_word=$2
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14123 $as_echo_n "checking for $ac_word... " >&6; }
14124 if ${ac_cv_path_TCLSH+:} false; then :
14125 $as_echo_n "(cached) " >&6
14129 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133 for as_dir in $PATH
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
14138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
14140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 TCLSH=$ac_cv_path_TCLSH
14151 if test -n "$TCLSH"; then
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14153 $as_echo "$TCLSH" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14160 test -n "$TCLSH" && break
14163 if test x"$TCLSH" = x""; then
14164 as_fn_error $? "Tcl shell not found" "$LINENO" 5
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
14168 $as_echo_n "checking for tclConfig.sh... " >&6; }
14169 # Let user override test
14170 if test -z "$TCL_CONFIG_SH"; then
14171 pgac_test_dirs="$with_tclconfig"
14173 set X $pgac_test_dirs; shift
14174 if test $# -eq 0; then
14175 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
14176 set X `echo 'puts $auto_path' | $TCLSH`; shift
14180 if test -r "$pgac_dir/tclConfig.sh"; then
14181 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
14187 if test -z "$TCL_CONFIG_SH"; then
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
14193 $as_echo "$TCL_CONFIG_SH" >&6; }
14199 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
14200 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
14201 eval TCL_LIBS=\"$TCL_LIBS\"
14202 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
14203 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
14205 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
14206 ac_save_CPPFLAGS=$CPPFLAGS
14207 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
14208 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
14209 if test "x$ac_cv_header_tcl_h" = xyes; then :
14212 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
14216 CPPFLAGS=$ac_save_CPPFLAGS
14219 # check for <perl.h>
14220 if test "$with_perl" = yes; then
14221 ac_save_CPPFLAGS=$CPPFLAGS
14222 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
14223 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
14225 if test "x$ac_cv_header_perl_h" = xyes; then :
14228 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
14232 # While we're at it, check that we can link to libperl.
14233 # On most platforms, if perl.h is there then libperl.so will be too, but at
14234 # this writing Debian packages them separately. There is no known reason to
14235 # waste cycles on separate probes for the Tcl or Python libraries, though.
14236 pgac_save_LIBS=$LIBS
14237 LIBS="$perl_embed_ldflags"
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
14239 $as_echo_n "checking for libperl... " >&6; }
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14243 #include <EXTERN.h>
14254 if ac_fn_c_try_link "$LINENO"; then :
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256 $as_echo "yes" >&6; }
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14260 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
14262 rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264 LIBS=$pgac_save_LIBS
14265 CPPFLAGS=$ac_save_CPPFLAGS
14268 # check for <Python.h>
14269 if test "$with_python" = yes; then
14270 ac_save_CPPFLAGS=$CPPFLAGS
14271 CPPFLAGS="$python_includespec $CPPFLAGS"
14272 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14273 if test "x$ac_cv_header_Python_h" = xyes; then :
14276 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
14280 CPPFLAGS=$ac_save_CPPFLAGS
14284 # Check for DocBook and tools
14286 for ac_prog in onsgmls nsgmls
14288 # Extract the first word of "$ac_prog", so it can be a program name with args.
14289 set dummy $ac_prog; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291 $as_echo_n "checking for $ac_word... " >&6; }
14292 if ${ac_cv_prog_NSGMLS+:} false; then :
14293 $as_echo_n "(cached) " >&6
14295 if test -n "$NSGMLS"; then
14296 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_NSGMLS="$ac_prog"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14315 NSGMLS=$ac_cv_prog_NSGMLS
14316 if test -n "$NSGMLS"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
14318 $as_echo "$NSGMLS" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14325 test -n "$NSGMLS" && break
14328 for ac_prog in openjade jade
14330 # Extract the first word of "$ac_prog", so it can be a program name with args.
14331 set dummy $ac_prog; ac_word=$2
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333 $as_echo_n "checking for $ac_word... " >&6; }
14334 if ${ac_cv_prog_JADE+:} false; then :
14335 $as_echo_n "(cached) " >&6
14337 if test -n "$JADE"; then
14338 ac_cv_prog_JADE="$JADE" # Let the user override the test.
14340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341 for as_dir in $PATH
14344 test -z "$as_dir" && as_dir=.
14345 for ac_exec_ext in '' $ac_executable_extensions; do
14346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14347 ac_cv_prog_JADE="$ac_prog"
14348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 JADE=$ac_cv_prog_JADE
14358 if test -n "$JADE"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
14360 $as_echo "$JADE" >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363 $as_echo "no" >&6; }
14367 test -n "$JADE" && break
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
14372 $as_echo_n "checking for DocBook V4.2... " >&6; }
14373 if ${pgac_cv_check_docbook+:} false; then :
14374 $as_echo_n "(cached) " >&6
14376 cat >conftest.sgml <<EOF
14377 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
14379 <title>test</title>
14381 <title>random</title>
14383 <title>testsect</title>
14390 pgac_cv_check_docbook=no
14392 if test -n "$NSGMLS"; then
14393 $NSGMLS -s conftest.sgml 1>&5 2>&1
14394 if test $? -eq 0; then
14395 pgac_cv_check_docbook=yes
14398 rm -f conftest.sgml
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
14401 $as_echo "$pgac_cv_check_docbook" >&6; }
14403 have_docbook=$pgac_cv_check_docbook
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
14407 $as_echo_n "checking for DocBook stylesheets... " >&6; }
14408 if ${pgac_cv_path_stylesheets+:} false; then :
14409 $as_echo_n "(cached) " >&6
14411 if test -n "$DOCBOOKSTYLE"; then
14412 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
14414 for pgac_prefix in /usr /usr/local /opt /sw; do
14415 for pgac_infix in share lib; do
14416 for pgac_postfix in \
14417 sgml/stylesheets/nwalsh-modular \
14418 sgml/stylesheets/docbook \
14419 sgml/stylesheets/dsssl/docbook \
14420 sgml/docbook-dsssl \
14421 sgml/docbook/dsssl/modular \
14422 sgml/docbook/stylesheet/dsssl/modular \
14423 sgml/docbook/dsssl-stylesheets \
14424 sgml/dsssl/docbook-dsssl-nwalsh
14426 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
14427 if test -r "$pgac_candidate/html/docbook.dsl" \
14428 && test -r "$pgac_candidate/print/docbook.dsl"
14430 pgac_cv_path_stylesheets=$pgac_candidate
14439 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
14441 if test -n "$DOCBOOKSTYLE"; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
14443 $as_echo "$DOCBOOKSTYLE" >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14448 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
14449 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
14452 # Extract the first word of "collateindex.pl", so it can be a program name with args.
14453 set dummy collateindex.pl; ac_word=$2
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14455 $as_echo_n "checking for $ac_word... " >&6; }
14456 if ${ac_cv_path_COLLATEINDEX+:} false; then :
14457 $as_echo_n "(cached) " >&6
14459 case $COLLATEINDEX in
14461 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
14464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14468 test -z "$as_dir" && as_dir=.
14469 for ac_exec_ext in '' $ac_executable_extensions; do
14470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14471 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
14472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14482 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
14483 if test -n "$COLLATEINDEX"; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
14485 $as_echo "$COLLATEINDEX" >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14493 for ac_prog in xsltproc
14495 # Extract the first word of "$ac_prog", so it can be a program name with args.
14496 set dummy $ac_prog; ac_word=$2
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14498 $as_echo_n "checking for $ac_word... " >&6; }
14499 if ${ac_cv_prog_XSLTPROC+:} false; then :
14500 $as_echo_n "(cached) " >&6
14502 if test -n "$XSLTPROC"; then
14503 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512 ac_cv_prog_XSLTPROC="$ac_prog"
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14522 XSLTPROC=$ac_cv_prog_XSLTPROC
14523 if test -n "$XSLTPROC"; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14525 $as_echo "$XSLTPROC" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 $as_echo "no" >&6; }
14532 test -n "$XSLTPROC" && break
14535 for ac_prog in osx sgml2xml sx
14537 # Extract the first word of "$ac_prog", so it can be a program name with args.
14538 set dummy $ac_prog; ac_word=$2
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 $as_echo_n "checking for $ac_word... " >&6; }
14541 if ${ac_cv_prog_OSX+:} false; then :
14542 $as_echo_n "(cached) " >&6
14544 if test -n "$OSX"; then
14545 ac_cv_prog_OSX="$OSX" # Let the user override the test.
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554 ac_cv_prog_OSX="$ac_prog"
14555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 OSX=$ac_cv_prog_OSX
14565 if test -n "$OSX"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
14567 $as_echo "$OSX" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570 $as_echo "no" >&6; }
14574 test -n "$OSX" && break
14579 # Check for test tools
14581 for ac_prog in prove
14583 # Extract the first word of "$ac_prog", so it can be a program name with args.
14584 set dummy $ac_prog; ac_word=$2
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14586 $as_echo_n "checking for $ac_word... " >&6; }
14587 if ${ac_cv_prog_PROVE+:} false; then :
14588 $as_echo_n "(cached) " >&6
14590 if test -n "$PROVE"; then
14591 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
14593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594 for as_dir in $PATH
14597 test -z "$as_dir" && as_dir=.
14598 for ac_exec_ext in '' $ac_executable_extensions; do
14599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600 ac_cv_prog_PROVE="$ac_prog"
14601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14610 PROVE=$ac_cv_prog_PROVE
14611 if test -n "$PROVE"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
14613 $as_echo "$PROVE" >&6; }
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14620 test -n "$PROVE" && break
14626 # We have to run the thread test near the end so we have all our symbols
14627 # defined. Cross compiling throws a warning.
14629 if test "$enable_thread_safety" = yes; then
14630 if test "$PORTNAME" != "win32"
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
14633 $as_echo_n "checking thread safety of required library functions... " >&6; }
14637 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
14638 LIBS="$LIBS $PTHREAD_LIBS"
14639 if test "$cross_compiling" = yes; then :
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
14641 $as_echo "maybe" >&6; }
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14643 *** Skipping thread test program because of cross-compile build.
14644 *** Run the program in src/test/thread on the target machine.
14646 $as_echo "$as_me: WARNING:
14647 *** Skipping thread test program because of cross-compile build.
14648 *** Run the program in src/test/thread on the target machine.
14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 #include "$srcdir/src/test/thread/thread_test.c"
14655 if ac_fn_c_try_run "$LINENO"; then :
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657 $as_echo "yes" >&6; }
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14661 as_fn_error $? "thread test program failed
14662 This platform is not thread-safe. Check the file 'config.log' or compile
14663 and run src/test/thread/thread_test for the exact reason.
14664 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
14666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14667 conftest.$ac_objext conftest.beam conftest.$ac_ext
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
14674 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
14678 # If compiler will take -Wl,--as-needed (or various platform-specific
14679 # spellings thereof) then add that to LDFLAGS. This is much easier than
14680 # trying to filter LIBS to the minimum for each executable.
14681 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
14682 # libreadline; therefore we postpone testing it until we know what library
14683 # dependencies readline has. The test code will try to link with $LIBS.
14684 if test "$with_readline" = yes; then
14685 link_test_func=readline
14687 link_test_func=exit
14690 if test "$PORTNAME" = "darwin"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
14692 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
14693 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
14694 $as_echo_n "(cached) " >&6
14696 pgac_save_LDFLAGS=$LDFLAGS
14697 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
14698 if test "$cross_compiling" = yes; then :
14699 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14712 if ac_fn_c_try_run "$LINENO"; then :
14713 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
14715 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
14717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14718 conftest.$ac_objext conftest.beam conftest.$ac_ext
14721 LDFLAGS="$pgac_save_LDFLAGS"
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
14724 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
14725 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
14726 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
14729 elif test "$PORTNAME" = "openbsd"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
14731 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
14732 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
14733 $as_echo_n "(cached) " >&6
14735 pgac_save_LDFLAGS=$LDFLAGS
14736 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
14737 if test "$cross_compiling" = yes; then :
14738 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14751 if ac_fn_c_try_run "$LINENO"; then :
14752 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
14754 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
14756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14757 conftest.$ac_objext conftest.beam conftest.$ac_ext
14760 LDFLAGS="$pgac_save_LDFLAGS"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
14763 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
14764 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
14765 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
14770 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
14771 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
14772 $as_echo_n "(cached) " >&6
14774 pgac_save_LDFLAGS=$LDFLAGS
14775 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
14776 if test "$cross_compiling" = yes; then :
14777 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14790 if ac_fn_c_try_run "$LINENO"; then :
14791 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
14793 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
14795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14796 conftest.$ac_objext conftest.beam conftest.$ac_ext
14799 LDFLAGS="$pgac_save_LDFLAGS"
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
14802 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
14803 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
14804 LDFLAGS="$LDFLAGS -Wl,--as-needed"
14809 # Create compiler version string
14810 if test x"$GCC" = x"yes" ; then
14811 cc_string=`${CC} --version | sed q`
14812 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
14813 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
14814 cc_string=`${CC} -V 2>&1 | sed q`
14820 cat >>confdefs.h <<_ACEOF
14821 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
14825 # Supply a numeric version string for use by 3rd party add-ons
14826 # awk -F is a regex on some platforms, and not on others, so make "." a tab
14827 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
14829 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
14831 cat >>confdefs.h <<_ACEOF
14832 #define PG_VERSION_NUM $PG_VERSION_NUM
14837 # Begin output steps
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
14840 $as_echo "$as_me: using compiler=$cc_string" >&6;}
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
14842 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
14844 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
14846 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
14848 # prepare build tree if outside source tree
14849 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
14850 # Note 2: /bin/pwd might be better than shell's built-in at getting
14851 # a symlink-free name.
14852 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
14856 if test "$no_create" != yes; then
14857 $as_echo_n "preparing build tree... " >&6
14858 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
14859 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
14860 || as_fn_error $? "failed" "$LINENO" 5
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14862 $as_echo "done" >&6; }
14868 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
14871 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}"
14874 if test "$PORTNAME" = "win32"; then
14875 ac_config_commands="$ac_config_commands check_win32_symlinks"
14879 ac_config_headers="$ac_config_headers src/include/pg_config.h"
14882 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
14885 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
14888 cat >confcache <<\_ACEOF
14889 # This file is a shell script that caches the results of configure
14890 # tests run on this system so they can be shared between configure
14891 # scripts and configure runs, see configure's option --config-cache.
14892 # It is not useful on other systems. If it contains results you don't
14893 # want to keep, you may remove or edit it.
14895 # config.status only pays attention to the cache file if you give it
14896 # the --recheck option to rerun configure.
14898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14900 # following values.
14904 # The following way of writing the cache mishandles newlines in values,
14905 # but we know of no workaround that is simple, portable, and efficient.
14906 # So, we kill variables containing newlines.
14907 # Ultrix sh set writes to stderr and can't be redirected directly,
14908 # and sets the high bit in the cache file unless we assign to the vars.
14910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14911 eval ac_val=\$$ac_var
14915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14919 _ | IFS | as_nl) ;; #(
14920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14921 *) { eval $ac_var=; unset $ac_var;} ;;
14927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14928 *${as_nl}ac_space=\ *)
14929 # `set' does not quote correctly, so add quotes: double-quote
14930 # substitution turns \\\\ into \\, and sed turns \\ into \.
14933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14936 # `set' quotes correctly as required by POSIX, so do not add quotes.
14937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14951 if test -w "$cache_file"; then
14952 if test "x$cache_file" != "x/dev/null"; then
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14954 $as_echo "$as_me: updating cache $cache_file" >&6;}
14955 if test ! -f "$cache_file" || test -h "$cache_file"; then
14956 cat confcache >"$cache_file"
14958 case $cache_file in #(
14960 mv -f confcache "$cache_file"$$ &&
14961 mv -f "$cache_file"$$ "$cache_file" ;; #(
14963 mv -f confcache "$cache_file" ;;
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14975 # Let make expand exec_prefix.
14976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14978 DEFS=-DHAVE_CONFIG_H
14983 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14984 # 1. Remove the extension, and $U if already installed.
14985 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14986 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14987 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14988 # will be set to the directory where LIBOBJS objects are built.
14989 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14990 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14992 LIBOBJS=$ac_libobjs
14994 LTLIBOBJS=$ac_ltlibobjs
14999 : "${CONFIG_STATUS=./config.status}"
15001 ac_clean_files_save=$ac_clean_files
15002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15008 # Generated by $as_me.
15009 # Run this file to recreate the current configuration.
15010 # Compiler output produced by configure, useful for debugging
15011 # configure, is in config.log if it exists.
15014 ac_cs_recheck=false
15017 SHELL=\${CONFIG_SHELL-$SHELL}
15020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15021 ## -------------------- ##
15022 ## M4sh Initialization. ##
15023 ## -------------------- ##
15025 # Be more Bourne compatible
15026 DUALCASE=1; export DUALCASE # for MKS sh
15027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15030 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15031 # is contrary to our usage. Disable this feature.
15032 alias -g '${1+"$@"}'='"$@"'
15033 setopt NO_GLOB_SUBST
15035 case `(set -o) 2>/dev/null` in #(
15047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15048 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15051 # Prefer a ksh shell builtin over an external printf program on Solaris,
15052 # but without wasting forks for bash or zsh.
15053 if test -z "$BASH_VERSION$ZSH_VERSION" \
15054 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15055 as_echo='print -r --'
15056 as_echo_n='print -rn --'
15057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15058 as_echo='printf %s\n'
15059 as_echo_n='printf %s'
15061 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15062 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15063 as_echo_n='/usr/ucb/echo -n'
15065 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15066 as_echo_n_body='eval
15070 expr "X$arg" : "X\\(.*\\)$as_nl";
15071 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15073 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15075 export as_echo_n_body
15076 as_echo_n='sh -c $as_echo_n_body as_echo'
15078 export as_echo_body
15079 as_echo='sh -c $as_echo_body as_echo'
15082 # The user is always right.
15083 if test "${PATH_SEPARATOR+set}" != set; then
15085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15086 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15093 # We need space, tab and new line, in precisely that order. Quoting is
15094 # there to prevent editors from complaining about space-tab.
15095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15096 # splitting by setting IFS to empty value.)
15099 # Find who we are. Look in the path if we contain no directory separator.
15102 *[\\/]* ) as_myself=$0 ;;
15103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $PATH
15107 test -z "$as_dir" && as_dir=.
15108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15114 # We did not find ourselves, most probably we were run as `sh COMMAND'
15115 # in which case we are not to be found in the path.
15116 if test "x$as_myself" = x; then
15119 if test ! -f "$as_myself"; then
15120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15124 # Unset variables that we do not need and which cause bugs (e.g. in
15125 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15126 # suppresses any "Segmentation fault" message there. '((' could
15127 # trigger a bug in pdksh 5.2.14.
15128 for as_var in BASH_ENV ENV MAIL MAILPATH
15129 do eval test x\${$as_var+set} = xset \
15130 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15146 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15147 # ----------------------------------------
15148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15150 # script with STATUS, using 1 if that was 0.
15153 as_status=$1; test $as_status -eq 0 && as_status=1
15155 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15156 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15158 $as_echo "$as_me: error: $2" >&2
15159 as_fn_exit $as_status
15163 # as_fn_set_status STATUS
15164 # -----------------------
15165 # Set $? to STATUS, without forking.
15166 as_fn_set_status ()
15169 } # as_fn_set_status
15171 # as_fn_exit STATUS
15172 # -----------------
15173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15177 as_fn_set_status $1
15183 # Portably unset VAR.
15186 { eval $1=; unset $1;}
15188 as_unset=as_fn_unset
15189 # as_fn_append VAR VALUE
15190 # ----------------------
15191 # Append the text in VALUE to the end of the definition contained in VAR. Take
15192 # advantage of any shell optimizations that allow amortized linear growth over
15193 # repeated appends, instead of the typical quadratic growth present in naive
15195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15196 eval 'as_fn_append ()
15207 # as_fn_arith ARG...
15208 # ------------------
15209 # Perform arithmetic evaluation on the ARGs, and store the result in the
15210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15211 # must be portable across $(()) and expr.
15212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15213 eval 'as_fn_arith ()
15220 as_val=`expr "$@" || test $? -eq 1`
15225 if expr a : '\(a\)' >/dev/null 2>&1 &&
15226 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15233 as_basename=basename
15238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15244 as_me=`$as_basename -- "$0" ||
15245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15246 X"$0" : 'X\(//\)$' \| \
15247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15249 sed '/^.*\/\([^/][^/]*\)\/*$/{
15263 # Avoid depending upon Character Ranges.
15264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15267 as_cr_digits='0123456789'
15268 as_cr_alnum=$as_cr_Letters$as_cr_digits
15270 ECHO_C= ECHO_N= ECHO_T=
15271 case `echo -n x` in #(((((
15273 case `echo 'xy\c'` in
15274 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15276 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15283 rm -f conf$$ conf$$.exe conf$$.file
15284 if test -d conf$$.dir; then
15285 rm -f conf$$.dir/conf$$.file
15288 mkdir conf$$.dir 2>/dev/null
15290 if (echo >conf$$.file) 2>/dev/null; then
15291 if ln -s conf$$.file conf$$ 2>/dev/null; then
15293 # ... but there are two gotchas:
15294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15296 # In both cases, we have to default to `cp -pR'.
15297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15299 elif ln conf$$.file conf$$ 2>/dev/null; then
15307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15308 rmdir conf$$.dir 2>/dev/null
15313 # Create "$as_dir" as a directory, including parents if necessary.
15318 -*) as_dir=./$as_dir;;
15320 test -d "$as_dir" || eval $as_mkdir_p || {
15324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15325 *) as_qdir=$as_dir;;
15327 as_dirs="'$as_qdir' $as_dirs"
15328 as_dir=`$as_dirname -- "$as_dir" ||
15329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15330 X"$as_dir" : 'X\(//\)[^/]' \| \
15331 X"$as_dir" : 'X\(//\)$' \| \
15332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15333 $as_echo X"$as_dir" |
15334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15338 /^X\(\/\/\)[^/].*/{
15351 test -d "$as_dir" && break
15353 test -z "$as_dirs" || eval "mkdir $as_dirs"
15354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15358 if mkdir -p . 2>/dev/null; then
15359 as_mkdir_p='mkdir -p "$as_dir"'
15361 test -d ./-p && rmdir ./-p
15366 # as_fn_executable_p FILE
15367 # -----------------------
15368 # Test if FILE is an executable regular file.
15369 as_fn_executable_p ()
15371 test -f "$1" && test -x "$1"
15372 } # as_fn_executable_p
15373 as_test_x='test -x'
15374 as_executable_p=as_fn_executable_p
15376 # Sed expression to map a string onto a valid CPP name.
15377 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15379 # Sed expression to map a string onto a valid variable name.
15380 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15384 ## ----------------------------------- ##
15385 ## Main body of $CONFIG_STATUS script. ##
15386 ## ----------------------------------- ##
15388 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15391 # Save the log message, to keep $0 and so on meaningful, and to
15392 # report actual input values of CONFIG_FILES etc. instead of their
15393 # values after options handling.
15395 This file was extended by PostgreSQL $as_me 9.4beta1, which was
15396 generated by GNU Autoconf 2.69. Invocation command line was
15398 CONFIG_FILES = $CONFIG_FILES
15399 CONFIG_HEADERS = $CONFIG_HEADERS
15400 CONFIG_LINKS = $CONFIG_LINKS
15401 CONFIG_COMMANDS = $CONFIG_COMMANDS
15404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15409 case $ac_config_files in *"
15410 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15413 case $ac_config_headers in *"
15414 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15419 # Files that config.status was made for.
15420 config_files="$ac_config_files"
15421 config_headers="$ac_config_headers"
15422 config_links="$ac_config_links"
15423 config_commands="$ac_config_commands"
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429 \`$as_me' instantiates files and other configuration actions
15430 from templates according to the current configuration. Unless the files
15431 and actions are specified as TAGs, all are instantiated by default.
15433 Usage: $0 [OPTION]... [TAG]...
15435 -h, --help print this help, then exit
15436 -V, --version print version number and configuration settings, then exit
15437 --config print configuration, then exit
15438 -q, --quiet, --silent
15439 do not print progress messages
15440 -d, --debug don't remove temporary files
15441 --recheck update $as_me by reconfiguring in the same conditions
15442 --file=FILE[:TEMPLATE]
15443 instantiate the configuration file FILE
15444 --header=FILE[:TEMPLATE]
15445 instantiate the configuration header FILE
15447 Configuration files:
15450 Configuration headers:
15453 Configuration links:
15456 Configuration commands:
15459 Report bugs to <pgsql-bugs@postgresql.org>."
15462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15465 PostgreSQL config.status 9.4beta1
15466 configured by $0, generated by GNU Autoconf 2.69,
15467 with options \\"\$ac_cs_config\\"
15469 Copyright (C) 2012 Free Software Foundation, Inc.
15470 This config.status script is free software; the Free Software Foundation
15471 gives unlimited permission to copy, distribute and modify it."
15478 test -n "\$AWK" || AWK=awk
15481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482 # The default lists apply if the user does not specify any file.
15488 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15489 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15493 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15505 # Handling of the options.
15506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15508 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15509 $as_echo "$ac_cs_version"; exit ;;
15510 --config | --confi | --conf | --con | --co | --c )
15511 $as_echo "$ac_cs_config"; exit ;;
15512 --debug | --debu | --deb | --de | --d | -d )
15514 --file | --fil | --fi | --f )
15517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15518 '') as_fn_error $? "missing file argument" ;;
15520 as_fn_append CONFIG_FILES " '$ac_optarg'"
15521 ac_need_defaults=false;;
15522 --header | --heade | --head | --hea )
15525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15527 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15528 ac_need_defaults=false;;
15530 # Conflict between --help and --header
15531 as_fn_error $? "ambiguous option: \`$1'
15532 Try \`$0 --help' for more information.";;
15533 --help | --hel | -h )
15534 $as_echo "$ac_cs_usage"; exit ;;
15535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15536 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15539 # This is an error.
15540 -*) as_fn_error $? "unrecognized option: \`$1'
15541 Try \`$0 --help' for more information." ;;
15543 *) as_fn_append ac_config_targets " $1"
15544 ac_need_defaults=false ;;
15550 ac_configure_extra_args=
15552 if $ac_cs_silent; then
15554 ac_configure_extra_args="$ac_configure_extra_args --silent"
15558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15559 if \$ac_cs_recheck; then
15560 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15563 CONFIG_SHELL='$SHELL'
15564 export CONFIG_SHELL
15569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15574 ## Running $as_me. ##
15580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 # Handling of arguments.
15586 for ac_config_target in $ac_config_targets
15588 case $ac_config_target in
15589 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
15590 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
15591 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
15592 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
15593 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
15594 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
15595 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
15596 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
15597 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
15598 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
15599 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
15600 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
15601 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
15602 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
15604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15609 # If the user did not use the arguments to specify the items to instantiate,
15610 # then the envvar interface is used. Set only those that are not.
15611 # We use the long form for the default assignment because of an extremely
15612 # bizarre bug on SunOS 4.1.3.
15613 if $ac_need_defaults; then
15614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15616 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15620 # Have a temporary directory for convenience. Make it in the build tree
15621 # simply because there is no reason against having it here, and in addition,
15622 # creating and moving files from /tmp can sometimes cause problems.
15623 # Hook for its removal unless debugging.
15624 # Note that there is a small window in which the directory will not be cleaned:
15625 # after its creation but before its name has been assigned to `$tmp'.
15629 trap 'exit_status=$?
15630 : "${ac_tmp:=$tmp}"
15631 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15633 trap 'as_fn_exit 1' 1 2 13 15
15635 # Create a (secure) tmp directory for tmp files.
15638 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15642 tmp=./conf$$-$RANDOM
15643 (umask 077 && mkdir "$tmp")
15644 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15647 # Set up the scripts for CONFIG_FILES section.
15648 # No need to generate them if there are no CONFIG_FILES.
15649 # This happens for instance with `./config.status config.h'.
15650 if test -n "$CONFIG_FILES"; then
15653 ac_cr=`echo X | tr X '\015'`
15654 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15655 # But we know of no other shell where ac_cr would be empty at this
15656 # point, so we can use a bashism as a fallback.
15657 if test "x$ac_cr" = x; then
15658 eval ac_cr=\$\'\\r\'
15660 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15661 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15664 ac_cs_awk_cr=$ac_cr
15667 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15672 echo "cat >conf$$subs.awk <<_ACEOF" &&
15673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15675 } >conf$$subs.sh ||
15676 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15679 for ac_last_try in false false false false false :; do
15680 . ./conf$$subs.sh ||
15681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15683 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15684 if test $ac_delim_n = $ac_delim_num; then
15686 elif $ac_last_try; then
15687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15692 rm -f conf$$subs.sh
15694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15699 s/^/S["/; s/!.*/"]=/
15709 s/\(.\{148\}\)..*/\1/
15711 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15716 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15723 s/\(.\{148\}\)..*/\1/
15725 s/["\\]/\\&/g; s/^/"/; s/$/"/
15729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15734 ' <conf$$subs.awk | sed '
15739 ' >>$CONFIG_STATUS || ac_write_fail=1
15740 rm -f conf$$subs.awk
15741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15744 for (key in S) S_is_set[key] = 1
15750 nfields = split(line, field, "@")
15752 len = length(field[1])
15753 for (i = 2; i < nfields; i++) {
15755 keylen = length(key)
15756 if (S_is_set[key]) {
15758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15759 len += length(value) + length(field[++i])
15770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15771 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15772 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15775 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15776 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15779 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15780 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15781 # trailing colons and then remove the whole line if VPATH becomes empty
15782 # (actually we leave an empty line to preserve line numbers).
15783 if test "x$srcdir" = x.; then
15784 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803 fi # test -n "$CONFIG_FILES"
15805 # Set up the scripts for CONFIG_HEADERS section.
15806 # No need to generate them if there are no CONFIG_HEADERS.
15807 # This happens for instance with `./config.status Makefile'.
15808 if test -n "$CONFIG_HEADERS"; then
15809 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15813 # Transform confdefs.h into an awk script `defines.awk', embedded as
15814 # here-document in config.status, that substitutes the proper values into
15815 # config.h.in to produce config.h.
15817 # Create a delimiter string that does not exist in confdefs.h, to ease
15818 # handling of long lines.
15820 for ac_last_try in false false :; do
15821 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15822 if test -z "$ac_tt"; then
15824 elif $ac_last_try; then
15825 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15831 # For the awk script, D is an array of macro values keyed by name,
15832 # likewise P contains macro parameters if any. Preserve backslash
15833 # newline sequences.
15835 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15837 s/.\{148\}/&'"$ac_delim"'/g
15840 s/^[ ]*#[ ]*define[ ][ ]*/ /
15847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15854 D["\1"]=" \3\\\\\\n"\\/p
15856 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15861 s/.\{148\}/&'"$ac_delim"'/g
15866 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15869 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15871 ' <confdefs.h | sed '
15872 s/'"$ac_delim"'/"\\\
15873 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15876 for (key in D) D_is_set[key] = 1
15879 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15881 split(line, arg, " ")
15882 if (arg[1] == "#") {
15886 defundef = substr(arg[1], 2)
15889 split(mac1, mac2, "(") #)
15891 prefix = substr(line, 1, index(line, defundef) - 1)
15892 if (D_is_set[macro]) {
15893 # Preserve the white space surrounding the "#".
15894 print prefix "define", macro P[macro] D[macro]
15897 # Replace #undef with comments. This is necessary, for example,
15898 # in the case of _POSIX_SOURCE, which is predefined and required
15899 # on some systems where configure will not decide to define it.
15900 if (defundef == "undef") {
15901 print "/*", prefix defundef, macro, "*/"
15909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15910 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15911 fi # test -n "$CONFIG_HEADERS"
15914 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15919 :[FHLC]) ac_mode=$ac_tag; continue;;
15921 case $ac_mode$ac_tag in
15923 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15924 :[FH]-) ac_tag=-:-;;
15925 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15942 -) ac_f="$ac_tmp/stdin";;
15943 *) # Look for the file first in the build tree, then in the source tree
15944 # (if the path is not absolute). The absolute path cannot be DOS-style,
15945 # because $ac_f cannot contain `:'.
15949 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15951 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15953 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15954 as_fn_append ac_file_inputs " '$ac_f'"
15957 # Let's still pretend it is `configure' which instantiates (i.e., don't
15958 # use $as_me), people would be surprised to read:
15959 # /* config.h. Generated by config.status. */
15960 configure_input='Generated from '`
15961 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15963 if test x"$ac_file" != x-; then
15964 configure_input="$ac_file. $configure_input"
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15966 $as_echo "$as_me: creating $ac_file" >&6;}
15968 # Neutralize special characters interpreted by sed in replacement strings.
15969 case $configure_input in #(
15970 *\&* | *\|* | *\\* )
15971 ac_sed_conf_input=`$as_echo "$configure_input" |
15972 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15973 *) ac_sed_conf_input=$configure_input;;
15977 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15983 ac_dir=`$as_dirname -- "$ac_file" ||
15984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15985 X"$ac_file" : 'X\(//\)[^/]' \| \
15986 X"$ac_file" : 'X\(//\)$' \| \
15987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15988 $as_echo X"$ac_file" |
15989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15993 /^X\(\/\/\)[^/].*/{
16006 as_dir="$ac_dir"; as_fn_mkdir_p
16010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16012 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16013 # A ".." for each directory in $ac_dir_suffix.
16014 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16015 case $ac_top_builddir_sub in
16016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16020 ac_abs_top_builddir=$ac_pwd
16021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16022 # for backward compatibility:
16023 ac_top_builddir=$ac_top_build_prefix
16026 .) # We are building in place.
16028 ac_top_srcdir=$ac_top_builddir_sub
16029 ac_abs_top_srcdir=$ac_pwd ;;
16030 [\\/]* | ?:[\\/]* ) # Absolute name.
16031 ac_srcdir=$srcdir$ac_dir_suffix;
16032 ac_top_srcdir=$srcdir
16033 ac_abs_top_srcdir=$srcdir ;;
16034 *) # Relative name.
16035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16036 ac_top_srcdir=$ac_top_build_prefix$srcdir
16037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16052 ac_MKDIR_P=$MKDIR_P
16054 [\\/$]* | ?:[\\/]* ) ;;
16055 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 # If the template does not know about datarootdir, expand it.
16061 # FIXME: This hack should be removed a few years after 2.60.
16062 ac_datarootdir_hack=; ac_datarootdir_seen=
16073 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16074 *datarootdir*) ac_datarootdir_seen=yes;;
16075 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16077 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16080 ac_datarootdir_hack='
16081 s&@datadir@&$datadir&g
16082 s&@docdir@&$docdir&g
16083 s&@infodir@&$infodir&g
16084 s&@localedir@&$localedir&g
16085 s&@mandir@&$mandir&g
16086 s&\\\${datarootdir}&$datarootdir&g' ;;
16090 # Neutralize VPATH when `$srcdir' = `.'.
16091 # Shell code in configure.ac might set extrasub.
16092 # FIXME: do we really want to maintain this feature?
16093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16094 ac_sed_extra="$ac_vpsub
16097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16100 s|@configure_input@|$ac_sed_conf_input|;t t
16101 s&@top_builddir@&$ac_top_builddir_sub&;t t
16102 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16103 s&@srcdir@&$ac_srcdir&;t t
16104 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16105 s&@top_srcdir@&$ac_top_srcdir&;t t
16106 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16107 s&@builddir@&$ac_builddir&;t t
16108 s&@abs_builddir@&$ac_abs_builddir&;t t
16109 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16110 s&@INSTALL@&$ac_INSTALL&;t t
16111 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16112 $ac_datarootdir_hack
16114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16115 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16118 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16120 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16122 which seems to be undefined. Please make sure it is defined" >&5
16123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16124 which seems to be undefined. Please make sure it is defined" >&2;}
16126 rm -f "$ac_tmp/stdin"
16128 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16129 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16137 if test x"$ac_file" != x-; then
16139 $as_echo "/* $configure_input */" \
16140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16141 } >"$ac_tmp/config.h" \
16142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16143 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16145 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16148 mv "$ac_tmp/config.h" "$ac_file" \
16149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16152 $as_echo "/* $configure_input */" \
16153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16154 || as_fn_error $? "could not create -" "$LINENO" 5
16162 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16165 # Prefer the file from the source tree if names are identical.
16166 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16167 ac_source=$srcdir/$ac_source
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16171 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16173 if test ! -r "$ac_source"; then
16174 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16178 # Try a relative symlink, then a hard link, then a copy.
16180 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16181 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16183 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16184 ln "$ac_source" "$ac_file" 2>/dev/null ||
16185 cp -p "$ac_source" "$ac_file" ||
16186 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16190 $as_echo "$as_me: executing $ac_file commands" >&6;}
16195 case $ac_file$ac_mode in
16196 "check_win32_symlinks":C)
16197 # Links sometimes fail undetected on Mingw -
16198 # so here we detect it and warn the user
16199 for FILE in $CONFIG_LINKS
16201 # test -e works for symlinks in the MinGW console
16202 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
16203 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
16206 "src/include/pg_config.h":H)
16207 # Update timestamp for pg_config.h (see Makefile.global)
16208 echo >src/include/stamp-h
16210 "src/include/pg_config_ext.h":H)
16211 # Update timestamp for pg_config_ext.h (see Makefile.global)
16212 echo >src/include/stamp-ext-h
16214 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
16222 ac_clean_files=$ac_clean_files_save
16224 test $ac_write_fail = 0 ||
16225 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16228 # configure is writing to config.log, and then calls config.status.
16229 # config.status does its own redirection, appending to config.log.
16230 # Unfortunately, on DOS this fails, as config.log is still kept open
16231 # by configure, so config.status won't be able to write to it; its
16232 # output is simply discarded. So we exec the FD to /dev/null,
16233 # effectively closing config.log, so it can be properly (re)opened and
16234 # appended to by config.status. When coming back to configure, we
16235 # need to make the FD available again.
16236 if test "$no_create" != yes; then
16238 ac_config_status_args=
16239 test "$silent" = yes &&
16240 ac_config_status_args="$ac_config_status_args --quiet"
16242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16245 # would make configure fail if this is the last instruction.
16246 $ac_cs_success || as_fn_exit 1
16248 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16250 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}