2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 16devel.
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-2022, 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
='16devel'
586 PACKAGE_STRING
='PostgreSQL 16devel'
587 PACKAGE_BUGREPORT
='pgsql-bugs@lists.postgresql.org'
588 PACKAGE_URL
='https://www.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
666 python_additional_libs
747 PERMIT_DECLARATION_AFTER_STATEMENT
818 program_transform_name
831 enable_option_checking
837 enable_integer_datetimes
870 with_libedit_preferred
884 ac_precious_vars
='build_alias
918 # Initialize some variables set by options.
920 ac_init_version
=false
921 ac_unrecognized_opts
=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name
=s
,x
,x
,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir
='${exec_prefix}/bin'
947 sbindir
='${exec_prefix}/sbin'
948 libexecdir
='${exec_prefix}/libexec'
949 datarootdir
='${prefix}/share'
950 datadir
='${datarootdir}'
951 sysconfdir
='${prefix}/etc'
952 sharedstatedir
='${prefix}/com'
953 localstatedir
='${prefix}/var'
954 includedir
='${prefix}/include'
955 oldincludedir
='/usr/include'
956 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir
='${datarootdir}/info'
962 libdir
='${exec_prefix}/lib'
963 localedir
='${datarootdir}/locale'
964 mandir
='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\
$ac_option
978 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
991 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
994 -build |
--build |
--buil |
--bui |
--bu)
995 ac_prev
=build_alias
;;
996 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
997 build_alias
=$ac_optarg ;;
999 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1000 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1001 ac_prev
=cache_file
;;
1002 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1003 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1004 cache_file
=$ac_optarg ;;
1006 --config-cache |
-C)
1007 cache_file
=config.cache
;;
1009 -datadir |
--datadir |
--datadi |
--datad)
1011 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1012 datadir
=$ac_optarg ;;
1014 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1015 |
--dataroo |
--dataro |
--datar)
1016 ac_prev
=datarootdir
;;
1017 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1018 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1019 datarootdir
=$ac_optarg ;;
1021 -disable-* |
--disable-*)
1022 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1025 as_fn_error $?
"invalid feature name: $ac_useropt"
1026 ac_useropt_orig
=$ac_useropt
1027 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_
$ac_useropt"
1032 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep
=', ';;
1035 eval enable_
$ac_useropt=no
;;
1037 -docdir |
--docdir |
--docdi |
--doc |
--do)
1039 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1040 docdir
=$ac_optarg ;;
1042 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1044 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1045 dvidir
=$ac_optarg ;;
1047 -enable-* |
--enable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error $?
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=\
$ac_optarg ;;
1063 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1064 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1065 |
--exec |
--exe |
--ex)
1066 ac_prev
=exec_prefix
;;
1067 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1068 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1069 |
--exec=* |
--exe=* |
--ex=*)
1070 exec_prefix
=$ac_optarg ;;
1072 -gas |
--gas |
--ga |
--g)
1073 # Obsolete; use --with-gas.
1076 -help |
--help |
--hel |
--he |
-h)
1077 ac_init_help
=long
;;
1078 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1079 ac_init_help
=recursive
;;
1080 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1081 ac_init_help
=short
;;
1083 -host |
--host |
--hos |
--ho)
1084 ac_prev
=host_alias
;;
1085 -host=* |
--host=* |
--hos=* |
--ho=*)
1086 host_alias
=$ac_optarg ;;
1088 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1090 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1092 htmldir
=$ac_optarg ;;
1094 -includedir |
--includedir |
--includedi |
--included |
--include \
1095 |
--includ |
--inclu |
--incl |
--inc)
1096 ac_prev
=includedir
;;
1097 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1098 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1099 includedir
=$ac_optarg ;;
1101 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1103 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1104 infodir
=$ac_optarg ;;
1106 -libdir |
--libdir |
--libdi |
--libd)
1108 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1109 libdir
=$ac_optarg ;;
1111 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1112 |
--libexe |
--libex |
--libe)
1113 ac_prev
=libexecdir
;;
1114 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1115 |
--libexe=* |
--libex=* |
--libe=*)
1116 libexecdir
=$ac_optarg ;;
1118 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1119 ac_prev
=localedir
;;
1120 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1121 localedir
=$ac_optarg ;;
1123 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1124 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1125 ac_prev
=localstatedir
;;
1126 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1127 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1128 localstatedir
=$ac_optarg ;;
1130 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1132 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1133 mandir
=$ac_optarg ;;
1135 -nfp |
--nfp |
--nf)
1136 # Obsolete; use --without-fp.
1139 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1140 |
--no-cr |
--no-c |
-n)
1143 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1144 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1147 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1148 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1149 |
--oldin |
--oldi |
--old |
--ol |
--o)
1150 ac_prev
=oldincludedir
;;
1151 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1152 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1153 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1154 oldincludedir
=$ac_optarg ;;
1156 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1158 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1159 prefix
=$ac_optarg ;;
1161 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1162 |
--program-pre |
--program-pr |
--program-p)
1163 ac_prev
=program_prefix
;;
1164 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1165 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1166 program_prefix
=$ac_optarg ;;
1168 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1169 |
--program-suf |
--program-su |
--program-s)
1170 ac_prev
=program_suffix
;;
1171 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1172 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1173 program_suffix
=$ac_optarg ;;
1175 -program-transform-name |
--program-transform-name \
1176 |
--program-transform-nam |
--program-transform-na \
1177 |
--program-transform-n |
--program-transform- \
1178 |
--program-transform |
--program-transfor \
1179 |
--program-transfo |
--program-transf \
1180 |
--program-trans |
--program-tran \
1181 |
--progr-tra |
--program-tr |
--program-t)
1182 ac_prev
=program_transform_name
;;
1183 -program-transform-name=* |
--program-transform-name=* \
1184 |
--program-transform-nam=* |
--program-transform-na=* \
1185 |
--program-transform-n=* |
--program-transform-=* \
1186 |
--program-transform=* |
--program-transfor=* \
1187 |
--program-transfo=* |
--program-transf=* \
1188 |
--program-trans=* |
--program-tran=* \
1189 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1190 program_transform_name
=$ac_optarg ;;
1192 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1194 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1195 pdfdir
=$ac_optarg ;;
1197 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1199 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1202 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1203 |
-silent |
--silent |
--silen |
--sile |
--sil)
1206 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1208 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1210 sbindir
=$ac_optarg ;;
1212 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1213 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1214 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1216 ac_prev
=sharedstatedir
;;
1217 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1218 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1219 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1221 sharedstatedir
=$ac_optarg ;;
1223 -site |
--site |
--sit)
1225 -site=* |
--site=* |
--sit=*)
1228 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1230 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1231 srcdir
=$ac_optarg ;;
1233 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1234 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1235 ac_prev
=sysconfdir
;;
1236 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1237 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1238 sysconfdir
=$ac_optarg ;;
1240 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1241 ac_prev
=target_alias
;;
1242 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1243 target_alias
=$ac_optarg ;;
1245 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1248 -version |
--version |
--versio |
--versi |
--vers |
-V)
1249 ac_init_version
=: ;;
1252 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=\
$ac_optarg ;;
1267 -without-* |
--without-*)
1268 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1271 as_fn_error $?
"invalid package name: $ac_useropt"
1272 ac_useropt_orig
=$ac_useropt
1273 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep
=', ';;
1281 eval with_
$ac_useropt=no
;;
1284 # Obsolete; use --with-x.
1287 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1288 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1289 ac_prev
=x_includes
;;
1290 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1291 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1292 x_includes
=$ac_optarg ;;
1294 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1295 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1296 ac_prev
=x_libraries
;;
1297 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1298 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1299 x_libraries
=$ac_optarg ;;
1301 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1306 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1310 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1312 eval $ac_envvar=\
$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326 if test -n "$ac_prev"; then
1327 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $?
"missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1334 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 # Check all directory arguments for consistency.
1340 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val
=\$
$ac_var
1346 # Remove trailing slashes.
1349 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\
$ac_val;;
1352 # Be sure to have absolute directory names.
1354 [\\/$
]* | ?
:[\\/]* ) continue;;
1355 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1357 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target
=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x
; then
1369 if test "x$build_alias" = x
; then
1370 cross_compiling
=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1379 test "$silent" = yes && exec 6>/dev
/null
1382 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di
=`ls -di .` &&
1384 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $?
"working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $?
"pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted
=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir
=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted
=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1426 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 for ac_var
in $ac_precious_vars; do
1443 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1445 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures PostgreSQL 16devel to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive
) echo "Configuration of PostgreSQL 16devel:";;
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --disable-integer-datetimes
1530 obsolete option
, no longer supported
1531 --enable-nls[=LANGUAGES
]
1532 enable Native Language Support
1533 --disable-rpath do not embed shared library search path
in
1535 --disable-spinlocks do not use spinlocks
1536 --disable-atomics do not use atomic operations
1537 --enable-debug build with debugging symbols
(-g)
1538 --enable-profiling build with profiling enabled
1539 --enable-coverage build with coverage testing instrumentation
1540 --enable-dtrace build with DTrace support
1541 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1542 --enable-depend turn on automatic dependency tracking
1543 --enable-cassert enable assertion checks
(for debugging
)
1544 --disable-thread-safety disable thread-safety
in client libraries
1545 --disable-largefile omit support
for large files
1548 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1549 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1550 --with-extra-version=STRING
1551 append STRING to version
1552 --with-template=NAME override operating system template
1553 --with-includes=DIRS
look for additional header files
in DIRS
1554 --with-libraries=DIRS
look for additional libraries
in DIRS
1555 --with-libs=DIRS alternative spelling of
--with-libraries
1556 --with-pgport=PORTNUM
set default port number
[5432]
1557 --with-blocksize=BLOCKSIZE
1558 set table block size
in kB
[8]
1559 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1560 --with-wal-blocksize=BLOCKSIZE
1561 set WAL block size
in kB
[8]
1562 --with-CC=CMD
set compiler
(deprecated
)
1563 --with-llvm build with LLVM based JIT support
1564 --with-icu build with ICU support
1565 --with-tcl build Tcl modules
(PL
/Tcl
)
1566 --with-tclconfig=DIR tclConfig.sh is
in DIR
1567 --with-perl build Perl modules
(PL
/Perl
)
1568 --with-python build Python modules
(PL
/Python
)
1569 --with-gssapi build with GSSAPI support
1570 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1572 --with-pam build with PAM support
1573 --with-bsd-auth build with BSD Authentication support
1574 --with-ldap build with LDAP support
1575 --with-bonjour build with Bonjour support
1576 --with-selinux build with SELinux support
1577 --with-systemd build with systemd support
1578 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1579 --with-libedit-preferred
1580 prefer BSD Libedit over GNU Readline
1581 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1582 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1583 --with-libxml build with XML support
1584 --with-libxslt use XSLT support when building contrib
/xml2
1585 --with-system-tzdata=DIR
1586 use system
time zone data
in DIR
1587 --without-zlib do not use Zlib
1588 --with-lz4 build with LZ4 support
1589 --with-zstd build with ZSTD support
1590 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1591 --with-ssl=LIB use LIB
for SSL
/TLS support
(openssl
)
1592 --with-openssl obsolete spelling of
--with-ssl=openssl
1594 Some influential environment variables
:
1595 CC C compiler
command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1598 nonstandard directory
<lib dir
>
1599 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1600 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1601 you have headers
in a nonstandard directory
<include dir
>
1602 CXX C
++ compiler
command
1603 CXXFLAGS C
++ compiler flags
1604 LLVM_CONFIG path to llvm-config
command
1605 CLANG path to clang compiler to generate bitcode
1607 PKG_CONFIG path to pkg-config utility
1609 directories to add to pkg-config
's search path
1611 path overriding pkg-config's built-in search path
1612 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1613 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1614 XML2_CONFIG path to xml2-config utility
1615 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1616 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1617 LZ4_CFLAGS C compiler flags
for LZ4
, overriding pkg-config
1618 LZ4_LIBS linker flags
for LZ4
, overriding pkg-config
1619 ZSTD_CFLAGS C compiler flags
for ZSTD
, overriding pkg-config
1620 ZSTD_LIBS linker flags
for ZSTD
, overriding pkg-config
1621 LDFLAGS_EX extra linker flags
for linking executables only
1622 LDFLAGS_SL extra linker flags
for linking shared libraries only
1624 PYTHON Python program
1625 MSGFMT msgfmt program
for NLS
1626 TCLSH Tcl interpreter program
(tclsh
)
1628 Use these variables to override the choices made by
`configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1631 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1632 PostgreSQL home page: <https://www.postgresql.org/>.
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1662 .) # We are building in place.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1695 PostgreSQL configure 16devel
1696 generated by GNU Autoconf 2.69
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1702 Copyright (c) 1996-2022, PostgreSQL Global Development Group
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1721 *) ac_try_echo
=$ac_try;;
1723 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1727 if test -s conftest.err
; then
1728 grep -v '^ *+' conftest.err
>conftest.er1
1729 cat conftest.er1
>&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.
$ac_objext; then :
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.
$ac_ext >&5
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status
$ac_retval
1747 } # ac_fn_c_try_compile
1749 # ac_fn_cxx_try_compile LINENO
1750 # ----------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_cxx_try_compile
()
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 rm -f conftest.
$ac_objext
1756 if { { ac_try
="$ac_compile"
1758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_cxx_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1785 } # ac_fn_cxx_try_compile
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1797 *) ac_try_echo
=$ac_try;;
1799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1803 if test -s conftest.err
; then
1804 grep -v '^ *+' conftest.err
>conftest.er1
1805 cat conftest.er1
>&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest
$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 test -x conftest
$ac_exeext
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.
$ac_ext >&5
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status
$ac_retval
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1875 ac_fn_c_check_header_mongrel ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if eval \${$3+:} false; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1888 # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1899 ac_header_compiler=no
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1915 ac_header_preproc=no
1917 rm -f conftest.err conftest.i conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1921 # So? What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ( $as_echo "## ---------------------------------------------- ##
1941 ## Report this to pgsql-bugs@lists.postgresql.org ##
1942 ## ---------------------------------------------- ##"
1943 ) | sed "s/^/$as_me: WARNING: /" >&2
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1951 eval "$3=\$ac_header_compiler"
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_header_mongrel
1961 # ac_fn_c_try_run LINENO
1962 # ----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1964 # that executables *can* be run.
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_link"
1970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1971 *) ac_try_echo
=$ac_try;;
1973 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>&5
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1979 { { case "(($ac_try" in
1980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_try") 2>&5
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; }; }; then :
1991 $as_echo "$as_me: program exited with status $ac_status" >&5
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1995 ac_retval=$ac_status
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2003 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists and can be compiled using the include files in
2006 # INCLUDES, setting the cache variable VAR accordingly.
2007 ac_fn_c_check_header_compile ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2020 if ac_fn_c_try_compile "$LINENO"; then :
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_compile
2034 # ac_fn_c_check_func LINENO FUNC VAR
2035 # ----------------------------------
2036 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2037 ac_fn_c_check_func ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2049 #define $2 innocuous_$2
2051 /* System header to define __stub macros and hopefully few prototypes,
2052 which can conflict with char $2 (); below.
2053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2054 <limits.h> exists even on freestanding compilers. */
2057 # include <limits.h>
2059 # include <assert.h>
2064 /* Override any GCC internal prototype to avoid an error.
2065 Use char because int might match the return type of a GCC
2066 builtin and then its argument prototype would still apply. */
2071 /* The GNU C library defines this for functions which it implements
2072 to always fail with ENOSYS. Some functions are actually named
2073 something starting with __ and the normal name is an alias. */
2074 #if defined __stub_$2 || defined __stub___$2
2086 if ac_fn_c_try_link "$LINENO"; then :
2091 rm -f core conftest.err conftest.$ac_objext \
2092 conftest$ac_exeext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 } # ac_fn_c_check_func
2101 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2102 # -------------------------------------------
2103 # Tests whether TYPE exists after having included INCLUDES, setting cache
2104 # variable VAR accordingly.
2105 ac_fn_c_check_type ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111 $as_echo_n "(cached) " >&6
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2139 if ac_fn_c_try_compile "$LINENO"; then :
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153 } # ac_fn_c_check_type
2155 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2156 # ----------------------------------------------------
2157 # Tries to find if the field MEMBER exists in type AGGR, after including
2158 # INCLUDES, setting cache variable VAR accordingly.
2159 ac_fn_c_check_member ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2163 $as_echo_n "checking for $2.$3... " >&6; }
2164 if eval \${$4+:} false; then :
2165 $as_echo_n "(cached) " >&6
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2180 if ac_fn_c_try_compile "$LINENO"; then :
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2190 if (sizeof ac_aggr.$3)
2196 if ac_fn_c_try_compile "$LINENO"; then :
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_member
2212 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2213 # --------------------------------------------
2214 # Tries to find the compile-time value of EXPR in a program that includes
2215 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2217 ac_fn_c_compute_int ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 if test "$cross_compiling" = yes; then
2221 # Depending upon the size, compute the lo and hi bounds.
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 static int test_array [1 - 2 * !(($2) >= 0)];
2230 return test_array [0];
2236 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2247 return test_array [0];
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=$ac_mid; break
2256 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2257 if test $ac_lo -le $ac_mid; then
2261 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2272 static int test_array [1 - 2 * !(($2) < 0)];
2274 return test_array [0];
2280 if ac_fn_c_try_compile "$LINENO"; then :
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2291 return test_array [0];
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298 ac_lo=$ac_mid; break
2300 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2301 if test $ac_mid -le $ac_hi; then
2305 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 # Binary search between lo and hi bounds.
2316 while test "x$ac_lo" != "x$ac_hi"; do
2317 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2324 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2326 return test_array [0];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2335 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2347 static long int longval () { return $2; }
2348 static unsigned long int ulongval () { return $2; }
2355 FILE *f = fopen ("conftest.val", "w");
2360 long int i = longval ();
2363 fprintf (f, "%ld", i);
2367 unsigned long int i = ulongval ();
2370 fprintf (f, "%lu", i);
2372 /* Do not output a trailing newline, as this causes \r\n confusion
2373 on some platforms. */
2374 return ferror (f) || fclose (f) != 0;
2380 if ac_fn_c_try_run "$LINENO"; then :
2381 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2386 conftest.$ac_objext conftest.beam conftest.$ac_ext
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391 as_fn_set_status $ac_retval
2393 } # ac_fn_c_compute_int
2395 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2396 # ---------------------------------------------
2397 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2399 ac_fn_c_check_decl ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2403 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2404 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2406 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2407 if eval \${$3+:} false; then :
2408 $as_echo_n "(cached) " >&6
2410 ac_save_werror_flag=$ac_c_werror_flag
2411 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2418 #ifndef $as_decl_name
2420 (void) $as_decl_use;
2422 (void) $as_decl_name;
2430 if ac_fn_c_try_compile "$LINENO"; then :
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_c_werror_flag=$ac_save_werror_flag
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443 } # ac_fn_c_check_decl
2444 cat >config.log <<_ACEOF
2445 This file contains any messages produced by compilers while
2446 running configure, to aid debugging if configure makes a mistake.
2448 It was created by PostgreSQL $as_me 16devel, which was
2449 generated by GNU Autoconf 2.69. Invocation command line was
2461 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2462 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2463 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2464 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2465 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2467 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2468 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2470 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2471 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2472 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2473 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2474 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2475 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2476 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 $as_echo "PATH: $as_dir"
2501 # Keep a trace of the command line.
2502 # Strip out --no-create and --no-recursion so they do not pile up.
2503 # Strip out --silent because we don't want to record it for future runs.
2504 # Also quote any args containing shell meta-characters.
2505 # Make two passes to allow for proper duplicate-argument suppression.
2509 ac_must_keep_next=false
2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517 | -silent | --silent | --silen | --sile | --sil)
2520 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2525 as_fn_append ac_configure_args1 " '$ac_arg'"
2526 if test $ac_must_keep_next = true; then
2527 ac_must_keep_next=false # Got value, back to normal.
2530 *=* | --config-cache | -C | -disable-* | --disable-* \
2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533 | -with-* | --with-* | -without-* | --without-* | --x)
2534 case "$ac_configure_args0 " in
2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2538 -* ) ac_must_keep_next=true ;;
2541 as_fn_append ac_configure_args " '$ac_arg'"
2546 { ac_configure_args0=; unset ac_configure_args0;}
2547 { ac_configure_args1=; unset ac_configure_args1;}
2549 # When interrupted or exit'd, cleanup temporary files, and complete
2550 # config.log. We remove comments because anyway the quotes in there
2551 # would cause problems or look ugly.
2552 # WARNING: Use '\'' to represent an apostrophe within the trap.
2553 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2554 trap 'exit_status=$?
2555 # Save into config.log some information that might help in debugging.
2559 $as_echo "## ---------------- ##
2560 ## Cache variables. ##
2561 ## ---------------- ##"
2563 # The following way of writing the cache mishandles newlines in values,
2565 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2566 eval ac_val=\$$ac_var
2570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2574 _ | IFS | as_nl) ;; #(
2575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576 *) { eval $ac_var=; unset $ac_var;} ;;
2581 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2582 *${as_nl}ac_space=\ *)
2584 "s/'\''/'\''\\\\'\'''\''/g;
2585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2595 $as_echo "## ----------------- ##
2596 ## Output variables. ##
2597 ## ----------------- ##"
2599 for ac_var in $ac_subst_vars
2601 eval ac_val=\$$ac_var
2603 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2605 $as_echo "$ac_var='\''$ac_val'\''"
2609 if test -n "$ac_subst_files"; then
2610 $as_echo "## ------------------- ##
2611 ## File substitutions. ##
2612 ## ------------------- ##"
2614 for ac_var in $ac_subst_files
2616 eval ac_val=\$$ac_var
2618 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620 $as_echo "$ac_var='\''$ac_val'\''"
2625 if test -s confdefs.h; then
2626 $as_echo "## ----------- ##
2633 test "$ac_signal" != 0 &&
2634 $as_echo "$as_me: caught signal $ac_signal"
2635 $as_echo "$as_me: exit $exit_status"
2637 rm -f core *.core core.conftest.* &&
2638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2641 for ac_signal in 1 2 13 15; do
2642 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2647 rm -f -r conftest* confdefs.h
2649 $as_echo "/* confdefs.h */" > confdefs.h
2651 # Predefined preprocessor variables.
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_NAME "$PACKAGE_NAME"
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_STRING "$PACKAGE_STRING"
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_URL "$PACKAGE_URL"
2678 # Let the site file select an alternate cache file if it wants to.
2679 # Prefer an explicitly selected file to automatically selected ones.
2682 if test -n "$CONFIG_SITE"; then
2683 # We do not want a PATH search for config.site.
2684 case $CONFIG_SITE in #((
2685 -*) ac_site_file1=./$CONFIG_SITE;;
2686 */*) ac_site_file1=$CONFIG_SITE;;
2687 *) ac_site_file1=./$CONFIG_SITE;;
2689 elif test "x$prefix" != xNONE; then
2690 ac_site_file1=$prefix/share/config.site
2691 ac_site_file2=$prefix/etc/config.site
2693 ac_site_file1=$ac_default_prefix/share/config.site
2694 ac_site_file2=$ac_default_prefix/etc/config.site
2696 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2698 test "x$ac_site_file" = xNONE && continue
2699 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2701 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2702 sed 's/^/| /' "$ac_site_file" >&5
2704 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error $? "failed to load site
script $ac_site_file
2707 See \
`config.log' for more details" "$LINENO" 5; }
2711 if test -r "$cache_file"; then
2712 # Some versions of bash will fail to source /dev/null (special files
2713 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2714 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2716 $as_echo "$as_me: loading cache $cache_file" >&6;}
2718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2719 *) . "./$cache_file";;
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2724 $as_echo "$as_me: creating cache $cache_file" >&6;}
2728 # Check that the precious variables saved in the cache have kept the same
2730 ac_cache_corrupted=false
2731 for ac_var in $ac_precious_vars; do
2732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733 eval ac_new_set=\$ac_env_${ac_var}_set
2734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735 eval ac_new_val=\$ac_env_${ac_var}_value
2736 case $ac_old_set,$ac_new_set in
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2739 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2743 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2747 if test "x$ac_old_val" != "x$ac_new_val"; then
2748 # differences in whitespace do not lead to failure.
2749 ac_old_val_w=`echo x
$ac_old_val`
2750 ac_new_val_w=`echo x
$ac_new_val`
2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2754 ac_cache_corrupted=:
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2757 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758 eval $ac_var=\$ac_old_val
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2761 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2763 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2766 # Pass precious variables to config.status.
2767 if test "$ac_new_set" = set; then
2769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2770 *) ac_arg=$ac_var=$ac_new_val ;;
2772 case " $ac_configure_args " in
2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2774 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2778 if $ac_cache_corrupted; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2783 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2785 ## -------------------- ##
2786 ## Main body of script. ##
2787 ## -------------------- ##
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 for ac_dir in config "$srcdir"/config; do
2802 if test -f "$ac_dir/install-sh"; then
2804 ac_install_sh="$ac_aux_dir/install-sh -c"
2806 elif test -f "$ac_dir/install.sh"; then
2808 ac_install_sh="$ac_aux_dir/install.sh -c"
2810 elif test -f "$ac_dir/shtool"; then
2812 ac_install_sh="$ac_aux_dir/shtool install -c"
2816 if test -z "$ac_aux_dir"; then
2817 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2820 # These three variables are undocumented and unsupported,
2821 # and are intended to be withdrawn in a future Autoconf release.
2822 # They can cause serious problems if a builder's source tree is in a directory
2823 # whose full name contains unusual characters.
2824 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2831 cat >>confdefs.h <<_ACEOF
2832 #define CONFIGURE_ARGS "$ac_configure_args"
2836 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2837 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2838 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2841 cat >>confdefs.h <<_ACEOF
2842 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2846 cat >>confdefs.h <<_ACEOF
2847 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2851 cat >>confdefs.h <<_ACEOF
2852 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2859 # Check whether --with-extra-version was given.
2860 if test "${with_extra_version+set}" = set; then :
2861 withval=$with_extra_version;
2864 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2867 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2870 PG_VERSION="$PACKAGE_VERSION$withval"
2875 PG_VERSION="$PACKAGE_VERSION"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PG_VERSION "$PG_VERSION"
2885 # Make sure we can run config.sub.
2886 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2887 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2890 $as_echo_n "checking build system type... " >&6; }
2891 if ${ac_cv_build+:} false; then :
2892 $as_echo_n "(cached) " >&6
2894 ac_build_alias=$build_alias
2895 test "x$ac_build_alias" = x &&
2896 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2897 test "x$ac_build_alias" = x &&
2898 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2899 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2900 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2904 $as_echo "$ac_cv_build" >&6; }
2905 case $ac_cv_build in
2907 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2910 ac_save_IFS=$IFS; IFS='-'
2916 # Remember, the first character of IFS is used to create $*,
2917 # except with old shells:
2920 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2924 $as_echo_n "checking host system type... " >&6; }
2925 if ${ac_cv_host+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test "x$host_alias" = x; then
2929 ac_cv_host=$ac_cv_build
2931 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2932 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2937 $as_echo "$ac_cv_host" >&6; }
2940 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2943 ac_save_IFS=$IFS; IFS='-'
2949 # Remember, the first character of IFS is used to create $*,
2950 # except with old shells:
2953 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2959 $as_echo_n "checking which template to use... " >&6; }
2964 # Check whether --with-template was given.
2965 if test "${with_template+set}" = set; then :
2966 withval=$with_template;
2969 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2972 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2977 list) echo; ls "$srcdir/src/template"; exit;;
2978 *) if test -f "$srcdir/src/template/$with_template" ; then
2981 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2990 # --with-template not given
2993 aix*) template=aix ;;
2994 cygwin*|msys*) template=cygwin ;;
2995 darwin*) template=darwin ;;
2996 dragonfly*) template=netbsd ;;
2997 freebsd*) template=freebsd ;;
2998 linux*|gnu*|k*bsd*-gnu)
3000 mingw*) template=win32 ;;
3001 netbsd*) template=netbsd ;;
3002 openbsd*) template=openbsd ;;
3003 solaris*) template=solaris ;;
3006 if test x"$template" = x"" ; then
3008 *******************************************************************
3009 PostgreSQL has apparently not been ported to your platform yet.
3010 To try a manual configuration, look into the src/template directory
3011 for a similar platform and use the '--with-template=' option.
3013 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
3014 rectifying this. Include the above 'checking host system type...'
3016 *******************************************************************
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3026 $as_echo "$template" >&6; }
3031 # Initialize default assumption that we do not need separate assembly code
3032 # for TAS (test-and-set). This can be overridden by the template file
3033 # when it's executed.
3037 # Default, works for most platforms, override in template file if needed
3043 ## Command line options
3047 # Add non-standard directories to the include path
3052 # Check whether --with-includes was given.
3053 if test "${with_includes+set}" = set; then :
3054 withval=$with_includes;
3057 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3060 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3073 # Add non-standard directories to the library search path
3078 # Check whether --with-libraries was given.
3079 if test "${with_libraries+set}" = set; then :
3080 withval=$with_libraries;
3083 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3086 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3089 LIBRARY_DIRS=$withval
3100 # Check whether --with-libs was given.
3101 if test "${with_libs+set}" = set; then :
3105 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3108 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3111 LIBRARY_DIRS=$withval
3121 # 64-bit integer date/time storage is now the only option, but to avoid
3122 # unnecessary breakage of build scripts, continue to accept an explicit
3123 # "--enable-integer-datetimes" switch.
3127 # Check whether --enable-integer-datetimes was given.
3128 if test "${enable_integer_datetimes+set}" = set; then :
3129 enableval=$enable_integer_datetimes;
3135 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3138 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3143 enable_integer_datetimes=yes
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3154 $as_echo_n "checking whether NLS is wanted... " >&6; }
3157 # Check whether --enable-nls was given.
3158 if test "${enable_nls+set}" = set; then :
3159 enableval=$enable_nls;
3169 WANTED_LANGUAGES=$enableval
3179 if test "$enable_nls" = yes; then
3181 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3186 $as_echo "$enable_nls" >&6; }
3191 # Default port number (--with-pgport), default 5432
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3194 $as_echo_n "checking for default port number... " >&6; }
3198 # Check whether --with-pgport was given.
3199 if test "${with_pgport+set}" = set; then :
3200 withval=$with_pgport;
3203 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3206 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3209 default_port=$withval
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3219 $as_echo "$default_port" >&6; }
3220 # Need both of these because some places want an integer and some a string
3222 cat >>confdefs.h <<_ACEOF
3223 #define DEF_PGPORT ${default_port}
3227 cat >>confdefs.h <<_ACEOF
3228 #define DEF_PGPORT_STR "${default_port}"
3233 # It's worth validating port; you can get very confusing errors otherwise
3234 if test x"$default_port" = x""; then
3235 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3236 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3237 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3238 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3239 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3240 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3241 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3245 # '-rpath'-like feature can be disabled
3249 # Check whether --enable-rpath was given.
3250 if test "${enable_rpath+set}" = set; then :
3251 enableval=$enable_rpath;
3260 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3277 # Check whether --enable-spinlocks was given.
3278 if test "${enable_spinlocks+set}" = set; then :
3279 enableval=$enable_spinlocks;
3288 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3293 enable_spinlocks=yes
3304 # Check whether --enable-atomics was given.
3305 if test "${enable_atomics+set}" = set; then :
3306 enableval=$enable_atomics;
3315 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3327 # --enable-debug adds -g to compiler flags
3331 # Check whether --enable-debug was given.
3332 if test "${enable_debug+set}" = set; then :
3333 enableval=$enable_debug;
3342 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3355 # --enable-profiling enables gcc profiling
3359 # Check whether --enable-profiling was given.
3360 if test "${enable_profiling+set}" = set; then :
3361 enableval=$enable_profiling;
3370 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3382 # --enable-coverage enables generation of code coverage metrics with gcov
3386 # Check whether --enable-coverage was given.
3387 if test "${enable_coverage+set}" = set; then :
3388 enableval=$enable_coverage;
3391 if test -z "$GCOV"; then
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_path_GCOV+:} false; then :
3399 $as_echo_n "(cached) " >&6
3403 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 GCOV=$ac_cv_path_GCOV
3425 if test -n "$GCOV"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3427 $as_echo "$GCOV" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$GCOV" && break
3438 # Report the value of GCOV in configure's output in all cases.
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3440 $as_echo_n "checking for GCOV... " >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3442 $as_echo "$GCOV" >&6; }
3445 if test -z "$GCOV"; then
3446 as_fn_error $? "gcov not found" "$LINENO" 5
3448 if test -z "$LCOV"; then
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_path_LCOV+:} false; then :
3456 $as_echo_n "(cached) " >&6
3460 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 LCOV=$ac_cv_path_LCOV
3482 if test -n "$LCOV"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3484 $as_echo "$LCOV" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3491 test -n "$LCOV" && break
3495 # Report the value of LCOV in configure's output in all cases.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3497 $as_echo_n "checking for LCOV... " >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3499 $as_echo "$LCOV" >&6; }
3502 if test -z "$LCOV"; then
3503 as_fn_error $? "lcov not found" "$LINENO" 5
3505 if test -z "$GENHTML"; then
3506 for ac_prog in genhtml
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_path_GENHTML+:} false; then :
3513 $as_echo_n "(cached) " >&6
3517 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 GENHTML=$ac_cv_path_GENHTML
3539 if test -n "$GENHTML"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3541 $as_echo "$GENHTML" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$GENHTML" && break
3552 # Report the value of GENHTML in configure's output in all cases.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3554 $as_echo_n "checking for GENHTML... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3556 $as_echo "$GENHTML" >&6; }
3559 if test -z "$GENHTML"; then
3560 as_fn_error $? "genhtml not found" "$LINENO" 5
3567 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3584 # Check whether --enable-dtrace was given.
3585 if test "${enable_dtrace+set}" = set; then :
3586 enableval=$enable_dtrace;
3589 if test -z "$DTRACE"; then
3590 for ac_prog in dtrace
3592 # Extract the first word of "$ac_prog", so it can be a program name with args.
3593 set dummy $ac_prog; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_path_DTRACE+:} false; then :
3597 $as_echo_n "(cached) " >&6
3601 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 DTRACE=$ac_cv_path_DTRACE
3623 if test -n "$DTRACE"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3625 $as_echo "$DTRACE" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3632 test -n "$DTRACE" && break
3636 # Report the value of DTRACE in configure's output in all cases.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3638 $as_echo_n "checking for DTRACE... " >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3640 $as_echo "$DTRACE" >&6; }
3643 if test -z "$DTRACE"; then
3644 as_fn_error $? "dtrace not found" "$LINENO" 5
3652 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3669 # Check whether --enable-tap-tests was given.
3670 if test "${enable_tap_tests+set}" = set; then :
3671 enableval=$enable_tap_tests;
3680 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3696 $as_echo_n "checking for block size... " >&6; }
3700 # Check whether --with-blocksize was given.
3701 if test "${with_blocksize+set}" = set; then :
3702 withval=$with_blocksize;
3705 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3708 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3720 case ${blocksize} in
3727 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3730 $as_echo "${blocksize}kB" >&6; }
3733 cat >>confdefs.h <<_ACEOF
3734 #define BLCKSZ ${BLCKSZ}
3739 # Relation segment size
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3742 $as_echo_n "checking for segment size... " >&6; }
3746 # Check whether --with-segsize was given.
3747 if test "${with_segsize+set}" = set; then :
3748 withval=$with_segsize;
3751 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3754 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3766 # this expression is set up to avoid unnecessary integer overflow
3767 # blocksize is already guaranteed to be a factor of 1024
3768 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3769 test $? -eq 0 || exit 1
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3771 $as_echo "${segsize}GB" >&6; }
3774 cat >>confdefs.h <<_ACEOF
3775 #define RELSEG_SIZE ${RELSEG_SIZE}
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3783 $as_echo_n "checking for WAL block size... " >&6; }
3787 # Check whether --with-wal-blocksize was given.
3788 if test "${with_wal_blocksize+set}" = set; then :
3789 withval=$with_wal_blocksize;
3792 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3795 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3798 wal_blocksize=$withval
3807 case ${wal_blocksize} in
3808 1) XLOG_BLCKSZ=1024;;
3809 2) XLOG_BLCKSZ=2048;;
3810 4) XLOG_BLCKSZ=4096;;
3811 8) XLOG_BLCKSZ=8192;;
3812 16) XLOG_BLCKSZ=16384;;
3813 32) XLOG_BLCKSZ=32768;;
3814 64) XLOG_BLCKSZ=65536;;
3815 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3818 $as_echo "${wal_blocksize}kB" >&6; }
3821 cat >>confdefs.h <<_ACEOF
3822 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3830 # For historical reasons you can also use --with-CC to specify the C compiler
3831 # to use, although the standard way to do this is to set the CC environment
3836 # Check whether --with-CC was given.
3837 if test "${with_CC+set}" = set; then :
3841 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3844 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3856 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3857 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in $pgac_cc_list
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CC+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$CC" && break
3908 if test -z "$CC"; then
3910 for ac_prog in $pgac_cc_list
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$ac_ct_CC"; then
3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_ac_ct_CC="$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3942 $as_echo "$ac_ct_CC" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$ac_ct_CC" && break
3952 if test "x$ac_ct_CC" = x; then
3955 case $cross_compiling:$ac_tool_warned in
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3966 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3969 See \
`config.log' for more details" "$LINENO" 5; }
3971 # Provide some information about the compiler.
3972 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3975 for ac_option in --version -v -V -qversion; do
3976 { { ac_try="$ac_compiler $ac_option >&5"
3978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3979 *) ac_try_echo
=$ac_try;;
3981 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3985 if test -s conftest.err
; then
3987 ... rest of stderr output deleted ...
3988 10q' conftest.err
>conftest.er1
3989 cat conftest.er1
>&5
3991 rm -f conftest.er1 conftest.err
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 ac_clean_files_save
=$ac_clean_files
4008 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4009 # Try to create an executable without -o first, disregard a.out.
4010 # It will help us diagnose broken compilers, and finding out an intuition
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4013 $as_echo_n "checking whether the C compiler works... " >&6; }
4014 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4016 # The possible output files:
4017 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4020 for ac_file
in $ac_files
4023 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4024 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4029 if { { ac_try
="$ac_link_default"
4031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link_default") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
4040 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4041 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4042 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4043 # so that the user can short-circuit this test for compilers unknown to
4045 for ac_file in $ac_files ''
4047 test -f "$ac_file" || continue
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4052 # We found the default executable, but exeext='' is most
4056 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4058 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4060 # We set ac_cv_exeext here because the later test for it is not
4061 # safe: cross compilers may not add the suffix if given an `-o'
4062 # argument, so we may need to know it at that point already.
4063 # Even if this section looks crufty: it has the advantage of
4070 test "$ac_cv_exeext" = no && ac_cv_exeext=
4075 if test -z "$ac_file"; then :
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078 $as_echo "$as_me: failed program was:" >&5
4079 sed 's
/^
/|
/' conftest.$ac_ext >&5
4081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4083 as_fn_error 77 "C compiler cannot create executables
4084 See \`config.log
' for more details" "$LINENO" 5; }
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4090 $as_echo_n "checking for C compiler default output file name... " >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4092 $as_echo "$ac_file" >&6; }
4093 ac_exeext=$ac_cv_exeext
4095 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4096 ac_clean_files=$ac_clean_files_save
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4098 $as_echo_n "checking for suffix of executables... " >&6; }
4099 if { { ac_try="$ac_link"
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_link") 2>&5
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }; then :
4110 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4111 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4112 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4114 for ac_file
in conftest.exe conftest conftest.
*; do
4115 test -f "$ac_file" ||
continue
4117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4118 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4127 See \`config.log' for more details" "$LINENO" 5; }
4129 rm -f conftest conftest
$ac_cv_exeext
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4131 $as_echo "$ac_cv_exeext" >&6; }
4133 rm -f conftest.
$ac_ext
4134 EXEEXT
=$ac_cv_exeext
4136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4142 FILE *f = fopen ("conftest.out", "w");
4143 return ferror (f) || fclose (f) != 0;
4149 ac_clean_files
="$ac_clean_files conftest.out"
4150 # Check that the compiler produces executables we can run. If not, either
4151 # the compiler is broken, or we cross compile.
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4153 $as_echo_n "checking whether we are cross compiling... " >&6; }
4154 if test "$cross_compiling" != yes; then
4155 { { ac_try
="$ac_link"
4157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162 (eval "$ac_link") 2>&5
4164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4165 test $ac_status = 0; }
4166 if { ac_try='./conftest$ac_cv_exeext'
4167 { { case "(($ac_try" in
4168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4169 *) ac_try_echo
=$ac_try;;
4171 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172 $as_echo "$ac_try_echo"; } >&5
4173 (eval "$ac_try") 2>&5
4175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176 test $ac_status = 0; }; }; then
4179 if test "$cross_compiling" = maybe
; then
4182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184 as_fn_error $?
"cannot run C compiled programs.
4185 If you meant to cross compile, use \`--host'.
4186 See \`config.log' for more details" "$LINENO" 5; }
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4191 $as_echo "$cross_compiling" >&6; }
4193 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4194 ac_clean_files
=$ac_clean_files_save
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4196 $as_echo_n "checking for suffix of object files... " >&6; }
4197 if ${ac_cv_objext+:} false
; then :
4198 $as_echo_n "(cached) " >&6
4200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 rm -f conftest.o conftest.obj
4212 if { { ac_try
="$ac_compile"
4214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218 $as_echo "$ac_try_echo"; } >&5
4219 (eval "$ac_compile") 2>&5
4221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222 test $ac_status = 0; }; then :
4223 for ac_file in conftest.o conftest.obj conftest.*; do
4224 test -f "$ac_file" || continue;
4226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4232 $as_echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4237 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4238 See \
`config.log' for more details" "$LINENO" 5; }
4240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4243 $as_echo "$ac_cv_objext" >&6; }
4244 OBJEXT=$ac_cv_objext
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4247 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4248 if ${ac_cv_c_compiler_gnu+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4265 if ac_fn_c_try_compile "$LINENO"; then :
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4275 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4276 if test $ac_compiler_gnu = yes; then
4281 ac_test_CFLAGS=${CFLAGS+set}
4282 ac_save_CFLAGS=$CFLAGS
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4284 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4285 if ${ac_cv_prog_cc_g+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 ac_save_c_werror_flag=$ac_c_werror_flag
4289 ac_c_werror_flag=yes
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4303 if ac_fn_c_try_compile "$LINENO"; then :
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4318 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_c_werror_flag=$ac_save_c_werror_flag
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4334 if ac_fn_c_try_compile "$LINENO"; then :
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_c_werror_flag=$ac_save_c_werror_flag
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4345 $as_echo "$ac_cv_prog_cc_g" >&6; }
4346 if test "$ac_test_CFLAGS" = set; then
4347 CFLAGS=$ac_save_CFLAGS
4348 elif test $ac_cv_prog_cc_g = yes; then
4349 if test "$GCC" = yes; then
4355 if test "$GCC" = yes; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4362 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4363 if ${ac_cv_prog_cc_c89+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 ac_cv_prog_cc_c89=no
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4374 struct buf { int x; };
4375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4376 static char *e (p, i)
4382 static char *f (char * (*g) (char **, int), char **p, ...)
4387 s = g (p, va_arg (v,int));
4392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4393 function prototypes and stuff, but not '\xHH' hex character constants.
4394 These don't provoke an error unfortunately, instead are silently treated
4395 as 'x'. The following induces an error, until -std is added to get
4396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4397 array size at least. It's necessary to write '\x00'==0 to get something
4398 that's true only with -std. */
4399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4402 inside strings and character constants. */
4404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4406 int test (int i, double x);
4407 struct s1 {int (*f) (int a);};
4408 struct s2 {int (*f) (double a);};
4409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4423 CC="$ac_save_CC $ac_arg"
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425 ac_cv_prog_cc_c89=$ac_arg
4427 rm -f core conftest.err conftest.$ac_objext
4428 test "x$ac_cv_prog_cc_c89" != "xno" && break
4430 rm -f conftest.$ac_ext
4435 case "x$ac_cv_prog_cc_c89" in
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4438 $as_echo "none needed" >&6; } ;;
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4441 $as_echo "unsupported" >&6; } ;;
4443 CC="$CC $ac_cv_prog_cc_c89"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4447 if test "x$ac_cv_prog_cc_c89" != xno; then :
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4458 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4459 if ${ac_cv_prog_cc_c99+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 ac_cv_prog_cc_c99=no
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4467 #include <stdbool.h>
4472 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4473 #define debug(...) fprintf (stderr, __VA_ARGS__)
4474 #define showlist(...) puts (#__VA_ARGS__)
4475 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4477 test_varargs_macros (void)
4482 debug ("X = %d\n", x);
4483 showlist (The first, second, and third items.);
4484 report (x>y, "x is %d but y is %d", x, y);
4487 // Check long long types.
4488 #define BIG64 18446744073709551615ull
4489 #define BIG32 4294967295ul
4490 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4492 your preprocessor is broken;
4496 your preprocessor is broken;
4498 static long long int bignum = -9223372036854775807LL;
4499 static unsigned long long int ubignum = BIG64;
4501 struct incomplete_array
4509 const wchar_t *name;
4513 typedef const char *ccp;
4516 test_restrict (ccp restrict text)
4518 // See if C++-style comments work.
4519 // Iterate through items via the restricted pointer.
4520 // Also check for declarations in for loops.
4521 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4526 // Check varargs and va_copy.
4528 test_varargs (const char *format, ...)
4531 va_start (args, format);
4533 va_copy (args_copy, args);
4544 str = va_arg (args_copy, const char *);
4547 number = va_arg (args_copy, int);
4550 fnumber = va_arg (args_copy, double);
4565 _Bool success = false;
4568 if (test_restrict ("String literal") == 0)
4570 char *restrict newvar = "Another string";
4573 test_varargs ("s, d' f .", "string", 65, 34.234);
4574 test_varargs_macros ();
4576 // Check flexible array members.
4577 struct incomplete_array *ia =
4578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4580 for (int i = 0; i < ia->datasize; ++i)
4581 ia->data[i] = i * 1.234;
4583 // Check named initializers.
4584 struct named_init ni = {
4586 .name = L"Test wide string",
4587 .average = 543.34343,
4592 int dynamic_array[ni.number];
4593 dynamic_array[ni.number - 1] = 543;
4595 // work around unused variable warnings
4596 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4597 || dynamic_array[ni.number - 1] != 543);
4603 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4605 CC="$ac_save_CC $ac_arg"
4606 if ac_fn_c_try_compile "$LINENO"; then :
4607 ac_cv_prog_cc_c99=$ac_arg
4609 rm -f core conftest.err conftest.$ac_objext
4610 test "x$ac_cv_prog_cc_c99" != "xno" && break
4612 rm -f conftest.$ac_ext
4617 case "x$ac_cv_prog_cc_c99" in
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620 $as_echo "none needed" >&6; } ;;
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4623 $as_echo "unsupported" >&6; } ;;
4625 CC="$CC $ac_cv_prog_cc_c99"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4627 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4629 if test "x$ac_cv_prog_cc_c99" != xno; then :
4635 # Error out if the compiler does not support C99, as the codebase
4637 if test "$ac_cv_prog_cc_c99" = no; then
4638 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4642 ac_cpp='$CXXCPP $CPPFLAGS'
4643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4646 if test -z "$CXX"; then
4647 if test -n "$CCC"; then
4650 if test -n "$ac_tool_prefix"; then
4651 for ac_prog in $pgac_cxx_list
4653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if ${ac_cv_prog_CXX+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$CXX"; then
4661 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 if test -n "$CXX"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4683 $as_echo "$CXX" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4690 test -n "$CXX" && break
4693 if test -z "$CXX"; then
4695 for ac_prog in $pgac_cxx_list
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -n "$ac_ct_CXX"; then
4705 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4725 if test -n "$ac_ct_CXX"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4727 $as_echo "$ac_ct_CXX" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4734 test -n "$ac_ct_CXX" && break
4737 if test "x$ac_ct_CXX" = x; then
4740 case $cross_compiling:$ac_tool_warned in
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744 ac_tool_warned=yes ;;
4752 # Provide some information about the compiler.
4753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4756 for ac_option in --version -v -V -qversion; do
4757 { { ac_try="$ac_compiler $ac_option >&5"
4759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4760 *) ac_try_echo
=$ac_try;;
4762 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4763 $as_echo "$ac_try_echo"; } >&5
4764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4766 if test -s conftest.err
; then
4768 ... rest of stderr output deleted ...
4769 10q' conftest.err
>conftest.er1
4770 cat conftest.er1
>&5
4772 rm -f conftest.er1 conftest.err
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4778 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4779 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4780 $as_echo_n "(cached) " >&6
4782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4796 if ac_fn_cxx_try_compile
"$LINENO"; then :
4801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4802 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4806 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4807 if test $ac_compiler_gnu = yes; then
4812 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4813 ac_save_CXXFLAGS
=$CXXFLAGS
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4815 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4816 if ${ac_cv_prog_cxx_g+:} false
; then :
4817 $as_echo_n "(cached) " >&6
4819 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4820 ac_cxx_werror_flag
=yes
4823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4834 if ac_fn_cxx_try_compile
"$LINENO"; then :
4835 ac_cv_prog_cxx_g
=yes
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4849 if ac_fn_cxx_try_compile
"$LINENO"; then :
4852 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4865 if ac_fn_cxx_try_compile
"$LINENO"; then :
4866 ac_cv_prog_cxx_g
=yes
4868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4873 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4876 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4877 if test "$ac_test_CXXFLAGS" = set; then
4878 CXXFLAGS
=$ac_save_CXXFLAGS
4879 elif test $ac_cv_prog_cxx_g = yes; then
4880 if test "$GXX" = yes; then
4886 if test "$GXX" = yes; then
4893 ac_cpp
='$CPP $CPPFLAGS'
4894 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4899 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4900 # but has idiosyncrasies of its own. We assume icc will define
4901 # __INTEL_COMPILER regardless of CFLAGS.
4903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4909 #ifndef __INTEL_COMPILER
4916 if ac_fn_c_try_compile
"$LINENO"; then :
4921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4923 # Check if it's Sun Studio compiler. We assume that
4924 # __SUNPRO_C will be defined for Sun Studio compilers
4925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4938 if ac_fn_c_try_compile
"$LINENO"; then :
4943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4951 # Checked early because subsequent tests depend on it.
4955 # Check whether --with-llvm was given.
4956 if test "${with_llvm+set}" = set; then :
4961 $as_echo "#define USE_LLVM 1" >>confdefs.h
4968 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4979 for ac_prog
in gawk mawk nawk
awk
4981 # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy
$ac_prog; ac_word
=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_prog_AWK+:} false
; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -n "$AWK"; then
4989 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4995 test -z "$as_dir" && as_dir
=.
4996 for ac_exec_ext
in '' $ac_executable_extensions; do
4997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_AWK
="$ac_prog"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 if test -n "$AWK"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5011 $as_echo "$AWK" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5018 test -n "$AWK" && break
5021 if test "$with_llvm" = yes; then :
5027 if test -z "$LLVM_CONFIG"; then
5028 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
5030 # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy
$ac_prog; ac_word
=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5035 $as_echo_n "(cached) " >&6
5037 case $LLVM_CONFIG in
5039 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir
=.
5047 for ac_exec_ext
in '' $ac_executable_extensions; do
5048 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5061 if test -n "$LLVM_CONFIG"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5063 $as_echo "$LLVM_CONFIG" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 test -n "$LLVM_CONFIG" && break
5074 # Report the value of LLVM_CONFIG in configure's output in all cases.
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5076 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5078 $as_echo "$LLVM_CONFIG" >&6; }
5082 # no point continuing if llvm wasn't found
5083 if test -z "$LLVM_CONFIG"; then
5084 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5086 # check if detected $LLVM_CONFIG is executable
5087 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5088 if test "x$pgac_llvm_version" = "xno"; then
5089 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5091 # and whether the version is supported
5092 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5093 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5096 # need clang to create some bitcode files
5098 if test -z "$CLANG"; then
5099 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102 set dummy
$ac_prog; ac_word
=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_path_CLANG+:} false
; then :
5106 $as_echo_n "(cached) " >&6
5110 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 CLANG
=$ac_cv_path_CLANG
5132 if test -n "$CLANG"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5134 $as_echo "$CLANG" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$CLANG" && break
5145 # Report the value of CLANG in configure's output in all cases.
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5147 $as_echo_n "checking for CLANG... " >&6; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5149 $as_echo "$CLANG" >&6; }
5152 if test -z "$CLANG"; then
5153 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5155 # make sure clang is executable
5156 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5157 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5159 # Could check clang version, but it doesn't seem that
5160 # important. Systems with a new enough LLVM version are usually
5161 # going to have a decent clang version too. It's also not entirely
5162 # clear what the minimum version is.
5164 # Collect compiler flags necessary to build the LLVM dependent
5166 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5167 case $pgac_option in
5168 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5172 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5173 case $pgac_option in
5174 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5178 # ABI influencing options, standard influencing options
5179 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5180 case $pgac_option in
5181 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5182 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5186 # Look for components we're interested in, collect necessary
5187 # libs. As some components are optional, we can't just list all of
5188 # them as it'd raise an error.
5190 for pgac_component
in `$LLVM_CONFIG --components`; do
5191 case $pgac_component in
5192 engine
) pgac_components
="$pgac_components $pgac_component";;
5193 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5194 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5195 passes
) pgac_components
="$pgac_components $pgac_component";;
5196 native
) pgac_components
="$pgac_components $pgac_component";;
5197 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5201 # And then get the libraries that need to be linked in for the
5202 # selected components. They're large libraries, we only want to
5203 # link them into the LLVM using shared library.
5204 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5205 case $pgac_option in
5206 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5210 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5229 .
"$srcdir/src/template/$template" ||
exit
5231 # C[XX]FLAGS are selected so:
5232 # If the user specifies something in the environment, that is used.
5233 # else: If the template file set something, that is used.
5234 # else: If coverage was enabled, don't set anything.
5235 # else: If the compiler is GCC, then we use -O2.
5236 # else: If the compiler is something else, then we use -O, unless debugging.
5238 if test "$ac_env_CFLAGS_set" = set; then
5239 CFLAGS
=$ac_env_CFLAGS_value
5240 elif test "${CFLAGS+set}" = set; then
5241 : # (keep what template set)
5242 elif test "$enable_coverage" = yes; then
5243 : # no optimization by default
5244 elif test "$GCC" = yes; then
5247 # if the user selected debug mode, don't use -O
5248 if test "$enable_debug" != yes; then
5253 if test "$ac_env_CXXFLAGS_set" = set; then
5254 CXXFLAGS
=$ac_env_CXXFLAGS_value
5255 elif test "${CXXFLAGS+set}" = set; then
5256 : # (keep what template set)
5257 elif test "$enable_coverage" = yes; then
5258 : # no optimization by default
5259 elif test "$GCC" = yes; then
5262 # if the user selected debug mode, don't use -O
5263 if test "$enable_debug" != yes; then
5268 # When generating bitcode (for inlining) we always want to use -O2
5269 # even when --enable-debug is specified. The bitcode is not going to
5270 # be used for line-by-line debugging, and JIT inlining doesn't work
5271 # without at least -O1 (otherwise clang will emit 'noinline'
5272 # attributes everywhere), which is bad for testing. Still allow the
5273 # environment to override if done explicitly.
5274 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5275 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5277 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5279 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5280 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5282 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5285 # C[XX]FLAGS we determined above will be added back at the end
5288 user_CXXFLAGS
=$CXXFLAGS
5290 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5292 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5295 # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5296 if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5297 CFLAGS_UNROLL_LOOPS
=$ac_env_CFLAGS_UNROLL_LOOPS_value
5299 if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5300 CFLAGS_VECTORIZE
=$ac_env_CFLAGS_VECTORIZE_value
5303 # Some versions of GCC support some additional useful warning flags.
5304 # Check whether they are supported, and add them to CFLAGS if so.
5305 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5306 # but has its own. Also check other compiler-specific flags here.
5308 if test "$GCC" = yes -a "$ICC" = no
; then
5309 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5310 CXXFLAGS
="-Wall -Wpointer-arith"
5311 # These work in some but not all gcc versions
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5315 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5316 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5317 $as_echo_n "(cached) " >&6
5319 pgac_save_CFLAGS
=$CFLAGS
5322 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5323 ac_save_c_werror_flag
=$ac_c_werror_flag
5324 ac_c_werror_flag
=yes
5325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5336 if ac_fn_c_try_compile
"$LINENO"; then :
5337 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5339 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5342 ac_c_werror_flag
=$ac_save_c_werror_flag
5343 CFLAGS
="$pgac_save_CFLAGS"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5347 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5348 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5349 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5353 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5354 # disable it, so AC_SUBST the negative form.
5355 PERMIT_DECLARATION_AFTER_STATEMENT
=
5356 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5357 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5360 # Really don't want VLAs to be used in our dialect of C
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5363 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5364 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5365 $as_echo_n "(cached) " >&6
5367 pgac_save_CFLAGS
=$CFLAGS
5370 CFLAGS
="${CFLAGS} -Werror=vla"
5371 ac_save_c_werror_flag
=$ac_c_werror_flag
5372 ac_c_werror_flag
=yes
5373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5384 if ac_fn_c_try_compile
"$LINENO"; then :
5385 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5387 pgac_cv_prog_CC_cflags__Werror_vla
=no
5389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5390 ac_c_werror_flag
=$ac_save_c_werror_flag
5391 CFLAGS
="$pgac_save_CFLAGS"
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5395 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5396 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5397 CFLAGS
="${CFLAGS} -Werror=vla"
5401 # On macOS, complain about usage of symbols newer than the deployment target
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5404 $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5405 if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false
; then :
5406 $as_echo_n "(cached) " >&6
5408 pgac_save_CFLAGS
=$CFLAGS
5411 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5412 ac_save_c_werror_flag
=$ac_c_werror_flag
5413 ac_c_werror_flag
=yes
5414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5425 if ac_fn_c_try_compile
"$LINENO"; then :
5426 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=yes
5428 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=no
5430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5431 ac_c_werror_flag
=$ac_save_c_werror_flag
5432 CFLAGS
="$pgac_save_CFLAGS"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5436 $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5437 if test x
"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x
"yes"; then
5438 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5443 $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5444 if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false
; then :
5445 $as_echo_n "(cached) " >&6
5447 pgac_save_CXXFLAGS
=$CXXFLAGS
5450 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5451 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5452 ac_cxx_werror_flag
=yes
5454 ac_cpp
='$CXXCPP $CPPFLAGS'
5455 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5470 if ac_fn_cxx_try_compile
"$LINENO"; then :
5471 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=yes
5473 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=no
5475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5477 ac_cpp
='$CPP $CPPFLAGS'
5478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5482 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5483 CXXFLAGS
="$pgac_save_CXXFLAGS"
5484 CXX
="$pgac_save_CXX"
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5487 $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5488 if test x
"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x
"yes"; then
5489 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5493 # -Wvla is not applicable for C++
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5496 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5497 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5498 $as_echo_n "(cached) " >&6
5500 pgac_save_CFLAGS
=$CFLAGS
5503 CFLAGS
="${CFLAGS} -Wendif-labels"
5504 ac_save_c_werror_flag
=$ac_c_werror_flag
5505 ac_c_werror_flag
=yes
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5517 if ac_fn_c_try_compile
"$LINENO"; then :
5518 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5520 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5523 ac_c_werror_flag
=$ac_save_c_werror_flag
5524 CFLAGS
="$pgac_save_CFLAGS"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5528 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5529 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5530 CFLAGS
="${CFLAGS} -Wendif-labels"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5535 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5536 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5537 $as_echo_n "(cached) " >&6
5539 pgac_save_CXXFLAGS
=$CXXFLAGS
5542 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5543 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5544 ac_cxx_werror_flag
=yes
5546 ac_cpp
='$CXXCPP $CPPFLAGS'
5547 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5562 if ac_fn_cxx_try_compile
"$LINENO"; then :
5563 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5565 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5569 ac_cpp
='$CPP $CPPFLAGS'
5570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5574 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5575 CXXFLAGS
="$pgac_save_CXXFLAGS"
5576 CXX
="$pgac_save_CXX"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5579 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5580 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5581 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5587 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5588 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5589 $as_echo_n "(cached) " >&6
5591 pgac_save_CFLAGS
=$CFLAGS
5594 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5595 ac_save_c_werror_flag
=$ac_c_werror_flag
5596 ac_c_werror_flag
=yes
5597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5608 if ac_fn_c_try_compile
"$LINENO"; then :
5609 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5611 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 ac_c_werror_flag
=$ac_save_c_werror_flag
5615 CFLAGS
="$pgac_save_CFLAGS"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5619 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5620 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5621 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5626 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5627 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5630 pgac_save_CXXFLAGS
=$CXXFLAGS
5633 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5634 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5635 ac_cxx_werror_flag
=yes
5637 ac_cpp
='$CXXCPP $CPPFLAGS'
5638 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5653 if ac_fn_cxx_try_compile
"$LINENO"; then :
5654 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5656 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5660 ac_cpp
='$CPP $CPPFLAGS'
5661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5665 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5666 CXXFLAGS
="$pgac_save_CXXFLAGS"
5667 CXX
="$pgac_save_CXX"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5670 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5671 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5672 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5678 $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5679 if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 pgac_save_CFLAGS
=$CFLAGS
5685 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5686 ac_save_c_werror_flag
=$ac_c_werror_flag
5687 ac_c_werror_flag
=yes
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5699 if ac_fn_c_try_compile
"$LINENO"; then :
5700 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=yes
5702 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=no
5704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 ac_c_werror_flag
=$ac_save_c_werror_flag
5706 CFLAGS
="$pgac_save_CFLAGS"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5710 $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5711 if test x
"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x
"yes"; then
5712 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5717 $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5718 if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false
; then :
5719 $as_echo_n "(cached) " >&6
5721 pgac_save_CXXFLAGS
=$CXXFLAGS
5724 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5725 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5726 ac_cxx_werror_flag
=yes
5728 ac_cpp
='$CXXCPP $CPPFLAGS'
5729 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5744 if ac_fn_cxx_try_compile
"$LINENO"; then :
5745 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=yes
5747 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=no
5749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5751 ac_cpp
='$CPP $CPPFLAGS'
5752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5756 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5757 CXXFLAGS
="$pgac_save_CXXFLAGS"
5758 CXX
="$pgac_save_CXX"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5761 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5762 if test x
"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x
"yes"; then
5763 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5769 $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5770 if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false
; then :
5771 $as_echo_n "(cached) " >&6
5773 pgac_save_CFLAGS
=$CFLAGS
5776 CFLAGS
="${CFLAGS} -Wcast-function-type"
5777 ac_save_c_werror_flag
=$ac_c_werror_flag
5778 ac_c_werror_flag
=yes
5779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5790 if ac_fn_c_try_compile
"$LINENO"; then :
5791 pgac_cv_prog_CC_cflags__Wcast_function_type
=yes
5793 pgac_cv_prog_CC_cflags__Wcast_function_type
=no
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 ac_c_werror_flag
=$ac_save_c_werror_flag
5797 CFLAGS
="$pgac_save_CFLAGS"
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5801 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5802 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x
"yes"; then
5803 CFLAGS
="${CFLAGS} -Wcast-function-type"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5808 $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5809 if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 pgac_save_CXXFLAGS
=$CXXFLAGS
5815 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5816 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5817 ac_cxx_werror_flag
=yes
5819 ac_cpp
='$CXXCPP $CPPFLAGS'
5820 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5835 if ac_fn_cxx_try_compile
"$LINENO"; then :
5836 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=yes
5838 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=no
5840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 ac_cpp
='$CPP $CPPFLAGS'
5843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5847 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5848 CXXFLAGS
="$pgac_save_CXXFLAGS"
5849 CXX
="$pgac_save_CXX"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5852 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5853 if test x
"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x
"yes"; then
5854 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5858 # This was included in -Wall/-Wformat in older GCC versions
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5861 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5862 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5863 $as_echo_n "(cached) " >&6
5865 pgac_save_CFLAGS
=$CFLAGS
5868 CFLAGS
="${CFLAGS} -Wformat-security"
5869 ac_save_c_werror_flag
=$ac_c_werror_flag
5870 ac_c_werror_flag
=yes
5871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5882 if ac_fn_c_try_compile
"$LINENO"; then :
5883 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5885 pgac_cv_prog_CC_cflags__Wformat_security
=no
5887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 ac_c_werror_flag
=$ac_save_c_werror_flag
5889 CFLAGS
="$pgac_save_CFLAGS"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5893 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5894 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5895 CFLAGS
="${CFLAGS} -Wformat-security"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5900 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5901 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5902 $as_echo_n "(cached) " >&6
5904 pgac_save_CXXFLAGS
=$CXXFLAGS
5907 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5908 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5909 ac_cxx_werror_flag
=yes
5911 ac_cpp
='$CXXCPP $CPPFLAGS'
5912 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5927 if ac_fn_cxx_try_compile
"$LINENO"; then :
5928 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
5930 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
5932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5934 ac_cpp
='$CPP $CPPFLAGS'
5935 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5939 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5940 CXXFLAGS
="$pgac_save_CXXFLAGS"
5941 CXX
="$pgac_save_CXX"
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5944 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5945 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
5946 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5950 # Disable strict-aliasing rules; needed for gcc 3.3+
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5953 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5954 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
5955 $as_echo_n "(cached) " >&6
5957 pgac_save_CFLAGS
=$CFLAGS
5960 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5961 ac_save_c_werror_flag
=$ac_c_werror_flag
5962 ac_c_werror_flag
=yes
5963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5974 if ac_fn_c_try_compile
"$LINENO"; then :
5975 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
5977 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
5979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5980 ac_c_werror_flag
=$ac_save_c_werror_flag
5981 CFLAGS
="$pgac_save_CFLAGS"
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5985 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5986 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
5987 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5992 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5993 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
5994 $as_echo_n "(cached) " >&6
5996 pgac_save_CXXFLAGS
=$CXXFLAGS
5999 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6000 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6001 ac_cxx_werror_flag
=yes
6003 ac_cpp
='$CXXCPP $CPPFLAGS'
6004 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6019 if ac_fn_cxx_try_compile
"$LINENO"; then :
6020 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6022 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6026 ac_cpp
='$CPP $CPPFLAGS'
6027 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6031 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6032 CXXFLAGS
="$pgac_save_CXXFLAGS"
6033 CXX
="$pgac_save_CXX"
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6036 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6037 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6038 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6042 # Disable optimizations that assume no overflow; needed for gcc 4.3+
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
6045 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
6046 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
6047 $as_echo_n "(cached) " >&6
6049 pgac_save_CFLAGS
=$CFLAGS
6052 CFLAGS
="${CFLAGS} -fwrapv"
6053 ac_save_c_werror_flag
=$ac_c_werror_flag
6054 ac_c_werror_flag
=yes
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6066 if ac_fn_c_try_compile
"$LINENO"; then :
6067 pgac_cv_prog_CC_cflags__fwrapv
=yes
6069 pgac_cv_prog_CC_cflags__fwrapv
=no
6071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6072 ac_c_werror_flag
=$ac_save_c_werror_flag
6073 CFLAGS
="$pgac_save_CFLAGS"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
6077 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
6078 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
6079 CFLAGS
="${CFLAGS} -fwrapv"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
6084 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
6085 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
6086 $as_echo_n "(cached) " >&6
6088 pgac_save_CXXFLAGS
=$CXXFLAGS
6091 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6092 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6093 ac_cxx_werror_flag
=yes
6095 ac_cpp
='$CXXCPP $CPPFLAGS'
6096 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6111 if ac_fn_cxx_try_compile
"$LINENO"; then :
6112 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
6114 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
6116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6118 ac_cpp
='$CPP $CPPFLAGS'
6119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6123 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6124 CXXFLAGS
="$pgac_save_CXXFLAGS"
6125 CXX
="$pgac_save_CXX"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
6128 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
6129 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
6130 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6134 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
6137 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
6138 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
6139 $as_echo_n "(cached) " >&6
6141 pgac_save_CFLAGS
=$CFLAGS
6144 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
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__fexcess_precision_standard
=yes
6161 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=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__fexcess_precision_standard" >&5
6169 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
6170 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
6171 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
6176 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
6177 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
6178 $as_echo_n "(cached) " >&6
6180 pgac_save_CXXFLAGS
=$CXXFLAGS
6183 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6184 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6185 ac_cxx_werror_flag
=yes
6187 ac_cpp
='$CXXCPP $CPPFLAGS'
6188 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6203 if ac_fn_cxx_try_compile
"$LINENO"; then :
6204 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
6206 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 ac_cpp
='$CPP $CPPFLAGS'
6211 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6215 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6216 CXXFLAGS
="$pgac_save_CXXFLAGS"
6217 CXX
="$pgac_save_CXX"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
6220 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
6221 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6222 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6226 # Optimization flags for specific files that benefit from loop unrolling
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
6228 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
6229 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
6230 $as_echo_n "(cached) " >&6
6232 pgac_save_CFLAGS
=$CFLAGS
6235 CFLAGS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6236 ac_save_c_werror_flag
=$ac_c_werror_flag
6237 ac_c_werror_flag
=yes
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6249 if ac_fn_c_try_compile
"$LINENO"; then :
6250 pgac_cv_prog_CC_cflags__funroll_loops
=yes
6252 pgac_cv_prog_CC_cflags__funroll_loops
=no
6254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6255 ac_c_werror_flag
=$ac_save_c_werror_flag
6256 CFLAGS
="$pgac_save_CFLAGS"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6260 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6261 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
6262 CFLAGS_UNROLL_LOOPS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6266 # Optimization flags for specific files that benefit from vectorization
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
6268 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
6269 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
6270 $as_echo_n "(cached) " >&6
6272 pgac_save_CFLAGS
=$CFLAGS
6275 CFLAGS
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6276 ac_save_c_werror_flag
=$ac_c_werror_flag
6277 ac_c_werror_flag
=yes
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6289 if ac_fn_c_try_compile
"$LINENO"; then :
6290 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
6292 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
6294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6295 ac_c_werror_flag
=$ac_save_c_werror_flag
6296 CFLAGS
="$pgac_save_CFLAGS"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6300 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6301 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
6302 CFLAGS_VECTORIZE
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6307 # If the compiler knows how to hide symbols add the switch needed for that
6308 # to CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE.
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE" >&5
6310 $as_echo_n "checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
6311 if ${pgac_cv_prog_CC_cflags__fvisibility_hidden+:} false
; then :
6312 $as_echo_n "(cached) " >&6
6314 pgac_save_CFLAGS
=$CFLAGS
6317 CFLAGS
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6318 ac_save_c_werror_flag
=$ac_c_werror_flag
6319 ac_c_werror_flag
=yes
6320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6331 if ac_fn_c_try_compile
"$LINENO"; then :
6332 pgac_cv_prog_CC_cflags__fvisibility_hidden
=yes
6334 pgac_cv_prog_CC_cflags__fvisibility_hidden
=no
6336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6337 ac_c_werror_flag
=$ac_save_c_werror_flag
6338 CFLAGS
="$pgac_save_CFLAGS"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fvisibility_hidden" >&5
6342 $as_echo "$pgac_cv_prog_CC_cflags__fvisibility_hidden" >&6; }
6343 if test x
"$pgac_cv_prog_CC_cflags__fvisibility_hidden" = x
"yes"; then
6344 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6348 if test "$pgac_cv_prog_CC_cflags__fvisibility_hidden" = yes; then
6350 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
6353 # For C++ we additionally want -fvisibility-inlines-hidden
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
6355 $as_echo_n "checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6356 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_hidden+:} false
; then :
6357 $as_echo_n "(cached) " >&6
6359 pgac_save_CXXFLAGS
=$CXXFLAGS
6362 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6363 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6364 ac_cxx_werror_flag
=yes
6366 ac_cpp
='$CXXCPP $CPPFLAGS'
6367 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6382 if ac_fn_cxx_try_compile
"$LINENO"; then :
6383 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=yes
6385 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=no
6387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6389 ac_cpp
='$CPP $CPPFLAGS'
6390 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6394 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6395 CXXFLAGS
="$pgac_save_CXXFLAGS"
6396 CXX
="$pgac_save_CXX"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&5
6399 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&6; }
6400 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" = x
"yes"; then
6401 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE" >&5
6405 $as_echo_n "checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6406 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden+:} false
; then :
6407 $as_echo_n "(cached) " >&6
6409 pgac_save_CXXFLAGS
=$CXXFLAGS
6412 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6413 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6414 ac_cxx_werror_flag
=yes
6416 ac_cpp
='$CXXCPP $CPPFLAGS'
6417 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_cxx_try_compile
"$LINENO"; then :
6433 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=yes
6435 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=no
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 ac_cpp
='$CPP $CPPFLAGS'
6440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6444 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6445 CXXFLAGS
="$pgac_save_CXXFLAGS"
6446 CXX
="$pgac_save_CXX"
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&5
6449 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&6; }
6450 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" = x
"yes"; then
6451 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6455 # The following tests want to suppress various unhelpful warnings by adding
6456 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
6457 # switches, so we have to test for the positive form and if that works,
6458 # add the negative form. Note that tests of this form typically need to
6459 # be duplicated in the BITCODE_CFLAGS setup stanza below.
6461 # Suppress clang's unhelpful unused-command-line-argument warnings.
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6464 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6465 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6466 $as_echo_n "(cached) " >&6
6468 pgac_save_CFLAGS
=$CFLAGS
6471 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6472 ac_save_c_werror_flag
=$ac_c_werror_flag
6473 ac_c_werror_flag
=yes
6474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6486 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6488 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6491 ac_c_werror_flag
=$ac_save_c_werror_flag
6492 CFLAGS
="$pgac_save_CFLAGS"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6496 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6497 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6498 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6502 if test -n "$NOT_THE_CFLAGS"; then
6503 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6505 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6506 # of warnings when building plperl because of usages in the Perl headers.
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6509 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6510 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6511 $as_echo_n "(cached) " >&6
6513 pgac_save_CFLAGS
=$CFLAGS
6516 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6517 ac_save_c_werror_flag
=$ac_c_werror_flag
6518 ac_c_werror_flag
=yes
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6530 if ac_fn_c_try_compile
"$LINENO"; then :
6531 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6533 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 ac_c_werror_flag
=$ac_save_c_werror_flag
6537 CFLAGS
="$pgac_save_CFLAGS"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6541 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6542 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6543 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6547 if test -n "$NOT_THE_CFLAGS"; then
6548 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6550 # Similarly disable useless truncation warnings from gcc 8+
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6553 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6554 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6555 $as_echo_n "(cached) " >&6
6557 pgac_save_CFLAGS
=$CFLAGS
6560 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6561 ac_save_c_werror_flag
=$ac_c_werror_flag
6562 ac_c_werror_flag
=yes
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6574 if ac_fn_c_try_compile
"$LINENO"; then :
6575 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6577 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6580 ac_c_werror_flag
=$ac_save_c_werror_flag
6581 CFLAGS
="$pgac_save_CFLAGS"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6585 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6586 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6587 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6591 if test -n "$NOT_THE_CFLAGS"; then
6592 CFLAGS
="$CFLAGS -Wno-format-truncation"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6596 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6597 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6598 $as_echo_n "(cached) " >&6
6600 pgac_save_CFLAGS
=$CFLAGS
6603 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
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__Wstringop_truncation
=yes
6620 pgac_cv_prog_CC_cflags__Wstringop_truncation
=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__Wstringop_truncation" >&5
6628 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6629 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6630 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6634 if test -n "$NOT_THE_CFLAGS"; then
6635 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6637 elif test "$ICC" = yes; then
6638 # Intel's compiler has a bug/misoptimization in checking for
6639 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6642 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6643 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6644 $as_echo_n "(cached) " >&6
6646 pgac_save_CFLAGS
=$CFLAGS
6649 CFLAGS
="${CFLAGS} -mp1"
6650 ac_save_c_werror_flag
=$ac_c_werror_flag
6651 ac_c_werror_flag
=yes
6652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6663 if ac_fn_c_try_compile
"$LINENO"; then :
6664 pgac_cv_prog_CC_cflags__mp1
=yes
6666 pgac_cv_prog_CC_cflags__mp1
=no
6668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6669 ac_c_werror_flag
=$ac_save_c_werror_flag
6670 CFLAGS
="$pgac_save_CFLAGS"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6674 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6675 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6676 CFLAGS
="${CFLAGS} -mp1"
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6681 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6682 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6683 $as_echo_n "(cached) " >&6
6685 pgac_save_CXXFLAGS
=$CXXFLAGS
6688 CXXFLAGS
="${CXXFLAGS} -mp1"
6689 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6690 ac_cxx_werror_flag
=yes
6692 ac_cpp
='$CXXCPP $CPPFLAGS'
6693 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6708 if ac_fn_cxx_try_compile
"$LINENO"; then :
6709 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6711 pgac_cv_prog_CXX_cxxflags__mp1
=no
6713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 ac_cpp
='$CPP $CPPFLAGS'
6716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6720 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6721 CXXFLAGS
="$pgac_save_CXXFLAGS"
6722 CXX
="$pgac_save_CXX"
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6725 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6726 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6727 CXXFLAGS
="${CXXFLAGS} -mp1"
6731 # Make sure strict aliasing is off (though this is said to be the default)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6734 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6735 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6736 $as_echo_n "(cached) " >&6
6738 pgac_save_CFLAGS
=$CFLAGS
6741 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6742 ac_save_c_werror_flag
=$ac_c_werror_flag
6743 ac_c_werror_flag
=yes
6744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6755 if ac_fn_c_try_compile
"$LINENO"; then :
6756 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6758 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6761 ac_c_werror_flag
=$ac_save_c_werror_flag
6762 CFLAGS
="$pgac_save_CFLAGS"
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6766 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6767 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6768 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6773 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6774 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6775 $as_echo_n "(cached) " >&6
6777 pgac_save_CXXFLAGS
=$CXXFLAGS
6780 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6781 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6782 ac_cxx_werror_flag
=yes
6784 ac_cpp
='$CXXCPP $CPPFLAGS'
6785 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6800 if ac_fn_cxx_try_compile
"$LINENO"; then :
6801 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6803 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6807 ac_cpp
='$CPP $CPPFLAGS'
6808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6812 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6813 CXXFLAGS
="$pgac_save_CXXFLAGS"
6814 CXX
="$pgac_save_CXX"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6817 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6818 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6819 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6823 elif test "$PORTNAME" = "aix"; then
6824 # AIX's xlc has to have strict aliasing turned off too
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6827 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6828 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6829 $as_echo_n "(cached) " >&6
6831 pgac_save_CFLAGS
=$CFLAGS
6834 CFLAGS
="${CFLAGS} -qnoansialias"
6835 ac_save_c_werror_flag
=$ac_c_werror_flag
6836 ac_c_werror_flag
=yes
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6848 if ac_fn_c_try_compile
"$LINENO"; then :
6849 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6851 pgac_cv_prog_CC_cflags__qnoansialias
=no
6853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6854 ac_c_werror_flag
=$ac_save_c_werror_flag
6855 CFLAGS
="$pgac_save_CFLAGS"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6859 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6860 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6861 CFLAGS
="${CFLAGS} -qnoansialias"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6866 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6867 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6868 $as_echo_n "(cached) " >&6
6870 pgac_save_CXXFLAGS
=$CXXFLAGS
6873 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6874 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6875 ac_cxx_werror_flag
=yes
6877 ac_cpp
='$CXXCPP $CPPFLAGS'
6878 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6893 if ac_fn_cxx_try_compile
"$LINENO"; then :
6894 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6896 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6900 ac_cpp
='$CPP $CPPFLAGS'
6901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6905 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6906 CXXFLAGS
="$pgac_save_CXXFLAGS"
6907 CXX
="$pgac_save_CXX"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6910 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6911 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6912 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6918 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6919 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6920 $as_echo_n "(cached) " >&6
6922 pgac_save_CFLAGS
=$CFLAGS
6925 CFLAGS
="${CFLAGS} -qlonglong"
6926 ac_save_c_werror_flag
=$ac_c_werror_flag
6927 ac_c_werror_flag
=yes
6928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6939 if ac_fn_c_try_compile
"$LINENO"; then :
6940 pgac_cv_prog_CC_cflags__qlonglong
=yes
6942 pgac_cv_prog_CC_cflags__qlonglong
=no
6944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6945 ac_c_werror_flag
=$ac_save_c_werror_flag
6946 CFLAGS
="$pgac_save_CFLAGS"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6950 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6951 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6952 CFLAGS
="${CFLAGS} -qlonglong"
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6957 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6958 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6959 $as_echo_n "(cached) " >&6
6961 pgac_save_CXXFLAGS
=$CXXFLAGS
6964 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6965 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6966 ac_cxx_werror_flag
=yes
6968 ac_cpp
='$CXXCPP $CPPFLAGS'
6969 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6984 if ac_fn_cxx_try_compile
"$LINENO"; then :
6985 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
6987 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
6989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6991 ac_cpp
='$CPP $CPPFLAGS'
6992 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6996 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6997 CXXFLAGS
="$pgac_save_CXXFLAGS"
6998 CXX
="$pgac_save_CXX"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
7001 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
7002 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
7003 CXXFLAGS
="${CXXFLAGS} -qlonglong"
7014 # Determine flags used to emit bitcode for JIT inlining.
7015 # 1. We must duplicate any behaviour-changing compiler flags used above,
7016 # to keep compatibility with the compiler used for normal Postgres code.
7017 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
7018 # warning in the main build is enough.
7019 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
7020 if test "$with_llvm" = yes ; then
7021 CLANGXX
="$CLANG -xc++"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
7024 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
7025 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
7026 $as_echo_n "(cached) " >&6
7028 pgac_save_CFLAGS
=$CFLAGS
7031 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7032 ac_save_c_werror_flag
=$ac_c_werror_flag
7033 ac_c_werror_flag
=yes
7034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7045 if ac_fn_c_try_compile
"$LINENO"; then :
7046 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
7048 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
7050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7051 ac_c_werror_flag
=$ac_save_c_werror_flag
7052 CFLAGS
="$pgac_save_CFLAGS"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
7056 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
7057 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
7058 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
7062 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
7063 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
7064 $as_echo_n "(cached) " >&6
7066 pgac_save_CXXFLAGS
=$CXXFLAGS
7069 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7070 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7071 ac_cxx_werror_flag
=yes
7073 ac_cpp
='$CXXCPP $CPPFLAGS'
7074 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7089 if ac_fn_cxx_try_compile
"$LINENO"; then :
7090 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
7092 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
7094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7096 ac_cpp
='$CPP $CPPFLAGS'
7097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7101 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7102 CXXFLAGS
="$pgac_save_CXXFLAGS"
7103 CXX
="$pgac_save_CXX"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
7106 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
7107 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
7108 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
7112 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
7113 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
7114 $as_echo_n "(cached) " >&6
7116 pgac_save_CFLAGS
=$CFLAGS
7119 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7120 ac_save_c_werror_flag
=$ac_c_werror_flag
7121 ac_c_werror_flag
=yes
7122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7133 if ac_fn_c_try_compile
"$LINENO"; then :
7134 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
7136 pgac_cv_prog_CLANG_cflags__fwrapv
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7139 ac_c_werror_flag
=$ac_save_c_werror_flag
7140 CFLAGS
="$pgac_save_CFLAGS"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
7144 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
7145 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
7146 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
7150 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
7151 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
7152 $as_echo_n "(cached) " >&6
7154 pgac_save_CXXFLAGS
=$CXXFLAGS
7157 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7158 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7159 ac_cxx_werror_flag
=yes
7161 ac_cpp
='$CXXCPP $CPPFLAGS'
7162 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7163 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7164 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7177 if ac_fn_cxx_try_compile
"$LINENO"; then :
7178 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
7180 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
7182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7184 ac_cpp
='$CPP $CPPFLAGS'
7185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7189 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7190 CXXFLAGS
="$pgac_save_CXXFLAGS"
7191 CXX
="$pgac_save_CXX"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
7194 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
7195 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
7196 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
7200 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
7201 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
7202 $as_echo_n "(cached) " >&6
7204 pgac_save_CFLAGS
=$CFLAGS
7207 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7208 ac_save_c_werror_flag
=$ac_c_werror_flag
7209 ac_c_werror_flag
=yes
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7221 if ac_fn_c_try_compile
"$LINENO"; then :
7222 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
7224 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
7226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7227 ac_c_werror_flag
=$ac_save_c_werror_flag
7228 CFLAGS
="$pgac_save_CFLAGS"
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
7232 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
7233 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
7234 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
7238 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
7239 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
7240 $as_echo_n "(cached) " >&6
7242 pgac_save_CXXFLAGS
=$CXXFLAGS
7245 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7246 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7247 ac_cxx_werror_flag
=yes
7249 ac_cpp
='$CXXCPP $CPPFLAGS'
7250 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7265 if ac_fn_cxx_try_compile
"$LINENO"; then :
7266 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
7268 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
7270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7272 ac_cpp
='$CPP $CPPFLAGS'
7273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7277 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7278 CXXFLAGS
="$pgac_save_CXXFLAGS"
7279 CXX
="$pgac_save_CXX"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7282 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7283 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
7284 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7290 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7291 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7292 $as_echo_n "(cached) " >&6
7294 pgac_save_CFLAGS
=$CFLAGS
7297 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7298 ac_save_c_werror_flag
=$ac_c_werror_flag
7299 ac_c_werror_flag
=yes
7300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7311 if ac_fn_c_try_compile
"$LINENO"; then :
7312 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7314 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7317 ac_c_werror_flag
=$ac_save_c_werror_flag
7318 CFLAGS
="$pgac_save_CFLAGS"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7322 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7323 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7324 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7327 if test -n "$NOT_THE_CFLAGS"; then
7328 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7332 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7333 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7334 $as_echo_n "(cached) " >&6
7336 pgac_save_CFLAGS
=$CFLAGS
7339 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7340 ac_save_c_werror_flag
=$ac_c_werror_flag
7341 ac_c_werror_flag
=yes
7342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7353 if ac_fn_c_try_compile
"$LINENO"; then :
7354 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7356 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7359 ac_c_werror_flag
=$ac_save_c_werror_flag
7360 CFLAGS
="$pgac_save_CFLAGS"
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7364 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7365 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7366 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7369 if test -n "$NOT_THE_CFLAGS"; then
7370 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7374 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7375 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7376 $as_echo_n "(cached) " >&6
7378 pgac_save_CFLAGS
=$CFLAGS
7381 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7382 ac_save_c_werror_flag
=$ac_c_werror_flag
7383 ac_c_werror_flag
=yes
7384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7395 if ac_fn_c_try_compile
"$LINENO"; then :
7396 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7398 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7401 ac_c_werror_flag
=$ac_save_c_werror_flag
7402 CFLAGS
="$pgac_save_CFLAGS"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7406 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7407 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7408 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7411 if test -n "$NOT_THE_CFLAGS"; then
7412 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7416 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7417 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7418 $as_echo_n "(cached) " >&6
7420 pgac_save_CFLAGS
=$CFLAGS
7423 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7424 ac_save_c_werror_flag
=$ac_c_werror_flag
7425 ac_c_werror_flag
=yes
7426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7437 if ac_fn_c_try_compile
"$LINENO"; then :
7438 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7440 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7443 ac_c_werror_flag
=$ac_save_c_werror_flag
7444 CFLAGS
="$pgac_save_CFLAGS"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7448 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7449 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7450 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7453 if test -n "$NOT_THE_CFLAGS"; then
7454 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7458 # supply -g if --enable-debug
7459 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7463 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7464 CXXFLAGS
="$CXXFLAGS -g"
7467 # enable code coverage if --enable-coverage
7468 if test "$enable_coverage" = yes; then
7469 if test "$GCC" = yes; then
7470 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7471 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7473 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7477 # enable profiling if --enable-profiling
7478 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7479 if test "$GCC" = yes; then
7481 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7483 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7484 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7486 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7490 # On Solaris, we need this #define to get POSIX-conforming versions
7491 # of many interfaces (sigwait, getpwuid_r, ...).
7492 if test "$PORTNAME" = "solaris"; then
7493 CPPFLAGS
="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
7496 # We already have this in Makefile.win32, but configure needs it too
7497 if test "$PORTNAME" = "win32"; then
7498 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
7501 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7502 # user-specified flags (if any) at the end. This lets users override
7503 # the automatic additions.
7504 CFLAGS
="$CFLAGS $user_CFLAGS"
7505 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7506 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7507 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7512 # The template file must set up CFLAGS_SL; we don't support user override
7515 # Check if the compiler still works with the final flag settings
7516 # (note, we're not checking that for CXX, which is optional)
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7518 $as_echo_n "checking whether the C compiler still works... " >&6; }
7519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7530 if ac_fn_c_try_link
"$LINENO"; then :
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532 $as_echo "yes" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 as_fn_error $?
"cannot proceed" "$LINENO" 5
7538 rm -f core conftest.err conftest.
$ac_objext \
7539 conftest
$ac_exeext conftest.
$ac_ext
7541 # Defend against gcc -ffast-math
7542 if test "$GCC" = yes; then
7543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7549 #ifdef __FAST_MATH__
7556 if ac_fn_c_try_compile
"$LINENO"; then :
7559 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7565 # versions of clang do not understand -fexcess-precision=standard, the use of
7566 # x87 floating point operations leads to problems like isinf possibly returning
7567 # false for a value that is infinite when converted from the 80bit register to
7568 # the 8byte memory representation.
7570 # Only perform the test if the compiler doesn't understand
7571 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7573 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7581 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7589 if ac_fn_c_try_compile
"$LINENO"; then :
7592 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7598 ac_cpp
='$CPP $CPPFLAGS'
7599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7603 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7604 # On Suns, sometimes $CPP names a directory.
7605 if test -n "$CPP" && test -d "$CPP"; then
7608 if test -z "$CPP"; then
7609 if ${ac_cv_prog_CPP+:} false
; then :
7610 $as_echo_n "(cached) " >&6
7612 # Double quotes because CPP needs to be expanded
7613 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7616 for ac_c_preproc_warn_flag
in '' yes
7618 # Use a header file that comes with gcc, so configuring glibc
7619 # with a fresh cross-compiler works.
7620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7621 # <limits.h> exists even on freestanding compilers.
7622 # On the NeXT, cc -E runs the code through the compiler's parser,
7623 # not just through cpp. "Syntax error" is here to catch this case.
7624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7627 # include <limits.h>
7629 # include <assert.h>
7633 if ac_fn_c_try_cpp
"$LINENO"; then :
7636 # Broken: fails on valid input.
7639 rm -f conftest.err conftest.i conftest.
$ac_ext
7641 # OK, works on sane cases. Now check whether nonexistent headers
7642 # can be detected and how.
7643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <ac_nonexistent.h>
7647 if ac_fn_c_try_cpp
"$LINENO"; then :
7648 # Broken: success on invalid input.
7651 # Passes both tests.
7655 rm -f conftest.err conftest.i conftest.
$ac_ext
7658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7659 rm -f conftest.i conftest.err conftest.
$ac_ext
7660 if $ac_preproc_ok; then :
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7673 $as_echo "$CPP" >&6; }
7675 for ac_c_preproc_warn_flag
in '' yes
7677 # Use a header file that comes with gcc, so configuring glibc
7678 # with a fresh cross-compiler works.
7679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7680 # <limits.h> exists even on freestanding compilers.
7681 # On the NeXT, cc -E runs the code through the compiler's parser,
7682 # not just through cpp. "Syntax error" is here to catch this case.
7683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7686 # include <limits.h>
7688 # include <assert.h>
7692 if ac_fn_c_try_cpp
"$LINENO"; then :
7695 # Broken: fails on valid input.
7698 rm -f conftest.err conftest.i conftest.
$ac_ext
7700 # OK, works on sane cases. Now check whether nonexistent headers
7701 # can be detected and how.
7702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 #include <ac_nonexistent.h>
7706 if ac_fn_c_try_cpp
"$LINENO"; then :
7707 # Broken: success on invalid input.
7710 # Passes both tests.
7714 rm -f conftest.err conftest.i conftest.
$ac_ext
7717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7718 rm -f conftest.i conftest.err conftest.
$ac_ext
7719 if $ac_preproc_ok; then :
7722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7724 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7725 See \`config.log' for more details" "$LINENO" 5; }
7729 ac_cpp
='$CPP $CPPFLAGS'
7730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7738 # Set up TAS assembly code if needed; the template file has now had its
7739 # chance to request this.
7741 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7744 if test "$need_tas" = yes ; then
7752 cat >>confdefs.h
<<_ACEOF
7753 #define DLSUFFIX "$DLSUFFIX"
7758 # Set up pkg_config in case we need it below
7767 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7770 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7774 $as_echo_n "(cached) " >&6
7778 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir
=.
7786 for ac_exec_ext
in '' $ac_executable_extensions; do
7787 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7800 if test -n "$PKG_CONFIG"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7802 $as_echo "$PKG_CONFIG" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7810 if test -z "$ac_cv_path_PKG_CONFIG"; then
7811 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7812 # Extract the first word of "pkg-config", so it can be a program name with args.
7813 set dummy pkg-config
; ac_word
=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7817 $as_echo_n "(cached) " >&6
7819 case $ac_pt_PKG_CONFIG in
7821 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir
=.
7829 for ac_exec_ext
in '' $ac_executable_extensions; do
7830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7843 if test -n "$ac_pt_PKG_CONFIG"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7845 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7851 if test "x$ac_pt_PKG_CONFIG" = x
; then
7854 case $cross_compiling:$ac_tool_warned in
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7858 ac_tool_warned
=yes ;;
7860 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7863 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7867 if test -n "$PKG_CONFIG"; then
7868 _pkg_min_version
=0.9.0
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7870 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7871 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7873 $as_echo "yes" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7882 # Automatic dependency tracking
7886 # Check whether --enable-depend was given.
7887 if test "${enable_depend+set}" = set; then :
7888 enableval
=$enable_depend;
7897 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7911 # Enable assert checks
7915 # Check whether --enable-cassert was given.
7916 if test "${enable_cassert+set}" = set; then :
7917 enableval
=$enable_cassert;
7921 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7928 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
7941 # Include directories
7944 IFS
="${IFS}${PATH_SEPARATOR}"
7945 # SRCH_INC comes from the template file
7946 for dir
in $with_includes $SRCH_INC; do
7947 if test -d "$dir"; then
7948 INCLUDES
="$INCLUDES -I$dir"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7951 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7959 # Library directories
7962 IFS
="${IFS}${PATH_SEPARATOR}"
7963 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7964 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
7965 if test -d "$dir"; then
7966 LIBDIRS
="$LIBDIRS -L$dir"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7969 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7975 # Enable thread-safe client libraries
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
7978 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
7981 # Check whether --enable-thread-safety was given.
7982 if test "${enable_thread_safety+set}" = set; then :
7983 enableval
=$enable_thread_safety;
7992 as_fn_error $?
"no argument expected for --enable-thread-safety option" "$LINENO" 5
7997 enable_thread_safety
=yes
8002 if test "$enable_thread_safety" = yes; then
8004 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
8008 $as_echo "$enable_thread_safety" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
8015 $as_echo_n "checking whether to build with ICU support... " >&6; }
8019 # Check whether --with-icu was given.
8020 if test "${with_icu+set}" = set; then :
8025 $as_echo "#define USE_ICU 1" >>confdefs.h
8032 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
8043 $as_echo "$with_icu" >&6; }
8046 if test "$with_icu" = yes; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
8050 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
8052 if test -n "$ICU_CFLAGS"; then
8053 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
8054 elif test -n "$PKG_CONFIG"; then
8055 if test -n "$PKG_CONFIG" && \
8056 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8057 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8060 test $ac_status = 0; }; then
8061 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
8062 test "x$?" != "x0" && pkg_failed
=yes
8069 if test -n "$ICU_LIBS"; then
8070 pkg_cv_ICU_LIBS
="$ICU_LIBS"
8071 elif test -n "$PKG_CONFIG"; then
8072 if test -n "$PKG_CONFIG" && \
8073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8074 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8077 test $ac_status = 0; }; then
8078 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
8079 test "x$?" != "x0" && pkg_failed
=yes
8089 if test $pkg_failed = yes; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8093 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8094 _pkg_short_errors_supported
=yes
8096 _pkg_short_errors_supported
=no
8098 if test $_pkg_short_errors_supported = yes; then
8099 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8101 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8103 # Put the nasty error message in config.log where it belongs
8104 echo "$ICU_PKG_ERRORS" >&5
8106 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
8110 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8111 installed software in a non-standard prefix.
8113 Alternatively, you may set the environment variables ICU_CFLAGS
8114 and ICU_LIBS to avoid the need to call pkg-config.
8115 See the pkg-config man page for more details." "$LINENO" 5
8116 elif test $pkg_failed = untried
; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8121 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8122 is in your PATH or set the PKG_CONFIG environment variable to the full
8125 Alternatively, you may set the environment variables ICU_CFLAGS
8126 and ICU_LIBS to avoid the need to call pkg-config.
8127 See the pkg-config man page for more details.
8129 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8130 See \`config.log' for more details" "$LINENO" 5; }
8132 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
8133 ICU_LIBS
=$pkg_cv_ICU_LIBS
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8135 $as_echo "yes" >&6; }
8141 # Optionally build Tcl modules (PL/Tcl)
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
8144 $as_echo_n "checking whether to build with Tcl... " >&6; }
8148 # Check whether --with-tcl was given.
8149 if test "${with_tcl+set}" = set; then :
8159 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
8170 $as_echo "$with_tcl" >&6; }
8173 # We see if the path to the Tcl/Tk configuration scripts is specified.
8174 # This will override the use of tclsh to find the paths to search.
8179 # Check whether --with-tclconfig was given.
8180 if test "${with_tclconfig+set}" = set; then :
8181 withval
=$with_tclconfig;
8184 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8187 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8199 # Optionally build Perl modules (PL/Perl)
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
8202 $as_echo_n "checking whether to build Perl modules... " >&6; }
8206 # Check whether --with-perl was given.
8207 if test "${with_perl+set}" = set; then :
8217 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8228 $as_echo "$with_perl" >&6; }
8232 # Optionally build Python modules (PL/Python)
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8235 $as_echo_n "checking whether to build Python modules... " >&6; }
8239 # Check whether --with-python was given.
8240 if test "${with_python+set}" = set; then :
8241 withval
=$with_python;
8250 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8261 $as_echo "$with_python" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8268 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8272 # Check whether --with-gssapi was given.
8273 if test "${with_gssapi+set}" = set; then :
8274 withval
=$with_gssapi;
8279 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8281 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8288 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8299 $as_echo "$with_gssapi" >&6; }
8307 # Kerberos configuration parameters
8312 # Check whether --with-krb-srvnam was given.
8313 if test "${with_krb_srvnam+set}" = set; then :
8314 withval
=$with_krb_srvnam;
8317 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8320 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8328 with_krb_srvnam
="postgres"
8334 cat >>confdefs.h
<<_ACEOF
8335 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8344 $as_echo_n "checking whether to build with PAM support... " >&6; }
8348 # Check whether --with-pam was given.
8349 if test "${with_pam+set}" = set; then :
8354 $as_echo "#define USE_PAM 1" >>confdefs.h
8361 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8372 $as_echo "$with_pam" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8379 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8383 # Check whether --with-bsd-auth was given.
8384 if test "${with_bsd_auth+set}" = set; then :
8385 withval
=$with_bsd_auth;
8389 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8396 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8407 $as_echo "$with_bsd_auth" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8414 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8418 # Check whether --with-ldap was given.
8419 if test "${with_ldap+set}" = set; then :
8424 $as_echo "#define USE_LDAP 1" >>confdefs.h
8431 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8442 $as_echo "$with_ldap" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8450 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8454 # Check whether --with-bonjour was given.
8455 if test "${with_bonjour+set}" = set; then :
8456 withval
=$with_bonjour;
8460 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8467 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8478 $as_echo "$with_bonjour" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8485 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8489 # Check whether --with-selinux was given.
8490 if test "${with_selinux+set}" = set; then :
8491 withval
=$with_selinux;
8500 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8512 $as_echo "$with_selinux" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8518 $as_echo_n "checking whether to build with systemd support... " >&6; }
8522 # Check whether --with-systemd was given.
8523 if test "${with_systemd+set}" = set; then :
8524 withval
=$with_systemd;
8528 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8535 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8547 $as_echo "$with_systemd" >&6; }
8555 # Check whether --with-readline was given.
8556 if test "${with_readline+set}" = set; then :
8557 withval
=$with_readline;
8566 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8576 # readline on MinGW has problems with backslashes in psql and other bugs.
8577 # This is particularly a problem with non-US code pages.
8578 # Therefore disable its use until we understand the cause. 2004-07-20
8579 if test "$PORTNAME" = "win32"; then
8580 if test "$with_readline" = yes; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8582 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8595 # Check whether --with-libedit-preferred was given.
8596 if test "${with_libedit_preferred+set}" = set; then :
8597 withval
=$with_libedit_preferred;
8606 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8611 with_libedit_preferred
=no
8621 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8622 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8623 # UUID library. More than one of these might be present on a given platform,
8624 # so we make the user say which one she wants.
8629 # Check whether --with-uuid was given.
8630 if test "${with_uuid+set}" = set; then :
8634 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8637 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8647 if test x
"$with_uuid" = x
"" ; then
8653 # Check whether --with-ossp-uuid was given.
8654 if test "${with_ossp_uuid+set}" = set; then :
8655 withval
=$with_ossp_uuid;
8664 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8674 if test "$with_ossp_uuid" = yes ; then
8678 if test "$with_uuid" != no
; then
8679 if test "$with_uuid" = bsd
; then
8681 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8683 elif test "$with_uuid" = e2fs
; then
8685 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8687 elif test "$with_uuid" = ossp
; then
8689 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8692 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8702 $as_echo_n "checking whether to build with XML support... " >&6; }
8706 # Check whether --with-libxml was given.
8707 if test "${with_libxml+set}" = set; then :
8708 withval
=$with_libxml;
8712 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8719 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8730 $as_echo "$with_libxml" >&6; }
8733 if test "$with_libxml" = yes ; then
8734 # Check pkg-config, then xml2-config. But for backwards compatibility,
8735 # setting XML2_CONFIG overrides pkg-config.
8736 have_libxml2_pkg_config
=no
8737 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8741 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8743 if test -n "$XML2_CFLAGS"; then
8744 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8745 elif test -n "$PKG_CONFIG"; then
8746 if test -n "$PKG_CONFIG" && \
8747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8748 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751 test $ac_status = 0; }; then
8752 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8753 test "x$?" != "x0" && pkg_failed
=yes
8760 if test -n "$XML2_LIBS"; then
8761 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8762 elif test -n "$PKG_CONFIG"; then
8763 if test -n "$PKG_CONFIG" && \
8764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8765 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768 test $ac_status = 0; }; then
8769 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8770 test "x$?" != "x0" && pkg_failed
=yes
8780 if test $pkg_failed = yes; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8785 _pkg_short_errors_supported
=yes
8787 _pkg_short_errors_supported
=no
8789 if test $_pkg_short_errors_supported = yes; then
8790 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8792 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8794 # Put the nasty error message in config.log where it belongs
8795 echo "$XML2_PKG_ERRORS" >&5
8798 elif test $pkg_failed = untried
; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8803 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8804 XML2_LIBS
=$pkg_cv_XML2_LIBS
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8806 $as_echo "yes" >&6; }
8807 have_libxml2_pkg_config
=yes
8810 if test "$have_libxml2_pkg_config" = no
; then
8811 if test -z "$XML2_CONFIG"; then
8812 for ac_prog
in xml2-config
8814 # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy
$ac_prog; ac_word
=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8819 $as_echo_n "(cached) " >&6
8821 case $XML2_CONFIG in
8823 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8830 test -z "$as_dir" && as_dir
=.
8831 for ac_exec_ext
in '' $ac_executable_extensions; do
8832 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8833 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8845 if test -n "$XML2_CONFIG"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8847 $as_echo "$XML2_CONFIG" >&6; }
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8854 test -n "$XML2_CONFIG" && break
8858 # Report the value of XML2_CONFIG in configure's output in all cases.
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8860 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8862 $as_echo "$XML2_CONFIG" >&6; }
8865 if test -n "$XML2_CONFIG"; then
8866 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8867 XML2_LIBS
=`$XML2_CONFIG --libs`
8870 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8871 for pgac_option
in $XML2_CFLAGS; do
8872 case $pgac_option in
8873 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8876 for pgac_option
in $XML2_LIBS; do
8877 case $pgac_option in
8878 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8890 # Check whether --with-libxslt was given.
8891 if test "${with_libxslt+set}" = set; then :
8892 withval
=$with_libxslt;
8896 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8903 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8923 # Check whether --with-system-tzdata was given.
8924 if test "${with_system_tzdata+set}" = set; then :
8925 withval
=$with_system_tzdata;
8928 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8931 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8949 # Check whether --with-zlib was given.
8950 if test "${with_zlib+set}" = set; then :
8960 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
8976 $as_echo_n "checking whether to build with LZ4 support... " >&6; }
8980 # Check whether --with-lz4 was given.
8981 if test "${with_lz4+set}" = set; then :
8986 $as_echo "#define USE_LZ4 1" >>confdefs.h
8993 as_fn_error $?
"no argument expected for --with-lz4 option" "$LINENO" 5
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
9004 $as_echo "$with_lz4" >&6; }
9007 if test "$with_lz4" = yes; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
9011 $as_echo_n "checking for liblz4... " >&6; }
9013 if test -n "$LZ4_CFLAGS"; then
9014 pkg_cv_LZ4_CFLAGS
="$LZ4_CFLAGS"
9015 elif test -n "$PKG_CONFIG"; then
9016 if test -n "$PKG_CONFIG" && \
9017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9018 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9021 test $ac_status = 0; }; then
9022 pkg_cv_LZ4_CFLAGS
=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
9023 test "x$?" != "x0" && pkg_failed
=yes
9030 if test -n "$LZ4_LIBS"; then
9031 pkg_cv_LZ4_LIBS
="$LZ4_LIBS"
9032 elif test -n "$PKG_CONFIG"; then
9033 if test -n "$PKG_CONFIG" && \
9034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9035 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9038 test $ac_status = 0; }; then
9039 pkg_cv_LZ4_LIBS
=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
9040 test "x$?" != "x0" && pkg_failed
=yes
9050 if test $pkg_failed = yes; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9054 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9055 _pkg_short_errors_supported
=yes
9057 _pkg_short_errors_supported
=no
9059 if test $_pkg_short_errors_supported = yes; then
9060 LZ4_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
9062 LZ4_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
9064 # Put the nasty error message in config.log where it belongs
9065 echo "$LZ4_PKG_ERRORS" >&5
9067 as_fn_error $?
"Package requirements (liblz4) were not met:
9071 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9072 installed software in a non-standard prefix.
9074 Alternatively, you may set the environment variables LZ4_CFLAGS
9075 and LZ4_LIBS to avoid the need to call pkg-config.
9076 See the pkg-config man page for more details." "$LINENO" 5
9077 elif test $pkg_failed = untried
; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9082 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9083 is in your PATH or set the PKG_CONFIG environment variable to the full
9086 Alternatively, you may set the environment variables LZ4_CFLAGS
9087 and LZ4_LIBS to avoid the need to call pkg-config.
9088 See the pkg-config man page for more details.
9090 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9091 See \`config.log' for more details" "$LINENO" 5; }
9093 LZ4_CFLAGS
=$pkg_cv_LZ4_CFLAGS
9094 LZ4_LIBS
=$pkg_cv_LZ4_LIBS
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9096 $as_echo "yes" >&6; }
9099 # We only care about -I, -D, and -L switches;
9100 # note that -llz4 will be added by AC_CHECK_LIB below.
9101 for pgac_option
in $LZ4_CFLAGS; do
9102 case $pgac_option in
9103 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9106 for pgac_option
in $LZ4_LIBS; do
9107 case $pgac_option in
9108 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ZSTD support" >&5
9117 $as_echo_n "checking whether to build with ZSTD support... " >&6; }
9121 # Check whether --with-zstd was given.
9122 if test "${with_zstd+set}" = set; then :
9127 $as_echo "#define USE_ZSTD 1" >>confdefs.h
9134 as_fn_error $?
"no argument expected for --with-zstd option" "$LINENO" 5
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd" >&5
9145 $as_echo "$with_zstd" >&6; }
9148 if test "$with_zstd" = yes; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9152 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9154 if test -n "$ZSTD_CFLAGS"; then
9155 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
9156 elif test -n "$PKG_CONFIG"; then
9157 if test -n "$PKG_CONFIG" && \
9158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9159 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9162 test $ac_status = 0; }; then
9163 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9164 test "x$?" != "x0" && pkg_failed
=yes
9171 if test -n "$ZSTD_LIBS"; then
9172 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
9173 elif test -n "$PKG_CONFIG"; then
9174 if test -n "$PKG_CONFIG" && \
9175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9176 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9179 test $ac_status = 0; }; then
9180 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9181 test "x$?" != "x0" && pkg_failed
=yes
9191 if test $pkg_failed = yes; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9196 _pkg_short_errors_supported
=yes
9198 _pkg_short_errors_supported
=no
9200 if test $_pkg_short_errors_supported = yes; then
9201 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9203 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9205 # Put the nasty error message in config.log where it belongs
9206 echo "$ZSTD_PKG_ERRORS" >&5
9208 as_fn_error $?
"Package requirements (libzstd >= 1.4.0) were not met:
9212 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9213 installed software in a non-standard prefix.
9215 Alternatively, you may set the environment variables ZSTD_CFLAGS
9216 and ZSTD_LIBS to avoid the need to call pkg-config.
9217 See the pkg-config man page for more details." "$LINENO" 5
9218 elif test $pkg_failed = untried
; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9223 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9224 is in your PATH or set the PKG_CONFIG environment variable to the full
9227 Alternatively, you may set the environment variables ZSTD_CFLAGS
9228 and ZSTD_LIBS to avoid the need to call pkg-config.
9229 See the pkg-config man page for more details.
9231 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9232 See \`config.log' for more details" "$LINENO" 5; }
9234 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
9235 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9237 $as_echo "yes" >&6; }
9240 # We only care about -I, -D, and -L switches;
9241 # note that -lzstd will be added by AC_CHECK_LIB below.
9242 for pgac_option
in $ZSTD_CFLAGS; do
9243 case $pgac_option in
9244 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9247 for pgac_option
in $ZSTD_LIBS; do
9248 case $pgac_option in
9249 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9257 CPPFLAGS
="$CPPFLAGS $INCLUDES"
9258 LDFLAGS
="$LDFLAGS $LIBDIRS"
9264 # Check whether --with-gnu-ld was given.
9265 if test "${with_gnu_ld+set}" = set; then :
9266 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9272 if test "$GCC" = yes; then
9273 # Check if gcc -print-prog-name=ld gives a path.
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9275 $as_echo_n "checking for ld used by GCC... " >&6; }
9278 # gcc leaves a trailing carriage return which upsets mingw
9279 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9281 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9284 # Accept absolute paths.
9285 [\\/]* |
[A-Za-z
]:[\\/]*)
9286 re_direlt
='/[^/][^/]*/\.\./'
9287 # Canonicalize the path of ld
9288 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9289 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9290 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9292 test -z "$LD" && LD
="$ac_prog"
9295 # If it fails, then pretend we aren't using GCC.
9299 # If it is relative, then search for the first ld in PATH.
9303 elif test "$with_gnu_ld" = yes; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9305 $as_echo_n "checking for GNU ld... " >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9308 $as_echo_n "checking for non-GNU ld... " >&6; }
9310 if ${ac_cv_path_LD+:} false
; then :
9311 $as_echo_n "(cached) " >&6
9313 if test -z "$LD"; then
9314 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9315 for ac_dir
in $PATH; do
9316 test -z "$ac_dir" && ac_dir
=.
9317 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9318 ac_cv_path_LD
="$ac_dir/$ac_prog"
9319 # Check to see if the program is GNU ld. I'd rather use --version,
9320 # but apparently some GNU ld's only accept -v.
9321 # Break only if it was the GNU/non-GNU ld that we prefer.
9322 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9323 test "$with_gnu_ld" != no
&& break
9325 test "$with_gnu_ld" != yes && break
9331 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
9336 if test -n "$LD"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9338 $as_echo "$LD" >&6; }
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9343 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9346 if ${ac_cv_prog_gnu_ld+:} false
; then :
9347 $as_echo_n "(cached) " >&6
9349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9350 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9351 ac_cv_prog_gnu_ld
=yes
9353 ac_cv_prog_gnu_ld
=no
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
9357 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
9358 with_gnu_ld
=$ac_cv_prog_gnu_ld
9363 if test -n "$ac_tool_prefix"; then
9364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9365 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if ${ac_cv_prog_RANLIB+:} false
; then :
9369 $as_echo_n "(cached) " >&6
9371 if test -n "$RANLIB"; then
9372 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9378 test -z "$as_dir" && as_dir
=.
9379 for ac_exec_ext
in '' $ac_executable_extensions; do
9380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9381 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 RANLIB
=$ac_cv_prog_RANLIB
9392 if test -n "$RANLIB"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9394 $as_echo "$RANLIB" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9402 if test -z "$ac_cv_prog_RANLIB"; then
9403 ac_ct_RANLIB
=$RANLIB
9404 # Extract the first word of "ranlib", so it can be a program name with args.
9405 set dummy ranlib
; ac_word
=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
9409 $as_echo_n "(cached) " >&6
9411 if test -n "$ac_ct_RANLIB"; then
9412 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
9414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9418 test -z "$as_dir" && as_dir
=.
9419 for ac_exec_ext
in '' $ac_executable_extensions; do
9420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9421 ac_cv_prog_ac_ct_RANLIB
="ranlib"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
9432 if test -n "$ac_ct_RANLIB"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9434 $as_echo "$ac_ct_RANLIB" >&6; }
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9440 if test "x$ac_ct_RANLIB" = x
; then
9443 case $cross_compiling:$ac_tool_warned in
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9447 ac_tool_warned
=yes ;;
9449 RANLIB
=$ac_ct_RANLIB
9452 RANLIB
="$ac_cv_prog_RANLIB"
9456 if test -n "$ac_tool_prefix"; then
9457 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9458 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9460 $as_echo_n "checking for $ac_word... " >&6; }
9461 if ${ac_cv_prog_STRIP+:} false
; then :
9462 $as_echo_n "(cached) " >&6
9464 if test -n "$STRIP"; then
9465 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9471 test -z "$as_dir" && as_dir
=.
9472 for ac_exec_ext
in '' $ac_executable_extensions; do
9473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9474 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 STRIP
=$ac_cv_prog_STRIP
9485 if test -n "$STRIP"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9487 $as_echo "$STRIP" >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9495 if test -z "$ac_cv_prog_STRIP"; then
9497 # Extract the first word of "strip", so it can be a program name with args.
9498 set dummy strip
; ac_word
=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9502 $as_echo_n "(cached) " >&6
9504 if test -n "$ac_ct_STRIP"; then
9505 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9511 test -z "$as_dir" && as_dir
=.
9512 for ac_exec_ext
in '' $ac_executable_extensions; do
9513 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_prog_ac_ct_STRIP
="strip"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9525 if test -n "$ac_ct_STRIP"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9527 $as_echo "$ac_ct_STRIP" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9533 if test "x$ac_ct_STRIP" = x
; then
9536 case $cross_compiling:$ac_tool_warned in
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9540 ac_tool_warned
=yes ;;
9545 STRIP
="$ac_cv_prog_STRIP"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9550 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9551 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9552 STRIP_STATIC_LIB
="$STRIP -x"
9553 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9555 $as_echo "yes" >&6; }
9560 STRIP_STATIC_LIB
=$STRIP
9561 STRIP_SHARED_LIB
=$STRIP
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9563 $as_echo "yes" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9569 $as_echo "no" >&6; }
9576 if test -n "$ac_tool_prefix"; then
9577 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9578 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580 $as_echo_n "checking for $ac_word... " >&6; }
9581 if ${ac_cv_prog_AR+:} false
; then :
9582 $as_echo_n "(cached) " >&6
9584 if test -n "$AR"; then
9585 ac_cv_prog_AR
="$AR" # Let the user override the test.
9587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9591 test -z "$as_dir" && as_dir
=.
9592 for ac_exec_ext
in '' $ac_executable_extensions; do
9593 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9594 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605 if test -n "$AR"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9607 $as_echo "$AR" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9615 if test -z "$ac_cv_prog_AR"; then
9617 # Extract the first word of "ar", so it can be a program name with args.
9618 set dummy
ar; ac_word
=$2
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9620 $as_echo_n "checking for $ac_word... " >&6; }
9621 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9622 $as_echo_n "(cached) " >&6
9624 if test -n "$ac_ct_AR"; then
9625 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9631 test -z "$as_dir" && as_dir
=.
9632 for ac_exec_ext
in '' $ac_executable_extensions; do
9633 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9634 ac_cv_prog_ac_ct_AR
="ar"
9635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9645 if test -n "$ac_ct_AR"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9647 $as_echo "$ac_ct_AR" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9653 if test "x$ac_ct_AR" = x
; then
9656 case $cross_compiling:$ac_tool_warned in
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9660 ac_tool_warned
=yes ;;
9668 if test "$PORTNAME" = "win32"; then
9669 if test -n "$ac_tool_prefix"; then
9670 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9671 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673 $as_echo_n "checking for $ac_word... " >&6; }
9674 if ${ac_cv_prog_DLLTOOL+:} false
; then :
9675 $as_echo_n "(cached) " >&6
9677 if test -n "$DLLTOOL"; then
9678 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
9680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9684 test -z "$as_dir" && as_dir
=.
9685 for ac_exec_ext
in '' $ac_executable_extensions; do
9686 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 DLLTOOL
=$ac_cv_prog_DLLTOOL
9698 if test -n "$DLLTOOL"; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9700 $as_echo "$DLLTOOL" >&6; }
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9708 if test -z "$ac_cv_prog_DLLTOOL"; then
9709 ac_ct_DLLTOOL
=$DLLTOOL
9710 # Extract the first word of "dlltool", so it can be a program name with args.
9711 set dummy dlltool
; ac_word
=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
9715 $as_echo_n "(cached) " >&6
9717 if test -n "$ac_ct_DLLTOOL"; then
9718 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
9720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9724 test -z "$as_dir" && as_dir
=.
9725 for ac_exec_ext
in '' $ac_executable_extensions; do
9726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9727 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
9738 if test -n "$ac_ct_DLLTOOL"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9740 $as_echo "$ac_ct_DLLTOOL" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9746 if test "x$ac_ct_DLLTOOL" = x
; then
9749 case $cross_compiling:$ac_tool_warned in
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9753 ac_tool_warned
=yes ;;
9755 DLLTOOL
=$ac_ct_DLLTOOL
9758 DLLTOOL
="$ac_cv_prog_DLLTOOL"
9761 if test -n "$ac_tool_prefix"; then
9762 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9763 set dummy
${ac_tool_prefix}dllwrap
; ac_word
=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if ${ac_cv_prog_DLLWRAP+:} false
; then :
9767 $as_echo_n "(cached) " >&6
9769 if test -n "$DLLWRAP"; then
9770 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
9772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9776 test -z "$as_dir" && as_dir
=.
9777 for ac_exec_ext
in '' $ac_executable_extensions; do
9778 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9779 ac_cv_prog_DLLWRAP
="${ac_tool_prefix}dllwrap"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 DLLWRAP
=$ac_cv_prog_DLLWRAP
9790 if test -n "$DLLWRAP"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
9792 $as_echo "$DLLWRAP" >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9800 if test -z "$ac_cv_prog_DLLWRAP"; then
9801 ac_ct_DLLWRAP
=$DLLWRAP
9802 # Extract the first word of "dllwrap", so it can be a program name with args.
9803 set dummy dllwrap
; ac_word
=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false
; then :
9807 $as_echo_n "(cached) " >&6
9809 if test -n "$ac_ct_DLLWRAP"; then
9810 ac_cv_prog_ac_ct_DLLWRAP
="$ac_ct_DLLWRAP" # Let the user override the test.
9812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9816 test -z "$as_dir" && as_dir
=.
9817 for ac_exec_ext
in '' $ac_executable_extensions; do
9818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9819 ac_cv_prog_ac_ct_DLLWRAP
="dllwrap"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 ac_ct_DLLWRAP
=$ac_cv_prog_ac_ct_DLLWRAP
9830 if test -n "$ac_ct_DLLWRAP"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
9832 $as_echo "$ac_ct_DLLWRAP" >&6; }
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9838 if test "x$ac_ct_DLLWRAP" = x
; then
9841 case $cross_compiling:$ac_tool_warned in
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9845 ac_tool_warned
=yes ;;
9847 DLLWRAP
=$ac_ct_DLLWRAP
9850 DLLWRAP
="$ac_cv_prog_DLLWRAP"
9853 if test -n "$ac_tool_prefix"; then
9854 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9855 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_prog_WINDRES+:} false
; then :
9859 $as_echo_n "(cached) " >&6
9861 if test -n "$WINDRES"; then
9862 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9868 test -z "$as_dir" && as_dir
=.
9869 for ac_exec_ext
in '' $ac_executable_extensions; do
9870 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9871 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 WINDRES
=$ac_cv_prog_WINDRES
9882 if test -n "$WINDRES"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9884 $as_echo "$WINDRES" >&6; }
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9892 if test -z "$ac_cv_prog_WINDRES"; then
9893 ac_ct_WINDRES
=$WINDRES
9894 # Extract the first word of "windres", so it can be a program name with args.
9895 set dummy windres
; ac_word
=$2
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897 $as_echo_n "checking for $ac_word... " >&6; }
9898 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9899 $as_echo_n "(cached) " >&6
9901 if test -n "$ac_ct_WINDRES"; then
9902 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9908 test -z "$as_dir" && as_dir
=.
9909 for ac_exec_ext
in '' $ac_executable_extensions; do
9910 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9911 ac_cv_prog_ac_ct_WINDRES
="windres"
9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9922 if test -n "$ac_ct_WINDRES"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9924 $as_echo "$ac_ct_WINDRES" >&6; }
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9930 if test "x$ac_ct_WINDRES" = x
; then
9933 case $cross_compiling:$ac_tool_warned in
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9937 ac_tool_warned
=yes ;;
9939 WINDRES
=$ac_ct_WINDRES
9942 WINDRES
="$ac_cv_prog_WINDRES"
9947 # Find a good install program. We prefer a C program (faster),
9948 # so one script is as good as another. But avoid the broken or
9949 # incompatible versions:
9950 # SysV /etc/install, /usr/sbin/install
9951 # SunOS /usr/etc/install
9952 # IRIX /sbin/install
9954 # AmigaOS /C/install, which installs bootblocks on floppy discs
9955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9958 # OS/2's system install, which has a completely different semantic
9959 # ./install, which can be erroneously created by make from ./install.sh.
9960 # Reject install programs that cannot install multiple files.
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9963 if test -z "$INSTALL"; then
9964 if ${ac_cv_path_install+:} false
; then :
9965 $as_echo_n "(cached) " >&6
9967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9971 test -z "$as_dir" && as_dir
=.
9972 # Account for people who put trailing slashes in PATH elements.
9973 case $as_dir/ in #((
9974 .
/ | .
// |
/[cC
]/* | \
9975 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9976 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9979 # OSF1 and SCO ODT 3.0 have their own names for install.
9980 # Don't use installbsd from OSF since it installs stuff as root
9982 for ac_prog
in ginstall scoinst
install; do
9983 for ac_exec_ext
in '' $ac_executable_extensions; do
9984 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9985 if test $ac_prog = install &&
9986 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9987 # AIX install. It has an incompatible calling convention.
9989 elif test $ac_prog = install &&
9990 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9991 # program-specific install script used by HP pwplus--don't use.
9994 rm -rf conftest.one conftest.two conftest.dir
9995 echo one
> conftest.one
9996 echo two
> conftest.two
9998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9999 test -s conftest.one
&& test -s conftest.two
&&
10000 test -s conftest.dir
/conftest.one
&&
10001 test -s conftest.dir
/conftest.two
10003 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
10016 rm -rf conftest.one conftest.two conftest.dir
10019 if test "${ac_cv_path_install+set}" = set; then
10020 INSTALL
=$ac_cv_path_install
10022 # As a last resort, use the slow shell script. Don't cache a
10023 # value for INSTALL within a source directory, because that will
10024 # break other packages using the cache if that directory is
10025 # removed, or if the value is a relative name.
10026 INSTALL
=$ac_install_sh
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10030 $as_echo "$INSTALL" >&6; }
10032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10033 # It thinks the first close brace ends the variable substitution.
10034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
10036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
10038 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
10040 # When Autoconf chooses install-sh as install program it tries to generate
10041 # a relative path to it in each makefile where it substitutes it. This clashes
10042 # with our Makefile.global concept. This workaround helps.
10044 *install-sh
*) install_bin
='';;
10045 *) install_bin
=$INSTALL;;
10049 if test -z "$TAR"; then
10052 # Extract the first word of "$ac_prog", so it can be a program name with args.
10053 set dummy
$ac_prog; ac_word
=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_TAR+:} false
; then :
10057 $as_echo_n "(cached) " >&6
10061 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
10064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10065 for as_dir
in $PATH
10068 test -z "$as_dir" && as_dir
=.
10069 for ac_exec_ext
in '' $ac_executable_extensions; do
10070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 TAR
=$ac_cv_path_TAR
10083 if test -n "$TAR"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10085 $as_echo "$TAR" >&6; }
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10092 test -n "$TAR" && break
10096 # Report the value of TAR in configure's output in all cases.
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10098 $as_echo_n "checking for TAR... " >&6; }
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10100 $as_echo "$TAR" >&6; }
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10104 $as_echo_n "checking whether ln -s works... " >&6; }
10106 if test "$LN_S" = "ln -s"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10108 $as_echo "yes" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10111 $as_echo "no, using $LN_S" >&6; }
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10115 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10116 if test -z "$MKDIR_P"; then
10117 if ${ac_cv_path_mkdir+:} false
; then :
10118 $as_echo_n "(cached) " >&6
10120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10121 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
10124 test -z "$as_dir" && as_dir
=.
10125 for ac_prog
in mkdir gmkdir
; do
10126 for ac_exec_ext
in '' $ac_executable_extensions; do
10127 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
10128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10129 'mkdir (GNU coreutils) '* | \
10130 'mkdir (coreutils) '* | \
10131 'mkdir (fileutils) '4.1*)
10132 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
10142 test -d .
/--version && rmdir .
/--version
10143 if test "${ac_cv_path_mkdir+set}" = set; then
10144 MKDIR_P
="$ac_cv_path_mkdir -p"
10146 # As a last resort, use the slow shell script. Don't cache a
10147 # value for MKDIR_P within a source directory, because that will
10148 # break other packages using the cache if that directory is
10149 # removed, or if the value is a relative name.
10150 MKDIR_P
="$ac_install_sh -d"
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10154 $as_echo "$MKDIR_P" >&6; }
10156 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
10157 # a relative path to it in each makefile where it substitutes it. This clashes
10158 # with our Makefile.global concept. This workaround helps.
10160 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
10163 if test -z "$BISON"; then
10164 for ac_prog
in bison
10166 # Extract the first word of "$ac_prog", so it can be a program name with args.
10167 set dummy
$ac_prog; ac_word
=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_path_BISON+:} false
; then :
10171 $as_echo_n "(cached) " >&6
10175 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
10178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10179 for as_dir
in $PATH
10182 test -z "$as_dir" && as_dir
=.
10183 for ac_exec_ext
in '' $ac_executable_extensions; do
10184 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10185 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 BISON
=$ac_cv_path_BISON
10197 if test -n "$BISON"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10199 $as_echo "$BISON" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10206 test -n "$BISON" && break
10210 # Report the value of BISON in configure's output in all cases.
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
10212 $as_echo_n "checking for BISON... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10214 $as_echo "$BISON" >&6; }
10218 if test "$BISON"; then
10219 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
10221 $as_echo "$as_me: using $pgac_bison_version" >&6;}
10222 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10225 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
10226 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
10227 $as_echo "$as_me: WARNING:
10228 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
10229 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
10232 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
10233 # of the now preferred %name-prefix "base_yy", but the latter
10234 # doesn't work with Bison 2.3 or less. So for now we silence the
10235 # deprecation warnings.
10236 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
10238 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
10242 if test -z "$BISON"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10244 *** Without Bison you will not be able to build PostgreSQL from Git nor
10245 *** change any of the parser definition files. You can obtain Bison from
10246 *** a GNU mirror site. (If you are using the official distribution of
10247 *** PostgreSQL then you do not need to worry about this, because the Bison
10248 *** output is pre-generated.)" >&5
10249 $as_echo "$as_me: WARNING:
10250 *** Without Bison you will not be able to build PostgreSQL from Git nor
10251 *** change any of the parser definition files. You can obtain Bison from
10252 *** a GNU mirror site. (If you are using the official distribution of
10253 *** PostgreSQL then you do not need to worry about this, because the Bison
10254 *** output is pre-generated.)" >&2;}
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
10259 $as_echo_n "checking for flex... " >&6; }
10260 if ${pgac_cv_path_flex+:} false
; then :
10261 $as_echo_n "(cached) " >&6
10263 # Let the user override the test
10264 if test -n "$FLEX"; then
10265 pgac_cv_path_flex
=$FLEX
10268 IFS
=$PATH_SEPARATOR
10269 for pgac_dir
in $PATH; do
10271 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
10274 for pgac_prog
in flex
lex; do
10275 pgac_candidate
="$pgac_dir/$pgac_prog"
10276 if test -f "$pgac_candidate" \
10277 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
10279 echo '%%' > conftest.l
10280 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
10281 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
10282 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;}'
10284 pgac_cv_path_flex
=$pgac_candidate
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10288 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10289 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
10290 $as_echo "$as_me: WARNING:
10291 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10292 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
10298 rm -f conftest.l
lex.yy.c
10299 : ${pgac_cv_path_flex=no}
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
10304 $as_echo "$pgac_cv_path_flex" >&6; }
10305 if test x
"$pgac_cv_path_flex" = x
"no"; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10307 *** Without Flex you will not be able to build PostgreSQL from Git nor
10308 *** change any of the scanner definition files. You can obtain Flex from
10309 *** a GNU mirror site. (If you are using the official distribution of
10310 *** PostgreSQL then you do not need to worry about this because the Flex
10311 *** output is pre-generated.)" >&5
10312 $as_echo "$as_me: WARNING:
10313 *** Without Flex you will not be able to build PostgreSQL from Git nor
10314 *** change any of the scanner definition files. You can obtain Flex from
10315 *** a GNU mirror site. (If you are using the official distribution of
10316 *** PostgreSQL then you do not need to worry about this because the Flex
10317 *** output is pre-generated.)" >&2;}
10321 FLEX
=$pgac_cv_path_flex
10322 pgac_flex_version
=`$FLEX --version 2>/dev/null`
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
10324 $as_echo "$as_me: using $pgac_flex_version" >&6;}
10331 if test -z "$PERL"; then
10332 for ac_prog
in perl
10334 # Extract the first word of "$ac_prog", so it can be a program name with args.
10335 set dummy
$ac_prog; ac_word
=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_path_PERL+:} false
; then :
10339 $as_echo_n "(cached) " >&6
10343 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
10346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10347 for as_dir
in $PATH
10350 test -z "$as_dir" && as_dir
=.
10351 for ac_exec_ext
in '' $ac_executable_extensions; do
10352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10353 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 PERL
=$ac_cv_path_PERL
10365 if test -n "$PERL"; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10367 $as_echo "$PERL" >&6; }
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10374 test -n "$PERL" && break
10378 # Report the value of PERL in configure's output in all cases.
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
10380 $as_echo_n "checking for PERL... " >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10382 $as_echo "$PERL" >&6; }
10386 if test "$PERL"; then
10387 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'`
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
10389 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
10390 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
10391 $AWK '{ if ($1 == 5 && ($2 > 8 || ($2 == 8 && $3 >= 3))) exit 1; else exit 0;}'
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10394 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10395 *** Perl version 5.8.3 or later is required, but this is $pgac_perl_version." >&5
10396 $as_echo "$as_me: WARNING:
10397 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10398 *** Perl version 5.8.3 or later is required, but this is $pgac_perl_version." >&2;}
10403 if test -z "$PERL"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10405 *** Without Perl you will not be able to build PostgreSQL from Git.
10406 *** You can obtain Perl from any CPAN mirror site.
10407 *** (If you are using the official distribution of PostgreSQL then you do not
10408 *** need to worry about this, because the Perl output is pre-generated.)" >&5
10409 $as_echo "$as_me: WARNING:
10410 *** Without Perl you will not be able to build PostgreSQL from Git.
10411 *** You can obtain Perl from any CPAN mirror site.
10412 *** (If you are using the official distribution of PostgreSQL then you do not
10413 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
10416 if test "$with_perl" = yes; then
10417 if test -z "$PERL"; then
10418 as_fn_error $?
"Perl not found" "$LINENO" 5
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
10422 $as_echo_n "checking for Perl archlibexp... " >&6; }
10423 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
10424 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
10426 $as_echo "$perl_archlibexp" >&6; }
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
10428 $as_echo_n "checking for Perl privlibexp... " >&6; }
10429 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
10430 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
10432 $as_echo "$perl_privlibexp" >&6; }
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
10434 $as_echo_n "checking for Perl useshrplib... " >&6; }
10435 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
10436 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
10438 $as_echo "$perl_useshrplib" >&6; }
10439 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
10440 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
10441 You might have to rebuild your Perl installation. Refer to the
10442 documentation for details. Use --without-perl to disable building
10443 PL/Perl." "$LINENO" 5
10445 # On most platforms, archlibexp is also where the Perl include files live ...
10446 perl_includespec
="-I$perl_archlibexp/CORE"
10447 # ... but on newer macOS versions, we must use -iwithsysroot to look
10448 # under $PG_SYSROOT
10449 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
10450 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
10451 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
10456 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
10457 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10459 $as_echo "$perl_ccflags" >&6; }
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10461 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10462 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10464 $as_echo "$perl_embed_ccflags" >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10468 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10469 if test "$PORTNAME" = "win32" ; then
10470 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10471 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10472 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10474 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10475 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10476 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10480 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10481 pgac_tmp2
=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
10482 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
10484 if test -z "$perl_embed_ldflags" ; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10487 as_fn_error $?
"could not determine flags for linking embedded Perl.
10488 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10489 installed." "$LINENO" 5
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10492 $as_echo "$perl_embed_ldflags" >&6; }
10497 if test "$with_python" = yes; then
10498 if test -z "$PYTHON"; then
10499 for ac_prog
in python3 python
10501 # Extract the first word of "$ac_prog", so it can be a program name with args.
10502 set dummy
$ac_prog; ac_word
=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if ${ac_cv_path_PYTHON+:} false
; then :
10506 $as_echo_n "(cached) " >&6
10510 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10514 for as_dir
in $PATH
10517 test -z "$as_dir" && as_dir
=.
10518 for ac_exec_ext
in '' $ac_executable_extensions; do
10519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 PYTHON
=$ac_cv_path_PYTHON
10532 if test -n "$PYTHON"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10534 $as_echo "$PYTHON" >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10541 test -n "$PYTHON" && break
10545 # Report the value of PYTHON in configure's output in all cases.
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10547 $as_echo_n "checking for PYTHON... " >&6; }
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10549 $as_echo "$PYTHON" >&6; }
10552 if test x
"$PYTHON" = x
""; then
10553 as_fn_error $?
"Python not found" "$LINENO" 5
10557 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10559 $as_echo "$as_me: using python $python_fullversion" >&6;}
10560 # python_fullversion is typically n.n.n plus some trailing junk
10561 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10562 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10563 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10564 # Reject unsupported Python versions as soon as practical.
10565 if test "$python_majorversion" -lt 3; then
10566 as_fn_error $?
"Python version $python_version is too old (version 3 or later is required)" "$LINENO" 5
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10570 $as_echo_n "checking for Python sysconfig module... " >&6; }
10571 if "${PYTHON}" -c 'import sysconfig' 2>&5
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 $as_echo "yes" >&6; }
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577 $as_echo "no" >&6; }
10578 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10582 $as_echo_n "checking Python configuration directory... " >&6; }
10583 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10585 $as_echo "$python_configdir" >&6; }
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10588 $as_echo_n "checking Python include directory... " >&6; }
10589 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10590 if test "$PORTNAME" = win32
; then
10591 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10594 $as_echo "$python_includespec" >&6; }
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10599 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10601 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10602 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10604 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10605 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10606 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10608 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10611 # Otherwise, guess the base name of the shlib.
10612 # LDVERSION was added in Python 3.2, before that use VERSION,
10613 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10614 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10615 if test x
"${python_ldversion}" != x
""; then
10616 ldlibrary
="python${python_ldversion}"
10618 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10619 if test x
"${python_version_var}" != x
""; then
10620 ldlibrary
="python${python_version_var}"
10622 ldlibrary
="python${python_version}"
10625 # Search for a likely-looking file.
10627 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10629 if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then
10635 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10636 # (".so.n.n") as well. However, check this only after failing to find
10637 # ".so" anywhere, because yet other platforms (Debian) put the .so
10638 # symlink in a different directory from the underlying versioned shlib.
10639 if test "$found_shlib" != 1; then
10640 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10642 for f
in "$d/lib${ldlibrary}.so."* ; do
10643 if test -e "$f"; then
10651 # As usual, Windows has its own ideas. Possible default library
10652 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10653 # and the "lib" prefix might not be there.
10654 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10655 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10657 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10658 if test -e "$f"; then
10667 if test "$found_shlib" != 1; then
10668 as_fn_error $?
"could not find shared library for Python
10669 You might have to rebuild your Python installation. Refer to the
10670 documentation for details. Use --without-python to disable building
10671 PL/Python." "$LINENO" 5
10673 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10675 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10678 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10684 if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
10685 if test -z "$ZIC"; then
10688 # Extract the first word of "$ac_prog", so it can be a program name with args.
10689 set dummy $ac_prog; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10691 $as_echo_n "checking
for $ac_word...
" >&6; }
10692 if ${ac_cv_path_ZIC+:} false; then :
10693 $as_echo_n "(cached
) " >&6
10697 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10718 ZIC=$ac_cv_path_ZIC
10719 if test -n "$ZIC"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10721 $as_echo "$ZIC" >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10724 $as_echo "no
" >&6; }
10728 test -n "$ZIC" && break
10732 # Report the value of ZIC in configure's output in all cases.
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10734 $as_echo_n "checking
for ZIC...
" >&6; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10736 $as_echo "$ZIC" >&6; }
10739 if test -z "$ZIC"; then
10741 When cross-compiling
, either use the option
--with-system-tzdata to use
10742 existing time-zone data
, or
set the environment variable ZIC to a zic
10743 program to use during the build.
" "$LINENO" 5
10750 # For each platform, we need to know about any special compile and link
10751 # libraries, and whether the normal C function names are thread-safe.
10752 # See the comment at the top of src/port/thread.c for more information.
10753 # WIN32 doesn't need the pthread tests; it always uses threads
10755 # These tests are run before the library-tests, because linking with the
10756 # other libraries can pull in the pthread functions as a side-effect. We
10757 # want to use the -pthread or similar flags directly, and not rely on
10758 # the side-effects of linking with some other library.
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10761 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10762 if ${ac_cv_path_SED+:} false; then :
10763 $as_echo_n "(cached
) " >&6
10765 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10766 for ac_i in 1 2 3 4 5 6 7; do
10767 ac_script="$ac_script$as_nl$ac_script"
10769 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10770 { ac_script=; unset ac_script;}
10771 if test -z "$SED"; then
10772 ac_path_SED_found=false
10773 # Loop through the user's path and test for each of PROGNAME-LIST
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10778 test -z "$as_dir" && as_dir=.
10779 for ac_prog in sed gsed; do
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10782 as_fn_executable_p "$ac_path_SED" || continue
10783 # Check for GNU ac_path_SED and select it if it is found.
10784 # Check for GNU $ac_path_SED
10785 case `"$ac_path_SED" --version 2>&1` in
10787 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10790 $as_echo_n 0123456789 >"conftest.
in"
10793 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10794 mv "conftest.tmp
" "conftest.
in"
10795 cp "conftest.
in" "conftest.
nl"
10796 $as_echo '' >> "conftest.
nl"
10797 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10798 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10799 as_fn_arith $ac_count + 1 && ac_count=$as_val
10800 if test $ac_count -gt ${ac_path_SED_max-0}; then
10801 # Best one so far, save it but keep looking for a better one
10802 ac_cv_path_SED="$ac_path_SED"
10803 ac_path_SED_max=$ac_count
10805 # 10*(2^10) chars as input seems more than enough
10806 test $ac_count -gt 10 && break
10808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10811 $ac_path_SED_found && break 3
10816 if test -z "$ac_cv_path_SED"; then
10817 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10820 ac_cv_path_SED=$SED
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10825 $as_echo "$ac_cv_path_SED" >&6; }
10826 SED="$ac_cv_path_SED"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10831 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10832 if ${ac_cv_path_GREP+:} false; then :
10833 $as_echo_n "(cached
) " >&6
10835 if test -z "$GREP"; then
10836 ac_path_GREP_found=false
10837 # Loop through the user's path and test for each of PROGNAME-LIST
10838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10842 test -z "$as_dir" && as_dir=.
10843 for ac_prog in grep ggrep; do
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10846 as_fn_executable_p "$ac_path_GREP" || continue
10847 # Check for GNU ac_path_GREP and select it if it is found.
10848 # Check for GNU $ac_path_GREP
10849 case `"$ac_path_GREP" --version 2>&1` in
10851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10854 $as_echo_n 0123456789 >"conftest.
in"
10857 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10858 mv "conftest.tmp
" "conftest.
in"
10859 cp "conftest.
in" "conftest.
nl"
10860 $as_echo 'GREP' >> "conftest.
nl"
10861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10862 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10863 as_fn_arith $ac_count + 1 && ac_count=$as_val
10864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10865 # Best one so far, save it but keep looking for a better one
10866 ac_cv_path_GREP="$ac_path_GREP"
10867 ac_path_GREP_max=$ac_count
10869 # 10*(2^10) chars as input seems more than enough
10870 test $ac_count -gt 10 && break
10872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10875 $ac_path_GREP_found && break 3
10880 if test -z "$ac_cv_path_GREP"; then
10881 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10884 ac_cv_path_GREP=$GREP
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10889 $as_echo "$ac_cv_path_GREP" >&6; }
10890 GREP="$ac_cv_path_GREP"
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10894 $as_echo_n "checking
for egrep...
" >&6; }
10895 if ${ac_cv_path_EGREP+:} false; then :
10896 $as_echo_n "(cached
) " >&6
10898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10899 then ac_cv_path_EGREP="$GREP -E"
10901 if test -z "$EGREP"; then
10902 ac_path_EGREP_found=false
10903 # Loop through the user's path and test for each of PROGNAME-LIST
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10908 test -z "$as_dir" && as_dir=.
10909 for ac_prog in egrep; do
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10912 as_fn_executable_p "$ac_path_EGREP" || continue
10913 # Check for GNU ac_path_EGREP and select it if it is found.
10914 # Check for GNU $ac_path_EGREP
10915 case `"$ac_path_EGREP" --version 2>&1` in
10917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10920 $as_echo_n 0123456789 >"conftest.
in"
10923 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10924 mv "conftest.tmp
" "conftest.
in"
10925 cp "conftest.
in" "conftest.
nl"
10926 $as_echo 'EGREP' >> "conftest.
nl"
10927 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10928 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10929 as_fn_arith $ac_count + 1 && ac_count=$as_val
10930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10931 # Best one so far, save it but keep looking for a better one
10932 ac_cv_path_EGREP="$ac_path_EGREP"
10933 ac_path_EGREP_max=$ac_count
10935 # 10*(2^10) chars as input seems more than enough
10936 test $ac_count -gt 10 && break
10938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10941 $ac_path_EGREP_found && break 3
10946 if test -z "$ac_cv_path_EGREP"; then
10947 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10950 ac_cv_path_EGREP=$EGREP
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10956 $as_echo "$ac_cv_path_EGREP" >&6; }
10957 EGREP="$ac_cv_path_EGREP"
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10961 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10962 if ${ac_cv_header_stdc+:} false; then :
10963 $as_echo_n "(cached
) " >&6
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967 #include <stdlib.h>
10968 #include <stdarg.h>
10969 #include <string.h>
10980 if ac_fn_c_try_compile "$LINENO"; then :
10981 ac_cv_header_stdc=yes
10983 ac_cv_header_stdc=no
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10987 if test $ac_cv_header_stdc = yes; then
10988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #include <string.h>
10994 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10995 $EGREP "memchr
" >/dev/null 2>&1; then :
10998 ac_cv_header_stdc=no
11004 if test $ac_cv_header_stdc = yes; then
11005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <stdlib.h>
11011 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
11012 $EGREP "free
" >/dev/null 2>&1; then :
11015 ac_cv_header_stdc=no
11021 if test $ac_cv_header_stdc = yes; then
11022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11023 if test "$cross_compiling" = yes; then :
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11029 #include <stdlib.h>
11030 #if ((' ' & 0x0FF) == 0x020)
11031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11034 # define ISLOWER(c) \
11035 (('a' <= (c) && (c) <= 'i') \
11036 || ('j' <= (c) && (c) <= 'r') \
11037 || ('s' <= (c) && (c) <= 'z'))
11038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11046 for (i = 0; i < 256; i++)
11047 if (XOR (islower (i), ISLOWER (i))
11048 || toupper (i) != TOUPPER (i))
11053 if ac_fn_c_try_run "$LINENO"; then :
11056 ac_cv_header_stdc=no
11058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11059 conftest.$ac_objext conftest.beam conftest.$ac_ext
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
11065 $as_echo "$ac_cv_header_stdc" >&6; }
11066 if test $ac_cv_header_stdc = yes; then
11068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11073 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
11074 inttypes.h stdint.h unistd.h
11076 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11077 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11079 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11080 cat >>confdefs.h
<<_ACEOF
11081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11089 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
11096 ac_cpp
='$CPP $CPPFLAGS'
11097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11103 # We used to check for pthread.h first, but this fails if pthread.h
11104 # requires special compiler flags (e.g. on Tru64 or Sequent).
11105 # It gets checked for in the link test anyway.
11107 # First of all, check if the user has set any of the PTHREAD_LIBS,
11108 # etcetera environment variables, and if threads linking works using
11110 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11111 ax_pthread_save_CC
="$CC"
11112 ax_pthread_save_CFLAGS
="$CFLAGS"
11113 ax_pthread_save_LIBS
="$LIBS"
11114 if test "x$PTHREAD_CC" != "x"; then :
11117 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11118 LIBS
="$PTHREAD_LIBS $LIBS"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11120 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11130 char pthread_join ();
11134 return pthread_join ();
11139 if ac_fn_c_try_link
"$LINENO"; then :
11142 rm -f core conftest.err conftest.
$ac_objext \
11143 conftest
$ac_exeext conftest.
$ac_ext
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11145 $as_echo "$ax_pthread_ok" >&6; }
11146 if test "x$ax_pthread_ok" = "xno"; then
11150 CC
="$ax_pthread_save_CC"
11151 CFLAGS
="$ax_pthread_save_CFLAGS"
11152 LIBS
="$ax_pthread_save_LIBS"
11155 # We must check for the threads library under a number of different
11156 # names; the ordering is very important because some systems
11157 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11158 # libraries is broken (non-POSIX).
11160 # Create a list of thread flags to try. Items starting with a "-" are
11161 # C compiler flags, and other items are library names, except for "none"
11162 # which indicates that we try without any flags at all, and "pthread-config"
11163 # which is a program returning the flags for the Pth emulation library.
11165 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11167 # The ordering *is* (sometimes) important. Some notes on the
11168 # individual items follow:
11170 # pthreads: AIX (must check this before -lpthread)
11171 # none: in case threads are in libc; should be tried before -Kthread and
11172 # other compiler flags to prevent continual compiler warnings
11173 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11174 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11175 # (Note: HP C rejects this with "bad form for `-t' option")
11176 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11177 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11178 # doesn't hurt to check since this sometimes defines pthreads and
11179 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11180 # is present but should not be used directly; and before -mthreads,
11181 # because the compiler interprets this as "-mt" + "-hreads")
11182 # -mthreads: Mingw32/gcc, Lynx/gcc
11183 # pthread: Linux, etcetera
11184 # --thread-safe: KAI C++
11185 # pthread-config: use pthread-config program (for GNU Pth library)
11191 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11192 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11194 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
11199 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11200 # multi-threading and also sets -lpthread."
11202 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
11207 # IBM z/OS requires a feature-test macro to be defined in order to
11208 # enable POSIX threads at all, so give the user a hint if this is
11209 # not set. (We don't define these ourselves, as they can affect
11210 # other portions of the system API in unpredictable ways.)
11212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11215 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11216 AX_PTHREAD_ZOS_MISSING
11220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11221 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11223 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11231 # On Solaris (at least, for some versions), libc contains stubbed
11232 # (non-functional) versions of the pthreads routines, so link-based
11233 # tests will erroneously succeed. (N.B.: The stubs are missing
11234 # pthread_cleanup_push, or rather a function called by this macro,
11235 # so we could check for that, but who knows whether they'll stub
11236 # that too in a future libc.) So we'll check first for the
11237 # standard Solaris way of linking pthreads (-mt -lpthread).
11239 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
11243 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11245 if test "x$GCC" = "xyes"; then :
11246 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
11249 # The presence of a feature test macro requesting re-entrant function
11250 # definitions is, on some systems, a strong hint that pthreads support is
11251 # correctly enabled
11254 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
11255 ax_pthread_check_macro
="_REENTRANT"
11259 ax_pthread_check_macro
="_THREAD_SAFE"
11263 ax_pthread_check_macro
="--"
11266 if test "x$ax_pthread_check_macro" = "x--"; then :
11267 ax_pthread_check_cond
=0
11269 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
11272 # Are we compiling with Clang?
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11275 $as_echo_n "checking whether $CC is Clang... " >&6; }
11276 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
11277 $as_echo_n "(cached) " >&6
11279 ax_cv_PTHREAD_CLANG
=no
11280 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11281 if test "x$GCC" = "xyes"; then
11282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11285 # if defined(__clang__) && defined(__llvm__)
11286 AX_PTHREAD_CC_IS_CLANG
11290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11291 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
11292 ax_cv_PTHREAD_CLANG
=yes
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11300 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11301 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
11303 ax_pthread_clang_warning
=no
11305 # Clang needs special handling, because older versions handle the -pthread
11306 # option in a rather... idiosyncratic way
11308 if test "x$ax_pthread_clang" = "xyes"; then
11310 # Clang takes -pthread; it has never supported any other flag
11312 # (Note 1: This will need to be revisited if a system that Clang
11313 # supports has POSIX threads in a separate library. This tends not
11314 # to be the way of modern systems, but it's conceivable.)
11316 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11317 # to get POSIX threads support; the API is always present and
11318 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11319 # -pthread does define _REENTRANT, and while the Darwin headers
11320 # ignore this macro, third-party headers might not.)
11322 PTHREAD_CFLAGS
="-pthread"
11327 # However, older versions of Clang make a point of warning the user
11328 # that, in an invocation where only linking and no compilation is
11329 # taking place, the -pthread option has no effect ("argument unused
11330 # during compilation"). They expect -pthread to be passed in only
11331 # when source code is being compiled.
11333 # Problem is, this is at odds with the way Automake and most other
11334 # C build frameworks function, which is that the same flags used in
11335 # compilation (CFLAGS) are also used in linking. Many systems
11336 # supported by AX_PTHREAD require exactly this for POSIX threads
11337 # support, and in fact it is often not straightforward to specify a
11338 # flag that is used only in the compilation phase and not in
11339 # linking. Such a scenario is extremely rare in practice.
11341 # Even though use of the -pthread flag in linking would only print
11342 # a warning, this can be a nuisance for well-run software projects
11343 # that build with -Werror. So if the active version of Clang has
11344 # this misfeature, we search for an option to squash it.
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11347 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11348 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
11349 $as_echo_n "(cached) " >&6
11351 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
11352 # Create an alternate version of $ac_link that compiles and
11353 # links in two steps (.c -> .o, .o -> exe) instead of one
11354 # (.c -> exe), because the warning occurs only in the second
11356 ax_pthread_save_ac_link
="$ac_link"
11357 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11358 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11359 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11360 ax_pthread_save_CFLAGS
="$CFLAGS"
11361 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
11362 if test "x$ax_pthread_try" = "xunknown"; then :
11365 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11366 ac_link
="$ax_pthread_save_ac_link"
11367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 int main(void){return 0;}
11371 if ac_fn_c_try_link
"$LINENO"; then :
11372 ac_link
="$ax_pthread_2step_ac_link"
11373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375 int main(void){return 0;}
11377 if ac_fn_c_try_link
"$LINENO"; then :
11380 rm -f core conftest.err conftest.
$ac_objext \
11381 conftest
$ac_exeext conftest.
$ac_ext
11384 rm -f core conftest.err conftest.
$ac_objext \
11385 conftest
$ac_exeext conftest.
$ac_ext
11387 ac_link
="$ax_pthread_save_ac_link"
11388 CFLAGS
="$ax_pthread_save_CFLAGS"
11389 if test "x$ax_pthread_try" = "x"; then :
11392 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11396 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11398 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11400 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11403 fi # $ax_pthread_clang = yes
11405 if test "x$ax_pthread_ok" = "xno"; then
11406 for ax_pthread_try_flag
in $ax_pthread_flags; do
11408 case $ax_pthread_try_flag in
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11411 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11416 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11417 PTHREAD_CFLAGS
="-mt"
11418 PTHREAD_LIBS
="-lpthread"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11423 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11424 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11428 # Extract the first word of "pthread-config", so it can be a program name with args.
11429 set dummy pthread-config
; ac_word
=$2
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431 $as_echo_n "checking for $ac_word... " >&6; }
11432 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11433 $as_echo_n "(cached) " >&6
11435 if test -n "$ax_pthread_config"; then
11436 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11439 for as_dir
in $PATH
11442 test -z "$as_dir" && as_dir
=.
11443 for ac_exec_ext
in '' $ac_executable_extensions; do
11444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_prog_ax_pthread_config
="yes"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11456 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11457 if test -n "$ax_pthread_config"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11459 $as_echo "$ax_pthread_config" >&6; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11466 if test "x$ax_pthread_config" = "xno"; then :
11469 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11470 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11475 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11476 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11480 ax_pthread_save_CFLAGS
="$CFLAGS"
11481 ax_pthread_save_LIBS
="$LIBS"
11482 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11483 LIBS
="$PTHREAD_LIBS $LIBS"
11485 # Check for various functions. We must include pthread.h,
11486 # since some functions may be macros. (On the Sequent, we
11487 # need a special flag -Kthread to make this header compile.)
11488 # We check for pthread_join because it is in -lpthread on IRIX
11489 # while pthread_create is in libc. We check for pthread_attr_init
11490 # due to DEC craziness with -lpthreads. We check for
11491 # pthread_cleanup_push because it is one of the few pthread
11492 # functions on Solaris that doesn't have a non-functional libc stub.
11493 # We try pthread_create on general principles.
11495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497 #include <pthread.h>
11498 # if $ax_pthread_check_cond
11499 # error "$ax_pthread_check_macro must be defined"
11501 static void routine(void *a) { a = 0; }
11502 static void *start_routine(void *a) { return a; }
11506 pthread_t th; pthread_attr_t attr;
11507 pthread_create(&th, 0, start_routine, 0);
11508 pthread_join(th, 0);
11509 pthread_attr_init(&attr);
11510 pthread_cleanup_push(routine, 0);
11511 pthread_cleanup_pop(0) /* ; */
11516 if ac_fn_c_try_link
"$LINENO"; then :
11519 rm -f core conftest.err conftest.
$ac_objext \
11520 conftest
$ac_exeext conftest.
$ac_ext
11522 CFLAGS
="$ax_pthread_save_CFLAGS"
11523 LIBS
="$ax_pthread_save_LIBS"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11526 $as_echo "$ax_pthread_ok" >&6; }
11527 if test "x$ax_pthread_ok" = "xyes"; then :
11536 # Various other checks:
11537 if test "x$ax_pthread_ok" = "xyes"; then
11538 ax_pthread_save_CFLAGS
="$CFLAGS"
11539 ax_pthread_save_LIBS
="$LIBS"
11540 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11541 LIBS
="$PTHREAD_LIBS $LIBS"
11543 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11545 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11546 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11547 $as_echo_n "(cached) " >&6
11549 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11550 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11553 #include <pthread.h>
11557 int attr = $ax_pthread_attr; return attr /* ; */
11562 if ac_fn_c_try_link
"$LINENO"; then :
11563 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11565 rm -f core conftest.err conftest.
$ac_objext \
11566 conftest
$ac_exeext conftest.
$ac_ext
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11571 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11572 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11573 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11574 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11576 cat >>confdefs.h
<<_ACEOF
11577 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11580 ax_pthread_joinable_attr_defined
=yes
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11585 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11586 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11587 $as_echo_n "(cached) " >&6
11589 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11592 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11598 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11599 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11600 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11601 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11602 ax_pthread_special_flags_added
=yes
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11606 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11607 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11608 $as_echo_n "(cached) " >&6
11610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <pthread.h>
11616 int i = PTHREAD_PRIO_INHERIT;
11621 if ac_fn_c_try_link
"$LINENO"; then :
11622 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11624 ax_cv_PTHREAD_PRIO_INHERIT
=no
11626 rm -f core conftest.err conftest.
$ac_objext \
11627 conftest
$ac_exeext conftest.
$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11631 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11632 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11633 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11635 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11637 ax_pthread_prio_inherit_defined
=yes
11641 CFLAGS
="$ax_pthread_save_CFLAGS"
11642 LIBS
="$ax_pthread_save_LIBS"
11644 # More AIX lossage: compile with *_r variant
11645 if test "x$GCC" != "xyes"; then
11649 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11650 #handle absolute path differently from PATH based program lookup
11653 if as_fn_executable_p
${CC}_r
; then :
11654 PTHREAD_CC
="${CC}_r"
11657 for ac_prog
in ${CC}_r
11659 # Extract the first word of "$ac_prog", so it can be a program name with args.
11660 set dummy
$ac_prog; ac_word
=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11666 if test -n "$PTHREAD_CC"; then
11667 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11670 for as_dir
in $PATH
11673 test -z "$as_dir" && as_dir
=.
11674 for ac_exec_ext
in '' $ac_executable_extensions; do
11675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11687 if test -n "$PTHREAD_CC"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11689 $as_echo "$PTHREAD_CC" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11696 test -n "$PTHREAD_CC" && break
11698 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11709 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11715 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11716 if test "x$ax_pthread_ok" = "xyes"; then
11718 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11726 ac_cpp
='$CPP $CPPFLAGS'
11727 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11728 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11729 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11733 # Some platforms use these, so just define them. They can't hurt if they
11734 # are not supported.
11735 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE"
11737 # Check for *_r functions
11740 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11741 LIBS
="$LIBS $PTHREAD_LIBS"
11743 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11744 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11748 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
11753 for ac_func
in strerror_r gethostbyname_r
11755 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11757 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11758 cat >>confdefs.h
<<_ACEOF
11759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11766 # Do test here with the proper thread flags
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11768 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11769 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11770 $as_echo_n "(cached) " >&6
11772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 #include <string.h>
11779 switch (strerror_r(1, buf, sizeof(buf)))
11780 { case 0: break; default: break; }
11786 if ac_fn_c_try_compile
"$LINENO"; then :
11787 pgac_cv_func_strerror_r_int
=yes
11789 pgac_cv_func_strerror_r_int
=no
11791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11794 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11795 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11797 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11808 # do not use values from template file
11821 ## Most libraries are included only if they demonstrably provide a function
11822 ## we need, but libm is an exception: always include it, because there are
11823 ## too many compilers that play cute optimization games that will break
11824 ## probes for standard functions such as pow().
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11828 $as_echo_n "checking for main in -lm... " >&6; }
11829 if ${ac_cv_lib_m_main+:} false
; then :
11830 $as_echo_n "(cached) " >&6
11832 ac_check_lib_save_LIBS
=$LIBS
11834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11846 if ac_fn_c_try_link
"$LINENO"; then :
11847 ac_cv_lib_m_main
=yes
11849 ac_cv_lib_m_main
=no
11851 rm -f core conftest.err conftest.
$ac_objext \
11852 conftest
$ac_exeext conftest.
$ac_ext
11853 LIBS
=$ac_check_lib_save_LIBS
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11856 $as_echo "$ac_cv_lib_m_main" >&6; }
11857 if test "x$ac_cv_lib_m_main" = xyes
; then :
11858 cat >>confdefs.h
<<_ACEOF
11859 #define HAVE_LIBM 1
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11867 $as_echo_n "checking for library containing setproctitle... " >&6; }
11868 if ${ac_cv_search_setproctitle+:} false
; then :
11869 $as_echo_n "(cached) " >&6
11871 ac_func_search_save_LIBS
=$LIBS
11872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11881 char setproctitle ();
11885 return setproctitle ();
11890 for ac_lib
in '' util
; do
11891 if test -z "$ac_lib"; then
11892 ac_res
="none required"
11895 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11897 if ac_fn_c_try_link
"$LINENO"; then :
11898 ac_cv_search_setproctitle
=$ac_res
11900 rm -f core conftest.err conftest.
$ac_objext \
11902 if ${ac_cv_search_setproctitle+:} false
; then :
11906 if ${ac_cv_search_setproctitle+:} false
; then :
11909 ac_cv_search_setproctitle
=no
11911 rm conftest.
$ac_ext
11912 LIBS
=$ac_func_search_save_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11915 $as_echo "$ac_cv_search_setproctitle" >&6; }
11916 ac_res
=$ac_cv_search_setproctitle
11917 if test "$ac_res" != no
; then :
11918 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11922 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11923 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11924 # required. Just checking for dlsym() ought to suffice.
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11926 $as_echo_n "checking for library containing dlsym... " >&6; }
11927 if ${ac_cv_search_dlsym+:} false
; then :
11928 $as_echo_n "(cached) " >&6
11930 ac_func_search_save_LIBS
=$LIBS
11931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11934 /* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply. */
11949 for ac_lib
in '' dl
; do
11950 if test -z "$ac_lib"; then
11951 ac_res
="none required"
11954 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11956 if ac_fn_c_try_link
"$LINENO"; then :
11957 ac_cv_search_dlsym
=$ac_res
11959 rm -f core conftest.err conftest.
$ac_objext \
11961 if ${ac_cv_search_dlsym+:} false
; then :
11965 if ${ac_cv_search_dlsym+:} false
; then :
11968 ac_cv_search_dlsym
=no
11970 rm conftest.
$ac_ext
11971 LIBS
=$ac_func_search_save_LIBS
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11974 $as_echo "$ac_cv_search_dlsym" >&6; }
11975 ac_res
=$ac_cv_search_dlsym
11976 if test "$ac_res" != no
; then :
11977 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11982 $as_echo_n "checking for library containing socket... " >&6; }
11983 if ${ac_cv_search_socket+:} false
; then :
11984 $as_echo_n "(cached) " >&6
11986 ac_func_search_save_LIBS
=$LIBS
11987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11990 /* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
12005 for ac_lib
in '' socket ws2_32
; do
12006 if test -z "$ac_lib"; then
12007 ac_res
="none required"
12010 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12012 if ac_fn_c_try_link
"$LINENO"; then :
12013 ac_cv_search_socket
=$ac_res
12015 rm -f core conftest.err conftest.
$ac_objext \
12017 if ${ac_cv_search_socket+:} false
; then :
12021 if ${ac_cv_search_socket+:} false
; then :
12024 ac_cv_search_socket
=no
12026 rm conftest.
$ac_ext
12027 LIBS
=$ac_func_search_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12030 $as_echo "$ac_cv_search_socket" >&6; }
12031 ac_res
=$ac_cv_search_socket
12032 if test "$ac_res" != no
; then :
12033 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
12038 $as_echo_n "checking for library containing shl_load... " >&6; }
12039 if ${ac_cv_search_shl_load+:} false
; then :
12040 $as_echo_n "(cached) " >&6
12042 ac_func_search_save_LIBS
=$LIBS
12043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12056 return shl_load ();
12061 for ac_lib
in '' dld
; do
12062 if test -z "$ac_lib"; then
12063 ac_res
="none required"
12066 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12068 if ac_fn_c_try_link
"$LINENO"; then :
12069 ac_cv_search_shl_load
=$ac_res
12071 rm -f core conftest.err conftest.
$ac_objext \
12073 if ${ac_cv_search_shl_load+:} false
; then :
12077 if ${ac_cv_search_shl_load+:} false
; then :
12080 ac_cv_search_shl_load
=no
12082 rm conftest.
$ac_ext
12083 LIBS
=$ac_func_search_save_LIBS
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
12086 $as_echo "$ac_cv_search_shl_load" >&6; }
12087 ac_res
=$ac_cv_search_shl_load
12088 if test "$ac_res" != no
; then :
12089 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
12094 $as_echo_n "checking for library containing getopt_long... " >&6; }
12095 if ${ac_cv_search_getopt_long+:} false
; then :
12096 $as_echo_n "(cached) " >&6
12098 ac_func_search_save_LIBS
=$LIBS
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12108 char getopt_long ();
12112 return getopt_long ();
12117 for ac_lib
in '' getopt gnugetopt
; do
12118 if test -z "$ac_lib"; then
12119 ac_res
="none required"
12122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12124 if ac_fn_c_try_link
"$LINENO"; then :
12125 ac_cv_search_getopt_long
=$ac_res
12127 rm -f core conftest.err conftest.
$ac_objext \
12129 if ${ac_cv_search_getopt_long+:} false
; then :
12133 if ${ac_cv_search_getopt_long+:} false
; then :
12136 ac_cv_search_getopt_long
=no
12138 rm conftest.
$ac_ext
12139 LIBS
=$ac_func_search_save_LIBS
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
12142 $as_echo "$ac_cv_search_getopt_long" >&6; }
12143 ac_res
=$ac_cv_search_getopt_long
12144 if test "$ac_res" != no
; then :
12145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
12150 $as_echo_n "checking for library containing shm_open... " >&6; }
12151 if ${ac_cv_search_shm_open+:} false
; then :
12152 $as_echo_n "(cached) " >&6
12154 ac_func_search_save_LIBS
=$LIBS
12155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12168 return shm_open ();
12173 for ac_lib
in '' rt
; do
12174 if test -z "$ac_lib"; then
12175 ac_res
="none required"
12178 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12180 if ac_fn_c_try_link
"$LINENO"; then :
12181 ac_cv_search_shm_open
=$ac_res
12183 rm -f core conftest.err conftest.
$ac_objext \
12185 if ${ac_cv_search_shm_open+:} false
; then :
12189 if ${ac_cv_search_shm_open+:} false
; then :
12192 ac_cv_search_shm_open
=no
12194 rm conftest.
$ac_ext
12195 LIBS
=$ac_func_search_save_LIBS
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
12198 $as_echo "$ac_cv_search_shm_open" >&6; }
12199 ac_res
=$ac_cv_search_shm_open
12200 if test "$ac_res" != no
; then :
12201 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
12206 $as_echo_n "checking for library containing shm_unlink... " >&6; }
12207 if ${ac_cv_search_shm_unlink+:} false
; then :
12208 $as_echo_n "(cached) " >&6
12210 ac_func_search_save_LIBS
=$LIBS
12211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12220 char shm_unlink ();
12224 return shm_unlink ();
12229 for ac_lib
in '' rt
; do
12230 if test -z "$ac_lib"; then
12231 ac_res
="none required"
12234 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12236 if ac_fn_c_try_link
"$LINENO"; then :
12237 ac_cv_search_shm_unlink
=$ac_res
12239 rm -f core conftest.err conftest.
$ac_objext \
12241 if ${ac_cv_search_shm_unlink+:} false
; then :
12245 if ${ac_cv_search_shm_unlink+:} false
; then :
12248 ac_cv_search_shm_unlink
=no
12250 rm conftest.
$ac_ext
12251 LIBS
=$ac_func_search_save_LIBS
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
12254 $as_echo "$ac_cv_search_shm_unlink" >&6; }
12255 ac_res
=$ac_cv_search_shm_unlink
12256 if test "$ac_res" != no
; then :
12257 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12262 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12263 if ${ac_cv_search_clock_gettime+:} false
; then :
12264 $as_echo_n "(cached) " >&6
12266 ac_func_search_save_LIBS
=$LIBS
12267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12276 char clock_gettime ();
12280 return clock_gettime ();
12285 for ac_lib
in '' rt posix4
; do
12286 if test -z "$ac_lib"; then
12287 ac_res
="none required"
12290 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12292 if ac_fn_c_try_link
"$LINENO"; then :
12293 ac_cv_search_clock_gettime
=$ac_res
12295 rm -f core conftest.err conftest.
$ac_objext \
12297 if ${ac_cv_search_clock_gettime+:} false
; then :
12301 if ${ac_cv_search_clock_gettime+:} false
; then :
12304 ac_cv_search_clock_gettime
=no
12306 rm conftest.
$ac_ext
12307 LIBS
=$ac_func_search_save_LIBS
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12310 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12311 ac_res
=$ac_cv_search_clock_gettime
12312 if test "$ac_res" != no
; then :
12313 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12319 $as_echo_n "checking for library containing fdatasync... " >&6; }
12320 if ${ac_cv_search_fdatasync+:} false
; then :
12321 $as_echo_n "(cached) " >&6
12323 ac_func_search_save_LIBS
=$LIBS
12324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12337 return fdatasync ();
12342 for ac_lib
in '' rt posix4
; do
12343 if test -z "$ac_lib"; then
12344 ac_res
="none required"
12347 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12349 if ac_fn_c_try_link
"$LINENO"; then :
12350 ac_cv_search_fdatasync
=$ac_res
12352 rm -f core conftest.err conftest.
$ac_objext \
12354 if ${ac_cv_search_fdatasync+:} false
; then :
12358 if ${ac_cv_search_fdatasync+:} false
; then :
12361 ac_cv_search_fdatasync
=no
12363 rm conftest.
$ac_ext
12364 LIBS
=$ac_func_search_save_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12367 $as_echo "$ac_cv_search_fdatasync" >&6; }
12368 ac_res
=$ac_cv_search_fdatasync
12369 if test "$ac_res" != no
; then :
12370 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
12376 $as_echo_n "checking for library containing shmget... " >&6; }
12377 if ${ac_cv_search_shmget+:} false
; then :
12378 $as_echo_n "(cached) " >&6
12380 ac_func_search_save_LIBS
=$LIBS
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12399 for ac_lib
in '' cygipc
; do
12400 if test -z "$ac_lib"; then
12401 ac_res
="none required"
12404 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12406 if ac_fn_c_try_link
"$LINENO"; then :
12407 ac_cv_search_shmget
=$ac_res
12409 rm -f core conftest.err conftest.
$ac_objext \
12411 if ${ac_cv_search_shmget+:} false
; then :
12415 if ${ac_cv_search_shmget+:} false
; then :
12418 ac_cv_search_shmget
=no
12420 rm conftest.
$ac_ext
12421 LIBS
=$ac_func_search_save_LIBS
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
12424 $as_echo "$ac_cv_search_shmget" >&6; }
12425 ac_res
=$ac_cv_search_shmget
12426 if test "$ac_res" != no
; then :
12427 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
12433 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
12434 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12435 $as_echo_n "(cached) " >&6
12437 ac_func_search_save_LIBS
=$LIBS
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12447 char backtrace_symbols ();
12451 return backtrace_symbols ();
12456 for ac_lib
in '' execinfo
; do
12457 if test -z "$ac_lib"; then
12458 ac_res
="none required"
12461 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12463 if ac_fn_c_try_link
"$LINENO"; then :
12464 ac_cv_search_backtrace_symbols
=$ac_res
12466 rm -f core conftest.err conftest.
$ac_objext \
12468 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12472 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12475 ac_cv_search_backtrace_symbols
=no
12477 rm conftest.
$ac_ext
12478 LIBS
=$ac_func_search_save_LIBS
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
12481 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
12482 ac_res
=$ac_cv_search_backtrace_symbols
12483 if test "$ac_res" != no
; then :
12484 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12489 if test "$enable_thread_safety" = yes; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
12491 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
12492 if ${ac_cv_search_gethostbyname_r+:} false
; then :
12493 $as_echo_n "(cached) " >&6
12495 ac_func_search_save_LIBS
=$LIBS
12496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12505 char gethostbyname_r ();
12509 return gethostbyname_r ();
12514 for ac_lib
in '' nsl
; do
12515 if test -z "$ac_lib"; then
12516 ac_res
="none required"
12519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12521 if ac_fn_c_try_link
"$LINENO"; then :
12522 ac_cv_search_gethostbyname_r
=$ac_res
12524 rm -f core conftest.err conftest.
$ac_objext \
12526 if ${ac_cv_search_gethostbyname_r+:} false
; then :
12530 if ${ac_cv_search_gethostbyname_r+:} false
; then :
12533 ac_cv_search_gethostbyname_r
=no
12535 rm conftest.
$ac_ext
12536 LIBS
=$ac_func_search_save_LIBS
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
12539 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
12540 ac_res
=$ac_cv_search_gethostbyname_r
12541 if test "$ac_res" != no
; then :
12542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
12547 $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
12548 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12549 $as_echo_n "(cached) " >&6
12551 ac_func_search_save_LIBS
=$LIBS
12552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12561 char pthread_barrier_wait ();
12565 return pthread_barrier_wait ();
12570 for ac_lib
in '' pthread
; do
12571 if test -z "$ac_lib"; then
12572 ac_res
="none required"
12575 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12577 if ac_fn_c_try_link
"$LINENO"; then :
12578 ac_cv_search_pthread_barrier_wait
=$ac_res
12580 rm -f core conftest.err conftest.
$ac_objext \
12582 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12586 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12589 ac_cv_search_pthread_barrier_wait
=no
12591 rm conftest.
$ac_ext
12592 LIBS
=$ac_func_search_save_LIBS
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
12595 $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
12596 ac_res
=$ac_cv_search_pthread_barrier_wait
12597 if test "$ac_res" != no
; then :
12598 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12604 if test "$with_readline" = yes; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12608 $as_echo_n "checking for library containing readline... " >&6; }
12609 if ${pgac_cv_check_readline+:} false
; then :
12610 $as_echo_n "(cached) " >&6
12612 pgac_cv_check_readline
=no
12613 pgac_save_LIBS
=$LIBS
12614 if test x
"$with_libedit_preferred" != x
"yes"
12615 then READLINE_ORDER
="-lreadline -ledit"
12616 else READLINE_ORDER
="-ledit -lreadline"
12618 for pgac_rllib
in $READLINE_ORDER ; do
12619 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12620 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12634 return readline ();
12639 if ac_fn_c_try_link
"$LINENO"; then :
12641 # Older NetBSD and OpenBSD have a broken linker that does not
12642 # recognize dependent libraries; assume curses is needed if we didn't
12643 # find any dependency.
12645 netbsd
* | openbsd
*)
12646 if test x
"$pgac_lib" = x
"" ; then
12647 pgac_lib
=" -lcurses"
12651 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12655 rm -f core conftest.err conftest.
$ac_objext \
12656 conftest
$ac_exeext conftest.
$ac_ext
12658 if test "$pgac_cv_check_readline" != no
; then
12662 LIBS
=$pgac_save_LIBS
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12666 $as_echo "$pgac_cv_check_readline" >&6; }
12667 if test "$pgac_cv_check_readline" != no
; then
12668 LIBS
="$pgac_cv_check_readline $LIBS"
12670 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12675 if test x
"$pgac_cv_check_readline" = x
"no"; then
12676 as_fn_error $?
"readline library not found
12677 If you have readline already installed, see config.log for details on the
12678 failure. It is possible the compiler isn't looking in the proper directory.
12679 Use --without-readline to disable readline support." "$LINENO" 5
12683 if test "$with_zlib" = yes; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12685 $as_echo_n "checking for inflate in -lz... " >&6; }
12686 if ${ac_cv_lib_z_inflate+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12689 ac_check_lib_save_LIBS
=$LIBS
12691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12709 if ac_fn_c_try_link
"$LINENO"; then :
12710 ac_cv_lib_z_inflate
=yes
12712 ac_cv_lib_z_inflate
=no
12714 rm -f core conftest.err conftest.
$ac_objext \
12715 conftest
$ac_exeext conftest.
$ac_ext
12716 LIBS
=$ac_check_lib_save_LIBS
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12719 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12720 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12721 cat >>confdefs.h
<<_ACEOF
12722 #define HAVE_LIBZ 1
12728 as_fn_error $?
"zlib library not found
12729 If you have zlib already installed, see config.log for details on the
12730 failure. It is possible the compiler isn't looking in the proper directory.
12731 Use --without-zlib to disable zlib support." "$LINENO" 5
12736 if test "$enable_spinlocks" = yes; then
12738 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12742 *** Not using spinlocks will cause poor performance." >&5
12743 $as_echo "$as_me: WARNING:
12744 *** Not using spinlocks will cause poor performance." >&2;}
12747 if test "$enable_atomics" = yes; then
12749 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12753 *** Not using atomic operations will cause poor performance." >&5
12754 $as_echo "$as_me: WARNING:
12755 *** Not using atomic operations will cause poor performance." >&2;}
12758 if test "$with_gssapi" = yes ; then
12759 if test "$PORTNAME" != "win32"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
12761 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
12762 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12763 $as_echo_n "(cached) " >&6
12765 ac_func_search_save_LIBS
=$LIBS
12766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12769 /* Override any GCC internal prototype to avoid an error.
12770 Use char because int might match the return type of a GCC
12771 builtin and then its argument prototype would still apply. */
12775 char gss_init_sec_context ();
12779 return gss_init_sec_context ();
12784 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12785 if test -z "$ac_lib"; then
12786 ac_res
="none required"
12789 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12791 if ac_fn_c_try_link
"$LINENO"; then :
12792 ac_cv_search_gss_init_sec_context
=$ac_res
12794 rm -f core conftest.err conftest.
$ac_objext \
12796 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12800 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
12803 ac_cv_search_gss_init_sec_context
=no
12805 rm conftest.
$ac_ext
12806 LIBS
=$ac_func_search_save_LIBS
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
12809 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
12810 ac_res
=$ac_cv_search_gss_init_sec_context
12811 if test "$ac_res" != no
; then :
12812 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12815 as_fn_error $?
"could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
12819 LIBS
="$LIBS -lgssapi32"
12826 # There is currently only one supported SSL/TLS library: OpenSSL.
12831 # Check whether --with-ssl was given.
12832 if test "${with_ssl+set}" = set; then :
12836 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12839 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12849 if test x
"$with_ssl" = x
"" ; then
12855 # Check whether --with-openssl was given.
12856 if test "${with_openssl+set}" = set; then :
12857 withval
=$with_openssl;
12866 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
12876 if test "$with_openssl" = yes ; then
12880 if test "$with_ssl" = openssl
; then
12881 # Minimum required OpenSSL version is 1.0.1
12883 $as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
12885 if test "$PORTNAME" != "win32"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12887 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12888 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12889 $as_echo_n "(cached) " >&6
12891 ac_check_lib_save_LIBS
=$LIBS
12892 LIBS
="-lcrypto $LIBS"
12893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12902 char CRYPTO_new_ex_data ();
12906 return CRYPTO_new_ex_data ();
12911 if ac_fn_c_try_link
"$LINENO"; then :
12912 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12914 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12916 rm -f core conftest.err conftest.
$ac_objext \
12917 conftest
$ac_exeext conftest.
$ac_ext
12918 LIBS
=$ac_check_lib_save_LIBS
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12921 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12922 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12923 cat >>confdefs.h
<<_ACEOF
12924 #define HAVE_LIBCRYPTO 1
12927 LIBS
="-lcrypto $LIBS"
12930 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12934 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12935 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12936 $as_echo_n "(cached) " >&6
12938 ac_check_lib_save_LIBS
=$LIBS
12940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12958 if ac_fn_c_try_link
"$LINENO"; then :
12959 ac_cv_lib_ssl_SSL_new
=yes
12961 ac_cv_lib_ssl_SSL_new
=no
12963 rm -f core conftest.err conftest.
$ac_objext \
12964 conftest
$ac_exeext conftest.
$ac_ext
12965 LIBS
=$ac_check_lib_save_LIBS
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12968 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12969 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12970 cat >>confdefs.h
<<_ACEOF
12971 #define HAVE_LIBSSL 1
12977 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12982 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12983 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12984 $as_echo_n "(cached) " >&6
12986 ac_func_search_save_LIBS
=$LIBS
12987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12996 char CRYPTO_new_ex_data ();
13000 return CRYPTO_new_ex_data ();
13005 for ac_lib
in '' eay32 crypto
; do
13006 if test -z "$ac_lib"; then
13007 ac_res
="none required"
13010 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13012 if ac_fn_c_try_link
"$LINENO"; then :
13013 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
13015 rm -f core conftest.err conftest.
$ac_objext \
13017 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
13021 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
13024 ac_cv_search_CRYPTO_new_ex_data
=no
13026 rm conftest.
$ac_ext
13027 LIBS
=$ac_func_search_save_LIBS
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
13030 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
13031 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
13032 if test "$ac_res" != no
; then :
13033 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13036 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
13040 $as_echo_n "checking for library containing SSL_new... " >&6; }
13041 if ${ac_cv_search_SSL_new+:} false
; then :
13042 $as_echo_n "(cached) " >&6
13044 ac_func_search_save_LIBS
=$LIBS
13045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13048 /* Override any GCC internal prototype to avoid an error.
13049 Use char because int might match the return type of a GCC
13050 builtin and then its argument prototype would still apply. */
13063 for ac_lib
in '' ssleay32 ssl
; do
13064 if test -z "$ac_lib"; then
13065 ac_res
="none required"
13068 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13070 if ac_fn_c_try_link
"$LINENO"; then :
13071 ac_cv_search_SSL_new
=$ac_res
13073 rm -f core conftest.err conftest.
$ac_objext \
13075 if ${ac_cv_search_SSL_new+:} false
; then :
13079 if ${ac_cv_search_SSL_new+:} false
; then :
13082 ac_cv_search_SSL_new
=no
13084 rm conftest.
$ac_ext
13085 LIBS
=$ac_func_search_save_LIBS
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13088 $as_echo "$ac_cv_search_SSL_new" >&6; }
13089 ac_res
=$ac_cv_search_SSL_new
13090 if test "$ac_res" != no
; then :
13091 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13094 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
13098 # Function introduced in OpenSSL 1.0.2.
13099 for ac_func
in X509_get_signature_nid
13101 ac_fn_c_check_func
"$LINENO" "X509_get_signature_nid" "ac_cv_func_X509_get_signature_nid"
13102 if test "x$ac_cv_func_X509_get_signature_nid" = xyes
; then :
13103 cat >>confdefs.h
<<_ACEOF
13104 #define HAVE_X509_GET_SIGNATURE_NID 1
13110 # Functions introduced in OpenSSL 1.1.0. We used to check for
13111 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
13112 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
13113 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
13115 for ac_func
in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data HMAC_CTX_new HMAC_CTX_free
13117 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13118 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13119 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13120 cat >>confdefs.h
<<_ACEOF
13121 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13127 # OpenSSL versions before 1.1.0 required setting callback functions, for
13128 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
13129 # function was removed.
13130 for ac_func
in CRYPTO_lock
13132 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
13133 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
13134 cat >>confdefs.h
<<_ACEOF
13135 #define HAVE_CRYPTO_LOCK 1
13142 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
13144 elif test "$with_ssl" != no
; then
13145 as_fn_error $?
"--with-ssl must specify openssl" "$LINENO" 5
13149 if test "$with_pam" = yes ; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
13151 $as_echo_n "checking for pam_start in -lpam... " >&6; }
13152 if ${ac_cv_lib_pam_pam_start+:} false
; then :
13153 $as_echo_n "(cached) " >&6
13155 ac_check_lib_save_LIBS
=$LIBS
13157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13170 return pam_start ();
13175 if ac_fn_c_try_link
"$LINENO"; then :
13176 ac_cv_lib_pam_pam_start
=yes
13178 ac_cv_lib_pam_pam_start
=no
13180 rm -f core conftest.err conftest.
$ac_objext \
13181 conftest
$ac_exeext conftest.
$ac_ext
13182 LIBS
=$ac_check_lib_save_LIBS
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
13185 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
13186 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
13187 cat >>confdefs.h
<<_ACEOF
13188 #define HAVE_LIBPAM 1
13194 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
13199 if test "$with_libxml" = yes ; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
13201 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
13202 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
13203 $as_echo_n "(cached) " >&6
13205 ac_check_lib_save_LIBS
=$LIBS
13206 LIBS
="-lxml2 $LIBS"
13207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13216 char xmlSaveToBuffer ();
13220 return xmlSaveToBuffer ();
13225 if ac_fn_c_try_link
"$LINENO"; then :
13226 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
13228 ac_cv_lib_xml2_xmlSaveToBuffer
=no
13230 rm -f core conftest.err conftest.
$ac_objext \
13231 conftest
$ac_exeext conftest.
$ac_ext
13232 LIBS
=$ac_check_lib_save_LIBS
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
13235 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
13236 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
13237 cat >>confdefs.h
<<_ACEOF
13238 #define HAVE_LIBXML2 1
13241 LIBS
="-lxml2 $LIBS"
13244 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
13249 if test "$with_libxslt" = yes ; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
13251 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
13252 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
13253 $as_echo_n "(cached) " >&6
13255 ac_check_lib_save_LIBS
=$LIBS
13256 LIBS
="-lxslt $LIBS"
13257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13260 /* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13266 char xsltCleanupGlobals ();
13270 return xsltCleanupGlobals ();
13275 if ac_fn_c_try_link
"$LINENO"; then :
13276 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
13278 ac_cv_lib_xslt_xsltCleanupGlobals
=no
13280 rm -f core conftest.err conftest.
$ac_objext \
13281 conftest
$ac_exeext conftest.
$ac_ext
13282 LIBS
=$ac_check_lib_save_LIBS
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
13285 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
13286 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
13287 cat >>confdefs.h
<<_ACEOF
13288 #define HAVE_LIBXSLT 1
13291 LIBS
="-lxslt $LIBS"
13294 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
13299 if test "$with_lz4" = yes ; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
13301 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
13302 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false
; then :
13303 $as_echo_n "(cached) " >&6
13305 ac_check_lib_save_LIBS
=$LIBS
13307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13316 char LZ4_compress_default ();
13320 return LZ4_compress_default ();
13325 if ac_fn_c_try_link
"$LINENO"; then :
13326 ac_cv_lib_lz4_LZ4_compress_default
=yes
13328 ac_cv_lib_lz4_LZ4_compress_default
=no
13330 rm -f core conftest.err conftest.
$ac_objext \
13331 conftest
$ac_exeext conftest.
$ac_ext
13332 LIBS
=$ac_check_lib_save_LIBS
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
13335 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
13336 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes
; then :
13337 cat >>confdefs.h
<<_ACEOF
13338 #define HAVE_LIBLZ4 1
13344 as_fn_error $?
"library 'lz4' is required for LZ4 support" "$LINENO" 5
13349 if test "$with_zstd" = yes ; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13351 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13352 if ${ac_cv_lib_zstd_ZSTD_compress+:} false
; then :
13353 $as_echo_n "(cached) " >&6
13355 ac_check_lib_save_LIBS
=$LIBS
13356 LIBS
="-lzstd $LIBS"
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13366 char ZSTD_compress ();
13370 return ZSTD_compress ();
13375 if ac_fn_c_try_link
"$LINENO"; then :
13376 ac_cv_lib_zstd_ZSTD_compress
=yes
13378 ac_cv_lib_zstd_ZSTD_compress
=no
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13382 LIBS
=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13385 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13386 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
; then :
13387 cat >>confdefs.h
<<_ACEOF
13388 #define HAVE_LIBZSTD 1
13391 LIBS
="-lzstd $LIBS"
13394 as_fn_error $?
"library 'zstd' is required for ZSTD support" "$LINENO" 5
13399 # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
13400 # also, on AIX, we may need to have openssl in LIBS for this step.
13401 if test "$with_ldap" = yes ; then
13403 if test "$PORTNAME" != "win32"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13405 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13406 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
13407 $as_echo_n "(cached) " >&6
13409 ac_check_lib_save_LIBS
=$LIBS
13410 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
13411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 /* Override any GCC internal prototype to avoid an error.
13415 Use char because int might match the return type of a GCC
13416 builtin and then its argument prototype would still apply. */
13424 return ldap_bind ();
13429 if ac_fn_c_try_link
"$LINENO"; then :
13430 ac_cv_lib_ldap_ldap_bind
=yes
13432 ac_cv_lib_ldap_ldap_bind
=no
13434 rm -f core conftest.err conftest.
$ac_objext \
13435 conftest
$ac_exeext conftest.
$ac_ext
13436 LIBS
=$ac_check_lib_save_LIBS
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13439 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13440 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
13441 cat >>confdefs.h
<<_ACEOF
13442 #define HAVE_LIBLDAP 1
13445 LIBS
="-lldap $LIBS"
13448 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
13451 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
13452 # This test is carried out against libldap.
13453 for ac_func
in ldap_initialize
13455 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
13456 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
13457 cat >>confdefs.h
<<_ACEOF
13458 #define HAVE_LDAP_INITIALIZE 1
13464 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
13465 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
13466 # library from a separate OpenLDAP installation). The most reliable
13467 # way to check that is to check for a function introduced in 2.5.
13468 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
13469 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
13470 thread_safe_libldap
=yes
13472 thread_safe_libldap
=no
13475 if test "$enable_thread_safety" = yes -a "$thread_safe_libldap" = no
; then
13476 # Use ldap_r for FE if available, else assume ldap is thread-safe.
13477 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
13480 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
13481 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
13482 $as_echo_n "(cached) " >&6
13484 ac_check_lib_save_LIBS
=$LIBS
13485 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
13486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13499 return ldap_bind ();
13504 if ac_fn_c_try_link
"$LINENO"; then :
13505 ac_cv_lib_ldap_r_ldap_bind
=yes
13507 ac_cv_lib_ldap_r_ldap_bind
=no
13509 rm -f core conftest.err conftest.
$ac_objext \
13510 conftest
$ac_exeext conftest.
$ac_ext
13511 LIBS
=$ac_check_lib_save_LIBS
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
13514 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
13515 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
13516 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
13518 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
13522 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
13526 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
13527 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
13528 $as_echo_n "(cached) " >&6
13530 ac_check_lib_save_LIBS
=$LIBS
13531 LIBS
="-lwldap32 $LIBS"
13532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13545 return ldap_bind ();
13550 if ac_fn_c_try_link
"$LINENO"; then :
13551 ac_cv_lib_wldap32_ldap_bind
=yes
13553 ac_cv_lib_wldap32_ldap_bind
=no
13555 rm -f core conftest.err conftest.
$ac_objext \
13556 conftest
$ac_exeext conftest.
$ac_ext
13557 LIBS
=$ac_check_lib_save_LIBS
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
13560 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
13561 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
13562 cat >>confdefs.h
<<_ACEOF
13563 #define HAVE_LIBWLDAP32 1
13566 LIBS
="-lwldap32 $LIBS"
13569 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
13572 LDAP_LIBS_FE
="-lwldap32"
13573 LDAP_LIBS_BE
="-lwldap32"
13580 # for contrib/sepgsql
13581 if test "$with_selinux" = yes; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
13583 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
13584 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
13585 $as_echo_n "(cached) " >&6
13587 ac_check_lib_save_LIBS
=$LIBS
13588 LIBS
="-lselinux $LIBS"
13589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13598 char security_compute_create_name ();
13602 return security_compute_create_name ();
13607 if ac_fn_c_try_link
"$LINENO"; then :
13608 ac_cv_lib_selinux_security_compute_create_name
=yes
13610 ac_cv_lib_selinux_security_compute_create_name
=no
13612 rm -f core conftest.err conftest.
$ac_objext \
13613 conftest
$ac_exeext conftest.
$ac_ext
13614 LIBS
=$ac_check_lib_save_LIBS
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
13617 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
13618 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
13619 cat >>confdefs.h
<<_ACEOF
13620 #define HAVE_LIBSELINUX 1
13623 LIBS
="-lselinux $LIBS"
13626 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
13631 # for contrib/uuid-ossp
13632 if test "$with_uuid" = bsd
; then
13633 # On BSD, the UUID functions are in libc
13634 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
13635 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
13638 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
13641 elif test "$with_uuid" = e2fs
; then
13642 # On macOS, the UUID functions are in libc
13643 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13644 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13648 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13649 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13650 $as_echo_n "(cached) " >&6
13652 ac_check_lib_save_LIBS
=$LIBS
13653 LIBS
="-luuid $LIBS"
13654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13663 char uuid_generate ();
13667 return uuid_generate ();
13672 if ac_fn_c_try_link
"$LINENO"; then :
13673 ac_cv_lib_uuid_uuid_generate
=yes
13675 ac_cv_lib_uuid_uuid_generate
=no
13677 rm -f core conftest.err conftest.
$ac_objext \
13678 conftest
$ac_exeext conftest.
$ac_ext
13679 LIBS
=$ac_check_lib_save_LIBS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13682 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13683 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13686 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13691 elif test "$with_uuid" = ossp
; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13693 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13694 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13695 $as_echo_n "(cached) " >&6
13697 ac_check_lib_save_LIBS
=$LIBS
13698 LIBS
="-lossp-uuid $LIBS"
13699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13708 char uuid_export ();
13712 return uuid_export ();
13717 if ac_fn_c_try_link
"$LINENO"; then :
13718 ac_cv_lib_ossp_uuid_uuid_export
=yes
13720 ac_cv_lib_ossp_uuid_uuid_export
=no
13722 rm -f core conftest.err conftest.
$ac_objext \
13723 conftest
$ac_exeext conftest.
$ac_ext
13724 LIBS
=$ac_check_lib_save_LIBS
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13727 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13728 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13729 UUID_LIBS
="-lossp-uuid"
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13732 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13733 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13734 $as_echo_n "(cached) " >&6
13736 ac_check_lib_save_LIBS
=$LIBS
13737 LIBS
="-luuid $LIBS"
13738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13747 char uuid_export ();
13751 return uuid_export ();
13756 if ac_fn_c_try_link
"$LINENO"; then :
13757 ac_cv_lib_uuid_uuid_export
=yes
13759 ac_cv_lib_uuid_uuid_export
=no
13761 rm -f core conftest.err conftest.
$ac_objext \
13762 conftest
$ac_exeext conftest.
$ac_ext
13763 LIBS
=$ac_check_lib_save_LIBS
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13766 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13767 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13770 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13784 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13785 if ${ac_cv_header_stdbool_h+:} false
; then :
13786 $as_echo_n "(cached) " >&6
13788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13791 #include <stdbool.h>
13793 "error: bool is not defined"
13796 "error: false is not defined"
13799 "error: false is not 0"
13802 "error: true is not defined"
13805 "error: true is not 1"
13807 #ifndef __bool_true_false_are_defined
13808 "error: __bool_true_false_are_defined is not defined"
13811 struct s { _Bool s: 1; _Bool t; } s;
13813 char a[true == 1 ? 1 : -1];
13814 char b[false == 0 ? 1 : -1];
13815 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13816 char d[(bool) 0.5 == true ? 1 : -1];
13817 /* See body of main program for 'e'. */
13818 char f[(_Bool) 0.0 == false ? 1 : -1];
13820 char h[sizeof (_Bool)];
13821 char i[sizeof s.t];
13822 enum { j = false, k = true, l = false * true, m = true * 256 };
13823 /* The following fails for
13824 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13826 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13827 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13828 /* Catch a bug in an HP-UX C compiler. See
13829 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13830 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13842 /* Refer to every declared value, to avoid compiler optimizations. */
13843 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13844 + !m + !n + !o + !p + !q + !pq);
13850 if ac_fn_c_try_compile
"$LINENO"; then :
13851 ac_cv_header_stdbool_h
=yes
13853 ac_cv_header_stdbool_h
=no
13855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13858 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13859 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13860 if test "x$ac_cv_type__Bool" = xyes
; then :
13862 cat >>confdefs.h
<<_ACEOF
13863 #define HAVE__BOOL 1
13870 if test $ac_cv_header_stdbool_h = yes; then
13872 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13877 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h net
/if.h netinet
/tcp.h sys
/epoll.h sys
/event.h sys
/ipc.h sys
/personality.h sys
/prctl.h sys
/procctl.h sys
/resource.h sys
/select.h sys
/sem.h sys
/shm.h sys
/signalfd.h sys
/sockio.h sys
/ucred.h sys
/uio.h sys
/un.h termios.h ucred.h
13879 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13880 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13881 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13882 cat >>confdefs.h
<<_ACEOF
13883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13891 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13892 for ac_header
in readline
/readline.h
13894 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13895 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13896 cat >>confdefs.h
<<_ACEOF
13897 #define HAVE_READLINE_READLINE_H 1
13901 for ac_header
in readline.h
13903 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13904 if test "x$ac_cv_header_readline_h" = xyes
; then :
13905 cat >>confdefs.h
<<_ACEOF
13906 #define HAVE_READLINE_H 1
13910 as_fn_error $?
"readline header not found
13911 If you have readline already installed, see config.log for details on the
13912 failure. It is possible the compiler isn't looking in the proper directory.
13913 Use --without-readline to disable readline support." "$LINENO" 5
13922 for ac_header
in readline
/history.h
13924 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13925 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13926 cat >>confdefs.h
<<_ACEOF
13927 #define HAVE_READLINE_HISTORY_H 1
13931 for ac_header
in history.h
13933 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13934 if test "x$ac_cv_header_history_h" = xyes
; then :
13935 cat >>confdefs.h
<<_ACEOF
13936 #define HAVE_HISTORY_H 1
13940 as_fn_error $?
"history header not found
13941 If you have readline already installed, see config.log for details on the
13942 failure. It is possible the compiler isn't looking in the proper directory.
13943 Use --without-readline to disable readline support." "$LINENO" 5
13954 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13955 # Some installations of libedit usurp /usr/include/readline/, which seems
13956 # bad practice, since in combined installations readline will have its headers
13957 # there. We might have to resort to AC_EGREP checks to make sure we found
13958 # the proper header...
13959 for ac_header
in editline
/readline.h
13961 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13962 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13963 cat >>confdefs.h
<<_ACEOF
13964 #define HAVE_EDITLINE_READLINE_H 1
13968 for ac_header
in readline.h
13970 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13971 if test "x$ac_cv_header_readline_h" = xyes
; then :
13972 cat >>confdefs.h
<<_ACEOF
13973 #define HAVE_READLINE_H 1
13977 for ac_header
in readline
/readline.h
13979 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13980 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13981 cat >>confdefs.h
<<_ACEOF
13982 #define HAVE_READLINE_READLINE_H 1
13986 as_fn_error $?
"readline header not found
13987 If you have libedit already installed, see config.log for details on the
13988 failure. It is possible the compiler isn't looking in the proper directory.
13989 Use --without-readline to disable libedit support." "$LINENO" 5
14002 # Note: in a libedit installation, history.h is sometimes a dummy, and may
14003 # not be there at all. Hence, don't complain if not found. We must check
14004 # though, since in yet other versions it is an independent header.
14005 for ac_header
in editline
/history.h
14007 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
14008 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
14009 cat >>confdefs.h
<<_ACEOF
14010 #define HAVE_EDITLINE_HISTORY_H 1
14014 for ac_header
in history.h
14016 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
14017 if test "x$ac_cv_header_history_h" = xyes
; then :
14018 cat >>confdefs.h
<<_ACEOF
14019 #define HAVE_HISTORY_H 1
14023 for ac_header
in readline
/history.h
14025 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14026 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
14027 cat >>confdefs.h
<<_ACEOF
14028 #define HAVE_READLINE_HISTORY_H 1
14045 if test "$with_zlib" = yes; then
14046 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14047 if test "x$ac_cv_header_zlib_h" = xyes
; then :
14050 as_fn_error $?
"zlib header not found
14051 If you have zlib already installed, see config.log for details on the
14052 failure. It is possible the compiler isn't looking in the proper directory.
14053 Use --without-zlib to disable zlib support." "$LINENO" 5
14059 if test -z "$LZ4"; then
14062 # Extract the first word of "$ac_prog", so it can be a program name with args.
14063 set dummy
$ac_prog; ac_word
=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14065 $as_echo_n "checking for $ac_word... " >&6; }
14066 if ${ac_cv_path_LZ4+:} false
; then :
14067 $as_echo_n "(cached) " >&6
14071 ac_cv_path_LZ4
="$LZ4" # Let the user override the test with a path.
14074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14075 for as_dir
in $PATH
14078 test -z "$as_dir" && as_dir
=.
14079 for ac_exec_ext
in '' $ac_executable_extensions; do
14080 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14081 ac_cv_path_LZ4
="$as_dir/$ac_word$ac_exec_ext"
14082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 LZ4
=$ac_cv_path_LZ4
14093 if test -n "$LZ4"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
14095 $as_echo "$LZ4" >&6; }
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14102 test -n "$LZ4" && break
14106 # Report the value of LZ4 in configure's output in all cases.
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
14108 $as_echo_n "checking for LZ4... " >&6; }
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
14110 $as_echo "$LZ4" >&6; }
14113 if test "$with_lz4" = yes; then
14114 ac_fn_c_check_header_mongrel
"$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
14115 if test "x$ac_cv_header_lz4_h" = xyes
; then :
14118 as_fn_error $?
"lz4.h header file is required for LZ4" "$LINENO" 5
14124 if test -z "$ZSTD"; then
14125 for ac_prog
in zstd
14127 # Extract the first word of "$ac_prog", so it can be a program name with args.
14128 set dummy
$ac_prog; ac_word
=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_path_ZSTD+:} false
; then :
14132 $as_echo_n "(cached) " >&6
14136 ac_cv_path_ZSTD
="$ZSTD" # Let the user override the test with a path.
14139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14140 for as_dir
in $PATH
14143 test -z "$as_dir" && as_dir
=.
14144 for ac_exec_ext
in '' $ac_executable_extensions; do
14145 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14146 ac_cv_path_ZSTD
="$as_dir/$ac_word$ac_exec_ext"
14147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14157 ZSTD
=$ac_cv_path_ZSTD
14158 if test -n "$ZSTD"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
14160 $as_echo "$ZSTD" >&6; }
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 $as_echo "no" >&6; }
14167 test -n "$ZSTD" && break
14171 # Report the value of ZSTD in configure's output in all cases.
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
14173 $as_echo_n "checking for ZSTD... " >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
14175 $as_echo "$ZSTD" >&6; }
14178 if test "$with_zstd" = yes; then
14179 ac_fn_c_check_header_mongrel
"$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_zstd_h" = xyes
; then :
14183 as_fn_error $?
"zstd.h header file is required for ZSTD" "$LINENO" 5
14189 if test "$with_gssapi" = yes ; then
14190 for ac_header
in gssapi
/gssapi.h
14192 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
14193 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
14194 cat >>confdefs.h
<<_ACEOF
14195 #define HAVE_GSSAPI_GSSAPI_H 1
14199 for ac_header
in gssapi.h
14201 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14202 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
14203 cat >>confdefs.h
<<_ACEOF
14204 #define HAVE_GSSAPI_H 1
14208 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
14219 if test "$with_ssl" = openssl
; then
14220 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14221 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
14224 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
14228 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
14229 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
14232 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
14238 if test "$with_pam" = yes ; then
14239 for ac_header
in security
/pam_appl.h
14241 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
14242 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
14243 cat >>confdefs.h
<<_ACEOF
14244 #define HAVE_SECURITY_PAM_APPL_H 1
14248 for ac_header
in pam
/pam_appl.h
14250 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
14251 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
14252 cat >>confdefs.h
<<_ACEOF
14253 #define HAVE_PAM_PAM_APPL_H 1
14257 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
14268 if test "$with_bsd_auth" = yes ; then
14269 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
14270 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
14273 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
14279 if test "$with_systemd" = yes ; then
14280 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
14284 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
14290 if test "$with_libxml" = yes ; then
14291 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
14292 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
14295 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
14301 if test "$with_libxslt" = yes ; then
14302 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
14303 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
14306 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
14312 if test "$with_ldap" = yes ; then
14313 if test "$PORTNAME" != "win32"; then
14314 for ac_header
in ldap.h
14316 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
14317 if test "x$ac_cv_header_ldap_h" = xyes
; then :
14318 cat >>confdefs.h
<<_ACEOF
14319 #define HAVE_LDAP_H 1
14323 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
14329 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
14330 if ${pgac_cv_ldap_safe+:} false
; then :
14331 $as_echo_n "(cached) " >&6
14333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 #if !defined(LDAP_VENDOR_VERSION) || \
14337 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
14338 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
14349 if ac_fn_c_try_compile
"$LINENO"; then :
14350 pgac_cv_ldap_safe
=yes
14352 pgac_cv_ldap_safe
=no
14354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
14357 $as_echo "$pgac_cv_ldap_safe" >&6; }
14359 if test "$pgac_cv_ldap_safe" != yes; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14361 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
14362 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
14363 *** also uses LDAP will crash on exit." >&5
14364 $as_echo "$as_me: WARNING:
14365 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
14366 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
14367 *** also uses LDAP will crash on exit." >&2;}
14370 for ac_header
in winldap.h
14372 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
14373 #include <windows.h>
14376 if test "x$ac_cv_header_winldap_h" = xyes
; then :
14377 cat >>confdefs.h
<<_ACEOF
14378 #define HAVE_WINLDAP_H 1
14382 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
14390 if test "$with_bonjour" = yes ; then
14391 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
14392 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
14395 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
14401 # for contrib/uuid-ossp
14402 if test "$with_uuid" = bsd
; then
14403 for ac_header
in uuid.h
14405 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14406 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14407 cat >>confdefs.h
<<_ACEOF
14408 #define HAVE_UUID_H 1
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14416 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
14419 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
14424 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
14429 elif test "$with_uuid" = e2fs
; then
14430 for ac_header
in uuid
/uuid.h
14432 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14433 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
14434 cat >>confdefs.h
<<_ACEOF
14435 #define HAVE_UUID_UUID_H 1
14437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 #include <uuid/uuid.h>
14442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14443 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14446 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
14451 for ac_header
in uuid.h
14453 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14454 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14455 cat >>confdefs.h
<<_ACEOF
14456 #define HAVE_UUID_H 1
14458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14464 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14467 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
14472 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
14481 elif test "$with_uuid" = ossp
; then
14482 for ac_header
in ossp
/uuid.h
14484 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
14485 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
14486 cat >>confdefs.h
<<_ACEOF
14487 #define HAVE_OSSP_UUID_H 1
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 #include <ossp/uuid.h>
14494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14495 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14498 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
14503 for ac_header
in uuid.h
14505 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14506 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14507 cat >>confdefs.h
<<_ACEOF
14508 #define HAVE_UUID_H 1
14510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14516 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14519 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
14524 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
14535 if test "$PORTNAME" = "win32" ; then
14536 for ac_header
in crtdefs.h
14538 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
14539 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
14540 cat >>confdefs.h
<<_ACEOF
14541 #define HAVE_CRTDEFS_H 1
14551 ## Types, structures, compiler characteristics
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14555 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14556 if ${ac_cv_c_bigendian+:} false
; then :
14557 $as_echo_n "(cached) " >&6
14559 ac_cv_c_bigendian
=unknown
14560 # See if we're dealing with a universal compiler.
14561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563 #ifndef __APPLE_CC__
14564 not a universal capable compiler
14569 if ac_fn_c_try_compile
"$LINENO"; then :
14571 # Check for potential -arch flags. It is not universal unless
14572 # there are at least two -arch flags with different values.
14575 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14576 if test -n "$ac_prev"; then
14578 i?
86 | x86_64 | ppc | ppc64
)
14579 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14582 ac_cv_c_bigendian
=universal
14588 elif test "x$ac_word" = "x-arch"; then
14593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14594 if test $ac_cv_c_bigendian = unknown
; then
14595 # See if sys/param.h defines the BYTE_ORDER macro.
14596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14598 #include <sys/types.h>
14599 #include <sys/param.h>
14604 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14605 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14607 bogus endian macros
14614 if ac_fn_c_try_compile
"$LINENO"; then :
14615 # It does; now see whether it defined to BIG_ENDIAN or not.
14616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 #include <sys/types.h>
14619 #include <sys/param.h>
14624 #if BYTE_ORDER != BIG_ENDIAN
14632 if ac_fn_c_try_compile
"$LINENO"; then :
14633 ac_cv_c_bigendian
=yes
14635 ac_cv_c_bigendian
=no
14637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14641 if test $ac_cv_c_bigendian = unknown
; then
14642 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 #include <limits.h>
14650 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14651 bogus endian macros
14658 if ac_fn_c_try_compile
"$LINENO"; then :
14659 # It does; now see whether it defined to _BIG_ENDIAN or not.
14660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662 #include <limits.h>
14667 #ifndef _BIG_ENDIAN
14675 if ac_fn_c_try_compile
"$LINENO"; then :
14676 ac_cv_c_bigendian
=yes
14678 ac_cv_c_bigendian
=no
14680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14684 if test $ac_cv_c_bigendian = unknown
; then
14685 # Compile a test program.
14686 if test "$cross_compiling" = yes; then :
14687 # Try to guess by grepping values from an object file.
14688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 short int ascii_mm[] =
14691 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14692 short int ascii_ii[] =
14693 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14694 int use_ascii (int i) {
14695 return ascii_mm[i] + ascii_ii[i];
14697 short int ebcdic_ii[] =
14698 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14699 short int ebcdic_mm[] =
14700 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14701 int use_ebcdic (int i) {
14702 return ebcdic_mm[i] + ebcdic_ii[i];
14709 return use_ascii (foo) == use_ebcdic (foo);
14714 if ac_fn_c_try_compile
"$LINENO"; then :
14715 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14716 ac_cv_c_bigendian
=yes
14718 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14719 if test "$ac_cv_c_bigendian" = unknown
; then
14720 ac_cv_c_bigendian
=no
14722 # finding both strings is unlikely to happen, but who knows?
14723 ac_cv_c_bigendian
=unknown
14727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731 $ac_includes_default
14736 /* Are we little or big endian? From Harbison&Steele. */
14740 char c[sizeof (long int)];
14743 return u.c[sizeof (long int) - 1] == 1;
14749 if ac_fn_c_try_run
"$LINENO"; then :
14750 ac_cv_c_bigendian
=no
14752 ac_cv_c_bigendian
=yes
14754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14761 $as_echo "$ac_cv_c_bigendian" >&6; }
14762 case $ac_cv_c_bigendian in #(
14764 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14770 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14774 as_fn_error $?
"unknown endianness
14775 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14779 $as_echo_n "checking for inline... " >&6; }
14780 if ${ac_cv_c_inline+:} false
; then :
14781 $as_echo_n "(cached) " >&6
14784 for ac_kw
in inline __inline__ __inline
; do
14785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 #ifndef __cplusplus
14789 static $ac_kw foo_t static_foo () {return 0; }
14790 $ac_kw foo_t foo () {return 0; }
14794 if ac_fn_c_try_compile
"$LINENO"; then :
14795 ac_cv_c_inline
=$ac_kw
14797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14798 test "$ac_cv_c_inline" != no
&& break
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14803 $as_echo "$ac_cv_c_inline" >&6; }
14805 case $ac_cv_c_inline in
14808 case $ac_cv_c_inline in
14810 *) ac_val
=$ac_cv_c_inline;;
14812 cat >>confdefs.h
<<_ACEOF
14813 #ifndef __cplusplus
14814 #define inline $ac_val
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14821 $as_echo_n "checking for printf format archetype... " >&6; }
14822 if ${pgac_cv_printf_archetype+:} false
; then :
14823 $as_echo_n "(cached) " >&6
14825 pgac_cv_printf_archetype
=gnu_printf
14826 ac_save_c_werror_flag
=$ac_c_werror_flag
14827 ac_c_werror_flag
=yes
14828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 extern void pgac_write(int ignore, const char *fmt,...)
14831 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14835 pgac_write(0, "error %s: %m", "foo");
14840 if ac_fn_c_try_compile
"$LINENO"; then :
14841 ac_archetype_ok
=yes
14845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14846 ac_c_werror_flag
=$ac_save_c_werror_flag
14848 if [ "$ac_archetype_ok" = no
]; then
14849 pgac_cv_printf_archetype
=__syslog__
14850 ac_save_c_werror_flag
=$ac_c_werror_flag
14851 ac_c_werror_flag
=yes
14852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 extern void pgac_write(int ignore, const char *fmt,...)
14855 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14859 pgac_write(0, "error %s: %m", "foo");
14864 if ac_fn_c_try_compile
"$LINENO"; then :
14865 ac_archetype_ok
=yes
14869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14870 ac_c_werror_flag
=$ac_save_c_werror_flag
14872 if [ "$ac_archetype_ok" = no
]; then
14873 pgac_cv_printf_archetype
=printf
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14878 $as_echo "$pgac_cv_printf_archetype" >&6; }
14880 cat >>confdefs.h
<<_ACEOF
14881 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14886 $as_echo_n "checking for _Static_assert... " >&6; }
14887 if ${pgac_cv__static_assert+:} false
; then :
14888 $as_echo_n "(cached) " >&6
14890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14896 ({ _Static_assert(1, "foo"); })
14901 if ac_fn_c_try_link
"$LINENO"; then :
14902 pgac_cv__static_assert
=yes
14904 pgac_cv__static_assert
=no
14906 rm -f core conftest.err conftest.
$ac_objext \
14907 conftest
$ac_exeext conftest.
$ac_ext
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14910 $as_echo "$pgac_cv__static_assert" >&6; }
14911 if test x
"$pgac_cv__static_assert" = xyes
; then
14913 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14917 $as_echo_n "checking for typeof... " >&6; }
14918 if ${pgac_cv_c_typeof+:} false
; then :
14919 $as_echo_n "(cached) " >&6
14921 pgac_cv_c_typeof
=no
14922 for pgac_kw
in typeof __typeof__ decltype
; do
14923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14937 if ac_fn_c_try_compile
"$LINENO"; then :
14938 pgac_cv_c_typeof
=$pgac_kw
14940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14941 test "$pgac_cv_c_typeof" != no
&& break
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14945 $as_echo "$pgac_cv_c_typeof" >&6; }
14946 if test "$pgac_cv_c_typeof" != no
; then
14948 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14950 if test "$pgac_cv_c_typeof" != typeof
; then
14952 cat >>confdefs.h
<<_ACEOF
14953 #define typeof $pgac_cv_c_typeof
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14959 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14960 if ${pgac_cv__types_compatible+:} false
; then :
14961 $as_echo_n "(cached) " >&6
14963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14969 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14974 if ac_fn_c_try_compile
"$LINENO"; then :
14975 pgac_cv__types_compatible
=yes
14977 pgac_cv__types_compatible
=no
14979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14982 $as_echo "$pgac_cv__types_compatible" >&6; }
14983 if test x
"$pgac_cv__types_compatible" = xyes
; then
14985 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14989 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14990 if ${pgac_cv__builtin_constant_p+:} false
; then :
14991 $as_echo_n "(cached) " >&6
14993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14996 static int y[__builtin_constant_p(x) ? x : 1];
14997 static int z[__builtin_constant_p("string literal") ? 1 : x];
15001 if ac_fn_c_try_compile
"$LINENO"; then :
15002 pgac_cv__builtin_constant_p
=yes
15004 pgac_cv__builtin_constant_p
=no
15006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
15009 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
15010 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
15012 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
15016 $as_echo_n "checking for __builtin_unreachable... " >&6; }
15017 if ${pgac_cv__builtin_unreachable+:} false
; then :
15018 $as_echo_n "(cached) " >&6
15020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15026 __builtin_unreachable();
15031 if ac_fn_c_try_link
"$LINENO"; then :
15032 pgac_cv__builtin_unreachable
=yes
15034 pgac_cv__builtin_unreachable
=no
15036 rm -f core conftest.err conftest.
$ac_objext \
15037 conftest
$ac_exeext conftest.
$ac_ext
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
15040 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
15041 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
15043 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
15047 $as_echo_n "checking for computed goto support... " >&6; }
15048 if ${pgac_cv_computed_goto+:} false
; then :
15049 $as_echo_n "(cached) " >&6
15051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15057 void *labeladdrs[] = {&&my_label};
15058 goto *labeladdrs[0];
15066 if ac_fn_c_try_compile
"$LINENO"; then :
15067 pgac_cv_computed_goto
=yes
15069 pgac_cv_computed_goto
=no
15071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
15074 $as_echo "$pgac_cv_computed_goto" >&6; }
15075 if test x
"$pgac_cv_computed_goto" = xyes
; then
15077 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
15080 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
15084 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
15086 cat >>confdefs.h
<<_ACEOF
15087 #define HAVE_STRUCT_TM_TM_ZONE 1
15094 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
15095 #ifdef HAVE_SYS_IPC_H
15096 #include <sys/ipc.h>
15098 #ifdef HAVE_SYS_SEM_H
15099 #include <sys/sem.h>
15102 if test "x$ac_cv_type_union_semun" = xyes
; then :
15104 cat >>confdefs.h
<<_ACEOF
15105 #define HAVE_UNION_SEMUN 1
15111 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
15113 if test "x$ac_cv_type_socklen_t" = xyes
; then :
15115 cat >>confdefs.h
<<_ACEOF
15116 #define HAVE_SOCKLEN_T 1
15122 ac_fn_c_check_type
"$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
15123 #ifdef HAVE_SYS_UN_H
15124 #include <sys/un.h>
15128 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
; then :
15130 cat >>confdefs.h
<<_ACEOF
15131 #define HAVE_STRUCT_SOCKADDR_UN 1
15137 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
15138 #include <sys/socket.h>
15141 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
15143 cat >>confdefs.h
<<_ACEOF
15144 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15150 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
15151 #include <sys/socket.h>
15154 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
15156 cat >>confdefs.h
<<_ACEOF
15157 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15162 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
15163 #include <sys/socket.h>
15166 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
15168 cat >>confdefs.h
<<_ACEOF
15169 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15174 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
15175 #include <sys/socket.h>
15178 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
; then :
15180 cat >>confdefs.h
<<_ACEOF
15181 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15186 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
15187 #include <sys/socket.h>
15190 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes
; then :
15192 cat >>confdefs.h
<<_ACEOF
15193 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15198 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15199 #include <sys/socket.h>
15202 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
15204 cat >>confdefs.h
<<_ACEOF
15205 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15211 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
15212 #include <sys/socket.h>
15216 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
15218 cat >>confdefs.h
<<_ACEOF
15219 #define HAVE_STRUCT_ADDRINFO 1
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
15227 $as_echo_n "checking for locale_t... " >&6; }
15228 if ${pgac_cv_type_locale_t+:} false
; then :
15229 $as_echo_n "(cached) " >&6
15231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 #include <locale.h>
15243 if ac_fn_c_try_compile
"$LINENO"; then :
15244 pgac_cv_type_locale_t
=yes
15246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15248 #include <xlocale.h>
15258 if ac_fn_c_try_compile
"$LINENO"; then :
15259 pgac_cv_type_locale_t
='yes (in xlocale.h)'
15261 pgac_cv_type_locale_t
=no
15263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
15268 $as_echo "$pgac_cv_type_locale_t" >&6; }
15269 if test "$pgac_cv_type_locale_t" != no
; then
15271 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
15274 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
15276 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
15280 # MSVC doesn't cope well with defining restrict to __restrict, the
15281 # spelling it understands, because it conflicts with
15282 # __declspec(restrict). Therefore we define pg_restrict to the
15283 # appropriate definition, which presumably won't conflict.
15285 # Allow platforms with buggy compilers to force restrict to not be
15286 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15289 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15290 if ${ac_cv_c_restrict+:} false
; then :
15291 $as_echo_n "(cached) " >&6
15293 ac_cv_c_restrict
=no
15294 # The order here caters to the fact that C++ does not require restrict.
15295 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15297 /* end confdefs.h. */
15298 typedef int * int_ptr;
15299 int foo (int_ptr $ac_kw ip) {
15306 int * $ac_kw t = s;
15313 if ac_fn_c_try_compile
"$LINENO"; then :
15314 ac_cv_c_restrict
=$ac_kw
15316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15317 test "$ac_cv_c_restrict" != no
&& break
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15322 $as_echo "$ac_cv_c_restrict" >&6; }
15324 case $ac_cv_c_restrict in
15326 no
) $as_echo "#define restrict /**/" >>confdefs.h
15328 *) cat >>confdefs.h
<<_ACEOF
15329 #define restrict $ac_cv_c_restrict
15334 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
15337 pg_restrict
="$ac_cv_c_restrict"
15340 cat >>confdefs.h
<<_ACEOF
15341 #define pg_restrict $pg_restrict
15345 ac_fn_c_check_type
"$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
15346 #include <sys/param.h>
15347 #ifdef HAVE_SYS_UCRED_H
15348 #include <sys/ucred.h>
15351 if test "x$ac_cv_type_struct_cmsgcred" = xyes
; then :
15353 cat >>confdefs.h
<<_ACEOF
15354 #define HAVE_STRUCT_CMSGCRED 1
15361 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
15362 #include <getopt.h>
15365 if test "x$ac_cv_type_struct_option" = xyes
; then :
15367 cat >>confdefs.h
<<_ACEOF
15368 #define HAVE_STRUCT_OPTION 1
15375 if test "$with_zlib" = yes; then
15376 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15377 # did not). While we could work around the lack of z_streamp, it
15378 # seems unwise to encourage people to use such old zlib versions...
15379 ac_fn_c_check_type
"$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
15381 if test "x$ac_cv_type_z_streamp" = xyes
; then :
15384 as_fn_error $?
"zlib version is too old
15385 Use --without-zlib to disable zlib support." "$LINENO" 5
15392 # On x86_64, check if we can compile a popcntq instruction
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
15394 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
15395 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
15396 $as_echo_n "(cached) " >&6
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15404 long long x = 1; long long r;
15405 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
15410 if ac_fn_c_try_compile
"$LINENO"; then :
15411 pgac_cv_have_x86_64_popcntq
=yes
15413 pgac_cv_have_x86_64_popcntq
=no
15415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
15418 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
15419 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
15421 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
15426 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
15428 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
15429 if ${pgac_cv_have_ppc_mutex_hint+:} false
; then :
15430 $as_echo_n "(cached) " >&6
15432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15438 int a = 0; int *p = &a; int r;
15439 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
15444 if ac_fn_c_try_compile
"$LINENO"; then :
15445 pgac_cv_have_ppc_mutex_hint
=yes
15447 pgac_cv_have_ppc_mutex_hint
=no
15449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
15452 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
15453 if test x
"$pgac_cv_have_ppc_mutex_hint" = xyes
; then
15455 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
15458 # Check if compiler accepts "i"(x) when __builtin_constant_p(x).
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
15460 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
15461 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
15462 $as_echo_n "(cached) " >&6
15464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 addi(int ra, int si)
15470 if (__builtin_constant_p(si))
15471 __asm__ __volatile__(
15472 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
15475 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
15484 if ac_fn_c_try_compile
"$LINENO"; then :
15485 pgac_cv_have_i_constraint__builtin_constant_p
=yes
15487 pgac_cv_have_i_constraint__builtin_constant_p
=no
15489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
15492 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
15493 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
15495 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
15501 # Check largefile support. You might think this is a system service not a
15502 # compiler characteristic, but you'd be wrong. We must check this before
15503 # probing existence of related functions such as fseeko, since the largefile
15504 # defines can affect what is generated for that.
15505 if test "$PORTNAME" != "win32"; then
15506 # Check whether --enable-largefile was given.
15507 if test "${enable_largefile+set}" = set; then :
15508 enableval
=$enable_largefile;
15511 if test "$enable_largefile" != no
; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15514 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15515 if ${ac_cv_sys_largefile_CC+:} false
; then :
15516 $as_echo_n "(cached) " >&6
15518 ac_cv_sys_largefile_CC
=no
15519 if test "$GCC" != yes; then
15522 # IRIX 6.2 and later do not support large files by default,
15523 # so use the C compiler's -n32 option if that helps.
15524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <sys/types.h>
15527 /* Check that off_t can represent 2**63 - 1 correctly.
15528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15529 since some C++ compilers masquerading as C compilers
15530 incorrectly reject 9223372036854775807. */
15531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15533 && LARGE_OFF_T % 2147483647 == 1)
15543 if ac_fn_c_try_compile
"$LINENO"; then :
15546 rm -f core conftest.err conftest.
$ac_objext
15548 if ac_fn_c_try_compile
"$LINENO"; then :
15549 ac_cv_sys_largefile_CC
=' -n32'; break
15551 rm -f core conftest.err conftest.
$ac_objext
15555 rm -f conftest.
$ac_ext
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15559 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15560 if test "$ac_cv_sys_largefile_CC" != no
; then
15561 CC
=$CC$ac_cv_sys_largefile_CC
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15565 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15566 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15567 $as_echo_n "(cached) " >&6
15570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15572 #include <sys/types.h>
15573 /* Check that off_t can represent 2**63 - 1 correctly.
15574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15575 since some C++ compilers masquerading as C compilers
15576 incorrectly reject 9223372036854775807. */
15577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15579 && LARGE_OFF_T % 2147483647 == 1)
15589 if ac_fn_c_try_compile
"$LINENO"; then :
15590 ac_cv_sys_file_offset_bits
=no
; break
15592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595 #define _FILE_OFFSET_BITS 64
15596 #include <sys/types.h>
15597 /* Check that off_t can represent 2**63 - 1 correctly.
15598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15599 since some C++ compilers masquerading as C compilers
15600 incorrectly reject 9223372036854775807. */
15601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15603 && LARGE_OFF_T % 2147483647 == 1)
15613 if ac_fn_c_try_compile
"$LINENO"; then :
15614 ac_cv_sys_file_offset_bits
=64; break
15616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15617 ac_cv_sys_file_offset_bits
=unknown
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15622 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15623 case $ac_cv_sys_file_offset_bits in #(
15626 cat >>confdefs.h
<<_ACEOF
15627 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15632 if test $ac_cv_sys_file_offset_bits = unknown
; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15634 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15635 if ${ac_cv_sys_large_files+:} false
; then :
15636 $as_echo_n "(cached) " >&6
15639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 #include <sys/types.h>
15642 /* Check that off_t can represent 2**63 - 1 correctly.
15643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15644 since some C++ compilers masquerading as C compilers
15645 incorrectly reject 9223372036854775807. */
15646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15648 && LARGE_OFF_T % 2147483647 == 1)
15658 if ac_fn_c_try_compile
"$LINENO"; then :
15659 ac_cv_sys_large_files
=no
; break
15661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 #define _LARGE_FILES 1
15665 #include <sys/types.h>
15666 /* Check that off_t can represent 2**63 - 1 correctly.
15667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15668 since some C++ compilers masquerading as C compilers
15669 incorrectly reject 9223372036854775807. */
15670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15672 && LARGE_OFF_T % 2147483647 == 1)
15682 if ac_fn_c_try_compile
"$LINENO"; then :
15683 ac_cv_sys_large_files
=1; break
15685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15686 ac_cv_sys_large_files
=unknown
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15691 $as_echo "$ac_cv_sys_large_files" >&6; }
15692 case $ac_cv_sys_large_files in #(
15695 cat >>confdefs.h
<<_ACEOF
15696 #define _LARGE_FILES $ac_cv_sys_large_files
15709 # The cast to long int works around a bug in the HP C Compiler
15710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15712 # This bug is HP SR number 8606223364.
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15714 $as_echo_n "checking size of off_t... " >&6; }
15715 if ${ac_cv_sizeof_off_t+:} false
; then :
15716 $as_echo_n "(cached) " >&6
15718 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15721 if test "$ac_cv_type_off_t" = yes; then
15722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15724 as_fn_error
77 "cannot compute sizeof (off_t)
15725 See \`config.log' for more details" "$LINENO" 5; }
15727 ac_cv_sizeof_off_t
=0
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15733 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15737 cat >>confdefs.h
<<_ACEOF
15738 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15743 # If we don't have largefile support, can't handle segsize >= 2GB.
15744 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
15745 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15748 # The cast to long int works around a bug in the HP C Compiler
15749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15751 # This bug is HP SR number 8606223364.
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15753 $as_echo_n "checking size of bool... " >&6; }
15754 if ${ac_cv_sizeof_bool+:} false
; then :
15755 $as_echo_n "(cached) " >&6
15757 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15758 #include <stdbool.h>
15763 if test "$ac_cv_type_bool" = yes; then
15764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15766 as_fn_error
77 "cannot compute sizeof (bool)
15767 See \`config.log' for more details" "$LINENO" 5; }
15769 ac_cv_sizeof_bool
=0
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15775 $as_echo "$ac_cv_sizeof_bool" >&6; }
15779 cat >>confdefs.h
<<_ACEOF
15780 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15785 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
15787 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
15793 ## Functions, global variables
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15797 $as_echo_n "checking for int timezone... " >&6; }
15798 if ${pgac_cv_var_int_timezone+:} false
; then :
15799 $as_echo_n "(cached) " >&6
15801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15809 res = timezone / 60;
15811 res = _timezone / 60;
15817 if ac_fn_c_try_link
"$LINENO"; then :
15818 pgac_cv_var_int_timezone
=yes
15820 pgac_cv_var_int_timezone
=no
15822 rm -f core conftest.err conftest.
$ac_objext \
15823 conftest
$ac_exeext conftest.
$ac_ext
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15826 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15827 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15829 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15833 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15834 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15835 $as_echo_n "(cached) " >&6
15837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15839 #include <stdlib.h>
15840 #include <locale.h>
15851 if ac_fn_c_try_compile
"$LINENO"; then :
15852 pgac_cv_func_wcstombs_l
='yes'
15854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 #include <stdlib.h>
15857 #include <locale.h>
15858 #include <xlocale.h>
15869 if ac_fn_c_try_compile
"$LINENO"; then :
15870 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15872 pgac_cv_func_wcstombs_l
='no'
15874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15879 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15880 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15882 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15886 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15887 # symbols that that library has no business exposing to the world. Pending
15888 # acquisition of a clue by those developers, ignore libedit (including its
15889 # possible alias of libreadline) while checking for everything else.
15890 LIBS_including_readline
="$LIBS"
15891 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15893 for ac_func
in backtrace_symbols copyfile getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s posix_fallocate ppoll pthread_is_threaded_np setproctitle setproctitle_fast strchrnul strsignal syncfs sync_file_range uselocale wcstombs_l
15895 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15896 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15897 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15898 cat >>confdefs.h
<<_ACEOF
15899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15908 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15909 if ${pgac_cv__builtin_bswap16+:} false
; then :
15910 $as_echo_n "(cached) " >&6
15912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15916 call__builtin_bswap16(int x)
15918 return __builtin_bswap16(x);
15928 if ac_fn_c_try_link
"$LINENO"; then :
15929 pgac_cv__builtin_bswap16
=yes
15931 pgac_cv__builtin_bswap16
=no
15933 rm -f core conftest.err conftest.
$ac_objext \
15934 conftest
$ac_exeext conftest.
$ac_ext
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15937 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15938 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15940 cat >>confdefs.h
<<_ACEOF
15941 #define HAVE__BUILTIN_BSWAP16 1
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15946 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15947 if ${pgac_cv__builtin_bswap32+:} false
; then :
15948 $as_echo_n "(cached) " >&6
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15954 call__builtin_bswap32(int x)
15956 return __builtin_bswap32(x);
15966 if ac_fn_c_try_link
"$LINENO"; then :
15967 pgac_cv__builtin_bswap32
=yes
15969 pgac_cv__builtin_bswap32
=no
15971 rm -f core conftest.err conftest.
$ac_objext \
15972 conftest
$ac_exeext conftest.
$ac_ext
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15975 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15976 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15978 cat >>confdefs.h
<<_ACEOF
15979 #define HAVE__BUILTIN_BSWAP32 1
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15984 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15985 if ${pgac_cv__builtin_bswap64+:} false
; then :
15986 $as_echo_n "(cached) " >&6
15988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15992 call__builtin_bswap64(long int x)
15994 return __builtin_bswap64(x);
16004 if ac_fn_c_try_link
"$LINENO"; then :
16005 pgac_cv__builtin_bswap64
=yes
16007 pgac_cv__builtin_bswap64
=no
16009 rm -f core conftest.err conftest.
$ac_objext \
16010 conftest
$ac_exeext conftest.
$ac_ext
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
16013 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
16014 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
16016 cat >>confdefs.h
<<_ACEOF
16017 #define HAVE__BUILTIN_BSWAP64 1
16021 # We assume that we needn't test all widths of these explicitly:
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
16023 $as_echo_n "checking for __builtin_clz... " >&6; }
16024 if ${pgac_cv__builtin_clz+:} false
; then :
16025 $as_echo_n "(cached) " >&6
16027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16031 call__builtin_clz(unsigned int x)
16033 return __builtin_clz(x);
16043 if ac_fn_c_try_link
"$LINENO"; then :
16044 pgac_cv__builtin_clz
=yes
16046 pgac_cv__builtin_clz
=no
16048 rm -f core conftest.err conftest.
$ac_objext \
16049 conftest
$ac_exeext conftest.
$ac_ext
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
16052 $as_echo "$pgac_cv__builtin_clz" >&6; }
16053 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
16055 cat >>confdefs.h
<<_ACEOF
16056 #define HAVE__BUILTIN_CLZ 1
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
16061 $as_echo_n "checking for __builtin_ctz... " >&6; }
16062 if ${pgac_cv__builtin_ctz+:} false
; then :
16063 $as_echo_n "(cached) " >&6
16065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16069 call__builtin_ctz(unsigned int x)
16071 return __builtin_ctz(x);
16081 if ac_fn_c_try_link
"$LINENO"; then :
16082 pgac_cv__builtin_ctz
=yes
16084 pgac_cv__builtin_ctz
=no
16086 rm -f core conftest.err conftest.
$ac_objext \
16087 conftest
$ac_exeext conftest.
$ac_ext
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
16090 $as_echo "$pgac_cv__builtin_ctz" >&6; }
16091 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
16093 cat >>confdefs.h
<<_ACEOF
16094 #define HAVE__BUILTIN_CTZ 1
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
16099 $as_echo_n "checking for __builtin_popcount... " >&6; }
16100 if ${pgac_cv__builtin_popcount+:} false
; then :
16101 $as_echo_n "(cached) " >&6
16103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16107 call__builtin_popcount(unsigned int x)
16109 return __builtin_popcount(x);
16119 if ac_fn_c_try_link
"$LINENO"; then :
16120 pgac_cv__builtin_popcount
=yes
16122 pgac_cv__builtin_popcount
=no
16124 rm -f core conftest.err conftest.
$ac_objext \
16125 conftest
$ac_exeext conftest.
$ac_ext
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
16128 $as_echo "$pgac_cv__builtin_popcount" >&6; }
16129 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
16131 cat >>confdefs.h
<<_ACEOF
16132 #define HAVE__BUILTIN_POPCOUNT 1
16136 # __builtin_frame_address may draw a diagnostic for non-constant argument,
16137 # so it needs a different test function.
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
16139 $as_echo_n "checking for __builtin_frame_address... " >&6; }
16140 if ${pgac_cv__builtin_frame_address+:} false
; then :
16141 $as_echo_n "(cached) " >&6
16143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16147 call__builtin_frame_address(void)
16149 return __builtin_frame_address(0);
16159 if ac_fn_c_try_link
"$LINENO"; then :
16160 pgac_cv__builtin_frame_address
=yes
16162 pgac_cv__builtin_frame_address
=no
16164 rm -f core conftest.err conftest.
$ac_objext \
16165 conftest
$ac_exeext conftest.
$ac_ext
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
16168 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
16169 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
16171 cat >>confdefs.h
<<_ACEOF
16172 #define HAVE__BUILTIN_FRAME_ADDRESS 1
16177 # We require 64-bit fseeko() to be available, but run this check anyway
16178 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16180 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16181 if ${ac_cv_sys_largefile_source+:} false
; then :
16182 $as_echo_n "(cached) " >&6
16185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 #include <sys/types.h> /* for off_t */
16192 int (*fp) (FILE *, off_t, int) = fseeko;
16193 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16198 if ac_fn_c_try_link
"$LINENO"; then :
16199 ac_cv_sys_largefile_source
=no
; break
16201 rm -f core conftest.err conftest.
$ac_objext \
16202 conftest
$ac_exeext conftest.
$ac_ext
16203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #define _LARGEFILE_SOURCE 1
16206 #include <sys/types.h> /* for off_t */
16211 int (*fp) (FILE *, off_t, int) = fseeko;
16212 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16217 if ac_fn_c_try_link
"$LINENO"; then :
16218 ac_cv_sys_largefile_source
=1; break
16220 rm -f core conftest.err conftest.
$ac_objext \
16221 conftest
$ac_exeext conftest.
$ac_ext
16222 ac_cv_sys_largefile_source
=unknown
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16227 $as_echo "$ac_cv_sys_largefile_source" >&6; }
16228 case $ac_cv_sys_largefile_source in #(
16231 cat >>confdefs.h
<<_ACEOF
16232 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16238 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16239 # in glibc 2.1.3, but that breaks too many other things.
16240 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16241 if test $ac_cv_sys_largefile_source != unknown
; then
16243 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16248 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16249 # by calling it, 2009-04-02
16250 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16251 # The Clang compiler raises a warning for an undeclared identifier that matches
16252 # a compiler builtin function. All extant Clang versions are affected, as of
16253 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
16254 # C and Objective C languages, but Clang does report an error under C++ and
16257 # Passing -fno-builtin to the compiler would suppress this problem. That
16258 # strategy would have the advantage of being insensitive to stray warnings, but
16259 # it would make tests less realistic.
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
16261 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
16262 if ${ac_cv_c_decl_report+:} false
; then :
16263 $as_echo_n "(cached) " >&6
16265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16276 if ac_fn_c_try_compile
"$LINENO"; then :
16277 if test -s conftest.err
; then :
16278 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
16279 # valid AC_CHECK_DECL input. No library function is consistently available
16280 # on freestanding implementations, so test against a dummy declaration.
16281 # Include always-available headers on the off chance that they somehow
16283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16286 #include <limits.h>
16287 #include <stdarg.h>
16288 #include <stddef.h>
16289 extern void ac_decl (int, char *);
16294 (void) ac_decl ((int) 0, (char *) 0);
16304 if ac_fn_c_try_compile
"$LINENO"; then :
16305 if test -s conftest.err
; then :
16306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16308 as_fn_error $?
"cannot detect from compiler exit status or warnings
16309 See \`config.log' for more details" "$LINENO" 5; }
16311 ac_cv_c_decl_report
=warning
16314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16316 as_fn_error $?
"cannot compile a simple declaration test
16317 See \`config.log' for more details" "$LINENO" 5; }
16319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16323 as_fn_error $?
"compiler does not report undeclared identifiers
16324 See \`config.log' for more details" "$LINENO" 5; }
16327 ac_cv_c_decl_report
=error
16329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
16332 $as_echo "$ac_cv_c_decl_report" >&6; }
16334 case $ac_cv_c_decl_report in
16335 warning
) ac_c_decl_warn_flag
=yes ;;
16336 *) ac_c_decl_warn_flag
= ;;
16339 if test "$PORTNAME" != "solaris"; then :
16341 for ac_func
in posix_fadvise
16343 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
16344 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
16345 cat >>confdefs.h
<<_ACEOF
16346 #define HAVE_POSIX_FADVISE 1
16352 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
16354 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
16360 cat >>confdefs.h
<<_ACEOF
16361 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
16367 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
16369 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
16375 cat >>confdefs.h
<<_ACEOF
16376 #define HAVE_DECL_FDATASYNC $ac_have_decl
16379 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16380 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
16386 cat >>confdefs.h
<<_ACEOF
16387 #define HAVE_DECL_STRLCAT $ac_have_decl
16389 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16390 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
16396 cat >>confdefs.h
<<_ACEOF
16397 #define HAVE_DECL_STRLCPY $ac_have_decl
16399 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16400 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16406 cat >>confdefs.h
<<_ACEOF
16407 #define HAVE_DECL_STRNLEN $ac_have_decl
16411 # We can't use AC_REPLACE_FUNCS to replace these functions, because it
16412 # won't handle deployment target restrictions on macOS
16413 ac_fn_c_check_decl
"$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
16415 if test "x$ac_cv_have_decl_preadv" = xyes
; then :
16421 cat >>confdefs.h
<<_ACEOF
16422 #define HAVE_DECL_PREADV $ac_have_decl
16424 if test $ac_have_decl = 1; then :
16427 case " $LIBOBJS " in
16428 *" preadv.$ac_objext "* ) ;;
16429 *) LIBOBJS
="$LIBOBJS preadv.$ac_objext"
16435 ac_fn_c_check_decl
"$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
16437 if test "x$ac_cv_have_decl_pwritev" = xyes
; then :
16443 cat >>confdefs.h
<<_ACEOF
16444 #define HAVE_DECL_PWRITEV $ac_have_decl
16446 if test $ac_have_decl = 1; then :
16449 case " $LIBOBJS " in
16450 *" pwritev.$ac_objext "* ) ;;
16451 *) LIBOBJS
="$LIBOBJS pwritev.$ac_objext"
16458 # This is probably only present on macOS, but may as well check always
16459 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
16461 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
16467 cat >>confdefs.h
<<_ACEOF
16468 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
16472 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
16473 #include <netinet/in.h>
16475 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
16477 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
16483 $as_echo_n "checking for PS_STRINGS... " >&6; }
16484 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
16485 $as_echo_n "(cached) " >&6
16487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16489 #include <machine/vmparam.h>
16490 #include <sys/exec.h>
16495 PS_STRINGS->ps_nargvstr = 1;
16496 PS_STRINGS->ps_argvstr = "foo";
16501 if ac_fn_c_try_link
"$LINENO"; then :
16502 pgac_cv_var_PS_STRINGS
=yes
16504 pgac_cv_var_PS_STRINGS
=no
16506 rm -f core conftest.err conftest.
$ac_objext \
16507 conftest
$ac_exeext conftest.
$ac_ext
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
16510 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
16511 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16513 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
16517 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
16518 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
16519 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
16522 case " $LIBOBJS " in
16523 *" explicit_bzero.$ac_objext "* ) ;;
16524 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
16530 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
16531 if test "x$ac_cv_func_getopt" = xyes
; then :
16532 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
16535 case " $LIBOBJS " in
16536 *" getopt.$ac_objext "* ) ;;
16537 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16543 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16544 if test "x$ac_cv_func_getpeereid" = xyes
; then :
16545 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16548 case " $LIBOBJS " in
16549 *" getpeereid.$ac_objext "* ) ;;
16550 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
16556 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16557 if test "x$ac_cv_func_inet_aton" = xyes
; then :
16558 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16561 case " $LIBOBJS " in
16562 *" inet_aton.$ac_objext "* ) ;;
16563 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
16569 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16570 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
16571 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
16574 case " $LIBOBJS " in
16575 *" mkdtemp.$ac_objext "* ) ;;
16576 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
16582 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
16583 if test "x$ac_cv_func_strlcat" = xyes
; then :
16584 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16587 case " $LIBOBJS " in
16588 *" strlcat.$ac_objext "* ) ;;
16589 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
16595 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16596 if test "x$ac_cv_func_strlcpy" = xyes
; then :
16597 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16600 case " $LIBOBJS " in
16601 *" strlcpy.$ac_objext "* ) ;;
16602 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
16608 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
16609 if test "x$ac_cv_func_strnlen" = xyes
; then :
16610 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16613 case " $LIBOBJS " in
16614 *" strnlen.$ac_objext "* ) ;;
16615 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
16623 if test "$enable_thread_safety" = yes; then
16624 ac_fn_c_check_func
"$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
16625 if test "x$ac_cv_func_pthread_barrier_wait" = xyes
; then :
16626 $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
16629 case " $LIBOBJS " in
16630 *" pthread_barrier_wait.$ac_objext "* ) ;;
16631 *) LIBOBJS
="$LIBOBJS pthread_barrier_wait.$ac_objext"
16640 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
16641 # Cygwin and (apparently, based on test results) Mingw both
16642 # have a broken strtof(), so substitute its implementation.
16643 # That's not a perfect fix, since it doesn't avoid double-rounding,
16644 # but we have no better options.
16645 case " $LIBOBJS " in
16646 *" strtof.$ac_objext "* ) ;;
16647 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
16652 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
16655 # System's version of getaddrinfo(), if any, may be used only if we found
16656 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16657 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
16658 if test x
"$ac_cv_type_struct_addrinfo" = xyes
&& \
16659 test "$PORTNAME" != "win32"; then
16660 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16661 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
16662 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16665 case " $LIBOBJS " in
16666 *" getaddrinfo.$ac_objext "* ) ;;
16667 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
16675 case " $LIBOBJS " in
16676 *" getaddrinfo.$ac_objext "* ) ;;
16677 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
16683 # Similarly, use system's getopt_long() only if system provides struct option.
16684 if test x
"$ac_cv_type_struct_option" = xyes
; then
16685 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
16686 if test "x$ac_cv_func_getopt_long" = xyes
; then :
16687 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16690 case " $LIBOBJS " in
16691 *" getopt_long.$ac_objext "* ) ;;
16692 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16700 case " $LIBOBJS " in
16701 *" getopt_long.$ac_objext "* ) ;;
16702 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16708 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
16709 # (i.e., allow '-' as a flag character), so use our version on those platforms.
16710 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
16711 case " $LIBOBJS " in
16712 *" getopt.$ac_objext "* ) ;;
16713 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16719 # mingw has adopted a GNU-centric interpretation of optind/optreset,
16720 # so always use our version on Windows.
16721 if test "$PORTNAME" = "win32"; then
16722 case " $LIBOBJS " in
16723 *" getopt.$ac_objext "* ) ;;
16724 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16728 case " $LIBOBJS " in
16729 *" getopt_long.$ac_objext "* ) ;;
16730 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16736 # Win32 (really MinGW) support
16737 if test "$PORTNAME" = "win32"; then
16738 for ac_func
in _configthreadlocale
16740 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16741 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16742 cat >>confdefs.h
<<_ACEOF
16743 #define HAVE__CONFIGTHREADLOCALE 1
16749 case " $LIBOBJS " in
16750 *" dirmod.$ac_objext "* ) ;;
16751 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16755 case " $LIBOBJS " in
16756 *" getrusage.$ac_objext "* ) ;;
16757 *) LIBOBJS
="$LIBOBJS getrusage.$ac_objext"
16761 case " $LIBOBJS " in
16762 *" kill.$ac_objext "* ) ;;
16763 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16767 case " $LIBOBJS " in
16768 *" open.$ac_objext "* ) ;;
16769 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16773 case " $LIBOBJS " in
16774 *" system.$ac_objext "* ) ;;
16775 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16779 case " $LIBOBJS " in
16780 *" win32dlopen.$ac_objext "* ) ;;
16781 *) LIBOBJS
="$LIBOBJS win32dlopen.$ac_objext"
16785 case " $LIBOBJS " in
16786 *" win32env.$ac_objext "* ) ;;
16787 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16791 case " $LIBOBJS " in
16792 *" win32error.$ac_objext "* ) ;;
16793 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16797 case " $LIBOBJS " in
16798 *" win32fdatasync.$ac_objext "* ) ;;
16799 *) LIBOBJS
="$LIBOBJS win32fdatasync.$ac_objext"
16803 case " $LIBOBJS " in
16804 *" win32link.$ac_objext "* ) ;;
16805 *) LIBOBJS
="$LIBOBJS win32link.$ac_objext"
16809 case " $LIBOBJS " in
16810 *" win32ntdll.$ac_objext "* ) ;;
16811 *) LIBOBJS
="$LIBOBJS win32ntdll.$ac_objext"
16815 case " $LIBOBJS " in
16816 *" win32pread.$ac_objext "* ) ;;
16817 *) LIBOBJS
="$LIBOBJS win32pread.$ac_objext"
16821 case " $LIBOBJS " in
16822 *" win32pwrite.$ac_objext "* ) ;;
16823 *) LIBOBJS
="$LIBOBJS win32pwrite.$ac_objext"
16827 case " $LIBOBJS " in
16828 *" win32security.$ac_objext "* ) ;;
16829 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16833 case " $LIBOBJS " in
16834 *" win32setlocale.$ac_objext "* ) ;;
16835 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16839 case " $LIBOBJS " in
16840 *" win32stat.$ac_objext "* ) ;;
16841 *) LIBOBJS
="$LIBOBJS win32stat.$ac_objext"
16846 # Cygwin needs only a bit of that
16847 if test "$PORTNAME" = "cygwin"; then
16848 case " $LIBOBJS " in
16849 *" dirmod.$ac_objext "* ) ;;
16850 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16856 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16857 if test "x$ac_cv_func_syslog" = xyes
; then :
16858 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16859 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16861 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16870 $as_echo_n "checking for opterr... " >&6; }
16871 if ${pgac_cv_var_int_opterr+:} false
; then :
16872 $as_echo_n "(cached) " >&6
16874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16876 #include <unistd.h>
16880 extern int opterr; opterr = 1;
16885 if ac_fn_c_try_link
"$LINENO"; then :
16886 pgac_cv_var_int_opterr
=yes
16888 pgac_cv_var_int_opterr
=no
16890 rm -f core conftest.err conftest.
$ac_objext \
16891 conftest
$ac_exeext conftest.
$ac_ext
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16894 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16895 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16897 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16902 $as_echo_n "checking for optreset... " >&6; }
16903 if ${pgac_cv_var_int_optreset+:} false
; then :
16904 $as_echo_n "(cached) " >&6
16906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16907 /* end confdefs.h. */
16908 #include <unistd.h>
16912 extern int optreset; optreset = 1;
16917 if ac_fn_c_try_link
"$LINENO"; then :
16918 pgac_cv_var_int_optreset
=yes
16920 pgac_cv_var_int_optreset
=no
16922 rm -f core conftest.err conftest.
$ac_objext \
16923 conftest
$ac_exeext conftest.
$ac_ext
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16926 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16927 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16929 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16933 if test "$with_icu" = yes; then
16934 ac_save_CPPFLAGS
=$CPPFLAGS
16935 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16937 # Verify we have ICU's header files
16938 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16939 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16942 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16947 CPPFLAGS
=$ac_save_CPPFLAGS
16950 if test "$with_llvm" = yes; then
16952 # Check which functionality is present
16953 SAVE_CPPFLAGS
="$CPPFLAGS"
16954 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16955 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
16957 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
16963 cat >>confdefs.h
<<_ACEOF
16964 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
16967 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
16969 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
16975 cat >>confdefs.h
<<_ACEOF
16976 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
16978 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
16980 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
16986 cat >>confdefs.h
<<_ACEOF
16987 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
16990 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16992 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16998 cat >>confdefs.h
<<_ACEOF
16999 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
17001 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
17003 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
17009 cat >>confdefs.h
<<_ACEOF
17010 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
17013 CPPFLAGS
="$SAVE_CPPFLAGS"
17017 # Lastly, restore full LIBS list and check for readline/libedit symbols
17018 LIBS
="$LIBS_including_readline"
17020 if test "$with_readline" = yes; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
17022 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
17023 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
17024 $as_echo_n "(cached) " >&6
17026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17029 #if defined(HAVE_READLINE_READLINE_H)
17030 #include <readline/readline.h>
17031 #elif defined(HAVE_EDITLINE_READLINE_H)
17032 #include <editline/readline.h>
17033 #elif defined(HAVE_READLINE_H)
17034 #include <readline.h>
17040 rl_completion_suppress_quote = 1;
17045 if ac_fn_c_try_link
"$LINENO"; then :
17046 pgac_cv_var_rl_completion_suppress_quote
=yes
17048 pgac_cv_var_rl_completion_suppress_quote
=no
17050 rm -f core conftest.err conftest.
$ac_objext \
17051 conftest
$ac_exeext conftest.
$ac_ext
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
17054 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
17055 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
17057 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
17061 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
17062 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
17063 $as_echo_n "(cached) " >&6
17065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17068 #if defined(HAVE_READLINE_READLINE_H)
17069 #include <readline/readline.h>
17070 #elif defined(HAVE_EDITLINE_READLINE_H)
17071 #include <editline/readline.h>
17072 #elif defined(HAVE_READLINE_H)
17073 #include <readline.h>
17079 rl_filename_quote_characters = "x";
17084 if ac_fn_c_try_link
"$LINENO"; then :
17085 pgac_cv_var_rl_filename_quote_characters
=yes
17087 pgac_cv_var_rl_filename_quote_characters
=no
17089 rm -f core conftest.err conftest.
$ac_objext \
17090 conftest
$ac_exeext conftest.
$ac_ext
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
17093 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
17094 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
17096 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
17100 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
17101 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
17102 $as_echo_n "(cached) " >&6
17104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17107 #if defined(HAVE_READLINE_READLINE_H)
17108 #include <readline/readline.h>
17109 #elif defined(HAVE_EDITLINE_READLINE_H)
17110 #include <editline/readline.h>
17111 #elif defined(HAVE_READLINE_H)
17112 #include <readline.h>
17118 rl_filename_quoting_function = 0;
17123 if ac_fn_c_try_link
"$LINENO"; then :
17124 pgac_cv_var_rl_filename_quoting_function
=yes
17126 pgac_cv_var_rl_filename_quoting_function
=no
17128 rm -f core conftest.err conftest.
$ac_objext \
17129 conftest
$ac_exeext conftest.
$ac_ext
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
17132 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
17133 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
17135 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
17139 for ac_func
in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
17141 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17142 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17143 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17144 cat >>confdefs.h
<<_ACEOF
17145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17154 # This test makes sure that run tests work at all. Sometimes a shared
17155 # library is found by the linker, but the runtime linker can't find it.
17156 # This check should come after all modifications of compiler or linker
17157 # variables, and before any other run tests.
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
17159 $as_echo_n "checking test program... " >&6; }
17160 if test "$cross_compiling" = yes; then :
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
17162 $as_echo "cross-compiling" >&6; }
17164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166 int main() { return 0; }
17168 if ac_fn_c_try_run
"$LINENO"; then :
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17170 $as_echo "ok" >&6; }
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17173 $as_echo "failed" >&6; }
17175 Could not execute a simple test program. This may be a problem
17176 related to locating shared libraries. Check the file 'config.log'
17177 for the exact reason." "$LINENO" 5
17179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17180 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17184 # --------------------
17185 # Run tests below here
17186 # --------------------
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
17190 $as_echo_n "checking whether long int is 64 bits... " >&6; }
17191 if ${pgac_cv_type_long_int_64+:} false
; then :
17192 $as_echo_n "(cached) " >&6
17194 if test "$cross_compiling" = yes; then :
17195 # If cross-compiling, check the size reported by the compiler and
17196 # trust that the arithmetic works.
17197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17203 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17204 test_array [0] = 0;
17205 return test_array [0];
17211 if ac_fn_c_try_compile
"$LINENO"; then :
17212 pgac_cv_type_long_int_64
=yes
17214 pgac_cv_type_long_int_64
=no
17216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 typedef long int ac_int64;
17223 * These are globals to discourage the compiler from folding all the
17224 * arithmetic tests down to compile-time constants.
17226 ac_int64 a = 20000001;
17227 ac_int64 b = 40000005;
17229 int does_int64_work()
17233 if (sizeof(ac_int64) != 8)
17234 return 0; /* definitely not the right size */
17236 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17246 return (! does_int64_work());
17249 if ac_fn_c_try_run
"$LINENO"; then :
17250 pgac_cv_type_long_int_64
=yes
17252 pgac_cv_type_long_int_64
=no
17254 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17255 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
17260 $as_echo "$pgac_cv_type_long_int_64" >&6; }
17262 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
17263 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
17265 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
17270 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
17271 pg_int64_type
="long int"
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
17274 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
17275 if ${pgac_cv_type_long_long_int_64+:} false
; then :
17276 $as_echo_n "(cached) " >&6
17278 if test "$cross_compiling" = yes; then :
17279 # If cross-compiling, check the size reported by the compiler and
17280 # trust that the arithmetic works.
17281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17287 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17288 test_array [0] = 0;
17289 return test_array [0];
17295 if ac_fn_c_try_compile
"$LINENO"; then :
17296 pgac_cv_type_long_long_int_64
=yes
17298 pgac_cv_type_long_long_int_64
=no
17300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17304 typedef long long int ac_int64;
17307 * These are globals to discourage the compiler from folding all the
17308 * arithmetic tests down to compile-time constants.
17310 ac_int64 a = 20000001;
17311 ac_int64 b = 40000005;
17313 int does_int64_work()
17317 if (sizeof(ac_int64) != 8)
17318 return 0; /* definitely not the right size */
17320 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17330 return (! does_int64_work());
17333 if ac_fn_c_try_run
"$LINENO"; then :
17334 pgac_cv_type_long_long_int_64
=yes
17336 pgac_cv_type_long_long_int_64
=no
17338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
17344 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
17346 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
17347 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
17349 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
17353 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17354 pg_int64_type
="long long int"
17356 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
17361 cat >>confdefs.h
<<_ACEOF
17362 #define PG_INT64_TYPE $pg_int64_type
17366 # Select the printf length modifier that goes with that, too.
17367 if test x
"$pg_int64_type" = x
"long long int" ; then
17368 INT64_MODIFIER
='"ll"'
17370 INT64_MODIFIER
='"l"'
17374 cat >>confdefs.h
<<_ACEOF
17375 #define INT64_MODIFIER $INT64_MODIFIER
17379 # has to be down here, rather than with the other builtins, because
17380 # the test uses PG_INT64_TYPE.
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
17382 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
17383 if ${pgac_cv__builtin_op_overflow+:} false
; then :
17384 $as_echo_n "(cached) " >&6
17386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17389 PG_INT64_TYPE a = 1;
17390 PG_INT64_TYPE b = 1;
17391 PG_INT64_TYPE result;
17397 oflo = __builtin_mul_overflow(a, b, &result);
17402 if ac_fn_c_try_link
"$LINENO"; then :
17403 pgac_cv__builtin_op_overflow
=yes
17405 pgac_cv__builtin_op_overflow
=no
17407 rm -f core conftest.err conftest.
$ac_objext \
17408 conftest
$ac_exeext conftest.
$ac_ext
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
17411 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
17412 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
17414 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
17418 # Check size of void *, size_t (enables tweaks for > 32bit address space)
17419 # The cast to long int works around a bug in the HP C Compiler
17420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17422 # This bug is HP SR number 8606223364.
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17424 $as_echo_n "checking size of void *... " >&6; }
17425 if ${ac_cv_sizeof_void_p+:} false
; then :
17426 $as_echo_n "(cached) " >&6
17428 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17431 if test "$ac_cv_type_void_p" = yes; then
17432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17434 as_fn_error
77 "cannot compute sizeof (void *)
17435 See \`config.log' for more details" "$LINENO" 5; }
17437 ac_cv_sizeof_void_p
=0
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17443 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17447 cat >>confdefs.h
<<_ACEOF
17448 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17452 # The cast to long int works around a bug in the HP C Compiler
17453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17455 # This bug is HP SR number 8606223364.
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17457 $as_echo_n "checking size of size_t... " >&6; }
17458 if ${ac_cv_sizeof_size_t+:} false
; then :
17459 $as_echo_n "(cached) " >&6
17461 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17464 if test "$ac_cv_type_size_t" = yes; then
17465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17467 as_fn_error
77 "cannot compute sizeof (size_t)
17468 See \`config.log' for more details" "$LINENO" 5; }
17470 ac_cv_sizeof_size_t
=0
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17476 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17480 cat >>confdefs.h
<<_ACEOF
17481 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17485 # The cast to long int works around a bug in the HP C Compiler
17486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17488 # This bug is HP SR number 8606223364.
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17490 $as_echo_n "checking size of long... " >&6; }
17491 if ${ac_cv_sizeof_long+:} false
; then :
17492 $as_echo_n "(cached) " >&6
17494 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17497 if test "$ac_cv_type_long" = yes; then
17498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17500 as_fn_error
77 "cannot compute sizeof (long)
17501 See \`config.log' for more details" "$LINENO" 5; }
17503 ac_cv_sizeof_long
=0
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17509 $as_echo "$ac_cv_sizeof_long" >&6; }
17513 cat >>confdefs.h
<<_ACEOF
17514 #define SIZEOF_LONG $ac_cv_sizeof_long
17519 # Determine memory alignment requirements for the basic C data types.
17521 # The cast to long int works around a bug in the HP C Compiler,
17522 # see AC_CHECK_SIZEOF for more information.
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
17524 $as_echo_n "checking alignment of short... " >&6; }
17525 if ${ac_cv_alignof_short+:} false
; then :
17526 $as_echo_n "(cached) " >&6
17528 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
17530 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17532 typedef struct { char x; short y; } ac__type_alignof_;"; then :
17535 if test "$ac_cv_type_short" = yes; then
17536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17538 as_fn_error
77 "cannot compute alignment of short
17539 See \`config.log' for more details" "$LINENO" 5; }
17541 ac_cv_alignof_short
=0
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
17547 $as_echo "$ac_cv_alignof_short" >&6; }
17551 cat >>confdefs.h
<<_ACEOF
17552 #define ALIGNOF_SHORT $ac_cv_alignof_short
17556 # The cast to long int works around a bug in the HP C Compiler,
17557 # see AC_CHECK_SIZEOF for more information.
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
17559 $as_echo_n "checking alignment of int... " >&6; }
17560 if ${ac_cv_alignof_int+:} false
; then :
17561 $as_echo_n "(cached) " >&6
17563 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
17565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17567 typedef struct { char x; int y; } ac__type_alignof_;"; then :
17570 if test "$ac_cv_type_int" = yes; then
17571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17573 as_fn_error
77 "cannot compute alignment of int
17574 See \`config.log' for more details" "$LINENO" 5; }
17576 ac_cv_alignof_int
=0
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
17582 $as_echo "$ac_cv_alignof_int" >&6; }
17586 cat >>confdefs.h
<<_ACEOF
17587 #define ALIGNOF_INT $ac_cv_alignof_int
17591 # The cast to long int works around a bug in the HP C Compiler,
17592 # see AC_CHECK_SIZEOF for more information.
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
17594 $as_echo_n "checking alignment of long... " >&6; }
17595 if ${ac_cv_alignof_long+:} false
; then :
17596 $as_echo_n "(cached) " >&6
17598 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
17600 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17602 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17605 if test "$ac_cv_type_long" = yes; then
17606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17608 as_fn_error
77 "cannot compute alignment of long
17609 See \`config.log' for more details" "$LINENO" 5; }
17611 ac_cv_alignof_long
=0
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17617 $as_echo "$ac_cv_alignof_long" >&6; }
17621 cat >>confdefs.h
<<_ACEOF
17622 #define ALIGNOF_LONG $ac_cv_alignof_long
17626 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17627 # The cast to long int works around a bug in the HP C Compiler,
17628 # see AC_CHECK_SIZEOF for more information.
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
17630 $as_echo_n "checking alignment of long long int... " >&6; }
17631 if ${ac_cv_alignof_long_long_int+:} false
; then :
17632 $as_echo_n "(cached) " >&6
17634 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
17636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17638 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
17641 if test "$ac_cv_type_long_long_int" = yes; then
17642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17644 as_fn_error
77 "cannot compute alignment of long long int
17645 See \`config.log' for more details" "$LINENO" 5; }
17647 ac_cv_alignof_long_long_int
=0
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
17653 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
17657 cat >>confdefs.h
<<_ACEOF
17658 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
17663 # The cast to long int works around a bug in the HP C Compiler,
17664 # see AC_CHECK_SIZEOF for more information.
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17666 $as_echo_n "checking alignment of double... " >&6; }
17667 if ${ac_cv_alignof_double+:} false
; then :
17668 $as_echo_n "(cached) " >&6
17670 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17674 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17677 if test "$ac_cv_type_double" = yes; then
17678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17680 as_fn_error
77 "cannot compute alignment of double
17681 See \`config.log' for more details" "$LINENO" 5; }
17683 ac_cv_alignof_double
=0
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
17689 $as_echo "$ac_cv_alignof_double" >&6; }
17693 cat >>confdefs.h
<<_ACEOF
17694 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
17699 # Compute maximum alignment of any basic type.
17700 # We assume long's alignment is at least as strong as char, short, or int;
17701 # but we must check long long (if it is being used for int64) and double.
17702 # Note that we intentionally do not consider any types wider than 64 bits,
17703 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
17704 # for disk and memory space.
17706 MAX_ALIGNOF
=$ac_cv_alignof_long
17707 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
17708 MAX_ALIGNOF
=$ac_cv_alignof_double
17710 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
17711 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
17714 cat >>confdefs.h
<<_ACEOF
17715 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17720 # Some platforms predefine the types int8, int16, etc. Only check
17721 # a (hopefully) representative subset.
17722 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
17724 if test "x$ac_cv_type_int8" = xyes
; then :
17726 cat >>confdefs.h
<<_ACEOF
17727 #define HAVE_INT8 1
17732 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
17734 if test "x$ac_cv_type_uint8" = xyes
; then :
17736 cat >>confdefs.h
<<_ACEOF
17737 #define HAVE_UINT8 1
17742 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17744 if test "x$ac_cv_type_int64" = xyes
; then :
17746 cat >>confdefs.h
<<_ACEOF
17747 #define HAVE_INT64 1
17752 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17754 if test "x$ac_cv_type_uint64" = xyes
; then :
17756 cat >>confdefs.h
<<_ACEOF
17757 #define HAVE_UINT64 1
17764 # Some compilers offer a 128-bit integer scalar type.
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17766 $as_echo_n "checking for __int128... " >&6; }
17767 if ${pgac_cv__128bit_int+:} false
; then :
17768 $as_echo_n "(cached) " >&6
17770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17774 * We don't actually run this test, just link it to verify that any support
17775 * functions needed for __int128 are present.
17777 * These are globals to discourage the compiler from folding all the
17778 * arithmetic tests down to compile-time constants. We do not have
17779 * convenient support for 128bit literals at this point...
17781 __int128 a = 48828125;
17782 __int128 b = 97656250;
17789 a = (a << 12) + 1; /* 200000000001 */
17790 b = (b << 12) + 5; /* 400000000005 */
17791 /* try the most relevant arithmetic ops */
17794 /* must use the results, else compiler may optimize arithmetic away */
17802 if ac_fn_c_try_link
"$LINENO"; then :
17803 pgac_cv__128bit_int
=yes
17805 pgac_cv__128bit_int
=no
17807 rm -f core conftest.err conftest.
$ac_objext \
17808 conftest
$ac_exeext conftest.
$ac_ext
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17811 $as_echo "$pgac_cv__128bit_int" >&6; }
17812 if test x
"$pgac_cv__128bit_int" = xyes
; then
17813 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17814 # If not cross-compiling, we can test for bugs and disable use of __int128
17815 # with buggy compilers. If cross-compiling, hope for the best.
17816 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17818 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17819 if ${pgac_cv__128bit_int_bug+:} false
; then :
17820 $as_echo_n "(cached) " >&6
17822 if test "$cross_compiling" = yes; then :
17823 pgac_cv__128bit_int_bug
="assuming ok"
17825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17828 /* This must match the corresponding code in c.h: */
17829 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17830 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17832 typedef __int128 int128a
17833 #if defined(pg_attribute_aligned)
17834 pg_attribute_aligned(8)
17838 void pass_by_val(void *buffer, int128a par) { holder = par; }
17844 long int i64 = 97656225L << 12;
17846 pass_by_val(main, (int128a) i64);
17855 if ac_fn_c_try_run
"$LINENO"; then :
17856 pgac_cv__128bit_int_bug
=ok
17858 pgac_cv__128bit_int_bug
=broken
17860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17866 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17867 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17869 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17871 # The cast to long int works around a bug in the HP C Compiler,
17872 # see AC_CHECK_SIZEOF for more information.
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17874 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17875 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17876 $as_echo_n "(cached) " >&6
17878 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17880 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17882 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17885 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17888 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17889 See \`config.log' for more details" "$LINENO" 5; }
17891 ac_cv_alignof_PG_INT128_TYPE
=0
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17897 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17901 cat >>confdefs.h
<<_ACEOF
17902 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17909 # Check for various atomic operations now that we have checked how to declare
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17912 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17913 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17914 $as_echo_n "(cached) " >&6
17916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17917 /* end confdefs.h. */
17923 __sync_lock_test_and_set(&lock, 1);
17924 __sync_lock_release(&lock);
17929 if ac_fn_c_try_link
"$LINENO"; then :
17930 pgac_cv_gcc_sync_char_tas
="yes"
17932 pgac_cv_gcc_sync_char_tas
="no"
17934 rm -f core conftest.err conftest.
$ac_objext \
17935 conftest
$ac_exeext conftest.
$ac_ext
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17938 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17939 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17941 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17945 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17946 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17947 $as_echo_n "(cached) " >&6
17949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17956 __sync_lock_test_and_set(&lock, 1);
17957 __sync_lock_release(&lock);
17962 if ac_fn_c_try_link
"$LINENO"; then :
17963 pgac_cv_gcc_sync_int32_tas
="yes"
17965 pgac_cv_gcc_sync_int32_tas
="no"
17967 rm -f core conftest.err conftest.
$ac_objext \
17968 conftest
$ac_exeext conftest.
$ac_ext
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17971 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17972 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17974 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17978 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17979 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17980 $as_echo_n "(cached) " >&6
17982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17989 __sync_val_compare_and_swap(&val, 0, 37);
17994 if ac_fn_c_try_link
"$LINENO"; then :
17995 pgac_cv_gcc_sync_int32_cas
="yes"
17997 pgac_cv_gcc_sync_int32_cas
="no"
17999 rm -f core conftest.err conftest.
$ac_objext \
18000 conftest
$ac_exeext conftest.
$ac_ext
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
18003 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
18004 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
18006 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
18010 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
18011 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
18012 $as_echo_n "(cached) " >&6
18014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18015 /* end confdefs.h. */
18020 PG_INT64_TYPE lock = 0;
18021 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
18026 if ac_fn_c_try_link
"$LINENO"; then :
18027 pgac_cv_gcc_sync_int64_cas
="yes"
18029 pgac_cv_gcc_sync_int64_cas
="no"
18031 rm -f core conftest.err conftest.
$ac_objext \
18032 conftest
$ac_exeext conftest.
$ac_ext
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
18035 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
18036 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
18038 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
18042 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
18043 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
18044 $as_echo_n "(cached) " >&6
18046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18054 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
18059 if ac_fn_c_try_link
"$LINENO"; then :
18060 pgac_cv_gcc_atomic_int32_cas
="yes"
18062 pgac_cv_gcc_atomic_int32_cas
="no"
18064 rm -f core conftest.err conftest.
$ac_objext \
18065 conftest
$ac_exeext conftest.
$ac_ext
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
18068 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
18069 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
18071 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
18075 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
18076 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
18077 $as_echo_n "(cached) " >&6
18079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18085 PG_INT64_TYPE val = 0;
18086 PG_INT64_TYPE expect = 0;
18087 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
18092 if ac_fn_c_try_link
"$LINENO"; then :
18093 pgac_cv_gcc_atomic_int64_cas
="yes"
18095 pgac_cv_gcc_atomic_int64_cas
="no"
18097 rm -f core conftest.err conftest.
$ac_objext \
18098 conftest
$ac_exeext conftest.
$ac_ext
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
18101 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
18102 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
18104 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
18109 # Check for x86 cpuid instruction
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
18111 $as_echo_n "checking for __get_cpuid... " >&6; }
18112 if ${pgac_cv__get_cpuid+:} false
; then :
18113 $as_echo_n "(cached) " >&6
18115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18121 unsigned int exx[4] = {0, 0, 0, 0};
18122 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
18128 if ac_fn_c_try_link
"$LINENO"; then :
18129 pgac_cv__get_cpuid
="yes"
18131 pgac_cv__get_cpuid
="no"
18133 rm -f core conftest.err conftest.
$ac_objext \
18134 conftest
$ac_exeext conftest.
$ac_ext
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
18137 $as_echo "$pgac_cv__get_cpuid" >&6; }
18138 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
18140 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
18145 $as_echo_n "checking for __cpuid... " >&6; }
18146 if ${pgac_cv__cpuid+:} false
; then :
18147 $as_echo_n "(cached) " >&6
18149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 #include <intrin.h>
18155 unsigned int exx[4] = {0, 0, 0, 0};
18156 __get_cpuid(exx[0], 1);
18162 if ac_fn_c_try_link
"$LINENO"; then :
18163 pgac_cv__cpuid
="yes"
18165 pgac_cv__cpuid
="no"
18167 rm -f core conftest.err conftest.
$ac_objext \
18168 conftest
$ac_exeext conftest.
$ac_ext
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
18171 $as_echo "$pgac_cv__cpuid" >&6; }
18172 if test x
"$pgac_cv__cpuid" = x
"yes"; then
18174 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
18178 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
18180 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
18181 # with the default compiler flags. If not, check if adding the -msse4.2
18182 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
18184 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
18185 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
18186 $as_echo_n "(cached) " >&6
18188 pgac_save_CFLAGS
=$CFLAGS
18189 CFLAGS
="$pgac_save_CFLAGS "
18190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192 #include <nmmintrin.h>
18196 unsigned int crc = 0;
18197 crc = _mm_crc32_u8(crc, 0);
18198 crc = _mm_crc32_u32(crc, 0);
18199 /* return computed value, to prevent the above being optimized away */
18205 if ac_fn_c_try_link
"$LINENO"; then :
18206 pgac_cv_sse42_crc32_intrinsics_
=yes
18208 pgac_cv_sse42_crc32_intrinsics_
=no
18210 rm -f core conftest.err conftest.
$ac_objext \
18211 conftest
$ac_exeext conftest.
$ac_ext
18212 CFLAGS
="$pgac_save_CFLAGS"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
18215 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
18216 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
18218 pgac_sse42_crc32_intrinsics
=yes
18221 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
18223 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
18224 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
18225 $as_echo_n "(cached) " >&6
18227 pgac_save_CFLAGS
=$CFLAGS
18228 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
18229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231 #include <nmmintrin.h>
18235 unsigned int crc = 0;
18236 crc = _mm_crc32_u8(crc, 0);
18237 crc = _mm_crc32_u32(crc, 0);
18238 /* return computed value, to prevent the above being optimized away */
18244 if ac_fn_c_try_link
"$LINENO"; then :
18245 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
18247 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
18249 rm -f core conftest.err conftest.
$ac_objext \
18250 conftest
$ac_exeext conftest.
$ac_ext
18251 CFLAGS
="$pgac_save_CFLAGS"
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
18254 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
18255 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
18256 CFLAGS_SSE42
="-msse4.2"
18257 pgac_sse42_crc32_intrinsics
=yes
18263 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
18264 # define __SSE4_2__ in that case.
18265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18273 #error __SSE4_2__ not defined
18280 if ac_fn_c_try_compile
"$LINENO"; then :
18283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18285 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
18287 # First check if __crc32c* intrinsics can be used with the default compiler
18288 # flags. If not, check if adding -march=armv8-a+crc flag helps.
18289 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
18291 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
18292 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
18293 $as_echo_n "(cached) " >&6
18295 pgac_save_CFLAGS
=$CFLAGS
18296 CFLAGS
="$pgac_save_CFLAGS "
18297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18299 #include <arm_acle.h>
18303 unsigned int crc = 0;
18304 crc = __crc32cb(crc, 0);
18305 crc = __crc32ch(crc, 0);
18306 crc = __crc32cw(crc, 0);
18307 crc = __crc32cd(crc, 0);
18308 /* return computed value, to prevent the above being optimized away */
18314 if ac_fn_c_try_link
"$LINENO"; then :
18315 pgac_cv_armv8_crc32c_intrinsics_
=yes
18317 pgac_cv_armv8_crc32c_intrinsics_
=no
18319 rm -f core conftest.err conftest.
$ac_objext \
18320 conftest
$ac_exeext conftest.
$ac_ext
18321 CFLAGS
="$pgac_save_CFLAGS"
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
18324 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
18325 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
18326 CFLAGS_ARMV8_CRC32C
=""
18327 pgac_armv8_crc32c_intrinsics
=yes
18330 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
18332 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
18333 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
18334 $as_echo_n "(cached) " >&6
18336 pgac_save_CFLAGS
=$CFLAGS
18337 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
18338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 #include <arm_acle.h>
18344 unsigned int crc = 0;
18345 crc = __crc32cb(crc, 0);
18346 crc = __crc32ch(crc, 0);
18347 crc = __crc32cw(crc, 0);
18348 crc = __crc32cd(crc, 0);
18349 /* return computed value, to prevent the above being optimized away */
18355 if ac_fn_c_try_link
"$LINENO"; then :
18356 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
18358 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
18360 rm -f core conftest.err conftest.
$ac_objext \
18361 conftest
$ac_exeext conftest.
$ac_ext
18362 CFLAGS
="$pgac_save_CFLAGS"
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
18365 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
18366 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
18367 CFLAGS_ARMV8_CRC32C
="-march=armv8-a+crc"
18368 pgac_armv8_crc32c_intrinsics
=yes
18374 # Select CRC-32C implementation.
18376 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
18377 # use the special CRC instructions for calculating CRC-32C. If we're not
18378 # targeting such a processor, but we can nevertheless produce code that uses
18379 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
18380 # implementations and select which one to use at runtime, depending on whether
18381 # SSE 4.2 is supported by the processor we're running on.
18383 # Similarly, if we are targeting an ARM processor that has the CRC
18384 # instructions that are part of the ARMv8 CRC Extension, use them. And if
18385 # we're not targeting such a processor, but can nevertheless produce code that
18386 # uses the CRC instructions, compile both, and select at runtime.
18388 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
18389 # in the template or configure command line.
18390 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
18391 # Use Intel SSE 4.2 if available.
18392 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
18395 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
18396 # the runtime check.
18397 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
18398 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
18400 # Use ARM CRC Extension if available.
18401 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_ARMV8_CRC32C" = x
""; then
18404 # ARM CRC Extension, with runtime check?
18405 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
18406 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
18408 # fall back to slicing-by-8 algorithm, which doesn't require any
18409 # special CPU support.
18410 USE_SLICING_BY_8_CRC32C
=1
18417 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
18419 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
18420 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
18422 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
18424 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
18426 $as_echo "SSE 4.2" >&6; }
18428 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18430 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18432 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
18434 $as_echo "SSE 4.2 with runtime check" >&6; }
18436 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
18438 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
18440 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18442 $as_echo "ARMv8 CRC instructions" >&6; }
18444 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18446 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18448 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18450 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18453 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18455 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18457 $as_echo "slicing-by-8" >&6; }
18465 # Select semaphore implementation type.
18466 if test "$PORTNAME" != "win32"; then
18467 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18468 # Need sem_open for this
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18470 $as_echo_n "checking for library containing sem_open... " >&6; }
18471 if ${ac_cv_search_sem_open+:} false
; then :
18472 $as_echo_n "(cached) " >&6
18474 ac_func_search_save_LIBS
=$LIBS
18475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18478 /* Override any GCC internal prototype to avoid an error.
18479 Use char because int might match the return type of a GCC
18480 builtin and then its argument prototype would still apply. */
18488 return sem_open ();
18493 for ac_lib
in '' rt pthread
; do
18494 if test -z "$ac_lib"; then
18495 ac_res
="none required"
18498 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18500 if ac_fn_c_try_link
"$LINENO"; then :
18501 ac_cv_search_sem_open
=$ac_res
18503 rm -f core conftest.err conftest.
$ac_objext \
18505 if ${ac_cv_search_sem_open+:} false
; then :
18509 if ${ac_cv_search_sem_open+:} false
; then :
18512 ac_cv_search_sem_open
=no
18514 rm conftest.
$ac_ext
18515 LIBS
=$ac_func_search_save_LIBS
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18518 $as_echo "$ac_cv_search_sem_open" >&6; }
18519 ac_res
=$ac_cv_search_sem_open
18520 if test "$ac_res" != no
; then :
18521 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18522 USE_NAMED_POSIX_SEMAPHORES
=1
18526 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18527 # Need sem_init for this
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18529 $as_echo_n "checking for library containing sem_init... " >&6; }
18530 if ${ac_cv_search_sem_init+:} false
; then :
18531 $as_echo_n "(cached) " >&6
18533 ac_func_search_save_LIBS
=$LIBS
18534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18547 return sem_init ();
18552 for ac_lib
in '' rt pthread
; do
18553 if test -z "$ac_lib"; then
18554 ac_res
="none required"
18557 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18559 if ac_fn_c_try_link
"$LINENO"; then :
18560 ac_cv_search_sem_init
=$ac_res
18562 rm -f core conftest.err conftest.
$ac_objext \
18564 if ${ac_cv_search_sem_init+:} false
; then :
18568 if ${ac_cv_search_sem_init+:} false
; then :
18571 ac_cv_search_sem_init
=no
18573 rm conftest.
$ac_ext
18574 LIBS
=$ac_func_search_save_LIBS
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18577 $as_echo "$ac_cv_search_sem_init" >&6; }
18578 ac_res
=$ac_cv_search_sem_init
18579 if test "$ac_res" != no
; then :
18580 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18581 USE_UNNAMED_POSIX_SEMAPHORES
=1
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18586 $as_echo_n "checking which semaphore API to use... " >&6; }
18587 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18589 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18591 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18592 sematype
="named POSIX"
18594 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18596 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18598 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18599 sematype
="unnamed POSIX"
18602 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18604 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18605 sematype
="System V"
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18609 $as_echo "$sematype" >&6; }
18612 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18614 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18618 # Select shared-memory implementation type.
18619 if test "$PORTNAME" != "win32"; then
18621 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18623 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18626 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18628 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18631 # Select random number source. If a TLS library is used then it will be the
18632 # first choice, else the native platform sources (Windows API or /dev/urandom)
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18635 $as_echo_n "checking which random number source to use... " >&6; }
18636 if test x
"$with_ssl" = x
"openssl" ; then
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18638 $as_echo "OpenSSL" >&6; }
18639 elif test x
"$PORTNAME" = x
"win32" ; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18641 $as_echo "Windows native" >&6; }
18642 elif test x
"$cross_compiling" = x
"yes"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming /dev/urandom" >&5
18644 $as_echo "assuming /dev/urandom" >&6; }
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18647 $as_echo "/dev/urandom" >&6; }
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18649 $as_echo_n "checking for /dev/urandom... " >&6; }
18650 if ${ac_cv_file__dev_urandom+:} false
; then :
18651 $as_echo_n "(cached) " >&6
18653 test "$cross_compiling" = yes &&
18654 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18655 if test -r "/dev/urandom"; then
18656 ac_cv_file__dev_urandom
=yes
18658 ac_cv_file__dev_urandom
=no
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18662 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18663 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18668 if test x
"$ac_cv_file__dev_urandom" = x
"no" ; then
18670 no source of strong random numbers was found
18671 PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
18675 # If not set in template file, set bytes to use libc memset()
18676 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18677 MEMSET_LOOP_LIMIT
=1024
18680 cat >>confdefs.h
<<_ACEOF
18681 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18686 if test "$enable_nls" = yes ; then
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18689 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18690 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18691 $as_echo_n "(cached) " >&6
18693 ac_func_search_save_LIBS
=$LIBS
18694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18697 /* Override any GCC internal prototype to avoid an error.
18698 Use char because int might match the return type of a GCC
18699 builtin and then its argument prototype would still apply. */
18703 char bind_textdomain_codeset ();
18707 return bind_textdomain_codeset ();
18712 for ac_lib
in '' intl
; do
18713 if test -z "$ac_lib"; then
18714 ac_res
="none required"
18717 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18719 if ac_fn_c_try_link
"$LINENO"; then :
18720 ac_cv_search_bind_textdomain_codeset
=$ac_res
18722 rm -f core conftest.err conftest.
$ac_objext \
18724 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18728 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18731 ac_cv_search_bind_textdomain_codeset
=no
18733 rm conftest.
$ac_ext
18734 LIBS
=$ac_func_search_save_LIBS
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18737 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18738 ac_res
=$ac_cv_search_bind_textdomain_codeset
18739 if test "$ac_res" != no
; then :
18740 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18743 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18746 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18747 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18750 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18754 if test -z "$MSGFMT"; then
18755 for ac_prog
in msgfmt
18757 # Extract the first word of "$ac_prog", so it can be a program name with args.
18758 set dummy
$ac_prog; ac_word
=$2
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18760 $as_echo_n "checking for $ac_word... " >&6; }
18761 if ${ac_cv_path_MSGFMT+:} false
; then :
18762 $as_echo_n "(cached) " >&6
18766 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18770 for as_dir
in $PATH
18773 test -z "$as_dir" && as_dir
=.
18774 for ac_exec_ext
in '' $ac_executable_extensions; do
18775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18787 MSGFMT
=$ac_cv_path_MSGFMT
18788 if test -n "$MSGFMT"; then
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18790 $as_echo "$MSGFMT" >&6; }
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 $as_echo "no" >&6; }
18797 test -n "$MSGFMT" && break
18801 # Report the value of MSGFMT in configure's output in all cases.
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18803 $as_echo_n "checking for MSGFMT... " >&6; }
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18805 $as_echo "$MSGFMT" >&6; }
18808 if test -z "$MSGFMT"; then
18809 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18812 $as_echo_n "checking for msgfmt flags... " >&6; }
18813 if ${pgac_cv_msgfmt_flags+:} false
; then :
18814 $as_echo_n "(cached) " >&6
18816 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18817 pgac_cv_msgfmt_flags
=-c
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18821 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18822 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18824 if test -z "$MSGMERGE"; then
18825 for ac_prog
in msgmerge
18827 # Extract the first word of "$ac_prog", so it can be a program name with args.
18828 set dummy
$ac_prog; ac_word
=$2
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18830 $as_echo_n "checking for $ac_word... " >&6; }
18831 if ${ac_cv_path_MSGMERGE+:} false
; then :
18832 $as_echo_n "(cached) " >&6
18836 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18840 for as_dir
in $PATH
18843 test -z "$as_dir" && as_dir
=.
18844 for ac_exec_ext
in '' $ac_executable_extensions; do
18845 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18846 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18857 MSGMERGE
=$ac_cv_path_MSGMERGE
18858 if test -n "$MSGMERGE"; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18860 $as_echo "$MSGMERGE" >&6; }
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863 $as_echo "no" >&6; }
18867 test -n "$MSGMERGE" && break
18871 # Report the value of MSGMERGE in configure's output in all cases.
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18873 $as_echo_n "checking for MSGMERGE... " >&6; }
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18875 $as_echo "$MSGMERGE" >&6; }
18878 if test -z "$XGETTEXT"; then
18879 for ac_prog
in xgettext
18881 # Extract the first word of "$ac_prog", so it can be a program name with args.
18882 set dummy
$ac_prog; ac_word
=$2
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18884 $as_echo_n "checking for $ac_word... " >&6; }
18885 if ${ac_cv_path_XGETTEXT+:} false
; then :
18886 $as_echo_n "(cached) " >&6
18890 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18894 for as_dir
in $PATH
18897 test -z "$as_dir" && as_dir
=.
18898 for ac_exec_ext
in '' $ac_executable_extensions; do
18899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18900 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18911 XGETTEXT
=$ac_cv_path_XGETTEXT
18912 if test -n "$XGETTEXT"; then
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18914 $as_echo "$XGETTEXT" >&6; }
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18917 $as_echo "no" >&6; }
18921 test -n "$XGETTEXT" && break
18925 # Report the value of XGETTEXT in configure's output in all cases.
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18927 $as_echo_n "checking for XGETTEXT... " >&6; }
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18929 $as_echo "$XGETTEXT" >&6; }
18935 # Check for Tcl configuration script tclConfig.sh
18936 if test "$with_tcl" = yes; then
18937 if test -z "$TCLSH"; then
18938 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18940 # Extract the first word of "$ac_prog", so it can be a program name with args.
18941 set dummy
$ac_prog; ac_word
=$2
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18943 $as_echo_n "checking for $ac_word... " >&6; }
18944 if ${ac_cv_path_TCLSH+:} false
; then :
18945 $as_echo_n "(cached) " >&6
18949 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18953 for as_dir
in $PATH
18956 test -z "$as_dir" && as_dir
=.
18957 for ac_exec_ext
in '' $ac_executable_extensions; do
18958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18959 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18970 TCLSH
=$ac_cv_path_TCLSH
18971 if test -n "$TCLSH"; then
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18973 $as_echo "$TCLSH" >&6; }
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18976 $as_echo "no" >&6; }
18980 test -n "$TCLSH" && break
18984 # Report the value of TCLSH in configure's output in all cases.
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18986 $as_echo_n "checking for TCLSH... " >&6; }
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18988 $as_echo "$TCLSH" >&6; }
18991 if test x
"$TCLSH" = x
""; then
18992 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18996 $as_echo_n "checking for tclConfig.sh... " >&6; }
18997 # Let user override test
18998 if test -z "$TCL_CONFIG_SH"; then
18999 pgac_test_dirs
="$with_tclconfig"
19001 set X
$pgac_test_dirs; shift
19002 if test $# -eq 0; then
19003 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
19004 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
19005 # On newer macOS, $auto_path frequently doesn't include the place
19006 # where tclConfig.sh actually lives. Append that to the end, so as not
19007 # to break cases where a non-default Tcl installation is being used.
19008 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
19009 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
19011 set X
$pgac_test_dirs; shift
19015 if test -r "$pgac_dir/tclConfig.sh"; then
19016 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
19022 if test -z "$TCL_CONFIG_SH"; then
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024 $as_echo "no" >&6; }
19025 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
19028 $as_echo "$TCL_CONFIG_SH" >&6; }
19034 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
19035 eval TCL_LIBS
=\"$TCL_LIBS\"
19036 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
19037 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
19039 if test "$TCL_SHARED_BUILD" != 1; then
19040 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
19041 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
19043 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
19044 ac_save_CPPFLAGS
=$CPPFLAGS
19045 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
19046 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
19047 if test "x$ac_cv_header_tcl_h" = xyes
; then :
19050 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
19054 CPPFLAGS
=$ac_save_CPPFLAGS
19057 # check for <perl.h>
19058 if test "$with_perl" = yes; then
19059 ac_save_CPPFLAGS
=$CPPFLAGS
19060 CPPFLAGS
="$CPPFLAGS $perl_includespec"
19061 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
19063 if test "x$ac_cv_header_perl_h" = xyes
; then :
19066 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
19070 # While we're at it, check that we can link to libperl.
19071 # On most platforms, if perl.h is there then libperl.so will be too, but at
19072 # this writing Debian packages them separately. There is no known reason to
19073 # waste cycles on separate probes for the Tcl or Python libraries, though.
19074 # On some Red Hat platforms, the link attempt can fail if we don't use
19075 # CFLAGS_SL while building the test program.
19076 ac_save_CFLAGS
=$CFLAGS
19077 CFLAGS
="$CFLAGS $CFLAGS_SL"
19078 pgac_save_LIBS
=$LIBS
19079 LIBS
="$perl_embed_ldflags"
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
19081 $as_echo_n "checking for libperl... " >&6; }
19082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19085 #include <EXTERN.h>
19096 if ac_fn_c_try_link
"$LINENO"; then :
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19098 $as_echo "yes" >&6; }
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19101 $as_echo "no" >&6; }
19102 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
19104 rm -f core conftest.err conftest.
$ac_objext \
19105 conftest
$ac_exeext conftest.
$ac_ext
19106 LIBS
=$pgac_save_LIBS
19107 CFLAGS
=$ac_save_CFLAGS
19108 CPPFLAGS
=$ac_save_CPPFLAGS
19111 # check for <Python.h>
19112 if test "$with_python" = yes; then
19113 ac_save_CPPFLAGS
=$CPPFLAGS
19114 CPPFLAGS
="$python_includespec $CPPFLAGS"
19115 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
19116 if test "x$ac_cv_header_Python_h" = xyes
; then :
19119 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
19123 CPPFLAGS
=$ac_save_CPPFLAGS
19127 # Check for documentation-building tools
19129 if test -z "$XMLLINT"; then
19130 for ac_prog
in xmllint
19132 # Extract the first word of "$ac_prog", so it can be a program name with args.
19133 set dummy
$ac_prog; ac_word
=$2
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19135 $as_echo_n "checking for $ac_word... " >&6; }
19136 if ${ac_cv_path_XMLLINT+:} false
; then :
19137 $as_echo_n "(cached) " >&6
19141 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
19144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19145 for as_dir
in $PATH
19148 test -z "$as_dir" && as_dir
=.
19149 for ac_exec_ext
in '' $ac_executable_extensions; do
19150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19151 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
19152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19162 XMLLINT
=$ac_cv_path_XMLLINT
19163 if test -n "$XMLLINT"; then
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19165 $as_echo "$XMLLINT" >&6; }
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168 $as_echo "no" >&6; }
19172 test -n "$XMLLINT" && break
19176 # Report the value of XMLLINT in configure's output in all cases.
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
19178 $as_echo_n "checking for XMLLINT... " >&6; }
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
19180 $as_echo "$XMLLINT" >&6; }
19183 if test -z "$XSLTPROC"; then
19184 for ac_prog
in xsltproc
19186 # Extract the first word of "$ac_prog", so it can be a program name with args.
19187 set dummy
$ac_prog; ac_word
=$2
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19189 $as_echo_n "checking for $ac_word... " >&6; }
19190 if ${ac_cv_path_XSLTPROC+:} false
; then :
19191 $as_echo_n "(cached) " >&6
19195 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19199 for as_dir
in $PATH
19202 test -z "$as_dir" && as_dir
=.
19203 for ac_exec_ext
in '' $ac_executable_extensions; do
19204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19205 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19216 XSLTPROC
=$ac_cv_path_XSLTPROC
19217 if test -n "$XSLTPROC"; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19219 $as_echo "$XSLTPROC" >&6; }
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19222 $as_echo "no" >&6; }
19226 test -n "$XSLTPROC" && break
19230 # Report the value of XSLTPROC in configure's output in all cases.
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
19232 $as_echo_n "checking for XSLTPROC... " >&6; }
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19234 $as_echo "$XSLTPROC" >&6; }
19237 if test -z "$FOP"; then
19240 # Extract the first word of "$ac_prog", so it can be a program name with args.
19241 set dummy
$ac_prog; ac_word
=$2
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19243 $as_echo_n "checking for $ac_word... " >&6; }
19244 if ${ac_cv_path_FOP+:} false
; then :
19245 $as_echo_n "(cached) " >&6
19249 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
19252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19253 for as_dir
in $PATH
19256 test -z "$as_dir" && as_dir
=.
19257 for ac_exec_ext
in '' $ac_executable_extensions; do
19258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19259 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
19260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19270 FOP
=$ac_cv_path_FOP
19271 if test -n "$FOP"; then
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19273 $as_echo "$FOP" >&6; }
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276 $as_echo "no" >&6; }
19280 test -n "$FOP" && break
19284 # Report the value of FOP in configure's output in all cases.
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
19286 $as_echo_n "checking for FOP... " >&6; }
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19288 $as_echo "$FOP" >&6; }
19291 if test -z "$DBTOEPUB"; then
19292 for ac_prog
in dbtoepub
19294 # Extract the first word of "$ac_prog", so it can be a program name with args.
19295 set dummy
$ac_prog; ac_word
=$2
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19297 $as_echo_n "checking for $ac_word... " >&6; }
19298 if ${ac_cv_path_DBTOEPUB+:} false
; then :
19299 $as_echo_n "(cached) " >&6
19303 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
19306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19307 for as_dir
in $PATH
19310 test -z "$as_dir" && as_dir
=.
19311 for ac_exec_ext
in '' $ac_executable_extensions; do
19312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19313 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
19314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19324 DBTOEPUB
=$ac_cv_path_DBTOEPUB
19325 if test -n "$DBTOEPUB"; then
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19327 $as_echo "$DBTOEPUB" >&6; }
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19330 $as_echo "no" >&6; }
19334 test -n "$DBTOEPUB" && break
19338 # Report the value of DBTOEPUB in configure's output in all cases.
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
19340 $as_echo_n "checking for DBTOEPUB... " >&6; }
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19342 $as_echo "$DBTOEPUB" >&6; }
19347 # Check for test tools
19349 if test "$enable_tap_tests" = yes; then
19350 # Make sure we know where prove is.
19351 if test -z "$PROVE"; then
19352 for ac_prog
in prove
19354 # Extract the first word of "$ac_prog", so it can be a program name with args.
19355 set dummy
$ac_prog; ac_word
=$2
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19357 $as_echo_n "checking for $ac_word... " >&6; }
19358 if ${ac_cv_path_PROVE+:} false
; then :
19359 $as_echo_n "(cached) " >&6
19363 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
19366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19367 for as_dir
in $PATH
19370 test -z "$as_dir" && as_dir
=.
19371 for ac_exec_ext
in '' $ac_executable_extensions; do
19372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19373 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
19374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19384 PROVE
=$ac_cv_path_PROVE
19385 if test -n "$PROVE"; then
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19387 $as_echo "$PROVE" >&6; }
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390 $as_echo "no" >&6; }
19394 test -n "$PROVE" && break
19398 # Report the value of PROVE in configure's output in all cases.
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
19400 $as_echo_n "checking for PROVE... " >&6; }
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19402 $as_echo "$PROVE" >&6; }
19405 if test -z "$PROVE"; then
19406 as_fn_error $?
"prove not found" "$LINENO" 5
19408 # Check for necessary Perl modules. You might think we should use
19409 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19410 # installation than perl, eg on MSys, so we have to check using prove.
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19412 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19413 __CONFIG_HOST_OS__
=$host_os; export __CONFIG_HOST_OS__
19414 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19415 if test $?
-eq 0; then
19416 # log the module version details, but don't show them interactively
19417 echo "$modulestderr" >&5
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19419 $as_echo "yes" >&6; }
19421 # on failure, though, show the results to the user
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19423 $as_echo "$modulestderr" >&6; }
19424 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
19428 # If compiler will take -Wl,--as-needed (or various platform-specific
19429 # spellings thereof) then add that to LDFLAGS. This is much easier than
19430 # trying to filter LIBS to the minimum for each executable.
19431 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19432 # libreadline; therefore we postpone testing it until we know what library
19433 # dependencies readline has. The test code will try to link with $LIBS.
19434 if test "$with_readline" = yes; then
19435 link_test_func
=readline
19437 link_test_func
=exit
19440 if test "$PORTNAME" = "darwin"; then
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
19442 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
19443 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false
; then :
19444 $as_echo_n "(cached) " >&6
19446 pgac_save_LDFLAGS
=$LDFLAGS
19447 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19448 if test "$cross_compiling" = yes; then :
19449 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
="assuming no"
19451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19462 if ac_fn_c_try_run
"$LINENO"; then :
19463 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=yes
19465 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=no
19467 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19468 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19471 LDFLAGS
="$pgac_save_LDFLAGS"
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
19474 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
19475 if test x
"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x
"yes"; then
19476 LDFLAGS
="$LDFLAGS -Wl,-dead_strip_dylibs"
19479 elif test "$PORTNAME" = "openbsd"; then
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
19481 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
19482 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false
; then :
19483 $as_echo_n "(cached) " >&6
19485 pgac_save_LDFLAGS
=$LDFLAGS
19486 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19487 if test "$cross_compiling" = yes; then :
19488 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
="assuming no"
19490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h. */
19492 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19501 if ac_fn_c_try_run
"$LINENO"; then :
19502 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=yes
19504 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=no
19506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19510 LDFLAGS
="$pgac_save_LDFLAGS"
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
19513 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
19514 if test x
"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x
"yes"; then
19515 LDFLAGS
="$LDFLAGS -Wl,-Bdynamic"
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
19520 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
19521 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false
; then :
19522 $as_echo_n "(cached) " >&6
19524 pgac_save_LDFLAGS
=$LDFLAGS
19525 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19526 if test "$cross_compiling" = yes; then :
19527 pgac_cv_prog_cc_ldflags__Wl___as_needed
="assuming no"
19529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19531 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19540 if ac_fn_c_try_run
"$LINENO"; then :
19541 pgac_cv_prog_cc_ldflags__Wl___as_needed
=yes
19543 pgac_cv_prog_cc_ldflags__Wl___as_needed
=no
19545 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19546 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19549 LDFLAGS
="$pgac_save_LDFLAGS"
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
19552 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
19553 if test x
"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x
"yes"; then
19554 LDFLAGS
="$LDFLAGS -Wl,--as-needed"
19559 # Create compiler version string
19560 if test x
"$GCC" = x
"yes" ; then
19561 cc_string
=`${CC} --version | sed q`
19562 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19563 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19564 cc_string
=`${CC} -V 2>&1 | sed q`
19570 cat >>confdefs.h
<<_ACEOF
19571 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19575 # Supply a numeric version string for use by 3rd party add-ons
19576 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19577 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
19578 $AWK '{printf "%d
%04d
", $1, $2}'`"
19580 cat >>confdefs.h
<<_ACEOF
19581 #define PG_VERSION_NUM $PG_VERSION_NUM
19586 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19587 # literally, so that it's possible to override it at build time using
19588 # a command like "make ... PG_SYSROOT=path". This has to be done after
19589 # we've finished all configure checks that depend on CPPFLAGS.
19590 # The same for LDFLAGS, too.
19591 if test x
"$PG_SYSROOT" != x
; then
19592 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19593 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19598 # Begin output steps
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19601 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19603 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19605 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19607 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19608 # Currently only used when LLVM is used
19609 if test "$with_llvm" = yes ; then
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19611 $as_echo "$as_me: using CXX=$CXX" >&6;}
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19613 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19615 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19617 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19619 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19622 # prepare build tree if outside source tree
19623 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19624 # Note 2: /bin/pwd might be better than shell's built-in at getting
19625 # a symlink-free name.
19626 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19630 if test "$no_create" != yes; then
19631 $as_echo_n "preparing build tree... " >&6
19632 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19633 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19634 || as_fn_error $?
"failed" "$LINENO" 5
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19636 $as_echo "done" >&6; }
19642 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19645 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}"
19648 if test "$PORTNAME" = "win32"; then
19649 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19653 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19656 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19659 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19662 cat >confcache
<<\_ACEOF
19663 # This file is a shell script that caches the results of configure
19664 # tests run on this system so they can be shared between configure
19665 # scripts and configure runs, see configure's option --config-cache.
19666 # It is not useful on other systems. If it contains results you don't
19667 # want to keep, you may remove or edit it.
19669 # config.status only pays attention to the cache file if you give it
19670 # the --recheck option to rerun configure.
19672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19674 # following values.
19678 # The following way of writing the cache mishandles newlines in values,
19679 # but we know of no workaround that is simple, portable, and efficient.
19680 # So, we kill variables containing newlines.
19681 # Ultrix sh set writes to stderr and can't be redirected directly,
19682 # and sets the high bit in the cache file unless we assign to the vars.
19684 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19685 eval ac_val
=\$
$ac_var
19689 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19693 _ | IFS | as_nl
) ;; #(
19694 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19695 *) { eval $ac_var=; unset $ac_var;} ;;
19701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19702 *${as_nl}ac_space
=\
*)
19703 # `set' does not quote correctly, so add quotes: double-quote
19704 # substitution turns \\\\ into \\, and sed turns \\ into \.
19707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19710 # `set' quotes correctly as required by POSIX, so do not add quotes.
19711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19724 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19725 if test -w "$cache_file"; then
19726 if test "x$cache_file" != "x/dev/null"; then
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19728 $as_echo "$as_me: updating cache $cache_file" >&6;}
19729 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19730 cat confcache
>"$cache_file"
19732 case $cache_file in #(
19734 mv -f confcache
"$cache_file"$$
&&
19735 mv -f "$cache_file"$$
"$cache_file" ;; #(
19737 mv -f confcache
"$cache_file" ;;
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19748 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19749 # Let make expand exec_prefix.
19750 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19752 DEFS
=-DHAVE_CONFIG_H
19757 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19758 # 1. Remove the extension, and $U if already installed.
19759 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19760 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19762 # will be set to the directory where LIBOBJS objects are built.
19763 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19764 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19766 LIBOBJS
=$ac_libobjs
19768 LTLIBOBJS
=$ac_ltlibobjs
19773 : "${CONFIG_STATUS=./config.status}"
19775 ac_clean_files_save
=$ac_clean_files
19776 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19782 # Generated by $as_me.
19783 # Run this file to recreate the current configuration.
19784 # Compiler output produced by configure, useful for debugging
19785 # configure, is in config.log if it exists.
19788 ac_cs_recheck=false
19791 SHELL=\${CONFIG_SHELL-$SHELL}
19794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19795 ## -------------------- ##
19796 ## M4sh Initialization. ##
19797 ## -------------------- ##
19799 # Be more Bourne compatible
19800 DUALCASE
=1; export DUALCASE
# for MKS sh
19801 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19805 # is contrary to our usage. Disable this feature.
19806 alias -g '${1+"$@"}'='"$@"'
19807 setopt NO_GLOB_SUBST
19809 case `(set -o) 2>/dev/null` in #(
19821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19822 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19825 # Prefer a ksh shell builtin over an external printf program on Solaris,
19826 # but without wasting forks for bash or zsh.
19827 if test -z "$BASH_VERSION$ZSH_VERSION" \
19828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19829 as_echo='print
-r --'
19830 as_echo_n='print
-rn --'
19831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19832 as_echo='printf %s
\n'
19833 as_echo_n='printf %s
'
19835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19836 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19837 as_echo_n='/usr
/ucb
/echo -n'
19839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19840 as_echo_n_body='eval
19844 expr "X$arg" : "X\\(.*\\)$as_nl";
19845 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19847 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19849 export as_echo_n_body
19850 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19852 export as_echo_body
19853 as_echo='sh
-c $as_echo_body as_echo
'
19856 # The user is always right.
19857 if test "${PATH_SEPARATOR+set}" != set; then
19859 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19860 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19867 # We need space, tab and new line, in precisely that order. Quoting is
19868 # there to prevent editors from complaining about space-tab.
19869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19870 # splitting by setting IFS to empty value.)
19873 # Find who we are. Look in the path if we contain no directory separator.
19876 *[\\/]* ) as_myself=$0 ;;
19877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19878 for as_dir in $PATH
19881 test -z "$as_dir" && as_dir=.
19882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19888 # We did not find ourselves, most probably we were run as `sh COMMAND'
19889 # in which case we are not to be found in the path.
19890 if test "x$as_myself" = x
; then
19893 if test ! -f "$as_myself"; then
19894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19898 # Unset variables that we do not need and which cause bugs (e.g. in
19899 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19900 # suppresses any "Segmentation fault" message there. '((' could
19901 # trigger a bug in pdksh 5.2.14.
19902 for as_var
in BASH_ENV ENV MAIL MAILPATH
19903 do eval test x\
${$as_var+set} = xset \
19904 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19917 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19921 # ----------------------------------------
19922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19924 # script with STATUS, using 1 if that was 0.
19927 as_status
=$1; test $as_status -eq 0 && as_status
=1
19929 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19932 $as_echo "$as_me: error: $2" >&2
19933 as_fn_exit
$as_status
19937 # as_fn_set_status STATUS
19938 # -----------------------
19939 # Set $? to STATUS, without forking.
19940 as_fn_set_status
()
19943 } # as_fn_set_status
19945 # as_fn_exit STATUS
19946 # -----------------
19947 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19951 as_fn_set_status
$1
19957 # Portably unset VAR.
19960 { eval $1=; unset $1;}
19962 as_unset
=as_fn_unset
19963 # as_fn_append VAR VALUE
19964 # ----------------------
19965 # Append the text in VALUE to the end of the definition contained in VAR. Take
19966 # advantage of any shell optimizations that allow amortized linear growth over
19967 # repeated appends, instead of the typical quadratic growth present in naive
19969 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19970 eval 'as_fn_append ()
19981 # as_fn_arith ARG...
19982 # ------------------
19983 # Perform arithmetic evaluation on the ARGs, and store the result in the
19984 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19985 # must be portable across $(()) and expr.
19986 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19987 eval 'as_fn_arith ()
19994 as_val
=`expr "$@" || test $? -eq 1`
19999 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20000 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20006 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20007 as_basename
=basename
20012 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20018 as_me
=`$as_basename -- "$0" ||
20019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20020 X"$0" : 'X\(//\)$' \| \
20021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20023 sed '/^.*\/\([^/][^/]*\)\/*$/{
20037 # Avoid depending upon Character Ranges.
20038 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20039 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20040 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20041 as_cr_digits
='0123456789'
20042 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20044 ECHO_C
= ECHO_N
= ECHO_T
=
20045 case `echo -n x` in #(((((
20047 case `echo 'xy\c'` in
20048 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20050 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20057 rm -f conf$$ conf$$.exe conf$$.
file
20058 if test -d conf$$.dir
; then
20059 rm -f conf$$.dir
/conf$$.
file
20062 mkdir conf$$.dir
2>/dev
/null
20064 if (echo >conf$$.
file) 2>/dev
/null
; then
20065 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20067 # ... but there are two gotchas:
20068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20070 # In both cases, we have to default to `cp -pR'.
20071 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20073 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20081 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20082 rmdir conf$$.dir
2>/dev
/null
20087 # Create "$as_dir" as a directory, including parents if necessary.
20092 -*) as_dir
=.
/$as_dir;;
20094 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20098 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20099 *) as_qdir
=$as_dir;;
20101 as_dirs
="'$as_qdir' $as_dirs"
20102 as_dir
=`$as_dirname -- "$as_dir" ||
20103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20104 X"$as_dir" : 'X\(//\)[^/]' \| \
20105 X"$as_dir" : 'X\(//\)$' \| \
20106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20107 $as_echo X"$as_dir" |
20108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20112 /^X\(\/\/\)[^/].*/{
20125 test -d "$as_dir" && break
20127 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20128 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20132 if mkdir
-p .
2>/dev
/null
; then
20133 as_mkdir_p
='mkdir -p "$as_dir"'
20135 test -d .
/-p && rmdir .
/-p
20140 # as_fn_executable_p FILE
20141 # -----------------------
20142 # Test if FILE is an executable regular file.
20143 as_fn_executable_p
()
20145 test -f "$1" && test -x "$1"
20146 } # as_fn_executable_p
20147 as_test_x
='test -x'
20148 as_executable_p
=as_fn_executable_p
20150 # Sed expression to map a string onto a valid CPP name.
20151 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20153 # Sed expression to map a string onto a valid variable name.
20154 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20158 ## ----------------------------------- ##
20159 ## Main body of $CONFIG_STATUS script. ##
20160 ## ----------------------------------- ##
20162 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20165 # Save the log message, to keep $0 and so on meaningful, and to
20166 # report actual input values of CONFIG_FILES etc. instead of their
20167 # values after options handling.
20169 This file was extended by PostgreSQL $as_me 16devel, which was
20170 generated by GNU Autoconf 2.69. Invocation command line was
20172 CONFIG_FILES = $CONFIG_FILES
20173 CONFIG_HEADERS = $CONFIG_HEADERS
20174 CONFIG_LINKS = $CONFIG_LINKS
20175 CONFIG_COMMANDS = $CONFIG_COMMANDS
20178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20183 case $ac_config_files in *"
20184 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20187 case $ac_config_headers in *"
20188 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20193 # Files that config.status was made for.
20194 config_files="$ac_config_files"
20195 config_headers="$ac_config_headers"
20196 config_links="$ac_config_links"
20197 config_commands="$ac_config_commands"
20201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20203 \`$as_me' instantiates files and other configuration actions
20204 from templates according to the current configuration. Unless the files
20205 and actions are specified as TAGs, all are instantiated by default.
20207 Usage: $0 [OPTION]... [TAG]...
20209 -h, --help print this help, then exit
20210 -V, --version print version number and configuration settings, then exit
20211 --config print configuration, then exit
20212 -q, --quiet, --silent
20213 do not print progress messages
20214 -d, --debug don't remove temporary files
20215 --recheck update $as_me by reconfiguring in the same conditions
20216 --file=FILE[:TEMPLATE]
20217 instantiate the configuration file FILE
20218 --header=FILE[:TEMPLATE]
20219 instantiate the configuration header FILE
20221 Configuration files:
20224 Configuration headers:
20227 Configuration links:
20230 Configuration commands:
20233 Report bugs to <pgsql-bugs@lists.postgresql.org>.
20234 PostgreSQL home page: <https://www.postgresql.org/>."
20237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20238 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20240 PostgreSQL config.status 16devel
20241 configured by $0, generated by GNU Autoconf 2.69,
20242 with options \\"\$ac_cs_config\\"
20244 Copyright (C) 2012 Free Software Foundation, Inc.
20245 This config.status script is free software; the Free Software Foundation
20246 gives unlimited permission to copy, distribute and modify it."
20253 test -n "\$AWK" || AWK=awk
20256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20257 # The default lists apply if the user does not specify any file.
20263 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20264 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20268 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20280 # Handling of the options.
20281 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20283 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20284 $as_echo "$ac_cs_version"; exit ;;
20285 --config |
--confi |
--conf |
--con |
--co |
--c )
20286 $as_echo "$ac_cs_config"; exit ;;
20287 --debug |
--debu |
--deb |
--de |
--d |
-d )
20289 --file |
--fil |
--fi |
--f )
20292 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20293 '') as_fn_error $?
"missing file argument" ;;
20295 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20296 ac_need_defaults
=false
;;
20297 --header |
--heade |
--head |
--hea )
20300 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20302 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20303 ac_need_defaults
=false
;;
20305 # Conflict between --help and --header
20306 as_fn_error $?
"ambiguous option: \`$1'
20307 Try \`$0 --help' for more information.";;
20308 --help |
--hel |
-h )
20309 $as_echo "$ac_cs_usage"; exit ;;
20310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20311 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20314 # This is an error.
20315 -*) as_fn_error $?
"unrecognized option: \`$1'
20316 Try \`$0 --help' for more information." ;;
20318 *) as_fn_append ac_config_targets
" $1"
20319 ac_need_defaults
=false
;;
20325 ac_configure_extra_args
=
20327 if $ac_cs_silent; then
20329 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20334 if \$ac_cs_recheck; then
20335 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20337 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20338 CONFIG_SHELL='$SHELL'
20339 export CONFIG_SHELL
20344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20349 ## Running $as_me. ##
20355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20360 # Handling of arguments.
20361 for ac_config_target
in $ac_config_targets
20363 case $ac_config_target in
20364 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
20365 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
20366 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
20367 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
20368 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
20369 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
20370 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
20371 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
20372 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
20373 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
20374 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
20376 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20381 # If the user did not use the arguments to specify the items to instantiate,
20382 # then the envvar interface is used. Set only those that are not.
20383 # We use the long form for the default assignment because of an extremely
20384 # bizarre bug on SunOS 4.1.3.
20385 if $ac_need_defaults; then
20386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20388 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20392 # Have a temporary directory for convenience. Make it in the build tree
20393 # simply because there is no reason against having it here, and in addition,
20394 # creating and moving files from /tmp can sometimes cause problems.
20395 # Hook for its removal unless debugging.
20396 # Note that there is a small window in which the directory will not be cleaned:
20397 # after its creation but before its name has been assigned to `$tmp'.
20401 trap 'exit_status=$?
20402 : "${ac_tmp:=$tmp}"
20403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20405 trap 'as_fn_exit 1' 1 2 13 15
20407 # Create a (secure) tmp directory for tmp files.
20410 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20414 tmp
=.
/conf$$
-$RANDOM
20415 (umask 077 && mkdir
"$tmp")
20416 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20419 # Set up the scripts for CONFIG_FILES section.
20420 # No need to generate them if there are no CONFIG_FILES.
20421 # This happens for instance with `./config.status config.h'.
20422 if test -n "$CONFIG_FILES"; then
20425 ac_cr
=`echo X | tr X '\015'`
20426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20427 # But we know of no other shell where ac_cr would be empty at this
20428 # point, so we can use a bashism as a fallback.
20429 if test "x$ac_cr" = x
; then
20430 eval ac_cr
=\$
\'\\r
\'
20432 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20436 ac_cs_awk_cr
=$ac_cr
20439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20444 echo "cat >conf$$subs.awk <<_ACEOF" &&
20445 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20447 } >conf$$subs.sh ||
20448 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20449 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20451 for ac_last_try in false false false false false :; do
20452 . ./conf$$subs.sh ||
20453 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20455 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20456 if test $ac_delim_n = $ac_delim_num; then
20458 elif $ac_last_try; then
20459 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20461 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20464 rm -f conf$$subs.sh
20466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20467 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20471 s/^/S["/; s
/!.
*/"]=/
20481 s/\(.\{148\}\)..*/\1/
20483 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20488 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20495 s/\(.\{148\}\)..*/\1/
20497 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20501 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20506 ' <conf$$subs.awk | sed '
20511 ' >>$CONFIG_STATUS || ac_write_fail=1
20512 rm -f conf$$subs.awk
20513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20515 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20516 for (key in S) S_is_set[key] = 1
20522 nfields = split(line, field, "@
")
20524 len = length(field[1])
20525 for (i = 2; i < nfields; i++) {
20527 keylen = length(key)
20528 if (S_is_set[key]) {
20530 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20531 len += length(value) + length(field[++i])
20542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20543 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20544 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20547 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20548 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20551 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20552 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20553 # trailing colons and then remove the whole line if VPATH becomes empty
20554 # (actually we leave an empty line to preserve line numbers).
20555 if test "x
$srcdir" = x.; then
20556 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20575 fi # test -n "$CONFIG_FILES"
20577 # Set up the scripts for CONFIG_HEADERS section.
20578 # No need to generate them if there are no CONFIG_HEADERS.
20579 # This happens for instance with `./config.status Makefile'.
20580 if test -n "$CONFIG_HEADERS"; then
20581 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20585 # Transform confdefs.h into an awk script `defines.awk', embedded as
20586 # here-document in config.status, that substitutes the proper values into
20587 # config.h.in to produce config.h.
20589 # Create a delimiter string that does not exist in confdefs.h, to ease
20590 # handling of long lines.
20592 for ac_last_try in false false :; do
20593 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20594 if test -z "$ac_tt"; then
20596 elif $ac_last_try; then
20597 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20599 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20603 # For the awk script, D is an array of macro values keyed by name,
20604 # likewise P contains macro parameters if any. Preserve backslash
20605 # newline sequences.
20607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20609 s/.\{148\}/&'"$ac_delim"'/g
20612 s/^[ ]*#[ ]*define[ ][ ]*/ /
20619 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20621 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20625 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20626 D["\
1"]=" \
3\\\\\\n
"\\/p
20628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20633 s/.\{148\}/&'"$ac_delim"'/g
20638 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20641 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20643 ' <confdefs.h | sed '
20644 s/'"$ac_delim"'/"\\\
20645 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20648 for (key in D) D_is_set[key] = 1
20651 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20653 split(line, arg, " ")
20654 if (arg[1] == "#") {
20658 defundef
= substr
(arg
[1], 2)
20661 split(mac1
, mac2
, "(") #)
20663 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20664 if (D_is_set
[macro
]) {
20665 # Preserve the white space surrounding the "#".
20666 print prefix
"define", macro P
[macro
] D
[macro
]
20669 # Replace #undef with comments. This is necessary, for example,
20670 # in the case of _POSIX_SOURCE, which is predefined and required
20671 # on some systems where configure will not decide to define it.
20672 if (defundef
== "undef") {
20673 print
"/*", prefix defundef
, macro
, "*/"
20681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20682 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20683 fi # test -n "$CONFIG_HEADERS"
20686 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20691 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20693 case $ac_mode$ac_tag in
20695 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20696 :[FH
]-) ac_tag
=-:-;;
20697 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20714 -) ac_f
="$ac_tmp/stdin";;
20715 *) # Look for the file first in the build tree, then in the source tree
20716 # (if the path is not absolute). The absolute path cannot be DOS-style,
20717 # because $ac_f cannot contain `:'.
20721 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20723 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20725 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20726 as_fn_append ac_file_inputs
" '$ac_f'"
20729 # Let's still pretend it is `configure' which instantiates (i.e., don't
20730 # use $as_me), people would be surprised to read:
20731 # /* config.h. Generated by config.status. */
20732 configure_input
='Generated from '`
20733 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20735 if test x
"$ac_file" != x-
; then
20736 configure_input
="$ac_file. $configure_input"
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20738 $as_echo "$as_me: creating $ac_file" >&6;}
20740 # Neutralize special characters interpreted by sed in replacement strings.
20741 case $configure_input in #(
20742 *\
&* |
*\|
* |
*\\* )
20743 ac_sed_conf_input
=`$as_echo "$configure_input" |
20744 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20745 *) ac_sed_conf_input
=$configure_input;;
20749 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20750 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20755 ac_dir
=`$as_dirname -- "$ac_file" ||
20756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20757 X"$ac_file" : 'X\(//\)[^/]' \| \
20758 X"$ac_file" : 'X\(//\)$' \| \
20759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20760 $as_echo X"$ac_file" |
20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20765 /^X\(\/\/\)[^/].*/{
20778 as_dir
="$ac_dir"; as_fn_mkdir_p
20782 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20784 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20785 # A ".." for each directory in $ac_dir_suffix.
20786 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20787 case $ac_top_builddir_sub in
20788 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20789 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20792 ac_abs_top_builddir
=$ac_pwd
20793 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20794 # for backward compatibility:
20795 ac_top_builddir
=$ac_top_build_prefix
20798 .
) # We are building in place.
20800 ac_top_srcdir
=$ac_top_builddir_sub
20801 ac_abs_top_srcdir
=$ac_pwd ;;
20802 [\\/]* | ?
:[\\/]* ) # Absolute name.
20803 ac_srcdir
=$srcdir$ac_dir_suffix;
20804 ac_top_srcdir
=$srcdir
20805 ac_abs_top_srcdir
=$srcdir ;;
20806 *) # Relative name.
20807 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20808 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20809 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20811 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20821 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20822 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20824 ac_MKDIR_P
=$MKDIR_P
20826 [\\/$
]* | ?
:[\\/]* ) ;;
20827 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20832 # If the template does not know about datarootdir, expand it.
20833 # FIXME: This hack should be removed a few years after 2.60.
20834 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20845 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20846 *datarootdir
*) ac_datarootdir_seen
=yes;;
20847 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20849 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20852 ac_datarootdir_hack='
20853 s&@datadir@&$datadir&g
20854 s&@docdir@&$docdir&g
20855 s&@infodir@&$infodir&g
20856 s&@localedir@&$localedir&g
20857 s&@mandir@&$mandir&g
20858 s&\\\${datarootdir}&$datarootdir&g' ;;
20862 # Neutralize VPATH when `$srcdir' = `.'.
20863 # Shell code in configure.ac might set extrasub.
20864 # FIXME: do we really want to maintain this feature?
20865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866 ac_sed_extra="$ac_vpsub
20869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20871 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20872 s|@configure_input@|
$ac_sed_conf_input|
;t t
20873 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20874 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20875 s
&@srcdir@
&$ac_srcdir&;t t
20876 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20877 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20878 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20879 s
&@builddir@
&$ac_builddir&;t t
20880 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20881 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20882 s
&@INSTALL@
&$ac_INSTALL&;t t
20883 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20884 $ac_datarootdir_hack
20886 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20887 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20889 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20890 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20891 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20892 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20894 which seems to be undefined. Please make sure it is defined" >&5
20895 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20896 which seems to be undefined. Please make sure it is defined" >&2;}
20898 rm -f "$ac_tmp/stdin"
20900 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20901 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20909 if test x"$ac_file" != x-; then
20911 $as_echo "/* $configure_input */" \
20912 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20913 } >"$ac_tmp/config.h" \
20914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20915 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20917 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20920 mv "$ac_tmp/config.h" "$ac_file" \
20921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20924 $as_echo "/* $configure_input */" \
20925 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20926 || as_fn_error $? "could not create -" "$LINENO" 5
20934 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20937 # Prefer the file from the source tree if names are identical.
20938 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20939 ac_source=$srcdir/$ac_source
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20943 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20945 if test ! -r "$ac_source"; then
20946 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20950 # Try a relative symlink, then a hard link, then a copy.
20952 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20953 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20955 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20956 ln "$ac_source" "$ac_file" 2>/dev/null ||
20957 cp -p "$ac_source" "$ac_file" ||
20958 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20961 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20962 $as_echo "$as_me: executing $ac_file commands" >&6;}
20967 case $ac_file$ac_mode in
20968 "check_win32_symlinks":C)
20969 # Links sometimes fail undetected on Mingw -
20970 # so here we detect it and warn the user
20971 for FILE in $CONFIG_LINKS
20973 # test -e works for symlinks in the MinGW console
20974 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20975 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20978 "src/include/pg_config.h":H)
20979 # Update timestamp for pg_config.h (see Makefile.global)
20980 echo >src/include/stamp-h
20982 "src/include/pg_config_ext.h":H)
20983 # Update timestamp for pg_config_ext.h (see Makefile.global)
20984 echo >src/include/stamp-ext-h
20986 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20994 ac_clean_files=$ac_clean_files_save
20996 test $ac_write_fail = 0 ||
20997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21000 # configure is writing to config.log, and then calls config.status.
21001 # config.status does its own redirection, appending to config.log.
21002 # Unfortunately, on DOS this fails, as config.log is still kept open
21003 # by configure, so config.status won't be able to
write to it
; its
21004 # output is simply discarded. So we exec the FD to /dev/null,
21005 # effectively closing config.log, so it can be properly (re)opened and
21006 # appended to by config.status. When coming back to configure, we
21007 # need to make the FD available again.
21008 if test "$no_create" != yes; then
21010 ac_config_status_args
=
21011 test "$silent" = yes &&
21012 ac_config_status_args
="$ac_config_status_args --quiet"
21014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21017 # would make configure fail if this is the last instruction.
21018 $ac_cs_success || as_fn_exit
1
21020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}