2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 12.18.
5 # Report bugs to <pgsql-bugs@lists.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-2019, 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@lists.postgresql.org about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script 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
='12.18'
586 PACKAGE_STRING
='PostgreSQL 12.18'
587 PACKAGE_BUGREPORT
='pgsql-bugs@lists.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
662 python_additional_libs
737 PERMIT_DECLARATION_AFTER_STATEMENT
809 program_transform_name
822 enable_option_checking
828 enable_integer_datetimes
862 with_libedit_preferred
874 ac_precious_vars
='build_alias
904 # Initialize some variables set by options.
906 ac_init_version
=false
907 ac_unrecognized_opts
=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
918 program_transform_name
=s
,x
,x
,
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir
='${exec_prefix}/bin'
933 sbindir
='${exec_prefix}/sbin'
934 libexecdir
='${exec_prefix}/libexec'
935 datarootdir
='${prefix}/share'
936 datadir
='${datarootdir}'
937 sysconfdir
='${prefix}/etc'
938 sharedstatedir
='${prefix}/com'
939 localstatedir
='${prefix}/var'
940 includedir
='${prefix}/include'
941 oldincludedir
='/usr/include'
942 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir
='${datarootdir}/info'
948 libdir
='${exec_prefix}/lib'
949 localedir
='${datarootdir}/locale'
950 mandir
='${datarootdir}/man'
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\
$ac_option
964 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
977 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
980 -build |
--build |
--buil |
--bui |
--bu)
981 ac_prev
=build_alias
;;
982 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
983 build_alias
=$ac_optarg ;;
985 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
986 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
987 ac_prev
=cache_file
;;
988 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
989 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
990 cache_file
=$ac_optarg ;;
993 cache_file
=config.cache
;;
995 -datadir |
--datadir |
--datadi |
--datad)
997 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
998 datadir
=$ac_optarg ;;
1000 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1001 |
--dataroo |
--dataro |
--datar)
1002 ac_prev
=datarootdir
;;
1003 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1004 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1005 datarootdir
=$ac_optarg ;;
1007 -disable-* |
--disable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error $?
"invalid feature name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=no
;;
1023 -docdir |
--docdir |
--docdi |
--doc |
--do)
1025 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1026 docdir
=$ac_optarg ;;
1028 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1030 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1031 dvidir
=$ac_optarg ;;
1033 -enable-* |
--enable-*)
1034 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1037 as_fn_error $?
"invalid feature name: $ac_useropt"
1038 ac_useropt_orig
=$ac_useropt
1039 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_
$ac_useropt"
1044 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep
=', ';;
1047 eval enable_
$ac_useropt=\
$ac_optarg ;;
1049 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1050 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1051 |
--exec |
--exe |
--ex)
1052 ac_prev
=exec_prefix
;;
1053 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1054 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1055 |
--exec=* |
--exe=* |
--ex=*)
1056 exec_prefix
=$ac_optarg ;;
1058 -gas |
--gas |
--ga |
--g)
1059 # Obsolete; use --with-gas.
1062 -help |
--help |
--hel |
--he |
-h)
1063 ac_init_help
=long
;;
1064 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1065 ac_init_help
=recursive
;;
1066 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1067 ac_init_help
=short
;;
1069 -host |
--host |
--hos |
--ho)
1070 ac_prev
=host_alias
;;
1071 -host=* |
--host=* |
--hos=* |
--ho=*)
1072 host_alias
=$ac_optarg ;;
1074 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1076 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1078 htmldir
=$ac_optarg ;;
1080 -includedir |
--includedir |
--includedi |
--included |
--include \
1081 |
--includ |
--inclu |
--incl |
--inc)
1082 ac_prev
=includedir
;;
1083 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1084 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1085 includedir
=$ac_optarg ;;
1087 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1089 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1090 infodir
=$ac_optarg ;;
1092 -libdir |
--libdir |
--libdi |
--libd)
1094 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1095 libdir
=$ac_optarg ;;
1097 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1098 |
--libexe |
--libex |
--libe)
1099 ac_prev
=libexecdir
;;
1100 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1101 |
--libexe=* |
--libex=* |
--libe=*)
1102 libexecdir
=$ac_optarg ;;
1104 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1105 ac_prev
=localedir
;;
1106 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1107 localedir
=$ac_optarg ;;
1109 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1110 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1111 ac_prev
=localstatedir
;;
1112 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1113 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1114 localstatedir
=$ac_optarg ;;
1116 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1118 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1119 mandir
=$ac_optarg ;;
1121 -nfp |
--nfp |
--nf)
1122 # Obsolete; use --without-fp.
1125 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1126 |
--no-cr |
--no-c |
-n)
1129 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1130 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1133 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1134 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1135 |
--oldin |
--oldi |
--old |
--ol |
--o)
1136 ac_prev
=oldincludedir
;;
1137 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1138 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1139 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1140 oldincludedir
=$ac_optarg ;;
1142 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1144 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1145 prefix
=$ac_optarg ;;
1147 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1148 |
--program-pre |
--program-pr |
--program-p)
1149 ac_prev
=program_prefix
;;
1150 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1151 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1152 program_prefix
=$ac_optarg ;;
1154 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1155 |
--program-suf |
--program-su |
--program-s)
1156 ac_prev
=program_suffix
;;
1157 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1158 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1159 program_suffix
=$ac_optarg ;;
1161 -program-transform-name |
--program-transform-name \
1162 |
--program-transform-nam |
--program-transform-na \
1163 |
--program-transform-n |
--program-transform- \
1164 |
--program-transform |
--program-transfor \
1165 |
--program-transfo |
--program-transf \
1166 |
--program-trans |
--program-tran \
1167 |
--progr-tra |
--program-tr |
--program-t)
1168 ac_prev
=program_transform_name
;;
1169 -program-transform-name=* |
--program-transform-name=* \
1170 |
--program-transform-nam=* |
--program-transform-na=* \
1171 |
--program-transform-n=* |
--program-transform-=* \
1172 |
--program-transform=* |
--program-transfor=* \
1173 |
--program-transfo=* |
--program-transf=* \
1174 |
--program-trans=* |
--program-tran=* \
1175 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1176 program_transform_name
=$ac_optarg ;;
1178 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1180 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1181 pdfdir
=$ac_optarg ;;
1183 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1185 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1189 |
-silent |
--silent |
--silen |
--sile |
--sil)
1192 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1194 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1196 sbindir
=$ac_optarg ;;
1198 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1199 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1200 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1202 ac_prev
=sharedstatedir
;;
1203 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1204 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1205 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1207 sharedstatedir
=$ac_optarg ;;
1209 -site |
--site |
--sit)
1211 -site=* |
--site=* |
--sit=*)
1214 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1216 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1217 srcdir
=$ac_optarg ;;
1219 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1220 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1221 ac_prev
=sysconfdir
;;
1222 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1223 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1224 sysconfdir
=$ac_optarg ;;
1226 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1227 ac_prev
=target_alias
;;
1228 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1229 target_alias
=$ac_optarg ;;
1231 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1234 -version |
--version |
--versio |
--versi |
--vers |
-V)
1235 ac_init_version
=: ;;
1238 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error $?
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=\
$ac_optarg ;;
1253 -without-* |
--without-*)
1254 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=no
;;
1270 # Obsolete; use --with-x.
1273 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1274 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1275 ac_prev
=x_includes
;;
1276 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1277 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1278 x_includes
=$ac_optarg ;;
1280 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1281 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1282 ac_prev
=x_libraries
;;
1283 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1284 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1285 x_libraries
=$ac_optarg ;;
1287 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1296 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1298 eval $ac_envvar=\
$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 if test -n "$ac_prev"; then
1313 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $?
"missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1320 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val
=\$
$ac_var
1332 # Remove trailing slashes.
1335 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\
$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$
]* | ?
:[\\/]* ) continue;;
1341 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1343 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target
=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x
; then
1355 if test "x$build_alias" = x
; then
1356 cross_compiling
=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1365 test "$silent" = yes && exec 6>/dev
/null
1368 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di
=`ls -di .` &&
1370 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $?
"working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $?
"pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted
=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir
=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted
=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1412 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var
in $ac_precious_vars; do
1429 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1431 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures PostgreSQL 12.18 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --build=BUILD configure
for building on BUILD
[guessed
]
1501 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive
) echo "Configuration of PostgreSQL 12.18:";;
1512 --disable-option-checking ignore unrecognized
--enable/--with options
1513 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1514 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1515 --disable-integer-datetimes
1516 obsolete option
, no longer supported
1517 --enable-nls[=LANGUAGES
]
1518 enable Native Language Support
1519 --disable-rpath do not embed shared library search path
in
1521 --disable-spinlocks do not use spinlocks
1522 --disable-atomics do not use atomic operations
1523 --enable-debug build with debugging symbols
(-g)
1524 --enable-profiling build with profiling enabled
1525 --enable-coverage build with coverage testing instrumentation
1526 --enable-dtrace build with DTrace support
1527 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1528 --enable-depend turn on automatic dependency tracking
1529 --enable-cassert enable assertion checks
(for debugging
)
1530 --disable-thread-safety disable thread-safety
in client libraries
1531 --disable-largefile omit support
for large files
1532 --disable-float4-byval disable float4 passed by value
1533 --disable-float8-byval disable float8 passed by value
1536 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1537 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1538 --with-extra-version=STRING
1539 append STRING to version
1540 --with-template=NAME override operating system template
1541 --with-includes=DIRS
look for additional header files
in DIRS
1542 --with-libraries=DIRS
look for additional libraries
in DIRS
1543 --with-libs=DIRS alternative spelling of
--with-libraries
1544 --with-pgport=PORTNUM
set default port number
[5432]
1545 --with-blocksize=BLOCKSIZE
1546 set table block size
in kB
[8]
1547 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1548 --with-wal-blocksize=BLOCKSIZE
1549 set WAL block size
in kB
[8]
1550 --with-CC=CMD
set compiler
(deprecated
)
1551 --with-llvm build with LLVM based JIT support
1552 --with-icu build with ICU support
1553 --with-tcl build Tcl modules
(PL
/Tcl
)
1554 --with-tclconfig=DIR tclConfig.sh is
in DIR
1555 --with-perl build Perl modules
(PL
/Perl
)
1556 --with-python build Python modules
(PL
/Python
)
1557 --with-gssapi build with GSSAPI support
1558 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1560 --with-pam build with PAM support
1561 --with-bsd-auth build with BSD Authentication support
1562 --with-ldap build with LDAP support
1563 --with-bonjour build with Bonjour support
1564 --with-openssl build with OpenSSL support
1565 --with-selinux build with SELinux support
1566 --with-systemd build with systemd support
1567 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1568 --with-libedit-preferred
1569 prefer BSD Libedit over GNU Readline
1570 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1571 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1572 --with-libxml build with XML support
1573 --with-libxslt use XSLT support when building contrib
/xml2
1574 --with-system-tzdata=DIR
1575 use system
time zone data
in DIR
1576 --without-zlib do not use Zlib
1577 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1579 Some influential environment variables
:
1580 CC C compiler
command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1583 nonstandard directory
<lib dir
>
1584 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1585 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1586 you have headers
in a nonstandard directory
<include dir
>
1587 CXX C
++ compiler
command
1588 CXXFLAGS C
++ compiler flags
1589 LLVM_CONFIG path to llvm-config
command
1590 CLANG path to clang compiler to generate bitcode
1592 PKG_CONFIG path to pkg-config utility
1594 directories to add to pkg-config
's search path
1596 path overriding pkg-config's built-in search path
1597 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1598 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1599 XML2_CONFIG path to xml2-config utility
1600 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1601 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1602 LDFLAGS_EX extra linker flags
for linking executables only
1603 LDFLAGS_SL extra linker flags
for linking shared libraries only
1605 PYTHON Python program
1606 MSGFMT msgfmt program
for NLS
1607 TCLSH Tcl interpreter program
(tclsh
)
1609 Use these variables to override the choices made by
`configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1612 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1642 .) # We are building in place.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1675 PostgreSQL configure 12.18
1676 generated by GNU Autoconf 2.69
1678 Copyright (C) 2012 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1682 Copyright (c) 1996-2019, PostgreSQL Global Development Group
1687 ## ------------------------ ##
1688 ## Autoconf initialization. ##
1689 ## ------------------------ ##
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1701 *) ac_try_echo
=$ac_try;;
1703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1707 if test -s conftest.err
; then
1708 grep -v '^ *+' conftest.err
>conftest.er1
1709 cat conftest.er1
>&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.
$ac_objext; then :
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.
$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status
$ac_retval
1727 } # ac_fn_c_try_compile
1729 # ac_fn_cxx_try_compile LINENO
1730 # ----------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_cxx_try_compile
()
1734 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1735 rm -f conftest.
$ac_objext
1736 if { { ac_try
="$ac_compile"
1738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_cxx_try_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1777 *) ac_try_echo
=$ac_try;;
1779 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1783 if test -s conftest.err
; then
1784 grep -v '^ *+' conftest.err
>conftest.er1
1785 cat conftest.er1
>&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest
$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 test -x conftest
$ac_exeext
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.
$ac_ext >&5
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status
$ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_try_cpp LINENO
1814 # ----------------------
1815 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1819 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } > conftest.i && {
1835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1850 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1853 # the include files in INCLUDES and setting the cache variable VAR
1855 ac_fn_c_check_header_mongrel ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if eval \${$3+:} false; then :
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 # Is the header compilable?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1870 $as_echo_n "checking $2 usability... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_header_compiler=yes
1879 ac_header_compiler=no
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1883 $as_echo "$ac_header_compiler" >&6; }
1885 # Is the header present?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1887 $as_echo_n "checking $2 presence... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1892 if ac_fn_c_try_cpp "$LINENO"; then :
1893 ac_header_preproc=yes
1895 ac_header_preproc=no
1897 rm -f conftest.err conftest.i conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1899 $as_echo "$ac_header_preproc" >&6; }
1901 # So? What about this header?
1902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1905 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1911 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1913 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1915 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1917 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 ( $as_echo "## ---------------------------------------------- ##
1921 ## Report this to pgsql-bugs@lists.postgresql.org ##
1922 ## ---------------------------------------------- ##"
1923 ) | sed "s/^/$as_me: WARNING: /" >&2
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1931 eval "$3=\$ac_header_compiler"
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_header_mongrel
1941 # ac_fn_c_try_run LINENO
1942 # ----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1944 # that executables *can* be run.
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_link"
1950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1951 *) ac_try_echo
=$ac_try;;
1953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1959 { { case "(($ac_try" in
1960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_try") 2>&5
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; }; }; then :
1971 $as_echo "$as_me: program exited with status $ac_status" >&5
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1975 ac_retval=$ac_status
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1983 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists and can be compiled using the include files in
1986 # INCLUDES, setting the cache variable VAR accordingly.
1987 ac_fn_c_check_header_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_header_compile
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2037 # include <limits.h>
2039 # include <assert.h>
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2066 if ac_fn_c_try_link "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_func
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_type
2135 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136 # ----------------------------------------------------
2137 # Tries to find if the field MEMBER exists in type AGGR, after including
2138 # INCLUDES, setting cache variable VAR accordingly.
2139 ac_fn_c_check_member ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143 $as_echo_n "checking for $2.$3... " >&6; }
2144 if eval \${$4+:} false; then :
2145 $as_echo_n "(cached) " >&6
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2170 if (sizeof ac_aggr.$3)
2176 if ac_fn_c_try_compile "$LINENO"; then :
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 } # ac_fn_c_check_member
2192 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2193 # --------------------------------------------
2194 # Tries to find the compile-time value of EXPR in a program that includes
2195 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2197 ac_fn_c_compute_int ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if test "$cross_compiling" = yes; then
2201 # Depending upon the size, compute the lo and hi bounds.
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) >= 0)];
2210 return test_array [0];
2216 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2225 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2227 return test_array [0];
2233 if ac_fn_c_try_compile "$LINENO"; then :
2234 ac_hi=$ac_mid; break
2236 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2237 if test $ac_lo -le $ac_mid; then
2241 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) < 0)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2271 return test_array [0];
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 ac_lo=$ac_mid; break
2280 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2281 if test $ac_mid -le $ac_hi; then
2285 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 # Binary search between lo and hi bounds.
2296 while test "x$ac_lo" != "x$ac_hi"; do
2297 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2304 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2306 return test_array [0];
2312 if ac_fn_c_try_compile "$LINENO"; then :
2315 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2327 static long int longval () { return $2; }
2328 static unsigned long int ulongval () { return $2; }
2335 FILE *f = fopen ("conftest.val", "w");
2340 long int i = longval ();
2343 fprintf (f, "%ld", i);
2347 unsigned long int i = ulongval ();
2350 fprintf (f, "%lu", i);
2352 /* Do not output a trailing newline, as this causes \r\n confusion
2353 on some platforms. */
2354 return ferror (f) || fclose (f) != 0;
2360 if ac_fn_c_try_run "$LINENO"; then :
2361 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2366 conftest.$ac_objext conftest.beam conftest.$ac_ext
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 as_fn_set_status $ac_retval
2373 } # ac_fn_c_compute_int
2375 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2376 # ---------------------------------------------
2377 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2379 ac_fn_c_check_decl ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2383 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2384 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2386 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2387 if eval \${$3+:} false; then :
2388 $as_echo_n "(cached) " >&6
2390 ac_save_werror_flag=$ac_c_werror_flag
2391 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2398 #ifndef $as_decl_name
2400 (void) $as_decl_use;
2402 (void) $as_decl_name;
2410 if ac_fn_c_try_compile "$LINENO"; then :
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_c_werror_flag=$ac_save_werror_flag
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423 } # ac_fn_c_check_decl
2424 cat >config.log <<_ACEOF
2425 This file contains any messages produced by compilers while
2426 running configure, to aid debugging if configure makes a mistake.
2428 It was created by PostgreSQL $as_me 12.18, which was
2429 generated by GNU Autoconf 2.69. Invocation command line was
2441 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2442 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2443 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2444 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2445 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2447 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2448 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2450 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2451 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2452 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2453 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2454 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2455 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2456 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 $as_echo "PATH: $as_dir"
2481 # Keep a trace of the command line.
2482 # Strip out --no-create and --no-recursion so they do not pile up.
2483 # Strip out --silent because we don't want to record it for future runs.
2484 # Also quote any args containing shell meta-characters.
2485 # Make two passes to allow for proper duplicate-argument suppression.
2489 ac_must_keep_next=false
2495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2497 | -silent | --silent | --silen | --sile | --sil)
2500 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2503 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2505 as_fn_append ac_configure_args1 " '$ac_arg'"
2506 if test $ac_must_keep_next = true; then
2507 ac_must_keep_next=false # Got value, back to normal.
2510 *=* | --config-cache | -C | -disable-* | --disable-* \
2511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2513 | -with-* | --with-* | -without-* | --without-* | --x)
2514 case "$ac_configure_args0 " in
2515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2518 -* ) ac_must_keep_next=true ;;
2521 as_fn_append ac_configure_args " '$ac_arg'"
2526 { ac_configure_args0=; unset ac_configure_args0;}
2527 { ac_configure_args1=; unset ac_configure_args1;}
2529 # When interrupted or exit'd, cleanup temporary files, and complete
2530 # config.log. We remove comments because anyway the quotes in there
2531 # would cause problems or look ugly.
2532 # WARNING: Use '\'' to represent an apostrophe within the trap.
2533 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2534 trap 'exit_status=$?
2535 # Save into config.log some information that might help in debugging.
2539 $as_echo "## ---------------- ##
2540 ## Cache variables. ##
2541 ## ---------------- ##"
2543 # The following way of writing the cache mishandles newlines in values,
2545 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2546 eval ac_val=\$$ac_var
2550 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2554 _ | IFS | as_nl) ;; #(
2555 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2556 *) { eval $ac_var=; unset $ac_var;} ;;
2561 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2562 *${as_nl}ac_space=\ *)
2564 "s/'\''/'\''\\\\'\'''\''/g;
2565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2575 $as_echo "## ----------------- ##
2576 ## Output variables. ##
2577 ## ----------------- ##"
2579 for ac_var in $ac_subst_vars
2581 eval ac_val=\$$ac_var
2583 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585 $as_echo "$ac_var='\''$ac_val'\''"
2589 if test -n "$ac_subst_files"; then
2590 $as_echo "## ------------------- ##
2591 ## File substitutions. ##
2592 ## ------------------- ##"
2594 for ac_var in $ac_subst_files
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 $as_echo "$ac_var='\''$ac_val'\''"
2605 if test -s confdefs.h; then
2606 $as_echo "## ----------- ##
2613 test "$ac_signal" != 0 &&
2614 $as_echo "$as_me: caught signal $ac_signal"
2615 $as_echo "$as_me: exit $exit_status"
2617 rm -f core *.core core.conftest.* &&
2618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2621 for ac_signal in 1 2 13 15; do
2622 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2627 rm -f -r conftest* confdefs.h
2629 $as_echo "/* confdefs.h */" > confdefs.h
2631 # Predefined preprocessor variables.
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_NAME "$PACKAGE_NAME"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE_STRING "$PACKAGE_STRING"
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_URL "$PACKAGE_URL"
2658 # Let the site file select an alternate cache file if it wants to.
2659 # Prefer an explicitly selected file to automatically selected ones.
2662 if test -n "$CONFIG_SITE"; then
2663 # We do not want a PATH search for config.site.
2664 case $CONFIG_SITE in #((
2665 -*) ac_site_file1=./$CONFIG_SITE;;
2666 */*) ac_site_file1=$CONFIG_SITE;;
2667 *) ac_site_file1=./$CONFIG_SITE;;
2669 elif test "x$prefix" != xNONE; then
2670 ac_site_file1=$prefix/share/config.site
2671 ac_site_file2=$prefix/etc/config.site
2673 ac_site_file1=$ac_default_prefix/share/config.site
2674 ac_site_file2=$ac_default_prefix/etc/config.site
2676 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2678 test "x$ac_site_file" = xNONE && continue
2679 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2681 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2682 sed 's/^/| /' "$ac_site_file" >&5
2684 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "failed to load site
script $ac_site_file
2687 See \
`config.log' for more details" "$LINENO" 5; }
2691 if test -r "$cache_file"; then
2692 # Some versions of bash will fail to source /dev/null (special files
2693 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2694 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2696 $as_echo "$as_me: loading cache $cache_file" >&6;}
2698 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2699 *) . "./$cache_file";;
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2704 $as_echo "$as_me: creating cache $cache_file" >&6;}
2708 # Check that the precious variables saved in the cache have kept the same
2710 ac_cache_corrupted=false
2711 for ac_var in $ac_precious_vars; do
2712 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2713 eval ac_new_set=\$ac_env_${ac_var}_set
2714 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2715 eval ac_new_val=\$ac_env_${ac_var}_value
2716 case $ac_old_set,$ac_new_set in
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2719 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2720 ac_cache_corrupted=: ;;
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2723 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2724 ac_cache_corrupted=: ;;
2727 if test "x$ac_old_val" != "x$ac_new_val"; then
2728 # differences in whitespace do not lead to failure.
2729 ac_old_val_w=`echo x
$ac_old_val`
2730 ac_new_val_w=`echo x
$ac_new_val`
2731 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2733 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2734 ac_cache_corrupted=:
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2737 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2738 eval $ac_var=\$ac_old_val
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2741 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2743 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2746 # Pass precious variables to config.status.
2747 if test "$ac_new_set" = set; then
2749 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2750 *) ac_arg=$ac_var=$ac_new_val ;;
2752 case " $ac_configure_args " in
2753 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2754 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2758 if $ac_cache_corrupted; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2762 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2763 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2765 ## -------------------- ##
2766 ## Main body of script. ##
2767 ## -------------------- ##
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 for ac_dir in config "$srcdir"/config; do
2782 if test -f "$ac_dir/install-sh"; then
2784 ac_install_sh="$ac_aux_dir/install-sh -c"
2786 elif test -f "$ac_dir/install.sh"; then
2788 ac_install_sh="$ac_aux_dir/install.sh -c"
2790 elif test -f "$ac_dir/shtool"; then
2792 ac_install_sh="$ac_aux_dir/shtool install -c"
2796 if test -z "$ac_aux_dir"; then
2797 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2800 # These three variables are undocumented and unsupported,
2801 # and are intended to be withdrawn in a future Autoconf release.
2802 # They can cause serious problems if a builder's source tree is in a directory
2803 # whose full name contains unusual characters.
2804 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2805 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2806 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2810 configure_args=$ac_configure_args
2813 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2816 cat >>confdefs.h <<_ACEOF
2817 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2824 # Check whether --with-extra-version was given.
2825 if test "${with_extra_version+set}" = set; then :
2826 withval=$with_extra_version;
2829 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2832 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2835 PG_VERSION="$PACKAGE_VERSION$withval"
2840 PG_VERSION="$PACKAGE_VERSION"
2845 cat >>confdefs.h <<_ACEOF
2846 #define PG_VERSION "$PG_VERSION"
2850 # Make sure we can run config.sub.
2851 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2852 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2855 $as_echo_n "checking build system type... " >&6; }
2856 if ${ac_cv_build+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 ac_build_alias=$build_alias
2860 test "x$ac_build_alias" = x &&
2861 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2862 test "x$ac_build_alias" = x &&
2863 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2864 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2869 $as_echo "$ac_cv_build" >&6; }
2870 case $ac_cv_build in
2872 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2875 ac_save_IFS=$IFS; IFS='-'
2881 # Remember, the first character of IFS is used to create $*,
2882 # except with old shells:
2885 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2889 $as_echo_n "checking host system type... " >&6; }
2890 if ${ac_cv_host+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 if test "x$host_alias" = x; then
2894 ac_cv_host=$ac_cv_build
2896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2902 $as_echo "$ac_cv_host" >&6; }
2905 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2908 ac_save_IFS=$IFS; IFS='-'
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2918 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2924 $as_echo_n "checking which template to use... " >&6; }
2929 # Check whether --with-template was given.
2930 if test "${with_template+set}" = set; then :
2931 withval=$with_template;
2934 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2937 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2942 list) echo; ls "$srcdir/src/template"; exit;;
2943 *) if test -f "$srcdir/src/template/$with_template" ; then
2946 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2955 # --with-template not given
2958 aix*) template=aix ;;
2959 cygwin*) template=cygwin ;;
2960 darwin*) template=darwin ;;
2961 dragonfly*) template=netbsd ;;
2962 freebsd*) template=freebsd ;;
2963 hpux*) template=hpux ;;
2964 linux*|gnu*|k*bsd*-gnu)
2966 mingw*) template=win32 ;;
2967 netbsd*) template=netbsd ;;
2968 openbsd*) template=openbsd ;;
2969 solaris*) template=solaris ;;
2972 if test x"$template" = x"" ; then
2974 *******************************************************************
2975 PostgreSQL has apparently not been ported to your platform yet.
2976 To try a manual configuration, look into the src/template directory
2977 for a similar platform and use the '--with-template=' option.
2979 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
2980 rectifying this. Include the above 'checking host system type...'
2982 *******************************************************************
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2992 $as_echo "$template" >&6; }
2997 # Initialize default assumption that we do not need separate assembly code
2998 # for TAS (test-and-set). This can be overridden by the template file
2999 # when it's executed.
3006 ## Command line options
3010 # Add non-standard directories to the include path
3015 # Check whether --with-includes was given.
3016 if test "${with_includes+set}" = set; then :
3017 withval=$with_includes;
3020 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3023 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3036 # Add non-standard directories to the library search path
3041 # Check whether --with-libraries was given.
3042 if test "${with_libraries+set}" = set; then :
3043 withval=$with_libraries;
3046 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3049 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3052 LIBRARY_DIRS=$withval
3063 # Check whether --with-libs was given.
3064 if test "${with_libs+set}" = set; then :
3068 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3071 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3074 LIBRARY_DIRS=$withval
3084 # 64-bit integer date/time storage is now the only option, but to avoid
3085 # unnecessary breakage of build scripts, continue to accept an explicit
3086 # "--enable-integer-datetimes" switch.
3090 # Check whether --enable-integer-datetimes was given.
3091 if test "${enable_integer_datetimes+set}" = set; then :
3092 enableval=$enable_integer_datetimes;
3098 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3101 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3106 enable_integer_datetimes=yes
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3117 $as_echo_n "checking whether NLS is wanted... " >&6; }
3120 # Check whether --enable-nls was given.
3121 if test "${enable_nls+set}" = set; then :
3122 enableval=$enable_nls;
3132 WANTED_LANGUAGES=$enableval
3142 if test "$enable_nls" = yes; then
3144 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3149 $as_echo "$enable_nls" >&6; }
3154 # Default port number (--with-pgport), default 5432
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3157 $as_echo_n "checking for default port number... " >&6; }
3161 # Check whether --with-pgport was given.
3162 if test "${with_pgport+set}" = set; then :
3163 withval=$with_pgport;
3166 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3169 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3172 default_port=$withval
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3182 $as_echo "$default_port" >&6; }
3183 # Need both of these because some places want an integer and some a string
3185 cat >>confdefs.h <<_ACEOF
3186 #define DEF_PGPORT ${default_port}
3190 cat >>confdefs.h <<_ACEOF
3191 #define DEF_PGPORT_STR "${default_port}"
3196 # It's worth validating port; you can get very confusing errors otherwise
3197 if test x"$default_port" = x""; then
3198 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3199 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3200 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3201 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3202 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3203 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3204 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3208 # '-rpath'-like feature can be disabled
3212 # Check whether --enable-rpath was given.
3213 if test "${enable_rpath+set}" = set; then :
3214 enableval=$enable_rpath;
3223 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3240 # Check whether --enable-spinlocks was given.
3241 if test "${enable_spinlocks+set}" = set; then :
3242 enableval=$enable_spinlocks;
3251 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3256 enable_spinlocks=yes
3267 # Check whether --enable-atomics was given.
3268 if test "${enable_atomics+set}" = set; then :
3269 enableval=$enable_atomics;
3278 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3290 # --enable-debug adds -g to compiler flags
3294 # Check whether --enable-debug was given.
3295 if test "${enable_debug+set}" = set; then :
3296 enableval=$enable_debug;
3305 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3318 # --enable-profiling enables gcc profiling
3322 # Check whether --enable-profiling was given.
3323 if test "${enable_profiling+set}" = set; then :
3324 enableval=$enable_profiling;
3333 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3345 # --enable-coverage enables generation of code coverage metrics with gcov
3349 # Check whether --enable-coverage was given.
3350 if test "${enable_coverage+set}" = set; then :
3351 enableval=$enable_coverage;
3354 if test -z "$GCOV"; then
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_path_GCOV+:} false; then :
3362 $as_echo_n "(cached) " >&6
3366 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 GCOV=$ac_cv_path_GCOV
3388 if test -n "$GCOV"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3390 $as_echo "$GCOV" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$GCOV" && break
3401 # Report the value of GCOV in configure's output in all cases.
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3403 $as_echo_n "checking for GCOV... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3405 $as_echo "$GCOV" >&6; }
3408 if test -z "$GCOV"; then
3409 as_fn_error $? "gcov not found" "$LINENO" 5
3411 if test -z "$LCOV"; then
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_path_LCOV+:} false; then :
3419 $as_echo_n "(cached) " >&6
3423 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 LCOV=$ac_cv_path_LCOV
3445 if test -n "$LCOV"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3447 $as_echo "$LCOV" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3454 test -n "$LCOV" && break
3458 # Report the value of LCOV in configure's output in all cases.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3460 $as_echo_n "checking for LCOV... " >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3462 $as_echo "$LCOV" >&6; }
3465 if test -z "$LCOV"; then
3466 as_fn_error $? "lcov not found" "$LINENO" 5
3468 if test -z "$GENHTML"; then
3469 for ac_prog in genhtml
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy $ac_prog; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_path_GENHTML+:} false; then :
3476 $as_echo_n "(cached) " >&6
3480 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 GENHTML=$ac_cv_path_GENHTML
3502 if test -n "$GENHTML"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3504 $as_echo "$GENHTML" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$GENHTML" && break
3515 # Report the value of GENHTML in configure's output in all cases.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3517 $as_echo_n "checking for GENHTML... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3519 $as_echo "$GENHTML" >&6; }
3522 if test -z "$GENHTML"; then
3523 as_fn_error $? "genhtml not found" "$LINENO" 5
3530 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3547 # Check whether --enable-dtrace was given.
3548 if test "${enable_dtrace+set}" = set; then :
3549 enableval=$enable_dtrace;
3552 if test -z "$DTRACE"; then
3553 for ac_prog in dtrace
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_path_DTRACE+:} false; then :
3560 $as_echo_n "(cached) " >&6
3564 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 DTRACE=$ac_cv_path_DTRACE
3586 if test -n "$DTRACE"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3588 $as_echo "$DTRACE" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3595 test -n "$DTRACE" && break
3599 # Report the value of DTRACE in configure's output in all cases.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3601 $as_echo_n "checking for DTRACE... " >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3603 $as_echo "$DTRACE" >&6; }
3606 if test -z "$DTRACE"; then
3607 as_fn_error $? "dtrace not found" "$LINENO" 5
3615 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3632 # Check whether --enable-tap-tests was given.
3633 if test "${enable_tap_tests+set}" = set; then :
3634 enableval=$enable_tap_tests;
3643 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3659 $as_echo_n "checking for block size... " >&6; }
3663 # Check whether --with-blocksize was given.
3664 if test "${with_blocksize+set}" = set; then :
3665 withval=$with_blocksize;
3668 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3671 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3683 case ${blocksize} in
3690 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3693 $as_echo "${blocksize}kB" >&6; }
3696 cat >>confdefs.h <<_ACEOF
3697 #define BLCKSZ ${BLCKSZ}
3702 # Relation segment size
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3705 $as_echo_n "checking for segment size... " >&6; }
3709 # Check whether --with-segsize was given.
3710 if test "${with_segsize+set}" = set; then :
3711 withval=$with_segsize;
3714 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3717 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3729 # this expression is set up to avoid unnecessary integer overflow
3730 # blocksize is already guaranteed to be a factor of 1024
3731 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3732 test $? -eq 0 || exit 1
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3734 $as_echo "${segsize}GB" >&6; }
3737 cat >>confdefs.h <<_ACEOF
3738 #define RELSEG_SIZE ${RELSEG_SIZE}
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3746 $as_echo_n "checking for WAL block size... " >&6; }
3750 # Check whether --with-wal-blocksize was given.
3751 if test "${with_wal_blocksize+set}" = set; then :
3752 withval=$with_wal_blocksize;
3755 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3758 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3761 wal_blocksize=$withval
3770 case ${wal_blocksize} in
3771 1) XLOG_BLCKSZ=1024;;
3772 2) XLOG_BLCKSZ=2048;;
3773 4) XLOG_BLCKSZ=4096;;
3774 8) XLOG_BLCKSZ=8192;;
3775 16) XLOG_BLCKSZ=16384;;
3776 32) XLOG_BLCKSZ=32768;;
3777 64) XLOG_BLCKSZ=65536;;
3778 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3781 $as_echo "${wal_blocksize}kB" >&6; }
3784 cat >>confdefs.h <<_ACEOF
3785 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3793 # For historical reasons you can also use --with-CC to specify the C compiler
3794 # to use, although the standard way to do this is to set the CC environment
3799 # Check whether --with-CC was given.
3800 if test "${with_CC+set}" = set; then :
3804 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3807 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3819 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3820 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in $pgac_cc_list
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_CC+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 if test -n "$CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 $as_echo "$CC" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3868 test -n "$CC" && break
3871 if test -z "$CC"; then
3873 for ac_prog in $pgac_cc_list
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ac_ct_CC="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903 if test -n "$ac_ct_CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3905 $as_echo "$ac_ct_CC" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$ac_ct_CC" && break
3915 if test "x$ac_ct_CC" = x; then
3918 case $cross_compiling:$ac_tool_warned in
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3929 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3932 See \
`config.log' for more details" "$LINENO" 5; }
3934 # Provide some information about the compiler.
3935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3938 for ac_option in --version -v -V -qversion; do
3939 { { ac_try="$ac_compiler $ac_option >&5"
3941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3942 *) ac_try_echo
=$ac_try;;
3944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3948 if test -s conftest.err
; then
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err
>conftest.er1
3952 cat conftest.er1
>&5
3954 rm -f conftest.er1 conftest.err
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 ac_clean_files_save
=$ac_clean_files
3971 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3976 $as_echo_n "checking whether the C compiler works... " >&6; }
3977 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3979 # The possible output files:
3980 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3983 for ac_file
in $ac_files
3986 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3987 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3992 if { { ac_try
="$ac_link_default"
3994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4004 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4006 # so that the user can short-circuit this test for compilers unknown to
4008 for ac_file in $ac_files ''
4010 test -f "$ac_file" || continue
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4015 # We found the default executable, but exeext='' is most
4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 # We set ac_cv_exeext here because the later test for it is not
4024 # safe: cross compilers may not add the suffix if given an `-o'
4025 # argument, so we may need to know it at that point already.
4026 # Even if this section looks crufty: it has the advantage of
4033 test "$ac_cv_exeext" = no && ac_cv_exeext=
4038 if test -z "$ac_file"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's
/^
/|
/' conftest.$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4046 as_fn_error 77 "C compiler cannot create executables
4047 See \`config.log
' for more details" "$LINENO" 5; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4053 $as_echo_n "checking for C compiler default output file name... " >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4055 $as_echo "$ac_file" >&6; }
4056 ac_exeext=$ac_cv_exeext
4058 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4061 $as_echo_n "checking for suffix of executables... " >&6; }
4062 if { { ac_try="$ac_link"
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_link") 2>&5
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4074 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4075 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4077 for ac_file
in conftest.exe conftest conftest.
*; do
4078 test -f "$ac_file" ||
continue
4080 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4081 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4090 See \`config.log' for more details" "$LINENO" 5; }
4092 rm -f conftest conftest
$ac_cv_exeext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 $as_echo "$ac_cv_exeext" >&6; }
4096 rm -f conftest.
$ac_ext
4097 EXEEXT
=$ac_cv_exeext
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4105 FILE *f = fopen ("conftest.out", "w");
4106 return ferror (f) || fclose (f) != 0;
4112 ac_clean_files
="$ac_clean_files conftest.out"
4113 # Check that the compiler produces executables we can run. If not, either
4114 # the compiler is broken, or we cross compile.
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4116 $as_echo_n "checking whether we are cross compiling... " >&6; }
4117 if test "$cross_compiling" != yes; then
4118 { { ac_try
="$ac_link"
4120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_link") 2>&5
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 if { ac_try='./conftest$ac_cv_exeext'
4130 { { case "(($ac_try" in
4131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4132 *) ac_try_echo
=$ac_try;;
4134 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_try") 2>&5
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4142 if test "$cross_compiling" = maybe
; then
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $?
"cannot run C compiled programs.
4148 If you meant to cross compile, use \`--host'.
4149 See \`config.log' for more details" "$LINENO" 5; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4154 $as_echo "$cross_compiling" >&6; }
4156 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4157 ac_clean_files
=$ac_clean_files_save
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 $as_echo_n "checking for suffix of object files... " >&6; }
4160 if ${ac_cv_objext+:} false
; then :
4161 $as_echo_n "(cached) " >&6
4163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try
="$ac_compile"
4177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; then :
4186 for ac_file in conftest.o conftest.obj conftest.*; do
4187 test -f "$ac_file" || continue;
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4201 See \
`config.log' for more details" "$LINENO" 5; }
4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4206 $as_echo "$ac_cv_objext" >&6; }
4207 OBJEXT=$ac_cv_objext
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4210 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4211 if ${ac_cv_c_compiler_gnu+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4228 if ac_fn_c_try_compile "$LINENO"; then :
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4238 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4239 if test $ac_compiler_gnu = yes; then
4244 ac_test_CFLAGS=${CFLAGS+set}
4245 ac_save_CFLAGS=$CFLAGS
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4247 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4248 if ${ac_cv_prog_cc_g+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 ac_save_c_werror_flag=$ac_c_werror_flag
4252 ac_c_werror_flag=yes
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4266 if ac_fn_c_try_compile "$LINENO"; then :
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_c_werror_flag=$ac_save_c_werror_flag
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4297 if ac_fn_c_try_compile "$LINENO"; then :
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_c_werror_flag=$ac_save_c_werror_flag
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4308 $as_echo "$ac_cv_prog_cc_g" >&6; }
4309 if test "$ac_test_CFLAGS" = set; then
4310 CFLAGS=$ac_save_CFLAGS
4311 elif test $ac_cv_prog_cc_g = yes; then
4312 if test "$GCC" = yes; then
4318 if test "$GCC" = yes; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4325 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4326 if ${ac_cv_prog_cc_c89+:} false; then :
4327 $as_echo_n "(cached) " >&6
4329 ac_cv_prog_cc_c89=no
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4336 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4337 struct buf { int x; };
4338 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4339 static char *e (p, i)
4345 static char *f (char * (*g) (char **, int), char **p, ...)
4350 s = g (p, va_arg (v,int));
4355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4356 function prototypes and stuff, but not '\xHH' hex character constants.
4357 These don't provoke an error unfortunately, instead are silently treated
4358 as 'x'. The following induces an error, until -std is added to get
4359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4360 array size at least. It's necessary to write '\x00'==0 to get something
4361 that's true only with -std. */
4362 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4365 inside strings and character constants. */
4367 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4369 int test (int i, double x);
4370 struct s1 {int (*f) (int a);};
4371 struct s2 {int (*f) (double a);};
4372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4383 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4386 CC="$ac_save_CC $ac_arg"
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_cv_prog_cc_c89=$ac_arg
4390 rm -f core conftest.err conftest.$ac_objext
4391 test "x$ac_cv_prog_cc_c89" != "xno" && break
4393 rm -f conftest.$ac_ext
4398 case "x$ac_cv_prog_cc_c89" in
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401 $as_echo "none needed" >&6; } ;;
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4404 $as_echo "unsupported" >&6; } ;;
4406 CC="$CC $ac_cv_prog_cc_c89"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4408 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4410 if test "x$ac_cv_prog_cc_c89" != xno; then :
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4421 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4422 if ${ac_cv_prog_cc_c99+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 ac_cv_prog_cc_c99=no
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4430 #include <stdbool.h>
4435 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4436 #define debug(...) fprintf (stderr, __VA_ARGS__)
4437 #define showlist(...) puts (#__VA_ARGS__)
4438 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4440 test_varargs_macros (void)
4445 debug ("X = %d\n", x);
4446 showlist (The first, second, and third items.);
4447 report (x>y, "x is %d but y is %d", x, y);
4450 // Check long long types.
4451 #define BIG64 18446744073709551615ull
4452 #define BIG32 4294967295ul
4453 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4455 your preprocessor is broken;
4459 your preprocessor is broken;
4461 static long long int bignum = -9223372036854775807LL;
4462 static unsigned long long int ubignum = BIG64;
4464 struct incomplete_array
4472 const wchar_t *name;
4476 typedef const char *ccp;
4479 test_restrict (ccp restrict text)
4481 // See if C++-style comments work.
4482 // Iterate through items via the restricted pointer.
4483 // Also check for declarations in for loops.
4484 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4489 // Check varargs and va_copy.
4491 test_varargs (const char *format, ...)
4494 va_start (args, format);
4496 va_copy (args_copy, args);
4507 str = va_arg (args_copy, const char *);
4510 number = va_arg (args_copy, int);
4513 fnumber = va_arg (args_copy, double);
4528 _Bool success = false;
4531 if (test_restrict ("String literal") == 0)
4533 char *restrict newvar = "Another string";
4536 test_varargs ("s, d' f .", "string", 65, 34.234);
4537 test_varargs_macros ();
4539 // Check flexible array members.
4540 struct incomplete_array *ia =
4541 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4543 for (int i = 0; i < ia->datasize; ++i)
4544 ia->data[i] = i * 1.234;
4546 // Check named initializers.
4547 struct named_init ni = {
4549 .name = L"Test wide string",
4550 .average = 543.34343,
4555 int dynamic_array[ni.number];
4556 dynamic_array[ni.number - 1] = 543;
4558 // work around unused variable warnings
4559 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4560 || dynamic_array[ni.number - 1] != 543);
4566 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4568 CC="$ac_save_CC $ac_arg"
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_prog_cc_c99=$ac_arg
4572 rm -f core conftest.err conftest.$ac_objext
4573 test "x$ac_cv_prog_cc_c99" != "xno" && break
4575 rm -f conftest.$ac_ext
4580 case "x$ac_cv_prog_cc_c99" in
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4583 $as_echo "none needed" >&6; } ;;
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4586 $as_echo "unsupported" >&6; } ;;
4588 CC="$CC $ac_cv_prog_cc_c99"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4590 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4592 if test "x$ac_cv_prog_cc_c99" != xno; then :
4598 # Error out if the compiler does not support C99, as the codebase
4600 if test "$ac_cv_prog_cc_c99" = no; then
4601 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4605 ac_cpp='$CXXCPP $CPPFLAGS'
4606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4609 if test -z "$CXX"; then
4610 if test -n "$CCC"; then
4613 if test -n "$ac_tool_prefix"; then
4614 for ac_prog in $pgac_cxx_list
4616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_CXX+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -n "$CXX"; then
4624 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 if test -n "$CXX"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4646 $as_echo "$CXX" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 test -n "$CXX" && break
4656 if test -z "$CXX"; then
4658 for ac_prog in $pgac_cxx_list
4660 # Extract the first word of "$ac_prog", so it can be a program name with args.
4661 set dummy $ac_prog; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$ac_ct_CXX"; then
4668 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_CXX="$ac_prog"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4688 if test -n "$ac_ct_CXX"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4690 $as_echo "$ac_ct_CXX" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4697 test -n "$ac_ct_CXX" && break
4700 if test "x$ac_ct_CXX" = x; then
4703 case $cross_compiling:$ac_tool_warned in
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4715 # Provide some information about the compiler.
4716 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4719 for ac_option in --version -v -V -qversion; do
4720 { { ac_try="$ac_compiler $ac_option >&5"
4722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4723 *) ac_try_echo
=$ac_try;;
4725 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4729 if test -s conftest.err
; then
4731 ... rest of stderr output deleted ...
4732 10q' conftest.err
>conftest.er1
4733 cat conftest.er1
>&5
4735 rm -f conftest.er1 conftest.err
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4741 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4742 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4743 $as_echo_n "(cached) " >&6
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4759 if ac_fn_cxx_try_compile
"$LINENO"; then :
4764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4765 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4769 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4770 if test $ac_compiler_gnu = yes; then
4775 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4776 ac_save_CXXFLAGS
=$CXXFLAGS
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4778 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4779 if ${ac_cv_prog_cxx_g+:} false
; then :
4780 $as_echo_n "(cached) " >&6
4782 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4783 ac_cxx_werror_flag
=yes
4786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4797 if ac_fn_cxx_try_compile
"$LINENO"; then :
4798 ac_cv_prog_cxx_g
=yes
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4812 if ac_fn_cxx_try_compile
"$LINENO"; then :
4815 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 if ac_fn_cxx_try_compile
"$LINENO"; then :
4829 ac_cv_prog_cxx_g
=yes
4831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4839 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4840 if test "$ac_test_CXXFLAGS" = set; then
4841 CXXFLAGS
=$ac_save_CXXFLAGS
4842 elif test $ac_cv_prog_cxx_g = yes; then
4843 if test "$GXX" = yes; then
4849 if test "$GXX" = yes; then
4856 ac_cpp
='$CPP $CPPFLAGS'
4857 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4862 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4863 # but has idiosyncrasies of its own. We assume icc will define
4864 # __INTEL_COMPILER regardless of CFLAGS.
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4872 #ifndef __INTEL_COMPILER
4879 if ac_fn_c_try_compile
"$LINENO"; then :
4884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 # Check if it's Sun Studio compiler. We assume that
4887 # __SUNPRO_C will be defined for Sun Studio compilers
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4901 if ac_fn_c_try_compile
"$LINENO"; then :
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 # Checked early because subsequent tests depend on it.
4918 # Check whether --with-llvm was given.
4919 if test "${with_llvm+set}" = set; then :
4924 $as_echo "#define USE_LLVM 1" >>confdefs.h
4931 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4942 for ac_prog
in gawk mawk nawk
awk
4944 # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy
$ac_prog; ac_word
=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if ${ac_cv_prog_AWK+:} false
; then :
4949 $as_echo_n "(cached) " >&6
4951 if test -n "$AWK"; then
4952 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_AWK
="$ac_prog"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 if test -n "$AWK"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4974 $as_echo "$AWK" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4981 test -n "$AWK" && break
4984 if test "$with_llvm" = yes; then :
4990 if test -z "$LLVM_CONFIG"; then
4991 for ac_prog
in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
4993 # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy
$ac_prog; ac_word
=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
4998 $as_echo_n "(cached) " >&6
5000 case $LLVM_CONFIG in
5002 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir
=.
5010 for ac_exec_ext
in '' $ac_executable_extensions; do
5011 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5024 if test -n "$LLVM_CONFIG"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5026 $as_echo "$LLVM_CONFIG" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5033 test -n "$LLVM_CONFIG" && break
5037 # Report the value of LLVM_CONFIG in configure's output in all cases.
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5039 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5041 $as_echo "$LLVM_CONFIG" >&6; }
5045 # no point continuing if llvm wasn't found
5046 if test -z "$LLVM_CONFIG"; then
5047 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5049 # check if detected $LLVM_CONFIG is executable
5050 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5051 if test "x$pgac_llvm_version" = "xno"; then
5052 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5054 # and whether the version is supported
5055 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5056 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
5059 $as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
5061 # need clang to create some bitcode files
5063 if test -z "$CLANG"; then
5064 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5066 # Extract the first word of "$ac_prog", so it can be a program name with args.
5067 set dummy
$ac_prog; ac_word
=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_CLANG+:} false
; then :
5071 $as_echo_n "(cached) " >&6
5075 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir
=.
5083 for ac_exec_ext
in '' $ac_executable_extensions; do
5084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 CLANG
=$ac_cv_path_CLANG
5097 if test -n "$CLANG"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5099 $as_echo "$CLANG" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5106 test -n "$CLANG" && break
5110 # Report the value of CLANG in configure's output in all cases.
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5112 $as_echo_n "checking for CLANG... " >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5114 $as_echo "$CLANG" >&6; }
5117 if test -z "$CLANG"; then
5118 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5120 # make sure clang is executable
5121 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5122 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5124 # Could check clang version, but it doesn't seem that
5125 # important. Systems with a new enough LLVM version are usually
5126 # going to have a decent clang version too. It's also not entirely
5127 # clear what the minimum version is.
5129 # Collect compiler flags necessary to build the LLVM dependent
5131 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5132 case $pgac_option in
5133 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5137 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5138 case $pgac_option in
5139 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5143 # ABI influencing options, standard influencing options
5144 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5145 case $pgac_option in
5146 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5147 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5151 # Look for components we're interested in, collect necessary
5152 # libs. As some components are optional, we can't just list all of
5153 # them as it'd raise an error.
5155 for pgac_component
in `$LLVM_CONFIG --components`; do
5156 case $pgac_component in
5157 engine
) pgac_components
="$pgac_components $pgac_component";;
5158 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5159 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5160 passes
) pgac_components
="$pgac_components $pgac_component";;
5161 native
) pgac_components
="$pgac_components $pgac_component";;
5162 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5166 # And then get the libraries that need to be linked in for the
5167 # selected components. They're large libraries, we only want to
5168 # link them into the LLVM using shared library.
5169 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5170 case $pgac_option in
5171 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5175 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5194 .
"$srcdir/src/template/$template" ||
exit
5196 # C[XX]FLAGS are selected so:
5197 # If the user specifies something in the environment, that is used.
5198 # else: If the template file set something, that is used.
5199 # else: If coverage was enabled, don't set anything.
5200 # else: If the compiler is GCC, then we use -O2.
5201 # else: If the compiler is something else, then we use -O, unless debugging.
5203 if test "$ac_env_CFLAGS_set" = set; then
5204 CFLAGS
=$ac_env_CFLAGS_value
5205 elif test "${CFLAGS+set}" = set; then
5206 : # (keep what template set)
5207 elif test "$enable_coverage" = yes; then
5208 : # no optimization by default
5209 elif test "$GCC" = yes; then
5212 # if the user selected debug mode, don't use -O
5213 if test "$enable_debug" != yes; then
5218 if test "$ac_env_CXXFLAGS_set" = set; then
5219 CXXFLAGS
=$ac_env_CXXFLAGS_value
5220 elif test "${CXXFLAGS+set}" = set; then
5221 : # (keep what template set)
5222 elif test "$enable_coverage" = yes; then
5223 : # no optimization by default
5224 elif test "$GCC" = yes; then
5227 # if the user selected debug mode, don't use -O
5228 if test "$enable_debug" != yes; then
5233 # When generating bitcode (for inlining) we always want to use -O2
5234 # even when --enable-debug is specified. The bitcode is not going to
5235 # be used for line-by-line debugging, and JIT inlining doesn't work
5236 # without at least -O1 (otherwise clang will emit 'noinline'
5237 # attributes everywhere), which is bad for testing. Still allow the
5238 # environment to override if done explicitly.
5239 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5240 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5242 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5244 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5245 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5247 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5250 # C[XX]FLAGS we determined above will be added back at the end
5253 user_CXXFLAGS
=$CXXFLAGS
5255 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5257 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5260 # set CFLAGS_VECTOR from the environment, if available
5261 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5262 CFLAGS_VECTOR
=$ac_env_CFLAGS_VECTOR_value
5265 # Some versions of GCC support some additional useful warning flags.
5266 # Check whether they are supported, and add them to CFLAGS if so.
5267 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5268 # but has its own. Also check other compiler-specific flags here.
5270 if test "$GCC" = yes -a "$ICC" = no
; then
5271 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5272 CXXFLAGS
="-Wall -Wpointer-arith"
5273 # These work in some but not all gcc versions
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5277 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5278 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5279 $as_echo_n "(cached) " >&6
5281 pgac_save_CFLAGS
=$CFLAGS
5284 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5285 ac_save_c_werror_flag
=$ac_c_werror_flag
5286 ac_c_werror_flag
=yes
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5298 if ac_fn_c_try_compile
"$LINENO"; then :
5299 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5301 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5304 ac_c_werror_flag
=$ac_save_c_werror_flag
5305 CFLAGS
="$pgac_save_CFLAGS"
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5309 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5310 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5311 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5315 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5316 # disable it, so AC_SUBST the negative form.
5317 PERMIT_DECLARATION_AFTER_STATEMENT
=
5318 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5319 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5322 # Really don't want VLAs to be used in our dialect of C
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5325 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5326 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5327 $as_echo_n "(cached) " >&6
5329 pgac_save_CFLAGS
=$CFLAGS
5332 CFLAGS
="${CFLAGS} -Werror=vla"
5333 ac_save_c_werror_flag
=$ac_c_werror_flag
5334 ac_c_werror_flag
=yes
5335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5346 if ac_fn_c_try_compile
"$LINENO"; then :
5347 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5349 pgac_cv_prog_CC_cflags__Werror_vla
=no
5351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5352 ac_c_werror_flag
=$ac_save_c_werror_flag
5353 CFLAGS
="$pgac_save_CFLAGS"
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5357 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5358 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5359 CFLAGS
="${CFLAGS} -Werror=vla"
5363 # -Wvla is not applicable for C++
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5366 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5367 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5368 $as_echo_n "(cached) " >&6
5370 pgac_save_CFLAGS
=$CFLAGS
5373 CFLAGS
="${CFLAGS} -Wendif-labels"
5374 ac_save_c_werror_flag
=$ac_c_werror_flag
5375 ac_c_werror_flag
=yes
5376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5387 if ac_fn_c_try_compile
"$LINENO"; then :
5388 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5390 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 ac_c_werror_flag
=$ac_save_c_werror_flag
5394 CFLAGS
="$pgac_save_CFLAGS"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5398 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5399 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5400 CFLAGS
="${CFLAGS} -Wendif-labels"
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5405 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5406 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5407 $as_echo_n "(cached) " >&6
5409 pgac_save_CXXFLAGS
=$CXXFLAGS
5412 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5413 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5414 ac_cxx_werror_flag
=yes
5416 ac_cpp
='$CXXCPP $CPPFLAGS'
5417 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5432 if ac_fn_cxx_try_compile
"$LINENO"; then :
5433 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5435 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5439 ac_cpp
='$CPP $CPPFLAGS'
5440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5444 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5445 CXXFLAGS
="$pgac_save_CXXFLAGS"
5446 CXX
="$pgac_save_CXX"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5449 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5450 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5451 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5457 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5458 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5459 $as_echo_n "(cached) " >&6
5461 pgac_save_CFLAGS
=$CFLAGS
5464 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5465 ac_save_c_werror_flag
=$ac_c_werror_flag
5466 ac_c_werror_flag
=yes
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5478 if ac_fn_c_try_compile
"$LINENO"; then :
5479 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5481 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5484 ac_c_werror_flag
=$ac_save_c_werror_flag
5485 CFLAGS
="$pgac_save_CFLAGS"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5489 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5490 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5491 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5496 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5497 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5498 $as_echo_n "(cached) " >&6
5500 pgac_save_CXXFLAGS
=$CXXFLAGS
5503 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5504 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5505 ac_cxx_werror_flag
=yes
5507 ac_cpp
='$CXXCPP $CPPFLAGS'
5508 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5523 if ac_fn_cxx_try_compile
"$LINENO"; then :
5524 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5526 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5530 ac_cpp
='$CPP $CPPFLAGS'
5531 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5535 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5536 CXXFLAGS
="$pgac_save_CXXFLAGS"
5537 CXX
="$pgac_save_CXX"
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5540 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5541 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5542 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5546 # This was included in -Wall/-Wformat in older GCC versions
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5549 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5550 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5551 $as_echo_n "(cached) " >&6
5553 pgac_save_CFLAGS
=$CFLAGS
5556 CFLAGS
="${CFLAGS} -Wformat-security"
5557 ac_save_c_werror_flag
=$ac_c_werror_flag
5558 ac_c_werror_flag
=yes
5559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5570 if ac_fn_c_try_compile
"$LINENO"; then :
5571 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5573 pgac_cv_prog_CC_cflags__Wformat_security
=no
5575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5576 ac_c_werror_flag
=$ac_save_c_werror_flag
5577 CFLAGS
="$pgac_save_CFLAGS"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5581 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5582 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5583 CFLAGS
="${CFLAGS} -Wformat-security"
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5588 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5589 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5590 $as_echo_n "(cached) " >&6
5592 pgac_save_CXXFLAGS
=$CXXFLAGS
5595 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5596 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5597 ac_cxx_werror_flag
=yes
5599 ac_cpp
='$CXXCPP $CPPFLAGS'
5600 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5615 if ac_fn_cxx_try_compile
"$LINENO"; then :
5616 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
5618 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
5620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 ac_cpp
='$CPP $CPPFLAGS'
5623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5627 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5628 CXXFLAGS
="$pgac_save_CXXFLAGS"
5629 CXX
="$pgac_save_CXX"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5632 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5633 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
5634 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5638 # Disable strict-aliasing rules; needed for gcc 3.3+
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5641 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5642 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
5643 $as_echo_n "(cached) " >&6
5645 pgac_save_CFLAGS
=$CFLAGS
5648 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5649 ac_save_c_werror_flag
=$ac_c_werror_flag
5650 ac_c_werror_flag
=yes
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5662 if ac_fn_c_try_compile
"$LINENO"; then :
5663 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
5665 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
5667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5668 ac_c_werror_flag
=$ac_save_c_werror_flag
5669 CFLAGS
="$pgac_save_CFLAGS"
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5673 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5674 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
5675 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5680 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5681 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
5682 $as_echo_n "(cached) " >&6
5684 pgac_save_CXXFLAGS
=$CXXFLAGS
5687 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5688 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5689 ac_cxx_werror_flag
=yes
5691 ac_cpp
='$CXXCPP $CPPFLAGS'
5692 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5693 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5694 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5707 if ac_fn_cxx_try_compile
"$LINENO"; then :
5708 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
5710 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 ac_cpp
='$CPP $CPPFLAGS'
5715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5719 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5720 CXXFLAGS
="$pgac_save_CXXFLAGS"
5721 CXX
="$pgac_save_CXX"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5724 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5725 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
5726 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5730 # Disable optimizations that assume no overflow; needed for gcc 4.3+
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5733 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5734 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
5735 $as_echo_n "(cached) " >&6
5737 pgac_save_CFLAGS
=$CFLAGS
5740 CFLAGS
="${CFLAGS} -fwrapv"
5741 ac_save_c_werror_flag
=$ac_c_werror_flag
5742 ac_c_werror_flag
=yes
5743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5754 if ac_fn_c_try_compile
"$LINENO"; then :
5755 pgac_cv_prog_CC_cflags__fwrapv
=yes
5757 pgac_cv_prog_CC_cflags__fwrapv
=no
5759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5760 ac_c_werror_flag
=$ac_save_c_werror_flag
5761 CFLAGS
="$pgac_save_CFLAGS"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5765 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5766 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
5767 CFLAGS
="${CFLAGS} -fwrapv"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5772 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5773 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
5774 $as_echo_n "(cached) " >&6
5776 pgac_save_CXXFLAGS
=$CXXFLAGS
5779 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5780 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5781 ac_cxx_werror_flag
=yes
5783 ac_cpp
='$CXXCPP $CPPFLAGS'
5784 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5799 if ac_fn_cxx_try_compile
"$LINENO"; then :
5800 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
5802 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
5804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 ac_cpp
='$CPP $CPPFLAGS'
5807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5811 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5812 CXXFLAGS
="$pgac_save_CXXFLAGS"
5813 CXX
="$pgac_save_CXX"
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5816 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5817 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
5818 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5822 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5825 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5826 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
5827 $as_echo_n "(cached) " >&6
5829 pgac_save_CFLAGS
=$CFLAGS
5832 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5833 ac_save_c_werror_flag
=$ac_c_werror_flag
5834 ac_c_werror_flag
=yes
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5846 if ac_fn_c_try_compile
"$LINENO"; then :
5847 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
5849 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
5851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 ac_c_werror_flag
=$ac_save_c_werror_flag
5853 CFLAGS
="$pgac_save_CFLAGS"
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
5857 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
5858 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
5859 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
5864 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
5865 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
5866 $as_echo_n "(cached) " >&6
5868 pgac_save_CXXFLAGS
=$CXXFLAGS
5871 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5872 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5873 ac_cxx_werror_flag
=yes
5875 ac_cpp
='$CXXCPP $CPPFLAGS'
5876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5891 if ac_fn_cxx_try_compile
"$LINENO"; then :
5892 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
5894 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
5896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 ac_cpp
='$CPP $CPPFLAGS'
5899 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5903 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5904 CXXFLAGS
="$pgac_save_CXXFLAGS"
5905 CXX
="$pgac_save_CXX"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
5908 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
5909 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
5910 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5914 # Optimization flags for specific files that benefit from vectorization
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
5916 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
5917 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
5918 $as_echo_n "(cached) " >&6
5920 pgac_save_CFLAGS
=$CFLAGS
5923 CFLAGS
="${CFLAGS_VECTOR} -funroll-loops"
5924 ac_save_c_werror_flag
=$ac_c_werror_flag
5925 ac_c_werror_flag
=yes
5926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5937 if ac_fn_c_try_compile
"$LINENO"; then :
5938 pgac_cv_prog_CC_cflags__funroll_loops
=yes
5940 pgac_cv_prog_CC_cflags__funroll_loops
=no
5942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 ac_c_werror_flag
=$ac_save_c_werror_flag
5944 CFLAGS
="$pgac_save_CFLAGS"
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
5948 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
5949 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
5950 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -funroll-loops"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
5955 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
5956 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
5957 $as_echo_n "(cached) " >&6
5959 pgac_save_CFLAGS
=$CFLAGS
5962 CFLAGS
="${CFLAGS_VECTOR} -ftree-vectorize"
5963 ac_save_c_werror_flag
=$ac_c_werror_flag
5964 ac_c_werror_flag
=yes
5965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5976 if ac_fn_c_try_compile
"$LINENO"; then :
5977 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
5979 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
5981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5982 ac_c_werror_flag
=$ac_save_c_werror_flag
5983 CFLAGS
="$pgac_save_CFLAGS"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
5987 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
5988 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
5989 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -ftree-vectorize"
5994 # The following tests want to suppress various unhelpful warnings by adding
5995 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
5996 # switches, so we have to test for the positive form and if that works,
5997 # add the negative form. Note that tests of this form typically need to
5998 # be duplicated in the BITCODE_CFLAGS setup stanza below.
6000 # Suppress clang's unhelpful unused-command-line-argument warnings.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6003 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6004 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6005 $as_echo_n "(cached) " >&6
6007 pgac_save_CFLAGS
=$CFLAGS
6010 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6011 ac_save_c_werror_flag
=$ac_c_werror_flag
6012 ac_c_werror_flag
=yes
6013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6024 if ac_fn_c_try_compile
"$LINENO"; then :
6025 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6027 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6030 ac_c_werror_flag
=$ac_save_c_werror_flag
6031 CFLAGS
="$pgac_save_CFLAGS"
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6035 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6036 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6037 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6041 if test -n "$NOT_THE_CFLAGS"; then
6042 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6044 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6045 # of warnings when building plperl because of usages in the Perl headers.
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6048 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6049 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6050 $as_echo_n "(cached) " >&6
6052 pgac_save_CFLAGS
=$CFLAGS
6055 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6056 ac_save_c_werror_flag
=$ac_c_werror_flag
6057 ac_c_werror_flag
=yes
6058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6069 if ac_fn_c_try_compile
"$LINENO"; then :
6070 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6072 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6075 ac_c_werror_flag
=$ac_save_c_werror_flag
6076 CFLAGS
="$pgac_save_CFLAGS"
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6080 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6081 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6082 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6086 if test -n "$NOT_THE_CFLAGS"; then
6087 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6089 # Similarly remove clang 15+'s deprecated-non-prototype, as it warns about
6090 # tree-walking APIs that we can't reasonably change in the back branches.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeprecated-non-prototype, for NOT_THE_CFLAGS" >&5
6093 $as_echo_n "checking whether ${CC} supports -Wdeprecated-non-prototype, for NOT_THE_CFLAGS... " >&6; }
6094 if ${pgac_cv_prog_CC_cflags__Wdeprecated_non_prototype+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6097 pgac_save_CFLAGS
=$CFLAGS
6100 CFLAGS
="${NOT_THE_CFLAGS} -Wdeprecated-non-prototype"
6101 ac_save_c_werror_flag
=$ac_c_werror_flag
6102 ac_c_werror_flag
=yes
6103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6114 if ac_fn_c_try_compile
"$LINENO"; then :
6115 pgac_cv_prog_CC_cflags__Wdeprecated_non_prototype
=yes
6117 pgac_cv_prog_CC_cflags__Wdeprecated_non_prototype
=no
6119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6120 ac_c_werror_flag
=$ac_save_c_werror_flag
6121 CFLAGS
="$pgac_save_CFLAGS"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeprecated_non_prototype" >&5
6125 $as_echo "$pgac_cv_prog_CC_cflags__Wdeprecated_non_prototype" >&6; }
6126 if test x
"$pgac_cv_prog_CC_cflags__Wdeprecated_non_prototype" = x
"yes"; then
6127 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wdeprecated-non-prototype"
6131 if test -n "$NOT_THE_CFLAGS"; then
6132 CFLAGS
="$CFLAGS -Wno-deprecated-non-prototype"
6134 # Similarly disable useless truncation warnings from gcc 8+
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6137 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6138 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6139 $as_echo_n "(cached) " >&6
6141 pgac_save_CFLAGS
=$CFLAGS
6144 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6145 ac_save_c_werror_flag
=$ac_c_werror_flag
6146 ac_c_werror_flag
=yes
6147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6158 if ac_fn_c_try_compile
"$LINENO"; then :
6159 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6161 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6164 ac_c_werror_flag
=$ac_save_c_werror_flag
6165 CFLAGS
="$pgac_save_CFLAGS"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6169 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6170 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6171 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6175 if test -n "$NOT_THE_CFLAGS"; then
6176 CFLAGS
="$CFLAGS -Wno-format-truncation"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6180 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6181 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6182 $as_echo_n "(cached) " >&6
6184 pgac_save_CFLAGS
=$CFLAGS
6187 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6188 ac_save_c_werror_flag
=$ac_c_werror_flag
6189 ac_c_werror_flag
=yes
6190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6201 if ac_fn_c_try_compile
"$LINENO"; then :
6202 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6204 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 ac_c_werror_flag
=$ac_save_c_werror_flag
6208 CFLAGS
="$pgac_save_CFLAGS"
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6212 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6213 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6214 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6218 if test -n "$NOT_THE_CFLAGS"; then
6219 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6221 elif test "$ICC" = yes; then
6222 # Intel's compiler has a bug/misoptimization in checking for
6223 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6226 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6227 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6228 $as_echo_n "(cached) " >&6
6230 pgac_save_CFLAGS
=$CFLAGS
6233 CFLAGS
="${CFLAGS} -mp1"
6234 ac_save_c_werror_flag
=$ac_c_werror_flag
6235 ac_c_werror_flag
=yes
6236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6247 if ac_fn_c_try_compile
"$LINENO"; then :
6248 pgac_cv_prog_CC_cflags__mp1
=yes
6250 pgac_cv_prog_CC_cflags__mp1
=no
6252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6253 ac_c_werror_flag
=$ac_save_c_werror_flag
6254 CFLAGS
="$pgac_save_CFLAGS"
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6258 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6259 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6260 CFLAGS
="${CFLAGS} -mp1"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6265 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6266 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6267 $as_echo_n "(cached) " >&6
6269 pgac_save_CXXFLAGS
=$CXXFLAGS
6272 CXXFLAGS
="${CXXFLAGS} -mp1"
6273 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6274 ac_cxx_werror_flag
=yes
6276 ac_cpp
='$CXXCPP $CPPFLAGS'
6277 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6292 if ac_fn_cxx_try_compile
"$LINENO"; then :
6293 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6295 pgac_cv_prog_CXX_cxxflags__mp1
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6299 ac_cpp
='$CPP $CPPFLAGS'
6300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6304 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6305 CXXFLAGS
="$pgac_save_CXXFLAGS"
6306 CXX
="$pgac_save_CXX"
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6309 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6310 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6311 CXXFLAGS
="${CXXFLAGS} -mp1"
6315 # Make sure strict aliasing is off (though this is said to be the default)
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6318 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6319 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6320 $as_echo_n "(cached) " >&6
6322 pgac_save_CFLAGS
=$CFLAGS
6325 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6326 ac_save_c_werror_flag
=$ac_c_werror_flag
6327 ac_c_werror_flag
=yes
6328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6339 if ac_fn_c_try_compile
"$LINENO"; then :
6340 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6342 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6345 ac_c_werror_flag
=$ac_save_c_werror_flag
6346 CFLAGS
="$pgac_save_CFLAGS"
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6350 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6351 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6352 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6357 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6358 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6359 $as_echo_n "(cached) " >&6
6361 pgac_save_CXXFLAGS
=$CXXFLAGS
6364 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6365 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6366 ac_cxx_werror_flag
=yes
6368 ac_cpp
='$CXXCPP $CPPFLAGS'
6369 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6370 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6371 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6384 if ac_fn_cxx_try_compile
"$LINENO"; then :
6385 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6387 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6391 ac_cpp
='$CPP $CPPFLAGS'
6392 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6393 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6394 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6396 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6397 CXXFLAGS
="$pgac_save_CXXFLAGS"
6398 CXX
="$pgac_save_CXX"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6401 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6402 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6403 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6407 elif test "$PORTNAME" = "aix"; then
6408 # AIX's xlc has to have strict aliasing turned off too
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6411 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6412 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6413 $as_echo_n "(cached) " >&6
6415 pgac_save_CFLAGS
=$CFLAGS
6418 CFLAGS
="${CFLAGS} -qnoansialias"
6419 ac_save_c_werror_flag
=$ac_c_werror_flag
6420 ac_c_werror_flag
=yes
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_compile
"$LINENO"; then :
6433 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6435 pgac_cv_prog_CC_cflags__qnoansialias
=no
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6438 ac_c_werror_flag
=$ac_save_c_werror_flag
6439 CFLAGS
="$pgac_save_CFLAGS"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6443 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6444 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6445 CFLAGS
="${CFLAGS} -qnoansialias"
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6450 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6451 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6452 $as_echo_n "(cached) " >&6
6454 pgac_save_CXXFLAGS
=$CXXFLAGS
6457 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6458 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6459 ac_cxx_werror_flag
=yes
6461 ac_cpp
='$CXXCPP $CPPFLAGS'
6462 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6477 if ac_fn_cxx_try_compile
"$LINENO"; then :
6478 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6480 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6484 ac_cpp
='$CPP $CPPFLAGS'
6485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6489 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6490 CXXFLAGS
="$pgac_save_CXXFLAGS"
6491 CXX
="$pgac_save_CXX"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6494 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6495 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6496 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6502 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6503 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6504 $as_echo_n "(cached) " >&6
6506 pgac_save_CFLAGS
=$CFLAGS
6509 CFLAGS
="${CFLAGS} -qlonglong"
6510 ac_save_c_werror_flag
=$ac_c_werror_flag
6511 ac_c_werror_flag
=yes
6512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6523 if ac_fn_c_try_compile
"$LINENO"; then :
6524 pgac_cv_prog_CC_cflags__qlonglong
=yes
6526 pgac_cv_prog_CC_cflags__qlonglong
=no
6528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6529 ac_c_werror_flag
=$ac_save_c_werror_flag
6530 CFLAGS
="$pgac_save_CFLAGS"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6534 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6535 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6536 CFLAGS
="${CFLAGS} -qlonglong"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6541 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6542 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6543 $as_echo_n "(cached) " >&6
6545 pgac_save_CXXFLAGS
=$CXXFLAGS
6548 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6549 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6550 ac_cxx_werror_flag
=yes
6552 ac_cpp
='$CXXCPP $CPPFLAGS'
6553 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6568 if ac_fn_cxx_try_compile
"$LINENO"; then :
6569 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
6571 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
6573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6575 ac_cpp
='$CPP $CPPFLAGS'
6576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6580 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6581 CXXFLAGS
="$pgac_save_CXXFLAGS"
6582 CXX
="$pgac_save_CXX"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
6585 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
6586 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
6587 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6591 elif test "$PORTNAME" = "hpux"; then
6592 # On some versions of HP-UX, libm functions do not set errno by default.
6593 # Fix that by using +Olibmerrno if the compiler recognizes it.
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6596 $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6597 if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false
; then :
6598 $as_echo_n "(cached) " >&6
6600 pgac_save_CFLAGS
=$CFLAGS
6603 CFLAGS
="${CFLAGS} +Olibmerrno"
6604 ac_save_c_werror_flag
=$ac_c_werror_flag
6605 ac_c_werror_flag
=yes
6606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6617 if ac_fn_c_try_compile
"$LINENO"; then :
6618 pgac_cv_prog_CC_cflags_pOlibmerrno
=yes
6620 pgac_cv_prog_CC_cflags_pOlibmerrno
=no
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6623 ac_c_werror_flag
=$ac_save_c_werror_flag
6624 CFLAGS
="$pgac_save_CFLAGS"
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6628 $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6629 if test x
"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x
"yes"; then
6630 CFLAGS
="${CFLAGS} +Olibmerrno"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6635 $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6636 if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false
; then :
6637 $as_echo_n "(cached) " >&6
6639 pgac_save_CXXFLAGS
=$CXXFLAGS
6642 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6643 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6644 ac_cxx_werror_flag
=yes
6646 ac_cpp
='$CXXCPP $CPPFLAGS'
6647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6662 if ac_fn_cxx_try_compile
"$LINENO"; then :
6663 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=yes
6665 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=no
6667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6669 ac_cpp
='$CPP $CPPFLAGS'
6670 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6674 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6675 CXXFLAGS
="$pgac_save_CXXFLAGS"
6676 CXX
="$pgac_save_CXX"
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6679 $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6680 if test x
"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x
"yes"; then
6681 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6689 # Determine flags used to emit bitcode for JIT inlining.
6690 # 1. We must duplicate any behaviour-changing compiler flags used above,
6691 # to keep compatibility with the compiler used for normal Postgres code.
6692 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
6693 # warning in the main build is enough.
6694 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
6695 if test "$with_llvm" = yes ; then
6696 CLANGXX
="$CLANG -xc++"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
6699 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
6700 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
6701 $as_echo_n "(cached) " >&6
6703 pgac_save_CFLAGS
=$CFLAGS
6706 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6707 ac_save_c_werror_flag
=$ac_c_werror_flag
6708 ac_c_werror_flag
=yes
6709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6720 if ac_fn_c_try_compile
"$LINENO"; then :
6721 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
6723 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
6725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6726 ac_c_werror_flag
=$ac_save_c_werror_flag
6727 CFLAGS
="$pgac_save_CFLAGS"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
6731 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
6732 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
6733 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
6737 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
6738 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
6739 $as_echo_n "(cached) " >&6
6741 pgac_save_CXXFLAGS
=$CXXFLAGS
6744 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6745 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6746 ac_cxx_werror_flag
=yes
6748 ac_cpp
='$CXXCPP $CPPFLAGS'
6749 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6764 if ac_fn_cxx_try_compile
"$LINENO"; then :
6765 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
6767 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
6769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6771 ac_cpp
='$CPP $CPPFLAGS'
6772 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6776 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6777 CXXFLAGS
="$pgac_save_CXXFLAGS"
6778 CXX
="$pgac_save_CXX"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
6781 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
6782 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6783 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
6787 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
6788 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
6789 $as_echo_n "(cached) " >&6
6791 pgac_save_CFLAGS
=$CFLAGS
6794 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6795 ac_save_c_werror_flag
=$ac_c_werror_flag
6796 ac_c_werror_flag
=yes
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6808 if ac_fn_c_try_compile
"$LINENO"; then :
6809 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
6811 pgac_cv_prog_CLANG_cflags__fwrapv
=no
6813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6814 ac_c_werror_flag
=$ac_save_c_werror_flag
6815 CFLAGS
="$pgac_save_CFLAGS"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
6819 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
6820 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
6821 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
6825 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
6826 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 pgac_save_CXXFLAGS
=$CXXFLAGS
6832 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6833 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6834 ac_cxx_werror_flag
=yes
6836 ac_cpp
='$CXXCPP $CPPFLAGS'
6837 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6852 if ac_fn_cxx_try_compile
"$LINENO"; then :
6853 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
6855 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
6857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 ac_cpp
='$CPP $CPPFLAGS'
6860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6864 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6865 CXXFLAGS
="$pgac_save_CXXFLAGS"
6866 CXX
="$pgac_save_CXX"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
6869 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
6870 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
6871 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
6875 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
6876 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
6877 $as_echo_n "(cached) " >&6
6879 pgac_save_CFLAGS
=$CFLAGS
6882 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6883 ac_save_c_werror_flag
=$ac_c_werror_flag
6884 ac_c_werror_flag
=yes
6885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6896 if ac_fn_c_try_compile
"$LINENO"; then :
6897 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
6899 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
6901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6902 ac_c_werror_flag
=$ac_save_c_werror_flag
6903 CFLAGS
="$pgac_save_CFLAGS"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
6907 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
6908 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
6909 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
6913 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
6914 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
6915 $as_echo_n "(cached) " >&6
6917 pgac_save_CXXFLAGS
=$CXXFLAGS
6920 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6921 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6922 ac_cxx_werror_flag
=yes
6924 ac_cpp
='$CXXCPP $CPPFLAGS'
6925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6940 if ac_fn_cxx_try_compile
"$LINENO"; then :
6941 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
6943 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
6945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6947 ac_cpp
='$CPP $CPPFLAGS'
6948 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6952 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6953 CXXFLAGS
="$pgac_save_CXXFLAGS"
6954 CXX
="$pgac_save_CXX"
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
6957 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
6958 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6959 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS" >&5
6964 $as_echo_n "checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS... " >&6; }
6965 if ${pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers+:} false
; then :
6966 $as_echo_n "(cached) " >&6
6968 pgac_save_CFLAGS
=$CFLAGS
6971 CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
6972 ac_save_c_werror_flag
=$ac_c_werror_flag
6973 ac_c_werror_flag
=yes
6974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6985 if ac_fn_c_try_compile
"$LINENO"; then :
6986 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=yes
6988 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=no
6990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6991 ac_c_werror_flag
=$ac_save_c_werror_flag
6992 CFLAGS
="$pgac_save_CFLAGS"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&5
6996 $as_echo "$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&6; }
6997 if test x
"$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" = x
"yes"; then
6998 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS" >&5
7002 $as_echo_n "checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS... " >&6; }
7003 if ${pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers+:} false
; then :
7004 $as_echo_n "(cached) " >&6
7006 pgac_save_CXXFLAGS
=$CXXFLAGS
7009 CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7010 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7011 ac_cxx_werror_flag
=yes
7013 ac_cpp
='$CXXCPP $CPPFLAGS'
7014 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7029 if ac_fn_cxx_try_compile
"$LINENO"; then :
7030 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=yes
7032 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=no
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7036 ac_cpp
='$CPP $CPPFLAGS'
7037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7041 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7042 CXXFLAGS
="$pgac_save_CXXFLAGS"
7043 CXX
="$pgac_save_CXX"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&5
7046 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&6; }
7047 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" = x
"yes"; then
7048 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7054 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7055 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7056 $as_echo_n "(cached) " >&6
7058 pgac_save_CFLAGS
=$CFLAGS
7061 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7062 ac_save_c_werror_flag
=$ac_c_werror_flag
7063 ac_c_werror_flag
=yes
7064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7075 if ac_fn_c_try_compile
"$LINENO"; then :
7076 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7078 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7081 ac_c_werror_flag
=$ac_save_c_werror_flag
7082 CFLAGS
="$pgac_save_CFLAGS"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7086 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7087 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7088 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7091 if test -n "$NOT_THE_CFLAGS"; then
7092 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7096 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7097 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7098 $as_echo_n "(cached) " >&6
7100 pgac_save_CFLAGS
=$CFLAGS
7103 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7104 ac_save_c_werror_flag
=$ac_c_werror_flag
7105 ac_c_werror_flag
=yes
7106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7117 if ac_fn_c_try_compile
"$LINENO"; then :
7118 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7120 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7123 ac_c_werror_flag
=$ac_save_c_werror_flag
7124 CFLAGS
="$pgac_save_CFLAGS"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7128 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7129 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7130 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7133 if test -n "$NOT_THE_CFLAGS"; then
7134 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wdeprecated-non-prototype, for NOT_THE_CFLAGS" >&5
7138 $as_echo_n "checking whether ${CLANG} supports -Wdeprecated-non-prototype, for NOT_THE_CFLAGS... " >&6; }
7139 if ${pgac_cv_prog_CLANG_cflags__Wdeprecated_non_prototype+:} false
; then :
7140 $as_echo_n "(cached) " >&6
7142 pgac_save_CFLAGS
=$CFLAGS
7145 CFLAGS
="${NOT_THE_CFLAGS} -Wdeprecated-non-prototype"
7146 ac_save_c_werror_flag
=$ac_c_werror_flag
7147 ac_c_werror_flag
=yes
7148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7159 if ac_fn_c_try_compile
"$LINENO"; then :
7160 pgac_cv_prog_CLANG_cflags__Wdeprecated_non_prototype
=yes
7162 pgac_cv_prog_CLANG_cflags__Wdeprecated_non_prototype
=no
7164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7165 ac_c_werror_flag
=$ac_save_c_werror_flag
7166 CFLAGS
="$pgac_save_CFLAGS"
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wdeprecated_non_prototype" >&5
7170 $as_echo "$pgac_cv_prog_CLANG_cflags__Wdeprecated_non_prototype" >&6; }
7171 if test x
"$pgac_cv_prog_CLANG_cflags__Wdeprecated_non_prototype" = x
"yes"; then
7172 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wdeprecated-non-prototype"
7175 if test -n "$NOT_THE_CFLAGS"; then
7176 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-deprecated-non-prototype"
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7180 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7181 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7182 $as_echo_n "(cached) " >&6
7184 pgac_save_CFLAGS
=$CFLAGS
7187 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7188 ac_save_c_werror_flag
=$ac_c_werror_flag
7189 ac_c_werror_flag
=yes
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7201 if ac_fn_c_try_compile
"$LINENO"; then :
7202 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7204 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7207 ac_c_werror_flag
=$ac_save_c_werror_flag
7208 CFLAGS
="$pgac_save_CFLAGS"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7212 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7213 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7214 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7217 if test -n "$NOT_THE_CFLAGS"; then
7218 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7222 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7223 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7224 $as_echo_n "(cached) " >&6
7226 pgac_save_CFLAGS
=$CFLAGS
7229 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7230 ac_save_c_werror_flag
=$ac_c_werror_flag
7231 ac_c_werror_flag
=yes
7232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7243 if ac_fn_c_try_compile
"$LINENO"; then :
7244 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7246 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7249 ac_c_werror_flag
=$ac_save_c_werror_flag
7250 CFLAGS
="$pgac_save_CFLAGS"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7254 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7255 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7256 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7259 if test -n "$NOT_THE_CFLAGS"; then
7260 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7264 # supply -g if --enable-debug
7265 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7269 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7270 CXXFLAGS
="$CXXFLAGS -g"
7273 # enable code coverage if --enable-coverage
7274 if test "$enable_coverage" = yes; then
7275 if test "$GCC" = yes; then
7276 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7277 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7279 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7283 # enable profiling if --enable-profiling
7284 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7285 if test "$GCC" = yes; then
7287 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7289 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7290 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7292 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7296 # We already have this in Makefile.win32, but configure needs it too
7297 if test "$PORTNAME" = "win32"; then
7298 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
7301 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7302 # user-specified flags (if any) at the end. This lets users override
7303 # the automatic additions.
7304 CFLAGS
="$CFLAGS $user_CFLAGS"
7305 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7306 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7307 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7312 # The template file must set up CFLAGS_SL; we don't support user override
7315 # Check if the compiler still works with the final flag settings
7316 # (note, we're not checking that for CXX, which is optional)
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7318 $as_echo_n "checking whether the C compiler still works... " >&6; }
7319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7330 if ac_fn_c_try_link
"$LINENO"; then :
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7332 $as_echo "yes" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 as_fn_error $?
"cannot proceed" "$LINENO" 5
7338 rm -f core conftest.err conftest.
$ac_objext \
7339 conftest
$ac_exeext conftest.
$ac_ext
7341 # Defend against gcc -ffast-math
7342 if test "$GCC" = yes; then
7343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7349 #ifdef __FAST_MATH__
7356 if ac_fn_c_try_compile
"$LINENO"; then :
7359 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7364 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7365 # versions of clang do not understand -fexcess-precision=standard, the use of
7366 # x87 floating point operations leads to problems like isinf possibly returning
7367 # false for a value that is infinite when converted from the 80bit register to
7368 # the 8byte memory representation.
7370 # Only perform the test if the compiler doesn't understand
7371 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7373 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7381 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7389 if ac_fn_c_try_compile
"$LINENO"; then :
7392 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7398 ac_cpp
='$CPP $CPPFLAGS'
7399 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7403 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7404 # On Suns, sometimes $CPP names a directory.
7405 if test -n "$CPP" && test -d "$CPP"; then
7408 if test -z "$CPP"; then
7409 if ${ac_cv_prog_CPP+:} false
; then :
7410 $as_echo_n "(cached) " >&6
7412 # Double quotes because CPP needs to be expanded
7413 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7416 for ac_c_preproc_warn_flag
in '' yes
7418 # Use a header file that comes with gcc, so configuring glibc
7419 # with a fresh cross-compiler works.
7420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7421 # <limits.h> exists even on freestanding compilers.
7422 # On the NeXT, cc -E runs the code through the compiler's parser,
7423 # not just through cpp. "Syntax error" is here to catch this case.
7424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7427 # include <limits.h>
7429 # include <assert.h>
7433 if ac_fn_c_try_cpp
"$LINENO"; then :
7436 # Broken: fails on valid input.
7439 rm -f conftest.err conftest.i conftest.
$ac_ext
7441 # OK, works on sane cases. Now check whether nonexistent headers
7442 # can be detected and how.
7443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #include <ac_nonexistent.h>
7447 if ac_fn_c_try_cpp
"$LINENO"; then :
7448 # Broken: success on invalid input.
7451 # Passes both tests.
7455 rm -f conftest.err conftest.i conftest.
$ac_ext
7458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7459 rm -f conftest.i conftest.err conftest.
$ac_ext
7460 if $ac_preproc_ok; then :
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7473 $as_echo "$CPP" >&6; }
7475 for ac_c_preproc_warn_flag
in '' yes
7477 # Use a header file that comes with gcc, so configuring glibc
7478 # with a fresh cross-compiler works.
7479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480 # <limits.h> exists even on freestanding compilers.
7481 # On the NeXT, cc -E runs the code through the compiler's parser,
7482 # not just through cpp. "Syntax error" is here to catch this case.
7483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7486 # include <limits.h>
7488 # include <assert.h>
7492 if ac_fn_c_try_cpp
"$LINENO"; then :
7495 # Broken: fails on valid input.
7498 rm -f conftest.err conftest.i conftest.
$ac_ext
7500 # OK, works on sane cases. Now check whether nonexistent headers
7501 # can be detected and how.
7502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 #include <ac_nonexistent.h>
7506 if ac_fn_c_try_cpp
"$LINENO"; then :
7507 # Broken: success on invalid input.
7510 # Passes both tests.
7514 rm -f conftest.err conftest.i conftest.
$ac_ext
7517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7518 rm -f conftest.i conftest.err conftest.
$ac_ext
7519 if $ac_preproc_ok; then :
7522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7524 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7525 See \`config.log' for more details" "$LINENO" 5; }
7529 ac_cpp
='$CPP $CPPFLAGS'
7530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7538 # Set up TAS assembly code if needed; the template file has now had its
7539 # chance to request this.
7541 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7544 if test "$need_tas" = yes ; then
7552 # Set up pkg_config in case we need it below
7561 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7564 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7568 $as_echo_n "(cached) " >&6
7572 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir
=.
7580 for ac_exec_ext
in '' $ac_executable_extensions; do
7581 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7594 if test -n "$PKG_CONFIG"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7596 $as_echo "$PKG_CONFIG" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7604 if test -z "$ac_cv_path_PKG_CONFIG"; then
7605 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7606 # Extract the first word of "pkg-config", so it can be a program name with args.
7607 set dummy pkg-config
; ac_word
=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7611 $as_echo_n "(cached) " >&6
7613 case $ac_pt_PKG_CONFIG in
7615 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir
=.
7623 for ac_exec_ext
in '' $ac_executable_extensions; do
7624 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7637 if test -n "$ac_pt_PKG_CONFIG"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7639 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7645 if test "x$ac_pt_PKG_CONFIG" = x
; then
7648 case $cross_compiling:$ac_tool_warned in
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned
=yes ;;
7654 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7657 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7661 if test -n "$PKG_CONFIG"; then
7662 _pkg_min_version
=0.9.0
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7664 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7665 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7667 $as_echo "yes" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7676 # Automatic dependency tracking
7680 # Check whether --enable-depend was given.
7681 if test "${enable_depend+set}" = set; then :
7682 enableval
=$enable_depend;
7691 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7705 # Enable assert checks
7709 # Check whether --enable-cassert was given.
7710 if test "${enable_cassert+set}" = set; then :
7711 enableval
=$enable_cassert;
7715 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7722 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
7735 # Include directories
7738 IFS
="${IFS}${PATH_SEPARATOR}"
7739 # SRCH_INC comes from the template file
7740 for dir
in $with_includes $SRCH_INC; do
7741 if test -d "$dir"; then
7742 INCLUDES
="$INCLUDES -I$dir"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7745 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7753 # Library directories
7756 IFS
="${IFS}${PATH_SEPARATOR}"
7757 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7758 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
7759 if test -d "$dir"; then
7760 LIBDIRS
="$LIBDIRS -L$dir"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7763 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7769 # Enable thread-safe client libraries
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
7772 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
7775 # Check whether --enable-thread-safety was given.
7776 if test "${enable_thread_safety+set}" = set; then :
7777 enableval
=$enable_thread_safety;
7786 as_fn_error $?
"no argument expected for --enable-thread-safety option" "$LINENO" 5
7791 enable_thread_safety
=yes
7796 if test "$enable_thread_safety" = yes; then
7798 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
7802 $as_echo "$enable_thread_safety" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
7809 $as_echo_n "checking whether to build with ICU support... " >&6; }
7813 # Check whether --with-icu was given.
7814 if test "${with_icu+set}" = set; then :
7819 $as_echo "#define USE_ICU 1" >>confdefs.h
7826 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
7837 $as_echo "$with_icu" >&6; }
7840 if test "$with_icu" = yes; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
7844 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
7846 if test -n "$ICU_CFLAGS"; then
7847 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
7848 elif test -n "$PKG_CONFIG"; then
7849 if test -n "$PKG_CONFIG" && \
7850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7851 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854 test $ac_status = 0; }; then
7855 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
7856 test "x$?" != "x0" && pkg_failed
=yes
7863 if test -n "$ICU_LIBS"; then
7864 pkg_cv_ICU_LIBS
="$ICU_LIBS"
7865 elif test -n "$PKG_CONFIG"; then
7866 if test -n "$PKG_CONFIG" && \
7867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7868 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
7873 test "x$?" != "x0" && pkg_failed
=yes
7883 if test $pkg_failed = yes; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7887 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7888 _pkg_short_errors_supported
=yes
7890 _pkg_short_errors_supported
=no
7892 if test $_pkg_short_errors_supported = yes; then
7893 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7895 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7897 # Put the nasty error message in config.log where it belongs
7898 echo "$ICU_PKG_ERRORS" >&5
7900 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
7904 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7905 installed software in a non-standard prefix.
7907 Alternatively, you may set the environment variables ICU_CFLAGS
7908 and ICU_LIBS to avoid the need to call pkg-config.
7909 See the pkg-config man page for more details." "$LINENO" 5
7910 elif test $pkg_failed = untried
; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7915 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
7916 is in your PATH or set the PKG_CONFIG environment variable to the full
7919 Alternatively, you may set the environment variables ICU_CFLAGS
7920 and ICU_LIBS to avoid the need to call pkg-config.
7921 See the pkg-config man page for more details.
7923 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7924 See \`config.log' for more details" "$LINENO" 5; }
7926 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
7927 ICU_LIBS
=$pkg_cv_ICU_LIBS
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7929 $as_echo "yes" >&6; }
7935 # Optionally build Tcl modules (PL/Tcl)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
7938 $as_echo_n "checking whether to build with Tcl... " >&6; }
7942 # Check whether --with-tcl was given.
7943 if test "${with_tcl+set}" = set; then :
7953 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
7964 $as_echo "$with_tcl" >&6; }
7967 # We see if the path to the Tcl/Tk configuration scripts is specified.
7968 # This will override the use of tclsh to find the paths to search.
7973 # Check whether --with-tclconfig was given.
7974 if test "${with_tclconfig+set}" = set; then :
7975 withval
=$with_tclconfig;
7978 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7981 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7993 # Optionally build Perl modules (PL/Perl)
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
7996 $as_echo_n "checking whether to build Perl modules... " >&6; }
8000 # Check whether --with-perl was given.
8001 if test "${with_perl+set}" = set; then :
8011 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8022 $as_echo "$with_perl" >&6; }
8026 # Optionally build Python modules (PL/Python)
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8029 $as_echo_n "checking whether to build Python modules... " >&6; }
8033 # Check whether --with-python was given.
8034 if test "${with_python+set}" = set; then :
8035 withval
=$with_python;
8044 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8055 $as_echo "$with_python" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8062 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8066 # Check whether --with-gssapi was given.
8067 if test "${with_gssapi+set}" = set; then :
8068 withval
=$with_gssapi;
8073 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8075 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8082 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8093 $as_echo "$with_gssapi" >&6; }
8101 # Kerberos configuration parameters
8106 # Check whether --with-krb-srvnam was given.
8107 if test "${with_krb_srvnam+set}" = set; then :
8108 withval
=$with_krb_srvnam;
8111 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8114 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8122 with_krb_srvnam
="postgres"
8128 cat >>confdefs.h
<<_ACEOF
8129 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8138 $as_echo_n "checking whether to build with PAM support... " >&6; }
8142 # Check whether --with-pam was given.
8143 if test "${with_pam+set}" = set; then :
8148 $as_echo "#define USE_PAM 1" >>confdefs.h
8155 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8166 $as_echo "$with_pam" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8173 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8177 # Check whether --with-bsd-auth was given.
8178 if test "${with_bsd_auth+set}" = set; then :
8179 withval
=$with_bsd_auth;
8183 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8190 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8201 $as_echo "$with_bsd_auth" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8208 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8212 # Check whether --with-ldap was given.
8213 if test "${with_ldap+set}" = set; then :
8218 $as_echo "#define USE_LDAP 1" >>confdefs.h
8225 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8236 $as_echo "$with_ldap" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8244 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8248 # Check whether --with-bonjour was given.
8249 if test "${with_bonjour+set}" = set; then :
8250 withval
=$with_bonjour;
8254 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8261 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8272 $as_echo "$with_bonjour" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
8279 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
8283 # Check whether --with-openssl was given.
8284 if test "${with_openssl+set}" = set; then :
8285 withval
=$with_openssl;
8289 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
8296 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
8307 $as_echo "$with_openssl" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8314 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8318 # Check whether --with-selinux was given.
8319 if test "${with_selinux+set}" = set; then :
8320 withval
=$with_selinux;
8329 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8341 $as_echo "$with_selinux" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8347 $as_echo_n "checking whether to build with systemd support... " >&6; }
8351 # Check whether --with-systemd was given.
8352 if test "${with_systemd+set}" = set; then :
8353 withval
=$with_systemd;
8357 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8364 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8376 $as_echo "$with_systemd" >&6; }
8384 # Check whether --with-readline was given.
8385 if test "${with_readline+set}" = set; then :
8386 withval
=$with_readline;
8395 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8405 # readline on MinGW has problems with backslashes in psql and other bugs.
8406 # This is particularly a problem with non-US code pages.
8407 # Therefore disable its use until we understand the cause. 2004-07-20
8408 if test "$PORTNAME" = "win32"; then
8409 if test "$with_readline" = yes; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8411 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8423 # Check whether --with-libedit-preferred was given.
8424 if test "${with_libedit_preferred+set}" = set; then :
8425 withval
=$with_libedit_preferred;
8434 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8439 with_libedit_preferred
=no
8449 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8450 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8451 # UUID library. More than one of these might be present on a given platform,
8452 # so we make the user say which one she wants.
8457 # Check whether --with-uuid was given.
8458 if test "${with_uuid+set}" = set; then :
8462 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8465 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8475 if test x
"$with_uuid" = x
"" ; then
8481 # Check whether --with-ossp-uuid was given.
8482 if test "${with_ossp_uuid+set}" = set; then :
8483 withval
=$with_ossp_uuid;
8492 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8502 if test "$with_ossp_uuid" = yes ; then
8506 if test "$with_uuid" = bsd
; then
8508 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8510 UUID_EXTRA_OBJS
="md5.o sha1.o"
8511 elif test "$with_uuid" = e2fs
; then
8513 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8515 UUID_EXTRA_OBJS
="md5.o sha1.o"
8516 elif test "$with_uuid" = ossp
; then
8518 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8521 elif test "$with_uuid" = no
; then
8524 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8534 $as_echo_n "checking whether to build with XML support... " >&6; }
8538 # Check whether --with-libxml was given.
8539 if test "${with_libxml+set}" = set; then :
8540 withval
=$with_libxml;
8544 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8551 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8562 $as_echo "$with_libxml" >&6; }
8565 if test "$with_libxml" = yes ; then
8566 # Check pkg-config, then xml2-config. But for backwards compatibility,
8567 # setting XML2_CONFIG overrides pkg-config.
8568 have_libxml2_pkg_config
=no
8569 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8573 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8575 if test -n "$XML2_CFLAGS"; then
8576 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8577 elif test -n "$PKG_CONFIG"; then
8578 if test -n "$PKG_CONFIG" && \
8579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8580 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8583 test $ac_status = 0; }; then
8584 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8585 test "x$?" != "x0" && pkg_failed
=yes
8592 if test -n "$XML2_LIBS"; then
8593 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8594 elif test -n "$PKG_CONFIG"; then
8595 if test -n "$PKG_CONFIG" && \
8596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8597 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8600 test $ac_status = 0; }; then
8601 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8602 test "x$?" != "x0" && pkg_failed
=yes
8612 if test $pkg_failed = yes; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8617 _pkg_short_errors_supported
=yes
8619 _pkg_short_errors_supported
=no
8621 if test $_pkg_short_errors_supported = yes; then
8622 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8624 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8626 # Put the nasty error message in config.log where it belongs
8627 echo "$XML2_PKG_ERRORS" >&5
8630 elif test $pkg_failed = untried
; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8635 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8636 XML2_LIBS
=$pkg_cv_XML2_LIBS
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8638 $as_echo "yes" >&6; }
8639 have_libxml2_pkg_config
=yes
8642 if test "$have_libxml2_pkg_config" = no
; then
8643 if test -z "$XML2_CONFIG"; then
8644 for ac_prog
in xml2-config
8646 # Extract the first word of "$ac_prog", so it can be a program name with args.
8647 set dummy
$ac_prog; ac_word
=$2
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649 $as_echo_n "checking for $ac_word... " >&6; }
8650 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8651 $as_echo_n "(cached) " >&6
8653 case $XML2_CONFIG in
8655 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir
=.
8663 for ac_exec_ext
in '' $ac_executable_extensions; do
8664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8677 if test -n "$XML2_CONFIG"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8679 $as_echo "$XML2_CONFIG" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8686 test -n "$XML2_CONFIG" && break
8690 # Report the value of XML2_CONFIG in configure's output in all cases.
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8692 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8694 $as_echo "$XML2_CONFIG" >&6; }
8697 if test -n "$XML2_CONFIG"; then
8698 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8699 XML2_LIBS
=`$XML2_CONFIG --libs`
8702 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8703 for pgac_option
in $XML2_CFLAGS; do
8704 case $pgac_option in
8705 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8708 for pgac_option
in $XML2_LIBS; do
8709 case $pgac_option in
8710 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8722 # Check whether --with-libxslt was given.
8723 if test "${with_libxslt+set}" = set; then :
8724 withval
=$with_libxslt;
8728 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8735 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8755 # Check whether --with-system-tzdata was given.
8756 if test "${with_system_tzdata+set}" = set; then :
8757 withval
=$with_system_tzdata;
8760 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8763 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8781 # Check whether --with-zlib was given.
8782 if test "${with_zlib+set}" = set; then :
8792 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
8808 # Assume system is ELF if it predefines __ELF__ as 1,
8809 # otherwise believe host_os based default.
8811 freebsd1
*|freebsd2
*) elf
=no
;;
8812 freebsd3
*|freebsd4
*) elf
=yes;;
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8817 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8818 if ${ac_cv_path_GREP+:} false
; then :
8819 $as_echo_n "(cached) " >&6
8821 if test -z "$GREP"; then
8822 ac_path_GREP_found
=false
8823 # Loop through the user's path and test for each of PROGNAME-LIST
8824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8825 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
8828 test -z "$as_dir" && as_dir
=.
8829 for ac_prog
in grep ggrep
; do
8830 for ac_exec_ext
in '' $ac_executable_extensions; do
8831 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
8832 as_fn_executable_p
"$ac_path_GREP" ||
continue
8833 # Check for GNU ac_path_GREP and select it if it is found.
8834 # Check for GNU $ac_path_GREP
8835 case `"$ac_path_GREP" --version 2>&1` in
8837 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
8840 $as_echo_n 0123456789 >"conftest.in"
8843 cat "conftest.in" "conftest.in" >"conftest.tmp"
8844 mv "conftest.tmp" "conftest.in"
8845 cp "conftest.in" "conftest.nl"
8846 $as_echo 'GREP' >> "conftest.nl"
8847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8848 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8849 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8851 # Best one so far, save it but keep looking for a better one
8852 ac_cv_path_GREP
="$ac_path_GREP"
8853 ac_path_GREP_max
=$ac_count
8855 # 10*(2^10) chars as input seems more than enough
8856 test $ac_count -gt 10 && break
8858 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8861 $ac_path_GREP_found && break 3
8866 if test -z "$ac_cv_path_GREP"; then
8867 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8870 ac_cv_path_GREP
=$GREP
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8875 $as_echo "$ac_cv_path_GREP" >&6; }
8876 GREP
="$ac_cv_path_GREP"
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8880 $as_echo_n "checking for egrep... " >&6; }
8881 if ${ac_cv_path_EGREP+:} false
; then :
8882 $as_echo_n "(cached) " >&6
8884 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
8885 then ac_cv_path_EGREP
="$GREP -E"
8887 if test -z "$EGREP"; then
8888 ac_path_EGREP_found
=false
8889 # Loop through the user's path and test for each of PROGNAME-LIST
8890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8891 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
8894 test -z "$as_dir" && as_dir
=.
8895 for ac_prog
in egrep; do
8896 for ac_exec_ext
in '' $ac_executable_extensions; do
8897 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
8898 as_fn_executable_p
"$ac_path_EGREP" ||
continue
8899 # Check for GNU ac_path_EGREP and select it if it is found.
8900 # Check for GNU $ac_path_EGREP
8901 case `"$ac_path_EGREP" --version 2>&1` in
8903 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
8906 $as_echo_n 0123456789 >"conftest.in"
8909 cat "conftest.in" "conftest.in" >"conftest.tmp"
8910 mv "conftest.tmp" "conftest.in"
8911 cp "conftest.in" "conftest.nl"
8912 $as_echo 'EGREP' >> "conftest.nl"
8913 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8914 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8915 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8916 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8917 # Best one so far, save it but keep looking for a better one
8918 ac_cv_path_EGREP
="$ac_path_EGREP"
8919 ac_path_EGREP_max
=$ac_count
8921 # 10*(2^10) chars as input seems more than enough
8922 test $ac_count -gt 10 && break
8924 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8927 $ac_path_EGREP_found && break 3
8932 if test -z "$ac_cv_path_EGREP"; then
8933 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8936 ac_cv_path_EGREP
=$EGREP
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8942 $as_echo "$ac_cv_path_EGREP" >&6; }
8943 EGREP
="$ac_cv_path_EGREP"
8946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8954 $EGREP "yes" >/dev
/null
2>&1; then :
8957 if test "X$elf" = "Xyes" ; then
8971 CPPFLAGS
="$CPPFLAGS $INCLUDES"
8972 LDFLAGS
="$LDFLAGS $LIBDIRS"
8978 # Check whether --with-gnu-ld was given.
8979 if test "${with_gnu_ld+set}" = set; then :
8980 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8986 if test "$GCC" = yes; then
8987 # Check if gcc -print-prog-name=ld gives a path.
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8989 $as_echo_n "checking for ld used by GCC... " >&6; }
8992 # gcc leaves a trailing carriage return which upsets mingw
8993 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8995 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8998 # Accept absolute paths.
8999 [\\/]* |
[A-Za-z
]:[\\/]*)
9000 re_direlt
='/[^/][^/]*/\.\./'
9001 # Canonicalize the path of ld
9002 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9003 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9004 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9006 test -z "$LD" && LD
="$ac_prog"
9009 # If it fails, then pretend we aren't using GCC.
9013 # If it is relative, then search for the first ld in PATH.
9017 elif test "$with_gnu_ld" = yes; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9019 $as_echo_n "checking for GNU ld... " >&6; }
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9022 $as_echo_n "checking for non-GNU ld... " >&6; }
9024 if ${ac_cv_path_LD+:} false
; then :
9025 $as_echo_n "(cached) " >&6
9027 if test -z "$LD"; then
9028 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9029 for ac_dir
in $PATH; do
9030 test -z "$ac_dir" && ac_dir
=.
9031 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9032 ac_cv_path_LD
="$ac_dir/$ac_prog"
9033 # Check to see if the program is GNU ld. I'd rather use --version,
9034 # but apparently some GNU ld's only accept -v.
9035 # Break only if it was the GNU/non-GNU ld that we prefer.
9036 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9037 test "$with_gnu_ld" != no
&& break
9039 test "$with_gnu_ld" != yes && break
9045 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
9050 if test -n "$LD"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9052 $as_echo "$LD" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9057 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9059 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9060 if ${ac_cv_prog_gnu_ld+:} false
; then :
9061 $as_echo_n "(cached) " >&6
9063 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9064 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9065 ac_cv_prog_gnu_ld
=yes
9067 ac_cv_prog_gnu_ld
=no
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
9071 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
9072 with_gnu_ld
=$ac_cv_prog_gnu_ld
9077 if test -n "$ac_tool_prefix"; then
9078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9079 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_RANLIB+:} false
; then :
9083 $as_echo_n "(cached) " >&6
9085 if test -n "$RANLIB"; then
9086 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir
=.
9093 for ac_exec_ext
in '' $ac_executable_extensions; do
9094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 RANLIB
=$ac_cv_prog_RANLIB
9106 if test -n "$RANLIB"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9108 $as_echo "$RANLIB" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9116 if test -z "$ac_cv_prog_RANLIB"; then
9117 ac_ct_RANLIB
=$RANLIB
9118 # Extract the first word of "ranlib", so it can be a program name with args.
9119 set dummy ranlib
; ac_word
=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
9123 $as_echo_n "(cached) " >&6
9125 if test -n "$ac_ct_RANLIB"; then
9126 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
9128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9132 test -z "$as_dir" && as_dir
=.
9133 for ac_exec_ext
in '' $ac_executable_extensions; do
9134 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9135 ac_cv_prog_ac_ct_RANLIB
="ranlib"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
9146 if test -n "$ac_ct_RANLIB"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9148 $as_echo "$ac_ct_RANLIB" >&6; }
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9154 if test "x$ac_ct_RANLIB" = x
; then
9157 case $cross_compiling:$ac_tool_warned in
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9161 ac_tool_warned
=yes ;;
9163 RANLIB
=$ac_ct_RANLIB
9166 RANLIB
="$ac_cv_prog_RANLIB"
9170 if test -n "$ac_tool_prefix"; then
9171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9172 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 $as_echo_n "checking for $ac_word... " >&6; }
9175 if ${ac_cv_prog_STRIP+:} false
; then :
9176 $as_echo_n "(cached) " >&6
9178 if test -n "$STRIP"; then
9179 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9185 test -z "$as_dir" && as_dir
=.
9186 for ac_exec_ext
in '' $ac_executable_extensions; do
9187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9188 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 STRIP
=$ac_cv_prog_STRIP
9199 if test -n "$STRIP"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9201 $as_echo "$STRIP" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9209 if test -z "$ac_cv_prog_STRIP"; then
9211 # Extract the first word of "strip", so it can be a program name with args.
9212 set dummy strip
; ac_word
=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9216 $as_echo_n "(cached) " >&6
9218 if test -n "$ac_ct_STRIP"; then
9219 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9225 test -z "$as_dir" && as_dir
=.
9226 for ac_exec_ext
in '' $ac_executable_extensions; do
9227 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9228 ac_cv_prog_ac_ct_STRIP
="strip"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9239 if test -n "$ac_ct_STRIP"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9241 $as_echo "$ac_ct_STRIP" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9247 if test "x$ac_ct_STRIP" = x
; then
9250 case $cross_compiling:$ac_tool_warned in
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254 ac_tool_warned
=yes ;;
9259 STRIP
="$ac_cv_prog_STRIP"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9264 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9265 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9266 STRIP_STATIC_LIB
="$STRIP --strip-unneeded"
9267 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9269 $as_echo "yes" >&6; }
9274 STRIP_STATIC_LIB
=$STRIP
9275 STRIP_SHARED_LIB
=$STRIP
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9277 $as_echo "yes" >&6; }
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9290 if test -n "$ac_tool_prefix"; then
9291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9292 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_prog_AR+:} false
; then :
9296 $as_echo_n "(cached) " >&6
9298 if test -n "$AR"; then
9299 ac_cv_prog_AR
="$AR" # Let the user override the test.
9301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9305 test -z "$as_dir" && as_dir
=.
9306 for ac_exec_ext
in '' $ac_executable_extensions; do
9307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 if test -n "$AR"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9321 $as_echo "$AR" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9329 if test -z "$ac_cv_prog_AR"; then
9331 # Extract the first word of "ar", so it can be a program name with args.
9332 set dummy
ar; ac_word
=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9336 $as_echo_n "(cached) " >&6
9338 if test -n "$ac_ct_AR"; then
9339 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir
=.
9346 for ac_exec_ext
in '' $ac_executable_extensions; do
9347 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_ac_ct_AR
="ar"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9359 if test -n "$ac_ct_AR"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9361 $as_echo "$ac_ct_AR" >&6; }
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9367 if test "x$ac_ct_AR" = x
; then
9370 case $cross_compiling:$ac_tool_warned in
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9374 ac_tool_warned
=yes ;;
9382 if test "$PORTNAME" = "win32"; then
9383 if test -n "$ac_tool_prefix"; then
9384 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9385 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if ${ac_cv_prog_DLLTOOL+:} false
; then :
9389 $as_echo_n "(cached) " >&6
9391 if test -n "$DLLTOOL"; then
9392 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
9394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9398 test -z "$as_dir" && as_dir
=.
9399 for ac_exec_ext
in '' $ac_executable_extensions; do
9400 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9401 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411 DLLTOOL
=$ac_cv_prog_DLLTOOL
9412 if test -n "$DLLTOOL"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9414 $as_echo "$DLLTOOL" >&6; }
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9422 if test -z "$ac_cv_prog_DLLTOOL"; then
9423 ac_ct_DLLTOOL
=$DLLTOOL
9424 # Extract the first word of "dlltool", so it can be a program name with args.
9425 set dummy dlltool
; ac_word
=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
9429 $as_echo_n "(cached) " >&6
9431 if test -n "$ac_ct_DLLTOOL"; then
9432 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
9434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9438 test -z "$as_dir" && as_dir
=.
9439 for ac_exec_ext
in '' $ac_executable_extensions; do
9440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9441 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
9452 if test -n "$ac_ct_DLLTOOL"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9454 $as_echo "$ac_ct_DLLTOOL" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9460 if test "x$ac_ct_DLLTOOL" = x
; then
9463 case $cross_compiling:$ac_tool_warned in
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9467 ac_tool_warned
=yes ;;
9469 DLLTOOL
=$ac_ct_DLLTOOL
9472 DLLTOOL
="$ac_cv_prog_DLLTOOL"
9475 if test -n "$ac_tool_prefix"; then
9476 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9477 set dummy
${ac_tool_prefix}dllwrap
; ac_word
=$2
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9479 $as_echo_n "checking for $ac_word... " >&6; }
9480 if ${ac_cv_prog_DLLWRAP+:} false
; then :
9481 $as_echo_n "(cached) " >&6
9483 if test -n "$DLLWRAP"; then
9484 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
9486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9490 test -z "$as_dir" && as_dir
=.
9491 for ac_exec_ext
in '' $ac_executable_extensions; do
9492 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9493 ac_cv_prog_DLLWRAP
="${ac_tool_prefix}dllwrap"
9494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 DLLWRAP
=$ac_cv_prog_DLLWRAP
9504 if test -n "$DLLWRAP"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
9506 $as_echo "$DLLWRAP" >&6; }
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9514 if test -z "$ac_cv_prog_DLLWRAP"; then
9515 ac_ct_DLLWRAP
=$DLLWRAP
9516 # Extract the first word of "dllwrap", so it can be a program name with args.
9517 set dummy dllwrap
; ac_word
=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false
; then :
9521 $as_echo_n "(cached) " >&6
9523 if test -n "$ac_ct_DLLWRAP"; then
9524 ac_cv_prog_ac_ct_DLLWRAP
="$ac_ct_DLLWRAP" # Let the user override the test.
9526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9530 test -z "$as_dir" && as_dir
=.
9531 for ac_exec_ext
in '' $ac_executable_extensions; do
9532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9533 ac_cv_prog_ac_ct_DLLWRAP
="dllwrap"
9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 ac_ct_DLLWRAP
=$ac_cv_prog_ac_ct_DLLWRAP
9544 if test -n "$ac_ct_DLLWRAP"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
9546 $as_echo "$ac_ct_DLLWRAP" >&6; }
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9552 if test "x$ac_ct_DLLWRAP" = x
; then
9555 case $cross_compiling:$ac_tool_warned in
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9559 ac_tool_warned
=yes ;;
9561 DLLWRAP
=$ac_ct_DLLWRAP
9564 DLLWRAP
="$ac_cv_prog_DLLWRAP"
9567 if test -n "$ac_tool_prefix"; then
9568 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9569 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_prog_WINDRES+:} false
; then :
9573 $as_echo_n "(cached) " >&6
9575 if test -n "$WINDRES"; then
9576 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9582 test -z "$as_dir" && as_dir
=.
9583 for ac_exec_ext
in '' $ac_executable_extensions; do
9584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9585 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 WINDRES
=$ac_cv_prog_WINDRES
9596 if test -n "$WINDRES"; then
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9598 $as_echo "$WINDRES" >&6; }
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9606 if test -z "$ac_cv_prog_WINDRES"; then
9607 ac_ct_WINDRES
=$WINDRES
9608 # Extract the first word of "windres", so it can be a program name with args.
9609 set dummy windres
; ac_word
=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9613 $as_echo_n "(cached) " >&6
9615 if test -n "$ac_ct_WINDRES"; then
9616 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9622 test -z "$as_dir" && as_dir
=.
9623 for ac_exec_ext
in '' $ac_executable_extensions; do
9624 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9625 ac_cv_prog_ac_ct_WINDRES
="windres"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9636 if test -n "$ac_ct_WINDRES"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9638 $as_echo "$ac_ct_WINDRES" >&6; }
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9644 if test "x$ac_ct_WINDRES" = x
; then
9647 case $cross_compiling:$ac_tool_warned in
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9651 ac_tool_warned
=yes ;;
9653 WINDRES
=$ac_ct_WINDRES
9656 WINDRES
="$ac_cv_prog_WINDRES"
9661 # Find a good install program. We prefer a C program (faster),
9662 # so one script is as good as another. But avoid the broken or
9663 # incompatible versions:
9664 # SysV /etc/install, /usr/sbin/install
9665 # SunOS /usr/etc/install
9666 # IRIX /sbin/install
9668 # AmigaOS /C/install, which installs bootblocks on floppy discs
9669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9672 # OS/2's system install, which has a completely different semantic
9673 # ./install, which can be erroneously created by make from ./install.sh.
9674 # Reject install programs that cannot install multiple files.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9676 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9677 if test -z "$INSTALL"; then
9678 if ${ac_cv_path_install+:} false
; then :
9679 $as_echo_n "(cached) " >&6
9681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9685 test -z "$as_dir" && as_dir
=.
9686 # Account for people who put trailing slashes in PATH elements.
9687 case $as_dir/ in #((
9688 .
/ | .
// |
/[cC
]/* | \
9689 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9690 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9693 # OSF1 and SCO ODT 3.0 have their own names for install.
9694 # Don't use installbsd from OSF since it installs stuff as root
9696 for ac_prog
in ginstall scoinst
install; do
9697 for ac_exec_ext
in '' $ac_executable_extensions; do
9698 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9699 if test $ac_prog = install &&
9700 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9701 # AIX install. It has an incompatible calling convention.
9703 elif test $ac_prog = install &&
9704 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9705 # program-specific install script used by HP pwplus--don't use.
9708 rm -rf conftest.one conftest.two conftest.dir
9709 echo one
> conftest.one
9710 echo two
> conftest.two
9712 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9713 test -s conftest.one
&& test -s conftest.two
&&
9714 test -s conftest.dir
/conftest.one
&&
9715 test -s conftest.dir
/conftest.two
9717 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9730 rm -rf conftest.one conftest.two conftest.dir
9733 if test "${ac_cv_path_install+set}" = set; then
9734 INSTALL
=$ac_cv_path_install
9736 # As a last resort, use the slow shell script. Don't cache a
9737 # value for INSTALL within a source directory, because that will
9738 # break other packages using the cache if that directory is
9739 # removed, or if the value is a relative name.
9740 INSTALL
=$ac_install_sh
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9744 $as_echo "$INSTALL" >&6; }
9746 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9747 # It thinks the first close brace ends the variable substitution.
9748 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9750 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9752 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9754 # When Autoconf chooses install-sh as install program it tries to generate
9755 # a relative path to it in each makefile where it substitutes it. This clashes
9756 # with our Makefile.global concept. This workaround helps.
9758 *install-sh
*) install_bin
='';;
9759 *) install_bin
=$INSTALL;;
9763 if test -z "$TAR"; then
9766 # Extract the first word of "$ac_prog", so it can be a program name with args.
9767 set dummy
$ac_prog; ac_word
=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_path_TAR+:} false
; then :
9771 $as_echo_n "(cached) " >&6
9775 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9782 test -z "$as_dir" && as_dir
=.
9783 for ac_exec_ext
in '' $ac_executable_extensions; do
9784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 if test -n "$TAR"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9799 $as_echo "$TAR" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9806 test -n "$TAR" && break
9810 # Report the value of TAR in configure's output in all cases.
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9812 $as_echo_n "checking for TAR... " >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9814 $as_echo "$TAR" >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9818 $as_echo_n "checking whether ln -s works... " >&6; }
9820 if test "$LN_S" = "ln -s"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9822 $as_echo "yes" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9825 $as_echo "no, using $LN_S" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9829 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9830 if test -z "$MKDIR_P"; then
9831 if ${ac_cv_path_mkdir+:} false
; then :
9832 $as_echo_n "(cached) " >&6
9834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9835 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9838 test -z "$as_dir" && as_dir
=.
9839 for ac_prog
in mkdir gmkdir
; do
9840 for ac_exec_ext
in '' $ac_executable_extensions; do
9841 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9842 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9843 'mkdir (GNU coreutils) '* | \
9844 'mkdir (coreutils) '* | \
9845 'mkdir (fileutils) '4.1*)
9846 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9856 test -d .
/--version && rmdir .
/--version
9857 if test "${ac_cv_path_mkdir+set}" = set; then
9858 MKDIR_P
="$ac_cv_path_mkdir -p"
9860 # As a last resort, use the slow shell script. Don't cache a
9861 # value for MKDIR_P within a source directory, because that will
9862 # break other packages using the cache if that directory is
9863 # removed, or if the value is a relative name.
9864 MKDIR_P
="$ac_install_sh -d"
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9868 $as_echo "$MKDIR_P" >&6; }
9870 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9871 # a relative path to it in each makefile where it substitutes it. This clashes
9872 # with our Makefile.global concept. This workaround helps.
9874 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9877 if test -z "$BISON"; then
9878 for ac_prog
in bison
9880 # Extract the first word of "$ac_prog", so it can be a program name with args.
9881 set dummy
$ac_prog; ac_word
=$2
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883 $as_echo_n "checking for $ac_word... " >&6; }
9884 if ${ac_cv_path_BISON+:} false
; then :
9885 $as_echo_n "(cached) " >&6
9889 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9896 test -z "$as_dir" && as_dir
=.
9897 for ac_exec_ext
in '' $ac_executable_extensions; do
9898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9899 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 BISON
=$ac_cv_path_BISON
9911 if test -n "$BISON"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9913 $as_echo "$BISON" >&6; }
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9920 test -n "$BISON" && break
9924 # Report the value of BISON in configure's output in all cases.
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9926 $as_echo_n "checking for BISON... " >&6; }
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9928 $as_echo "$BISON" >&6; }
9932 if test "$BISON"; then
9933 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9935 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9936 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9939 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9940 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
9941 $as_echo "$as_me: WARNING:
9942 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9943 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
9946 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9947 # of the now preferred %name-prefix "base_yy", but the latter
9948 # doesn't work with Bison 2.3 or less. So for now we silence the
9949 # deprecation warnings.
9950 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9952 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9956 if test -z "$BISON"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9958 *** Without Bison you will not be able to build PostgreSQL from Git nor
9959 *** change any of the parser definition files. You can obtain Bison from
9960 *** a GNU mirror site. (If you are using the official distribution of
9961 *** PostgreSQL then you do not need to worry about this, because the Bison
9962 *** output is pre-generated.)" >&5
9963 $as_echo "$as_me: WARNING:
9964 *** Without Bison you will not be able to build PostgreSQL from Git nor
9965 *** change any of the parser definition files. You can obtain Bison from
9966 *** a GNU mirror site. (If you are using the official distribution of
9967 *** PostgreSQL then you do not need to worry about this, because the Bison
9968 *** output is pre-generated.)" >&2;}
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9973 $as_echo_n "checking for flex... " >&6; }
9974 if ${pgac_cv_path_flex+:} false
; then :
9975 $as_echo_n "(cached) " >&6
9977 # Let the user override the test
9978 if test -n "$FLEX"; then
9979 pgac_cv_path_flex
=$FLEX
9983 for pgac_dir
in $PATH; do
9985 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9988 for pgac_prog
in flex
lex; do
9989 pgac_candidate
="$pgac_dir/$pgac_prog"
9990 if test -f "$pgac_candidate" \
9991 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9993 echo '%%' > conftest.l
9994 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9995 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9996 if echo "$pgac_flex_version" |
sed 's/[.a-z]/ /g' |
$AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 31))) exit 0; else exit 1;}'
9998 pgac_cv_path_flex
=$pgac_candidate
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10002 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10003 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
10004 $as_echo "$as_me: WARNING:
10005 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10006 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
10012 rm -f conftest.l
lex.yy.c
10013 : ${pgac_cv_path_flex=no}
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
10018 $as_echo "$pgac_cv_path_flex" >&6; }
10019 if test x
"$pgac_cv_path_flex" = x
"no"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10021 *** Without Flex you will not be able to build PostgreSQL from Git nor
10022 *** change any of the scanner definition files. You can obtain Flex from
10023 *** a GNU mirror site. (If you are using the official distribution of
10024 *** PostgreSQL then you do not need to worry about this because the Flex
10025 *** output is pre-generated.)" >&5
10026 $as_echo "$as_me: WARNING:
10027 *** Without Flex you will not be able to build PostgreSQL from Git nor
10028 *** change any of the scanner definition files. You can obtain Flex from
10029 *** a GNU mirror site. (If you are using the official distribution of
10030 *** PostgreSQL then you do not need to worry about this because the Flex
10031 *** output is pre-generated.)" >&2;}
10035 FLEX
=$pgac_cv_path_flex
10036 pgac_flex_version
=`$FLEX --version 2>/dev/null`
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
10038 $as_echo "$as_me: using $pgac_flex_version" >&6;}
10045 if test -z "$PERL"; then
10046 for ac_prog
in perl
10048 # Extract the first word of "$ac_prog", so it can be a program name with args.
10049 set dummy
$ac_prog; ac_word
=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_path_PERL+:} false
; then :
10053 $as_echo_n "(cached) " >&6
10057 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
10060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10061 for as_dir
in $PATH
10064 test -z "$as_dir" && as_dir
=.
10065 for ac_exec_ext
in '' $ac_executable_extensions; do
10066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 PERL
=$ac_cv_path_PERL
10079 if test -n "$PERL"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10081 $as_echo "$PERL" >&6; }
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10088 test -n "$PERL" && break
10092 # Report the value of PERL in configure's output in all cases.
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
10094 $as_echo_n "checking for PERL... " >&6; }
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10096 $as_echo "$PERL" >&6; }
10100 if test "$PERL"; then
10101 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'`
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
10103 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
10104 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
10105 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10108 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10109 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
10110 $as_echo "$as_me: WARNING:
10111 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10112 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
10117 if test -z "$PERL"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10119 *** Without Perl you will not be able to build PostgreSQL from Git.
10120 *** You can obtain Perl from any CPAN mirror site.
10121 *** (If you are using the official distribution of PostgreSQL then you do not
10122 *** need to worry about this, because the Perl output is pre-generated.)" >&5
10123 $as_echo "$as_me: WARNING:
10124 *** Without Perl you will not be able to build PostgreSQL from Git.
10125 *** You can obtain Perl from any CPAN mirror site.
10126 *** (If you are using the official distribution of PostgreSQL then you do not
10127 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
10130 if test "$with_perl" = yes; then
10131 if test -z "$PERL"; then
10132 as_fn_error $?
"Perl not found" "$LINENO" 5
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
10136 $as_echo_n "checking for Perl archlibexp... " >&6; }
10137 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
10138 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
10140 $as_echo "$perl_archlibexp" >&6; }
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
10142 $as_echo_n "checking for Perl privlibexp... " >&6; }
10143 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
10144 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
10146 $as_echo "$perl_privlibexp" >&6; }
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
10148 $as_echo_n "checking for Perl useshrplib... " >&6; }
10149 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
10150 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
10152 $as_echo "$perl_useshrplib" >&6; }
10153 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
10154 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
10155 You might have to rebuild your Perl installation. Refer to the
10156 documentation for details. Use --without-perl to disable building
10157 PL/Perl." "$LINENO" 5
10159 # On most platforms, archlibexp is also where the Perl include files live ...
10160 perl_includespec
="-I$perl_archlibexp/CORE"
10161 # ... but on newer macOS versions, we must use -iwithsysroot to look
10162 # under $PG_SYSROOT
10163 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
10164 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
10165 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
10170 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
10171 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10173 $as_echo "$perl_ccflags" >&6; }
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10175 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10176 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10178 $as_echo "$perl_embed_ccflags" >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10182 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10183 if test "$PORTNAME" = "win32" ; then
10184 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10185 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10186 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10188 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10189 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10190 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10194 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10195 pgac_tmp2
=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
10196 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
10198 if test -z "$perl_embed_ldflags" ; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200 $as_echo "no" >&6; }
10201 as_fn_error $?
"could not determine flags for linking embedded Perl.
10202 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10203 installed." "$LINENO" 5
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10206 $as_echo "$perl_embed_ldflags" >&6; }
10211 if test "$with_python" = yes; then
10212 if test -z "$PYTHON"; then
10213 for ac_prog
in python python3 python2
10215 # Extract the first word of "$ac_prog", so it can be a program name with args.
10216 set dummy
$ac_prog; ac_word
=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if ${ac_cv_path_PYTHON+:} false
; then :
10220 $as_echo_n "(cached) " >&6
10224 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10228 for as_dir
in $PATH
10231 test -z "$as_dir" && as_dir
=.
10232 for ac_exec_ext
in '' $ac_executable_extensions; do
10233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10245 PYTHON
=$ac_cv_path_PYTHON
10246 if test -n "$PYTHON"; then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10248 $as_echo "$PYTHON" >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 $as_echo "no" >&6; }
10255 test -n "$PYTHON" && break
10259 # Report the value of PYTHON in configure's output in all cases.
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10261 $as_echo_n "checking for PYTHON... " >&6; }
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10263 $as_echo "$PYTHON" >&6; }
10266 if test x
"$PYTHON" = x
""; then
10267 as_fn_error $?
"Python not found" "$LINENO" 5
10271 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10273 $as_echo "$as_me: using python $python_fullversion" >&6;}
10274 # python_fullversion is typically n.n.n plus some trailing junk
10275 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10276 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10277 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10278 # Reject unsupported Python versions as soon as practical.
10279 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 7; then
10280 as_fn_error $?
"Python version $python_version is too old (version 2.7 or later is required)" "$LINENO" 5
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10284 $as_echo_n "checking for Python sysconfig module... " >&6; }
10285 if "${PYTHON}" -c 'import sysconfig' 2>&5
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288 $as_echo "yes" >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10296 $as_echo_n "checking Python configuration directory... " >&6; }
10297 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10299 $as_echo "$python_configdir" >&6; }
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10302 $as_echo_n "checking Python include directory... " >&6; }
10303 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10304 if test "$PORTNAME" = win32
; then
10305 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10308 $as_echo "$python_includespec" >&6; }
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10313 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10315 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10316 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10318 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10319 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10320 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10322 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10325 # Otherwise, guess the base name of the shlib.
10326 # LDVERSION was added in Python 3.2, before that use VERSION,
10327 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10328 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10329 if test x
"${python_ldversion}" != x
""; then
10330 ldlibrary
="python${python_ldversion}"
10332 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10333 if test x
"${python_version_var}" != x
""; then
10334 ldlibrary
="python${python_version_var}"
10336 ldlibrary
="python${python_version}"
10339 # Search for a likely-looking file.
10341 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10343 # We don't know the platform DLSUFFIX here, so check 'em all.
10344 for e
in .so .dll .dylib .sl
; do
10345 if test -e "$d/lib${ldlibrary}$e"; then
10352 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10353 # (".so.n.n") as well. However, check this only after failing to find
10354 # ".so" anywhere, because yet other platforms (Debian) put the .so
10355 # symlink in a different directory from the underlying versioned shlib.
10356 if test "$found_shlib" != 1; then
10357 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10359 for f
in "$d/lib${ldlibrary}.so."* ; do
10360 if test -e "$f"; then
10368 # As usual, Windows has its own ideas. Possible default library
10369 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10370 # and the "lib" prefix might not be there.
10371 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10372 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10374 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10375 if test -e "$f"; then
10384 if test "$found_shlib" != 1; then
10385 as_fn_error $?
"could not find shared library for Python
10386 You might have to rebuild your Python installation. Refer to the
10387 documentation for details. Use --without-python to disable building
10388 PL/Python." "$LINENO" 5
10390 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10392 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10395 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10401 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
10402 if test -z "$ZIC"; then
10405 # Extract the first word of "$ac_prog", so it can be a program name with args.
10406 set dummy $ac_prog; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10408 $as_echo_n "checking
for $ac_word...
" >&6; }
10409 if ${ac_cv_path_ZIC+:} false; then :
10410 $as_echo_n "(cached
) " >&6
10414 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10425 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10435 ZIC=$ac_cv_path_ZIC
10436 if test -n "$ZIC"; then
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10438 $as_echo "$ZIC" >&6; }
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10441 $as_echo "no
" >&6; }
10445 test -n "$ZIC" && break
10449 # Report the value of ZIC in configure's output in all cases.
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10451 $as_echo_n "checking
for ZIC...
" >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10453 $as_echo "$ZIC" >&6; }
10456 if test -z "$ZIC"; then
10458 When cross-compiling
, either use the option
--with-system-tzdata to use
10459 existing time-zone data
, or
set the environment variable ZIC to a zic
10460 program to use during the build.
" "$LINENO" 5
10467 # For each platform, we need to know about any special compile and link
10468 # libraries, and whether the normal C function names are thread-safe.
10469 # See the comment at the top of src/port/thread.c for more information.
10470 # WIN32 doesn't need the pthread tests; it always uses threads
10472 # These tests are run before the library-tests, because linking with the
10473 # other libraries can pull in the pthread functions as a side-effect. We
10474 # want to use the -pthread or similar flags directly, and not rely on
10475 # the side-effects of linking with some other library.
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10478 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10479 if ${ac_cv_path_SED+:} false; then :
10480 $as_echo_n "(cached
) " >&6
10482 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10483 for ac_i in 1 2 3 4 5 6 7; do
10484 ac_script="$ac_script$as_nl$ac_script"
10486 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10487 { ac_script=; unset ac_script;}
10488 if test -z "$SED"; then
10489 ac_path_SED_found=false
10490 # Loop through the user's path and test for each of PROGNAME-LIST
10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492 for as_dir in $PATH
10495 test -z "$as_dir" && as_dir=.
10496 for ac_prog in sed gsed; do
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10499 as_fn_executable_p "$ac_path_SED" || continue
10500 # Check for GNU ac_path_SED and select it if it is found.
10501 # Check for GNU $ac_path_SED
10502 case `"$ac_path_SED" --version 2>&1` in
10504 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10507 $as_echo_n 0123456789 >"conftest.
in"
10510 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10511 mv "conftest.tmp
" "conftest.
in"
10512 cp "conftest.
in" "conftest.
nl"
10513 $as_echo '' >> "conftest.
nl"
10514 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10515 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10516 as_fn_arith $ac_count + 1 && ac_count=$as_val
10517 if test $ac_count -gt ${ac_path_SED_max-0}; then
10518 # Best one so far, save it but keep looking for a better one
10519 ac_cv_path_SED="$ac_path_SED"
10520 ac_path_SED_max=$ac_count
10522 # 10*(2^10) chars as input seems more than enough
10523 test $ac_count -gt 10 && break
10525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10528 $ac_path_SED_found && break 3
10533 if test -z "$ac_cv_path_SED"; then
10534 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10537 ac_cv_path_SED=$SED
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10542 $as_echo "$ac_cv_path_SED" >&6; }
10543 SED="$ac_cv_path_SED"
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10547 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10548 if ${ac_cv_header_stdc+:} false; then :
10549 $as_echo_n "(cached
) " >&6
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553 #include <stdlib.h>
10554 #include <stdarg.h>
10555 #include <string.h>
10566 if ac_fn_c_try_compile "$LINENO"; then :
10567 ac_cv_header_stdc=yes
10569 ac_cv_header_stdc=no
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if test $ac_cv_header_stdc = yes; then
10574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10577 #include <string.h>
10580 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10581 $EGREP "memchr
" >/dev/null 2>&1; then :
10584 ac_cv_header_stdc=no
10590 if test $ac_cv_header_stdc = yes; then
10591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include <stdlib.h>
10597 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10598 $EGREP "free
" >/dev/null 2>&1; then :
10601 ac_cv_header_stdc=no
10607 if test $ac_cv_header_stdc = yes; then
10608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10609 if test "$cross_compiling" = yes; then :
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10615 #include <stdlib.h>
10616 #if ((' ' & 0x0FF) == 0x020)
10617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10620 # define ISLOWER(c) \
10621 (('a' <= (c) && (c) <= 'i') \
10622 || ('j' <= (c) && (c) <= 'r') \
10623 || ('s' <= (c) && (c) <= 'z'))
10624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10632 for (i = 0; i < 256; i++)
10633 if (XOR (islower (i), ISLOWER (i))
10634 || toupper (i) != TOUPPER (i))
10639 if ac_fn_c_try_run "$LINENO"; then :
10642 ac_cv_header_stdc=no
10644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10645 conftest.$ac_objext conftest.beam conftest.$ac_ext
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10651 $as_echo "$ac_cv_header_stdc" >&6; }
10652 if test $ac_cv_header_stdc = yes; then
10654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10658 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10659 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10660 inttypes.h stdint.h unistd.h
10662 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10663 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10665 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10666 cat >>confdefs.h
<<_ACEOF
10667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
10682 ac_cpp
='$CPP $CPPFLAGS'
10683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10689 # We used to check for pthread.h first, but this fails if pthread.h
10690 # requires special compiler flags (e.g. on Tru64 or Sequent).
10691 # It gets checked for in the link test anyway.
10693 # First of all, check if the user has set any of the PTHREAD_LIBS,
10694 # etcetera environment variables, and if threads linking works using
10696 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10697 ax_pthread_save_CC
="$CC"
10698 ax_pthread_save_CFLAGS
="$CFLAGS"
10699 ax_pthread_save_LIBS
="$LIBS"
10700 if test "x$PTHREAD_CC" != "x"; then :
10703 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10704 LIBS
="$PTHREAD_LIBS $LIBS"
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10706 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10716 char pthread_join ();
10720 return pthread_join ();
10725 if ac_fn_c_try_link
"$LINENO"; then :
10728 rm -f core conftest.err conftest.
$ac_objext \
10729 conftest
$ac_exeext conftest.
$ac_ext
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10731 $as_echo "$ax_pthread_ok" >&6; }
10732 if test "x$ax_pthread_ok" = "xno"; then
10736 CC
="$ax_pthread_save_CC"
10737 CFLAGS
="$ax_pthread_save_CFLAGS"
10738 LIBS
="$ax_pthread_save_LIBS"
10741 # We must check for the threads library under a number of different
10742 # names; the ordering is very important because some systems
10743 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10744 # libraries is broken (non-POSIX).
10746 # Create a list of thread flags to try. Items starting with a "-" are
10747 # C compiler flags, and other items are library names, except for "none"
10748 # which indicates that we try without any flags at all, and "pthread-config"
10749 # which is a program returning the flags for the Pth emulation library.
10751 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10753 # The ordering *is* (sometimes) important. Some notes on the
10754 # individual items follow:
10756 # pthreads: AIX (must check this before -lpthread)
10757 # none: in case threads are in libc; should be tried before -Kthread and
10758 # other compiler flags to prevent continual compiler warnings
10759 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10760 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10761 # (Note: HP C rejects this with "bad form for `-t' option")
10762 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10763 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10764 # doesn't hurt to check since this sometimes defines pthreads and
10765 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10766 # is present but should not be used directly; and before -mthreads,
10767 # because the compiler interprets this as "-mt" + "-hreads")
10768 # -mthreads: Mingw32/gcc, Lynx/gcc
10769 # pthread: Linux, etcetera
10770 # --thread-safe: KAI C++
10771 # pthread-config: use pthread-config program (for GNU Pth library)
10777 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10778 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10780 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10785 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10786 # multi-threading and also sets -lpthread."
10788 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10793 # IBM z/OS requires a feature-test macro to be defined in order to
10794 # enable POSIX threads at all, so give the user a hint if this is
10795 # not set. (We don't define these ourselves, as they can affect
10796 # other portions of the system API in unpredictable ways.)
10798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10801 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10802 AX_PTHREAD_ZOS_MISSING
10806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10807 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10809 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10817 # On Solaris (at least, for some versions), libc contains stubbed
10818 # (non-functional) versions of the pthreads routines, so link-based
10819 # tests will erroneously succeed. (N.B.: The stubs are missing
10820 # pthread_cleanup_push, or rather a function called by this macro,
10821 # so we could check for that, but who knows whether they'll stub
10822 # that too in a future libc.) So we'll check first for the
10823 # standard Solaris way of linking pthreads (-mt -lpthread).
10825 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10829 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10831 if test "x$GCC" = "xyes"; then :
10832 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10835 # The presence of a feature test macro requesting re-entrant function
10836 # definitions is, on some systems, a strong hint that pthreads support is
10837 # correctly enabled
10840 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10841 ax_pthread_check_macro
="_REENTRANT"
10845 ax_pthread_check_macro
="_THREAD_SAFE"
10849 ax_pthread_check_macro
="--"
10852 if test "x$ax_pthread_check_macro" = "x--"; then :
10853 ax_pthread_check_cond
=0
10855 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10858 # Are we compiling with Clang?
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10861 $as_echo_n "checking whether $CC is Clang... " >&6; }
10862 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10863 $as_echo_n "(cached) " >&6
10865 ax_cv_PTHREAD_CLANG
=no
10866 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10867 if test "x$GCC" = "xyes"; then
10868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10871 # if defined(__clang__) && defined(__llvm__)
10872 AX_PTHREAD_CC_IS_CLANG
10876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10877 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10878 ax_cv_PTHREAD_CLANG
=yes
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10886 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10887 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10889 ax_pthread_clang_warning
=no
10891 # Clang needs special handling, because older versions handle the -pthread
10892 # option in a rather... idiosyncratic way
10894 if test "x$ax_pthread_clang" = "xyes"; then
10896 # Clang takes -pthread; it has never supported any other flag
10898 # (Note 1: This will need to be revisited if a system that Clang
10899 # supports has POSIX threads in a separate library. This tends not
10900 # to be the way of modern systems, but it's conceivable.)
10902 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10903 # to get POSIX threads support; the API is always present and
10904 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10905 # -pthread does define _REENTRANT, and while the Darwin headers
10906 # ignore this macro, third-party headers might not.)
10908 PTHREAD_CFLAGS
="-pthread"
10913 # However, older versions of Clang make a point of warning the user
10914 # that, in an invocation where only linking and no compilation is
10915 # taking place, the -pthread option has no effect ("argument unused
10916 # during compilation"). They expect -pthread to be passed in only
10917 # when source code is being compiled.
10919 # Problem is, this is at odds with the way Automake and most other
10920 # C build frameworks function, which is that the same flags used in
10921 # compilation (CFLAGS) are also used in linking. Many systems
10922 # supported by AX_PTHREAD require exactly this for POSIX threads
10923 # support, and in fact it is often not straightforward to specify a
10924 # flag that is used only in the compilation phase and not in
10925 # linking. Such a scenario is extremely rare in practice.
10927 # Even though use of the -pthread flag in linking would only print
10928 # a warning, this can be a nuisance for well-run software projects
10929 # that build with -Werror. So if the active version of Clang has
10930 # this misfeature, we search for an option to squash it.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10933 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10934 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10935 $as_echo_n "(cached) " >&6
10937 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10938 # Create an alternate version of $ac_link that compiles and
10939 # links in two steps (.c -> .o, .o -> exe) instead of one
10940 # (.c -> exe), because the warning occurs only in the second
10942 ax_pthread_save_ac_link
="$ac_link"
10943 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10944 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10945 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10946 ax_pthread_save_CFLAGS
="$CFLAGS"
10947 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10948 if test "x$ax_pthread_try" = "xunknown"; then :
10951 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10952 ac_link
="$ax_pthread_save_ac_link"
10953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 int main(void){return 0;}
10957 if ac_fn_c_try_link
"$LINENO"; then :
10958 ac_link
="$ax_pthread_2step_ac_link"
10959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961 int main(void){return 0;}
10963 if ac_fn_c_try_link
"$LINENO"; then :
10966 rm -f core conftest.err conftest.
$ac_objext \
10967 conftest
$ac_exeext conftest.
$ac_ext
10970 rm -f core conftest.err conftest.
$ac_objext \
10971 conftest
$ac_exeext conftest.
$ac_ext
10973 ac_link
="$ax_pthread_save_ac_link"
10974 CFLAGS
="$ax_pthread_save_CFLAGS"
10975 if test "x$ax_pthread_try" = "x"; then :
10978 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10982 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10984 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10986 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10989 fi # $ax_pthread_clang = yes
10991 if test "x$ax_pthread_ok" = "xno"; then
10992 for ax_pthread_try_flag
in $ax_pthread_flags; do
10994 case $ax_pthread_try_flag in
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10997 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11002 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11003 PTHREAD_CFLAGS
="-mt"
11004 PTHREAD_LIBS
="-lpthread"
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11009 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11010 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11014 # Extract the first word of "pthread-config", so it can be a program name with args.
11015 set dummy pthread-config
; ac_word
=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11019 $as_echo_n "(cached) " >&6
11021 if test -n "$ax_pthread_config"; then
11022 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11025 for as_dir
in $PATH
11028 test -z "$as_dir" && as_dir
=.
11029 for ac_exec_ext
in '' $ac_executable_extensions; do
11030 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11031 ac_cv_prog_ax_pthread_config
="yes"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11042 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11043 if test -n "$ax_pthread_config"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11045 $as_echo "$ax_pthread_config" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11052 if test "x$ax_pthread_config" = "xno"; then :
11055 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11056 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11061 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11062 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11066 ax_pthread_save_CFLAGS
="$CFLAGS"
11067 ax_pthread_save_LIBS
="$LIBS"
11068 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11069 LIBS
="$PTHREAD_LIBS $LIBS"
11071 # Check for various functions. We must include pthread.h,
11072 # since some functions may be macros. (On the Sequent, we
11073 # need a special flag -Kthread to make this header compile.)
11074 # We check for pthread_join because it is in -lpthread on IRIX
11075 # while pthread_create is in libc. We check for pthread_attr_init
11076 # due to DEC craziness with -lpthreads. We check for
11077 # pthread_cleanup_push because it is one of the few pthread
11078 # functions on Solaris that doesn't have a non-functional libc stub.
11079 # We try pthread_create on general principles.
11081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083 #include <pthread.h>
11084 # if $ax_pthread_check_cond
11085 # error "$ax_pthread_check_macro must be defined"
11087 static void routine(void *a) { a = 0; }
11088 static void *start_routine(void *a) { return a; }
11092 pthread_t th; pthread_attr_t attr;
11093 pthread_create(&th, 0, start_routine, 0);
11094 pthread_join(th, 0);
11095 pthread_attr_init(&attr);
11096 pthread_cleanup_push(routine, 0);
11097 pthread_cleanup_pop(0) /* ; */
11102 if ac_fn_c_try_link
"$LINENO"; then :
11105 rm -f core conftest.err conftest.
$ac_objext \
11106 conftest
$ac_exeext conftest.
$ac_ext
11108 CFLAGS
="$ax_pthread_save_CFLAGS"
11109 LIBS
="$ax_pthread_save_LIBS"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11112 $as_echo "$ax_pthread_ok" >&6; }
11113 if test "x$ax_pthread_ok" = "xyes"; then :
11122 # Various other checks:
11123 if test "x$ax_pthread_ok" = "xyes"; then
11124 ax_pthread_save_CFLAGS
="$CFLAGS"
11125 ax_pthread_save_LIBS
="$LIBS"
11126 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11127 LIBS
="$PTHREAD_LIBS $LIBS"
11129 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11131 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11132 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11133 $as_echo_n "(cached) " >&6
11135 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11136 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11139 #include <pthread.h>
11143 int attr = $ax_pthread_attr; return attr /* ; */
11148 if ac_fn_c_try_link
"$LINENO"; then :
11149 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11151 rm -f core conftest.err conftest.
$ac_objext \
11152 conftest
$ac_exeext conftest.
$ac_ext
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11157 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11158 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11159 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11160 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11162 cat >>confdefs.h
<<_ACEOF
11163 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11166 ax_pthread_joinable_attr_defined
=yes
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11171 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11172 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11173 $as_echo_n "(cached) " >&6
11175 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11178 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11184 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11185 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11186 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11187 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11188 ax_pthread_special_flags_added
=yes
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11192 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11193 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11194 $as_echo_n "(cached) " >&6
11196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 #include <pthread.h>
11202 int i = PTHREAD_PRIO_INHERIT;
11207 if ac_fn_c_try_link
"$LINENO"; then :
11208 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11210 ax_cv_PTHREAD_PRIO_INHERIT
=no
11212 rm -f core conftest.err conftest.
$ac_objext \
11213 conftest
$ac_exeext conftest.
$ac_ext
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11217 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11218 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11219 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11221 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11223 ax_pthread_prio_inherit_defined
=yes
11227 CFLAGS
="$ax_pthread_save_CFLAGS"
11228 LIBS
="$ax_pthread_save_LIBS"
11230 # More AIX lossage: compile with *_r variant
11231 if test "x$GCC" != "xyes"; then
11235 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11236 #handle absolute path differently from PATH based program lookup
11239 if as_fn_executable_p
${CC}_r
; then :
11240 PTHREAD_CC
="${CC}_r"
11243 for ac_prog
in ${CC}_r
11245 # Extract the first word of "$ac_prog", so it can be a program name with args.
11246 set dummy
$ac_prog; ac_word
=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11250 $as_echo_n "(cached) " >&6
11252 if test -n "$PTHREAD_CC"; then
11253 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11256 for as_dir
in $PATH
11259 test -z "$as_dir" && as_dir
=.
11260 for ac_exec_ext
in '' $ac_executable_extensions; do
11261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11262 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11273 if test -n "$PTHREAD_CC"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11275 $as_echo "$PTHREAD_CC" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11282 test -n "$PTHREAD_CC" && break
11284 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11295 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11301 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11302 if test "x$ax_pthread_ok" = "xyes"; then
11304 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11312 ac_cpp
='$CPP $CPPFLAGS'
11313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11319 # Some platforms use these, so just define them. They can't hurt if they
11320 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
11321 # enables 5-arg getpwuid_r, among other things.
11322 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
11324 # Check for *_r functions
11327 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11328 LIBS
="$LIBS $PTHREAD_LIBS"
11330 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11331 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11335 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
11340 for ac_func
in strerror_r getpwuid_r gethostbyname_r
11342 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11343 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11344 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11345 cat >>confdefs.h
<<_ACEOF
11346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353 # Do test here with the proper thread flags
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11355 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11356 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11357 $as_echo_n "(cached) " >&6
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <string.h>
11366 switch (strerror_r(1, buf, sizeof(buf)))
11367 { case 0: break; default: break; }
11373 if ac_fn_c_try_compile
"$LINENO"; then :
11374 pgac_cv_func_strerror_r_int
=yes
11376 pgac_cv_func_strerror_r_int
=no
11378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11381 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11382 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11384 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11395 # do not use values from template file
11408 ## Most libraries are included only if they demonstrably provide a function
11409 ## we need, but libm is an exception: always include it, because there are
11410 ## too many compilers that play cute optimization games that will break
11411 ## probes for standard functions such as pow().
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11415 $as_echo_n "checking for main in -lm... " >&6; }
11416 if ${ac_cv_lib_m_main+:} false
; then :
11417 $as_echo_n "(cached) " >&6
11419 ac_check_lib_save_LIBS
=$LIBS
11421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11433 if ac_fn_c_try_link
"$LINENO"; then :
11434 ac_cv_lib_m_main
=yes
11436 ac_cv_lib_m_main
=no
11438 rm -f core conftest.err conftest.
$ac_objext \
11439 conftest
$ac_exeext conftest.
$ac_ext
11440 LIBS
=$ac_check_lib_save_LIBS
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11443 $as_echo "$ac_cv_lib_m_main" >&6; }
11444 if test "x$ac_cv_lib_m_main" = xyes
; then :
11445 cat >>confdefs.h
<<_ACEOF
11446 #define HAVE_LIBM 1
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11454 $as_echo_n "checking for library containing setproctitle... " >&6; }
11455 if ${ac_cv_search_setproctitle+:} false
; then :
11456 $as_echo_n "(cached) " >&6
11458 ac_func_search_save_LIBS
=$LIBS
11459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11468 char setproctitle ();
11472 return setproctitle ();
11477 for ac_lib
in '' util
; do
11478 if test -z "$ac_lib"; then
11479 ac_res
="none required"
11482 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11484 if ac_fn_c_try_link
"$LINENO"; then :
11485 ac_cv_search_setproctitle
=$ac_res
11487 rm -f core conftest.err conftest.
$ac_objext \
11489 if ${ac_cv_search_setproctitle+:} false
; then :
11493 if ${ac_cv_search_setproctitle+:} false
; then :
11496 ac_cv_search_setproctitle
=no
11498 rm conftest.
$ac_ext
11499 LIBS
=$ac_func_search_save_LIBS
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11502 $as_echo "$ac_cv_search_setproctitle" >&6; }
11503 ac_res
=$ac_cv_search_setproctitle
11504 if test "$ac_res" != no
; then :
11505 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11509 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11510 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11511 # required. Just checking for dlsym() ought to suffice.
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11513 $as_echo_n "checking for library containing dlsym... " >&6; }
11514 if ${ac_cv_search_dlsym+:} false
; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_func_search_save_LIBS
=$LIBS
11518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11536 for ac_lib
in '' dl
; do
11537 if test -z "$ac_lib"; then
11538 ac_res
="none required"
11541 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11543 if ac_fn_c_try_link
"$LINENO"; then :
11544 ac_cv_search_dlsym
=$ac_res
11546 rm -f core conftest.err conftest.
$ac_objext \
11548 if ${ac_cv_search_dlsym+:} false
; then :
11552 if ${ac_cv_search_dlsym+:} false
; then :
11555 ac_cv_search_dlsym
=no
11557 rm conftest.
$ac_ext
11558 LIBS
=$ac_func_search_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11561 $as_echo "$ac_cv_search_dlsym" >&6; }
11562 ac_res
=$ac_cv_search_dlsym
11563 if test "$ac_res" != no
; then :
11564 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11569 $as_echo_n "checking for library containing socket... " >&6; }
11570 if ${ac_cv_search_socket+:} false
; then :
11571 $as_echo_n "(cached) " >&6
11573 ac_func_search_save_LIBS
=$LIBS
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11592 for ac_lib
in '' socket ws2_32
; do
11593 if test -z "$ac_lib"; then
11594 ac_res
="none required"
11597 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11599 if ac_fn_c_try_link
"$LINENO"; then :
11600 ac_cv_search_socket
=$ac_res
11602 rm -f core conftest.err conftest.
$ac_objext \
11604 if ${ac_cv_search_socket+:} false
; then :
11608 if ${ac_cv_search_socket+:} false
; then :
11611 ac_cv_search_socket
=no
11613 rm conftest.
$ac_ext
11614 LIBS
=$ac_func_search_save_LIBS
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11617 $as_echo "$ac_cv_search_socket" >&6; }
11618 ac_res
=$ac_cv_search_socket
11619 if test "$ac_res" != no
; then :
11620 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
11625 $as_echo_n "checking for library containing shl_load... " >&6; }
11626 if ${ac_cv_search_shl_load+:} false
; then :
11627 $as_echo_n "(cached) " >&6
11629 ac_func_search_save_LIBS
=$LIBS
11630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11643 return shl_load ();
11648 for ac_lib
in '' dld
; do
11649 if test -z "$ac_lib"; then
11650 ac_res
="none required"
11653 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11655 if ac_fn_c_try_link
"$LINENO"; then :
11656 ac_cv_search_shl_load
=$ac_res
11658 rm -f core conftest.err conftest.
$ac_objext \
11660 if ${ac_cv_search_shl_load+:} false
; then :
11664 if ${ac_cv_search_shl_load+:} false
; then :
11667 ac_cv_search_shl_load
=no
11669 rm conftest.
$ac_ext
11670 LIBS
=$ac_func_search_save_LIBS
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
11673 $as_echo "$ac_cv_search_shl_load" >&6; }
11674 ac_res
=$ac_cv_search_shl_load
11675 if test "$ac_res" != no
; then :
11676 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11681 $as_echo_n "checking for library containing getopt_long... " >&6; }
11682 if ${ac_cv_search_getopt_long+:} false
; then :
11683 $as_echo_n "(cached) " >&6
11685 ac_func_search_save_LIBS
=$LIBS
11686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11695 char getopt_long ();
11699 return getopt_long ();
11704 for ac_lib
in '' getopt gnugetopt
; do
11705 if test -z "$ac_lib"; then
11706 ac_res
="none required"
11709 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11711 if ac_fn_c_try_link
"$LINENO"; then :
11712 ac_cv_search_getopt_long
=$ac_res
11714 rm -f core conftest.err conftest.
$ac_objext \
11716 if ${ac_cv_search_getopt_long+:} false
; then :
11720 if ${ac_cv_search_getopt_long+:} false
; then :
11723 ac_cv_search_getopt_long
=no
11725 rm conftest.
$ac_ext
11726 LIBS
=$ac_func_search_save_LIBS
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11729 $as_echo "$ac_cv_search_getopt_long" >&6; }
11730 ac_res
=$ac_cv_search_getopt_long
11731 if test "$ac_res" != no
; then :
11732 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
11737 $as_echo_n "checking for library containing crypt... " >&6; }
11738 if ${ac_cv_search_crypt+:} false
; then :
11739 $as_echo_n "(cached) " >&6
11741 ac_func_search_save_LIBS
=$LIBS
11742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11760 for ac_lib
in '' crypt; do
11761 if test -z "$ac_lib"; then
11762 ac_res
="none required"
11765 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11767 if ac_fn_c_try_link
"$LINENO"; then :
11768 ac_cv_search_crypt
=$ac_res
11770 rm -f core conftest.err conftest.
$ac_objext \
11772 if ${ac_cv_search_crypt+:} false
; then :
11776 if ${ac_cv_search_crypt+:} false
; then :
11779 ac_cv_search_crypt
=no
11781 rm conftest.
$ac_ext
11782 LIBS
=$ac_func_search_save_LIBS
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
11785 $as_echo "$ac_cv_search_crypt" >&6; }
11786 ac_res
=$ac_cv_search_crypt
11787 if test "$ac_res" != no
; then :
11788 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11793 $as_echo_n "checking for library containing shm_open... " >&6; }
11794 if ${ac_cv_search_shm_open+:} false
; then :
11795 $as_echo_n "(cached) " >&6
11797 ac_func_search_save_LIBS
=$LIBS
11798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11811 return shm_open ();
11816 for ac_lib
in '' rt
; do
11817 if test -z "$ac_lib"; then
11818 ac_res
="none required"
11821 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11823 if ac_fn_c_try_link
"$LINENO"; then :
11824 ac_cv_search_shm_open
=$ac_res
11826 rm -f core conftest.err conftest.
$ac_objext \
11828 if ${ac_cv_search_shm_open+:} false
; then :
11832 if ${ac_cv_search_shm_open+:} false
; then :
11835 ac_cv_search_shm_open
=no
11837 rm conftest.
$ac_ext
11838 LIBS
=$ac_func_search_save_LIBS
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11841 $as_echo "$ac_cv_search_shm_open" >&6; }
11842 ac_res
=$ac_cv_search_shm_open
11843 if test "$ac_res" != no
; then :
11844 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11849 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11850 if ${ac_cv_search_shm_unlink+:} false
; then :
11851 $as_echo_n "(cached) " >&6
11853 ac_func_search_save_LIBS
=$LIBS
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11863 char shm_unlink ();
11867 return shm_unlink ();
11872 for ac_lib
in '' rt
; do
11873 if test -z "$ac_lib"; then
11874 ac_res
="none required"
11877 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11879 if ac_fn_c_try_link
"$LINENO"; then :
11880 ac_cv_search_shm_unlink
=$ac_res
11882 rm -f core conftest.err conftest.
$ac_objext \
11884 if ${ac_cv_search_shm_unlink+:} false
; then :
11888 if ${ac_cv_search_shm_unlink+:} false
; then :
11891 ac_cv_search_shm_unlink
=no
11893 rm conftest.
$ac_ext
11894 LIBS
=$ac_func_search_save_LIBS
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11897 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11898 ac_res
=$ac_cv_search_shm_unlink
11899 if test "$ac_res" != no
; then :
11900 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11905 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11906 if ${ac_cv_search_clock_gettime+:} false
; then :
11907 $as_echo_n "(cached) " >&6
11909 ac_func_search_save_LIBS
=$LIBS
11910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 /* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11919 char clock_gettime ();
11923 return clock_gettime ();
11928 for ac_lib
in '' rt posix4
; do
11929 if test -z "$ac_lib"; then
11930 ac_res
="none required"
11933 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11935 if ac_fn_c_try_link
"$LINENO"; then :
11936 ac_cv_search_clock_gettime
=$ac_res
11938 rm -f core conftest.err conftest.
$ac_objext \
11940 if ${ac_cv_search_clock_gettime+:} false
; then :
11944 if ${ac_cv_search_clock_gettime+:} false
; then :
11947 ac_cv_search_clock_gettime
=no
11949 rm conftest.
$ac_ext
11950 LIBS
=$ac_func_search_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11953 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11954 ac_res
=$ac_cv_search_clock_gettime
11955 if test "$ac_res" != no
; then :
11956 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11962 $as_echo_n "checking for library containing fdatasync... " >&6; }
11963 if ${ac_cv_search_fdatasync+:} false
; then :
11964 $as_echo_n "(cached) " >&6
11966 ac_func_search_save_LIBS
=$LIBS
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11980 return fdatasync ();
11985 for ac_lib
in '' rt posix4
; do
11986 if test -z "$ac_lib"; then
11987 ac_res
="none required"
11990 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11992 if ac_fn_c_try_link
"$LINENO"; then :
11993 ac_cv_search_fdatasync
=$ac_res
11995 rm -f core conftest.err conftest.
$ac_objext \
11997 if ${ac_cv_search_fdatasync+:} false
; then :
12001 if ${ac_cv_search_fdatasync+:} false
; then :
12004 ac_cv_search_fdatasync
=no
12006 rm conftest.
$ac_ext
12007 LIBS
=$ac_func_search_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12010 $as_echo "$ac_cv_search_fdatasync" >&6; }
12011 ac_res
=$ac_cv_search_fdatasync
12012 if test "$ac_res" != no
; then :
12013 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12017 # Required for thread_test.c on Solaris
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
12019 $as_echo_n "checking for library containing sched_yield... " >&6; }
12020 if ${ac_cv_search_sched_yield+:} false
; then :
12021 $as_echo_n "(cached) " >&6
12023 ac_func_search_save_LIBS
=$LIBS
12024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12033 char sched_yield ();
12037 return sched_yield ();
12042 for ac_lib
in '' rt
; do
12043 if test -z "$ac_lib"; then
12044 ac_res
="none required"
12047 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12049 if ac_fn_c_try_link
"$LINENO"; then :
12050 ac_cv_search_sched_yield
=$ac_res
12052 rm -f core conftest.err conftest.
$ac_objext \
12054 if ${ac_cv_search_sched_yield+:} false
; then :
12058 if ${ac_cv_search_sched_yield+:} false
; then :
12061 ac_cv_search_sched_yield
=no
12063 rm conftest.
$ac_ext
12064 LIBS
=$ac_func_search_save_LIBS
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
12067 $as_echo "$ac_cv_search_sched_yield" >&6; }
12068 ac_res
=$ac_cv_search_sched_yield
12069 if test "$ac_res" != no
; then :
12070 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12074 # Required for thread_test.c on Solaris 2.5:
12075 # Other ports use it too (HP-UX) so test unconditionally
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
12077 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
12078 if ${ac_cv_search_gethostbyname_r+:} false
; then :
12079 $as_echo_n "(cached) " >&6
12081 ac_func_search_save_LIBS
=$LIBS
12082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12085 /* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12091 char gethostbyname_r ();
12095 return gethostbyname_r ();
12100 for ac_lib
in '' nsl
; do
12101 if test -z "$ac_lib"; then
12102 ac_res
="none required"
12105 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12107 if ac_fn_c_try_link
"$LINENO"; then :
12108 ac_cv_search_gethostbyname_r
=$ac_res
12110 rm -f core conftest.err conftest.
$ac_objext \
12112 if ${ac_cv_search_gethostbyname_r+:} false
; then :
12116 if ${ac_cv_search_gethostbyname_r+:} false
; then :
12119 ac_cv_search_gethostbyname_r
=no
12121 rm conftest.
$ac_ext
12122 LIBS
=$ac_func_search_save_LIBS
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
12125 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
12126 ac_res
=$ac_cv_search_gethostbyname_r
12127 if test "$ac_res" != no
; then :
12128 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
12134 $as_echo_n "checking for library containing shmget... " >&6; }
12135 if ${ac_cv_search_shmget+:} false
; then :
12136 $as_echo_n "(cached) " >&6
12138 ac_func_search_save_LIBS
=$LIBS
12139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12157 for ac_lib
in '' cygipc
; do
12158 if test -z "$ac_lib"; then
12159 ac_res
="none required"
12162 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12164 if ac_fn_c_try_link
"$LINENO"; then :
12165 ac_cv_search_shmget
=$ac_res
12167 rm -f core conftest.err conftest.
$ac_objext \
12169 if ${ac_cv_search_shmget+:} false
; then :
12173 if ${ac_cv_search_shmget+:} false
; then :
12176 ac_cv_search_shmget
=no
12178 rm conftest.
$ac_ext
12179 LIBS
=$ac_func_search_save_LIBS
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
12182 $as_echo "$ac_cv_search_shmget" >&6; }
12183 ac_res
=$ac_cv_search_shmget
12184 if test "$ac_res" != no
; then :
12185 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12190 if test "$with_readline" = yes; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12194 $as_echo_n "checking for library containing readline... " >&6; }
12195 if ${pgac_cv_check_readline+:} false
; then :
12196 $as_echo_n "(cached) " >&6
12198 pgac_cv_check_readline
=no
12199 pgac_save_LIBS
=$LIBS
12200 if test x
"$with_libedit_preferred" != x
"yes"
12201 then READLINE_ORDER
="-lreadline -ledit"
12202 else READLINE_ORDER
="-ledit -lreadline"
12204 for pgac_rllib
in $READLINE_ORDER ; do
12205 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12206 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12210 /* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12220 return readline ();
12225 if ac_fn_c_try_link
"$LINENO"; then :
12227 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
12228 # recognize dependent libraries; assume curses is needed if we didn't
12229 # find any dependency.
12231 netbsd
* | openbsd
* | irix
*)
12232 if test x
"$pgac_lib" = x
"" ; then
12233 pgac_lib
=" -lcurses"
12237 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12241 rm -f core conftest.err conftest.
$ac_objext \
12242 conftest
$ac_exeext conftest.
$ac_ext
12244 if test "$pgac_cv_check_readline" != no
; then
12248 LIBS
=$pgac_save_LIBS
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12252 $as_echo "$pgac_cv_check_readline" >&6; }
12253 if test "$pgac_cv_check_readline" != no
; then
12254 LIBS
="$pgac_cv_check_readline $LIBS"
12256 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12261 if test x
"$pgac_cv_check_readline" = x
"no"; then
12262 as_fn_error $?
"readline library not found
12263 If you have readline already installed, see config.log for details on the
12264 failure. It is possible the compiler isn't looking in the proper directory.
12265 Use --without-readline to disable readline support." "$LINENO" 5
12269 if test "$with_zlib" = yes; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12271 $as_echo_n "checking for inflate in -lz... " >&6; }
12272 if ${ac_cv_lib_z_inflate+:} false
; then :
12273 $as_echo_n "(cached) " >&6
12275 ac_check_lib_save_LIBS
=$LIBS
12277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12295 if ac_fn_c_try_link
"$LINENO"; then :
12296 ac_cv_lib_z_inflate
=yes
12298 ac_cv_lib_z_inflate
=no
12300 rm -f core conftest.err conftest.
$ac_objext \
12301 conftest
$ac_exeext conftest.
$ac_ext
12302 LIBS
=$ac_check_lib_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12305 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12306 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12307 cat >>confdefs.h
<<_ACEOF
12308 #define HAVE_LIBZ 1
12314 as_fn_error $?
"zlib library not found
12315 If you have zlib already installed, see config.log for details on the
12316 failure. It is possible the compiler isn't looking in the proper directory.
12317 Use --without-zlib to disable zlib support." "$LINENO" 5
12322 if test "$enable_spinlocks" = yes; then
12324 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12328 *** Not using spinlocks will cause poor performance." >&5
12329 $as_echo "$as_me: WARNING:
12330 *** Not using spinlocks will cause poor performance." >&2;}
12333 if test "$enable_atomics" = yes; then
12335 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12339 *** Not using atomic operations will cause poor performance." >&5
12340 $as_echo "$as_me: WARNING:
12341 *** Not using atomic operations will cause poor performance." >&2;}
12344 if test "$with_gssapi" = yes ; then
12345 if test "$PORTNAME" != "win32"; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
12347 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
12348 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12349 $as_echo_n "(cached) " >&6
12351 ac_func_search_save_LIBS
=$LIBS
12352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12355 /* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
12361 char gss_init_sec_context ();
12365 return gss_init_sec_context ();
12370 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12371 if test -z "$ac_lib"; then
12372 ac_res
="none required"
12375 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12377 if ac_fn_c_try_link
"$LINENO"; then :
12378 ac_cv_search_gss_init_sec_context
=$ac_res
12380 rm -f core conftest.err conftest.
$ac_objext \
12382 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12386 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12389 ac_cv_search_gss_init_sec_context
=no
12391 rm conftest.
$ac_ext
12392 LIBS
=$ac_func_search_save_LIBS
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
12395 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
12396 ac_res
=$ac_cv_search_gss_init_sec_context
12397 if test "$ac_res" != no
; then :
12398 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12401 as_fn_error $?
"could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
12405 LIBS
="$LIBS -lgssapi32"
12409 if test "$with_openssl" = yes ; then
12410 # Minimum required OpenSSL version is 0.9.8
12412 $as_echo "#define OPENSSL_API_COMPAT 0x00908000L" >>confdefs.h
12414 if test "$PORTNAME" != "win32"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12416 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12417 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12418 $as_echo_n "(cached) " >&6
12420 ac_check_lib_save_LIBS
=$LIBS
12421 LIBS
="-lcrypto $LIBS"
12422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12431 char CRYPTO_new_ex_data ();
12435 return CRYPTO_new_ex_data ();
12440 if ac_fn_c_try_link
"$LINENO"; then :
12441 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12443 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12445 rm -f core conftest.err conftest.
$ac_objext \
12446 conftest
$ac_exeext conftest.
$ac_ext
12447 LIBS
=$ac_check_lib_save_LIBS
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12450 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12451 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12452 cat >>confdefs.h
<<_ACEOF
12453 #define HAVE_LIBCRYPTO 1
12456 LIBS
="-lcrypto $LIBS"
12459 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12463 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12464 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12465 $as_echo_n "(cached) " >&6
12467 ac_check_lib_save_LIBS
=$LIBS
12469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12487 if ac_fn_c_try_link
"$LINENO"; then :
12488 ac_cv_lib_ssl_SSL_new
=yes
12490 ac_cv_lib_ssl_SSL_new
=no
12492 rm -f core conftest.err conftest.
$ac_objext \
12493 conftest
$ac_exeext conftest.
$ac_ext
12494 LIBS
=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12497 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12498 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12499 cat >>confdefs.h
<<_ACEOF
12500 #define HAVE_LIBSSL 1
12506 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12511 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12512 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12513 $as_echo_n "(cached) " >&6
12515 ac_func_search_save_LIBS
=$LIBS
12516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12525 char CRYPTO_new_ex_data ();
12529 return CRYPTO_new_ex_data ();
12534 for ac_lib
in '' eay32 crypto
; do
12535 if test -z "$ac_lib"; then
12536 ac_res
="none required"
12539 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12541 if ac_fn_c_try_link
"$LINENO"; then :
12542 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12544 rm -f core conftest.err conftest.
$ac_objext \
12546 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12550 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12553 ac_cv_search_CRYPTO_new_ex_data
=no
12555 rm conftest.
$ac_ext
12556 LIBS
=$ac_func_search_save_LIBS
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12559 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12560 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12561 if test "$ac_res" != no
; then :
12562 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12565 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12569 $as_echo_n "checking for library containing SSL_new... " >&6; }
12570 if ${ac_cv_search_SSL_new+:} false
; then :
12571 $as_echo_n "(cached) " >&6
12573 ac_func_search_save_LIBS
=$LIBS
12574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12592 for ac_lib
in '' ssleay32 ssl
; do
12593 if test -z "$ac_lib"; then
12594 ac_res
="none required"
12597 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12599 if ac_fn_c_try_link
"$LINENO"; then :
12600 ac_cv_search_SSL_new
=$ac_res
12602 rm -f core conftest.err conftest.
$ac_objext \
12604 if ${ac_cv_search_SSL_new+:} false
; then :
12608 if ${ac_cv_search_SSL_new+:} false
; then :
12611 ac_cv_search_SSL_new
=no
12613 rm conftest.
$ac_ext
12614 LIBS
=$ac_func_search_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12617 $as_echo "$ac_cv_search_SSL_new" >&6; }
12618 ac_res
=$ac_cv_search_SSL_new
12619 if test "$ac_res" != no
; then :
12620 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12623 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12627 for ac_func
in SSL_get_current_compression X509_get_signature_nid
12629 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12630 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12631 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12632 cat >>confdefs.h
<<_ACEOF
12633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12639 # Functions introduced in OpenSSL 1.1.0. We used to check for
12640 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12641 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12642 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12644 for ac_func
in OPENSSL_init_ssl BIO_meth_new ASN1_STRING_get0_data
12646 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12647 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12648 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12649 cat >>confdefs.h
<<_ACEOF
12650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12656 # OpenSSL versions before 1.1.0 required setting callback functions, for
12657 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12658 # function was removed.
12659 for ac_func
in CRYPTO_lock
12661 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12662 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
12663 cat >>confdefs.h
<<_ACEOF
12664 #define HAVE_CRYPTO_LOCK 1
12670 # Function introduced in OpenSSL 1.1.1.
12671 for ac_func
in X509_get_signature_info
12673 ac_fn_c_check_func
"$LINENO" "X509_get_signature_info" "ac_cv_func_X509_get_signature_info"
12674 if test "x$ac_cv_func_X509_get_signature_info" = xyes
; then :
12675 cat >>confdefs.h
<<_ACEOF
12676 #define HAVE_X509_GET_SIGNATURE_INFO 1
12682 # SSL_clear_options is a macro in OpenSSL from 0.9.8 to 1.0.2, and
12683 # a function from 1.1.0 onwards so we cannot use AC_CHECK_FUNCS.
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_clear_options" >&5
12685 $as_echo_n "checking for SSL_clear_options... " >&6; }
12686 if ${ac_cv_func_ssl_clear_options+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12692 #include <openssl/ssl.h>
12693 #include <openssl/bio.h>
12699 return SSL_clear_options(ssl, 0);
12704 if ac_fn_c_try_link
"$LINENO"; then :
12705 ac_cv_func_ssl_clear_options
=yes
12707 ac_cv_func_ssl_clear_options
=no
12709 rm -f core conftest.err conftest.
$ac_objext \
12710 conftest
$ac_exeext conftest.
$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ssl_clear_options" >&5
12713 $as_echo "$ac_cv_func_ssl_clear_options" >&6; }
12714 if test $ac_cv_func_ssl_clear_options = yes ; then
12716 $as_echo "#define HAVE_SSL_CLEAR_OPTIONS 1" >>confdefs.h
12721 if test "$with_pam" = yes ; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12723 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12724 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12725 $as_echo_n "(cached) " >&6
12727 ac_check_lib_save_LIBS
=$LIBS
12729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12742 return pam_start ();
12747 if ac_fn_c_try_link
"$LINENO"; then :
12748 ac_cv_lib_pam_pam_start
=yes
12750 ac_cv_lib_pam_pam_start
=no
12752 rm -f core conftest.err conftest.
$ac_objext \
12753 conftest
$ac_exeext conftest.
$ac_ext
12754 LIBS
=$ac_check_lib_save_LIBS
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12757 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12758 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12759 cat >>confdefs.h
<<_ACEOF
12760 #define HAVE_LIBPAM 1
12766 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12771 if test "$with_libxml" = yes ; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12773 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12774 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12775 $as_echo_n "(cached) " >&6
12777 ac_check_lib_save_LIBS
=$LIBS
12778 LIBS
="-lxml2 $LIBS"
12779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12782 /* Override any GCC internal prototype to avoid an error.
12783 Use char because int might match the return type of a GCC
12784 builtin and then its argument prototype would still apply. */
12788 char xmlSaveToBuffer ();
12792 return xmlSaveToBuffer ();
12797 if ac_fn_c_try_link
"$LINENO"; then :
12798 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12800 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12802 rm -f core conftest.err conftest.
$ac_objext \
12803 conftest
$ac_exeext conftest.
$ac_ext
12804 LIBS
=$ac_check_lib_save_LIBS
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12807 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12808 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12809 cat >>confdefs.h
<<_ACEOF
12810 #define HAVE_LIBXML2 1
12813 LIBS
="-lxml2 $LIBS"
12816 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12821 if test "$with_libxslt" = yes ; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12823 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12824 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12825 $as_echo_n "(cached) " >&6
12827 ac_check_lib_save_LIBS
=$LIBS
12828 LIBS
="-lxslt $LIBS"
12829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12838 char xsltCleanupGlobals ();
12842 return xsltCleanupGlobals ();
12847 if ac_fn_c_try_link
"$LINENO"; then :
12848 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12850 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12852 rm -f core conftest.err conftest.
$ac_objext \
12853 conftest
$ac_exeext conftest.
$ac_ext
12854 LIBS
=$ac_check_lib_save_LIBS
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12857 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12858 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12859 cat >>confdefs.h
<<_ACEOF
12860 #define HAVE_LIBXSLT 1
12863 LIBS
="-lxslt $LIBS"
12866 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12871 # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
12872 # also, on AIX, we may need to have openssl in LIBS for this step.
12873 if test "$with_ldap" = yes ; then
12875 if test "$PORTNAME" != "win32"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12877 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12878 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12879 $as_echo_n "(cached) " >&6
12881 ac_check_lib_save_LIBS
=$LIBS
12882 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12896 return ldap_bind ();
12901 if ac_fn_c_try_link
"$LINENO"; then :
12902 ac_cv_lib_ldap_ldap_bind
=yes
12904 ac_cv_lib_ldap_ldap_bind
=no
12906 rm -f core conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12908 LIBS
=$ac_check_lib_save_LIBS
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12911 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12912 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12913 cat >>confdefs.h
<<_ACEOF
12914 #define HAVE_LIBLDAP 1
12917 LIBS
="-lldap $LIBS"
12920 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12923 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12924 # This test is carried out against libldap.
12925 for ac_func
in ldap_initialize
12927 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12928 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12929 cat >>confdefs.h
<<_ACEOF
12930 #define HAVE_LDAP_INITIALIZE 1
12936 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
12937 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
12938 # library from a separate OpenLDAP installation). The most reliable
12939 # way to check that is to check for a function introduced in 2.5.
12940 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
12941 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
12942 thread_safe_libldap
=yes
12944 thread_safe_libldap
=no
12947 if test "$enable_thread_safety" = yes -a "$thread_safe_libldap" = no
; then
12948 # Use ldap_r for FE if available, else assume ldap is thread-safe.
12949 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
12952 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
12953 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
12954 $as_echo_n "(cached) " >&6
12956 ac_check_lib_save_LIBS
=$LIBS
12957 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12971 return ldap_bind ();
12976 if ac_fn_c_try_link
"$LINENO"; then :
12977 ac_cv_lib_ldap_r_ldap_bind
=yes
12979 ac_cv_lib_ldap_r_ldap_bind
=no
12981 rm -f core conftest.err conftest.
$ac_objext \
12982 conftest
$ac_exeext conftest.
$ac_ext
12983 LIBS
=$ac_check_lib_save_LIBS
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
12986 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
12987 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
12988 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12990 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12994 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12998 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12999 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
13000 $as_echo_n "(cached) " >&6
13002 ac_check_lib_save_LIBS
=$LIBS
13003 LIBS
="-lwldap32 $LIBS"
13004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13017 return ldap_bind ();
13022 if ac_fn_c_try_link
"$LINENO"; then :
13023 ac_cv_lib_wldap32_ldap_bind
=yes
13025 ac_cv_lib_wldap32_ldap_bind
=no
13027 rm -f core conftest.err conftest.
$ac_objext \
13028 conftest
$ac_exeext conftest.
$ac_ext
13029 LIBS
=$ac_check_lib_save_LIBS
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
13032 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
13033 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
13034 cat >>confdefs.h
<<_ACEOF
13035 #define HAVE_LIBWLDAP32 1
13038 LIBS
="-lwldap32 $LIBS"
13041 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
13044 LDAP_LIBS_FE
="-lwldap32"
13045 LDAP_LIBS_BE
="-lwldap32"
13052 # for contrib/sepgsql
13053 if test "$with_selinux" = yes; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
13055 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
13056 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
13057 $as_echo_n "(cached) " >&6
13059 ac_check_lib_save_LIBS
=$LIBS
13060 LIBS
="-lselinux $LIBS"
13061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13064 /* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13070 char security_compute_create_name ();
13074 return security_compute_create_name ();
13079 if ac_fn_c_try_link
"$LINENO"; then :
13080 ac_cv_lib_selinux_security_compute_create_name
=yes
13082 ac_cv_lib_selinux_security_compute_create_name
=no
13084 rm -f core conftest.err conftest.
$ac_objext \
13085 conftest
$ac_exeext conftest.
$ac_ext
13086 LIBS
=$ac_check_lib_save_LIBS
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
13089 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
13090 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
13091 cat >>confdefs.h
<<_ACEOF
13092 #define HAVE_LIBSELINUX 1
13095 LIBS
="-lselinux $LIBS"
13098 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
13103 # for contrib/uuid-ossp
13104 if test "$with_uuid" = bsd
; then
13105 # On BSD, the UUID functions are in libc
13106 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
13107 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
13110 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
13113 elif test "$with_uuid" = e2fs
; then
13114 # On macOS, the UUID functions are in libc
13115 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13116 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13120 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13121 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13122 $as_echo_n "(cached) " >&6
13124 ac_check_lib_save_LIBS
=$LIBS
13125 LIBS
="-luuid $LIBS"
13126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13129 /* Override any GCC internal prototype to avoid an error.
13130 Use char because int might match the return type of a GCC
13131 builtin and then its argument prototype would still apply. */
13135 char uuid_generate ();
13139 return uuid_generate ();
13144 if ac_fn_c_try_link
"$LINENO"; then :
13145 ac_cv_lib_uuid_uuid_generate
=yes
13147 ac_cv_lib_uuid_uuid_generate
=no
13149 rm -f core conftest.err conftest.
$ac_objext \
13150 conftest
$ac_exeext conftest.
$ac_ext
13151 LIBS
=$ac_check_lib_save_LIBS
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13154 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13155 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13158 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13163 elif test "$with_uuid" = ossp
; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13165 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13166 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13167 $as_echo_n "(cached) " >&6
13169 ac_check_lib_save_LIBS
=$LIBS
13170 LIBS
="-lossp-uuid $LIBS"
13171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13180 char uuid_export ();
13184 return uuid_export ();
13189 if ac_fn_c_try_link
"$LINENO"; then :
13190 ac_cv_lib_ossp_uuid_uuid_export
=yes
13192 ac_cv_lib_ossp_uuid_uuid_export
=no
13194 rm -f core conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13196 LIBS
=$ac_check_lib_save_LIBS
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13199 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13200 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13201 UUID_LIBS
="-lossp-uuid"
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13204 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13205 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13206 $as_echo_n "(cached) " >&6
13208 ac_check_lib_save_LIBS
=$LIBS
13209 LIBS
="-luuid $LIBS"
13210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13219 char uuid_export ();
13223 return uuid_export ();
13228 if ac_fn_c_try_link
"$LINENO"; then :
13229 ac_cv_lib_uuid_uuid_export
=yes
13231 ac_cv_lib_uuid_uuid_export
=no
13233 rm -f core conftest.err conftest.
$ac_objext \
13234 conftest
$ac_exeext conftest.
$ac_ext
13235 LIBS
=$ac_check_lib_save_LIBS
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13238 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13239 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13242 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13256 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13257 if ${ac_cv_header_stdbool_h+:} false
; then :
13258 $as_echo_n "(cached) " >&6
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 #include <stdbool.h>
13265 "error: bool is not defined"
13268 "error: false is not defined"
13271 "error: false is not 0"
13274 "error: true is not defined"
13277 "error: true is not 1"
13279 #ifndef __bool_true_false_are_defined
13280 "error: __bool_true_false_are_defined is not defined"
13283 struct s { _Bool s: 1; _Bool t; } s;
13285 char a[true == 1 ? 1 : -1];
13286 char b[false == 0 ? 1 : -1];
13287 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13288 char d[(bool) 0.5 == true ? 1 : -1];
13289 /* See body of main program for 'e'. */
13290 char f[(_Bool) 0.0 == false ? 1 : -1];
13292 char h[sizeof (_Bool)];
13293 char i[sizeof s.t];
13294 enum { j = false, k = true, l = false * true, m = true * 256 };
13295 /* The following fails for
13296 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13298 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13299 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13300 /* Catch a bug in an HP-UX C compiler. See
13301 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13302 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13314 /* Refer to every declared value, to avoid compiler optimizations. */
13315 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13316 + !m + !n + !o + !p + !q + !pq);
13322 if ac_fn_c_try_compile
"$LINENO"; then :
13323 ac_cv_header_stdbool_h
=yes
13325 ac_cv_header_stdbool_h
=no
13327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13330 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13331 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13332 if test "x$ac_cv_type__Bool" = xyes
; then :
13334 cat >>confdefs.h
<<_ACEOF
13335 #define HAVE__BOOL 1
13342 if test $ac_cv_header_stdbool_h = yes; then
13344 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13349 for ac_header
in atomic.h copyfile.h
crypt.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys
/epoll.h sys
/ipc.h sys
/personality.h sys
/prctl.h sys
/procctl.h sys
/pstat.h sys
/resource.h sys
/select.h sys
/sem.h sys
/shm.h sys
/sockio.h sys
/tas.h sys
/un.h termios.h ucred.h utime.h wchar.h wctype.h
13351 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13352 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13353 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13354 cat >>confdefs.h
<<_ACEOF
13355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13363 # On BSD, test for net/if.h will fail unless sys/socket.h
13364 # is included first.
13365 for ac_header
in net
/if.h
13367 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
13368 #include <sys/socket.h>
13371 if test "x$ac_cv_header_net_if_h" = xyes
; then :
13372 cat >>confdefs.h
<<_ACEOF
13373 #define HAVE_NET_IF_H 1
13381 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
13382 # is included first.
13383 for ac_header
in sys
/ucred.h
13385 ac_fn_c_check_header_compile
"$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13386 #include <sys/param.h>
13389 if test "x$ac_cv_header_sys_ucred_h" = xyes
; then :
13390 cat >>confdefs.h
<<_ACEOF
13391 #define HAVE_SYS_UCRED_H 1
13399 # At least on IRIX, test for netinet/tcp.h will fail unless
13400 # netinet/in.h is included first.
13401 for ac_header
in netinet
/tcp.h
13403 ac_fn_c_check_header_compile
"$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13404 #include <netinet/in.h>
13407 if test "x$ac_cv_header_netinet_tcp_h" = xyes
; then :
13408 cat >>confdefs.h
<<_ACEOF
13409 #define HAVE_NETINET_TCP_H 1
13417 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13418 for ac_header
in readline
/readline.h
13420 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13421 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13422 cat >>confdefs.h
<<_ACEOF
13423 #define HAVE_READLINE_READLINE_H 1
13427 for ac_header
in readline.h
13429 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13430 if test "x$ac_cv_header_readline_h" = xyes
; then :
13431 cat >>confdefs.h
<<_ACEOF
13432 #define HAVE_READLINE_H 1
13436 as_fn_error $?
"readline header not found
13437 If you have readline already installed, see config.log for details on the
13438 failure. It is possible the compiler isn't looking in the proper directory.
13439 Use --without-readline to disable readline support." "$LINENO" 5
13448 for ac_header
in readline
/history.h
13450 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13451 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13452 cat >>confdefs.h
<<_ACEOF
13453 #define HAVE_READLINE_HISTORY_H 1
13457 for ac_header
in history.h
13459 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13460 if test "x$ac_cv_header_history_h" = xyes
; then :
13461 cat >>confdefs.h
<<_ACEOF
13462 #define HAVE_HISTORY_H 1
13466 as_fn_error $?
"history header not found
13467 If you have readline already installed, see config.log for details on the
13468 failure. It is possible the compiler isn't looking in the proper directory.
13469 Use --without-readline to disable readline support." "$LINENO" 5
13480 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13481 # Some installations of libedit usurp /usr/include/readline/, which seems
13482 # bad practice, since in combined installations readline will have its headers
13483 # there. We might have to resort to AC_EGREP checks to make sure we found
13484 # the proper header...
13485 for ac_header
in editline
/readline.h
13487 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13488 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13489 cat >>confdefs.h
<<_ACEOF
13490 #define HAVE_EDITLINE_READLINE_H 1
13494 for ac_header
in readline.h
13496 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13497 if test "x$ac_cv_header_readline_h" = xyes
; then :
13498 cat >>confdefs.h
<<_ACEOF
13499 #define HAVE_READLINE_H 1
13503 for ac_header
in readline
/readline.h
13505 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13506 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13507 cat >>confdefs.h
<<_ACEOF
13508 #define HAVE_READLINE_READLINE_H 1
13512 as_fn_error $?
"readline header not found
13513 If you have libedit already installed, see config.log for details on the
13514 failure. It is possible the compiler isn't looking in the proper directory.
13515 Use --without-readline to disable libedit support." "$LINENO" 5
13528 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13529 # not be there at all. Hence, don't complain if not found. We must check
13530 # though, since in yet other versions it is an independent header.
13531 for ac_header
in editline
/history.h
13533 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13534 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13535 cat >>confdefs.h
<<_ACEOF
13536 #define HAVE_EDITLINE_HISTORY_H 1
13540 for ac_header
in history.h
13542 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13543 if test "x$ac_cv_header_history_h" = xyes
; then :
13544 cat >>confdefs.h
<<_ACEOF
13545 #define HAVE_HISTORY_H 1
13549 for ac_header
in readline
/history.h
13551 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13552 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13553 cat >>confdefs.h
<<_ACEOF
13554 #define HAVE_READLINE_HISTORY_H 1
13571 if test "$with_zlib" = yes; then
13572 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13573 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13576 as_fn_error $?
"zlib header not found
13577 If you have zlib already installed, see config.log for details on the
13578 failure. It is possible the compiler isn't looking in the proper directory.
13579 Use --without-zlib to disable zlib support." "$LINENO" 5
13585 if test "$with_gssapi" = yes ; then
13586 for ac_header
in gssapi
/gssapi.h
13588 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13589 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13590 cat >>confdefs.h
<<_ACEOF
13591 #define HAVE_GSSAPI_GSSAPI_H 1
13595 for ac_header
in gssapi.h
13597 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13598 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13599 cat >>confdefs.h
<<_ACEOF
13600 #define HAVE_GSSAPI_H 1
13604 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13615 if test "$with_openssl" = yes ; then
13616 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13617 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
13620 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13624 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13625 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
13628 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13634 if test "$with_pam" = yes ; then
13635 for ac_header
in security
/pam_appl.h
13637 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13638 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
13639 cat >>confdefs.h
<<_ACEOF
13640 #define HAVE_SECURITY_PAM_APPL_H 1
13644 for ac_header
in pam
/pam_appl.h
13646 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13647 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13648 cat >>confdefs.h
<<_ACEOF
13649 #define HAVE_PAM_PAM_APPL_H 1
13653 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13664 if test "$with_bsd_auth" = yes ; then
13665 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13669 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13675 if test "$with_systemd" = yes ; then
13676 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13677 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13680 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13686 if test "$with_libxml" = yes ; then
13687 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13688 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13691 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13697 if test "$with_libxslt" = yes ; then
13698 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13699 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13702 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13708 if test "$with_ldap" = yes ; then
13709 if test "$PORTNAME" != "win32"; then
13710 for ac_header
in ldap.h
13712 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13713 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13714 cat >>confdefs.h
<<_ACEOF
13715 #define HAVE_LDAP_H 1
13719 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13725 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13726 if ${pgac_cv_ldap_safe+:} false
; then :
13727 $as_echo_n "(cached) " >&6
13729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13732 #if !defined(LDAP_VENDOR_VERSION) || \
13733 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13734 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13745 if ac_fn_c_try_compile
"$LINENO"; then :
13746 pgac_cv_ldap_safe
=yes
13748 pgac_cv_ldap_safe
=no
13750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13753 $as_echo "$pgac_cv_ldap_safe" >&6; }
13755 if test "$pgac_cv_ldap_safe" != yes; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13757 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13758 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13759 *** also uses LDAP will crash on exit." >&5
13760 $as_echo "$as_me: WARNING:
13761 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13762 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13763 *** also uses LDAP will crash on exit." >&2;}
13766 for ac_header
in winldap.h
13768 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13769 #include <windows.h>
13772 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13773 cat >>confdefs.h
<<_ACEOF
13774 #define HAVE_WINLDAP_H 1
13778 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13786 if test "$with_bonjour" = yes ; then
13787 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13788 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13791 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13797 # for contrib/uuid-ossp
13798 if test "$with_uuid" = bsd
; then
13799 for ac_header
in uuid.h
13801 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13803 cat >>confdefs.h
<<_ACEOF
13804 #define HAVE_UUID_H 1
13806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13815 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13820 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13825 elif test "$with_uuid" = e2fs
; then
13826 for ac_header
in uuid
/uuid.h
13828 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13829 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13830 cat >>confdefs.h
<<_ACEOF
13831 #define HAVE_UUID_UUID_H 1
13833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #include <uuid/uuid.h>
13838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13839 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13842 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13847 for ac_header
in uuid.h
13849 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13851 cat >>confdefs.h
<<_ACEOF
13852 #define HAVE_UUID_H 1
13854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13860 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13863 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13868 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13877 elif test "$with_uuid" = ossp
; then
13878 for ac_header
in ossp
/uuid.h
13880 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13881 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
13882 cat >>confdefs.h
<<_ACEOF
13883 #define HAVE_OSSP_UUID_H 1
13885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887 #include <ossp/uuid.h>
13890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13891 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13894 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
13899 for ac_header
in uuid.h
13901 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13902 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13903 cat >>confdefs.h
<<_ACEOF
13904 #define HAVE_UUID_H 1
13906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13915 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
13920 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
13931 if test "$PORTNAME" = "win32" ; then
13932 for ac_header
in crtdefs.h
13934 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
13935 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
13936 cat >>confdefs.h
<<_ACEOF
13937 #define HAVE_CRTDEFS_H 1
13947 ## Types, structures, compiler characteristics
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13951 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13952 if ${ac_cv_c_bigendian+:} false
; then :
13953 $as_echo_n "(cached) " >&6
13955 ac_cv_c_bigendian
=unknown
13956 # See if we're dealing with a universal compiler.
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #ifndef __APPLE_CC__
13960 not a universal capable compiler
13965 if ac_fn_c_try_compile
"$LINENO"; then :
13967 # Check for potential -arch flags. It is not universal unless
13968 # there are at least two -arch flags with different values.
13971 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13972 if test -n "$ac_prev"; then
13974 i?
86 | x86_64 | ppc | ppc64
)
13975 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13978 ac_cv_c_bigendian
=universal
13984 elif test "x$ac_word" = "x-arch"; then
13989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13990 if test $ac_cv_c_bigendian = unknown
; then
13991 # See if sys/param.h defines the BYTE_ORDER macro.
13992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994 #include <sys/types.h>
13995 #include <sys/param.h>
14000 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14001 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14003 bogus endian macros
14010 if ac_fn_c_try_compile
"$LINENO"; then :
14011 # It does; now see whether it defined to BIG_ENDIAN or not.
14012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14014 #include <sys/types.h>
14015 #include <sys/param.h>
14020 #if BYTE_ORDER != BIG_ENDIAN
14028 if ac_fn_c_try_compile
"$LINENO"; then :
14029 ac_cv_c_bigendian
=yes
14031 ac_cv_c_bigendian
=no
14033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14037 if test $ac_cv_c_bigendian = unknown
; then
14038 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 #include <limits.h>
14046 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14047 bogus endian macros
14054 if ac_fn_c_try_compile
"$LINENO"; then :
14055 # It does; now see whether it defined to _BIG_ENDIAN or not.
14056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058 #include <limits.h>
14063 #ifndef _BIG_ENDIAN
14071 if ac_fn_c_try_compile
"$LINENO"; then :
14072 ac_cv_c_bigendian
=yes
14074 ac_cv_c_bigendian
=no
14076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14080 if test $ac_cv_c_bigendian = unknown
; then
14081 # Compile a test program.
14082 if test "$cross_compiling" = yes; then :
14083 # Try to guess by grepping values from an object file.
14084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 short int ascii_mm[] =
14087 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14088 short int ascii_ii[] =
14089 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14090 int use_ascii (int i) {
14091 return ascii_mm[i] + ascii_ii[i];
14093 short int ebcdic_ii[] =
14094 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14095 short int ebcdic_mm[] =
14096 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14097 int use_ebcdic (int i) {
14098 return ebcdic_mm[i] + ebcdic_ii[i];
14105 return use_ascii (foo) == use_ebcdic (foo);
14110 if ac_fn_c_try_compile
"$LINENO"; then :
14111 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14112 ac_cv_c_bigendian
=yes
14114 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14115 if test "$ac_cv_c_bigendian" = unknown
; then
14116 ac_cv_c_bigendian
=no
14118 # finding both strings is unlikely to happen, but who knows?
14119 ac_cv_c_bigendian
=unknown
14123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 $ac_includes_default
14132 /* Are we little or big endian? From Harbison&Steele. */
14136 char c[sizeof (long int)];
14139 return u.c[sizeof (long int) - 1] == 1;
14145 if ac_fn_c_try_run
"$LINENO"; then :
14146 ac_cv_c_bigendian
=no
14148 ac_cv_c_bigendian
=yes
14150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14157 $as_echo "$ac_cv_c_bigendian" >&6; }
14158 case $ac_cv_c_bigendian in #(
14160 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14166 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14170 as_fn_error $?
"unknown endianness
14171 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14175 $as_echo_n "checking for inline... " >&6; }
14176 if ${ac_cv_c_inline+:} false
; then :
14177 $as_echo_n "(cached) " >&6
14180 for ac_kw
in inline __inline__ __inline
; do
14181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #ifndef __cplusplus
14185 static $ac_kw foo_t static_foo () {return 0; }
14186 $ac_kw foo_t foo () {return 0; }
14190 if ac_fn_c_try_compile
"$LINENO"; then :
14191 ac_cv_c_inline
=$ac_kw
14193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14194 test "$ac_cv_c_inline" != no
&& break
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14199 $as_echo "$ac_cv_c_inline" >&6; }
14201 case $ac_cv_c_inline in
14204 case $ac_cv_c_inline in
14206 *) ac_val
=$ac_cv_c_inline;;
14208 cat >>confdefs.h
<<_ACEOF
14209 #ifndef __cplusplus
14210 #define inline $ac_val
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14217 $as_echo_n "checking for printf format archetype... " >&6; }
14218 if ${pgac_cv_printf_archetype+:} false
; then :
14219 $as_echo_n "(cached) " >&6
14221 pgac_cv_printf_archetype
=gnu_printf
14222 ac_save_c_werror_flag
=$ac_c_werror_flag
14223 ac_c_werror_flag
=yes
14224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 extern void pgac_write(int ignore, const char *fmt,...)
14227 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14231 pgac_write(0, "error %s: %m", "foo");
14236 if ac_fn_c_try_compile
"$LINENO"; then :
14237 ac_archetype_ok
=yes
14241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14242 ac_c_werror_flag
=$ac_save_c_werror_flag
14244 if [ "$ac_archetype_ok" = no
]; then
14245 pgac_cv_printf_archetype
=__syslog__
14246 ac_save_c_werror_flag
=$ac_c_werror_flag
14247 ac_c_werror_flag
=yes
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 extern void pgac_write(int ignore, const char *fmt,...)
14251 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14255 pgac_write(0, "error %s: %m", "foo");
14260 if ac_fn_c_try_compile
"$LINENO"; then :
14261 ac_archetype_ok
=yes
14265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14266 ac_c_werror_flag
=$ac_save_c_werror_flag
14268 if [ "$ac_archetype_ok" = no
]; then
14269 pgac_cv_printf_archetype
=printf
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14274 $as_echo "$pgac_cv_printf_archetype" >&6; }
14276 cat >>confdefs.h
<<_ACEOF
14277 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14283 $as_echo_n "checking for flexible array members... " >&6; }
14284 if ${ac_cv_c_flexmember+:} false
; then :
14285 $as_echo_n "(cached) " >&6
14287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #include <stdlib.h>
14291 #include <stddef.h>
14292 struct s { int n; double d[]; };
14296 int m = getchar ();
14297 struct s *p = malloc (offsetof (struct s, d)
14298 + m * sizeof (double));
14300 return p->d != (double *) NULL;
14305 if ac_fn_c_try_compile
"$LINENO"; then :
14306 ac_cv_c_flexmember
=yes
14308 ac_cv_c_flexmember
=no
14310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14313 $as_echo "$ac_cv_c_flexmember" >&6; }
14314 if test $ac_cv_c_flexmember = yes; then
14316 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14319 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
14324 $as_echo_n "checking for signed types... " >&6; }
14325 if ${pgac_cv_c_signed+:} false
; then :
14326 $as_echo_n "(cached) " >&6
14328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14334 signed char c; signed short s; signed int i;
14339 if ac_fn_c_try_compile
"$LINENO"; then :
14340 pgac_cv_c_signed
=yes
14342 pgac_cv_c_signed
=no
14344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
14347 $as_echo "$pgac_cv_c_signed" >&6; }
14348 if test x
"$pgac_cv_c_signed" = xno
; then
14350 $as_echo "#define signed /**/" >>confdefs.h
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
14354 $as_echo_n "checking for __func__... " >&6; }
14355 if ${pgac_cv_funcname_func_support+:} false
; then :
14356 $as_echo_n "(cached) " >&6
14358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14364 printf("%s\n", __func__);
14369 if ac_fn_c_try_compile
"$LINENO"; then :
14370 pgac_cv_funcname_func_support
=yes
14372 pgac_cv_funcname_func_support
=no
14374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
14377 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14378 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
14380 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
14384 $as_echo_n "checking for __FUNCTION__... " >&6; }
14385 if ${pgac_cv_funcname_function_support+:} false
; then :
14386 $as_echo_n "(cached) " >&6
14388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14394 printf("%s\n", __FUNCTION__);
14399 if ac_fn_c_try_compile
"$LINENO"; then :
14400 pgac_cv_funcname_function_support
=yes
14402 pgac_cv_funcname_function_support
=no
14404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
14407 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14408 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
14410 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14415 $as_echo_n "checking for _Static_assert... " >&6; }
14416 if ${pgac_cv__static_assert+:} false
; then :
14417 $as_echo_n "(cached) " >&6
14419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14425 ({ _Static_assert(1, "foo"); })
14430 if ac_fn_c_try_link
"$LINENO"; then :
14431 pgac_cv__static_assert
=yes
14433 pgac_cv__static_assert
=no
14435 rm -f core conftest.err conftest.
$ac_objext \
14436 conftest
$ac_exeext conftest.
$ac_ext
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14439 $as_echo "$pgac_cv__static_assert" >&6; }
14440 if test x
"$pgac_cv__static_assert" = xyes
; then
14442 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14446 $as_echo_n "checking for typeof... " >&6; }
14447 if ${pgac_cv_c_typeof+:} false
; then :
14448 $as_echo_n "(cached) " >&6
14450 pgac_cv_c_typeof
=no
14451 for pgac_kw
in typeof __typeof__ decltype
; do
14452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14466 if ac_fn_c_try_compile
"$LINENO"; then :
14467 pgac_cv_c_typeof
=$pgac_kw
14469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14470 test "$pgac_cv_c_typeof" != no
&& break
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14474 $as_echo "$pgac_cv_c_typeof" >&6; }
14475 if test "$pgac_cv_c_typeof" != no
; then
14477 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14479 if test "$pgac_cv_c_typeof" != typeof
; then
14481 cat >>confdefs.h
<<_ACEOF
14482 #define typeof $pgac_cv_c_typeof
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14488 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14489 if ${pgac_cv__types_compatible+:} false
; then :
14490 $as_echo_n "(cached) " >&6
14492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14498 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14503 if ac_fn_c_try_compile
"$LINENO"; then :
14504 pgac_cv__types_compatible
=yes
14506 pgac_cv__types_compatible
=no
14508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14511 $as_echo "$pgac_cv__types_compatible" >&6; }
14512 if test x
"$pgac_cv__types_compatible" = xyes
; then
14514 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14518 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14519 if ${pgac_cv__builtin_constant_p+:} false
; then :
14520 $as_echo_n "(cached) " >&6
14522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14525 static int y[__builtin_constant_p(x) ? x : 1];
14526 static int z[__builtin_constant_p("string literal") ? 1 : x];
14530 if ac_fn_c_try_compile
"$LINENO"; then :
14531 pgac_cv__builtin_constant_p
=yes
14533 pgac_cv__builtin_constant_p
=no
14535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14538 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14539 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14541 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14545 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14546 if ${pgac_cv__builtin_unreachable+:} false
; then :
14547 $as_echo_n "(cached) " >&6
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14555 __builtin_unreachable();
14560 if ac_fn_c_try_link
"$LINENO"; then :
14561 pgac_cv__builtin_unreachable
=yes
14563 pgac_cv__builtin_unreachable
=no
14565 rm -f core conftest.err conftest.
$ac_objext \
14566 conftest
$ac_exeext conftest.
$ac_ext
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14569 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14570 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14572 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14576 $as_echo_n "checking for computed goto support... " >&6; }
14577 if ${pgac_cv_computed_goto+:} false
; then :
14578 $as_echo_n "(cached) " >&6
14580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14586 void *labeladdrs[] = {&&my_label};
14587 goto *labeladdrs[0];
14595 if ac_fn_c_try_compile
"$LINENO"; then :
14596 pgac_cv_computed_goto
=yes
14598 pgac_cv_computed_goto
=no
14600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14603 $as_echo "$pgac_cv_computed_goto" >&6; }
14604 if test x
"$pgac_cv_computed_goto" = xyes
; then
14606 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14610 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14611 if ${ac_cv_struct_tm+:} false
; then :
14612 $as_echo_n "(cached) " >&6
14614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 #include <sys/types.h>
14623 int *p = &tm.tm_sec;
14629 if ac_fn_c_try_compile
"$LINENO"; then :
14630 ac_cv_struct_tm
=time.h
14632 ac_cv_struct_tm
=sys
/time.h
14634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14637 $as_echo "$ac_cv_struct_tm" >&6; }
14638 if test $ac_cv_struct_tm = sys
/time.h
; then
14640 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14644 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14645 #include <$ac_cv_struct_tm>
14648 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14650 cat >>confdefs.h
<<_ACEOF
14651 #define HAVE_STRUCT_TM_TM_ZONE 1
14657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14659 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14663 $as_echo_n "checking for tzname... " >&6; }
14664 if ${ac_cv_var_tzname+:} false
; then :
14665 $as_echo_n "(cached) " >&6
14667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 #include <stdlib.h>
14671 #ifndef tzname /* For SGI. */
14672 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14683 if ac_fn_c_try_link
"$LINENO"; then :
14684 ac_cv_var_tzname
=yes
14686 ac_cv_var_tzname
=no
14688 rm -f core conftest.err conftest.
$ac_objext \
14689 conftest
$ac_exeext conftest.
$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14692 $as_echo "$ac_cv_var_tzname" >&6; }
14693 if test $ac_cv_var_tzname = yes; then
14695 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14699 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14700 #ifdef HAVE_SYS_IPC_H
14701 #include <sys/ipc.h>
14703 #ifdef HAVE_SYS_SEM_H
14704 #include <sys/sem.h>
14707 if test "x$ac_cv_type_union_semun" = xyes
; then :
14709 cat >>confdefs.h
<<_ACEOF
14710 #define HAVE_UNION_SEMUN 1
14716 ac_fn_c_check_type
"$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
14717 #ifdef HAVE_SYS_UN_H
14718 #include <sys/un.h>
14722 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
; then :
14724 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
14728 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14729 #include <sys/socket.h>
14732 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
14734 cat >>confdefs.h
<<_ACEOF
14735 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14741 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14742 #include <sys/socket.h>
14745 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
14747 cat >>confdefs.h
<<_ACEOF
14748 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14753 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14754 #include <sys/socket.h>
14757 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
14759 cat >>confdefs.h
<<_ACEOF
14760 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14765 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14766 #include <sys/socket.h>
14769 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
; then :
14771 cat >>confdefs.h
<<_ACEOF
14772 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14777 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14778 #include <sys/socket.h>
14781 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes
; then :
14783 cat >>confdefs.h
<<_ACEOF
14784 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14789 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14790 #include <sys/socket.h>
14793 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14795 cat >>confdefs.h
<<_ACEOF
14796 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14802 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
14803 #include <sys/socket.h>
14807 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
14809 cat >>confdefs.h
<<_ACEOF
14810 #define HAVE_STRUCT_ADDRINFO 1
14817 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14818 if test "x$ac_cv_type_intptr_t" = xyes
; then :
14820 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14823 for ac_type
in 'int' 'long int' 'long long int'; do
14824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826 $ac_includes_default
14830 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14831 test_array [0] = 0;
14832 return test_array [0];
14838 if ac_fn_c_try_compile
"$LINENO"; then :
14840 cat >>confdefs.h
<<_ACEOF
14841 #define intptr_t $ac_type
14846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14847 test -z "$ac_type" && break
14853 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14854 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
14856 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14859 for ac_type
in 'unsigned int' 'unsigned long int' \
14860 'unsigned long long int'; do
14861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 $ac_includes_default
14867 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14868 test_array [0] = 0;
14869 return test_array [0];
14875 if ac_fn_c_try_compile
"$LINENO"; then :
14877 cat >>confdefs.h
<<_ACEOF
14878 #define uintptr_t $ac_type
14883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14884 test -z "$ac_type" && break
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14891 $as_echo_n "checking for unsigned long long int... " >&6; }
14892 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14893 $as_echo_n "(cached) " >&6
14895 ac_cv_type_unsigned_long_long_int
=yes
14896 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14900 /* For now, do not test the preprocessor; as of 2007 there are too many
14901 implementations with broken preprocessors. Perhaps this can
14902 be revisited in 2012. In the meantime, code should not expect
14903 #if to work with literals wider than 32 bits. */
14904 /* Test literals. */
14905 long long int ll = 9223372036854775807ll;
14906 long long int nll = -9223372036854775807LL;
14907 unsigned long long int ull = 18446744073709551615ULL;
14908 /* Test constant expressions. */
14909 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14911 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14917 /* Test availability of runtime routines for shift and division. */
14918 long long int llmax = 9223372036854775807ll;
14919 unsigned long long int ullmax = 18446744073709551615ull;
14920 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14921 | (llmax / ll) | (llmax % ll)
14922 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14923 | (ullmax / ull) | (ullmax % ull));
14929 if ac_fn_c_try_link
"$LINENO"; then :
14932 ac_cv_type_unsigned_long_long_int
=no
14934 rm -f core conftest.err conftest.
$ac_objext \
14935 conftest
$ac_exeext conftest.
$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14939 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14940 if test $ac_cv_type_unsigned_long_long_int = yes; then
14942 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14949 $as_echo_n "checking for long long int... " >&6; }
14950 if ${ac_cv_type_long_long_int+:} false
; then :
14951 $as_echo_n "(cached) " >&6
14953 ac_cv_type_long_long_int
=yes
14954 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14955 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14956 if test $ac_cv_type_long_long_int = yes; then
14957 if test "$cross_compiling" = yes; then :
14960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 #include <limits.h>
14965 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14966 # define LLONG_MAX (HALF - 1 + HALF)
14971 long long int n = 1;
14975 long long int m = n << i;
14978 if (LLONG_MAX / 2 < m)
14986 if ac_fn_c_try_run
"$LINENO"; then :
14989 ac_cv_type_long_long_int
=no
14991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14999 $as_echo "$ac_cv_type_long_long_int" >&6; }
15000 if test $ac_cv_type_long_long_int = yes; then
15002 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
15008 $as_echo_n "checking for locale_t... " >&6; }
15009 if ${pgac_cv_type_locale_t+:} false
; then :
15010 $as_echo_n "(cached) " >&6
15012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 #include <locale.h>
15024 if ac_fn_c_try_compile
"$LINENO"; then :
15025 pgac_cv_type_locale_t
=yes
15027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #include <xlocale.h>
15039 if ac_fn_c_try_compile
"$LINENO"; then :
15040 pgac_cv_type_locale_t
='yes (in xlocale.h)'
15042 pgac_cv_type_locale_t
=no
15044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
15049 $as_echo "$pgac_cv_type_locale_t" >&6; }
15050 if test "$pgac_cv_type_locale_t" != no
; then
15052 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
15055 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
15057 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
15061 # MSVC doesn't cope well with defining restrict to __restrict, the
15062 # spelling it understands, because it conflicts with
15063 # __declspec(restrict). Therefore we define pg_restrict to the
15064 # appropriate definition, which presumably won't conflict.
15066 # Allow platforms with buggy compilers to force restrict to not be
15067 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15070 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15071 if ${ac_cv_c_restrict+:} false
; then :
15072 $as_echo_n "(cached) " >&6
15074 ac_cv_c_restrict
=no
15075 # The order here caters to the fact that C++ does not require restrict.
15076 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 typedef int * int_ptr;
15080 int foo (int_ptr $ac_kw ip) {
15087 int * $ac_kw t = s;
15094 if ac_fn_c_try_compile
"$LINENO"; then :
15095 ac_cv_c_restrict
=$ac_kw
15097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15098 test "$ac_cv_c_restrict" != no
&& break
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15103 $as_echo "$ac_cv_c_restrict" >&6; }
15105 case $ac_cv_c_restrict in
15107 no
) $as_echo "#define restrict /**/" >>confdefs.h
15109 *) cat >>confdefs.h
<<_ACEOF
15110 #define restrict $ac_cv_c_restrict
15115 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
15118 pg_restrict
="$ac_cv_c_restrict"
15121 cat >>confdefs.h
<<_ACEOF
15122 #define pg_restrict $pg_restrict
15126 ac_fn_c_check_type
"$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
15127 #include <sys/param.h>
15128 #ifdef HAVE_SYS_UCRED_H
15129 #include <sys/ucred.h>
15132 if test "x$ac_cv_type_struct_cmsgcred" = xyes
; then :
15134 cat >>confdefs.h
<<_ACEOF
15135 #define HAVE_STRUCT_CMSGCRED 1
15142 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
15143 #include <getopt.h>
15146 if test "x$ac_cv_type_struct_option" = xyes
; then :
15148 cat >>confdefs.h
<<_ACEOF
15149 #define HAVE_STRUCT_OPTION 1
15156 if test "$with_zlib" = yes; then
15157 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15158 # did not). While we could work around the lack of z_streamp, it
15159 # seems unwise to encourage people to use such old zlib versions...
15160 ac_fn_c_check_type
"$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
15162 if test "x$ac_cv_type_z_streamp" = xyes
; then :
15165 as_fn_error $?
"zlib version is too old
15166 Use --without-zlib to disable zlib support." "$LINENO" 5
15173 # On x86_64, check if we can compile a popcntq instruction
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
15175 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
15176 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
15177 $as_echo_n "(cached) " >&6
15179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15185 long long x = 1; long long r;
15186 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
15191 if ac_fn_c_try_compile
"$LINENO"; then :
15192 pgac_cv_have_x86_64_popcntq
=yes
15194 pgac_cv_have_x86_64_popcntq
=no
15196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
15199 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
15200 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
15202 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
15207 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
15209 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
15210 if ${pgac_cv_have_ppc_mutex_hint+:} false
; then :
15211 $as_echo_n "(cached) " >&6
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15219 int a = 0; int *p = &a; int r;
15220 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
15225 if ac_fn_c_try_compile
"$LINENO"; then :
15226 pgac_cv_have_ppc_mutex_hint
=yes
15228 pgac_cv_have_ppc_mutex_hint
=no
15230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
15233 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
15234 if test x
"$pgac_cv_have_ppc_mutex_hint" = xyes
; then
15236 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
15242 # Check largefile support. You might think this is a system service not a
15243 # compiler characteristic, but you'd be wrong. We must check this before
15244 # probing existence of related functions such as fseeko, since the largefile
15245 # defines can affect what is generated for that.
15246 if test "$PORTNAME" != "win32"; then
15247 # Check whether --enable-largefile was given.
15248 if test "${enable_largefile+set}" = set; then :
15249 enableval
=$enable_largefile;
15252 if test "$enable_largefile" != no
; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15255 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15256 if ${ac_cv_sys_largefile_CC+:} false
; then :
15257 $as_echo_n "(cached) " >&6
15259 ac_cv_sys_largefile_CC
=no
15260 if test "$GCC" != yes; then
15263 # IRIX 6.2 and later do not support large files by default,
15264 # so use the C compiler's -n32 option if that helps.
15265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #include <sys/types.h>
15268 /* Check that off_t can represent 2**63 - 1 correctly.
15269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15270 since some C++ compilers masquerading as C compilers
15271 incorrectly reject 9223372036854775807. */
15272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15274 && LARGE_OFF_T % 2147483647 == 1)
15284 if ac_fn_c_try_compile
"$LINENO"; then :
15287 rm -f core conftest.err conftest.
$ac_objext
15289 if ac_fn_c_try_compile
"$LINENO"; then :
15290 ac_cv_sys_largefile_CC
=' -n32'; break
15292 rm -f core conftest.err conftest.
$ac_objext
15296 rm -f conftest.
$ac_ext
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15300 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15301 if test "$ac_cv_sys_largefile_CC" != no
; then
15302 CC
=$CC$ac_cv_sys_largefile_CC
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15306 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15307 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15308 $as_echo_n "(cached) " >&6
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #include <sys/types.h>
15314 /* Check that off_t can represent 2**63 - 1 correctly.
15315 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15316 since some C++ compilers masquerading as C compilers
15317 incorrectly reject 9223372036854775807. */
15318 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15319 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15320 && LARGE_OFF_T % 2147483647 == 1)
15330 if ac_fn_c_try_compile
"$LINENO"; then :
15331 ac_cv_sys_file_offset_bits
=no
; break
15333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15336 #define _FILE_OFFSET_BITS 64
15337 #include <sys/types.h>
15338 /* Check that off_t can represent 2**63 - 1 correctly.
15339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15340 since some C++ compilers masquerading as C compilers
15341 incorrectly reject 9223372036854775807. */
15342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15344 && LARGE_OFF_T % 2147483647 == 1)
15354 if ac_fn_c_try_compile
"$LINENO"; then :
15355 ac_cv_sys_file_offset_bits
=64; break
15357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15358 ac_cv_sys_file_offset_bits
=unknown
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15363 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15364 case $ac_cv_sys_file_offset_bits in #(
15367 cat >>confdefs.h
<<_ACEOF
15368 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15373 if test $ac_cv_sys_file_offset_bits = unknown
; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15375 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15376 if ${ac_cv_sys_large_files+:} false
; then :
15377 $as_echo_n "(cached) " >&6
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #include <sys/types.h>
15383 /* Check that off_t can represent 2**63 - 1 correctly.
15384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15385 since some C++ compilers masquerading as C compilers
15386 incorrectly reject 9223372036854775807. */
15387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15389 && LARGE_OFF_T % 2147483647 == 1)
15399 if ac_fn_c_try_compile
"$LINENO"; then :
15400 ac_cv_sys_large_files
=no
; break
15402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 #define _LARGE_FILES 1
15406 #include <sys/types.h>
15407 /* Check that off_t can represent 2**63 - 1 correctly.
15408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15409 since some C++ compilers masquerading as C compilers
15410 incorrectly reject 9223372036854775807. */
15411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15413 && LARGE_OFF_T % 2147483647 == 1)
15423 if ac_fn_c_try_compile
"$LINENO"; then :
15424 ac_cv_sys_large_files
=1; break
15426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15427 ac_cv_sys_large_files
=unknown
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15432 $as_echo "$ac_cv_sys_large_files" >&6; }
15433 case $ac_cv_sys_large_files in #(
15436 cat >>confdefs.h
<<_ACEOF
15437 #define _LARGE_FILES $ac_cv_sys_large_files
15450 # The cast to long int works around a bug in the HP C Compiler
15451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15453 # This bug is HP SR number 8606223364.
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15455 $as_echo_n "checking size of off_t... " >&6; }
15456 if ${ac_cv_sizeof_off_t+:} false
; then :
15457 $as_echo_n "(cached) " >&6
15459 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15462 if test "$ac_cv_type_off_t" = yes; then
15463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15465 as_fn_error
77 "cannot compute sizeof (off_t)
15466 See \`config.log' for more details" "$LINENO" 5; }
15468 ac_cv_sizeof_off_t
=0
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15474 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15478 cat >>confdefs.h
<<_ACEOF
15479 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15484 # If we don't have largefile support, can't handle segsize >= 2GB.
15485 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
15486 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15489 # The cast to long int works around a bug in the HP C Compiler
15490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15492 # This bug is HP SR number 8606223364.
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15494 $as_echo_n "checking size of bool... " >&6; }
15495 if ${ac_cv_sizeof_bool+:} false
; then :
15496 $as_echo_n "(cached) " >&6
15498 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15499 #include <stdbool.h>
15504 if test "$ac_cv_type_bool" = yes; then
15505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15507 as_fn_error
77 "cannot compute sizeof (bool)
15508 See \`config.log' for more details" "$LINENO" 5; }
15510 ac_cv_sizeof_bool
=0
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15516 $as_echo "$ac_cv_sizeof_bool" >&6; }
15520 cat >>confdefs.h
<<_ACEOF
15521 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15528 ## Functions, global variables
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15532 $as_echo_n "checking for int timezone... " >&6; }
15533 if ${pgac_cv_var_int_timezone+:} false
; then :
15534 $as_echo_n "(cached) " >&6
15536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15544 res = timezone / 60;
15546 res = _timezone / 60;
15552 if ac_fn_c_try_link
"$LINENO"; then :
15553 pgac_cv_var_int_timezone
=yes
15555 pgac_cv_var_int_timezone
=no
15557 rm -f core conftest.err conftest.
$ac_objext \
15558 conftest
$ac_exeext conftest.
$ac_ext
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15561 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15562 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15564 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
15568 $as_echo_n "checking types of arguments for accept()... " >&6; }
15569 if ${ac_cv_func_accept_return+:} false
; then :
15570 $as_echo_n "(cached) " >&6
15572 if ${ac_cv_func_accept_arg1+:} false
; then :
15573 $as_echo_n "(cached) " >&6
15575 if ${ac_cv_func_accept_arg2+:} false
; then :
15576 $as_echo_n "(cached) " >&6
15578 if ${ac_cv_func_accept_arg3+:} false
; then :
15579 $as_echo_n "(cached) " >&6
15581 for ac_cv_func_accept_return
in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do
15582 for ac_cv_func_accept_arg1
in 'int' 'SOCKET' 'unsigned int'; do
15583 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15584 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15587 #include <sys/types.h>
15588 #include <sys/socket.h>
15589 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15591 if ac_fn_c_try_compile
"$LINENO"; then :
15592 ac_not_found
=no
; break 4
15596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15601 if test "$ac_not_found" = yes; then
15602 as_fn_error $?
"could not determine argument types" "$LINENO" 5
15604 if test "$ac_cv_func_accept_arg3" = "void"; then
15605 ac_cv_func_accept_arg3
=int
15615 { $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
15616 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15618 cat >>confdefs.h
<<_ACEOF
15619 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15623 cat >>confdefs.h
<<_ACEOF
15624 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15628 cat >>confdefs.h
<<_ACEOF
15629 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15633 cat >>confdefs.h
<<_ACEOF
15634 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
15639 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
15640 if ${pgac_cv_func_gettimeofday_1arg+:} false
; then :
15641 $as_echo_n "(cached) " >&6
15643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 #include <sys/time.h>
15649 struct timeval *tp;
15650 struct timezone *tzp;
15651 gettimeofday(tp,tzp);
15656 if ac_fn_c_try_compile
"$LINENO"; then :
15657 pgac_cv_func_gettimeofday_1arg
=no
15659 pgac_cv_func_gettimeofday_1arg
=yes
15661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
15664 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
15665 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
15667 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15672 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15673 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15674 $as_echo_n "(cached) " >&6
15676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 #include <stdlib.h>
15679 #include <locale.h>
15690 if ac_fn_c_try_compile
"$LINENO"; then :
15691 pgac_cv_func_wcstombs_l
='yes'
15693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695 #include <stdlib.h>
15696 #include <locale.h>
15697 #include <xlocale.h>
15708 if ac_fn_c_try_compile
"$LINENO"; then :
15709 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15711 pgac_cv_func_wcstombs_l
='no'
15713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15718 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15719 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15721 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15725 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15726 # symbols that that library has no business exposing to the world. Pending
15727 # acquisition of a clue by those developers, ignore libedit (including its
15728 # possible alias of libreadline) while checking for everything else.
15729 LIBS_including_readline
="$LIBS"
15730 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15732 for ac_func
in cbrt clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
15734 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15735 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15736 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15737 cat >>confdefs.h
<<_ACEOF
15738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15745 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15747 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15748 if ${pgac_cv__builtin_bswap16+:} false
; then :
15749 $as_echo_n "(cached) " >&6
15751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15755 call__builtin_bswap16(int x)
15757 return __builtin_bswap16(x);
15767 if ac_fn_c_try_link
"$LINENO"; then :
15768 pgac_cv__builtin_bswap16
=yes
15770 pgac_cv__builtin_bswap16
=no
15772 rm -f core conftest.err conftest.
$ac_objext \
15773 conftest
$ac_exeext conftest.
$ac_ext
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15776 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15777 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15779 cat >>confdefs.h
<<_ACEOF
15780 #define HAVE__BUILTIN_BSWAP16 1
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15785 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15786 if ${pgac_cv__builtin_bswap32+:} false
; then :
15787 $as_echo_n "(cached) " >&6
15789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15793 call__builtin_bswap32(int x)
15795 return __builtin_bswap32(x);
15805 if ac_fn_c_try_link
"$LINENO"; then :
15806 pgac_cv__builtin_bswap32
=yes
15808 pgac_cv__builtin_bswap32
=no
15810 rm -f core conftest.err conftest.
$ac_objext \
15811 conftest
$ac_exeext conftest.
$ac_ext
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15814 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15815 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15817 cat >>confdefs.h
<<_ACEOF
15818 #define HAVE__BUILTIN_BSWAP32 1
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15823 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15824 if ${pgac_cv__builtin_bswap64+:} false
; then :
15825 $as_echo_n "(cached) " >&6
15827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15831 call__builtin_bswap64(long int x)
15833 return __builtin_bswap64(x);
15843 if ac_fn_c_try_link
"$LINENO"; then :
15844 pgac_cv__builtin_bswap64
=yes
15846 pgac_cv__builtin_bswap64
=no
15848 rm -f core conftest.err conftest.
$ac_objext \
15849 conftest
$ac_exeext conftest.
$ac_ext
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15852 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15853 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15855 cat >>confdefs.h
<<_ACEOF
15856 #define HAVE__BUILTIN_BSWAP64 1
15860 # We assume that we needn't test all widths of these explicitly:
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15862 $as_echo_n "checking for __builtin_clz... " >&6; }
15863 if ${pgac_cv__builtin_clz+:} false
; then :
15864 $as_echo_n "(cached) " >&6
15866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15867 /* end confdefs.h. */
15870 call__builtin_clz(unsigned int x)
15872 return __builtin_clz(x);
15882 if ac_fn_c_try_link
"$LINENO"; then :
15883 pgac_cv__builtin_clz
=yes
15885 pgac_cv__builtin_clz
=no
15887 rm -f core conftest.err conftest.
$ac_objext \
15888 conftest
$ac_exeext conftest.
$ac_ext
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15891 $as_echo "$pgac_cv__builtin_clz" >&6; }
15892 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15894 cat >>confdefs.h
<<_ACEOF
15895 #define HAVE__BUILTIN_CLZ 1
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15900 $as_echo_n "checking for __builtin_ctz... " >&6; }
15901 if ${pgac_cv__builtin_ctz+:} false
; then :
15902 $as_echo_n "(cached) " >&6
15904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15908 call__builtin_ctz(unsigned int x)
15910 return __builtin_ctz(x);
15920 if ac_fn_c_try_link
"$LINENO"; then :
15921 pgac_cv__builtin_ctz
=yes
15923 pgac_cv__builtin_ctz
=no
15925 rm -f core conftest.err conftest.
$ac_objext \
15926 conftest
$ac_exeext conftest.
$ac_ext
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15929 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15930 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15932 cat >>confdefs.h
<<_ACEOF
15933 #define HAVE__BUILTIN_CTZ 1
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15938 $as_echo_n "checking for __builtin_popcount... " >&6; }
15939 if ${pgac_cv__builtin_popcount+:} false
; then :
15940 $as_echo_n "(cached) " >&6
15942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15946 call__builtin_popcount(unsigned int x)
15948 return __builtin_popcount(x);
15958 if ac_fn_c_try_link
"$LINENO"; then :
15959 pgac_cv__builtin_popcount
=yes
15961 pgac_cv__builtin_popcount
=no
15963 rm -f core conftest.err conftest.
$ac_objext \
15964 conftest
$ac_exeext conftest.
$ac_ext
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15967 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15968 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15970 cat >>confdefs.h
<<_ACEOF
15971 #define HAVE__BUILTIN_POPCOUNT 1
15975 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15976 # so it needs a different test function.
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15978 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15979 if ${pgac_cv__builtin_frame_address+:} false
; then :
15980 $as_echo_n "(cached) " >&6
15982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15986 call__builtin_frame_address(void)
15988 return __builtin_frame_address(0);
15998 if ac_fn_c_try_link
"$LINENO"; then :
15999 pgac_cv__builtin_frame_address
=yes
16001 pgac_cv__builtin_frame_address
=no
16003 rm -f core conftest.err conftest.
$ac_objext \
16004 conftest
$ac_exeext conftest.
$ac_ext
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
16007 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
16008 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
16010 cat >>confdefs.h
<<_ACEOF
16011 #define HAVE__BUILTIN_FRAME_ADDRESS 1
16016 ac_fn_c_check_func
"$LINENO" "fseeko" "ac_cv_func_fseeko"
16017 if test "x$ac_cv_func_fseeko" = xyes
; then :
16018 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16021 case " $LIBOBJS " in
16022 *" fseeko.$ac_objext "* ) ;;
16023 *) LIBOBJS
="$LIBOBJS fseeko.$ac_objext"
16031 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
16032 # Mingw uses macros to access Win32 API calls
16035 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16037 ac_cv_func_fseeko
=yes;;
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16040 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16041 if ${ac_cv_sys_largefile_source+:} false
; then :
16042 $as_echo_n "(cached) " >&6
16045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16047 #include <sys/types.h> /* for off_t */
16052 int (*fp) (FILE *, off_t, int) = fseeko;
16053 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16058 if ac_fn_c_try_link
"$LINENO"; then :
16059 ac_cv_sys_largefile_source
=no
; break
16061 rm -f core conftest.err conftest.
$ac_objext \
16062 conftest
$ac_exeext conftest.
$ac_ext
16063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 #define _LARGEFILE_SOURCE 1
16066 #include <sys/types.h> /* for off_t */
16071 int (*fp) (FILE *, off_t, int) = fseeko;
16072 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16077 if ac_fn_c_try_link
"$LINENO"; then :
16078 ac_cv_sys_largefile_source
=1; break
16080 rm -f core conftest.err conftest.
$ac_objext \
16081 conftest
$ac_exeext conftest.
$ac_ext
16082 ac_cv_sys_largefile_source
=unknown
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16087 $as_echo "$ac_cv_sys_largefile_source" >&6; }
16088 case $ac_cv_sys_largefile_source in #(
16091 cat >>confdefs.h
<<_ACEOF
16092 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16098 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16099 # in glibc 2.1.3, but that breaks too many other things.
16100 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16101 if test $ac_cv_sys_largefile_source != unknown
; then
16103 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16109 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16110 # by calling it, 2009-04-02
16111 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16112 # The Clang compiler raises a warning for an undeclared identifier that matches
16113 # a compiler builtin function. All extant Clang versions are affected, as of
16114 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
16115 # C and Objective C languages, but Clang does report an error under C++ and
16118 # Passing -fno-builtin to the compiler would suppress this problem. That
16119 # strategy would have the advantage of being insensitive to stray warnings, but
16120 # it would make tests less realistic.
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
16122 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
16123 if ${ac_cv_c_decl_report+:} false
; then :
16124 $as_echo_n "(cached) " >&6
16126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16137 if ac_fn_c_try_compile
"$LINENO"; then :
16138 if test -s conftest.err
; then :
16139 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
16140 # valid AC_CHECK_DECL input. No library function is consistently available
16141 # on freestanding implementations, so test against a dummy declaration.
16142 # Include always-available headers on the off chance that they somehow
16144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16147 #include <limits.h>
16148 #include <stdarg.h>
16149 #include <stddef.h>
16150 extern void ac_decl (int, char *);
16155 (void) ac_decl ((int) 0, (char *) 0);
16165 if ac_fn_c_try_compile
"$LINENO"; then :
16166 if test -s conftest.err
; then :
16167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16169 as_fn_error $?
"cannot detect from compiler exit status or warnings
16170 See \`config.log' for more details" "$LINENO" 5; }
16172 ac_cv_c_decl_report
=warning
16175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16177 as_fn_error $?
"cannot compile a simple declaration test
16178 See \`config.log' for more details" "$LINENO" 5; }
16180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16184 as_fn_error $?
"compiler does not report undeclared identifiers
16185 See \`config.log' for more details" "$LINENO" 5; }
16188 ac_cv_c_decl_report
=error
16190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
16193 $as_echo "$ac_cv_c_decl_report" >&6; }
16195 case $ac_cv_c_decl_report in
16196 warning
) ac_c_decl_warn_flag
=yes ;;
16197 *) ac_c_decl_warn_flag
= ;;
16200 if test "$PORTNAME" != "solaris"; then :
16202 for ac_func
in posix_fadvise
16204 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
16205 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
16206 cat >>confdefs.h
<<_ACEOF
16207 #define HAVE_POSIX_FADVISE 1
16213 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
16215 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
16221 cat >>confdefs.h
<<_ACEOF
16222 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
16228 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
16230 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
16236 cat >>confdefs.h
<<_ACEOF
16237 #define HAVE_DECL_FDATASYNC $ac_have_decl
16240 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16241 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
16247 cat >>confdefs.h
<<_ACEOF
16248 #define HAVE_DECL_STRLCAT $ac_have_decl
16250 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16251 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
16257 cat >>confdefs.h
<<_ACEOF
16258 #define HAVE_DECL_STRLCPY $ac_have_decl
16260 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16261 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16267 cat >>confdefs.h
<<_ACEOF
16268 #define HAVE_DECL_STRNLEN $ac_have_decl
16271 # This is probably only present on macOS, but may as well check always
16272 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
16274 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
16280 cat >>confdefs.h
<<_ACEOF
16281 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
16285 ac_fn_c_check_decl
"$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
16287 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
; then :
16293 cat >>confdefs.h
<<_ACEOF
16294 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
16296 ac_fn_c_check_decl
"$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
16298 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
; then :
16304 cat >>confdefs.h
<<_ACEOF
16305 #define HAVE_DECL_RTLD_NOW $ac_have_decl
16309 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
16310 #include <netinet/in.h>
16312 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
16314 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
16320 $as_echo_n "checking for PS_STRINGS... " >&6; }
16321 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
16322 $as_echo_n "(cached) " >&6
16324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326 #include <machine/vmparam.h>
16327 #include <sys/exec.h>
16332 PS_STRINGS->ps_nargvstr = 1;
16333 PS_STRINGS->ps_argvstr = "foo";
16338 if ac_fn_c_try_link
"$LINENO"; then :
16339 pgac_cv_var_PS_STRINGS
=yes
16341 pgac_cv_var_PS_STRINGS
=no
16343 rm -f core conftest.err conftest.
$ac_objext \
16344 conftest
$ac_exeext conftest.
$ac_ext
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
16347 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
16348 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16350 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16356 $as_echo_n "checking for isinf... " >&6; }
16357 if ${ac_cv_func_isinf+:} false
; then :
16358 $as_echo_n "(cached) " >&6
16360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16364 double glob_double;
16369 return isinf(glob_double) ? 0 : 1;
16374 if ac_fn_c_try_link
"$LINENO"; then :
16375 ac_cv_func_isinf
=yes
16377 ac_cv_func_isinf
=no
16379 rm -f core conftest.err conftest.
$ac_objext \
16380 conftest
$ac_exeext conftest.
$ac_ext
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
16383 $as_echo "$ac_cv_func_isinf" >&6; }
16385 if test $ac_cv_func_isinf = yes ; then
16387 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16390 case " $LIBOBJS " in
16391 *" isinf.$ac_objext "* ) ;;
16392 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16396 # Look for a way to implement a substitute for isinf()
16397 for ac_func
in fpclass fp_class fp_class_d class
16399 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16400 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16401 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16402 cat >>confdefs.h
<<_ACEOF
16403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16411 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
16412 if test "x$ac_cv_func_crypt" = xyes
; then :
16413 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
16416 case " $LIBOBJS " in
16417 *" crypt.$ac_objext "* ) ;;
16418 *) LIBOBJS
="$LIBOBJS crypt.$ac_objext"
16424 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16425 if test "x$ac_cv_func_dlopen" = xyes
; then :
16426 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
16429 case " $LIBOBJS " in
16430 *" dlopen.$ac_objext "* ) ;;
16431 *) LIBOBJS
="$LIBOBJS dlopen.$ac_objext"
16437 ac_fn_c_check_func
"$LINENO" "fls" "ac_cv_func_fls"
16438 if test "x$ac_cv_func_fls" = xyes
; then :
16439 $as_echo "#define HAVE_FLS 1" >>confdefs.h
16442 case " $LIBOBJS " in
16443 *" fls.$ac_objext "* ) ;;
16444 *) LIBOBJS
="$LIBOBJS fls.$ac_objext"
16450 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
16451 if test "x$ac_cv_func_getopt" = xyes
; then :
16452 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
16455 case " $LIBOBJS " in
16456 *" getopt.$ac_objext "* ) ;;
16457 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16463 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
16464 if test "x$ac_cv_func_getrusage" = xyes
; then :
16465 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
16468 case " $LIBOBJS " in
16469 *" getrusage.$ac_objext "* ) ;;
16470 *) LIBOBJS
="$LIBOBJS getrusage.$ac_objext"
16476 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16477 if test "x$ac_cv_func_inet_aton" = xyes
; then :
16478 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16481 case " $LIBOBJS " in
16482 *" inet_aton.$ac_objext "* ) ;;
16483 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
16489 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16490 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
16491 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
16494 case " $LIBOBJS " in
16495 *" mkdtemp.$ac_objext "* ) ;;
16496 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
16502 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
16503 if test "x$ac_cv_func_pread" = xyes
; then :
16504 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
16507 case " $LIBOBJS " in
16508 *" pread.$ac_objext "* ) ;;
16509 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
16515 ac_fn_c_check_func
"$LINENO" "pwrite" "ac_cv_func_pwrite"
16516 if test "x$ac_cv_func_pwrite" = xyes
; then :
16517 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
16520 case " $LIBOBJS " in
16521 *" pwrite.$ac_objext "* ) ;;
16522 *) LIBOBJS
="$LIBOBJS pwrite.$ac_objext"
16528 ac_fn_c_check_func
"$LINENO" "random" "ac_cv_func_random"
16529 if test "x$ac_cv_func_random" = xyes
; then :
16530 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
16533 case " $LIBOBJS " in
16534 *" random.$ac_objext "* ) ;;
16535 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
16541 ac_fn_c_check_func
"$LINENO" "rint" "ac_cv_func_rint"
16542 if test "x$ac_cv_func_rint" = xyes
; then :
16543 $as_echo "#define HAVE_RINT 1" >>confdefs.h
16546 case " $LIBOBJS " in
16547 *" rint.$ac_objext "* ) ;;
16548 *) LIBOBJS
="$LIBOBJS rint.$ac_objext"
16554 ac_fn_c_check_func
"$LINENO" "srandom" "ac_cv_func_srandom"
16555 if test "x$ac_cv_func_srandom" = xyes
; then :
16556 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
16559 case " $LIBOBJS " in
16560 *" srandom.$ac_objext "* ) ;;
16561 *) LIBOBJS
="$LIBOBJS srandom.$ac_objext"
16567 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
16568 if test "x$ac_cv_func_strlcat" = xyes
; then :
16569 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16572 case " $LIBOBJS " in
16573 *" strlcat.$ac_objext "* ) ;;
16574 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
16580 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16581 if test "x$ac_cv_func_strlcpy" = xyes
; then :
16582 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16585 case " $LIBOBJS " in
16586 *" strlcpy.$ac_objext "* ) ;;
16587 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
16593 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
16594 if test "x$ac_cv_func_strnlen" = xyes
; then :
16595 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16598 case " $LIBOBJS " in
16599 *" strnlen.$ac_objext "* ) ;;
16600 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
16606 ac_fn_c_check_func
"$LINENO" "strtof" "ac_cv_func_strtof"
16607 if test "x$ac_cv_func_strtof" = xyes
; then :
16608 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16611 case " $LIBOBJS " in
16612 *" strtof.$ac_objext "* ) ;;
16613 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16622 # Cygwin and (apparently, based on test results) Mingw both
16623 # have a broken strtof(), so substitute the same replacement
16624 # code we use with VS2013. That's not a perfect fix, since
16625 # (unlike with VS2013) it doesn't avoid double-rounding, but
16626 # we have no better options. To get that, though, we have to
16627 # force the file to be compiled despite HAVE_STRTOF.
16629 case " $LIBOBJS " in
16630 *" strtof.$ac_objext "* ) ;;
16631 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
16636 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
16642 # Windows uses a specialised env handler
16643 # and doesn't need a replacement getpeereid because it doesn't use
16647 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16650 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
16653 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16655 ac_cv_func_setenv
=yes
16656 ac_cv_func_unsetenv
=yes
16657 ac_cv_func_getpeereid
=yes;;
16659 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
16660 if test "x$ac_cv_func_setenv" = xyes
; then :
16661 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
16664 case " $LIBOBJS " in
16665 *" setenv.$ac_objext "* ) ;;
16666 *) LIBOBJS
="$LIBOBJS setenv.$ac_objext"
16672 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16673 if test "x$ac_cv_func_unsetenv" = xyes
; then :
16674 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
16677 case " $LIBOBJS " in
16678 *" unsetenv.$ac_objext "* ) ;;
16679 *) LIBOBJS
="$LIBOBJS unsetenv.$ac_objext"
16685 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16686 if test "x$ac_cv_func_getpeereid" = xyes
; then :
16687 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16690 case " $LIBOBJS " in
16691 *" getpeereid.$ac_objext "* ) ;;
16692 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
16702 # System's version of getaddrinfo(), if any, may be used only if we found
16703 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16704 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
16705 if test x
"$ac_cv_type_struct_addrinfo" = xyes
&& \
16706 test "$PORTNAME" != "win32"; then
16707 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16708 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
16709 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16712 case " $LIBOBJS " in
16713 *" getaddrinfo.$ac_objext "* ) ;;
16714 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
16722 case " $LIBOBJS " in
16723 *" getaddrinfo.$ac_objext "* ) ;;
16724 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
16730 # Similarly, use system's getopt_long() only if system provides struct option.
16731 if test x
"$ac_cv_type_struct_option" = xyes
; then
16732 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
16733 if test "x$ac_cv_func_getopt_long" = xyes
; then :
16734 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16737 case " $LIBOBJS " in
16738 *" getopt_long.$ac_objext "* ) ;;
16739 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16747 case " $LIBOBJS " in
16748 *" getopt_long.$ac_objext "* ) ;;
16749 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16755 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
16756 # (i.e., allow '-' as a flag character), so use our version on those platforms.
16757 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
16758 case " $LIBOBJS " in
16759 *" getopt.$ac_objext "* ) ;;
16760 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16766 # mingw has adopted a GNU-centric interpretation of optind/optreset,
16767 # so always use our version on Windows.
16768 if test "$PORTNAME" = "win32"; then
16769 case " $LIBOBJS " in
16770 *" getopt.$ac_objext "* ) ;;
16771 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16775 case " $LIBOBJS " in
16776 *" getopt_long.$ac_objext "* ) ;;
16777 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16783 # Win32 (really MinGW) support
16784 if test "$PORTNAME" = "win32"; then
16785 for ac_func
in _configthreadlocale
16787 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16788 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16789 cat >>confdefs.h
<<_ACEOF
16790 #define HAVE__CONFIGTHREADLOCALE 1
16796 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16797 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
16798 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16801 case " $LIBOBJS " in
16802 *" gettimeofday.$ac_objext "* ) ;;
16803 *) LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
16810 case " $LIBOBJS " in
16811 *" dirmod.$ac_objext "* ) ;;
16812 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16816 case " $LIBOBJS " in
16817 *" kill.$ac_objext "* ) ;;
16818 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16822 case " $LIBOBJS " in
16823 *" open.$ac_objext "* ) ;;
16824 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16828 case " $LIBOBJS " in
16829 *" system.$ac_objext "* ) ;;
16830 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16834 case " $LIBOBJS " in
16835 *" win32env.$ac_objext "* ) ;;
16836 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16840 case " $LIBOBJS " in
16841 *" win32error.$ac_objext "* ) ;;
16842 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16846 case " $LIBOBJS " in
16847 *" win32security.$ac_objext "* ) ;;
16848 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16852 case " $LIBOBJS " in
16853 *" win32setlocale.$ac_objext "* ) ;;
16854 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16859 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
16861 ac_fn_c_check_type
"$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
16862 #define WIN32_LEAN_AND_MEAN
16863 #include <windows.h>
16864 #include <string.h>
16865 #include <dbghelp.h>
16867 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes
; then :
16869 cat >>confdefs.h
<<_ACEOF
16870 #define HAVE_MINIDUMP_TYPE 1
16873 pgac_minidump_type
=yes
16875 pgac_minidump_type
=no
16879 if test x
"$pgac_minidump_type" = x
"yes" ; then
16880 have_win32_dbghelp
=yes
16883 have_win32_dbghelp
=no
16887 # Cygwin needs only a bit of that
16888 if test "$PORTNAME" = "cygwin"; then
16889 case " $LIBOBJS " in
16890 *" dirmod.$ac_objext "* ) ;;
16891 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16897 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16898 if test "x$ac_cv_func_syslog" = xyes
; then :
16899 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16900 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16902 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16911 $as_echo_n "checking for opterr... " >&6; }
16912 if ${pgac_cv_var_int_opterr+:} false
; then :
16913 $as_echo_n "(cached) " >&6
16915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 #include <unistd.h>
16921 extern int opterr; opterr = 1;
16926 if ac_fn_c_try_link
"$LINENO"; then :
16927 pgac_cv_var_int_opterr
=yes
16929 pgac_cv_var_int_opterr
=no
16931 rm -f core conftest.err conftest.
$ac_objext \
16932 conftest
$ac_exeext conftest.
$ac_ext
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16935 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16936 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16938 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16943 $as_echo_n "checking for optreset... " >&6; }
16944 if ${pgac_cv_var_int_optreset+:} false
; then :
16945 $as_echo_n "(cached) " >&6
16947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16949 #include <unistd.h>
16953 extern int optreset; optreset = 1;
16958 if ac_fn_c_try_link
"$LINENO"; then :
16959 pgac_cv_var_int_optreset
=yes
16961 pgac_cv_var_int_optreset
=no
16963 rm -f core conftest.err conftest.
$ac_objext \
16964 conftest
$ac_exeext conftest.
$ac_ext
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16967 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16968 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16970 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16974 for ac_func
in strtoll __strtoll strtoq
16976 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16978 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16979 cat >>confdefs.h
<<_ACEOF
16980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16986 for ac_func
in strtoull __strtoull strtouq
16988 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16989 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16990 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16991 cat >>confdefs.h
<<_ACEOF
16992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 # strto[u]ll may exist but not be declared
16999 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
17000 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
17006 cat >>confdefs.h
<<_ACEOF
17007 #define HAVE_DECL_STRTOLL $ac_have_decl
17009 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
17010 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
17016 cat >>confdefs.h
<<_ACEOF
17017 #define HAVE_DECL_STRTOULL $ac_have_decl
17021 if test "$with_icu" = yes; then
17022 ac_save_CPPFLAGS
=$CPPFLAGS
17023 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
17025 # Verify we have ICU's header files
17026 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
17027 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
17030 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
17035 CPPFLAGS
=$ac_save_CPPFLAGS
17038 if test "$with_llvm" = yes; then
17040 # Check which functionality is present
17041 SAVE_CPPFLAGS
="$CPPFLAGS"
17042 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
17043 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
17045 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
17051 cat >>confdefs.h
<<_ACEOF
17052 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
17055 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
17057 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
17063 cat >>confdefs.h
<<_ACEOF
17064 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
17066 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
17068 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
17074 cat >>confdefs.h
<<_ACEOF
17075 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
17078 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
17080 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
17086 cat >>confdefs.h
<<_ACEOF
17087 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
17089 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
17091 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
17097 cat >>confdefs.h
<<_ACEOF
17098 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
17101 CPPFLAGS
="$SAVE_CPPFLAGS"
17105 # Lastly, restore full LIBS list and check for readline/libedit symbols
17106 LIBS
="$LIBS_including_readline"
17108 if test "$with_readline" = yes; then
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
17110 $as_echo_n "checking for rl_completion_append_character... " >&6; }
17111 if ${pgac_cv_var_rl_completion_append_character+:} false
; then :
17112 $as_echo_n "(cached) " >&6
17114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17117 #ifdef HAVE_READLINE_READLINE_H
17118 # include <readline/readline.h>
17119 #elif defined(HAVE_READLINE_H)
17120 # include <readline.h>
17126 rl_completion_append_character = 'x';
17131 if ac_fn_c_try_link
"$LINENO"; then :
17132 pgac_cv_var_rl_completion_append_character
=yes
17134 pgac_cv_var_rl_completion_append_character
=no
17136 rm -f core conftest.err conftest.
$ac_objext \
17137 conftest
$ac_exeext conftest.
$ac_ext
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
17140 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
17141 if test x
"$pgac_cv_var_rl_completion_append_character" = x
"yes"; then
17143 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
17146 for ac_func
in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
17148 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17149 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17150 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17151 cat >>confdefs.h
<<_ACEOF
17152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17158 for ac_func
in append_history history_truncate_file
17160 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17162 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17163 cat >>confdefs.h
<<_ACEOF
17164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173 # This test makes sure that run tests work at all. Sometimes a shared
17174 # library is found by the linker, but the runtime linker can't find it.
17175 # This check should come after all modifications of compiler or linker
17176 # variables, and before any other run tests.
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
17178 $as_echo_n "checking test program... " >&6; }
17179 if test "$cross_compiling" = yes; then :
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
17181 $as_echo "cross-compiling" >&6; }
17183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17185 int main() { return 0; }
17187 if ac_fn_c_try_run
"$LINENO"; then :
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17189 $as_echo "ok" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17192 $as_echo "failed" >&6; }
17194 Could not execute a simple test program. This may be a problem
17195 related to locating shared libraries. Check the file 'config.log'
17196 for the exact reason." "$LINENO" 5
17198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17203 # --------------------
17204 # Run tests below here
17205 # --------------------
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
17209 $as_echo_n "checking whether long int is 64 bits... " >&6; }
17210 if ${pgac_cv_type_long_int_64+:} false
; then :
17211 $as_echo_n "(cached) " >&6
17213 if test "$cross_compiling" = yes; then :
17214 # If cross-compiling, check the size reported by the compiler and
17215 # trust that the arithmetic works.
17216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17222 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17223 test_array [0] = 0;
17224 return test_array [0];
17230 if ac_fn_c_try_compile
"$LINENO"; then :
17231 pgac_cv_type_long_int_64
=yes
17233 pgac_cv_type_long_int_64
=no
17235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17239 typedef long int ac_int64;
17242 * These are globals to discourage the compiler from folding all the
17243 * arithmetic tests down to compile-time constants.
17245 ac_int64 a = 20000001;
17246 ac_int64 b = 40000005;
17248 int does_int64_work()
17252 if (sizeof(ac_int64) != 8)
17253 return 0; /* definitely not the right size */
17255 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17265 return (! does_int64_work());
17268 if ac_fn_c_try_run
"$LINENO"; then :
17269 pgac_cv_type_long_int_64
=yes
17271 pgac_cv_type_long_int_64
=no
17273 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17274 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
17279 $as_echo "$pgac_cv_type_long_int_64" >&6; }
17281 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
17282 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
17284 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
17289 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
17290 pg_int64_type
="long int"
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
17293 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
17294 if ${pgac_cv_type_long_long_int_64+:} false
; then :
17295 $as_echo_n "(cached) " >&6
17297 if test "$cross_compiling" = yes; then :
17298 # If cross-compiling, check the size reported by the compiler and
17299 # trust that the arithmetic works.
17300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17306 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17307 test_array [0] = 0;
17308 return test_array [0];
17314 if ac_fn_c_try_compile
"$LINENO"; then :
17315 pgac_cv_type_long_long_int_64
=yes
17317 pgac_cv_type_long_long_int_64
=no
17319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17323 typedef long long int ac_int64;
17326 * These are globals to discourage the compiler from folding all the
17327 * arithmetic tests down to compile-time constants.
17329 ac_int64 a = 20000001;
17330 ac_int64 b = 40000005;
17332 int does_int64_work()
17336 if (sizeof(ac_int64) != 8)
17337 return 0; /* definitely not the right size */
17339 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17349 return (! does_int64_work());
17352 if ac_fn_c_try_run
"$LINENO"; then :
17353 pgac_cv_type_long_long_int_64
=yes
17355 pgac_cv_type_long_long_int_64
=no
17357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
17363 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
17365 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
17366 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
17368 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
17372 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17373 pg_int64_type
="long long int"
17375 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
17380 cat >>confdefs.h
<<_ACEOF
17381 #define PG_INT64_TYPE $pg_int64_type
17385 # Select the printf length modifier that goes with that, too.
17386 if test x
"$pg_int64_type" = x
"long long int" ; then
17387 INT64_MODIFIER
='"ll"'
17389 INT64_MODIFIER
='"l"'
17393 cat >>confdefs.h
<<_ACEOF
17394 #define INT64_MODIFIER $INT64_MODIFIER
17398 # has to be down here, rather than with the other builtins, because
17399 # the test uses PG_INT64_TYPE.
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
17401 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
17402 if ${pgac_cv__builtin_op_overflow+:} false
; then :
17403 $as_echo_n "(cached) " >&6
17405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17408 PG_INT64_TYPE a = 1;
17409 PG_INT64_TYPE b = 1;
17410 PG_INT64_TYPE result;
17416 oflo = __builtin_mul_overflow(a, b, &result);
17421 if ac_fn_c_try_link
"$LINENO"; then :
17422 pgac_cv__builtin_op_overflow
=yes
17424 pgac_cv__builtin_op_overflow
=no
17426 rm -f core conftest.err conftest.
$ac_objext \
17427 conftest
$ac_exeext conftest.
$ac_ext
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
17430 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
17431 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
17433 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
17437 # Check size of void *, size_t (enables tweaks for > 32bit address space)
17438 # The cast to long int works around a bug in the HP C Compiler
17439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17441 # This bug is HP SR number 8606223364.
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17443 $as_echo_n "checking size of void *... " >&6; }
17444 if ${ac_cv_sizeof_void_p+:} false
; then :
17445 $as_echo_n "(cached) " >&6
17447 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17450 if test "$ac_cv_type_void_p" = yes; then
17451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17453 as_fn_error
77 "cannot compute sizeof (void *)
17454 See \`config.log' for more details" "$LINENO" 5; }
17456 ac_cv_sizeof_void_p
=0
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17462 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17466 cat >>confdefs.h
<<_ACEOF
17467 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17471 # The cast to long int works around a bug in the HP C Compiler
17472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17473 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17474 # This bug is HP SR number 8606223364.
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17476 $as_echo_n "checking size of size_t... " >&6; }
17477 if ${ac_cv_sizeof_size_t+:} false
; then :
17478 $as_echo_n "(cached) " >&6
17480 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17483 if test "$ac_cv_type_size_t" = yes; then
17484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17486 as_fn_error
77 "cannot compute sizeof (size_t)
17487 See \`config.log' for more details" "$LINENO" 5; }
17489 ac_cv_sizeof_size_t
=0
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17495 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17499 cat >>confdefs.h
<<_ACEOF
17500 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17504 # The cast to long int works around a bug in the HP C Compiler
17505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17507 # This bug is HP SR number 8606223364.
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17509 $as_echo_n "checking size of long... " >&6; }
17510 if ${ac_cv_sizeof_long+:} false
; then :
17511 $as_echo_n "(cached) " >&6
17513 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17516 if test "$ac_cv_type_long" = yes; then
17517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17519 as_fn_error
77 "cannot compute sizeof (long)
17520 See \`config.log' for more details" "$LINENO" 5; }
17522 ac_cv_sizeof_long
=0
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17528 $as_echo "$ac_cv_sizeof_long" >&6; }
17532 cat >>confdefs.h
<<_ACEOF
17533 #define SIZEOF_LONG $ac_cv_sizeof_long
17538 # Decide whether float4 is passed by value: user-selectable, enabled by default
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
17540 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
17543 # Check whether --enable-float4-byval was given.
17544 if test "${enable_float4_byval+set}" = set; then :
17545 enableval
=$enable_float4_byval;
17549 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
17551 float4passbyval
=true
17554 float4passbyval
=false
17557 as_fn_error $?
"no argument expected for --enable-float4-byval option" "$LINENO" 5
17562 enable_float4_byval
=yes
17564 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
17566 float4passbyval
=true
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
17571 $as_echo "$enable_float4_byval" >&6; }
17573 cat >>confdefs.h
<<_ACEOF
17574 #define FLOAT4PASSBYVAL $float4passbyval
17578 # Decide whether float8 is passed by value.
17579 # Note: this setting also controls int8 and related types such as timestamp.
17580 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
17581 # If not, trying to select it is an error.
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
17583 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
17584 if test $ac_cv_sizeof_void_p -ge 8 ; then
17587 # Check whether --enable-float8-byval was given.
17588 if test "${enable_float8_byval+set}" = set; then :
17589 enableval
=$enable_float8_byval;
17598 as_fn_error $?
"no argument expected for --enable-float8-byval option" "$LINENO" 5
17603 enable_float8_byval
=yes
17611 # Check whether --enable-float8-byval was given.
17612 if test "${enable_float8_byval+set}" = set; then :
17613 enableval
=$enable_float8_byval;
17622 as_fn_error $?
"no argument expected for --enable-float8-byval option" "$LINENO" 5
17627 enable_float8_byval
=no
17632 if test "$enable_float8_byval" = yes ; then
17633 as_fn_error $?
"--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
17636 if test "$enable_float8_byval" = yes ; then
17638 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
17640 float8passbyval
=true
17642 float8passbyval
=false
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
17645 $as_echo "$enable_float8_byval" >&6; }
17647 cat >>confdefs.h
<<_ACEOF
17648 #define FLOAT8PASSBYVAL $float8passbyval
17652 # Determine memory alignment requirements for the basic C data types.
17654 # The cast to long int works around a bug in the HP C Compiler,
17655 # see AC_CHECK_SIZEOF for more information.
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
17657 $as_echo_n "checking alignment of short... " >&6; }
17658 if ${ac_cv_alignof_short+:} false
; then :
17659 $as_echo_n "(cached) " >&6
17661 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
17663 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17665 typedef struct { char x; short y; } ac__type_alignof_;"; then :
17668 if test "$ac_cv_type_short" = yes; then
17669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17671 as_fn_error
77 "cannot compute alignment of short
17672 See \`config.log' for more details" "$LINENO" 5; }
17674 ac_cv_alignof_short
=0
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
17680 $as_echo "$ac_cv_alignof_short" >&6; }
17684 cat >>confdefs.h
<<_ACEOF
17685 #define ALIGNOF_SHORT $ac_cv_alignof_short
17689 # The cast to long int works around a bug in the HP C Compiler,
17690 # see AC_CHECK_SIZEOF for more information.
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
17692 $as_echo_n "checking alignment of int... " >&6; }
17693 if ${ac_cv_alignof_int+:} false
; then :
17694 $as_echo_n "(cached) " >&6
17696 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
17698 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17700 typedef struct { char x; int y; } ac__type_alignof_;"; then :
17703 if test "$ac_cv_type_int" = yes; then
17704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17706 as_fn_error
77 "cannot compute alignment of int
17707 See \`config.log' for more details" "$LINENO" 5; }
17709 ac_cv_alignof_int
=0
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
17715 $as_echo "$ac_cv_alignof_int" >&6; }
17719 cat >>confdefs.h
<<_ACEOF
17720 #define ALIGNOF_INT $ac_cv_alignof_int
17724 # The cast to long int works around a bug in the HP C Compiler,
17725 # see AC_CHECK_SIZEOF for more information.
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
17727 $as_echo_n "checking alignment of long... " >&6; }
17728 if ${ac_cv_alignof_long+:} false
; then :
17729 $as_echo_n "(cached) " >&6
17731 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
17733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17735 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17738 if test "$ac_cv_type_long" = yes; then
17739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17741 as_fn_error
77 "cannot compute alignment of long
17742 See \`config.log' for more details" "$LINENO" 5; }
17744 ac_cv_alignof_long
=0
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17750 $as_echo "$ac_cv_alignof_long" >&6; }
17754 cat >>confdefs.h
<<_ACEOF
17755 #define ALIGNOF_LONG $ac_cv_alignof_long
17759 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17760 # The cast to long int works around a bug in the HP C Compiler,
17761 # see AC_CHECK_SIZEOF for more information.
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
17763 $as_echo_n "checking alignment of long long int... " >&6; }
17764 if ${ac_cv_alignof_long_long_int+:} false
; then :
17765 $as_echo_n "(cached) " >&6
17767 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
17769 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17771 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
17774 if test "$ac_cv_type_long_long_int" = yes; then
17775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17777 as_fn_error
77 "cannot compute alignment of long long int
17778 See \`config.log' for more details" "$LINENO" 5; }
17780 ac_cv_alignof_long_long_int
=0
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
17786 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
17790 cat >>confdefs.h
<<_ACEOF
17791 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
17796 # The cast to long int works around a bug in the HP C Compiler,
17797 # see AC_CHECK_SIZEOF for more information.
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17799 $as_echo_n "checking alignment of double... " >&6; }
17800 if ${ac_cv_alignof_double+:} false
; then :
17801 $as_echo_n "(cached) " >&6
17803 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17805 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17807 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17810 if test "$ac_cv_type_double" = yes; then
17811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17813 as_fn_error
77 "cannot compute alignment of double
17814 See \`config.log' for more details" "$LINENO" 5; }
17816 ac_cv_alignof_double
=0
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
17822 $as_echo "$ac_cv_alignof_double" >&6; }
17826 cat >>confdefs.h
<<_ACEOF
17827 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
17832 # Compute maximum alignment of any basic type.
17833 # We assume long's alignment is at least as strong as char, short, or int;
17834 # but we must check long long (if it is being used for int64) and double.
17835 # Note that we intentionally do not consider any types wider than 64 bits,
17836 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
17837 # for disk and memory space.
17839 MAX_ALIGNOF
=$ac_cv_alignof_long
17840 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
17841 MAX_ALIGNOF
=$ac_cv_alignof_double
17843 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
17844 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
17847 cat >>confdefs.h
<<_ACEOF
17848 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17853 # Some platforms predefine the types int8, int16, etc. Only check
17854 # a (hopefully) representative subset.
17855 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
17857 if test "x$ac_cv_type_int8" = xyes
; then :
17859 cat >>confdefs.h
<<_ACEOF
17860 #define HAVE_INT8 1
17865 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
17867 if test "x$ac_cv_type_uint8" = xyes
; then :
17869 cat >>confdefs.h
<<_ACEOF
17870 #define HAVE_UINT8 1
17875 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17877 if test "x$ac_cv_type_int64" = xyes
; then :
17879 cat >>confdefs.h
<<_ACEOF
17880 #define HAVE_INT64 1
17885 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17887 if test "x$ac_cv_type_uint64" = xyes
; then :
17889 cat >>confdefs.h
<<_ACEOF
17890 #define HAVE_UINT64 1
17897 # Some compilers offer a 128-bit integer scalar type.
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17899 $as_echo_n "checking for __int128... " >&6; }
17900 if ${pgac_cv__128bit_int+:} false
; then :
17901 $as_echo_n "(cached) " >&6
17903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17907 * We don't actually run this test, just link it to verify that any support
17908 * functions needed for __int128 are present.
17910 * These are globals to discourage the compiler from folding all the
17911 * arithmetic tests down to compile-time constants. We do not have
17912 * convenient support for 128bit literals at this point...
17914 __int128 a = 48828125;
17915 __int128 b = 97656250;
17922 a = (a << 12) + 1; /* 200000000001 */
17923 b = (b << 12) + 5; /* 400000000005 */
17924 /* try the most relevant arithmetic ops */
17927 /* must use the results, else compiler may optimize arithmetic away */
17935 if ac_fn_c_try_link
"$LINENO"; then :
17936 pgac_cv__128bit_int
=yes
17938 pgac_cv__128bit_int
=no
17940 rm -f core conftest.err conftest.
$ac_objext \
17941 conftest
$ac_exeext conftest.
$ac_ext
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17944 $as_echo "$pgac_cv__128bit_int" >&6; }
17945 if test x
"$pgac_cv__128bit_int" = xyes
; then
17946 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17947 # If not cross-compiling, we can test for bugs and disable use of __int128
17948 # with buggy compilers. If cross-compiling, hope for the best.
17949 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17951 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17952 if ${pgac_cv__128bit_int_bug+:} false
; then :
17953 $as_echo_n "(cached) " >&6
17955 if test "$cross_compiling" = yes; then :
17956 pgac_cv__128bit_int_bug
="assuming ok"
17958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17961 /* This must match the corresponding code in c.h: */
17962 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17963 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17965 typedef __int128 int128a
17966 #if defined(pg_attribute_aligned)
17967 pg_attribute_aligned(8)
17971 void pass_by_val(void *buffer, int128a par) { holder = par; }
17977 long int i64 = 97656225L << 12;
17979 pass_by_val(main, (int128a) i64);
17988 if ac_fn_c_try_run
"$LINENO"; then :
17989 pgac_cv__128bit_int_bug
=ok
17991 pgac_cv__128bit_int_bug
=broken
17993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17994 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17999 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
18000 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
18002 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
18004 # The cast to long int works around a bug in the HP C Compiler,
18005 # see AC_CHECK_SIZEOF for more information.
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
18007 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
18008 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
18009 $as_echo_n "(cached) " >&6
18011 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
18013 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18015 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
18018 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
18019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18021 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
18022 See \`config.log' for more details" "$LINENO" 5; }
18024 ac_cv_alignof_PG_INT128_TYPE
=0
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
18030 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
18034 cat >>confdefs.h
<<_ACEOF
18035 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
18042 # Check for various atomic operations now that we have checked how to declare
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
18045 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
18046 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
18047 $as_echo_n "(cached) " >&6
18049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18056 __sync_lock_test_and_set(&lock, 1);
18057 __sync_lock_release(&lock);
18062 if ac_fn_c_try_link
"$LINENO"; then :
18063 pgac_cv_gcc_sync_char_tas
="yes"
18065 pgac_cv_gcc_sync_char_tas
="no"
18067 rm -f core conftest.err conftest.
$ac_objext \
18068 conftest
$ac_exeext conftest.
$ac_ext
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
18071 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
18072 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
18074 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
18078 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
18079 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
18080 $as_echo_n "(cached) " >&6
18082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18089 __sync_lock_test_and_set(&lock, 1);
18090 __sync_lock_release(&lock);
18095 if ac_fn_c_try_link
"$LINENO"; then :
18096 pgac_cv_gcc_sync_int32_tas
="yes"
18098 pgac_cv_gcc_sync_int32_tas
="no"
18100 rm -f core conftest.err conftest.
$ac_objext \
18101 conftest
$ac_exeext conftest.
$ac_ext
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
18104 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
18105 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
18107 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
18111 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
18112 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
18113 $as_echo_n "(cached) " >&6
18115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18122 __sync_val_compare_and_swap(&val, 0, 37);
18127 if ac_fn_c_try_link
"$LINENO"; then :
18128 pgac_cv_gcc_sync_int32_cas
="yes"
18130 pgac_cv_gcc_sync_int32_cas
="no"
18132 rm -f core conftest.err conftest.
$ac_objext \
18133 conftest
$ac_exeext conftest.
$ac_ext
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
18136 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
18137 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
18139 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
18143 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
18144 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
18145 $as_echo_n "(cached) " >&6
18147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18153 PG_INT64_TYPE lock = 0;
18154 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
18159 if ac_fn_c_try_link
"$LINENO"; then :
18160 pgac_cv_gcc_sync_int64_cas
="yes"
18162 pgac_cv_gcc_sync_int64_cas
="no"
18164 rm -f core conftest.err conftest.
$ac_objext \
18165 conftest
$ac_exeext conftest.
$ac_ext
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
18168 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
18169 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
18171 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
18175 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
18176 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
18177 $as_echo_n "(cached) " >&6
18179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18187 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
18192 if ac_fn_c_try_link
"$LINENO"; then :
18193 pgac_cv_gcc_atomic_int32_cas
="yes"
18195 pgac_cv_gcc_atomic_int32_cas
="no"
18197 rm -f core conftest.err conftest.
$ac_objext \
18198 conftest
$ac_exeext conftest.
$ac_ext
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
18201 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
18202 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
18204 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
18208 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
18209 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
18210 $as_echo_n "(cached) " >&6
18212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18218 PG_INT64_TYPE val = 0;
18219 PG_INT64_TYPE expect = 0;
18220 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
18225 if ac_fn_c_try_link
"$LINENO"; then :
18226 pgac_cv_gcc_atomic_int64_cas
="yes"
18228 pgac_cv_gcc_atomic_int64_cas
="no"
18230 rm -f core conftest.err conftest.
$ac_objext \
18231 conftest
$ac_exeext conftest.
$ac_ext
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
18234 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
18235 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
18237 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
18242 # Check for x86 cpuid instruction
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
18244 $as_echo_n "checking for __get_cpuid... " >&6; }
18245 if ${pgac_cv__get_cpuid+:} false
; then :
18246 $as_echo_n "(cached) " >&6
18248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18254 unsigned int exx[4] = {0, 0, 0, 0};
18255 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
18261 if ac_fn_c_try_link
"$LINENO"; then :
18262 pgac_cv__get_cpuid
="yes"
18264 pgac_cv__get_cpuid
="no"
18266 rm -f core conftest.err conftest.
$ac_objext \
18267 conftest
$ac_exeext conftest.
$ac_ext
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
18270 $as_echo "$pgac_cv__get_cpuid" >&6; }
18271 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
18273 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
18278 $as_echo_n "checking for __cpuid... " >&6; }
18279 if ${pgac_cv__cpuid+:} false
; then :
18280 $as_echo_n "(cached) " >&6
18282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18284 #include <intrin.h>
18288 unsigned int exx[4] = {0, 0, 0, 0};
18289 __get_cpuid(exx[0], 1);
18295 if ac_fn_c_try_link
"$LINENO"; then :
18296 pgac_cv__cpuid
="yes"
18298 pgac_cv__cpuid
="no"
18300 rm -f core conftest.err conftest.
$ac_objext \
18301 conftest
$ac_exeext conftest.
$ac_ext
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
18304 $as_echo "$pgac_cv__cpuid" >&6; }
18305 if test x
"$pgac_cv__cpuid" = x
"yes"; then
18307 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
18311 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
18313 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
18314 # with the default compiler flags. If not, check if adding the -msse4.2
18315 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
18317 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
18318 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
18319 $as_echo_n "(cached) " >&6
18321 pgac_save_CFLAGS
=$CFLAGS
18322 CFLAGS
="$pgac_save_CFLAGS "
18323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 #include <nmmintrin.h>
18329 unsigned int crc = 0;
18330 crc = _mm_crc32_u8(crc, 0);
18331 crc = _mm_crc32_u32(crc, 0);
18332 /* return computed value, to prevent the above being optimized away */
18338 if ac_fn_c_try_link
"$LINENO"; then :
18339 pgac_cv_sse42_crc32_intrinsics_
=yes
18341 pgac_cv_sse42_crc32_intrinsics_
=no
18343 rm -f core conftest.err conftest.
$ac_objext \
18344 conftest
$ac_exeext conftest.
$ac_ext
18345 CFLAGS
="$pgac_save_CFLAGS"
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
18348 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
18349 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
18351 pgac_sse42_crc32_intrinsics
=yes
18354 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
18356 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
18357 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
18358 $as_echo_n "(cached) " >&6
18360 pgac_save_CFLAGS
=$CFLAGS
18361 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
18362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364 #include <nmmintrin.h>
18368 unsigned int crc = 0;
18369 crc = _mm_crc32_u8(crc, 0);
18370 crc = _mm_crc32_u32(crc, 0);
18371 /* return computed value, to prevent the above being optimized away */
18377 if ac_fn_c_try_link
"$LINENO"; then :
18378 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
18380 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
18382 rm -f core conftest.err conftest.
$ac_objext \
18383 conftest
$ac_exeext conftest.
$ac_ext
18384 CFLAGS
="$pgac_save_CFLAGS"
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
18387 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
18388 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
18389 CFLAGS_SSE42
="-msse4.2"
18390 pgac_sse42_crc32_intrinsics
=yes
18396 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
18397 # define __SSE4_2__ in that case.
18398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18406 #error __SSE4_2__ not defined
18413 if ac_fn_c_try_compile
"$LINENO"; then :
18416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18418 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
18420 # First check if __crc32c* intrinsics can be used with the default compiler
18421 # flags. If not, check if adding -march=armv8-a+crc flag helps.
18422 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
18424 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
18425 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
18426 $as_echo_n "(cached) " >&6
18428 pgac_save_CFLAGS
=$CFLAGS
18429 CFLAGS
="$pgac_save_CFLAGS "
18430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432 #include <arm_acle.h>
18436 unsigned int crc = 0;
18437 crc = __crc32cb(crc, 0);
18438 crc = __crc32ch(crc, 0);
18439 crc = __crc32cw(crc, 0);
18440 crc = __crc32cd(crc, 0);
18441 /* return computed value, to prevent the above being optimized away */
18447 if ac_fn_c_try_link
"$LINENO"; then :
18448 pgac_cv_armv8_crc32c_intrinsics_
=yes
18450 pgac_cv_armv8_crc32c_intrinsics_
=no
18452 rm -f core conftest.err conftest.
$ac_objext \
18453 conftest
$ac_exeext conftest.
$ac_ext
18454 CFLAGS
="$pgac_save_CFLAGS"
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
18457 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
18458 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
18459 CFLAGS_ARMV8_CRC32C
=""
18460 pgac_armv8_crc32c_intrinsics
=yes
18463 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
18465 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
18466 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
18467 $as_echo_n "(cached) " >&6
18469 pgac_save_CFLAGS
=$CFLAGS
18470 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
18471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18473 #include <arm_acle.h>
18477 unsigned int crc = 0;
18478 crc = __crc32cb(crc, 0);
18479 crc = __crc32ch(crc, 0);
18480 crc = __crc32cw(crc, 0);
18481 crc = __crc32cd(crc, 0);
18482 /* return computed value, to prevent the above being optimized away */
18488 if ac_fn_c_try_link
"$LINENO"; then :
18489 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
18491 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
18493 rm -f core conftest.err conftest.
$ac_objext \
18494 conftest
$ac_exeext conftest.
$ac_ext
18495 CFLAGS
="$pgac_save_CFLAGS"
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
18498 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
18499 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
18500 CFLAGS_ARMV8_CRC32C
="-march=armv8-a+crc"
18501 pgac_armv8_crc32c_intrinsics
=yes
18507 # Select CRC-32C implementation.
18509 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
18510 # use the special CRC instructions for calculating CRC-32C. If we're not
18511 # targeting such a processor, but we can nevertheless produce code that uses
18512 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
18513 # implementations and select which one to use at runtime, depending on whether
18514 # SSE 4.2 is supported by the processor we're running on.
18516 # Similarly, if we are targeting an ARM processor that has the CRC
18517 # instructions that are part of the ARMv8 CRC Extension, use them. And if
18518 # we're not targeting such a processor, but can nevertheless produce code that
18519 # uses the CRC instructions, compile both, and select at runtime.
18521 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
18522 # in the template or configure command line.
18523 if test x
"$USE_SLICING_BY_8_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"" && test x
"$USE_ARMV8_CRC32C" = x
"" && test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
""; then
18524 # Use Intel SSE 4.2 if available.
18525 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
18528 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
18529 # the runtime check.
18530 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && (test x
"$pgac_cv__get_cpuid" = x
"yes" ||
test x
"$pgac_cv__cpuid" = x
"yes"); then
18531 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
18533 # Use ARM CRC Extension if available.
18534 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_ARMV8_CRC32C" = x
""; then
18537 # ARM CRC Extension, with runtime check?
18538 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
18539 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
18541 # fall back to slicing-by-8 algorithm, which doesn't require any
18542 # special CPU support.
18543 USE_SLICING_BY_8_CRC32C
=1
18550 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
18552 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
18553 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
18555 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
18557 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
18559 $as_echo "SSE 4.2" >&6; }
18561 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18563 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18565 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
18567 $as_echo "SSE 4.2 with runtime check" >&6; }
18569 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
18571 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
18573 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18575 $as_echo "ARMv8 CRC instructions" >&6; }
18577 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18579 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18581 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18583 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18586 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18588 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18590 $as_echo "slicing-by-8" >&6; }
18598 # Select semaphore implementation type.
18599 if test "$PORTNAME" != "win32"; then
18600 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18601 # Need sem_open for this
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18603 $as_echo_n "checking for library containing sem_open... " >&6; }
18604 if ${ac_cv_search_sem_open+:} false
; then :
18605 $as_echo_n "(cached) " >&6
18607 ac_func_search_save_LIBS
=$LIBS
18608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18621 return sem_open ();
18626 for ac_lib
in '' rt pthread
; do
18627 if test -z "$ac_lib"; then
18628 ac_res
="none required"
18631 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18633 if ac_fn_c_try_link
"$LINENO"; then :
18634 ac_cv_search_sem_open
=$ac_res
18636 rm -f core conftest.err conftest.
$ac_objext \
18638 if ${ac_cv_search_sem_open+:} false
; then :
18642 if ${ac_cv_search_sem_open+:} false
; then :
18645 ac_cv_search_sem_open
=no
18647 rm conftest.
$ac_ext
18648 LIBS
=$ac_func_search_save_LIBS
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18651 $as_echo "$ac_cv_search_sem_open" >&6; }
18652 ac_res
=$ac_cv_search_sem_open
18653 if test "$ac_res" != no
; then :
18654 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18655 USE_NAMED_POSIX_SEMAPHORES
=1
18659 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18660 # Need sem_init for this
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18662 $as_echo_n "checking for library containing sem_init... " >&6; }
18663 if ${ac_cv_search_sem_init+:} false
; then :
18664 $as_echo_n "(cached) " >&6
18666 ac_func_search_save_LIBS
=$LIBS
18667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18670 /* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */
18680 return sem_init ();
18685 for ac_lib
in '' rt pthread
; do
18686 if test -z "$ac_lib"; then
18687 ac_res
="none required"
18690 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18692 if ac_fn_c_try_link
"$LINENO"; then :
18693 ac_cv_search_sem_init
=$ac_res
18695 rm -f core conftest.err conftest.
$ac_objext \
18697 if ${ac_cv_search_sem_init+:} false
; then :
18701 if ${ac_cv_search_sem_init+:} false
; then :
18704 ac_cv_search_sem_init
=no
18706 rm conftest.
$ac_ext
18707 LIBS
=$ac_func_search_save_LIBS
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18710 $as_echo "$ac_cv_search_sem_init" >&6; }
18711 ac_res
=$ac_cv_search_sem_init
18712 if test "$ac_res" != no
; then :
18713 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18714 USE_UNNAMED_POSIX_SEMAPHORES
=1
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18719 $as_echo_n "checking which semaphore API to use... " >&6; }
18720 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18722 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18724 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18725 sematype
="named POSIX"
18727 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18729 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18731 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18732 sematype
="unnamed POSIX"
18735 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18737 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18738 sematype
="System V"
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18742 $as_echo "$sematype" >&6; }
18745 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18747 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18751 # Select shared-memory implementation type.
18752 if test "$PORTNAME" != "win32"; then
18754 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18756 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18759 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18761 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18764 # Select random number source
18766 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
18767 # in the template or configure command line.
18769 # If not selected manually, try to select a source automatically.
18770 if test x
"$USE_OPENSSL_RANDOM" = x
"" && test x
"$USE_WIN32_RANDOM" = x
"" && test x
"$USE_DEV_URANDOM" = x
"" ; then
18771 if test x
"$with_openssl" = x
"yes" ; then
18772 USE_OPENSSL_RANDOM
=1
18773 elif test "$PORTNAME" = "win32" ; then
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18777 $as_echo_n "checking for /dev/urandom... " >&6; }
18778 if ${ac_cv_file__dev_urandom+:} false
; then :
18779 $as_echo_n "(cached) " >&6
18781 test "$cross_compiling" = yes &&
18782 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18783 if test -r "/dev/urandom"; then
18784 ac_cv_file__dev_urandom
=yes
18786 ac_cv_file__dev_urandom
=no
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18790 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18791 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18796 if test x
"$ac_cv_file__dev_urandom" = x
"yes" ; then
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18803 $as_echo_n "checking which random number source to use... " >&6; }
18804 if test x
"$USE_OPENSSL_RANDOM" = x
"1" ; then
18806 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18809 $as_echo "OpenSSL" >&6; }
18810 elif test x
"$USE_WIN32_RANDOM" = x
"1" ; then
18812 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18815 $as_echo "Windows native" >&6; }
18816 elif test x
"$USE_DEV_URANDOM" = x
"1" ; then
18818 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18821 $as_echo "/dev/urandom" >&6; }
18824 no source of strong random numbers was found
18825 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers." "$LINENO" 5
18828 # If not set in template file, set bytes to use libc memset()
18829 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18830 MEMSET_LOOP_LIMIT
=1024
18833 cat >>confdefs.h
<<_ACEOF
18834 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18839 if test "$enable_nls" = yes ; then
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18842 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18843 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18844 $as_echo_n "(cached) " >&6
18846 ac_func_search_save_LIBS
=$LIBS
18847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18856 char bind_textdomain_codeset ();
18860 return bind_textdomain_codeset ();
18865 for ac_lib
in '' intl
; do
18866 if test -z "$ac_lib"; then
18867 ac_res
="none required"
18870 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18872 if ac_fn_c_try_link
"$LINENO"; then :
18873 ac_cv_search_bind_textdomain_codeset
=$ac_res
18875 rm -f core conftest.err conftest.
$ac_objext \
18877 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18881 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18884 ac_cv_search_bind_textdomain_codeset
=no
18886 rm conftest.
$ac_ext
18887 LIBS
=$ac_func_search_save_LIBS
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18890 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18891 ac_res
=$ac_cv_search_bind_textdomain_codeset
18892 if test "$ac_res" != no
; then :
18893 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18896 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18899 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18900 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18903 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18907 if test -z "$MSGFMT"; then
18908 for ac_prog
in msgfmt
18910 # Extract the first word of "$ac_prog", so it can be a program name with args.
18911 set dummy
$ac_prog; ac_word
=$2
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18913 $as_echo_n "checking for $ac_word... " >&6; }
18914 if ${ac_cv_path_MSGFMT+:} false
; then :
18915 $as_echo_n "(cached) " >&6
18919 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18923 for as_dir
in $PATH
18926 test -z "$as_dir" && as_dir
=.
18927 for ac_exec_ext
in '' $ac_executable_extensions; do
18928 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18929 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18940 MSGFMT
=$ac_cv_path_MSGFMT
18941 if test -n "$MSGFMT"; then
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18943 $as_echo "$MSGFMT" >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946 $as_echo "no" >&6; }
18950 test -n "$MSGFMT" && break
18954 # Report the value of MSGFMT in configure's output in all cases.
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18956 $as_echo_n "checking for MSGFMT... " >&6; }
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18958 $as_echo "$MSGFMT" >&6; }
18961 if test -z "$MSGFMT"; then
18962 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18965 $as_echo_n "checking for msgfmt flags... " >&6; }
18966 if ${pgac_cv_msgfmt_flags+:} false
; then :
18967 $as_echo_n "(cached) " >&6
18969 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18970 pgac_cv_msgfmt_flags
=-c
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18974 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18975 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18977 if test -z "$MSGMERGE"; then
18978 for ac_prog
in msgmerge
18980 # Extract the first word of "$ac_prog", so it can be a program name with args.
18981 set dummy
$ac_prog; ac_word
=$2
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18983 $as_echo_n "checking for $ac_word... " >&6; }
18984 if ${ac_cv_path_MSGMERGE+:} false
; then :
18985 $as_echo_n "(cached) " >&6
18989 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18993 for as_dir
in $PATH
18996 test -z "$as_dir" && as_dir
=.
18997 for ac_exec_ext
in '' $ac_executable_extensions; do
18998 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18999 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
19000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19010 MSGMERGE
=$ac_cv_path_MSGMERGE
19011 if test -n "$MSGMERGE"; then
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19013 $as_echo "$MSGMERGE" >&6; }
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016 $as_echo "no" >&6; }
19020 test -n "$MSGMERGE" && break
19024 # Report the value of MSGMERGE in configure's output in all cases.
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
19026 $as_echo_n "checking for MSGMERGE... " >&6; }
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
19028 $as_echo "$MSGMERGE" >&6; }
19031 if test -z "$XGETTEXT"; then
19032 for ac_prog
in xgettext
19034 # Extract the first word of "$ac_prog", so it can be a program name with args.
19035 set dummy
$ac_prog; ac_word
=$2
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19037 $as_echo_n "checking for $ac_word... " >&6; }
19038 if ${ac_cv_path_XGETTEXT+:} false
; then :
19039 $as_echo_n "(cached) " >&6
19043 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
19046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19047 for as_dir
in $PATH
19050 test -z "$as_dir" && as_dir
=.
19051 for ac_exec_ext
in '' $ac_executable_extensions; do
19052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19053 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
19054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19064 XGETTEXT
=$ac_cv_path_XGETTEXT
19065 if test -n "$XGETTEXT"; then
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19067 $as_echo "$XGETTEXT" >&6; }
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 $as_echo "no" >&6; }
19074 test -n "$XGETTEXT" && break
19078 # Report the value of XGETTEXT in configure's output in all cases.
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
19080 $as_echo_n "checking for XGETTEXT... " >&6; }
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19082 $as_echo "$XGETTEXT" >&6; }
19088 # Check for Tcl configuration script tclConfig.sh
19089 if test "$with_tcl" = yes; then
19090 if test -z "$TCLSH"; then
19091 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
19093 # Extract the first word of "$ac_prog", so it can be a program name with args.
19094 set dummy
$ac_prog; ac_word
=$2
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19096 $as_echo_n "checking for $ac_word... " >&6; }
19097 if ${ac_cv_path_TCLSH+:} false
; then :
19098 $as_echo_n "(cached) " >&6
19102 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
19105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19106 for as_dir
in $PATH
19109 test -z "$as_dir" && as_dir
=.
19110 for ac_exec_ext
in '' $ac_executable_extensions; do
19111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19112 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
19113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19123 TCLSH
=$ac_cv_path_TCLSH
19124 if test -n "$TCLSH"; then
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
19126 $as_echo "$TCLSH" >&6; }
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19129 $as_echo "no" >&6; }
19133 test -n "$TCLSH" && break
19137 # Report the value of TCLSH in configure's output in all cases.
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
19139 $as_echo_n "checking for TCLSH... " >&6; }
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
19141 $as_echo "$TCLSH" >&6; }
19144 if test x
"$TCLSH" = x
""; then
19145 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
19149 $as_echo_n "checking for tclConfig.sh... " >&6; }
19150 # Let user override test
19151 if test -z "$TCL_CONFIG_SH"; then
19152 pgac_test_dirs
="$with_tclconfig"
19154 set X
$pgac_test_dirs; shift
19155 if test $# -eq 0; then
19156 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
19157 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
19158 # On newer macOS, $auto_path frequently doesn't include the place
19159 # where tclConfig.sh actually lives. Append that to the end, so as not
19160 # to break cases where a non-default Tcl installation is being used.
19161 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
19162 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
19164 set X
$pgac_test_dirs; shift
19168 if test -r "$pgac_dir/tclConfig.sh"; then
19169 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
19175 if test -z "$TCL_CONFIG_SH"; then
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19178 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
19181 $as_echo "$TCL_CONFIG_SH" >&6; }
19187 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
19188 eval TCL_LIBS
=\"$TCL_LIBS\"
19189 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
19190 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
19192 if test "$TCL_SHARED_BUILD" != 1; then
19193 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
19194 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
19196 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
19197 ac_save_CPPFLAGS
=$CPPFLAGS
19198 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
19199 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19200 if test "x$ac_cv_header_tcl_h" = xyes
; then :
19203 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
19207 CPPFLAGS
=$ac_save_CPPFLAGS
19210 # check for <perl.h>
19211 if test "$with_perl" = yes; then
19212 ac_save_CPPFLAGS
=$CPPFLAGS
19213 CPPFLAGS
="$CPPFLAGS $perl_includespec"
19214 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
19216 if test "x$ac_cv_header_perl_h" = xyes
; then :
19219 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
19223 # While we're at it, check that we can link to libperl.
19224 # On most platforms, if perl.h is there then libperl.so will be too, but at
19225 # this writing Debian packages them separately. There is no known reason to
19226 # waste cycles on separate probes for the Tcl or Python libraries, though.
19227 # On some Red Hat platforms, the link attempt can fail if we don't use
19228 # CFLAGS_SL while building the test program.
19229 ac_save_CFLAGS
=$CFLAGS
19230 CFLAGS
="$CFLAGS $CFLAGS_SL"
19231 pgac_save_LIBS
=$LIBS
19232 LIBS
="$perl_embed_ldflags"
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
19234 $as_echo_n "checking for libperl... " >&6; }
19235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19238 #include <EXTERN.h>
19249 if ac_fn_c_try_link
"$LINENO"; then :
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19251 $as_echo "yes" >&6; }
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254 $as_echo "no" >&6; }
19255 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
19257 rm -f core conftest.err conftest.
$ac_objext \
19258 conftest
$ac_exeext conftest.
$ac_ext
19259 LIBS
=$pgac_save_LIBS
19260 CFLAGS
=$ac_save_CFLAGS
19261 CPPFLAGS
=$ac_save_CPPFLAGS
19264 # check for <Python.h>
19265 if test "$with_python" = yes; then
19266 ac_save_CPPFLAGS
=$CPPFLAGS
19267 CPPFLAGS
="$python_includespec $CPPFLAGS"
19268 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
19269 if test "x$ac_cv_header_Python_h" = xyes
; then :
19272 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
19276 CPPFLAGS
=$ac_save_CPPFLAGS
19280 # Check for documentation-building tools
19282 if test -z "$XMLLINT"; then
19283 for ac_prog
in xmllint
19285 # Extract the first word of "$ac_prog", so it can be a program name with args.
19286 set dummy
$ac_prog; ac_word
=$2
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19288 $as_echo_n "checking for $ac_word... " >&6; }
19289 if ${ac_cv_path_XMLLINT+:} false
; then :
19290 $as_echo_n "(cached) " >&6
19294 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
19297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19298 for as_dir
in $PATH
19301 test -z "$as_dir" && as_dir
=.
19302 for ac_exec_ext
in '' $ac_executable_extensions; do
19303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19304 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
19305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19315 XMLLINT
=$ac_cv_path_XMLLINT
19316 if test -n "$XMLLINT"; then
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19318 $as_echo "$XMLLINT" >&6; }
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19325 test -n "$XMLLINT" && break
19329 # Report the value of XMLLINT in configure's output in all cases.
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
19331 $as_echo_n "checking for XMLLINT... " >&6; }
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19333 $as_echo "$XMLLINT" >&6; }
19336 if test -z "$XSLTPROC"; then
19337 for ac_prog
in xsltproc
19339 # Extract the first word of "$ac_prog", so it can be a program name with args.
19340 set dummy
$ac_prog; ac_word
=$2
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19342 $as_echo_n "checking for $ac_word... " >&6; }
19343 if ${ac_cv_path_XSLTPROC+:} false
; then :
19344 $as_echo_n "(cached) " >&6
19348 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19352 for as_dir
in $PATH
19355 test -z "$as_dir" && as_dir
=.
19356 for ac_exec_ext
in '' $ac_executable_extensions; do
19357 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19358 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19369 XSLTPROC
=$ac_cv_path_XSLTPROC
19370 if test -n "$XSLTPROC"; then
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19372 $as_echo "$XSLTPROC" >&6; }
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19375 $as_echo "no" >&6; }
19379 test -n "$XSLTPROC" && break
19383 # Report the value of XSLTPROC in configure's output in all cases.
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
19385 $as_echo_n "checking for XSLTPROC... " >&6; }
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19387 $as_echo "$XSLTPROC" >&6; }
19390 if test -z "$FOP"; then
19393 # Extract the first word of "$ac_prog", so it can be a program name with args.
19394 set dummy
$ac_prog; ac_word
=$2
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19396 $as_echo_n "checking for $ac_word... " >&6; }
19397 if ${ac_cv_path_FOP+:} false
; then :
19398 $as_echo_n "(cached) " >&6
19402 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
19405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19406 for as_dir
in $PATH
19409 test -z "$as_dir" && as_dir
=.
19410 for ac_exec_ext
in '' $ac_executable_extensions; do
19411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19412 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
19413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19423 FOP
=$ac_cv_path_FOP
19424 if test -n "$FOP"; then
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19426 $as_echo "$FOP" >&6; }
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19429 $as_echo "no" >&6; }
19433 test -n "$FOP" && break
19437 # Report the value of FOP in configure's output in all cases.
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
19439 $as_echo_n "checking for FOP... " >&6; }
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19441 $as_echo "$FOP" >&6; }
19444 if test -z "$DBTOEPUB"; then
19445 for ac_prog
in dbtoepub
19447 # Extract the first word of "$ac_prog", so it can be a program name with args.
19448 set dummy
$ac_prog; ac_word
=$2
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19450 $as_echo_n "checking for $ac_word... " >&6; }
19451 if ${ac_cv_path_DBTOEPUB+:} false
; then :
19452 $as_echo_n "(cached) " >&6
19456 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
19459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19460 for as_dir
in $PATH
19463 test -z "$as_dir" && as_dir
=.
19464 for ac_exec_ext
in '' $ac_executable_extensions; do
19465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19466 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
19467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19477 DBTOEPUB
=$ac_cv_path_DBTOEPUB
19478 if test -n "$DBTOEPUB"; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19480 $as_echo "$DBTOEPUB" >&6; }
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483 $as_echo "no" >&6; }
19487 test -n "$DBTOEPUB" && break
19491 # Report the value of DBTOEPUB in configure's output in all cases.
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
19493 $as_echo_n "checking for DBTOEPUB... " >&6; }
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19495 $as_echo "$DBTOEPUB" >&6; }
19500 # Check for test tools
19502 if test "$enable_tap_tests" = yes; then
19503 # Make sure we know where prove is.
19504 if test -z "$PROVE"; then
19505 for ac_prog
in prove
19507 # Extract the first word of "$ac_prog", so it can be a program name with args.
19508 set dummy
$ac_prog; ac_word
=$2
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19510 $as_echo_n "checking for $ac_word... " >&6; }
19511 if ${ac_cv_path_PROVE+:} false
; then :
19512 $as_echo_n "(cached) " >&6
19516 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
19519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19520 for as_dir
in $PATH
19523 test -z "$as_dir" && as_dir
=.
19524 for ac_exec_ext
in '' $ac_executable_extensions; do
19525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19526 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
19527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19537 PROVE
=$ac_cv_path_PROVE
19538 if test -n "$PROVE"; then
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19540 $as_echo "$PROVE" >&6; }
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19543 $as_echo "no" >&6; }
19547 test -n "$PROVE" && break
19551 # Report the value of PROVE in configure's output in all cases.
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
19553 $as_echo_n "checking for PROVE... " >&6; }
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19555 $as_echo "$PROVE" >&6; }
19558 if test -z "$PROVE"; then
19559 as_fn_error $?
"prove not found" "$LINENO" 5
19561 # Check for necessary Perl modules. You might think we should use
19562 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19563 # installation than perl, eg on MSys, so we have to check using prove.
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19565 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19566 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19567 if test $?
-eq 0; then
19568 # log the module version details, but don't show them interactively
19569 echo "$modulestderr" >&5
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571 $as_echo "yes" >&6; }
19573 # on failure, though, show the results to the user
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19575 $as_echo "$modulestderr" >&6; }
19576 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
19582 # We have to run the thread test near the end so we have all our symbols
19583 # defined. Cross compiling throws a warning.
19585 if test "$enable_thread_safety" = yes; then
19586 if test "$PORTNAME" != "win32"
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
19589 $as_echo_n "checking thread safety of required library functions... " >&6; }
19593 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
19594 LIBS
="$LIBS $PTHREAD_LIBS"
19595 if test "$cross_compiling" = yes; then :
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
19597 $as_echo "maybe" >&6; }
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19599 *** Skipping thread test program because of cross-compile build.
19600 *** Run the program in src/test/thread on the target machine.
19602 $as_echo "$as_me: WARNING:
19603 *** Skipping thread test program because of cross-compile build.
19604 *** Run the program in src/test/thread on the target machine.
19607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19609 #include "$srcdir/src/test/thread/thread_test.c"
19611 if ac_fn_c_try_run
"$LINENO"; then :
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19613 $as_echo "yes" >&6; }
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19617 as_fn_error $?
"thread test program failed
19618 This platform is not thread-safe. Check the file 'config.log' or compile
19619 and run src/test/thread/thread_test for the exact reason.
19620 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
19622 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19623 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
19630 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
19634 # If compiler will take -Wl,--as-needed (or various platform-specific
19635 # spellings thereof) then add that to LDFLAGS. This is much easier than
19636 # trying to filter LIBS to the minimum for each executable.
19637 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19638 # libreadline; therefore we postpone testing it until we know what library
19639 # dependencies readline has. The test code will try to link with $LIBS.
19640 if test "$with_readline" = yes; then
19641 link_test_func
=readline
19643 link_test_func
=exit
19646 if test "$PORTNAME" = "darwin"; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
19648 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
19649 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false
; then :
19650 $as_echo_n "(cached) " >&6
19652 pgac_save_LDFLAGS
=$LDFLAGS
19653 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19654 if test "$cross_compiling" = yes; then :
19655 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
="assuming no"
19657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19668 if ac_fn_c_try_run
"$LINENO"; then :
19669 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=yes
19671 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=no
19673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19677 LDFLAGS
="$pgac_save_LDFLAGS"
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
19680 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
19681 if test x
"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x
"yes"; then
19682 LDFLAGS
="$LDFLAGS -Wl,-dead_strip_dylibs"
19685 elif test "$PORTNAME" = "openbsd"; then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
19687 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
19688 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false
; then :
19689 $as_echo_n "(cached) " >&6
19691 pgac_save_LDFLAGS
=$LDFLAGS
19692 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19693 if test "$cross_compiling" = yes; then :
19694 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
="assuming no"
19696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19698 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19707 if ac_fn_c_try_run
"$LINENO"; then :
19708 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=yes
19710 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=no
19712 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19713 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19716 LDFLAGS
="$pgac_save_LDFLAGS"
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
19719 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
19720 if test x
"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x
"yes"; then
19721 LDFLAGS
="$LDFLAGS -Wl,-Bdynamic"
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
19726 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
19727 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false
; then :
19728 $as_echo_n "(cached) " >&6
19730 pgac_save_LDFLAGS
=$LDFLAGS
19731 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19732 if test "$cross_compiling" = yes; then :
19733 pgac_cv_prog_cc_ldflags__Wl___as_needed
="assuming no"
19735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h. */
19737 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19746 if ac_fn_c_try_run
"$LINENO"; then :
19747 pgac_cv_prog_cc_ldflags__Wl___as_needed
=yes
19749 pgac_cv_prog_cc_ldflags__Wl___as_needed
=no
19751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19755 LDFLAGS
="$pgac_save_LDFLAGS"
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
19758 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
19759 if test x
"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x
"yes"; then
19760 LDFLAGS
="$LDFLAGS -Wl,--as-needed"
19765 # Create compiler version string
19766 if test x
"$GCC" = x
"yes" ; then
19767 cc_string
=`${CC} --version | sed q`
19768 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19769 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19770 cc_string
=`${CC} -V 2>&1 | sed q`
19776 cat >>confdefs.h
<<_ACEOF
19777 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19781 # Supply a numeric version string for use by 3rd party add-ons
19782 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19783 PG_VERSION_NUM
="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
19785 $AWK '{printf "%d
%04d
", $1, $2}'`"
19787 cat >>confdefs.h
<<_ACEOF
19788 #define PG_VERSION_NUM $PG_VERSION_NUM
19793 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19794 # literally, so that it's possible to override it at build time using
19795 # a command like "make ... PG_SYSROOT=path". This has to be done after
19796 # we've finished all configure checks that depend on CPPFLAGS.
19797 # The same for LDFLAGS, too.
19798 if test x
"$PG_SYSROOT" != x
; then
19799 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19800 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19805 # Begin output steps
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19808 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19810 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19812 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19814 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19815 # Currently only used when LLVM is used
19816 if test "$with_llvm" = yes ; then
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19818 $as_echo "$as_me: using CXX=$CXX" >&6;}
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19820 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19822 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19824 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19826 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19829 # prepare build tree if outside source tree
19830 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19831 # Note 2: /bin/pwd might be better than shell's built-in at getting
19832 # a symlink-free name.
19833 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19837 if test "$no_create" != yes; then
19838 $as_echo_n "preparing build tree... " >&6
19839 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19840 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19841 || as_fn_error $?
"failed" "$LINENO" 5
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19843 $as_echo "done" >&6; }
19849 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19852 ac_config_links
="$ac_config_links src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
19855 if test "$PORTNAME" = "win32"; then
19856 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19860 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19863 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19866 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19869 cat >confcache
<<\_ACEOF
19870 # This file is a shell script that caches the results of configure
19871 # tests run on this system so they can be shared between configure
19872 # scripts and configure runs, see configure's option --config-cache.
19873 # It is not useful on other systems. If it contains results you don't
19874 # want to keep, you may remove or edit it.
19876 # config.status only pays attention to the cache file if you give it
19877 # the --recheck option to rerun configure.
19879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19881 # following values.
19885 # The following way of writing the cache mishandles newlines in values,
19886 # but we know of no workaround that is simple, portable, and efficient.
19887 # So, we kill variables containing newlines.
19888 # Ultrix sh set writes to stderr and can't be redirected directly,
19889 # and sets the high bit in the cache file unless we assign to the vars.
19891 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19892 eval ac_val
=\$
$ac_var
19896 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19900 _ | IFS | as_nl
) ;; #(
19901 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19902 *) { eval $ac_var=; unset $ac_var;} ;;
19908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19909 *${as_nl}ac_space
=\
*)
19910 # `set' does not quote correctly, so add quotes: double-quote
19911 # substitution turns \\\\ into \\, and sed turns \\ into \.
19914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19917 # `set' quotes correctly as required by POSIX, so do not add quotes.
19918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19931 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19932 if test -w "$cache_file"; then
19933 if test "x$cache_file" != "x/dev/null"; then
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19935 $as_echo "$as_me: updating cache $cache_file" >&6;}
19936 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19937 cat confcache
>"$cache_file"
19939 case $cache_file in #(
19941 mv -f confcache
"$cache_file"$$
&&
19942 mv -f "$cache_file"$$
"$cache_file" ;; #(
19944 mv -f confcache
"$cache_file" ;;
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19955 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19956 # Let make expand exec_prefix.
19957 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19959 DEFS
=-DHAVE_CONFIG_H
19964 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19965 # 1. Remove the extension, and $U if already installed.
19966 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19967 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19969 # will be set to the directory where LIBOBJS objects are built.
19970 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19971 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19973 LIBOBJS
=$ac_libobjs
19975 LTLIBOBJS
=$ac_ltlibobjs
19980 : "${CONFIG_STATUS=./config.status}"
19982 ac_clean_files_save
=$ac_clean_files
19983 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19985 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19987 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19989 # Generated by $as_me.
19990 # Run this file to recreate the current configuration.
19991 # Compiler output produced by configure, useful for debugging
19992 # configure, is in config.log if it exists.
19995 ac_cs_recheck=false
19998 SHELL=\${CONFIG_SHELL-$SHELL}
20001 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20002 ## -------------------- ##
20003 ## M4sh Initialization. ##
20004 ## -------------------- ##
20006 # Be more Bourne compatible
20007 DUALCASE
=1; export DUALCASE
# for MKS sh
20008 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20011 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20012 # is contrary to our usage. Disable this feature.
20013 alias -g '${1+"$@"}'='"$@"'
20014 setopt NO_GLOB_SUBST
20016 case `(set -o) 2>/dev/null` in #(
20028 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20029 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20030 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20032 # Prefer a ksh shell builtin over an external printf program on Solaris,
20033 # but without wasting forks for bash or zsh.
20034 if test -z "$BASH_VERSION$ZSH_VERSION" \
20035 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20036 as_echo='print
-r --'
20037 as_echo_n='print
-rn --'
20038 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20039 as_echo='printf %s
\n'
20040 as_echo_n='printf %s
'
20042 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20043 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20044 as_echo_n='/usr
/ucb
/echo -n'
20046 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20047 as_echo_n_body='eval
20051 expr "X$arg" : "X\\(.*\\)$as_nl";
20052 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20054 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20056 export as_echo_n_body
20057 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20059 export as_echo_body
20060 as_echo='sh
-c $as_echo_body as_echo
'
20063 # The user is always right.
20064 if test "${PATH_SEPARATOR+set}" != set; then
20066 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20067 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20074 # We need space, tab and new line, in precisely that order. Quoting is
20075 # there to prevent editors from complaining about space-tab.
20076 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20077 # splitting by setting IFS to empty value.)
20080 # Find who we are. Look in the path if we contain no directory separator.
20083 *[\\/]* ) as_myself=$0 ;;
20084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20085 for as_dir in $PATH
20088 test -z "$as_dir" && as_dir=.
20089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20095 # We did not find ourselves, most probably we were run as `sh COMMAND'
20096 # in which case we are not to be found in the path.
20097 if test "x$as_myself" = x
; then
20100 if test ! -f "$as_myself"; then
20101 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20105 # Unset variables that we do not need and which cause bugs (e.g. in
20106 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20107 # suppresses any "Segmentation fault" message there. '((' could
20108 # trigger a bug in pdksh 5.2.14.
20109 for as_var
in BASH_ENV ENV MAIL MAILPATH
20110 do eval test x\
${$as_var+set} = xset \
20111 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20124 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20127 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20128 # ----------------------------------------
20129 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20130 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20131 # script with STATUS, using 1 if that was 0.
20134 as_status
=$1; test $as_status -eq 0 && as_status
=1
20136 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20137 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20139 $as_echo "$as_me: error: $2" >&2
20140 as_fn_exit
$as_status
20144 # as_fn_set_status STATUS
20145 # -----------------------
20146 # Set $? to STATUS, without forking.
20147 as_fn_set_status
()
20150 } # as_fn_set_status
20152 # as_fn_exit STATUS
20153 # -----------------
20154 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20158 as_fn_set_status
$1
20164 # Portably unset VAR.
20167 { eval $1=; unset $1;}
20169 as_unset
=as_fn_unset
20170 # as_fn_append VAR VALUE
20171 # ----------------------
20172 # Append the text in VALUE to the end of the definition contained in VAR. Take
20173 # advantage of any shell optimizations that allow amortized linear growth over
20174 # repeated appends, instead of the typical quadratic growth present in naive
20176 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20177 eval 'as_fn_append ()
20188 # as_fn_arith ARG...
20189 # ------------------
20190 # Perform arithmetic evaluation on the ARGs, and store the result in the
20191 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20192 # must be portable across $(()) and expr.
20193 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20194 eval 'as_fn_arith ()
20201 as_val
=`expr "$@" || test $? -eq 1`
20206 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20207 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20213 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20214 as_basename
=basename
20219 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20225 as_me
=`$as_basename -- "$0" ||
20226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20227 X"$0" : 'X\(//\)$' \| \
20228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20230 sed '/^.*\/\([^/][^/]*\)\/*$/{
20244 # Avoid depending upon Character Ranges.
20245 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20246 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20247 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20248 as_cr_digits
='0123456789'
20249 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20251 ECHO_C
= ECHO_N
= ECHO_T
=
20252 case `echo -n x` in #(((((
20254 case `echo 'xy\c'` in
20255 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20257 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20264 rm -f conf$$ conf$$.exe conf$$.
file
20265 if test -d conf$$.dir
; then
20266 rm -f conf$$.dir
/conf$$.
file
20269 mkdir conf$$.dir
2>/dev
/null
20271 if (echo >conf$$.
file) 2>/dev
/null
; then
20272 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20274 # ... but there are two gotchas:
20275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20277 # In both cases, we have to default to `cp -pR'.
20278 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20280 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20288 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20289 rmdir conf$$.dir
2>/dev
/null
20294 # Create "$as_dir" as a directory, including parents if necessary.
20299 -*) as_dir
=.
/$as_dir;;
20301 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20305 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20306 *) as_qdir
=$as_dir;;
20308 as_dirs
="'$as_qdir' $as_dirs"
20309 as_dir
=`$as_dirname -- "$as_dir" ||
20310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20311 X"$as_dir" : 'X\(//\)[^/]' \| \
20312 X"$as_dir" : 'X\(//\)$' \| \
20313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20314 $as_echo X"$as_dir" |
20315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20319 /^X\(\/\/\)[^/].*/{
20332 test -d "$as_dir" && break
20334 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20335 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20339 if mkdir
-p .
2>/dev
/null
; then
20340 as_mkdir_p
='mkdir -p "$as_dir"'
20342 test -d .
/-p && rmdir .
/-p
20347 # as_fn_executable_p FILE
20348 # -----------------------
20349 # Test if FILE is an executable regular file.
20350 as_fn_executable_p
()
20352 test -f "$1" && test -x "$1"
20353 } # as_fn_executable_p
20354 as_test_x
='test -x'
20355 as_executable_p
=as_fn_executable_p
20357 # Sed expression to map a string onto a valid CPP name.
20358 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20360 # Sed expression to map a string onto a valid variable name.
20361 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20365 ## ----------------------------------- ##
20366 ## Main body of $CONFIG_STATUS script. ##
20367 ## ----------------------------------- ##
20369 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20372 # Save the log message, to keep $0 and so on meaningful, and to
20373 # report actual input values of CONFIG_FILES etc. instead of their
20374 # values after options handling.
20376 This file was extended by PostgreSQL $as_me 12.18, which was
20377 generated by GNU Autoconf 2.69. Invocation command line was
20379 CONFIG_FILES = $CONFIG_FILES
20380 CONFIG_HEADERS = $CONFIG_HEADERS
20381 CONFIG_LINKS = $CONFIG_LINKS
20382 CONFIG_COMMANDS = $CONFIG_COMMANDS
20385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20390 case $ac_config_files in *"
20391 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20394 case $ac_config_headers in *"
20395 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20400 # Files that config.status was made for.
20401 config_files="$ac_config_files"
20402 config_headers="$ac_config_headers"
20403 config_links="$ac_config_links"
20404 config_commands="$ac_config_commands"
20408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20410 \`$as_me' instantiates files and other configuration actions
20411 from templates according to the current configuration. Unless the files
20412 and actions are specified as TAGs, all are instantiated by default.
20414 Usage: $0 [OPTION]... [TAG]...
20416 -h, --help print this help, then exit
20417 -V, --version print version number and configuration settings, then exit
20418 --config print configuration, then exit
20419 -q, --quiet, --silent
20420 do not print progress messages
20421 -d, --debug don't remove temporary files
20422 --recheck update $as_me by reconfiguring in the same conditions
20423 --file=FILE[:TEMPLATE]
20424 instantiate the configuration file FILE
20425 --header=FILE[:TEMPLATE]
20426 instantiate the configuration header FILE
20428 Configuration files:
20431 Configuration headers:
20434 Configuration links:
20437 Configuration commands:
20440 Report bugs to <pgsql-bugs@lists.postgresql.org>."
20443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20444 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20446 PostgreSQL config.status 12.18
20447 configured by $0, generated by GNU Autoconf 2.69,
20448 with options \\"\$ac_cs_config\\"
20450 Copyright (C) 2012 Free Software Foundation, Inc.
20451 This config.status script is free software; the Free Software Foundation
20452 gives unlimited permission to copy, distribute and modify it."
20459 test -n "\$AWK" || AWK=awk
20462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20463 # The default lists apply if the user does not specify any file.
20469 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20470 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20474 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20486 # Handling of the options.
20487 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20489 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20490 $as_echo "$ac_cs_version"; exit ;;
20491 --config |
--confi |
--conf |
--con |
--co |
--c )
20492 $as_echo "$ac_cs_config"; exit ;;
20493 --debug |
--debu |
--deb |
--de |
--d |
-d )
20495 --file |
--fil |
--fi |
--f )
20498 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20499 '') as_fn_error $?
"missing file argument" ;;
20501 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20502 ac_need_defaults
=false
;;
20503 --header |
--heade |
--head |
--hea )
20506 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20508 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20509 ac_need_defaults
=false
;;
20511 # Conflict between --help and --header
20512 as_fn_error $?
"ambiguous option: \`$1'
20513 Try \`$0 --help' for more information.";;
20514 --help |
--hel |
-h )
20515 $as_echo "$ac_cs_usage"; exit ;;
20516 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20517 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20520 # This is an error.
20521 -*) as_fn_error $?
"unrecognized option: \`$1'
20522 Try \`$0 --help' for more information." ;;
20524 *) as_fn_append ac_config_targets
" $1"
20525 ac_need_defaults
=false
;;
20531 ac_configure_extra_args
=
20533 if $ac_cs_silent; then
20535 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20540 if \$ac_cs_recheck; then
20541 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20543 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20544 CONFIG_SHELL='$SHELL'
20545 export CONFIG_SHELL
20550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20555 ## Running $as_me. ##
20561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20566 # Handling of arguments.
20567 for ac_config_target
in $ac_config_targets
20569 case $ac_config_target in
20570 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
20571 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
20572 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
20573 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
20574 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
20575 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
20576 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
20577 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
20578 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
20579 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
20580 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
20582 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20587 # If the user did not use the arguments to specify the items to instantiate,
20588 # then the envvar interface is used. Set only those that are not.
20589 # We use the long form for the default assignment because of an extremely
20590 # bizarre bug on SunOS 4.1.3.
20591 if $ac_need_defaults; then
20592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20594 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20598 # Have a temporary directory for convenience. Make it in the build tree
20599 # simply because there is no reason against having it here, and in addition,
20600 # creating and moving files from /tmp can sometimes cause problems.
20601 # Hook for its removal unless debugging.
20602 # Note that there is a small window in which the directory will not be cleaned:
20603 # after its creation but before its name has been assigned to `$tmp'.
20607 trap 'exit_status=$?
20608 : "${ac_tmp:=$tmp}"
20609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20611 trap 'as_fn_exit 1' 1 2 13 15
20613 # Create a (secure) tmp directory for tmp files.
20616 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20620 tmp
=.
/conf$$
-$RANDOM
20621 (umask 077 && mkdir
"$tmp")
20622 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20625 # Set up the scripts for CONFIG_FILES section.
20626 # No need to generate them if there are no CONFIG_FILES.
20627 # This happens for instance with `./config.status config.h'.
20628 if test -n "$CONFIG_FILES"; then
20631 ac_cr
=`echo X | tr X '\015'`
20632 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20633 # But we know of no other shell where ac_cr would be empty at this
20634 # point, so we can use a bashism as a fallback.
20635 if test "x$ac_cr" = x
; then
20636 eval ac_cr
=\$
\'\\r
\'
20638 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20642 ac_cs_awk_cr
=$ac_cr
20645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20650 echo "cat >conf$$subs.awk <<_ACEOF" &&
20651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20653 } >conf$$subs.sh ||
20654 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20657 for ac_last_try in false false false false false :; do
20658 . ./conf$$subs.sh ||
20659 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20661 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20662 if test $ac_delim_n = $ac_delim_num; then
20664 elif $ac_last_try; then
20665 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20667 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20670 rm -f conf$$subs.sh
20672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20673 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20677 s/^/S["/; s
/!.
*/"]=/
20687 s/\(.\{148\}\)..*/\1/
20689 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20694 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20701 s/\(.\{148\}\)..*/\1/
20703 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20707 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20712 ' <conf$$subs.awk | sed '
20717 ' >>$CONFIG_STATUS || ac_write_fail=1
20718 rm -f conf$$subs.awk
20719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20721 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20722 for (key in S) S_is_set[key] = 1
20728 nfields = split(line, field, "@
")
20730 len = length(field[1])
20731 for (i = 2; i < nfields; i++) {
20733 keylen = length(key)
20734 if (S_is_set[key]) {
20736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20737 len += length(value) + length(field[++i])
20748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20749 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20750 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20753 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20754 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20759 # trailing colons and then remove the whole line if VPATH becomes empty
20760 # (actually we leave an empty line to preserve line numbers).
20761 if test "x
$srcdir" = x.; then
20762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20781 fi # test -n "$CONFIG_FILES"
20783 # Set up the scripts for CONFIG_HEADERS section.
20784 # No need to generate them if there are no CONFIG_HEADERS.
20785 # This happens for instance with `./config.status Makefile'.
20786 if test -n "$CONFIG_HEADERS"; then
20787 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20791 # Transform confdefs.h into an awk script `defines.awk', embedded as
20792 # here-document in config.status, that substitutes the proper values into
20793 # config.h.in to produce config.h.
20795 # Create a delimiter string that does not exist in confdefs.h, to ease
20796 # handling of long lines.
20798 for ac_last_try in false false :; do
20799 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20800 if test -z "$ac_tt"; then
20802 elif $ac_last_try; then
20803 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20805 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20809 # For the awk script, D is an array of macro values keyed by name,
20810 # likewise P contains macro parameters if any. Preserve backslash
20811 # newline sequences.
20813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20815 s/.\{148\}/&'"$ac_delim"'/g
20818 s/^[ ]*#[ ]*define[ ][ ]*/ /
20825 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20827 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20832 D["\
1"]=" \
3\\\\\\n
"\\/p
20834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20839 s/.\{148\}/&'"$ac_delim"'/g
20844 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20847 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20849 ' <confdefs.h | sed '
20850 s/'"$ac_delim"'/"\\\
20851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20854 for (key in D) D_is_set[key] = 1
20857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20859 split(line, arg, " ")
20860 if (arg[1] == "#") {
20864 defundef
= substr
(arg
[1], 2)
20867 split(mac1
, mac2
, "(") #)
20869 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20870 if (D_is_set
[macro
]) {
20871 # Preserve the white space surrounding the "#".
20872 print prefix
"define", macro P
[macro
] D
[macro
]
20875 # Replace #undef with comments. This is necessary, for example,
20876 # in the case of _POSIX_SOURCE, which is predefined and required
20877 # on some systems where configure will not decide to define it.
20878 if (defundef
== "undef") {
20879 print
"/*", prefix defundef
, macro
, "*/"
20887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20888 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20889 fi # test -n "$CONFIG_HEADERS"
20892 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20897 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20899 case $ac_mode$ac_tag in
20901 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20902 :[FH
]-) ac_tag
=-:-;;
20903 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20920 -) ac_f
="$ac_tmp/stdin";;
20921 *) # Look for the file first in the build tree, then in the source tree
20922 # (if the path is not absolute). The absolute path cannot be DOS-style,
20923 # because $ac_f cannot contain `:'.
20927 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20929 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20931 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20932 as_fn_append ac_file_inputs
" '$ac_f'"
20935 # Let's still pretend it is `configure' which instantiates (i.e., don't
20936 # use $as_me), people would be surprised to read:
20937 # /* config.h. Generated by config.status. */
20938 configure_input
='Generated from '`
20939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20941 if test x
"$ac_file" != x-
; then
20942 configure_input
="$ac_file. $configure_input"
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20944 $as_echo "$as_me: creating $ac_file" >&6;}
20946 # Neutralize special characters interpreted by sed in replacement strings.
20947 case $configure_input in #(
20948 *\
&* |
*\|
* |
*\\* )
20949 ac_sed_conf_input
=`$as_echo "$configure_input" |
20950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20951 *) ac_sed_conf_input
=$configure_input;;
20955 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20956 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20961 ac_dir
=`$as_dirname -- "$ac_file" ||
20962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20963 X"$ac_file" : 'X\(//\)[^/]' \| \
20964 X"$ac_file" : 'X\(//\)$' \| \
20965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20966 $as_echo X"$ac_file" |
20967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20971 /^X\(\/\/\)[^/].*/{
20984 as_dir
="$ac_dir"; as_fn_mkdir_p
20988 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20990 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20991 # A ".." for each directory in $ac_dir_suffix.
20992 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20993 case $ac_top_builddir_sub in
20994 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20995 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20998 ac_abs_top_builddir
=$ac_pwd
20999 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21000 # for backward compatibility:
21001 ac_top_builddir
=$ac_top_build_prefix
21004 .
) # We are building in place.
21006 ac_top_srcdir
=$ac_top_builddir_sub
21007 ac_abs_top_srcdir
=$ac_pwd ;;
21008 [\\/]* | ?
:[\\/]* ) # Absolute name.
21009 ac_srcdir
=$srcdir$ac_dir_suffix;
21010 ac_top_srcdir
=$srcdir
21011 ac_abs_top_srcdir
=$srcdir ;;
21012 *) # Relative name.
21013 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21014 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21015 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21017 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21027 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21028 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21030 ac_MKDIR_P
=$MKDIR_P
21032 [\\/$
]* | ?
:[\\/]* ) ;;
21033 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21038 # If the template does not know about datarootdir, expand it.
21039 # FIXME: This hack should be removed a few years after 2.60.
21040 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21051 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21052 *datarootdir
*) ac_datarootdir_seen
=yes;;
21053 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21055 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21058 ac_datarootdir_hack='
21059 s&@datadir@&$datadir&g
21060 s&@docdir@&$docdir&g
21061 s&@infodir@&$infodir&g
21062 s&@localedir@&$localedir&g
21063 s&@mandir@&$mandir&g
21064 s&\\\${datarootdir}&$datarootdir&g' ;;
21068 # Neutralize VPATH when `$srcdir' = `.'.
21069 # Shell code in configure.ac might set extrasub.
21070 # FIXME: do we really want to maintain this feature?
21071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21072 ac_sed_extra="$ac_vpsub
21075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21077 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21078 s|@configure_input@|
$ac_sed_conf_input|
;t t
21079 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21080 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21081 s
&@srcdir@
&$ac_srcdir&;t t
21082 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21083 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21084 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21085 s
&@builddir@
&$ac_builddir&;t t
21086 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21087 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21088 s
&@INSTALL@
&$ac_INSTALL&;t t
21089 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21090 $ac_datarootdir_hack
21092 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
21093 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21096 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21098 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21100 which seems to be undefined. Please make sure it is defined" >&5
21101 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21102 which seems to be undefined. Please make sure it is defined" >&2;}
21104 rm -f "$ac_tmp/stdin"
21106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21107 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21115 if test x"$ac_file" != x-; then
21117 $as_echo "/* $configure_input */" \
21118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21119 } >"$ac_tmp/config.h" \
21120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21121 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21123 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21126 mv "$ac_tmp/config.h" "$ac_file" \
21127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21130 $as_echo "/* $configure_input */" \
21131 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21132 || as_fn_error $? "could not create -" "$LINENO" 5
21140 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21143 # Prefer the file from the source tree if names are identical.
21144 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21145 ac_source=$srcdir/$ac_source
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21149 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21151 if test ! -r "$ac_source"; then
21152 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21156 # Try a relative symlink, then a hard link, then a copy.
21158 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21159 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21161 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21162 ln "$ac_source" "$ac_file" 2>/dev/null ||
21163 cp -p "$ac_source" "$ac_file" ||
21164 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21168 $as_echo "$as_me: executing $ac_file commands" >&6;}
21173 case $ac_file$ac_mode in
21174 "check_win32_symlinks":C)
21175 # Links sometimes fail undetected on Mingw -
21176 # so here we detect it and warn the user
21177 for FILE in $CONFIG_LINKS
21179 # test -e works for symlinks in the MinGW console
21180 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
21181 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
21184 "src/include/pg_config.h":H)
21185 # Update timestamp for pg_config.h (see Makefile.global)
21186 echo >src/include/stamp-h
21188 "src/include/pg_config_ext.h":H)
21189 # Update timestamp for pg_config_ext.h (see Makefile.global)
21190 echo >src/include/stamp-ext-h
21192 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
21200 ac_clean_files=$ac_clean_files_save
21202 test $ac_write_fail = 0 ||
21203 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21206 # configure is writing to config.log, and then calls config.status.
21207 # config.status does its own redirection, appending to config.log.
21208 # Unfortunately, on DOS this fails, as config.log is still kept open
21209 # by configure, so config.status won't be able to
write to it
; its
21210 # output is simply discarded. So we exec the FD to /dev/null,
21211 # effectively closing config.log, so it can be properly (re)opened and
21212 # appended to by config.status. When coming back to configure, we
21213 # need to make the FD available again.
21214 if test "$no_create" != yes; then
21216 ac_config_status_args
=
21217 test "$silent" = yes &&
21218 ac_config_status_args
="$ac_config_status_args --quiet"
21220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21223 # would make configure fail if this is the last instruction.
21224 $ac_cs_success || as_fn_exit
1
21226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}