2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 17.0.
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-2024, 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
='17.0'
586 PACKAGE_STRING
='PostgreSQL 17.0'
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
669 python_additional_libs
744 PERMIT_DECLARATION_AFTER_STATEMENT
765 enable_injection_points
816 program_transform_name
829 enable_option_checking
835 enable_integer_datetimes
846 enable_injection_points
868 with_libedit_preferred
881 ac_precious_vars
='build_alias
915 # Initialize some variables set by options.
917 ac_init_version
=false
918 ac_unrecognized_opts
=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name
=s
,x
,x
,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir
='${exec_prefix}/bin'
944 sbindir
='${exec_prefix}/sbin'
945 libexecdir
='${exec_prefix}/libexec'
946 datarootdir
='${prefix}/share'
947 datadir
='${datarootdir}'
948 sysconfdir
='${prefix}/etc'
949 sharedstatedir
='${prefix}/com'
950 localstatedir
='${prefix}/var'
951 includedir
='${prefix}/include'
952 oldincludedir
='/usr/include'
953 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir
='${datarootdir}/info'
959 libdir
='${exec_prefix}/lib'
960 localedir
='${datarootdir}/locale'
961 mandir
='${datarootdir}/man'
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\
$ac_option
975 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
986 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
988 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
991 -build |
--build |
--buil |
--bui |
--bu)
992 ac_prev
=build_alias
;;
993 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
994 build_alias
=$ac_optarg ;;
996 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
997 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
998 ac_prev
=cache_file
;;
999 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1000 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1001 cache_file
=$ac_optarg ;;
1003 --config-cache |
-C)
1004 cache_file
=config.cache
;;
1006 -datadir |
--datadir |
--datadi |
--datad)
1008 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1009 datadir
=$ac_optarg ;;
1011 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1012 |
--dataroo |
--dataro |
--datar)
1013 ac_prev
=datarootdir
;;
1014 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1015 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1016 datarootdir
=$ac_optarg ;;
1018 -disable-* |
--disable-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error $?
"invalid feature name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=no
;;
1034 -docdir |
--docdir |
--docdi |
--doc |
--do)
1036 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1037 docdir
=$ac_optarg ;;
1039 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1041 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1042 dvidir
=$ac_optarg ;;
1044 -enable-* |
--enable-*)
1045 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1048 as_fn_error $?
"invalid feature name: $ac_useropt"
1049 ac_useropt_orig
=$ac_useropt
1050 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_
$ac_useropt"
1055 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep
=', ';;
1058 eval enable_
$ac_useropt=\
$ac_optarg ;;
1060 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1061 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1062 |
--exec |
--exe |
--ex)
1063 ac_prev
=exec_prefix
;;
1064 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1065 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1066 |
--exec=* |
--exe=* |
--ex=*)
1067 exec_prefix
=$ac_optarg ;;
1069 -gas |
--gas |
--ga |
--g)
1070 # Obsolete; use --with-gas.
1073 -help |
--help |
--hel |
--he |
-h)
1074 ac_init_help
=long
;;
1075 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1076 ac_init_help
=recursive
;;
1077 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1078 ac_init_help
=short
;;
1080 -host |
--host |
--hos |
--ho)
1081 ac_prev
=host_alias
;;
1082 -host=* |
--host=* |
--hos=* |
--ho=*)
1083 host_alias
=$ac_optarg ;;
1085 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1087 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1089 htmldir
=$ac_optarg ;;
1091 -includedir |
--includedir |
--includedi |
--included |
--include \
1092 |
--includ |
--inclu |
--incl |
--inc)
1093 ac_prev
=includedir
;;
1094 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1095 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1096 includedir
=$ac_optarg ;;
1098 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1100 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1101 infodir
=$ac_optarg ;;
1103 -libdir |
--libdir |
--libdi |
--libd)
1105 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1106 libdir
=$ac_optarg ;;
1108 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1109 |
--libexe |
--libex |
--libe)
1110 ac_prev
=libexecdir
;;
1111 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1112 |
--libexe=* |
--libex=* |
--libe=*)
1113 libexecdir
=$ac_optarg ;;
1115 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1116 ac_prev
=localedir
;;
1117 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1118 localedir
=$ac_optarg ;;
1120 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1121 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1122 ac_prev
=localstatedir
;;
1123 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1124 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1125 localstatedir
=$ac_optarg ;;
1127 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1129 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1130 mandir
=$ac_optarg ;;
1132 -nfp |
--nfp |
--nf)
1133 # Obsolete; use --without-fp.
1136 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1137 |
--no-cr |
--no-c |
-n)
1140 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1141 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1144 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1145 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1146 |
--oldin |
--oldi |
--old |
--ol |
--o)
1147 ac_prev
=oldincludedir
;;
1148 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1149 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1150 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1151 oldincludedir
=$ac_optarg ;;
1153 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1155 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1156 prefix
=$ac_optarg ;;
1158 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1159 |
--program-pre |
--program-pr |
--program-p)
1160 ac_prev
=program_prefix
;;
1161 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1162 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1163 program_prefix
=$ac_optarg ;;
1165 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1166 |
--program-suf |
--program-su |
--program-s)
1167 ac_prev
=program_suffix
;;
1168 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1169 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1170 program_suffix
=$ac_optarg ;;
1172 -program-transform-name |
--program-transform-name \
1173 |
--program-transform-nam |
--program-transform-na \
1174 |
--program-transform-n |
--program-transform- \
1175 |
--program-transform |
--program-transfor \
1176 |
--program-transfo |
--program-transf \
1177 |
--program-trans |
--program-tran \
1178 |
--progr-tra |
--program-tr |
--program-t)
1179 ac_prev
=program_transform_name
;;
1180 -program-transform-name=* |
--program-transform-name=* \
1181 |
--program-transform-nam=* |
--program-transform-na=* \
1182 |
--program-transform-n=* |
--program-transform-=* \
1183 |
--program-transform=* |
--program-transfor=* \
1184 |
--program-transfo=* |
--program-transf=* \
1185 |
--program-trans=* |
--program-tran=* \
1186 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1187 program_transform_name
=$ac_optarg ;;
1189 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1191 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1192 pdfdir
=$ac_optarg ;;
1194 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1196 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1199 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1200 |
-silent |
--silent |
--silen |
--sile |
--sil)
1203 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1205 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1207 sbindir
=$ac_optarg ;;
1209 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1210 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1211 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1213 ac_prev
=sharedstatedir
;;
1214 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1215 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1216 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1218 sharedstatedir
=$ac_optarg ;;
1220 -site |
--site |
--sit)
1222 -site=* |
--site=* |
--sit=*)
1225 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1227 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1228 srcdir
=$ac_optarg ;;
1230 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1231 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1232 ac_prev
=sysconfdir
;;
1233 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1234 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1235 sysconfdir
=$ac_optarg ;;
1237 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1238 ac_prev
=target_alias
;;
1239 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1240 target_alias
=$ac_optarg ;;
1242 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1245 -version |
--version |
--versio |
--versi |
--vers |
-V)
1246 ac_init_version
=: ;;
1249 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1252 as_fn_error $?
"invalid package name: $ac_useropt"
1253 ac_useropt_orig
=$ac_useropt
1254 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1259 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260 ac_unrecognized_sep
=', ';;
1262 eval with_
$ac_useropt=\
$ac_optarg ;;
1264 -without-* |
--without-*)
1265 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1268 as_fn_error $?
"invalid package name: $ac_useropt"
1269 ac_useropt_orig
=$ac_useropt
1270 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1275 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276 ac_unrecognized_sep
=', ';;
1278 eval with_
$ac_useropt=no
;;
1281 # Obsolete; use --with-x.
1284 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1285 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1286 ac_prev
=x_includes
;;
1287 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1288 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1289 x_includes
=$ac_optarg ;;
1291 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1292 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1293 ac_prev
=x_libraries
;;
1294 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1295 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1296 x_libraries
=$ac_optarg ;;
1298 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1299 Try \`$0 --help' for more information"
1303 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 case $ac_envvar in #(
1306 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1307 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1309 eval $ac_envvar=\
$ac_optarg
1310 export $ac_envvar ;;
1313 # FIXME: should be removed in autoconf 3.0.
1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 if test -n "$ac_prev"; then
1324 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1325 as_fn_error $?
"missing argument to $ac_option"
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1331 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 # Check all directory arguments for consistency.
1337 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val
=\$
$ac_var
1343 # Remove trailing slashes.
1346 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347 eval $ac_var=\
$ac_val;;
1349 # Be sure to have absolute directory names.
1351 [\\/$
]* | ?
:[\\/]* ) continue;;
1352 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1354 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1362 target
=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x
; then
1366 if test "x$build_alias" = x
; then
1367 cross_compiling
=maybe
1368 elif test "x$build_alias" != "x$host_alias"; then
1374 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1376 test "$silent" = yes && exec 6>/dev
/null
1379 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di
=`ls -di .` &&
1381 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1382 as_fn_error $?
"working directory cannot be determined"
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 as_fn_error $?
"pwd does not report name of working directory"
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted
=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir
=`$as_dirname -- "$as_myself" ||
1392 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$as_myself" : 'X\(//\)[^/]' \| \
1394 X"$as_myself" : 'X\(//\)$' \| \
1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1396 $as_echo X"$as_myself" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1419 ac_srcdir_defaulted
=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1423 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1425 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1437 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439 for ac_var
in $ac_precious_vars; do
1440 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1442 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1453 \`configure' configures PostgreSQL 17.0 to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1511 --build=BUILD configure
for building on BUILD
[guessed
]
1512 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive
) echo "Configuration of PostgreSQL 17.0:";;
1523 --disable-option-checking ignore unrecognized
--enable/--with options
1524 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1525 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1526 --disable-integer-datetimes
1527 obsolete option
, no longer supported
1528 --enable-nls[=LANGUAGES
]
1529 enable Native Language Support
1530 --disable-rpath do not embed shared library search path
in
1532 --disable-spinlocks do not use spinlocks
1533 --disable-atomics do not use atomic operations
1534 --enable-debug build with debugging symbols
(-g)
1535 --enable-profiling build with profiling enabled
1536 --enable-coverage build with coverage testing instrumentation
1537 --enable-dtrace build with DTrace support
1538 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1539 --enable-injection-points
1540 enable injection points
(for testing
)
1541 --enable-depend turn on automatic dependency tracking
1542 --enable-cassert enable assertion checks
(for debugging
)
1543 --disable-largefile omit support
for large files
1546 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1547 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1548 --with-extra-version=STRING
1549 append STRING to version
1550 --with-template=NAME override operating system template
1551 --with-includes=DIRS
look for additional header files
in DIRS
1552 --with-libraries=DIRS
look for additional libraries
in DIRS
1553 --with-libs=DIRS alternative spelling of
--with-libraries
1554 --with-pgport=PORTNUM
set default port number
[5432]
1555 --with-blocksize=BLOCKSIZE
1556 set table block size
in kB
[8]
1557 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1558 --with-segsize-blocks=SEGSIZE_BLOCKS
1559 set table segment size
in blocks
[0]
1560 --with-wal-blocksize=BLOCKSIZE
1561 set WAL block size
in kB
[8]
1562 --with-llvm build with LLVM based JIT support
1563 --without-icu build without ICU support
1564 --with-tcl build Tcl modules
(PL
/Tcl
)
1565 --with-tclconfig=DIR tclConfig.sh is
in DIR
1566 --with-perl build Perl modules
(PL
/Perl
)
1567 --with-python build Python modules
(PL
/Python
)
1568 --with-gssapi build with GSSAPI support
1569 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1571 --with-pam build with PAM support
1572 --with-bsd-auth build with BSD Authentication support
1573 --with-ldap build with LDAP support
1574 --with-bonjour build with Bonjour support
1575 --with-selinux build with SELinux support
1576 --with-systemd build with systemd support
1577 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1578 --with-libedit-preferred
1579 prefer BSD Libedit over GNU Readline
1580 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1581 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1582 --with-libxml build with XML support
1583 --with-libxslt use XSLT support when building contrib
/xml2
1584 --with-system-tzdata=DIR
1585 use system
time zone data
in DIR
1586 --without-zlib do not use Zlib
1587 --with-lz4 build with LZ4 support
1588 --with-zstd build with ZSTD support
1589 --with-ssl=LIB use LIB
for SSL
/TLS support
(openssl
)
1590 --with-openssl obsolete spelling of
--with-ssl=openssl
1592 Some influential environment variables
:
1593 CC C compiler
command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1596 nonstandard directory
<lib dir
>
1597 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1598 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1599 you have headers
in a nonstandard directory
<include dir
>
1600 CXX C
++ compiler
command
1601 CXXFLAGS C
++ compiler flags
1602 LLVM_CONFIG path to llvm-config
command
1603 CLANG path to clang compiler to generate bitcode
1605 PKG_CONFIG path to pkg-config utility
1607 directories to add to pkg-config
's search path
1609 path overriding pkg-config's built-in search path
1610 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1611 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1612 XML2_CONFIG path to xml2-config utility
1613 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1614 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1615 LZ4_CFLAGS C compiler flags
for LZ4
, overriding pkg-config
1616 LZ4_LIBS linker flags
for LZ4
, overriding pkg-config
1617 ZSTD_CFLAGS C compiler flags
for ZSTD
, overriding pkg-config
1618 ZSTD_LIBS linker flags
for ZSTD
, overriding pkg-config
1619 LDFLAGS_EX extra linker flags
for linking executables only
1620 LDFLAGS_SL extra linker flags
for linking shared libraries only
1622 PYTHON Python program
1623 MSGFMT msgfmt program
for NLS
1624 TCLSH Tcl interpreter program
(tclsh
)
1626 Use these variables to override the choices made by
`configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1629 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1630 PostgreSQL home page: <https://www.postgresql.org/>.
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1660 .) # We are building in place.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1693 PostgreSQL configure 17.0
1694 generated by GNU Autoconf 2.69
1696 Copyright (C) 2012 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1700 Copyright (c) 1996-2024, PostgreSQL Global Development Group
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1719 *) ac_try_echo
=$ac_try;;
1721 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1725 if test -s conftest.err
; then
1726 grep -v '^ *+' conftest.err
>conftest.er1
1727 cat conftest.er1
>&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.
$ac_objext; then :
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.
$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status
$ac_retval
1745 } # ac_fn_c_try_compile
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile
()
1752 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1753 rm -f conftest.
$ac_objext
1754 if { { ac_try
="$ac_compile"
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_cxx_try_compile
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1795 *) ac_try_echo
=$ac_try;;
1797 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1801 if test -s conftest.err
; then
1802 grep -v '^ *+' conftest.err
>conftest.er1
1803 cat conftest.er1
>&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest
$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest
$ac_exeext
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.
$ac_ext >&5
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status
$ac_retval
1829 } # ac_fn_c_try_link
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1837 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i && {
1853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1868 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1871 # the include files in INCLUDES and setting the cache variable VAR
1873 ac_fn_c_check_header_mongrel ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if eval \${$3+:} false; then :
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1886 # Is the header compilable?
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1888 $as_echo_n "checking $2 usability... " >&6; }
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 ac_header_compiler=yes
1897 ac_header_compiler=no
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1901 $as_echo "$ac_header_compiler" >&6; }
1903 # Is the header present?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1905 $as_echo_n "checking $2 presence... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 if ac_fn_c_try_cpp "$LINENO"; then :
1911 ac_header_preproc=yes
1913 ac_header_preproc=no
1915 rm -f conftest.err conftest.i conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1917 $as_echo "$ac_header_preproc" >&6; }
1919 # So? What about this header?
1920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1923 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1929 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1931 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1933 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1935 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 ( $as_echo "## ---------------------------------------------- ##
1939 ## Report this to pgsql-bugs@lists.postgresql.org ##
1940 ## ---------------------------------------------- ##"
1941 ) | sed "s/^/$as_me: WARNING: /" >&2
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 eval "$3=\$ac_header_compiler"
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_header_mongrel
1959 # ac_fn_c_try_run LINENO
1960 # ----------------------
1961 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1962 # that executables *can* be run.
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { { ac_try="$ac_link"
1968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1969 *) ac_try_echo
=$ac_try;;
1971 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_link") 2>&5
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1977 { { case "(($ac_try" in
1978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_try") 2>&5
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; }; }; then :
1989 $as_echo "$as_me: program exited with status $ac_status" >&5
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 ac_retval=$ac_status
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
2001 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2002 # -------------------------------------------------------
2003 # Tests whether HEADER exists and can be compiled using the include files in
2004 # INCLUDES, setting the cache variable VAR accordingly.
2005 ac_fn_c_check_header_compile ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2018 if ac_fn_c_try_compile "$LINENO"; then :
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 } # ac_fn_c_check_header_compile
2032 # ac_fn_c_check_func LINENO FUNC VAR
2033 # ----------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_c_check_func ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2047 #define $2 innocuous_$2
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char $2 (); below.
2051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052 <limits.h> exists even on freestanding compilers. */
2055 # include <limits.h>
2057 # include <assert.h>
2062 /* Override any GCC internal prototype to avoid an error.
2063 Use char because int might match the return type of a GCC
2064 builtin and then its argument prototype would still apply. */
2069 /* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072 #if defined __stub_$2 || defined __stub___$2
2084 if ac_fn_c_try_link "$LINENO"; then :
2089 rm -f core conftest.err conftest.$ac_objext \
2090 conftest$ac_exeext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_func
2099 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2100 # -------------------------------------------
2101 # Tests whether TYPE exists after having included INCLUDES, setting cache
2102 # variable VAR accordingly.
2103 ac_fn_c_check_type ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2137 if ac_fn_c_try_compile "$LINENO"; then :
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_type
2153 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2154 # ----------------------------------------------------
2155 # Tries to find if the field MEMBER exists in type AGGR, after including
2156 # INCLUDES, setting cache variable VAR accordingly.
2157 ac_fn_c_check_member ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2161 $as_echo_n "checking for $2.$3... " >&6; }
2162 if eval \${$4+:} false; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2188 if (sizeof ac_aggr.$3)
2194 if ac_fn_c_try_compile "$LINENO"; then :
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_c_check_member
2210 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2211 # --------------------------------------------
2212 # Tries to find the compile-time value of EXPR in a program that includes
2213 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2215 ac_fn_c_compute_int ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if test "$cross_compiling" = yes; then
2219 # Depending upon the size, compute the lo and hi bounds.
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 static int test_array [1 - 2 * !(($2) >= 0)];
2228 return test_array [0];
2234 if ac_fn_c_try_compile "$LINENO"; then :
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2243 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2245 return test_array [0];
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 ac_hi=$ac_mid; break
2254 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2255 if test $ac_lo -le $ac_mid; then
2259 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) < 0)];
2272 return test_array [0];
2278 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2289 return test_array [0];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_lo=$ac_mid; break
2298 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2299 if test $ac_mid -le $ac_hi; then
2303 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 # Binary search between lo and hi bounds.
2314 while test "x$ac_lo" != "x$ac_hi"; do
2315 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2324 return test_array [0];
2330 if ac_fn_c_try_compile "$LINENO"; then :
2333 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2345 static long int longval () { return $2; }
2346 static unsigned long int ulongval () { return $2; }
2353 FILE *f = fopen ("conftest.val", "w");
2358 long int i = longval ();
2361 fprintf (f, "%ld", i);
2365 unsigned long int i = ulongval ();
2368 fprintf (f, "%lu", i);
2370 /* Do not output a trailing newline, as this causes \r\n confusion
2371 on some platforms. */
2372 return ferror (f) || fclose (f) != 0;
2378 if ac_fn_c_try_run "$LINENO"; then :
2379 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2384 conftest.$ac_objext conftest.beam conftest.$ac_ext
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389 as_fn_set_status $ac_retval
2391 } # ac_fn_c_compute_int
2393 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2394 # ---------------------------------------------
2395 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2397 ac_fn_c_check_decl ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2401 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2402 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2404 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2405 if eval \${$3+:} false; then :
2406 $as_echo_n "(cached) " >&6
2408 ac_save_werror_flag=$ac_c_werror_flag
2409 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2416 #ifndef $as_decl_name
2418 (void) $as_decl_use;
2420 (void) $as_decl_name;
2428 if ac_fn_c_try_compile "$LINENO"; then :
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 ac_c_werror_flag=$ac_save_werror_flag
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438 $as_echo "$ac_res" >&6; }
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441 } # ac_fn_c_check_decl
2442 cat >config.log <<_ACEOF
2443 This file contains any messages produced by compilers while
2444 running configure, to aid debugging if configure makes a mistake.
2446 It was created by PostgreSQL $as_me 17.0, which was
2447 generated by GNU Autoconf 2.69. Invocation command line was
2459 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2460 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2461 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2462 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2463 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2465 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2466 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2468 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2469 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2470 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2471 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2472 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2473 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2474 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 $as_echo "PATH: $as_dir"
2499 # Keep a trace of the command line.
2500 # Strip out --no-create and --no-recursion so they do not pile up.
2501 # Strip out --silent because we don't want to record it for future runs.
2502 # Also quote any args containing shell meta-characters.
2503 # Make two passes to allow for proper duplicate-argument suppression.
2507 ac_must_keep_next=false
2513 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2515 | -silent | --silent | --silen | --sile | --sil)
2518 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2521 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2523 as_fn_append ac_configure_args1 " '$ac_arg'"
2524 if test $ac_must_keep_next = true; then
2525 ac_must_keep_next=false # Got value, back to normal.
2528 *=* | --config-cache | -C | -disable-* | --disable-* \
2529 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2530 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2531 | -with-* | --with-* | -without-* | --without-* | --x)
2532 case "$ac_configure_args0 " in
2533 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2536 -* ) ac_must_keep_next=true ;;
2539 as_fn_append ac_configure_args " '$ac_arg'"
2544 { ac_configure_args0=; unset ac_configure_args0;}
2545 { ac_configure_args1=; unset ac_configure_args1;}
2547 # When interrupted or exit'd, cleanup temporary files, and complete
2548 # config.log. We remove comments because anyway the quotes in there
2549 # would cause problems or look ugly.
2550 # WARNING: Use '\'' to represent an apostrophe within the trap.
2551 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2552 trap 'exit_status=$?
2553 # Save into config.log some information that might help in debugging.
2557 $as_echo "## ---------------- ##
2558 ## Cache variables. ##
2559 ## ---------------- ##"
2561 # The following way of writing the cache mishandles newlines in values,
2563 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2564 eval ac_val=\$$ac_var
2568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2572 _ | IFS | as_nl) ;; #(
2573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2574 *) { eval $ac_var=; unset $ac_var;} ;;
2579 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2580 *${as_nl}ac_space=\ *)
2582 "s/'\''/'\''\\\\'\'''\''/g;
2583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2593 $as_echo "## ----------------- ##
2594 ## Output variables. ##
2595 ## ----------------- ##"
2597 for ac_var in $ac_subst_vars
2599 eval ac_val=\$$ac_var
2601 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2603 $as_echo "$ac_var='\''$ac_val'\''"
2607 if test -n "$ac_subst_files"; then
2608 $as_echo "## ------------------- ##
2609 ## File substitutions. ##
2610 ## ------------------- ##"
2612 for ac_var in $ac_subst_files
2614 eval ac_val=\$$ac_var
2616 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2618 $as_echo "$ac_var='\''$ac_val'\''"
2623 if test -s confdefs.h; then
2624 $as_echo "## ----------- ##
2631 test "$ac_signal" != 0 &&
2632 $as_echo "$as_me: caught signal $ac_signal"
2633 $as_echo "$as_me: exit $exit_status"
2635 rm -f core *.core core.conftest.* &&
2636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2639 for ac_signal in 1 2 13 15; do
2640 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2645 rm -f -r conftest* confdefs.h
2647 $as_echo "/* confdefs.h */" > confdefs.h
2649 # Predefined preprocessor variables.
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_NAME "$PACKAGE_NAME"
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_STRING "$PACKAGE_STRING"
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_URL "$PACKAGE_URL"
2676 # Let the site file select an alternate cache file if it wants to.
2677 # Prefer an explicitly selected file to automatically selected ones.
2680 if test -n "$CONFIG_SITE"; then
2681 # We do not want a PATH search for config.site.
2682 case $CONFIG_SITE in #((
2683 -*) ac_site_file1=./$CONFIG_SITE;;
2684 */*) ac_site_file1=$CONFIG_SITE;;
2685 *) ac_site_file1=./$CONFIG_SITE;;
2687 elif test "x$prefix" != xNONE; then
2688 ac_site_file1=$prefix/share/config.site
2689 ac_site_file2=$prefix/etc/config.site
2691 ac_site_file1=$ac_default_prefix/share/config.site
2692 ac_site_file2=$ac_default_prefix/etc/config.site
2694 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2696 test "x$ac_site_file" = xNONE && continue
2697 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2699 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2700 sed 's/^/| /' "$ac_site_file" >&5
2702 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error $? "failed to load site
script $ac_site_file
2705 See \
`config.log' for more details" "$LINENO" 5; }
2709 if test -r "$cache_file"; then
2710 # Some versions of bash will fail to source /dev/null (special files
2711 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2712 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714 $as_echo "$as_me: loading cache $cache_file" >&6;}
2716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717 *) . "./$cache_file";;
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722 $as_echo "$as_me: creating cache $cache_file" >&6;}
2726 # Check that the precious variables saved in the cache have kept the same
2728 ac_cache_corrupted=false
2729 for ac_var in $ac_precious_vars; do
2730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731 eval ac_new_set=\$ac_env_${ac_var}_set
2732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733 eval ac_new_val=\$ac_env_${ac_var}_value
2734 case $ac_old_set,$ac_new_set in
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2737 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2741 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2742 ac_cache_corrupted=: ;;
2745 if test "x$ac_old_val" != "x$ac_new_val"; then
2746 # differences in whitespace do not lead to failure.
2747 ac_old_val_w=`echo x
$ac_old_val`
2748 ac_new_val_w=`echo x
$ac_new_val`
2749 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2751 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2752 ac_cache_corrupted=:
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2755 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2756 eval $ac_var=\$ac_old_val
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2759 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2761 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2764 # Pass precious variables to config.status.
2765 if test "$ac_new_set" = set; then
2767 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2768 *) ac_arg=$ac_var=$ac_new_val ;;
2770 case " $ac_configure_args " in
2771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2772 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2776 if $ac_cache_corrupted; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2781 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2783 ## -------------------- ##
2784 ## Main body of script. ##
2785 ## -------------------- ##
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 for ac_dir in config "$srcdir"/config; do
2800 if test -f "$ac_dir/install-sh"; then
2802 ac_install_sh="$ac_aux_dir/install-sh -c"
2804 elif test -f "$ac_dir/install.sh"; then
2806 ac_install_sh="$ac_aux_dir/install.sh -c"
2808 elif test -f "$ac_dir/shtool"; then
2810 ac_install_sh="$ac_aux_dir/shtool install -c"
2814 if test -z "$ac_aux_dir"; then
2815 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2818 # These three variables are undocumented and unsupported,
2819 # and are intended to be withdrawn in a future Autoconf release.
2820 # They can cause serious problems if a builder's source tree is in a directory
2821 # whose full name contains unusual characters.
2822 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2823 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2824 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2829 cat >>confdefs.h <<_ACEOF
2830 #define CONFIGURE_ARGS "$ac_configure_args"
2834 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2835 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2836 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2839 cat >>confdefs.h <<_ACEOF
2840 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2849 cat >>confdefs.h <<_ACEOF
2850 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2857 # Check whether --with-extra-version was given.
2858 if test "${with_extra_version+set}" = set; then :
2859 withval=$with_extra_version;
2862 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2865 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2868 PG_VERSION="$PACKAGE_VERSION$withval"
2873 PG_VERSION="$PACKAGE_VERSION"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PG_VERSION "$PG_VERSION"
2883 # Make sure we can run config.sub.
2884 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2885 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2888 $as_echo_n "checking build system type... " >&6; }
2889 if ${ac_cv_build+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 ac_build_alias=$build_alias
2893 test "x$ac_build_alias" = x &&
2894 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2895 test "x$ac_build_alias" = x &&
2896 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2897 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2898 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2902 $as_echo "$ac_cv_build" >&6; }
2903 case $ac_cv_build in
2905 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2908 ac_save_IFS=$IFS; IFS='-'
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2918 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2922 $as_echo_n "checking host system type... " >&6; }
2923 if ${ac_cv_host+:} false; then :
2924 $as_echo_n "(cached) " >&6
2926 if test "x$host_alias" = x; then
2927 ac_cv_host=$ac_cv_build
2929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2935 $as_echo "$ac_cv_host" >&6; }
2938 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2941 ac_save_IFS=$IFS; IFS='-'
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2951 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2957 $as_echo_n "checking which template to use... " >&6; }
2962 # Check whether --with-template was given.
2963 if test "${with_template+set}" = set; then :
2964 withval=$with_template;
2967 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2970 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2975 list) echo; ls "$srcdir/src/template"; exit;;
2976 *) if test -f "$srcdir/src/template/$with_template" ; then
2979 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2988 # --with-template not given
2991 cygwin*|msys*) template=cygwin ;;
2992 darwin*) template=darwin ;;
2993 dragonfly*) template=netbsd ;;
2994 freebsd*) template=freebsd ;;
2995 linux*|gnu*|k*bsd*-gnu)
2997 mingw*) template=win32 ;;
2998 netbsd*) template=netbsd ;;
2999 openbsd*) template=openbsd ;;
3000 solaris*) template=solaris ;;
3003 if test x"$template" = x"" ; then
3005 *******************************************************************
3006 PostgreSQL has apparently not been ported to your platform yet.
3007 To try a manual configuration, look into the src/template directory
3008 for a similar platform and use the '--with-template=' option.
3010 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
3011 rectifying this. Include the above 'checking host system type...'
3013 *******************************************************************
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3023 $as_echo "$template" >&6; }
3028 # Initialize default assumption that we do not need separate assembly code
3029 # for TAS (test-and-set). This can be overridden by the template file
3030 # when it's executed.
3034 # Default, works for most platforms, override in template file if needed
3040 ## Command line options
3044 # Add non-standard directories to the include path
3049 # Check whether --with-includes was given.
3050 if test "${with_includes+set}" = set; then :
3051 withval=$with_includes;
3054 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3057 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3070 # Add non-standard directories to the library search path
3075 # Check whether --with-libraries was given.
3076 if test "${with_libraries+set}" = set; then :
3077 withval=$with_libraries;
3080 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3083 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3086 LIBRARY_DIRS=$withval
3097 # Check whether --with-libs was given.
3098 if test "${with_libs+set}" = set; then :
3102 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3105 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3108 LIBRARY_DIRS=$withval
3118 # 64-bit integer date/time storage is now the only option, but to avoid
3119 # unnecessary breakage of build scripts, continue to accept an explicit
3120 # "--enable-integer-datetimes" switch.
3124 # Check whether --enable-integer-datetimes was given.
3125 if test "${enable_integer_datetimes+set}" = set; then :
3126 enableval=$enable_integer_datetimes;
3132 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3135 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3140 enable_integer_datetimes=yes
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3151 $as_echo_n "checking whether NLS is wanted... " >&6; }
3154 # Check whether --enable-nls was given.
3155 if test "${enable_nls+set}" = set; then :
3156 enableval=$enable_nls;
3166 WANTED_LANGUAGES=$enableval
3176 if test "$enable_nls" = yes; then
3178 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3183 $as_echo "$enable_nls" >&6; }
3188 # Default port number (--with-pgport), default 5432
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3191 $as_echo_n "checking for default port number... " >&6; }
3195 # Check whether --with-pgport was given.
3196 if test "${with_pgport+set}" = set; then :
3197 withval=$with_pgport;
3200 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3203 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3206 default_port=$withval
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3216 $as_echo "$default_port" >&6; }
3217 # Need both of these because some places want an integer and some a string
3219 cat >>confdefs.h <<_ACEOF
3220 #define DEF_PGPORT ${default_port}
3224 cat >>confdefs.h <<_ACEOF
3225 #define DEF_PGPORT_STR "${default_port}"
3230 # It's worth validating port; you can get very confusing errors otherwise
3231 if test x"$default_port" = x""; then
3232 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3233 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3234 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3235 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3236 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3237 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3238 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3242 # '-rpath'-like feature can be disabled
3246 # Check whether --enable-rpath was given.
3247 if test "${enable_rpath+set}" = set; then :
3248 enableval=$enable_rpath;
3257 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3274 # Check whether --enable-spinlocks was given.
3275 if test "${enable_spinlocks+set}" = set; then :
3276 enableval=$enable_spinlocks;
3285 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3290 enable_spinlocks=yes
3301 # Check whether --enable-atomics was given.
3302 if test "${enable_atomics+set}" = set; then :
3303 enableval=$enable_atomics;
3312 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3324 # --enable-debug adds -g to compiler flags
3328 # Check whether --enable-debug was given.
3329 if test "${enable_debug+set}" = set; then :
3330 enableval=$enable_debug;
3339 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3352 # --enable-profiling enables gcc profiling
3356 # Check whether --enable-profiling was given.
3357 if test "${enable_profiling+set}" = set; then :
3358 enableval=$enable_profiling;
3367 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3379 # --enable-coverage enables generation of code coverage metrics with gcov
3383 # Check whether --enable-coverage was given.
3384 if test "${enable_coverage+set}" = set; then :
3385 enableval=$enable_coverage;
3388 if test -z "$GCOV"; then
3391 # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy $ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_path_GCOV+:} false; then :
3396 $as_echo_n "(cached) " >&6
3400 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 GCOV=$ac_cv_path_GCOV
3422 if test -n "$GCOV"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3424 $as_echo "$GCOV" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$GCOV" && break
3435 # Report the value of GCOV in configure's output in all cases.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3437 $as_echo_n "checking for GCOV... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3439 $as_echo "$GCOV" >&6; }
3442 if test -z "$GCOV"; then
3443 as_fn_error $? "gcov not found" "$LINENO" 5
3445 if test -z "$LCOV"; then
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_path_LCOV+:} false; then :
3453 $as_echo_n "(cached) " >&6
3457 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 LCOV=$ac_cv_path_LCOV
3479 if test -n "$LCOV"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3481 $as_echo "$LCOV" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3488 test -n "$LCOV" && break
3492 # Report the value of LCOV in configure's output in all cases.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3494 $as_echo_n "checking for LCOV... " >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3496 $as_echo "$LCOV" >&6; }
3499 if test -z "$LCOV"; then
3500 as_fn_error $? "lcov not found" "$LINENO" 5
3502 if test -z "$GENHTML"; then
3503 for ac_prog in genhtml
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_path_GENHTML+:} false; then :
3510 $as_echo_n "(cached) " >&6
3514 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 GENHTML=$ac_cv_path_GENHTML
3536 if test -n "$GENHTML"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3538 $as_echo "$GENHTML" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3545 test -n "$GENHTML" && break
3549 # Report the value of GENHTML in configure's output in all cases.
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3551 $as_echo_n "checking for GENHTML... " >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3553 $as_echo "$GENHTML" >&6; }
3556 if test -z "$GENHTML"; then
3557 as_fn_error $? "genhtml not found" "$LINENO" 5
3564 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3581 # Check whether --enable-dtrace was given.
3582 if test "${enable_dtrace+set}" = set; then :
3583 enableval=$enable_dtrace;
3586 if test -z "$DTRACE"; then
3587 for ac_prog in dtrace
3589 # Extract the first word of "$ac_prog", so it can be a program name with args.
3590 set dummy $ac_prog; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_path_DTRACE+:} false; then :
3594 $as_echo_n "(cached) " >&6
3598 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 DTRACE=$ac_cv_path_DTRACE
3620 if test -n "$DTRACE"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3622 $as_echo "$DTRACE" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3629 test -n "$DTRACE" && break
3633 # Report the value of DTRACE in configure's output in all cases.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3635 $as_echo_n "checking for DTRACE... " >&6; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3637 $as_echo "$DTRACE" >&6; }
3640 if test -z "$DTRACE"; then
3641 as_fn_error $? "dtrace not found" "$LINENO" 5
3649 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3666 # Check whether --enable-tap-tests was given.
3667 if test "${enable_tap_tests+set}" = set; then :
3668 enableval=$enable_tap_tests;
3677 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3694 # Check whether --enable-injection-points was given.
3695 if test "${enable_injection_points+set}" = set; then :
3696 enableval=$enable_injection_points;
3700 $as_echo "#define USE_INJECTION_POINTS 1" >>confdefs.h
3707 as_fn_error $? "no argument expected for --enable-injection-points option" "$LINENO" 5
3712 enable_injection_points=no
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3723 $as_echo_n "checking for block size... " >&6; }
3727 # Check whether --with-blocksize was given.
3728 if test "${with_blocksize+set}" = set; then :
3729 withval=$with_blocksize;
3732 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3735 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3747 case ${blocksize} in
3754 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3757 $as_echo "${blocksize}kB" >&6; }
3760 cat >>confdefs.h <<_ACEOF
3761 #define BLCKSZ ${BLCKSZ}
3766 # Relation segment size
3771 # Check whether --with-segsize was given.
3772 if test "${with_segsize+set}" = set; then :
3773 withval=$with_segsize;
3776 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3779 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3794 # Check whether --with-segsize-blocks was given.
3795 if test "${with_segsize_blocks+set}" = set; then :
3796 withval=$with_segsize_blocks;
3799 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3802 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3805 segsize_blocks=$withval
3815 # If --with-segsize-blocks is non-zero, it is used, --with-segsize
3816 # otherwise. segsize-blocks is only really useful for developers wanting to
3817 # test segment related code. Warn if both are used.
3818 if test $segsize_blocks -ne 0 -a $segsize -ne 1; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&5
3820 $as_echo "$as_me: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&2;}
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3824 $as_echo_n "checking for segment size... " >&6; }
3825 if test $segsize_blocks -eq 0; then
3826 # this expression is set up to avoid unnecessary integer overflow
3827 # blocksize is already guaranteed to be a factor of 1024
3828 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3829 test $? -eq 0 || exit 1
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3831 $as_echo "${segsize}GB" >&6; }
3833 RELSEG_SIZE=$segsize_blocks
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RELSEG_SIZE} blocks" >&5
3835 $as_echo "${RELSEG_SIZE} blocks" >&6; }
3839 cat >>confdefs.h <<_ACEOF
3840 #define RELSEG_SIZE ${RELSEG_SIZE}
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3848 $as_echo_n "checking for WAL block size... " >&6; }
3852 # Check whether --with-wal-blocksize was given.
3853 if test "${with_wal_blocksize+set}" = set; then :
3854 withval=$with_wal_blocksize;
3857 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3860 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3863 wal_blocksize=$withval
3872 case ${wal_blocksize} in
3873 1) XLOG_BLCKSZ=1024;;
3874 2) XLOG_BLCKSZ=2048;;
3875 4) XLOG_BLCKSZ=4096;;
3876 8) XLOG_BLCKSZ=8192;;
3877 16) XLOG_BLCKSZ=16384;;
3878 32) XLOG_BLCKSZ=32768;;
3879 64) XLOG_BLCKSZ=65536;;
3880 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3883 $as_echo "${wal_blocksize}kB" >&6; }
3886 cat >>confdefs.h <<_ACEOF
3887 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3895 # If you don't specify a list of compilers to test, the AC_PROG_CC and
3896 # AC_PROG_CXX macros test for a long list of unsupported compilers.
3897 pgac_cc_list="gcc cc"
3898 pgac_cxx_list="g++ c++"
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 if test -n "$ac_tool_prefix"; then
3906 for ac_prog in $pgac_cc_list
3908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_CC+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -n "$CC"; then
3916 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 if test -n "$CC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938 $as_echo "$CC" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3945 test -n "$CC" && break
3948 if test -z "$CC"; then
3950 for ac_prog in $pgac_cc_list
3952 # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3957 $as_echo_n "(cached) " >&6
3959 if test -n "$ac_ct_CC"; then
3960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_ac_ct_CC="$ac_prog"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3980 if test -n "$ac_ct_CC"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3982 $as_echo "$ac_ct_CC" >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3989 test -n "$ac_ct_CC" && break
3992 if test "x$ac_ct_CC" = x; then
3995 case $cross_compiling:$ac_tool_warned in
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3999 ac_tool_warned=yes ;;
4006 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4008 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4009 See \
`config.log' for more details" "$LINENO" 5; }
4011 # Provide some information about the compiler.
4012 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4015 for ac_option in --version -v -V -qversion; do
4016 { { ac_try="$ac_compiler $ac_option >&5"
4018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4019 *) ac_try_echo
=$ac_try;;
4021 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4025 if test -s conftest.err
; then
4027 ... rest of stderr output deleted ...
4028 10q' conftest.err
>conftest.er1
4029 cat conftest.er1
>&5
4031 rm -f conftest.er1 conftest.err
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4047 ac_clean_files_save
=$ac_clean_files
4048 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4049 # Try to create an executable without -o first, disregard a.out.
4050 # It will help us diagnose broken compilers, and finding out an intuition
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4053 $as_echo_n "checking whether the C compiler works... " >&6; }
4054 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4056 # The possible output files:
4057 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4060 for ac_file
in $ac_files
4063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4064 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4069 if { { ac_try
="$ac_link_default"
4071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 $as_echo "$ac_try_echo"; } >&5
4076 (eval "$ac_link_default") 2>&5
4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }; then :
4080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4081 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4082 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4083 # so that the user can short-circuit this test for compilers unknown to
4085 for ac_file in $ac_files ''
4087 test -f "$ac_file" || continue
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4092 # We found the default executable, but exeext='' is most
4096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4100 # We set ac_cv_exeext here because the later test for it is not
4101 # safe: cross compilers may not add the suffix if given an `-o'
4102 # argument, so we may need to know it at that point already.
4103 # Even if this section looks crufty: it has the advantage of
4110 test "$ac_cv_exeext" = no && ac_cv_exeext=
4115 if test -z "$ac_file"; then :
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 $as_echo "$as_me: failed program was:" >&5
4119 sed 's
/^
/|
/' conftest.$ac_ext >&5
4121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4123 as_fn_error 77 "C compiler cannot create executables
4124 See \`config.log
' for more details" "$LINENO" 5; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127 $as_echo "yes" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4130 $as_echo_n "checking for C compiler default output file name... " >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4132 $as_echo "$ac_file" >&6; }
4133 ac_exeext=$ac_cv_exeext
4135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4136 ac_clean_files=$ac_clean_files_save
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4138 $as_echo_n "checking for suffix of executables... " >&6; }
4139 if { { ac_try="$ac_link"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_link") 2>&5
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }; then :
4150 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4151 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4152 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4154 for ac_file
in conftest.exe conftest conftest.
*; do
4155 test -f "$ac_file" ||
continue
4157 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4158 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4167 See \`config.log' for more details" "$LINENO" 5; }
4169 rm -f conftest conftest
$ac_cv_exeext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4171 $as_echo "$ac_cv_exeext" >&6; }
4173 rm -f conftest.
$ac_ext
4174 EXEEXT
=$ac_cv_exeext
4176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4182 FILE *f = fopen ("conftest.out", "w");
4183 return ferror (f) || fclose (f) != 0;
4189 ac_clean_files
="$ac_clean_files conftest.out"
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 $as_echo_n "checking whether we are cross compiling... " >&6; }
4194 if test "$cross_compiling" != yes; then
4195 { { ac_try
="$ac_link"
4197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_link") 2>&5
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }
4206 if { ac_try='./conftest$ac_cv_exeext'
4207 { { case "(($ac_try" in
4208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4209 *) ac_try_echo
=$ac_try;;
4211 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_try") 2>&5
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; }; then
4219 if test "$cross_compiling" = maybe
; then
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error $?
"cannot run C compiled programs.
4225 If you meant to cross compile, use \`--host'.
4226 See \`config.log' for more details" "$LINENO" 5; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4231 $as_echo "$cross_compiling" >&6; }
4233 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4234 ac_clean_files
=$ac_clean_files_save
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4236 $as_echo_n "checking for suffix of object files... " >&6; }
4237 if ${ac_cv_objext+:} false
; then :
4238 $as_echo_n "(cached) " >&6
4240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4251 rm -f conftest.o conftest.obj
4252 if { { ac_try
="$ac_compile"
4254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 $as_echo "$ac_try_echo"; } >&5
4259 (eval "$ac_compile") 2>&5
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }; then :
4263 for ac_file in conftest.o conftest.obj conftest.*; do
4264 test -f "$ac_file" || continue;
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4272 $as_echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4278 See \
`config.log' for more details" "$LINENO" 5; }
4280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4283 $as_echo "$ac_cv_objext" >&6; }
4284 OBJEXT=$ac_cv_objext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4287 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4288 if ${ac_cv_c_compiler_gnu+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4305 if ac_fn_c_try_compile "$LINENO"; then :
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4315 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4316 if test $ac_compiler_gnu = yes; then
4321 ac_test_CFLAGS=${CFLAGS+set}
4322 ac_save_CFLAGS=$CFLAGS
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4324 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4325 if ${ac_cv_prog_cc_g+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 ac_save_c_werror_flag=$ac_c_werror_flag
4329 ac_c_werror_flag=yes
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4343 if ac_fn_c_try_compile "$LINENO"; then :
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4358 if ac_fn_c_try_compile "$LINENO"; then :
4361 ac_c_werror_flag=$ac_save_c_werror_flag
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 ac_c_werror_flag=$ac_save_c_werror_flag
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4385 $as_echo "$ac_cv_prog_cc_g" >&6; }
4386 if test "$ac_test_CFLAGS" = set; then
4387 CFLAGS=$ac_save_CFLAGS
4388 elif test $ac_cv_prog_cc_g = yes; then
4389 if test "$GCC" = yes; then
4395 if test "$GCC" = yes; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4402 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4403 if ${ac_cv_prog_cc_c89+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 ac_cv_prog_cc_c89=no
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4414 struct buf { int x; };
4415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4416 static char *e (p, i)
4422 static char *f (char * (*g) (char **, int), char **p, ...)
4427 s = g (p, va_arg (v,int));
4432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4433 function prototypes and stuff, but not '\xHH' hex character constants.
4434 These don't provoke an error unfortunately, instead are silently treated
4435 as 'x'. The following induces an error, until -std is added to get
4436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4437 array size at least. It's necessary to write '\x00'==0 to get something
4438 that's true only with -std. */
4439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4442 inside strings and character constants. */
4444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4446 int test (int i, double x);
4447 struct s1 {int (*f) (int a);};
4448 struct s2 {int (*f) (double a);};
4449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4463 CC="$ac_save_CC $ac_arg"
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 ac_cv_prog_cc_c89=$ac_arg
4467 rm -f core conftest.err conftest.$ac_objext
4468 test "x$ac_cv_prog_cc_c89" != "xno" && break
4470 rm -f conftest.$ac_ext
4475 case "x$ac_cv_prog_cc_c89" in
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4478 $as_echo "none needed" >&6; } ;;
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4481 $as_echo "unsupported" >&6; } ;;
4483 CC="$CC $ac_cv_prog_cc_c89"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4485 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4487 if test "x$ac_cv_prog_cc_c89" != xno; then :
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4498 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4499 if ${ac_cv_prog_cc_c99+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 ac_cv_prog_cc_c99=no
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4507 #include <stdbool.h>
4512 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4513 #define debug(...) fprintf (stderr, __VA_ARGS__)
4514 #define showlist(...) puts (#__VA_ARGS__)
4515 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4517 test_varargs_macros (void)
4522 debug ("X = %d\n", x);
4523 showlist (The first, second, and third items.);
4524 report (x>y, "x is %d but y is %d", x, y);
4527 // Check long long types.
4528 #define BIG64 18446744073709551615ull
4529 #define BIG32 4294967295ul
4530 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4532 your preprocessor is broken;
4536 your preprocessor is broken;
4538 static long long int bignum = -9223372036854775807LL;
4539 static unsigned long long int ubignum = BIG64;
4541 struct incomplete_array
4549 const wchar_t *name;
4553 typedef const char *ccp;
4556 test_restrict (ccp restrict text)
4558 // See if C++-style comments work.
4559 // Iterate through items via the restricted pointer.
4560 // Also check for declarations in for loops.
4561 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4566 // Check varargs and va_copy.
4568 test_varargs (const char *format, ...)
4571 va_start (args, format);
4573 va_copy (args_copy, args);
4584 str = va_arg (args_copy, const char *);
4587 number = va_arg (args_copy, int);
4590 fnumber = va_arg (args_copy, double);
4605 _Bool success = false;
4608 if (test_restrict ("String literal") == 0)
4610 char *restrict newvar = "Another string";
4613 test_varargs ("s, d' f .", "string", 65, 34.234);
4614 test_varargs_macros ();
4616 // Check flexible array members.
4617 struct incomplete_array *ia =
4618 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4620 for (int i = 0; i < ia->datasize; ++i)
4621 ia->data[i] = i * 1.234;
4623 // Check named initializers.
4624 struct named_init ni = {
4626 .name = L"Test wide string",
4627 .average = 543.34343,
4632 int dynamic_array[ni.number];
4633 dynamic_array[ni.number - 1] = 543;
4635 // work around unused variable warnings
4636 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4637 || dynamic_array[ni.number - 1] != 543);
4643 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4645 CC="$ac_save_CC $ac_arg"
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_prog_cc_c99=$ac_arg
4649 rm -f core conftest.err conftest.$ac_objext
4650 test "x$ac_cv_prog_cc_c99" != "xno" && break
4652 rm -f conftest.$ac_ext
4657 case "x$ac_cv_prog_cc_c99" in
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4660 $as_echo "none needed" >&6; } ;;
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4663 $as_echo "unsupported" >&6; } ;;
4665 CC="$CC $ac_cv_prog_cc_c99"
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4667 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4669 if test "x$ac_cv_prog_cc_c99" != xno; then :
4675 # Error out if the compiler does not support C99, as the codebase
4677 if test "$ac_cv_prog_cc_c99" = no; then
4678 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4682 ac_cpp='$CXXCPP $CPPFLAGS'
4683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4686 if test -z "$CXX"; then
4687 if test -n "$CCC"; then
4690 if test -n "$ac_tool_prefix"; then
4691 for ac_prog in $pgac_cxx_list
4693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if ${ac_cv_prog_CXX+:} false; then :
4698 $as_echo_n "(cached) " >&6
4700 if test -n "$CXX"; then
4701 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 if test -n "$CXX"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4723 $as_echo "$CXX" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4730 test -n "$CXX" && break
4733 if test -z "$CXX"; then
4735 for ac_prog in $pgac_cxx_list
4737 # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4742 $as_echo_n "(cached) " >&6
4744 if test -n "$ac_ct_CXX"; then
4745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_prog_ac_ct_CXX="$ac_prog"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4765 if test -n "$ac_ct_CXX"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4767 $as_echo "$ac_ct_CXX" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4774 test -n "$ac_ct_CXX" && break
4777 if test "x$ac_ct_CXX" = x; then
4780 case $cross_compiling:$ac_tool_warned in
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784 ac_tool_warned=yes ;;
4792 # Provide some information about the compiler.
4793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4796 for ac_option in --version -v -V -qversion; do
4797 { { ac_try="$ac_compiler $ac_option >&5"
4799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4800 *) ac_try_echo
=$ac_try;;
4802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803 $as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4806 if test -s conftest.err
; then
4808 ... rest of stderr output deleted ...
4809 10q' conftest.err
>conftest.er1
4810 cat conftest.er1
>&5
4812 rm -f conftest.er1 conftest.err
4813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4818 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4819 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4820 $as_echo_n "(cached) " >&6
4822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4836 if ac_fn_cxx_try_compile
"$LINENO"; then :
4841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4846 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4847 if test $ac_compiler_gnu = yes; then
4852 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4853 ac_save_CXXFLAGS
=$CXXFLAGS
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4855 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4856 if ${ac_cv_prog_cxx_g+:} false
; then :
4857 $as_echo_n "(cached) " >&6
4859 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4860 ac_cxx_werror_flag
=yes
4863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4874 if ac_fn_cxx_try_compile
"$LINENO"; then :
4875 ac_cv_prog_cxx_g
=yes
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 if ac_fn_cxx_try_compile
"$LINENO"; then :
4892 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4905 if ac_fn_cxx_try_compile
"$LINENO"; then :
4906 ac_cv_prog_cxx_g
=yes
4908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4916 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4917 if test "$ac_test_CXXFLAGS" = set; then
4918 CXXFLAGS
=$ac_save_CXXFLAGS
4919 elif test $ac_cv_prog_cxx_g = yes; then
4920 if test "$GXX" = yes; then
4926 if test "$GXX" = yes; then
4933 ac_cpp
='$CPP $CPPFLAGS'
4934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4939 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4940 # but has idiosyncrasies of its own. We assume icc will define
4941 # __INTEL_COMPILER regardless of CFLAGS.
4943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4949 #ifndef __INTEL_COMPILER
4956 if ac_fn_c_try_compile
"$LINENO"; then :
4961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 # Check if it's Sun Studio compiler. We assume that
4964 # __SUNPRO_C will be defined for Sun Studio compilers
4965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4978 if ac_fn_c_try_compile
"$LINENO"; then :
4983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4991 # Checked early because subsequent tests depend on it.
4995 # Check whether --with-llvm was given.
4996 if test "${with_llvm+set}" = set; then :
5001 $as_echo "#define USE_LLVM 1" >>confdefs.h
5008 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
5019 for ac_prog
in gawk mawk nawk
awk
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy
$ac_prog; ac_word
=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_AWK+:} false
; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -n "$AWK"; then
5029 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir
=.
5036 for ac_exec_ext
in '' $ac_executable_extensions; do
5037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_AWK
="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 if test -n "$AWK"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5051 $as_echo "$AWK" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5058 test -n "$AWK" && break
5061 if test "$with_llvm" = yes; then :
5067 if test -z "$LLVM_CONFIG"; then
5068 for ac_prog
in llvm-config
5070 # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy
$ac_prog; ac_word
=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5075 $as_echo_n "(cached) " >&6
5077 case $LLVM_CONFIG in
5079 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir
=.
5087 for ac_exec_ext
in '' $ac_executable_extensions; do
5088 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5101 if test -n "$LLVM_CONFIG"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5103 $as_echo "$LLVM_CONFIG" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5110 test -n "$LLVM_CONFIG" && break
5114 # Report the value of LLVM_CONFIG in configure's output in all cases.
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5116 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5118 $as_echo "$LLVM_CONFIG" >&6; }
5122 # no point continuing if llvm wasn't found
5123 if test -z "$LLVM_CONFIG"; then
5124 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5126 # check if detected $LLVM_CONFIG is executable
5127 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5128 if test "x$pgac_llvm_version" = "xno"; then
5129 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5131 # and whether the version is supported
5132 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 10) exit 1; else exit 0;}';then
5133 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 10 is required" "$LINENO" 5
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
5136 $as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
5138 # need clang to create some bitcode files
5140 if test -z "$CLANG"; then
5141 for ac_prog
in clang
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144 set dummy
$ac_prog; ac_word
=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_path_CLANG+:} false
; then :
5148 $as_echo_n "(cached) " >&6
5152 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir
=.
5160 for ac_exec_ext
in '' $ac_executable_extensions; do
5161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 CLANG
=$ac_cv_path_CLANG
5174 if test -n "$CLANG"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5176 $as_echo "$CLANG" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5183 test -n "$CLANG" && break
5187 # Report the value of CLANG in configure's output in all cases.
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5189 $as_echo_n "checking for CLANG... " >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5191 $as_echo "$CLANG" >&6; }
5194 if test -z "$CLANG"; then
5195 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5197 # make sure clang is executable
5198 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5199 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5201 # Could check clang version, but it doesn't seem that
5202 # important. Systems with a new enough LLVM version are usually
5203 # going to have a decent clang version too. It's also not entirely
5204 # clear what the minimum version is.
5206 # Collect compiler flags necessary to build the LLVM dependent
5208 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5209 case $pgac_option in
5210 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5214 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5215 case $pgac_option in
5216 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5220 # ABI influencing options, standard influencing options
5221 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5222 case $pgac_option in
5223 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5224 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5228 # Look for components we're interested in, collect necessary
5229 # libs. As some components are optional, we can't just list all of
5230 # them as it'd raise an error.
5232 for pgac_component
in `$LLVM_CONFIG --components`; do
5233 case $pgac_component in
5234 engine
) pgac_components
="$pgac_components $pgac_component";;
5235 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5236 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5237 passes
) pgac_components
="$pgac_components $pgac_component";;
5238 native
) pgac_components
="$pgac_components $pgac_component";;
5239 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5243 # And then get the libraries that need to be linked in for the
5244 # selected components. They're large libraries, we only want to
5245 # link them into the LLVM using shared library.
5246 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5247 case $pgac_option in
5248 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5252 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5271 .
"$srcdir/src/template/$template" ||
exit
5273 # C[XX]FLAGS are selected so:
5274 # If the user specifies something in the environment, that is used.
5275 # else: If the template file set something, that is used.
5276 # else: If coverage was enabled, don't set anything.
5277 # else: If the compiler is GCC, then we use -O2.
5278 # else: If the compiler is something else, then we use -O, unless debugging.
5280 if test "$ac_env_CFLAGS_set" = set; then
5281 CFLAGS
=$ac_env_CFLAGS_value
5282 elif test "${CFLAGS+set}" = set; then
5283 : # (keep what template set)
5284 elif test "$enable_coverage" = yes; then
5285 : # no optimization by default
5286 elif test "$GCC" = yes; then
5289 # if the user selected debug mode, don't use -O
5290 if test "$enable_debug" != yes; then
5295 if test "$ac_env_CXXFLAGS_set" = set; then
5296 CXXFLAGS
=$ac_env_CXXFLAGS_value
5297 elif test "${CXXFLAGS+set}" = set; then
5298 : # (keep what template set)
5299 elif test "$enable_coverage" = yes; then
5300 : # no optimization by default
5301 elif test "$GCC" = yes; then
5304 # if the user selected debug mode, don't use -O
5305 if test "$enable_debug" != yes; then
5310 # When generating bitcode (for inlining) we always want to use -O2
5311 # even when --enable-debug is specified. The bitcode is not going to
5312 # be used for line-by-line debugging, and JIT inlining doesn't work
5313 # without at least -O1 (otherwise clang will emit 'noinline'
5314 # attributes everywhere), which is bad for testing. Still allow the
5315 # environment to override if done explicitly.
5316 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5317 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5319 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5321 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5322 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5324 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5327 # C[XX]FLAGS we determined above will be added back at the end
5330 user_CXXFLAGS
=$CXXFLAGS
5332 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5334 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5337 # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5338 if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5339 CFLAGS_UNROLL_LOOPS
=$ac_env_CFLAGS_UNROLL_LOOPS_value
5341 if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5342 CFLAGS_VECTORIZE
=$ac_env_CFLAGS_VECTORIZE_value
5345 # Some versions of GCC support some additional useful warning flags.
5346 # Check whether they are supported, and add them to CFLAGS if so.
5347 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5348 # but has its own. Also check other compiler-specific flags here.
5350 if test "$GCC" = yes -a "$ICC" = no
; then
5351 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5352 CXXFLAGS
="-Wall -Wpointer-arith"
5353 # These work in some but not all gcc versions
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5357 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5358 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5359 $as_echo_n "(cached) " >&6
5361 pgac_save_CFLAGS
=$CFLAGS
5364 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5365 ac_save_c_werror_flag
=$ac_c_werror_flag
5366 ac_c_werror_flag
=yes
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5378 if ac_fn_c_try_compile
"$LINENO"; then :
5379 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5381 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5384 ac_c_werror_flag
=$ac_save_c_werror_flag
5385 CFLAGS
="$pgac_save_CFLAGS"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5389 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5390 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5391 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5395 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5396 # disable it, so AC_SUBST the negative form.
5397 PERMIT_DECLARATION_AFTER_STATEMENT
=
5398 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5399 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5402 # Really don't want VLAs to be used in our dialect of C
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5405 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5406 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5407 $as_echo_n "(cached) " >&6
5409 pgac_save_CFLAGS
=$CFLAGS
5412 CFLAGS
="${CFLAGS} -Werror=vla"
5413 ac_save_c_werror_flag
=$ac_c_werror_flag
5414 ac_c_werror_flag
=yes
5415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5426 if ac_fn_c_try_compile
"$LINENO"; then :
5427 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5429 pgac_cv_prog_CC_cflags__Werror_vla
=no
5431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 ac_c_werror_flag
=$ac_save_c_werror_flag
5433 CFLAGS
="$pgac_save_CFLAGS"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5437 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5438 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5439 CFLAGS
="${CFLAGS} -Werror=vla"
5443 # On macOS, complain about usage of symbols newer than the deployment target
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5446 $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5447 if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false
; then :
5448 $as_echo_n "(cached) " >&6
5450 pgac_save_CFLAGS
=$CFLAGS
5453 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5454 ac_save_c_werror_flag
=$ac_c_werror_flag
5455 ac_c_werror_flag
=yes
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5467 if ac_fn_c_try_compile
"$LINENO"; then :
5468 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=yes
5470 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=no
5472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 ac_c_werror_flag
=$ac_save_c_werror_flag
5474 CFLAGS
="$pgac_save_CFLAGS"
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5478 $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5479 if test x
"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x
"yes"; then
5480 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5485 $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5486 if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 pgac_save_CXXFLAGS
=$CXXFLAGS
5492 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5493 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5494 ac_cxx_werror_flag
=yes
5496 ac_cpp
='$CXXCPP $CPPFLAGS'
5497 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5512 if ac_fn_cxx_try_compile
"$LINENO"; then :
5513 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=yes
5515 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=no
5517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5519 ac_cpp
='$CPP $CPPFLAGS'
5520 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5524 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5525 CXXFLAGS
="$pgac_save_CXXFLAGS"
5526 CXX
="$pgac_save_CXX"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5529 $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5530 if test x
"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x
"yes"; then
5531 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5535 # -Wvla is not applicable for C++
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5538 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5539 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5540 $as_echo_n "(cached) " >&6
5542 pgac_save_CFLAGS
=$CFLAGS
5545 CFLAGS
="${CFLAGS} -Wendif-labels"
5546 ac_save_c_werror_flag
=$ac_c_werror_flag
5547 ac_c_werror_flag
=yes
5548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5559 if ac_fn_c_try_compile
"$LINENO"; then :
5560 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5562 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5565 ac_c_werror_flag
=$ac_save_c_werror_flag
5566 CFLAGS
="$pgac_save_CFLAGS"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5570 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5571 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5572 CFLAGS
="${CFLAGS} -Wendif-labels"
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5577 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5578 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5579 $as_echo_n "(cached) " >&6
5581 pgac_save_CXXFLAGS
=$CXXFLAGS
5584 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5585 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5586 ac_cxx_werror_flag
=yes
5588 ac_cpp
='$CXXCPP $CPPFLAGS'
5589 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5604 if ac_fn_cxx_try_compile
"$LINENO"; then :
5605 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5607 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5611 ac_cpp
='$CPP $CPPFLAGS'
5612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5616 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5617 CXXFLAGS
="$pgac_save_CXXFLAGS"
5618 CXX
="$pgac_save_CXX"
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5621 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5622 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5623 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5629 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5630 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5631 $as_echo_n "(cached) " >&6
5633 pgac_save_CFLAGS
=$CFLAGS
5636 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5637 ac_save_c_werror_flag
=$ac_c_werror_flag
5638 ac_c_werror_flag
=yes
5639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5650 if ac_fn_c_try_compile
"$LINENO"; then :
5651 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5653 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5656 ac_c_werror_flag
=$ac_save_c_werror_flag
5657 CFLAGS
="$pgac_save_CFLAGS"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5661 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5662 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5663 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5668 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5669 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 pgac_save_CXXFLAGS
=$CXXFLAGS
5675 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5676 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5677 ac_cxx_werror_flag
=yes
5679 ac_cpp
='$CXXCPP $CPPFLAGS'
5680 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5695 if ac_fn_cxx_try_compile
"$LINENO"; then :
5696 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5698 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 ac_cpp
='$CPP $CPPFLAGS'
5703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5707 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5708 CXXFLAGS
="$pgac_save_CXXFLAGS"
5709 CXX
="$pgac_save_CXX"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5712 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5713 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5714 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5720 $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5721 if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false
; then :
5722 $as_echo_n "(cached) " >&6
5724 pgac_save_CFLAGS
=$CFLAGS
5727 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5728 ac_save_c_werror_flag
=$ac_c_werror_flag
5729 ac_c_werror_flag
=yes
5730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5741 if ac_fn_c_try_compile
"$LINENO"; then :
5742 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=yes
5744 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=no
5746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5747 ac_c_werror_flag
=$ac_save_c_werror_flag
5748 CFLAGS
="$pgac_save_CFLAGS"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5752 $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5753 if test x
"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x
"yes"; then
5754 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5759 $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5760 if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false
; then :
5761 $as_echo_n "(cached) " >&6
5763 pgac_save_CXXFLAGS
=$CXXFLAGS
5766 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5767 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5768 ac_cxx_werror_flag
=yes
5770 ac_cpp
='$CXXCPP $CPPFLAGS'
5771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5786 if ac_fn_cxx_try_compile
"$LINENO"; then :
5787 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=yes
5789 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=no
5791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 ac_cpp
='$CPP $CPPFLAGS'
5794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5798 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5799 CXXFLAGS
="$pgac_save_CXXFLAGS"
5800 CXX
="$pgac_save_CXX"
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5803 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5804 if test x
"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x
"yes"; then
5805 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5811 $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5812 if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false
; then :
5813 $as_echo_n "(cached) " >&6
5815 pgac_save_CFLAGS
=$CFLAGS
5818 CFLAGS
="${CFLAGS} -Wcast-function-type"
5819 ac_save_c_werror_flag
=$ac_c_werror_flag
5820 ac_c_werror_flag
=yes
5821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5832 if ac_fn_c_try_compile
"$LINENO"; then :
5833 pgac_cv_prog_CC_cflags__Wcast_function_type
=yes
5835 pgac_cv_prog_CC_cflags__Wcast_function_type
=no
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 ac_c_werror_flag
=$ac_save_c_werror_flag
5839 CFLAGS
="$pgac_save_CFLAGS"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5843 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5844 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x
"yes"; then
5845 CFLAGS
="${CFLAGS} -Wcast-function-type"
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5850 $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5851 if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false
; then :
5852 $as_echo_n "(cached) " >&6
5854 pgac_save_CXXFLAGS
=$CXXFLAGS
5857 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5858 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5859 ac_cxx_werror_flag
=yes
5861 ac_cpp
='$CXXCPP $CPPFLAGS'
5862 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5877 if ac_fn_cxx_try_compile
"$LINENO"; then :
5878 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=yes
5880 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=no
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 ac_cpp
='$CPP $CPPFLAGS'
5885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5889 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5890 CXXFLAGS
="$pgac_save_CXXFLAGS"
5891 CXX
="$pgac_save_CXX"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5894 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5895 if test x
"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x
"yes"; then
5896 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS" >&5
5902 $as_echo_n "checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS... " >&6; }
5903 if ${pgac_cv_prog_CC_cflags__Wshadow_compatible_local+:} false
; then :
5904 $as_echo_n "(cached) " >&6
5906 pgac_save_CFLAGS
=$CFLAGS
5909 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5910 ac_save_c_werror_flag
=$ac_c_werror_flag
5911 ac_c_werror_flag
=yes
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5923 if ac_fn_c_try_compile
"$LINENO"; then :
5924 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=yes
5926 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=no
5928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5929 ac_c_werror_flag
=$ac_save_c_werror_flag
5930 CFLAGS
="$pgac_save_CFLAGS"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&5
5934 $as_echo "$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&6; }
5935 if test x
"$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" = x
"yes"; then
5936 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS" >&5
5941 $as_echo_n "checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS... " >&6; }
5942 if ${pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local+:} false
; then :
5943 $as_echo_n "(cached) " >&6
5945 pgac_save_CXXFLAGS
=$CXXFLAGS
5948 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5949 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5950 ac_cxx_werror_flag
=yes
5952 ac_cpp
='$CXXCPP $CPPFLAGS'
5953 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5968 if ac_fn_cxx_try_compile
"$LINENO"; then :
5969 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=yes
5971 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=no
5973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 ac_cpp
='$CPP $CPPFLAGS'
5976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5980 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5981 CXXFLAGS
="$pgac_save_CXXFLAGS"
5982 CXX
="$pgac_save_CXX"
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&5
5985 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&6; }
5986 if test x
"$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" = x
"yes"; then
5987 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5991 # This was included in -Wall/-Wformat in older GCC versions
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5994 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5995 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5996 $as_echo_n "(cached) " >&6
5998 pgac_save_CFLAGS
=$CFLAGS
6001 CFLAGS
="${CFLAGS} -Wformat-security"
6002 ac_save_c_werror_flag
=$ac_c_werror_flag
6003 ac_c_werror_flag
=yes
6004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6015 if ac_fn_c_try_compile
"$LINENO"; then :
6016 pgac_cv_prog_CC_cflags__Wformat_security
=yes
6018 pgac_cv_prog_CC_cflags__Wformat_security
=no
6020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6021 ac_c_werror_flag
=$ac_save_c_werror_flag
6022 CFLAGS
="$pgac_save_CFLAGS"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
6026 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
6027 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
6028 CFLAGS
="${CFLAGS} -Wformat-security"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
6033 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
6034 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
6035 $as_echo_n "(cached) " >&6
6037 pgac_save_CXXFLAGS
=$CXXFLAGS
6040 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6041 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6042 ac_cxx_werror_flag
=yes
6044 ac_cpp
='$CXXCPP $CPPFLAGS'
6045 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6060 if ac_fn_cxx_try_compile
"$LINENO"; then :
6061 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
6063 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
6065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6067 ac_cpp
='$CPP $CPPFLAGS'
6068 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6072 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6073 CXXFLAGS
="$pgac_save_CXXFLAGS"
6074 CXX
="$pgac_save_CXX"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
6077 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
6078 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
6079 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6083 # Disable strict-aliasing rules; needed for gcc 3.3+
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6086 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6087 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6088 $as_echo_n "(cached) " >&6
6090 pgac_save_CFLAGS
=$CFLAGS
6093 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6094 ac_save_c_werror_flag
=$ac_c_werror_flag
6095 ac_c_werror_flag
=yes
6096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6107 if ac_fn_c_try_compile
"$LINENO"; then :
6108 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6110 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6113 ac_c_werror_flag
=$ac_save_c_werror_flag
6114 CFLAGS
="$pgac_save_CFLAGS"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6118 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6119 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6120 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6125 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6126 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6127 $as_echo_n "(cached) " >&6
6129 pgac_save_CXXFLAGS
=$CXXFLAGS
6132 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6133 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6134 ac_cxx_werror_flag
=yes
6136 ac_cpp
='$CXXCPP $CPPFLAGS'
6137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6152 if ac_fn_cxx_try_compile
"$LINENO"; then :
6153 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6155 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6159 ac_cpp
='$CPP $CPPFLAGS'
6160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6164 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6165 CXXFLAGS
="$pgac_save_CXXFLAGS"
6166 CXX
="$pgac_save_CXX"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6169 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6170 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6171 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6175 # Disable optimizations that assume no overflow; needed for gcc 4.3+
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
6178 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
6179 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
6180 $as_echo_n "(cached) " >&6
6182 pgac_save_CFLAGS
=$CFLAGS
6185 CFLAGS
="${CFLAGS} -fwrapv"
6186 ac_save_c_werror_flag
=$ac_c_werror_flag
6187 ac_c_werror_flag
=yes
6188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6199 if ac_fn_c_try_compile
"$LINENO"; then :
6200 pgac_cv_prog_CC_cflags__fwrapv
=yes
6202 pgac_cv_prog_CC_cflags__fwrapv
=no
6204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6205 ac_c_werror_flag
=$ac_save_c_werror_flag
6206 CFLAGS
="$pgac_save_CFLAGS"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
6210 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
6211 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
6212 CFLAGS
="${CFLAGS} -fwrapv"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
6217 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
6218 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
6219 $as_echo_n "(cached) " >&6
6221 pgac_save_CXXFLAGS
=$CXXFLAGS
6224 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6225 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6226 ac_cxx_werror_flag
=yes
6228 ac_cpp
='$CXXCPP $CPPFLAGS'
6229 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6244 if ac_fn_cxx_try_compile
"$LINENO"; then :
6245 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
6247 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
6249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6251 ac_cpp
='$CPP $CPPFLAGS'
6252 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6253 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6254 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6256 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6257 CXXFLAGS
="$pgac_save_CXXFLAGS"
6258 CXX
="$pgac_save_CXX"
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
6261 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
6262 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
6263 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6267 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
6270 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
6271 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
6272 $as_echo_n "(cached) " >&6
6274 pgac_save_CFLAGS
=$CFLAGS
6277 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6278 ac_save_c_werror_flag
=$ac_c_werror_flag
6279 ac_c_werror_flag
=yes
6280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6291 if ac_fn_c_try_compile
"$LINENO"; then :
6292 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
6294 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
6296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 ac_c_werror_flag
=$ac_save_c_werror_flag
6298 CFLAGS
="$pgac_save_CFLAGS"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
6302 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
6303 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
6304 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
6309 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
6310 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
6311 $as_echo_n "(cached) " >&6
6313 pgac_save_CXXFLAGS
=$CXXFLAGS
6316 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6317 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6318 ac_cxx_werror_flag
=yes
6320 ac_cpp
='$CXXCPP $CPPFLAGS'
6321 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6336 if ac_fn_cxx_try_compile
"$LINENO"; then :
6337 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
6339 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
6341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6343 ac_cpp
='$CPP $CPPFLAGS'
6344 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6348 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6349 CXXFLAGS
="$pgac_save_CXXFLAGS"
6350 CXX
="$pgac_save_CXX"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
6353 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
6354 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6355 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6359 # Optimization flags for specific files that benefit from loop unrolling
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
6361 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
6362 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
6363 $as_echo_n "(cached) " >&6
6365 pgac_save_CFLAGS
=$CFLAGS
6368 CFLAGS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6369 ac_save_c_werror_flag
=$ac_c_werror_flag
6370 ac_c_werror_flag
=yes
6371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6382 if ac_fn_c_try_compile
"$LINENO"; then :
6383 pgac_cv_prog_CC_cflags__funroll_loops
=yes
6385 pgac_cv_prog_CC_cflags__funroll_loops
=no
6387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 ac_c_werror_flag
=$ac_save_c_werror_flag
6389 CFLAGS
="$pgac_save_CFLAGS"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6393 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6394 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
6395 CFLAGS_UNROLL_LOOPS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6399 # Optimization flags for specific files that benefit from vectorization
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
6401 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
6402 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
6403 $as_echo_n "(cached) " >&6
6405 pgac_save_CFLAGS
=$CFLAGS
6408 CFLAGS
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6409 ac_save_c_werror_flag
=$ac_c_werror_flag
6410 ac_c_werror_flag
=yes
6411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6422 if ac_fn_c_try_compile
"$LINENO"; then :
6423 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
6425 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
6427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 ac_c_werror_flag
=$ac_save_c_werror_flag
6429 CFLAGS
="$pgac_save_CFLAGS"
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6433 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6434 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
6435 CFLAGS_VECTORIZE
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6440 # The following tests want to suppress various unhelpful warnings by adding
6441 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
6442 # switches, so we have to test for the positive form and if that works,
6443 # add the negative form. Note that tests of this form typically need to
6444 # be duplicated in the BITCODE_CFLAGS setup stanza below.
6446 # Suppress clang's unhelpful unused-command-line-argument warnings.
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6449 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6450 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6451 $as_echo_n "(cached) " >&6
6453 pgac_save_CFLAGS
=$CFLAGS
6456 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6457 ac_save_c_werror_flag
=$ac_c_werror_flag
6458 ac_c_werror_flag
=yes
6459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6470 if ac_fn_c_try_compile
"$LINENO"; then :
6471 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6473 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6476 ac_c_werror_flag
=$ac_save_c_werror_flag
6477 CFLAGS
="$pgac_save_CFLAGS"
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6481 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6482 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6483 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6487 if test -n "$NOT_THE_CFLAGS"; then
6488 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6490 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6491 # of warnings when building plperl because of usages in the Perl headers.
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6494 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6495 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6496 $as_echo_n "(cached) " >&6
6498 pgac_save_CFLAGS
=$CFLAGS
6501 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6502 ac_save_c_werror_flag
=$ac_c_werror_flag
6503 ac_c_werror_flag
=yes
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_c_try_compile
"$LINENO"; then :
6516 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6518 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6521 ac_c_werror_flag
=$ac_save_c_werror_flag
6522 CFLAGS
="$pgac_save_CFLAGS"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6526 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6527 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6528 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6532 if test -n "$NOT_THE_CFLAGS"; then
6533 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6535 # Similarly disable useless truncation warnings from gcc 8+
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6538 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6539 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6540 $as_echo_n "(cached) " >&6
6542 pgac_save_CFLAGS
=$CFLAGS
6545 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6546 ac_save_c_werror_flag
=$ac_c_werror_flag
6547 ac_c_werror_flag
=yes
6548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6559 if ac_fn_c_try_compile
"$LINENO"; then :
6560 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6562 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 ac_c_werror_flag
=$ac_save_c_werror_flag
6566 CFLAGS
="$pgac_save_CFLAGS"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6570 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6571 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6572 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6576 if test -n "$NOT_THE_CFLAGS"; then
6577 CFLAGS
="$CFLAGS -Wno-format-truncation"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6581 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6582 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6583 $as_echo_n "(cached) " >&6
6585 pgac_save_CFLAGS
=$CFLAGS
6588 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6589 ac_save_c_werror_flag
=$ac_c_werror_flag
6590 ac_c_werror_flag
=yes
6591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6602 if ac_fn_c_try_compile
"$LINENO"; then :
6603 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6605 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6608 ac_c_werror_flag
=$ac_save_c_werror_flag
6609 CFLAGS
="$pgac_save_CFLAGS"
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6613 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6614 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6615 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6619 if test -n "$NOT_THE_CFLAGS"; then
6620 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6622 # Suppress clang 16's strict warnings about function casts
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS" >&5
6625 $as_echo_n "checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS... " >&6; }
6626 if ${pgac_cv_prog_CC_cflags__Wcast_function_type_strict+:} false
; then :
6627 $as_echo_n "(cached) " >&6
6629 pgac_save_CFLAGS
=$CFLAGS
6632 CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6633 ac_save_c_werror_flag
=$ac_c_werror_flag
6634 ac_c_werror_flag
=yes
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6646 if ac_fn_c_try_compile
"$LINENO"; then :
6647 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=yes
6649 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=no
6651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6652 ac_c_werror_flag
=$ac_save_c_werror_flag
6653 CFLAGS
="$pgac_save_CFLAGS"
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&5
6657 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&6; }
6658 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" = x
"yes"; then
6659 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6663 if test -n "$NOT_THE_CFLAGS"; then
6664 CFLAGS
="$CFLAGS -Wno-cast-function-type-strict"
6666 elif test "$ICC" = yes; then
6667 # Intel's compiler has a bug/misoptimization in checking for
6668 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6671 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6672 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6673 $as_echo_n "(cached) " >&6
6675 pgac_save_CFLAGS
=$CFLAGS
6678 CFLAGS
="${CFLAGS} -mp1"
6679 ac_save_c_werror_flag
=$ac_c_werror_flag
6680 ac_c_werror_flag
=yes
6681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6692 if ac_fn_c_try_compile
"$LINENO"; then :
6693 pgac_cv_prog_CC_cflags__mp1
=yes
6695 pgac_cv_prog_CC_cflags__mp1
=no
6697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6698 ac_c_werror_flag
=$ac_save_c_werror_flag
6699 CFLAGS
="$pgac_save_CFLAGS"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6703 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6704 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6705 CFLAGS
="${CFLAGS} -mp1"
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6710 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6711 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6712 $as_echo_n "(cached) " >&6
6714 pgac_save_CXXFLAGS
=$CXXFLAGS
6717 CXXFLAGS
="${CXXFLAGS} -mp1"
6718 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6719 ac_cxx_werror_flag
=yes
6721 ac_cpp
='$CXXCPP $CPPFLAGS'
6722 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6737 if ac_fn_cxx_try_compile
"$LINENO"; then :
6738 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6740 pgac_cv_prog_CXX_cxxflags__mp1
=no
6742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 ac_cpp
='$CPP $CPPFLAGS'
6745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6749 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6750 CXXFLAGS
="$pgac_save_CXXFLAGS"
6751 CXX
="$pgac_save_CXX"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6754 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6755 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6756 CXXFLAGS
="${CXXFLAGS} -mp1"
6760 # Make sure strict aliasing is off (though this is said to be the default)
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6763 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6764 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6765 $as_echo_n "(cached) " >&6
6767 pgac_save_CFLAGS
=$CFLAGS
6770 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6771 ac_save_c_werror_flag
=$ac_c_werror_flag
6772 ac_c_werror_flag
=yes
6773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6784 if ac_fn_c_try_compile
"$LINENO"; then :
6785 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6787 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6790 ac_c_werror_flag
=$ac_save_c_werror_flag
6791 CFLAGS
="$pgac_save_CFLAGS"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6795 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6796 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6797 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6802 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6803 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6804 $as_echo_n "(cached) " >&6
6806 pgac_save_CXXFLAGS
=$CXXFLAGS
6809 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6810 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6811 ac_cxx_werror_flag
=yes
6813 ac_cpp
='$CXXCPP $CPPFLAGS'
6814 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6815 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6816 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6829 if ac_fn_cxx_try_compile
"$LINENO"; then :
6830 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6832 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6836 ac_cpp
='$CPP $CPPFLAGS'
6837 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6841 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6842 CXXFLAGS
="$pgac_save_CXXFLAGS"
6843 CXX
="$pgac_save_CXX"
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6846 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6847 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6848 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6854 # If the compiler knows how to hide symbols, add the switch needed for that to
6855 # CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE.
6857 # This is done separately from the above because -fvisibility is supported by
6858 # quite a few different compilers, making the required repetition bothersome.
6860 # We might need to add a separate test to check if
6861 # __attribute__((visibility("hidden"))) is supported, if we encounter a
6862 # compiler that supports one of the supported variants of -fvisibility=hidden
6863 # but uses a different syntax to mark a symbol as exported.
6864 if test "$GCC" = yes -o "$SUN_STUDIO_CC" = yes ; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE" >&5
6866 $as_echo_n "checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
6867 if ${pgac_cv_prog_CC_cflags__fvisibility_hidden+:} false
; then :
6868 $as_echo_n "(cached) " >&6
6870 pgac_save_CFLAGS
=$CFLAGS
6873 CFLAGS
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6874 ac_save_c_werror_flag
=$ac_c_werror_flag
6875 ac_c_werror_flag
=yes
6876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6887 if ac_fn_c_try_compile
"$LINENO"; then :
6888 pgac_cv_prog_CC_cflags__fvisibility_hidden
=yes
6890 pgac_cv_prog_CC_cflags__fvisibility_hidden
=no
6892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6893 ac_c_werror_flag
=$ac_save_c_werror_flag
6894 CFLAGS
="$pgac_save_CFLAGS"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fvisibility_hidden" >&5
6898 $as_echo "$pgac_cv_prog_CC_cflags__fvisibility_hidden" >&6; }
6899 if test x
"$pgac_cv_prog_CC_cflags__fvisibility_hidden" = x
"yes"; then
6900 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6904 # For C++ we additionally want -fvisibility-inlines-hidden
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
6906 $as_echo_n "checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6907 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_hidden+:} false
; then :
6908 $as_echo_n "(cached) " >&6
6910 pgac_save_CXXFLAGS
=$CXXFLAGS
6913 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6914 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6915 ac_cxx_werror_flag
=yes
6917 ac_cpp
='$CXXCPP $CPPFLAGS'
6918 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6933 if ac_fn_cxx_try_compile
"$LINENO"; then :
6934 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=yes
6936 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=no
6938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6940 ac_cpp
='$CPP $CPPFLAGS'
6941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6945 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6946 CXXFLAGS
="$pgac_save_CXXFLAGS"
6947 CXX
="$pgac_save_CXX"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&5
6950 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&6; }
6951 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" = x
"yes"; then
6952 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE" >&5
6956 $as_echo_n "checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6957 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden+:} false
; then :
6958 $as_echo_n "(cached) " >&6
6960 pgac_save_CXXFLAGS
=$CXXFLAGS
6963 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6964 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6965 ac_cxx_werror_flag
=yes
6967 ac_cpp
='$CXXCPP $CPPFLAGS'
6968 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6983 if ac_fn_cxx_try_compile
"$LINENO"; then :
6984 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=yes
6986 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=no
6988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6990 ac_cpp
='$CPP $CPPFLAGS'
6991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6995 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6996 CXXFLAGS
="$pgac_save_CXXFLAGS"
6997 CXX
="$pgac_save_CXX"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&5
7000 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&6; }
7001 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" = x
"yes"; then
7002 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
7005 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__fvisibility_hidden
7008 if test "$have_visibility_attribute" = "yes"; then
7010 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
7019 # Determine flags used to emit bitcode for JIT inlining.
7020 # 1. We must duplicate any behaviour-changing compiler flags used above,
7021 # to keep compatibility with the compiler used for normal Postgres code.
7022 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
7023 # warning in the main build is enough.
7024 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
7025 if test "$with_llvm" = yes ; then
7026 CLANGXX
="$CLANG -xc++"
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
7029 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
7030 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
7031 $as_echo_n "(cached) " >&6
7033 pgac_save_CFLAGS
=$CFLAGS
7036 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7037 ac_save_c_werror_flag
=$ac_c_werror_flag
7038 ac_c_werror_flag
=yes
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7050 if ac_fn_c_try_compile
"$LINENO"; then :
7051 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
7053 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
7055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 ac_c_werror_flag
=$ac_save_c_werror_flag
7057 CFLAGS
="$pgac_save_CFLAGS"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
7061 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
7062 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
7063 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
7067 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
7068 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
7069 $as_echo_n "(cached) " >&6
7071 pgac_save_CXXFLAGS
=$CXXFLAGS
7074 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7075 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7076 ac_cxx_werror_flag
=yes
7078 ac_cpp
='$CXXCPP $CPPFLAGS'
7079 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7094 if ac_fn_cxx_try_compile
"$LINENO"; then :
7095 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
7097 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
7099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7101 ac_cpp
='$CPP $CPPFLAGS'
7102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7106 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7107 CXXFLAGS
="$pgac_save_CXXFLAGS"
7108 CXX
="$pgac_save_CXX"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
7111 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
7112 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
7113 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
7117 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
7118 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
7119 $as_echo_n "(cached) " >&6
7121 pgac_save_CFLAGS
=$CFLAGS
7124 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7125 ac_save_c_werror_flag
=$ac_c_werror_flag
7126 ac_c_werror_flag
=yes
7127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7138 if ac_fn_c_try_compile
"$LINENO"; then :
7139 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
7141 pgac_cv_prog_CLANG_cflags__fwrapv
=no
7143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7144 ac_c_werror_flag
=$ac_save_c_werror_flag
7145 CFLAGS
="$pgac_save_CFLAGS"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
7149 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
7150 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
7151 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
7155 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
7156 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
7157 $as_echo_n "(cached) " >&6
7159 pgac_save_CXXFLAGS
=$CXXFLAGS
7162 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7163 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7164 ac_cxx_werror_flag
=yes
7166 ac_cpp
='$CXXCPP $CPPFLAGS'
7167 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7182 if ac_fn_cxx_try_compile
"$LINENO"; then :
7183 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
7185 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
7187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7189 ac_cpp
='$CPP $CPPFLAGS'
7190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7194 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7195 CXXFLAGS
="$pgac_save_CXXFLAGS"
7196 CXX
="$pgac_save_CXX"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
7199 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
7200 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
7201 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
7205 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
7206 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
7207 $as_echo_n "(cached) " >&6
7209 pgac_save_CFLAGS
=$CFLAGS
7212 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7213 ac_save_c_werror_flag
=$ac_c_werror_flag
7214 ac_c_werror_flag
=yes
7215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7226 if ac_fn_c_try_compile
"$LINENO"; then :
7227 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
7229 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
7231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7232 ac_c_werror_flag
=$ac_save_c_werror_flag
7233 CFLAGS
="$pgac_save_CFLAGS"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
7237 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
7238 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
7239 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
7243 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
7244 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
7245 $as_echo_n "(cached) " >&6
7247 pgac_save_CXXFLAGS
=$CXXFLAGS
7250 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7251 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7252 ac_cxx_werror_flag
=yes
7254 ac_cpp
='$CXXCPP $CPPFLAGS'
7255 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7270 if ac_fn_cxx_try_compile
"$LINENO"; then :
7271 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
7273 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
7275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7277 ac_cpp
='$CPP $CPPFLAGS'
7278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7282 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7283 CXXFLAGS
="$pgac_save_CXXFLAGS"
7284 CXX
="$pgac_save_CXX"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7287 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7288 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
7289 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS" >&5
7294 $as_echo_n "checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS... " >&6; }
7295 if ${pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers+:} false
; then :
7296 $as_echo_n "(cached) " >&6
7298 pgac_save_CFLAGS
=$CFLAGS
7301 CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7302 ac_save_c_werror_flag
=$ac_c_werror_flag
7303 ac_c_werror_flag
=yes
7304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7315 if ac_fn_c_try_compile
"$LINENO"; then :
7316 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=yes
7318 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=no
7320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7321 ac_c_werror_flag
=$ac_save_c_werror_flag
7322 CFLAGS
="$pgac_save_CFLAGS"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&5
7326 $as_echo "$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&6; }
7327 if test x
"$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" = x
"yes"; then
7328 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS" >&5
7332 $as_echo_n "checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS... " >&6; }
7333 if ${pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers+:} false
; then :
7334 $as_echo_n "(cached) " >&6
7336 pgac_save_CXXFLAGS
=$CXXFLAGS
7339 CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7340 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7341 ac_cxx_werror_flag
=yes
7343 ac_cpp
='$CXXCPP $CPPFLAGS'
7344 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7359 if ac_fn_cxx_try_compile
"$LINENO"; then :
7360 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=yes
7362 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=no
7364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 ac_cpp
='$CPP $CPPFLAGS'
7367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7371 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7372 CXXFLAGS
="$pgac_save_CXXFLAGS"
7373 CXX
="$pgac_save_CXX"
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&5
7376 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&6; }
7377 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" = x
"yes"; then
7378 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7384 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7385 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7386 $as_echo_n "(cached) " >&6
7388 pgac_save_CFLAGS
=$CFLAGS
7391 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7392 ac_save_c_werror_flag
=$ac_c_werror_flag
7393 ac_c_werror_flag
=yes
7394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7405 if ac_fn_c_try_compile
"$LINENO"; then :
7406 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7408 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 ac_c_werror_flag
=$ac_save_c_werror_flag
7412 CFLAGS
="$pgac_save_CFLAGS"
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7416 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7417 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7418 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7421 if test -n "$NOT_THE_CFLAGS"; then
7422 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7426 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7427 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7428 $as_echo_n "(cached) " >&6
7430 pgac_save_CFLAGS
=$CFLAGS
7433 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7434 ac_save_c_werror_flag
=$ac_c_werror_flag
7435 ac_c_werror_flag
=yes
7436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7447 if ac_fn_c_try_compile
"$LINENO"; then :
7448 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7450 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 ac_c_werror_flag
=$ac_save_c_werror_flag
7454 CFLAGS
="$pgac_save_CFLAGS"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7458 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7459 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7460 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7463 if test -n "$NOT_THE_CFLAGS"; then
7464 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7468 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7469 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7470 $as_echo_n "(cached) " >&6
7472 pgac_save_CFLAGS
=$CFLAGS
7475 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7476 ac_save_c_werror_flag
=$ac_c_werror_flag
7477 ac_c_werror_flag
=yes
7478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7489 if ac_fn_c_try_compile
"$LINENO"; then :
7490 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7492 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7495 ac_c_werror_flag
=$ac_save_c_werror_flag
7496 CFLAGS
="$pgac_save_CFLAGS"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7500 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7501 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7502 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7505 if test -n "$NOT_THE_CFLAGS"; then
7506 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7510 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7511 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7512 $as_echo_n "(cached) " >&6
7514 pgac_save_CFLAGS
=$CFLAGS
7517 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7518 ac_save_c_werror_flag
=$ac_c_werror_flag
7519 ac_c_werror_flag
=yes
7520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7531 if ac_fn_c_try_compile
"$LINENO"; then :
7532 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7534 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7537 ac_c_werror_flag
=$ac_save_c_werror_flag
7538 CFLAGS
="$pgac_save_CFLAGS"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7542 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7543 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7544 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7547 if test -n "$NOT_THE_CFLAGS"; then
7548 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7552 # supply -g if --enable-debug
7553 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7557 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7558 CXXFLAGS
="$CXXFLAGS -g"
7561 # enable code coverage if --enable-coverage
7562 if test "$enable_coverage" = yes; then
7563 if test "$GCC" = yes; then
7564 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7565 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7567 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7571 # enable profiling if --enable-profiling
7572 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7573 if test "$GCC" = yes; then
7575 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7577 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7578 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7580 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7584 # On Solaris, we need this #define to get POSIX-conforming versions
7585 # of many interfaces (sigwait, getpwuid_r, ...).
7586 if test "$PORTNAME" = "solaris"; then
7587 CPPFLAGS
="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
7590 # We already have this in Makefile.win32, but configure needs it too
7591 if test "$PORTNAME" = "win32"; then
7592 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
7595 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7596 # user-specified flags (if any) at the end. This lets users override
7597 # the automatic additions.
7598 CFLAGS
="$CFLAGS $user_CFLAGS"
7599 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7600 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7601 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7606 # The template file must set up CFLAGS_SL; we don't support user override
7609 # Check if the compiler still works with the final flag settings
7610 # (note, we're not checking that for CXX, which is optional)
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7612 $as_echo_n "checking whether the C compiler still works... " >&6; }
7613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7624 if ac_fn_c_try_link
"$LINENO"; then :
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7626 $as_echo "yes" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 as_fn_error $?
"cannot proceed" "$LINENO" 5
7632 rm -f core conftest.err conftest.
$ac_objext \
7633 conftest
$ac_exeext conftest.
$ac_ext
7635 # Defend against gcc -ffast-math
7636 if test "$GCC" = yes; then
7637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7643 #ifdef __FAST_MATH__
7650 if ac_fn_c_try_compile
"$LINENO"; then :
7653 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7658 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7659 # versions of clang do not understand -fexcess-precision=standard, the use of
7660 # x87 floating point operations leads to problems like isinf possibly returning
7661 # false for a value that is infinite when converted from the 80bit register to
7662 # the 8byte memory representation.
7664 # Only perform the test if the compiler doesn't understand
7665 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7667 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7675 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7683 if ac_fn_c_try_compile
"$LINENO"; then :
7686 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7692 ac_cpp
='$CPP $CPPFLAGS'
7693 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7697 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7698 # On Suns, sometimes $CPP names a directory.
7699 if test -n "$CPP" && test -d "$CPP"; then
7702 if test -z "$CPP"; then
7703 if ${ac_cv_prog_CPP+:} false
; then :
7704 $as_echo_n "(cached) " >&6
7706 # Double quotes because CPP needs to be expanded
7707 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7710 for ac_c_preproc_warn_flag
in '' yes
7712 # Use a header file that comes with gcc, so configuring glibc
7713 # with a fresh cross-compiler works.
7714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7715 # <limits.h> exists even on freestanding compilers.
7716 # On the NeXT, cc -E runs the code through the compiler's parser,
7717 # not just through cpp. "Syntax error" is here to catch this case.
7718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7721 # include <limits.h>
7723 # include <assert.h>
7727 if ac_fn_c_try_cpp
"$LINENO"; then :
7730 # Broken: fails on valid input.
7733 rm -f conftest.err conftest.i conftest.
$ac_ext
7735 # OK, works on sane cases. Now check whether nonexistent headers
7736 # can be detected and how.
7737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #include <ac_nonexistent.h>
7741 if ac_fn_c_try_cpp
"$LINENO"; then :
7742 # Broken: success on invalid input.
7745 # Passes both tests.
7749 rm -f conftest.err conftest.i conftest.
$ac_ext
7752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7753 rm -f conftest.i conftest.err conftest.
$ac_ext
7754 if $ac_preproc_ok; then :
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7767 $as_echo "$CPP" >&6; }
7769 for ac_c_preproc_warn_flag
in '' yes
7771 # Use a header file that comes with gcc, so configuring glibc
7772 # with a fresh cross-compiler works.
7773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7774 # <limits.h> exists even on freestanding compilers.
7775 # On the NeXT, cc -E runs the code through the compiler's parser,
7776 # not just through cpp. "Syntax error" is here to catch this case.
7777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7780 # include <limits.h>
7782 # include <assert.h>
7786 if ac_fn_c_try_cpp
"$LINENO"; then :
7789 # Broken: fails on valid input.
7792 rm -f conftest.err conftest.i conftest.
$ac_ext
7794 # OK, works on sane cases. Now check whether nonexistent headers
7795 # can be detected and how.
7796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 #include <ac_nonexistent.h>
7800 if ac_fn_c_try_cpp
"$LINENO"; then :
7801 # Broken: success on invalid input.
7804 # Passes both tests.
7808 rm -f conftest.err conftest.i conftest.
$ac_ext
7811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7812 rm -f conftest.i conftest.err conftest.
$ac_ext
7813 if $ac_preproc_ok; then :
7816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7818 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7819 See \`config.log' for more details" "$LINENO" 5; }
7823 ac_cpp
='$CPP $CPPFLAGS'
7824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7832 # Set up TAS assembly code if needed; the template file has now had its
7833 # chance to request this.
7835 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7838 if test "$need_tas" = yes ; then
7846 cat >>confdefs.h
<<_ACEOF
7847 #define DLSUFFIX "$DLSUFFIX"
7852 # Set up pkg_config in case we need it below
7861 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7862 if test -n "$ac_tool_prefix"; then
7863 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7864 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7868 $as_echo_n "(cached) " >&6
7872 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7879 test -z "$as_dir" && as_dir
=.
7880 for ac_exec_ext
in '' $ac_executable_extensions; do
7881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7882 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7894 if test -n "$PKG_CONFIG"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7896 $as_echo "$PKG_CONFIG" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7904 if test -z "$ac_cv_path_PKG_CONFIG"; then
7905 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7906 # Extract the first word of "pkg-config", so it can be a program name with args.
7907 set dummy pkg-config
; ac_word
=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7911 $as_echo_n "(cached) " >&6
7913 case $ac_pt_PKG_CONFIG in
7915 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir
=.
7923 for ac_exec_ext
in '' $ac_executable_extensions; do
7924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7937 if test -n "$ac_pt_PKG_CONFIG"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7939 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7945 if test "x$ac_pt_PKG_CONFIG" = x
; then
7948 case $cross_compiling:$ac_tool_warned in
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952 ac_tool_warned
=yes ;;
7954 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7957 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7961 if test -n "$PKG_CONFIG"; then
7962 _pkg_min_version
=0.9.0
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7964 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7965 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7967 $as_echo "yes" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7976 # Automatic dependency tracking
7980 # Check whether --enable-depend was given.
7981 if test "${enable_depend+set}" = set; then :
7982 enableval
=$enable_depend;
7991 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
8005 # Enable assert checks
8009 # Check whether --enable-cassert was given.
8010 if test "${enable_cassert+set}" = set; then :
8011 enableval
=$enable_cassert;
8015 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
8022 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
8035 # Include directories
8038 IFS
="${IFS}${PATH_SEPARATOR}"
8039 # SRCH_INC comes from the template file
8040 for dir
in $with_includes $SRCH_INC; do
8041 if test -d "$dir"; then
8042 INCLUDES
="$INCLUDES -I$dir"
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
8045 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
8053 # Library directories
8056 IFS
="${IFS}${PATH_SEPARATOR}"
8057 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
8058 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
8059 if test -d "$dir"; then
8060 LIBDIRS
="$LIBDIRS -L$dir"
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
8063 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
8072 $as_echo_n "checking whether to build with ICU support... " >&6; }
8076 # Check whether --with-icu was given.
8077 if test "${with_icu+set}" = set; then :
8082 $as_echo "#define USE_ICU 1" >>confdefs.h
8089 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
8096 $as_echo "#define USE_ICU 1" >>confdefs.h
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
8102 $as_echo "$with_icu" >&6; }
8105 if test "$with_icu" = yes; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
8109 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
8111 if test -n "$ICU_CFLAGS"; then
8112 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
8113 elif test -n "$PKG_CONFIG"; then
8114 if test -n "$PKG_CONFIG" && \
8115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8116 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119 test $ac_status = 0; }; then
8120 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
8121 test "x$?" != "x0" && pkg_failed
=yes
8128 if test -n "$ICU_LIBS"; then
8129 pkg_cv_ICU_LIBS
="$ICU_LIBS"
8130 elif test -n "$PKG_CONFIG"; then
8131 if test -n "$PKG_CONFIG" && \
8132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8133 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8136 test $ac_status = 0; }; then
8137 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
8138 test "x$?" != "x0" && pkg_failed
=yes
8148 if test $pkg_failed = yes; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8153 _pkg_short_errors_supported
=yes
8155 _pkg_short_errors_supported
=no
8157 if test $_pkg_short_errors_supported = yes; then
8158 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8160 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8162 # Put the nasty error message in config.log where it belongs
8163 echo "$ICU_PKG_ERRORS" >&5
8165 as_fn_error $?
"ICU library not found
8166 If you have ICU already installed, see config.log for details on the
8167 failure. It is possible the compiler isn't looking in the proper directory.
8168 Use --without-icu to disable ICU support." "$LINENO" 5
8169 elif test $pkg_failed = untried
; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 as_fn_error $?
"ICU library not found
8173 If you have ICU already installed, see config.log for details on the
8174 failure. It is possible the compiler isn't looking in the proper directory.
8175 Use --without-icu to disable ICU support." "$LINENO" 5
8177 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
8178 ICU_LIBS
=$pkg_cv_ICU_LIBS
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180 $as_echo "yes" >&6; }
8186 # Optionally build Tcl modules (PL/Tcl)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
8189 $as_echo_n "checking whether to build with Tcl... " >&6; }
8193 # Check whether --with-tcl was given.
8194 if test "${with_tcl+set}" = set; then :
8204 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
8215 $as_echo "$with_tcl" >&6; }
8218 # We see if the path to the Tcl/Tk configuration scripts is specified.
8219 # This will override the use of tclsh to find the paths to search.
8224 # Check whether --with-tclconfig was given.
8225 if test "${with_tclconfig+set}" = set; then :
8226 withval
=$with_tclconfig;
8229 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8232 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8244 # Optionally build Perl modules (PL/Perl)
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
8247 $as_echo_n "checking whether to build Perl modules... " >&6; }
8251 # Check whether --with-perl was given.
8252 if test "${with_perl+set}" = set; then :
8262 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8273 $as_echo "$with_perl" >&6; }
8277 # Optionally build Python modules (PL/Python)
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8280 $as_echo_n "checking whether to build Python modules... " >&6; }
8284 # Check whether --with-python was given.
8285 if test "${with_python+set}" = set; then :
8286 withval
=$with_python;
8295 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8306 $as_echo "$with_python" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8313 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8317 # Check whether --with-gssapi was given.
8318 if test "${with_gssapi+set}" = set; then :
8319 withval
=$with_gssapi;
8324 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8326 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8333 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8344 $as_echo "$with_gssapi" >&6; }
8352 # Kerberos configuration parameters
8357 # Check whether --with-krb-srvnam was given.
8358 if test "${with_krb_srvnam+set}" = set; then :
8359 withval
=$with_krb_srvnam;
8362 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8365 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8373 with_krb_srvnam
="postgres"
8379 cat >>confdefs.h
<<_ACEOF
8380 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8389 $as_echo_n "checking whether to build with PAM support... " >&6; }
8393 # Check whether --with-pam was given.
8394 if test "${with_pam+set}" = set; then :
8399 $as_echo "#define USE_PAM 1" >>confdefs.h
8406 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8417 $as_echo "$with_pam" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8424 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8428 # Check whether --with-bsd-auth was given.
8429 if test "${with_bsd_auth+set}" = set; then :
8430 withval
=$with_bsd_auth;
8434 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8441 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8452 $as_echo "$with_bsd_auth" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8459 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8463 # Check whether --with-ldap was given.
8464 if test "${with_ldap+set}" = set; then :
8469 $as_echo "#define USE_LDAP 1" >>confdefs.h
8476 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8487 $as_echo "$with_ldap" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8495 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8499 # Check whether --with-bonjour was given.
8500 if test "${with_bonjour+set}" = set; then :
8501 withval
=$with_bonjour;
8505 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8512 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8523 $as_echo "$with_bonjour" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8530 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8534 # Check whether --with-selinux was given.
8535 if test "${with_selinux+set}" = set; then :
8536 withval
=$with_selinux;
8545 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8557 $as_echo "$with_selinux" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8563 $as_echo_n "checking whether to build with systemd support... " >&6; }
8567 # Check whether --with-systemd was given.
8568 if test "${with_systemd+set}" = set; then :
8569 withval
=$with_systemd;
8573 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8580 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8592 $as_echo "$with_systemd" >&6; }
8600 # Check whether --with-readline was given.
8601 if test "${with_readline+set}" = set; then :
8602 withval
=$with_readline;
8611 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8621 # readline on MinGW has problems with backslashes in psql and other bugs.
8622 # This is particularly a problem with non-US code pages.
8623 # Therefore disable its use until we understand the cause. 2004-07-20
8624 if test "$PORTNAME" = "win32"; then
8625 if test "$with_readline" = yes; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8627 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8640 # Check whether --with-libedit-preferred was given.
8641 if test "${with_libedit_preferred+set}" = set; then :
8642 withval
=$with_libedit_preferred;
8651 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8656 with_libedit_preferred
=no
8666 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8667 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8668 # UUID library. More than one of these might be present on a given platform,
8669 # so we make the user say which one she wants.
8674 # Check whether --with-uuid was given.
8675 if test "${with_uuid+set}" = set; then :
8679 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8682 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8692 if test x
"$with_uuid" = x
"" ; then
8698 # Check whether --with-ossp-uuid was given.
8699 if test "${with_ossp_uuid+set}" = set; then :
8700 withval
=$with_ossp_uuid;
8709 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8719 if test "$with_ossp_uuid" = yes ; then
8723 if test "$with_uuid" != no
; then
8724 if test "$with_uuid" = bsd
; then
8726 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8728 elif test "$with_uuid" = e2fs
; then
8730 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8732 elif test "$with_uuid" = ossp
; then
8734 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8737 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8747 $as_echo_n "checking whether to build with XML support... " >&6; }
8751 # Check whether --with-libxml was given.
8752 if test "${with_libxml+set}" = set; then :
8753 withval
=$with_libxml;
8757 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8764 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8775 $as_echo "$with_libxml" >&6; }
8778 if test "$with_libxml" = yes ; then
8779 # Check pkg-config, then xml2-config. But for backwards compatibility,
8780 # setting XML2_CONFIG overrides pkg-config.
8781 have_libxml2_pkg_config
=no
8782 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8786 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8788 if test -n "$XML2_CFLAGS"; then
8789 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8790 elif test -n "$PKG_CONFIG"; then
8791 if test -n "$PKG_CONFIG" && \
8792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8793 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8796 test $ac_status = 0; }; then
8797 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8798 test "x$?" != "x0" && pkg_failed
=yes
8805 if test -n "$XML2_LIBS"; then
8806 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8807 elif test -n "$PKG_CONFIG"; then
8808 if test -n "$PKG_CONFIG" && \
8809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8810 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8813 test $ac_status = 0; }; then
8814 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8815 test "x$?" != "x0" && pkg_failed
=yes
8825 if test $pkg_failed = yes; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8829 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8830 _pkg_short_errors_supported
=yes
8832 _pkg_short_errors_supported
=no
8834 if test $_pkg_short_errors_supported = yes; then
8835 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8837 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8839 # Put the nasty error message in config.log where it belongs
8840 echo "$XML2_PKG_ERRORS" >&5
8843 elif test $pkg_failed = untried
; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8848 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8849 XML2_LIBS
=$pkg_cv_XML2_LIBS
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8851 $as_echo "yes" >&6; }
8852 have_libxml2_pkg_config
=yes
8855 if test "$have_libxml2_pkg_config" = no
; then
8856 if test -z "$XML2_CONFIG"; then
8857 for ac_prog
in xml2-config
8859 # Extract the first word of "$ac_prog", so it can be a program name with args.
8860 set dummy
$ac_prog; ac_word
=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8864 $as_echo_n "(cached) " >&6
8866 case $XML2_CONFIG in
8868 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir
=.
8876 for ac_exec_ext
in '' $ac_executable_extensions; do
8877 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8878 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8890 if test -n "$XML2_CONFIG"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8892 $as_echo "$XML2_CONFIG" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8899 test -n "$XML2_CONFIG" && break
8903 # Report the value of XML2_CONFIG in configure's output in all cases.
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8905 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8907 $as_echo "$XML2_CONFIG" >&6; }
8910 if test -n "$XML2_CONFIG"; then
8911 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8912 XML2_LIBS
=`$XML2_CONFIG --libs`
8915 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8916 for pgac_option
in $XML2_CFLAGS; do
8917 case $pgac_option in
8918 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8921 for pgac_option
in $XML2_LIBS; do
8922 case $pgac_option in
8923 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8935 # Check whether --with-libxslt was given.
8936 if test "${with_libxslt+set}" = set; then :
8937 withval
=$with_libxslt;
8941 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8948 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8968 # Check whether --with-system-tzdata was given.
8969 if test "${with_system_tzdata+set}" = set; then :
8970 withval
=$with_system_tzdata;
8973 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8976 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8994 # Check whether --with-zlib was given.
8995 if test "${with_zlib+set}" = set; then :
9005 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
9021 $as_echo_n "checking whether to build with LZ4 support... " >&6; }
9025 # Check whether --with-lz4 was given.
9026 if test "${with_lz4+set}" = set; then :
9031 $as_echo "#define USE_LZ4 1" >>confdefs.h
9038 as_fn_error $?
"no argument expected for --with-lz4 option" "$LINENO" 5
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
9049 $as_echo "$with_lz4" >&6; }
9052 if test "$with_lz4" = yes; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
9056 $as_echo_n "checking for liblz4... " >&6; }
9058 if test -n "$LZ4_CFLAGS"; then
9059 pkg_cv_LZ4_CFLAGS
="$LZ4_CFLAGS"
9060 elif test -n "$PKG_CONFIG"; then
9061 if test -n "$PKG_CONFIG" && \
9062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9063 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9066 test $ac_status = 0; }; then
9067 pkg_cv_LZ4_CFLAGS
=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
9068 test "x$?" != "x0" && pkg_failed
=yes
9075 if test -n "$LZ4_LIBS"; then
9076 pkg_cv_LZ4_LIBS
="$LZ4_LIBS"
9077 elif test -n "$PKG_CONFIG"; then
9078 if test -n "$PKG_CONFIG" && \
9079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9080 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9083 test $ac_status = 0; }; then
9084 pkg_cv_LZ4_LIBS
=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
9085 test "x$?" != "x0" && pkg_failed
=yes
9095 if test $pkg_failed = yes; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9100 _pkg_short_errors_supported
=yes
9102 _pkg_short_errors_supported
=no
9104 if test $_pkg_short_errors_supported = yes; then
9105 LZ4_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
9107 LZ4_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
9109 # Put the nasty error message in config.log where it belongs
9110 echo "$LZ4_PKG_ERRORS" >&5
9112 as_fn_error $?
"Package requirements (liblz4) were not met:
9116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9117 installed software in a non-standard prefix.
9119 Alternatively, you may set the environment variables LZ4_CFLAGS
9120 and LZ4_LIBS to avoid the need to call pkg-config.
9121 See the pkg-config man page for more details." "$LINENO" 5
9122 elif test $pkg_failed = untried
; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9127 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9128 is in your PATH or set the PKG_CONFIG environment variable to the full
9131 Alternatively, you may set the environment variables LZ4_CFLAGS
9132 and LZ4_LIBS to avoid the need to call pkg-config.
9133 See the pkg-config man page for more details.
9135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9136 See \`config.log' for more details" "$LINENO" 5; }
9138 LZ4_CFLAGS
=$pkg_cv_LZ4_CFLAGS
9139 LZ4_LIBS
=$pkg_cv_LZ4_LIBS
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9141 $as_echo "yes" >&6; }
9144 # We only care about -I, -D, and -L switches;
9145 # note that -llz4 will be added by AC_CHECK_LIB below.
9146 for pgac_option
in $LZ4_CFLAGS; do
9147 case $pgac_option in
9148 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9151 for pgac_option
in $LZ4_LIBS; do
9152 case $pgac_option in
9153 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ZSTD support" >&5
9162 $as_echo_n "checking whether to build with ZSTD support... " >&6; }
9166 # Check whether --with-zstd was given.
9167 if test "${with_zstd+set}" = set; then :
9172 $as_echo "#define USE_ZSTD 1" >>confdefs.h
9179 as_fn_error $?
"no argument expected for --with-zstd option" "$LINENO" 5
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd" >&5
9190 $as_echo "$with_zstd" >&6; }
9193 if test "$with_zstd" = yes; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9197 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9199 if test -n "$ZSTD_CFLAGS"; then
9200 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
9201 elif test -n "$PKG_CONFIG"; then
9202 if test -n "$PKG_CONFIG" && \
9203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9204 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9207 test $ac_status = 0; }; then
9208 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9209 test "x$?" != "x0" && pkg_failed
=yes
9216 if test -n "$ZSTD_LIBS"; then
9217 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
9218 elif test -n "$PKG_CONFIG"; then
9219 if test -n "$PKG_CONFIG" && \
9220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9221 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9224 test $ac_status = 0; }; then
9225 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9226 test "x$?" != "x0" && pkg_failed
=yes
9236 if test $pkg_failed = yes; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9240 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9241 _pkg_short_errors_supported
=yes
9243 _pkg_short_errors_supported
=no
9245 if test $_pkg_short_errors_supported = yes; then
9246 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9248 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9250 # Put the nasty error message in config.log where it belongs
9251 echo "$ZSTD_PKG_ERRORS" >&5
9253 as_fn_error $?
"Package requirements (libzstd >= 1.4.0) were not met:
9257 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9258 installed software in a non-standard prefix.
9260 Alternatively, you may set the environment variables ZSTD_CFLAGS
9261 and ZSTD_LIBS to avoid the need to call pkg-config.
9262 See the pkg-config man page for more details." "$LINENO" 5
9263 elif test $pkg_failed = untried
; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9268 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9269 is in your PATH or set the PKG_CONFIG environment variable to the full
9272 Alternatively, you may set the environment variables ZSTD_CFLAGS
9273 and ZSTD_LIBS to avoid the need to call pkg-config.
9274 See the pkg-config man page for more details.
9276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9277 See \`config.log' for more details" "$LINENO" 5; }
9279 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
9280 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9282 $as_echo "yes" >&6; }
9285 # We only care about -I, -D, and -L switches;
9286 # note that -lzstd will be added by AC_CHECK_LIB below.
9287 for pgac_option
in $ZSTD_CFLAGS; do
9288 case $pgac_option in
9289 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9292 for pgac_option
in $ZSTD_LIBS; do
9293 case $pgac_option in
9294 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9302 CPPFLAGS
="$CPPFLAGS $INCLUDES"
9303 LDFLAGS
="$LDFLAGS $LIBDIRS"
9309 if test -n "$ac_tool_prefix"; then
9310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9311 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_prog_STRIP+:} false
; then :
9315 $as_echo_n "(cached) " >&6
9317 if test -n "$STRIP"; then
9318 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9324 test -z "$as_dir" && as_dir
=.
9325 for ac_exec_ext
in '' $ac_executable_extensions; do
9326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9327 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 STRIP
=$ac_cv_prog_STRIP
9338 if test -n "$STRIP"; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9340 $as_echo "$STRIP" >&6; }
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9348 if test -z "$ac_cv_prog_STRIP"; then
9350 # Extract the first word of "strip", so it can be a program name with args.
9351 set dummy strip
; ac_word
=$2
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9355 $as_echo_n "(cached) " >&6
9357 if test -n "$ac_ct_STRIP"; then
9358 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9364 test -z "$as_dir" && as_dir
=.
9365 for ac_exec_ext
in '' $ac_executable_extensions; do
9366 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9367 ac_cv_prog_ac_ct_STRIP
="strip"
9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9378 if test -n "$ac_ct_STRIP"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9380 $as_echo "$ac_ct_STRIP" >&6; }
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9386 if test "x$ac_ct_STRIP" = x
; then
9389 case $cross_compiling:$ac_tool_warned in
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393 ac_tool_warned
=yes ;;
9398 STRIP
="$ac_cv_prog_STRIP"
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9403 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9404 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9405 STRIP_STATIC_LIB
="$STRIP --strip-unneeded"
9406 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9408 $as_echo "yes" >&6; }
9413 STRIP_STATIC_LIB
=$STRIP
9414 STRIP_SHARED_LIB
=$STRIP
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9416 $as_echo "yes" >&6; }
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9429 if test -n "$ac_tool_prefix"; then
9430 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9431 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if ${ac_cv_prog_AR+:} false
; then :
9435 $as_echo_n "(cached) " >&6
9437 if test -n "$AR"; then
9438 ac_cv_prog_AR
="$AR" # Let the user override the test.
9440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9444 test -z "$as_dir" && as_dir
=.
9445 for ac_exec_ext
in '' $ac_executable_extensions; do
9446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9447 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 if test -n "$AR"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9460 $as_echo "$AR" >&6; }
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9468 if test -z "$ac_cv_prog_AR"; then
9470 # Extract the first word of "ar", so it can be a program name with args.
9471 set dummy
ar; ac_word
=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9475 $as_echo_n "(cached) " >&6
9477 if test -n "$ac_ct_AR"; then
9478 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9484 test -z "$as_dir" && as_dir
=.
9485 for ac_exec_ext
in '' $ac_executable_extensions; do
9486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_prog_ac_ct_AR
="ar"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9498 if test -n "$ac_ct_AR"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9500 $as_echo "$ac_ct_AR" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9506 if test "x$ac_ct_AR" = x
; then
9509 case $cross_compiling:$ac_tool_warned in
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9513 ac_tool_warned
=yes ;;
9521 if test "$PORTNAME" = "win32"; then
9522 if test -n "$ac_tool_prefix"; then
9523 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9524 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_prog_WINDRES+:} false
; then :
9528 $as_echo_n "(cached) " >&6
9530 if test -n "$WINDRES"; then
9531 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9537 test -z "$as_dir" && as_dir
=.
9538 for ac_exec_ext
in '' $ac_executable_extensions; do
9539 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 WINDRES
=$ac_cv_prog_WINDRES
9551 if test -n "$WINDRES"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9553 $as_echo "$WINDRES" >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9561 if test -z "$ac_cv_prog_WINDRES"; then
9562 ac_ct_WINDRES
=$WINDRES
9563 # Extract the first word of "windres", so it can be a program name with args.
9564 set dummy windres
; ac_word
=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9568 $as_echo_n "(cached) " >&6
9570 if test -n "$ac_ct_WINDRES"; then
9571 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9577 test -z "$as_dir" && as_dir
=.
9578 for ac_exec_ext
in '' $ac_executable_extensions; do
9579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9580 ac_cv_prog_ac_ct_WINDRES
="windres"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9591 if test -n "$ac_ct_WINDRES"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9593 $as_echo "$ac_ct_WINDRES" >&6; }
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9599 if test "x$ac_ct_WINDRES" = x
; then
9602 case $cross_compiling:$ac_tool_warned in
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9606 ac_tool_warned
=yes ;;
9608 WINDRES
=$ac_ct_WINDRES
9611 WINDRES
="$ac_cv_prog_WINDRES"
9616 # Find a good install program. We prefer a C program (faster),
9617 # so one script is as good as another. But avoid the broken or
9618 # incompatible versions:
9619 # SysV /etc/install, /usr/sbin/install
9620 # SunOS /usr/etc/install
9621 # IRIX /sbin/install
9623 # AmigaOS /C/install, which installs bootblocks on floppy discs
9624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9627 # OS/2's system install, which has a completely different semantic
9628 # ./install, which can be erroneously created by make from ./install.sh.
9629 # Reject install programs that cannot install multiple files.
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9631 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9632 if test -z "$INSTALL"; then
9633 if ${ac_cv_path_install+:} false
; then :
9634 $as_echo_n "(cached) " >&6
9636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9640 test -z "$as_dir" && as_dir
=.
9641 # Account for people who put trailing slashes in PATH elements.
9642 case $as_dir/ in #((
9643 .
/ | .
// |
/[cC
]/* | \
9644 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9645 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9648 # OSF1 and SCO ODT 3.0 have their own names for install.
9649 # Don't use installbsd from OSF since it installs stuff as root
9651 for ac_prog
in ginstall scoinst
install; do
9652 for ac_exec_ext
in '' $ac_executable_extensions; do
9653 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9654 if test $ac_prog = install &&
9655 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9656 # AIX install. It has an incompatible calling convention.
9658 elif test $ac_prog = install &&
9659 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9660 # program-specific install script used by HP pwplus--don't use.
9663 rm -rf conftest.one conftest.two conftest.dir
9664 echo one
> conftest.one
9665 echo two
> conftest.two
9667 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9668 test -s conftest.one
&& test -s conftest.two
&&
9669 test -s conftest.dir
/conftest.one
&&
9670 test -s conftest.dir
/conftest.two
9672 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9685 rm -rf conftest.one conftest.two conftest.dir
9688 if test "${ac_cv_path_install+set}" = set; then
9689 INSTALL
=$ac_cv_path_install
9691 # As a last resort, use the slow shell script. Don't cache a
9692 # value for INSTALL within a source directory, because that will
9693 # break other packages using the cache if that directory is
9694 # removed, or if the value is a relative name.
9695 INSTALL
=$ac_install_sh
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9699 $as_echo "$INSTALL" >&6; }
9701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9702 # It thinks the first close brace ends the variable substitution.
9703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9705 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9707 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9709 # When Autoconf chooses install-sh as install program it tries to generate
9710 # a relative path to it in each makefile where it substitutes it. This clashes
9711 # with our Makefile.global concept. This workaround helps.
9713 *install-sh
*) install_bin
='';;
9714 *) install_bin
=$INSTALL;;
9718 if test -z "$TAR"; then
9721 # Extract the first word of "$ac_prog", so it can be a program name with args.
9722 set dummy
$ac_prog; ac_word
=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if ${ac_cv_path_TAR+:} false
; then :
9726 $as_echo_n "(cached) " >&6
9730 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9737 test -z "$as_dir" && as_dir
=.
9738 for ac_exec_ext
in '' $ac_executable_extensions; do
9739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9740 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 if test -n "$TAR"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9754 $as_echo "$TAR" >&6; }
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9761 test -n "$TAR" && break
9765 # Report the value of TAR in configure's output in all cases.
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9767 $as_echo_n "checking for TAR... " >&6; }
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9769 $as_echo "$TAR" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9773 $as_echo_n "checking whether ln -s works... " >&6; }
9775 if test "$LN_S" = "ln -s"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9777 $as_echo "yes" >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9780 $as_echo "no, using $LN_S" >&6; }
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9784 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9785 if test -z "$MKDIR_P"; then
9786 if ${ac_cv_path_mkdir+:} false
; then :
9787 $as_echo_n "(cached) " >&6
9789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9790 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9793 test -z "$as_dir" && as_dir
=.
9794 for ac_prog
in mkdir gmkdir
; do
9795 for ac_exec_ext
in '' $ac_executable_extensions; do
9796 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9797 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9798 'mkdir (GNU coreutils) '* | \
9799 'mkdir (coreutils) '* | \
9800 'mkdir (fileutils) '4.1*)
9801 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9811 test -d .
/--version && rmdir .
/--version
9812 if test "${ac_cv_path_mkdir+set}" = set; then
9813 MKDIR_P
="$ac_cv_path_mkdir -p"
9815 # As a last resort, use the slow shell script. Don't cache a
9816 # value for MKDIR_P within a source directory, because that will
9817 # break other packages using the cache if that directory is
9818 # removed, or if the value is a relative name.
9819 MKDIR_P
="$ac_install_sh -d"
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9823 $as_echo "$MKDIR_P" >&6; }
9825 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9826 # a relative path to it in each makefile where it substitutes it. This clashes
9827 # with our Makefile.global concept. This workaround helps.
9829 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9832 if test -z "$BISON"; then
9833 for ac_prog
in bison
9835 # Extract the first word of "$ac_prog", so it can be a program name with args.
9836 set dummy
$ac_prog; ac_word
=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_path_BISON+:} false
; then :
9840 $as_echo_n "(cached) " >&6
9844 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9851 test -z "$as_dir" && as_dir
=.
9852 for ac_exec_ext
in '' $ac_executable_extensions; do
9853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9865 BISON
=$ac_cv_path_BISON
9866 if test -n "$BISON"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9868 $as_echo "$BISON" >&6; }
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871 $as_echo "no" >&6; }
9875 test -n "$BISON" && break
9879 # Report the value of BISON in configure's output in all cases.
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9881 $as_echo_n "checking for BISON... " >&6; }
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9883 $as_echo "$BISON" >&6; }
9887 if test "$BISON"; then
9888 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9890 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9891 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 2.3) exit 0; else exit 1;}'
9894 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9895 *** Bison version 2.3 or later is required, but this is $pgac_bison_version." "$LINENO" 5
9897 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9898 # of the now preferred %name-prefix "base_yy", but the latter
9899 # doesn't work with Bison 2.3 or less. So for now we silence the
9900 # deprecation warnings.
9901 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9903 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9907 if test -z "$BISON"; then
9908 as_fn_error $?
"bison not found" "$LINENO" 5
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9913 $as_echo_n "checking for flex... " >&6; }
9914 if ${pgac_cv_path_flex+:} false
; then :
9915 $as_echo_n "(cached) " >&6
9917 # Let the user override the test
9918 if test -n "$FLEX"; then
9919 pgac_cv_path_flex
=$FLEX
9923 for pgac_dir
in $PATH; do
9925 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9928 for pgac_prog
in flex
lex; do
9929 pgac_candidate
="$pgac_dir/$pgac_prog"
9930 if test -f "$pgac_candidate" \
9931 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9933 echo '%%' > conftest.l
9934 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9935 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9936 if echo "$pgac_flex_version" |
sed 's/[.a-z]/ /g' |
$AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 35))) exit 0; else exit 1;}'
9938 pgac_cv_path_flex
=$pgac_candidate
9942 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9943 *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version." "$LINENO" 5
9949 rm -f conftest.l
lex.yy.c
9950 : ${pgac_cv_path_flex=no}
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9955 $as_echo "$pgac_cv_path_flex" >&6; }
9956 if test x
"$pgac_cv_path_flex" = x
"no"; then
9957 as_fn_error $?
"flex not found" "$LINENO" 5
9959 FLEX
=$pgac_cv_path_flex
9960 pgac_flex_version
=`$FLEX --version 2>/dev/null`
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9962 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9969 if test -z "$PERL"; then
9972 # Extract the first word of "$ac_prog", so it can be a program name with args.
9973 set dummy
$ac_prog; ac_word
=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if ${ac_cv_path_PERL+:} false
; then :
9977 $as_echo_n "(cached) " >&6
9981 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
9984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9988 test -z "$as_dir" && as_dir
=.
9989 for ac_exec_ext
in '' $ac_executable_extensions; do
9990 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9991 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 PERL
=$ac_cv_path_PERL
10003 if test -n "$PERL"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10005 $as_echo "$PERL" >&6; }
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10012 test -n "$PERL" && break
10016 # Report the value of PERL in configure's output in all cases.
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
10018 $as_echo_n "checking for PERL... " >&6; }
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10020 $as_echo "$PERL" >&6; }
10024 if test "$PERL"; then
10025 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'`
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
10027 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
10028 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
10029 $AWK '{ if ($1 == 5 && ($2 >= 14)) exit 1; else exit 0;}'
10032 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10033 *** Perl version 5.14 or later is required, but this is $pgac_perl_version." "$LINENO" 5
10037 if test -z "$PERL"; then
10038 as_fn_error $?
"Perl not found" "$LINENO" 5
10041 if test "$with_perl" = yes; then
10042 if test -z "$PERL"; then
10043 as_fn_error $?
"Perl not found" "$LINENO" 5
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
10047 $as_echo_n "checking for Perl archlibexp... " >&6; }
10048 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
10049 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
10051 $as_echo "$perl_archlibexp" >&6; }
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
10053 $as_echo_n "checking for Perl privlibexp... " >&6; }
10054 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
10055 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
10057 $as_echo "$perl_privlibexp" >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
10059 $as_echo_n "checking for Perl useshrplib... " >&6; }
10060 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
10061 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
10063 $as_echo "$perl_useshrplib" >&6; }
10064 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
10065 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
10066 You might have to rebuild your Perl installation. Refer to the
10067 documentation for details. Use --without-perl to disable building
10068 PL/Perl." "$LINENO" 5
10070 # On most platforms, archlibexp is also where the Perl include files live ...
10071 perl_includespec
="-I$perl_archlibexp/CORE"
10072 # ... but on newer macOS versions, we must use -iwithsysroot to look
10073 # under $PG_SYSROOT
10074 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
10075 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
10076 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
10081 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
10082 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10084 $as_echo "$perl_ccflags" >&6; }
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10086 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10087 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10089 $as_echo "$perl_embed_ccflags" >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10093 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10094 if test "$PORTNAME" = "win32" ; then
10095 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10096 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10097 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10099 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10100 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10101 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10105 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10106 pgac_tmp2
=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'`
10107 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"`
10109 if test -z "$perl_embed_ldflags" ; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 as_fn_error $?
"could not determine flags for linking embedded Perl.
10113 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10114 installed." "$LINENO" 5
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10117 $as_echo "$perl_embed_ldflags" >&6; }
10122 if test "$with_python" = yes; then
10123 if test -z "$PYTHON"; then
10124 for ac_prog
in python3 python
10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
10127 set dummy
$ac_prog; ac_word
=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_path_PYTHON+:} false
; then :
10131 $as_echo_n "(cached) " >&6
10135 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10139 for as_dir
in $PATH
10142 test -z "$as_dir" && as_dir
=.
10143 for ac_exec_ext
in '' $ac_executable_extensions; do
10144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 PYTHON
=$ac_cv_path_PYTHON
10157 if test -n "$PYTHON"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10159 $as_echo "$PYTHON" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10166 test -n "$PYTHON" && break
10170 # Report the value of PYTHON in configure's output in all cases.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10172 $as_echo_n "checking for PYTHON... " >&6; }
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10174 $as_echo "$PYTHON" >&6; }
10177 if test x
"$PYTHON" = x
""; then
10178 as_fn_error $?
"Python not found" "$LINENO" 5
10182 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10184 $as_echo "$as_me: using python $python_fullversion" >&6;}
10185 # python_fullversion is typically n.n.n plus some trailing junk
10186 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10187 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10188 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10189 # Reject unsupported Python versions as soon as practical.
10190 if test "$python_majorversion" -lt 3; then
10191 as_fn_error $?
"Python version $python_version is too old (version 3 or later is required)" "$LINENO" 5
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10195 $as_echo_n "checking for Python sysconfig module... " >&6; }
10196 if "${PYTHON}" -c 'import sysconfig' 2>&5
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10199 $as_echo "yes" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10203 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10207 $as_echo_n "checking Python configuration directory... " >&6; }
10208 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10210 $as_echo "$python_configdir" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10213 $as_echo_n "checking Python include directory... " >&6; }
10214 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10215 if test "$PORTNAME" = win32
; then
10216 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10219 $as_echo "$python_includespec" >&6; }
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10224 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10226 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10227 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10229 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10230 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10231 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10233 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10236 # Otherwise, guess the base name of the shlib.
10237 # LDVERSION was added in Python 3.2, before that use VERSION,
10238 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10239 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10240 if test x
"${python_ldversion}" != x
""; then
10241 ldlibrary
="python${python_ldversion}"
10243 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10244 if test x
"${python_version_var}" != x
""; then
10245 ldlibrary
="python${python_version_var}"
10247 ldlibrary
="python${python_version}"
10250 # Search for a likely-looking file.
10252 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10254 if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then
10260 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10261 # (".so.n.n") as well. However, check this only after failing to find
10262 # ".so" anywhere, because yet other platforms (Debian) put the .so
10263 # symlink in a different directory from the underlying versioned shlib.
10264 if test "$found_shlib" != 1; then
10265 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10267 for f
in "$d/lib${ldlibrary}.so."* ; do
10268 if test -e "$f"; then
10276 # As usual, Windows has its own ideas. Possible default library
10277 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10278 # and the "lib" prefix might not be there.
10279 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10280 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10282 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10283 if test -e "$f"; then
10292 if test "$found_shlib" != 1; then
10293 as_fn_error $?
"could not find shared library for Python
10294 You might have to rebuild your Python installation. Refer to the
10295 documentation for details. Use --without-python to disable building
10296 PL/Python." "$LINENO" 5
10298 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10300 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10303 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10309 if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
10310 if test -z "$ZIC"; then
10313 # Extract the first word of "$ac_prog", so it can be a program name with args.
10314 set dummy $ac_prog; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10316 $as_echo_n "checking
for $ac_word...
" >&6; }
10317 if ${ac_cv_path_ZIC+:} false; then :
10318 $as_echo_n "(cached
) " >&6
10322 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326 for as_dir in $PATH
10329 test -z "$as_dir" && as_dir=.
10330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10332 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10343 ZIC=$ac_cv_path_ZIC
10344 if test -n "$ZIC"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10346 $as_echo "$ZIC" >&6; }
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10349 $as_echo "no
" >&6; }
10353 test -n "$ZIC" && break
10357 # Report the value of ZIC in configure's output in all cases.
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10359 $as_echo_n "checking
for ZIC...
" >&6; }
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10361 $as_echo "$ZIC" >&6; }
10364 if test -z "$ZIC"; then
10366 When cross-compiling
, either use the option
--with-system-tzdata to use
10367 existing time-zone data
, or
set the environment variable ZIC to a zic
10368 program to use during the build.
" "$LINENO" 5
10375 # For each platform, we need to know about any special compile and link
10376 # libraries, and whether the normal C function names are thread-safe.
10377 # WIN32 doesn't need the pthread tests; it always uses threads
10379 # These tests are run before the library-tests, because linking with the
10380 # other libraries can pull in the pthread functions as a side-effect. We
10381 # want to use the -pthread or similar flags directly, and not rely on
10382 # the side-effects of linking with some other library.
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10385 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10386 if ${ac_cv_path_SED+:} false; then :
10387 $as_echo_n "(cached
) " >&6
10389 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10390 for ac_i in 1 2 3 4 5 6 7; do
10391 ac_script="$ac_script$as_nl$ac_script"
10393 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10394 { ac_script=; unset ac_script;}
10395 if test -z "$SED"; then
10396 ac_path_SED_found=false
10397 # Loop through the user's path and test for each of PROGNAME-LIST
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10402 test -z "$as_dir" && as_dir=.
10403 for ac_prog in sed gsed; do
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10406 as_fn_executable_p "$ac_path_SED" || continue
10407 # Check for GNU ac_path_SED and select it if it is found.
10408 # Check for GNU $ac_path_SED
10409 case `"$ac_path_SED" --version 2>&1` in
10411 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10414 $as_echo_n 0123456789 >"conftest.
in"
10417 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10418 mv "conftest.tmp
" "conftest.
in"
10419 cp "conftest.
in" "conftest.
nl"
10420 $as_echo '' >> "conftest.
nl"
10421 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10422 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10423 as_fn_arith $ac_count + 1 && ac_count=$as_val
10424 if test $ac_count -gt ${ac_path_SED_max-0}; then
10425 # Best one so far, save it but keep looking for a better one
10426 ac_cv_path_SED="$ac_path_SED"
10427 ac_path_SED_max=$ac_count
10429 # 10*(2^10) chars as input seems more than enough
10430 test $ac_count -gt 10 && break
10432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10435 $ac_path_SED_found && break 3
10440 if test -z "$ac_cv_path_SED"; then
10441 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10444 ac_cv_path_SED=$SED
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10449 $as_echo "$ac_cv_path_SED" >&6; }
10450 SED="$ac_cv_path_SED"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10455 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10456 if ${ac_cv_path_GREP+:} false; then :
10457 $as_echo_n "(cached
) " >&6
10459 if test -z "$GREP"; then
10460 ac_path_GREP_found=false
10461 # Loop through the user's path and test for each of PROGNAME-LIST
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10466 test -z "$as_dir" && as_dir=.
10467 for ac_prog in grep ggrep; do
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10470 as_fn_executable_p "$ac_path_GREP" || continue
10471 # Check for GNU ac_path_GREP and select it if it is found.
10472 # Check for GNU $ac_path_GREP
10473 case `"$ac_path_GREP" --version 2>&1` in
10475 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10478 $as_echo_n 0123456789 >"conftest.
in"
10481 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10482 mv "conftest.tmp
" "conftest.
in"
10483 cp "conftest.
in" "conftest.
nl"
10484 $as_echo 'GREP' >> "conftest.
nl"
10485 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10486 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10487 as_fn_arith $ac_count + 1 && ac_count=$as_val
10488 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10489 # Best one so far, save it but keep looking for a better one
10490 ac_cv_path_GREP="$ac_path_GREP"
10491 ac_path_GREP_max=$ac_count
10493 # 10*(2^10) chars as input seems more than enough
10494 test $ac_count -gt 10 && break
10496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10499 $ac_path_GREP_found && break 3
10504 if test -z "$ac_cv_path_GREP"; then
10505 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10508 ac_cv_path_GREP=$GREP
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10513 $as_echo "$ac_cv_path_GREP" >&6; }
10514 GREP="$ac_cv_path_GREP"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10518 $as_echo_n "checking
for egrep...
" >&6; }
10519 if ${ac_cv_path_EGREP+:} false; then :
10520 $as_echo_n "(cached
) " >&6
10522 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10523 then ac_cv_path_EGREP="$GREP -E"
10525 if test -z "$EGREP"; then
10526 ac_path_EGREP_found=false
10527 # Loop through the user's path and test for each of PROGNAME-LIST
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10532 test -z "$as_dir" && as_dir=.
10533 for ac_prog in egrep; do
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10536 as_fn_executable_p "$ac_path_EGREP" || continue
10537 # Check for GNU ac_path_EGREP and select it if it is found.
10538 # Check for GNU $ac_path_EGREP
10539 case `"$ac_path_EGREP" --version 2>&1` in
10541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10544 $as_echo_n 0123456789 >"conftest.
in"
10547 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10548 mv "conftest.tmp
" "conftest.
in"
10549 cp "conftest.
in" "conftest.
nl"
10550 $as_echo 'EGREP' >> "conftest.
nl"
10551 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10552 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10553 as_fn_arith $ac_count + 1 && ac_count=$as_val
10554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10555 # Best one so far, save it but keep looking for a better one
10556 ac_cv_path_EGREP="$ac_path_EGREP"
10557 ac_path_EGREP_max=$ac_count
10559 # 10*(2^10) chars as input seems more than enough
10560 test $ac_count -gt 10 && break
10562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10565 $ac_path_EGREP_found && break 3
10570 if test -z "$ac_cv_path_EGREP"; then
10571 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10574 ac_cv_path_EGREP=$EGREP
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10580 $as_echo "$ac_cv_path_EGREP" >&6; }
10581 EGREP="$ac_cv_path_EGREP"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10585 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10586 if ${ac_cv_header_stdc+:} false; then :
10587 $as_echo_n "(cached
) " >&6
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #include <stdlib.h>
10592 #include <stdarg.h>
10593 #include <string.h>
10604 if ac_fn_c_try_compile "$LINENO"; then :
10605 ac_cv_header_stdc=yes
10607 ac_cv_header_stdc=no
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 if test $ac_cv_header_stdc = yes; then
10612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include <string.h>
10618 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10619 $EGREP "memchr
" >/dev/null 2>&1; then :
10622 ac_cv_header_stdc=no
10628 if test $ac_cv_header_stdc = yes; then
10629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <stdlib.h>
10635 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10636 $EGREP "free
" >/dev/null 2>&1; then :
10639 ac_cv_header_stdc=no
10645 if test $ac_cv_header_stdc = yes; then
10646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10647 if test "$cross_compiling" = yes; then :
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 #include <stdlib.h>
10654 #if ((' ' & 0x0FF) == 0x020)
10655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10658 # define ISLOWER(c) \
10659 (('a' <= (c) && (c) <= 'i') \
10660 || ('j' <= (c) && (c) <= 'r') \
10661 || ('s' <= (c) && (c) <= 'z'))
10662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10670 for (i = 0; i < 256; i++)
10671 if (XOR (islower (i), ISLOWER (i))
10672 || toupper (i) != TOUPPER (i))
10677 if ac_fn_c_try_run "$LINENO"; then :
10680 ac_cv_header_stdc=no
10682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10683 conftest.$ac_objext conftest.beam conftest.$ac_ext
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10689 $as_echo "$ac_cv_header_stdc" >&6; }
10690 if test $ac_cv_header_stdc = yes; then
10692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10696 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10697 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10698 inttypes.h stdint.h unistd.h
10700 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10703 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10704 cat >>confdefs.h
<<_ACEOF
10705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10713 if test "$PORTNAME" != "win32"; then :
10720 ac_cpp
='$CPP $CPPFLAGS'
10721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10727 # We used to check for pthread.h first, but this fails if pthread.h
10728 # requires special compiler flags (e.g. on Tru64 or Sequent).
10729 # It gets checked for in the link test anyway.
10731 # First of all, check if the user has set any of the PTHREAD_LIBS,
10732 # etcetera environment variables, and if threads linking works using
10734 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10735 ax_pthread_save_CC
="$CC"
10736 ax_pthread_save_CFLAGS
="$CFLAGS"
10737 ax_pthread_save_LIBS
="$LIBS"
10738 if test "x$PTHREAD_CC" != "x"; then :
10741 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10742 LIBS
="$PTHREAD_LIBS $LIBS"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10744 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10754 char pthread_join ();
10758 return pthread_join ();
10763 if ac_fn_c_try_link
"$LINENO"; then :
10766 rm -f core conftest.err conftest.
$ac_objext \
10767 conftest
$ac_exeext conftest.
$ac_ext
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10769 $as_echo "$ax_pthread_ok" >&6; }
10770 if test "x$ax_pthread_ok" = "xno"; then
10774 CC
="$ax_pthread_save_CC"
10775 CFLAGS
="$ax_pthread_save_CFLAGS"
10776 LIBS
="$ax_pthread_save_LIBS"
10779 # We must check for the threads library under a number of different
10780 # names; the ordering is very important because some systems
10781 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10782 # libraries is broken (non-POSIX).
10784 # Create a list of thread flags to try. Items starting with a "-" are
10785 # C compiler flags, and other items are library names, except for "none"
10786 # which indicates that we try without any flags at all, and "pthread-config"
10787 # which is a program returning the flags for the Pth emulation library.
10789 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10791 # The ordering *is* (sometimes) important. Some notes on the
10792 # individual items follow:
10794 # pthreads: AIX (must check this before -lpthread)
10795 # none: in case threads are in libc; should be tried before -Kthread and
10796 # other compiler flags to prevent continual compiler warnings
10797 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10798 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10799 # (Note: HP C rejects this with "bad form for `-t' option")
10800 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10801 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10802 # doesn't hurt to check since this sometimes defines pthreads and
10803 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10804 # is present but should not be used directly; and before -mthreads,
10805 # because the compiler interprets this as "-mt" + "-hreads")
10806 # -mthreads: Mingw32/gcc, Lynx/gcc
10807 # pthread: Linux, etcetera
10808 # --thread-safe: KAI C++
10809 # pthread-config: use pthread-config program (for GNU Pth library)
10815 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10816 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10818 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10823 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10824 # multi-threading and also sets -lpthread."
10826 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10831 # IBM z/OS requires a feature-test macro to be defined in order to
10832 # enable POSIX threads at all, so give the user a hint if this is
10833 # not set. (We don't define these ourselves, as they can affect
10834 # other portions of the system API in unpredictable ways.)
10836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10840 AX_PTHREAD_ZOS_MISSING
10844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10845 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10847 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10855 # On Solaris (at least, for some versions), libc contains stubbed
10856 # (non-functional) versions of the pthreads routines, so link-based
10857 # tests will erroneously succeed. (N.B.: The stubs are missing
10858 # pthread_cleanup_push, or rather a function called by this macro,
10859 # so we could check for that, but who knows whether they'll stub
10860 # that too in a future libc.) So we'll check first for the
10861 # standard Solaris way of linking pthreads (-mt -lpthread).
10863 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10867 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10869 if test "x$GCC" = "xyes"; then :
10870 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10873 # The presence of a feature test macro requesting re-entrant function
10874 # definitions is, on some systems, a strong hint that pthreads support is
10875 # correctly enabled
10878 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10879 ax_pthread_check_macro
="_REENTRANT"
10883 ax_pthread_check_macro
="_THREAD_SAFE"
10887 ax_pthread_check_macro
="--"
10890 if test "x$ax_pthread_check_macro" = "x--"; then :
10891 ax_pthread_check_cond
=0
10893 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10896 # Are we compiling with Clang?
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10899 $as_echo_n "checking whether $CC is Clang... " >&6; }
10900 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10901 $as_echo_n "(cached) " >&6
10903 ax_cv_PTHREAD_CLANG
=no
10904 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10905 if test "x$GCC" = "xyes"; then
10906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10909 # if defined(__clang__) && defined(__llvm__)
10910 AX_PTHREAD_CC_IS_CLANG
10914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10915 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10916 ax_cv_PTHREAD_CLANG
=yes
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10924 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10925 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10927 ax_pthread_clang_warning
=no
10929 # Clang needs special handling, because older versions handle the -pthread
10930 # option in a rather... idiosyncratic way
10932 if test "x$ax_pthread_clang" = "xyes"; then
10934 # Clang takes -pthread; it has never supported any other flag
10936 # (Note 1: This will need to be revisited if a system that Clang
10937 # supports has POSIX threads in a separate library. This tends not
10938 # to be the way of modern systems, but it's conceivable.)
10940 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10941 # to get POSIX threads support; the API is always present and
10942 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10943 # -pthread does define _REENTRANT, and while the Darwin headers
10944 # ignore this macro, third-party headers might not.)
10946 PTHREAD_CFLAGS
="-pthread"
10951 # However, older versions of Clang make a point of warning the user
10952 # that, in an invocation where only linking and no compilation is
10953 # taking place, the -pthread option has no effect ("argument unused
10954 # during compilation"). They expect -pthread to be passed in only
10955 # when source code is being compiled.
10957 # Problem is, this is at odds with the way Automake and most other
10958 # C build frameworks function, which is that the same flags used in
10959 # compilation (CFLAGS) are also used in linking. Many systems
10960 # supported by AX_PTHREAD require exactly this for POSIX threads
10961 # support, and in fact it is often not straightforward to specify a
10962 # flag that is used only in the compilation phase and not in
10963 # linking. Such a scenario is extremely rare in practice.
10965 # Even though use of the -pthread flag in linking would only print
10966 # a warning, this can be a nuisance for well-run software projects
10967 # that build with -Werror. So if the active version of Clang has
10968 # this misfeature, we search for an option to squash it.
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10971 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10972 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10973 $as_echo_n "(cached) " >&6
10975 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10976 # Create an alternate version of $ac_link that compiles and
10977 # links in two steps (.c -> .o, .o -> exe) instead of one
10978 # (.c -> exe), because the warning occurs only in the second
10980 ax_pthread_save_ac_link
="$ac_link"
10981 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10982 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10983 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10984 ax_pthread_save_CFLAGS
="$CFLAGS"
10985 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10986 if test "x$ax_pthread_try" = "xunknown"; then :
10989 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10990 ac_link
="$ax_pthread_save_ac_link"
10991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993 int main(void){return 0;}
10995 if ac_fn_c_try_link
"$LINENO"; then :
10996 ac_link
="$ax_pthread_2step_ac_link"
10997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999 int main(void){return 0;}
11001 if ac_fn_c_try_link
"$LINENO"; then :
11004 rm -f core conftest.err conftest.
$ac_objext \
11005 conftest
$ac_exeext conftest.
$ac_ext
11008 rm -f core conftest.err conftest.
$ac_objext \
11009 conftest
$ac_exeext conftest.
$ac_ext
11011 ac_link
="$ax_pthread_save_ac_link"
11012 CFLAGS
="$ax_pthread_save_CFLAGS"
11013 if test "x$ax_pthread_try" = "x"; then :
11016 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11020 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11022 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11024 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11027 fi # $ax_pthread_clang = yes
11029 if test "x$ax_pthread_ok" = "xno"; then
11030 for ax_pthread_try_flag
in $ax_pthread_flags; do
11032 case $ax_pthread_try_flag in
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11035 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11040 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11041 PTHREAD_CFLAGS
="-mt"
11042 PTHREAD_LIBS
="-lpthread"
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11047 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11048 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11052 # Extract the first word of "pthread-config", so it can be a program name with args.
11053 set dummy pthread-config
; ac_word
=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11057 $as_echo_n "(cached) " >&6
11059 if test -n "$ax_pthread_config"; then
11060 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11063 for as_dir
in $PATH
11066 test -z "$as_dir" && as_dir
=.
11067 for ac_exec_ext
in '' $ac_executable_extensions; do
11068 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_ax_pthread_config
="yes"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11080 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11081 if test -n "$ax_pthread_config"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11083 $as_echo "$ax_pthread_config" >&6; }
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11090 if test "x$ax_pthread_config" = "xno"; then :
11093 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11094 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11099 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11100 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11104 ax_pthread_save_CFLAGS
="$CFLAGS"
11105 ax_pthread_save_LIBS
="$LIBS"
11106 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11107 LIBS
="$PTHREAD_LIBS $LIBS"
11109 # Check for various functions. We must include pthread.h,
11110 # since some functions may be macros. (On the Sequent, we
11111 # need a special flag -Kthread to make this header compile.)
11112 # We check for pthread_join because it is in -lpthread on IRIX
11113 # while pthread_create is in libc. We check for pthread_attr_init
11114 # due to DEC craziness with -lpthreads. We check for
11115 # pthread_cleanup_push because it is one of the few pthread
11116 # functions on Solaris that doesn't have a non-functional libc stub.
11117 # We try pthread_create on general principles.
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #include <pthread.h>
11122 # if $ax_pthread_check_cond
11123 # error "$ax_pthread_check_macro must be defined"
11125 static void routine(void *a) { a = 0; }
11126 static void *start_routine(void *a) { return a; }
11130 pthread_t th; pthread_attr_t attr;
11131 pthread_create(&th, 0, start_routine, 0);
11132 pthread_join(th, 0);
11133 pthread_attr_init(&attr);
11134 pthread_cleanup_push(routine, 0);
11135 pthread_cleanup_pop(0) /* ; */
11140 if ac_fn_c_try_link
"$LINENO"; then :
11143 rm -f core conftest.err conftest.
$ac_objext \
11144 conftest
$ac_exeext conftest.
$ac_ext
11146 CFLAGS
="$ax_pthread_save_CFLAGS"
11147 LIBS
="$ax_pthread_save_LIBS"
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11150 $as_echo "$ax_pthread_ok" >&6; }
11151 if test "x$ax_pthread_ok" = "xyes"; then :
11160 # Various other checks:
11161 if test "x$ax_pthread_ok" = "xyes"; then
11162 ax_pthread_save_CFLAGS
="$CFLAGS"
11163 ax_pthread_save_LIBS
="$LIBS"
11164 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11165 LIBS
="$PTHREAD_LIBS $LIBS"
11167 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11169 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11170 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11171 $as_echo_n "(cached) " >&6
11173 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11174 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11177 #include <pthread.h>
11181 int attr = $ax_pthread_attr; return attr /* ; */
11186 if ac_fn_c_try_link
"$LINENO"; then :
11187 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11189 rm -f core conftest.err conftest.
$ac_objext \
11190 conftest
$ac_exeext conftest.
$ac_ext
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11195 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11196 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11197 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11198 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11200 cat >>confdefs.h
<<_ACEOF
11201 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11204 ax_pthread_joinable_attr_defined
=yes
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11209 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11210 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11211 $as_echo_n "(cached) " >&6
11213 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11216 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11222 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11223 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11224 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11225 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11226 ax_pthread_special_flags_added
=yes
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11230 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11231 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11232 $as_echo_n "(cached) " >&6
11234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11236 #include <pthread.h>
11240 int i = PTHREAD_PRIO_INHERIT;
11245 if ac_fn_c_try_link
"$LINENO"; then :
11246 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11248 ax_cv_PTHREAD_PRIO_INHERIT
=no
11250 rm -f core conftest.err conftest.
$ac_objext \
11251 conftest
$ac_exeext conftest.
$ac_ext
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11255 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11256 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11257 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11259 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11261 ax_pthread_prio_inherit_defined
=yes
11265 CFLAGS
="$ax_pthread_save_CFLAGS"
11266 LIBS
="$ax_pthread_save_LIBS"
11268 # More AIX lossage: compile with *_r variant
11269 if test "x$GCC" != "xyes"; then
11273 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11274 #handle absolute path differently from PATH based program lookup
11277 if as_fn_executable_p
${CC}_r
; then :
11278 PTHREAD_CC
="${CC}_r"
11281 for ac_prog
in ${CC}_r
11283 # Extract the first word of "$ac_prog", so it can be a program name with args.
11284 set dummy
$ac_prog; ac_word
=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11288 $as_echo_n "(cached) " >&6
11290 if test -n "$PTHREAD_CC"; then
11291 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11294 for as_dir
in $PATH
11297 test -z "$as_dir" && as_dir
=.
11298 for ac_exec_ext
in '' $ac_executable_extensions; do
11299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11311 if test -n "$PTHREAD_CC"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11313 $as_echo "$PTHREAD_CC" >&6; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11320 test -n "$PTHREAD_CC" && break
11322 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11333 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11339 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11340 if test "x$ax_pthread_ok" = "xyes"; then
11342 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11350 ac_cpp
='$CPP $CPPFLAGS'
11351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11357 # Some platforms use these, so just define them. They can't hurt if they
11358 # are not supported.
11359 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE"
11361 # Check for *_r functions
11364 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11365 LIBS
="$LIBS $PTHREAD_LIBS"
11367 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11368 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11372 pthread.h not found" "$LINENO" 5
11377 for ac_func
in strerror_r
11379 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11380 if test "x$ac_cv_func_strerror_r" = xyes
; then :
11381 cat >>confdefs.h
<<_ACEOF
11382 #define HAVE_STRERROR_R 1
11389 # Do test here with the proper thread flags
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11391 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11392 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11393 $as_echo_n "(cached) " >&6
11395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <string.h>
11402 switch (strerror_r(1, buf, sizeof(buf)))
11403 { case 0: break; default: break; }
11409 if ac_fn_c_try_compile
"$LINENO"; then :
11410 pgac_cv_func_strerror_r_int
=yes
11412 pgac_cv_func_strerror_r_int
=no
11414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11417 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11418 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11420 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11431 # do not use values from template file
11444 ## Most libraries are included only if they demonstrably provide a function
11445 ## we need, but libm is an exception: always include it, because there are
11446 ## too many compilers that play cute optimization games that will break
11447 ## probes for standard functions such as pow().
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11451 $as_echo_n "checking for main in -lm... " >&6; }
11452 if ${ac_cv_lib_m_main+:} false
; then :
11453 $as_echo_n "(cached) " >&6
11455 ac_check_lib_save_LIBS
=$LIBS
11457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11469 if ac_fn_c_try_link
"$LINENO"; then :
11470 ac_cv_lib_m_main
=yes
11472 ac_cv_lib_m_main
=no
11474 rm -f core conftest.err conftest.
$ac_objext \
11475 conftest
$ac_exeext conftest.
$ac_ext
11476 LIBS
=$ac_check_lib_save_LIBS
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11479 $as_echo "$ac_cv_lib_m_main" >&6; }
11480 if test "x$ac_cv_lib_m_main" = xyes
; then :
11481 cat >>confdefs.h
<<_ACEOF
11482 #define HAVE_LIBM 1
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11490 $as_echo_n "checking for library containing setproctitle... " >&6; }
11491 if ${ac_cv_search_setproctitle+:} false
; then :
11492 $as_echo_n "(cached) " >&6
11494 ac_func_search_save_LIBS
=$LIBS
11495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11504 char setproctitle ();
11508 return setproctitle ();
11513 for ac_lib
in '' util
; do
11514 if test -z "$ac_lib"; then
11515 ac_res
="none required"
11518 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11520 if ac_fn_c_try_link
"$LINENO"; then :
11521 ac_cv_search_setproctitle
=$ac_res
11523 rm -f core conftest.err conftest.
$ac_objext \
11525 if ${ac_cv_search_setproctitle+:} false
; then :
11529 if ${ac_cv_search_setproctitle+:} false
; then :
11532 ac_cv_search_setproctitle
=no
11534 rm conftest.
$ac_ext
11535 LIBS
=$ac_func_search_save_LIBS
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11538 $as_echo "$ac_cv_search_setproctitle" >&6; }
11539 ac_res
=$ac_cv_search_setproctitle
11540 if test "$ac_res" != no
; then :
11541 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11545 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11546 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11547 # required. Just checking for dlsym() ought to suffice.
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11549 $as_echo_n "checking for library containing dlsym... " >&6; }
11550 if ${ac_cv_search_dlsym+:} false
; then :
11551 $as_echo_n "(cached) " >&6
11553 ac_func_search_save_LIBS
=$LIBS
11554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11572 for ac_lib
in '' dl
; do
11573 if test -z "$ac_lib"; then
11574 ac_res
="none required"
11577 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11579 if ac_fn_c_try_link
"$LINENO"; then :
11580 ac_cv_search_dlsym
=$ac_res
11582 rm -f core conftest.err conftest.
$ac_objext \
11584 if ${ac_cv_search_dlsym+:} false
; then :
11588 if ${ac_cv_search_dlsym+:} false
; then :
11591 ac_cv_search_dlsym
=no
11593 rm conftest.
$ac_ext
11594 LIBS
=$ac_func_search_save_LIBS
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11597 $as_echo "$ac_cv_search_dlsym" >&6; }
11598 ac_res
=$ac_cv_search_dlsym
11599 if test "$ac_res" != no
; then :
11600 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11605 $as_echo_n "checking for library containing socket... " >&6; }
11606 if ${ac_cv_search_socket+:} false
; then :
11607 $as_echo_n "(cached) " >&6
11609 ac_func_search_save_LIBS
=$LIBS
11610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 /* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11628 for ac_lib
in '' socket ws2_32
; do
11629 if test -z "$ac_lib"; then
11630 ac_res
="none required"
11633 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11635 if ac_fn_c_try_link
"$LINENO"; then :
11636 ac_cv_search_socket
=$ac_res
11638 rm -f core conftest.err conftest.
$ac_objext \
11640 if ${ac_cv_search_socket+:} false
; then :
11644 if ${ac_cv_search_socket+:} false
; then :
11647 ac_cv_search_socket
=no
11649 rm conftest.
$ac_ext
11650 LIBS
=$ac_func_search_save_LIBS
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11653 $as_echo "$ac_cv_search_socket" >&6; }
11654 ac_res
=$ac_cv_search_socket
11655 if test "$ac_res" != no
; then :
11656 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11661 $as_echo_n "checking for library containing getopt_long... " >&6; }
11662 if ${ac_cv_search_getopt_long+:} false
; then :
11663 $as_echo_n "(cached) " >&6
11665 ac_func_search_save_LIBS
=$LIBS
11666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11675 char getopt_long ();
11679 return getopt_long ();
11684 for ac_lib
in '' getopt gnugetopt
; do
11685 if test -z "$ac_lib"; then
11686 ac_res
="none required"
11689 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11691 if ac_fn_c_try_link
"$LINENO"; then :
11692 ac_cv_search_getopt_long
=$ac_res
11694 rm -f core conftest.err conftest.
$ac_objext \
11696 if ${ac_cv_search_getopt_long+:} false
; then :
11700 if ${ac_cv_search_getopt_long+:} false
; then :
11703 ac_cv_search_getopt_long
=no
11705 rm conftest.
$ac_ext
11706 LIBS
=$ac_func_search_save_LIBS
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11709 $as_echo "$ac_cv_search_getopt_long" >&6; }
11710 ac_res
=$ac_cv_search_getopt_long
11711 if test "$ac_res" != no
; then :
11712 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11717 $as_echo_n "checking for library containing shm_open... " >&6; }
11718 if ${ac_cv_search_shm_open+:} false
; then :
11719 $as_echo_n "(cached) " >&6
11721 ac_func_search_save_LIBS
=$LIBS
11722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11735 return shm_open ();
11740 for ac_lib
in '' rt
; do
11741 if test -z "$ac_lib"; then
11742 ac_res
="none required"
11745 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11747 if ac_fn_c_try_link
"$LINENO"; then :
11748 ac_cv_search_shm_open
=$ac_res
11750 rm -f core conftest.err conftest.
$ac_objext \
11752 if ${ac_cv_search_shm_open+:} false
; then :
11756 if ${ac_cv_search_shm_open+:} false
; then :
11759 ac_cv_search_shm_open
=no
11761 rm conftest.
$ac_ext
11762 LIBS
=$ac_func_search_save_LIBS
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11765 $as_echo "$ac_cv_search_shm_open" >&6; }
11766 ac_res
=$ac_cv_search_shm_open
11767 if test "$ac_res" != no
; then :
11768 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11773 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11774 if ${ac_cv_search_shm_unlink+:} false
; then :
11775 $as_echo_n "(cached) " >&6
11777 ac_func_search_save_LIBS
=$LIBS
11778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h. */
11781 /* Override any GCC internal prototype to avoid an error.
11782 Use char because int might match the return type of a GCC
11783 builtin and then its argument prototype would still apply. */
11787 char shm_unlink ();
11791 return shm_unlink ();
11796 for ac_lib
in '' rt
; do
11797 if test -z "$ac_lib"; then
11798 ac_res
="none required"
11801 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11803 if ac_fn_c_try_link
"$LINENO"; then :
11804 ac_cv_search_shm_unlink
=$ac_res
11806 rm -f core conftest.err conftest.
$ac_objext \
11808 if ${ac_cv_search_shm_unlink+:} false
; then :
11812 if ${ac_cv_search_shm_unlink+:} false
; then :
11815 ac_cv_search_shm_unlink
=no
11817 rm conftest.
$ac_ext
11818 LIBS
=$ac_func_search_save_LIBS
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11821 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11822 ac_res
=$ac_cv_search_shm_unlink
11823 if test "$ac_res" != no
; then :
11824 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11829 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11830 if ${ac_cv_search_clock_gettime+:} false
; then :
11831 $as_echo_n "(cached) " >&6
11833 ac_func_search_save_LIBS
=$LIBS
11834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11843 char clock_gettime ();
11847 return clock_gettime ();
11852 for ac_lib
in '' rt
; do
11853 if test -z "$ac_lib"; then
11854 ac_res
="none required"
11857 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11859 if ac_fn_c_try_link
"$LINENO"; then :
11860 ac_cv_search_clock_gettime
=$ac_res
11862 rm -f core conftest.err conftest.
$ac_objext \
11864 if ${ac_cv_search_clock_gettime+:} false
; then :
11868 if ${ac_cv_search_clock_gettime+:} false
; then :
11871 ac_cv_search_clock_gettime
=no
11873 rm conftest.
$ac_ext
11874 LIBS
=$ac_func_search_save_LIBS
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11877 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11878 ac_res
=$ac_cv_search_clock_gettime
11879 if test "$ac_res" != no
; then :
11880 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11886 $as_echo_n "checking for library containing shmget... " >&6; }
11887 if ${ac_cv_search_shmget+:} false
; then :
11888 $as_echo_n "(cached) " >&6
11890 ac_func_search_save_LIBS
=$LIBS
11891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11909 for ac_lib
in '' cygipc
; do
11910 if test -z "$ac_lib"; then
11911 ac_res
="none required"
11914 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11916 if ac_fn_c_try_link
"$LINENO"; then :
11917 ac_cv_search_shmget
=$ac_res
11919 rm -f core conftest.err conftest.
$ac_objext \
11921 if ${ac_cv_search_shmget+:} false
; then :
11925 if ${ac_cv_search_shmget+:} false
; then :
11928 ac_cv_search_shmget
=no
11930 rm conftest.
$ac_ext
11931 LIBS
=$ac_func_search_save_LIBS
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11934 $as_echo "$ac_cv_search_shmget" >&6; }
11935 ac_res
=$ac_cv_search_shmget
11936 if test "$ac_res" != no
; then :
11937 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
11943 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
11944 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11945 $as_echo_n "(cached) " >&6
11947 ac_func_search_save_LIBS
=$LIBS
11948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11957 char backtrace_symbols ();
11961 return backtrace_symbols ();
11966 for ac_lib
in '' execinfo
; do
11967 if test -z "$ac_lib"; then
11968 ac_res
="none required"
11971 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11973 if ac_fn_c_try_link
"$LINENO"; then :
11974 ac_cv_search_backtrace_symbols
=$ac_res
11976 rm -f core conftest.err conftest.
$ac_objext \
11978 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11982 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11985 ac_cv_search_backtrace_symbols
=no
11987 rm conftest.
$ac_ext
11988 LIBS
=$ac_func_search_save_LIBS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
11991 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
11992 ac_res
=$ac_cv_search_backtrace_symbols
11993 if test "$ac_res" != no
; then :
11994 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
12000 $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
12001 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12002 $as_echo_n "(cached) " >&6
12004 ac_func_search_save_LIBS
=$LIBS
12005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12008 /* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12014 char pthread_barrier_wait ();
12018 return pthread_barrier_wait ();
12023 for ac_lib
in '' pthread
; do
12024 if test -z "$ac_lib"; then
12025 ac_res
="none required"
12028 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12030 if ac_fn_c_try_link
"$LINENO"; then :
12031 ac_cv_search_pthread_barrier_wait
=$ac_res
12033 rm -f core conftest.err conftest.
$ac_objext \
12035 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12039 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12042 ac_cv_search_pthread_barrier_wait
=no
12044 rm conftest.
$ac_ext
12045 LIBS
=$ac_func_search_save_LIBS
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
12048 $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
12049 ac_res
=$ac_cv_search_pthread_barrier_wait
12050 if test "$ac_res" != no
; then :
12051 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12056 if test "$with_readline" = yes; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12060 $as_echo_n "checking for library containing readline... " >&6; }
12061 if ${pgac_cv_check_readline+:} false
; then :
12062 $as_echo_n "(cached) " >&6
12064 pgac_cv_check_readline
=no
12065 pgac_save_LIBS
=$LIBS
12066 if test x
"$with_libedit_preferred" != x
"yes"
12067 then READLINE_ORDER
="-lreadline -ledit"
12068 else READLINE_ORDER
="-ledit -lreadline"
12070 for pgac_rllib
in $READLINE_ORDER ; do
12071 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12072 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12086 return readline ();
12091 if ac_fn_c_try_link
"$LINENO"; then :
12093 # Older NetBSD and OpenBSD have a broken linker that does not
12094 # recognize dependent libraries; assume curses is needed if we didn't
12095 # find any dependency.
12097 netbsd
* | openbsd
*)
12098 if test x
"$pgac_lib" = x
"" ; then
12099 pgac_lib
=" -lcurses"
12103 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12107 rm -f core conftest.err conftest.
$ac_objext \
12108 conftest
$ac_exeext conftest.
$ac_ext
12110 if test "$pgac_cv_check_readline" != no
; then
12114 LIBS
=$pgac_save_LIBS
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12118 $as_echo "$pgac_cv_check_readline" >&6; }
12119 if test "$pgac_cv_check_readline" != no
; then
12120 LIBS
="$pgac_cv_check_readline $LIBS"
12122 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12127 if test x
"$pgac_cv_check_readline" = x
"no"; then
12128 as_fn_error $?
"readline library not found
12129 If you have readline already installed, see config.log for details on the
12130 failure. It is possible the compiler isn't looking in the proper directory.
12131 Use --without-readline to disable readline support." "$LINENO" 5
12135 if test "$with_zlib" = yes; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12137 $as_echo_n "checking for inflate in -lz... " >&6; }
12138 if ${ac_cv_lib_z_inflate+:} false
; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS
=$LIBS
12143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 if ac_fn_c_try_link
"$LINENO"; then :
12162 ac_cv_lib_z_inflate
=yes
12164 ac_cv_lib_z_inflate
=no
12166 rm -f core conftest.err conftest.
$ac_objext \
12167 conftest
$ac_exeext conftest.
$ac_ext
12168 LIBS
=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12171 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12172 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12173 cat >>confdefs.h
<<_ACEOF
12174 #define HAVE_LIBZ 1
12180 as_fn_error $?
"zlib library not found
12181 If you have zlib already installed, see config.log for details on the
12182 failure. It is possible the compiler isn't looking in the proper directory.
12183 Use --without-zlib to disable zlib support." "$LINENO" 5
12188 if test "$enable_spinlocks" = yes; then
12190 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12194 *** Not using spinlocks will cause poor performance." >&5
12195 $as_echo "$as_me: WARNING:
12196 *** Not using spinlocks will cause poor performance." >&2;}
12199 if test "$enable_atomics" = yes; then
12201 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12205 *** Not using atomic operations will cause poor performance." >&5
12206 $as_echo "$as_me: WARNING:
12207 *** Not using atomic operations will cause poor performance." >&2;}
12210 if test "$with_gssapi" = yes ; then
12211 if test "$PORTNAME" != "win32"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_store_cred_into" >&5
12213 $as_echo_n "checking for library containing gss_store_cred_into... " >&6; }
12214 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12215 $as_echo_n "(cached) " >&6
12217 ac_func_search_save_LIBS
=$LIBS
12218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12227 char gss_store_cred_into ();
12231 return gss_store_cred_into ();
12236 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12237 if test -z "$ac_lib"; then
12238 ac_res
="none required"
12241 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12243 if ac_fn_c_try_link
"$LINENO"; then :
12244 ac_cv_search_gss_store_cred_into
=$ac_res
12246 rm -f core conftest.err conftest.
$ac_objext \
12248 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12252 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12255 ac_cv_search_gss_store_cred_into
=no
12257 rm conftest.
$ac_ext
12258 LIBS
=$ac_func_search_save_LIBS
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_store_cred_into" >&5
12261 $as_echo "$ac_cv_search_gss_store_cred_into" >&6; }
12262 ac_res
=$ac_cv_search_gss_store_cred_into
12263 if test "$ac_res" != no
; then :
12264 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12267 as_fn_error $?
"could not find function 'gss_store_cred_into' required for GSSAPI" "$LINENO" 5
12271 LIBS
="$LIBS -lgssapi32"
12278 # There is currently only one supported SSL/TLS library: OpenSSL.
12283 # Check whether --with-ssl was given.
12284 if test "${with_ssl+set}" = set; then :
12288 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12291 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12301 if test x
"$with_ssl" = x
"" ; then
12307 # Check whether --with-openssl was given.
12308 if test "${with_openssl+set}" = set; then :
12309 withval
=$with_openssl;
12318 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
12328 if test "$with_openssl" = yes ; then
12332 if test "$with_ssl" = openssl
; then
12333 # Minimum required OpenSSL version is 1.0.2
12335 $as_echo "#define OPENSSL_API_COMPAT 0x10002000L" >>confdefs.h
12337 if test "$PORTNAME" != "win32"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12339 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12340 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12341 $as_echo_n "(cached) " >&6
12343 ac_check_lib_save_LIBS
=$LIBS
12344 LIBS
="-lcrypto $LIBS"
12345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12354 char CRYPTO_new_ex_data ();
12358 return CRYPTO_new_ex_data ();
12363 if ac_fn_c_try_link
"$LINENO"; then :
12364 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12366 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12368 rm -f core conftest.err conftest.
$ac_objext \
12369 conftest
$ac_exeext conftest.
$ac_ext
12370 LIBS
=$ac_check_lib_save_LIBS
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12373 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12374 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12375 cat >>confdefs.h
<<_ACEOF
12376 #define HAVE_LIBCRYPTO 1
12379 LIBS
="-lcrypto $LIBS"
12382 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12386 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12387 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12388 $as_echo_n "(cached) " >&6
12390 ac_check_lib_save_LIBS
=$LIBS
12392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12410 if ac_fn_c_try_link
"$LINENO"; then :
12411 ac_cv_lib_ssl_SSL_new
=yes
12413 ac_cv_lib_ssl_SSL_new
=no
12415 rm -f core conftest.err conftest.
$ac_objext \
12416 conftest
$ac_exeext conftest.
$ac_ext
12417 LIBS
=$ac_check_lib_save_LIBS
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12420 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12421 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12422 cat >>confdefs.h
<<_ACEOF
12423 #define HAVE_LIBSSL 1
12429 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12434 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12435 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12436 $as_echo_n "(cached) " >&6
12438 ac_func_search_save_LIBS
=$LIBS
12439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12442 /* Override any GCC internal prototype to avoid an error.
12443 Use char because int might match the return type of a GCC
12444 builtin and then its argument prototype would still apply. */
12448 char CRYPTO_new_ex_data ();
12452 return CRYPTO_new_ex_data ();
12457 for ac_lib
in '' eay32 crypto
; do
12458 if test -z "$ac_lib"; then
12459 ac_res
="none required"
12462 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12464 if ac_fn_c_try_link
"$LINENO"; then :
12465 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12467 rm -f core conftest.err conftest.
$ac_objext \
12469 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12473 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12476 ac_cv_search_CRYPTO_new_ex_data
=no
12478 rm conftest.
$ac_ext
12479 LIBS
=$ac_func_search_save_LIBS
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12482 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12483 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12484 if test "$ac_res" != no
; then :
12485 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12488 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12492 $as_echo_n "checking for library containing SSL_new... " >&6; }
12493 if ${ac_cv_search_SSL_new+:} false
; then :
12494 $as_echo_n "(cached) " >&6
12496 ac_func_search_save_LIBS
=$LIBS
12497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12500 /* Override any GCC internal prototype to avoid an error.
12501 Use char because int might match the return type of a GCC
12502 builtin and then its argument prototype would still apply. */
12515 for ac_lib
in '' ssleay32 ssl
; do
12516 if test -z "$ac_lib"; then
12517 ac_res
="none required"
12520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12522 if ac_fn_c_try_link
"$LINENO"; then :
12523 ac_cv_search_SSL_new
=$ac_res
12525 rm -f core conftest.err conftest.
$ac_objext \
12527 if ${ac_cv_search_SSL_new+:} false
; then :
12531 if ${ac_cv_search_SSL_new+:} false
; then :
12534 ac_cv_search_SSL_new
=no
12536 rm conftest.
$ac_ext
12537 LIBS
=$ac_func_search_save_LIBS
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12540 $as_echo "$ac_cv_search_SSL_new" >&6; }
12541 ac_res
=$ac_cv_search_SSL_new
12542 if test "$ac_res" != no
; then :
12543 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12546 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12550 # Function introduced in OpenSSL 1.0.2, not in LibreSSL.
12551 for ac_func
in SSL_CTX_set_cert_cb
12553 ac_fn_c_check_func
"$LINENO" "SSL_CTX_set_cert_cb" "ac_cv_func_SSL_CTX_set_cert_cb"
12554 if test "x$ac_cv_func_SSL_CTX_set_cert_cb" = xyes
; then :
12555 cat >>confdefs.h
<<_ACEOF
12556 #define HAVE_SSL_CTX_SET_CERT_CB 1
12562 # Functions introduced in OpenSSL 1.1.0. We used to check for
12563 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12564 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12565 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12567 for ac_func
in OPENSSL_init_ssl BIO_meth_new ASN1_STRING_get0_data HMAC_CTX_new HMAC_CTX_free
12569 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12571 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12572 cat >>confdefs.h
<<_ACEOF
12573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12579 # OpenSSL versions before 1.1.0 required setting callback functions, for
12580 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12581 # function was removed.
12582 for ac_func
in CRYPTO_lock
12584 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12585 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
12586 cat >>confdefs.h
<<_ACEOF
12587 #define HAVE_CRYPTO_LOCK 1
12593 # Function introduced in OpenSSL 1.1.1.
12594 for ac_func
in X509_get_signature_info SSL_CTX_set_num_tickets
12596 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12597 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12598 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12599 cat >>confdefs.h
<<_ACEOF
12600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12607 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
12609 elif test "$with_ssl" != no
; then
12610 as_fn_error $?
"--with-ssl must specify openssl" "$LINENO" 5
12614 if test "$with_pam" = yes ; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12616 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12617 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12618 $as_echo_n "(cached) " >&6
12620 ac_check_lib_save_LIBS
=$LIBS
12622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12635 return pam_start ();
12640 if ac_fn_c_try_link
"$LINENO"; then :
12641 ac_cv_lib_pam_pam_start
=yes
12643 ac_cv_lib_pam_pam_start
=no
12645 rm -f core conftest.err conftest.
$ac_objext \
12646 conftest
$ac_exeext conftest.
$ac_ext
12647 LIBS
=$ac_check_lib_save_LIBS
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12650 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12651 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12652 cat >>confdefs.h
<<_ACEOF
12653 #define HAVE_LIBPAM 1
12659 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12664 if test "$with_libxml" = yes ; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12666 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12667 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12668 $as_echo_n "(cached) " >&6
12670 ac_check_lib_save_LIBS
=$LIBS
12671 LIBS
="-lxml2 $LIBS"
12672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12675 /* Override any GCC internal prototype to avoid an error.
12676 Use char because int might match the return type of a GCC
12677 builtin and then its argument prototype would still apply. */
12681 char xmlSaveToBuffer ();
12685 return xmlSaveToBuffer ();
12690 if ac_fn_c_try_link
"$LINENO"; then :
12691 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12693 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12695 rm -f core conftest.err conftest.
$ac_objext \
12696 conftest
$ac_exeext conftest.
$ac_ext
12697 LIBS
=$ac_check_lib_save_LIBS
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12700 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12701 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12702 cat >>confdefs.h
<<_ACEOF
12703 #define HAVE_LIBXML2 1
12706 LIBS
="-lxml2 $LIBS"
12709 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12714 if test "$with_libxslt" = yes ; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12716 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12717 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12718 $as_echo_n "(cached) " >&6
12720 ac_check_lib_save_LIBS
=$LIBS
12721 LIBS
="-lxslt $LIBS"
12722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12731 char xsltCleanupGlobals ();
12735 return xsltCleanupGlobals ();
12740 if ac_fn_c_try_link
"$LINENO"; then :
12741 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12743 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12745 rm -f core conftest.err conftest.
$ac_objext \
12746 conftest
$ac_exeext conftest.
$ac_ext
12747 LIBS
=$ac_check_lib_save_LIBS
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12750 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12751 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12752 cat >>confdefs.h
<<_ACEOF
12753 #define HAVE_LIBXSLT 1
12756 LIBS
="-lxslt $LIBS"
12759 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12764 if test "$with_lz4" = yes ; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
12766 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
12767 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false
; then :
12768 $as_echo_n "(cached) " >&6
12770 ac_check_lib_save_LIBS
=$LIBS
12772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12781 char LZ4_compress_default ();
12785 return LZ4_compress_default ();
12790 if ac_fn_c_try_link
"$LINENO"; then :
12791 ac_cv_lib_lz4_LZ4_compress_default
=yes
12793 ac_cv_lib_lz4_LZ4_compress_default
=no
12795 rm -f core conftest.err conftest.
$ac_objext \
12796 conftest
$ac_exeext conftest.
$ac_ext
12797 LIBS
=$ac_check_lib_save_LIBS
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
12800 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
12801 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes
; then :
12802 cat >>confdefs.h
<<_ACEOF
12803 #define HAVE_LIBLZ4 1
12809 as_fn_error $?
"library 'lz4' is required for LZ4 support" "$LINENO" 5
12814 if test "$with_zstd" = yes ; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
12816 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
12817 if ${ac_cv_lib_zstd_ZSTD_compress+:} false
; then :
12818 $as_echo_n "(cached) " >&6
12820 ac_check_lib_save_LIBS
=$LIBS
12821 LIBS
="-lzstd $LIBS"
12822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12831 char ZSTD_compress ();
12835 return ZSTD_compress ();
12840 if ac_fn_c_try_link
"$LINENO"; then :
12841 ac_cv_lib_zstd_ZSTD_compress
=yes
12843 ac_cv_lib_zstd_ZSTD_compress
=no
12845 rm -f core conftest.err conftest.
$ac_objext \
12846 conftest
$ac_exeext conftest.
$ac_ext
12847 LIBS
=$ac_check_lib_save_LIBS
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
12850 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
12851 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
; then :
12852 cat >>confdefs.h
<<_ACEOF
12853 #define HAVE_LIBZSTD 1
12856 LIBS
="-lzstd $LIBS"
12859 as_fn_error $?
"library 'zstd' is required for ZSTD support" "$LINENO" 5
12864 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
12865 if test "$with_ldap" = yes ; then
12867 if test "$PORTNAME" != "win32"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12869 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12870 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12871 $as_echo_n "(cached) " >&6
12873 ac_check_lib_save_LIBS
=$LIBS
12874 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12888 return ldap_bind ();
12893 if ac_fn_c_try_link
"$LINENO"; then :
12894 ac_cv_lib_ldap_ldap_bind
=yes
12896 ac_cv_lib_ldap_ldap_bind
=no
12898 rm -f core conftest.err conftest.
$ac_objext \
12899 conftest
$ac_exeext conftest.
$ac_ext
12900 LIBS
=$ac_check_lib_save_LIBS
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12903 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12904 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12905 cat >>confdefs.h
<<_ACEOF
12906 #define HAVE_LIBLDAP 1
12909 LIBS
="-lldap $LIBS"
12912 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12915 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12916 # This test is carried out against libldap.
12917 for ac_func
in ldap_initialize
12919 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12920 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12921 cat >>confdefs.h
<<_ACEOF
12922 #define HAVE_LDAP_INITIALIZE 1
12928 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
12929 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
12930 # library from a separate OpenLDAP installation). The most reliable
12931 # way to check that is to check for a function introduced in 2.5.
12932 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
12933 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
12934 thread_safe_libldap
=yes
12936 thread_safe_libldap
=no
12939 if test "$thread_safe_libldap" = no
; then
12940 # Use ldap_r for FE if available, else assume ldap is thread-safe.
12941 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
12944 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
12945 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
12946 $as_echo_n "(cached) " >&6
12948 ac_check_lib_save_LIBS
=$LIBS
12949 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12963 return ldap_bind ();
12968 if ac_fn_c_try_link
"$LINENO"; then :
12969 ac_cv_lib_ldap_r_ldap_bind
=yes
12971 ac_cv_lib_ldap_r_ldap_bind
=no
12973 rm -f core conftest.err conftest.
$ac_objext \
12974 conftest
$ac_exeext conftest.
$ac_ext
12975 LIBS
=$ac_check_lib_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
12978 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
12979 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
12980 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12982 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12986 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12990 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12991 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
12992 $as_echo_n "(cached) " >&6
12994 ac_check_lib_save_LIBS
=$LIBS
12995 LIBS
="-lwldap32 $LIBS"
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13009 return ldap_bind ();
13014 if ac_fn_c_try_link
"$LINENO"; then :
13015 ac_cv_lib_wldap32_ldap_bind
=yes
13017 ac_cv_lib_wldap32_ldap_bind
=no
13019 rm -f core conftest.err conftest.
$ac_objext \
13020 conftest
$ac_exeext conftest.
$ac_ext
13021 LIBS
=$ac_check_lib_save_LIBS
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
13024 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
13025 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
13026 cat >>confdefs.h
<<_ACEOF
13027 #define HAVE_LIBWLDAP32 1
13030 LIBS
="-lwldap32 $LIBS"
13033 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
13036 LDAP_LIBS_FE
="-lwldap32"
13037 LDAP_LIBS_BE
="-lwldap32"
13044 # for contrib/sepgsql
13045 if test "$with_selinux" = yes; then
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
13047 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
13048 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
13049 $as_echo_n "(cached) " >&6
13051 ac_check_lib_save_LIBS
=$LIBS
13052 LIBS
="-lselinux $LIBS"
13053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13056 /* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13062 char security_compute_create_name ();
13066 return security_compute_create_name ();
13071 if ac_fn_c_try_link
"$LINENO"; then :
13072 ac_cv_lib_selinux_security_compute_create_name
=yes
13074 ac_cv_lib_selinux_security_compute_create_name
=no
13076 rm -f core conftest.err conftest.
$ac_objext \
13077 conftest
$ac_exeext conftest.
$ac_ext
13078 LIBS
=$ac_check_lib_save_LIBS
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
13081 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
13082 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
13083 cat >>confdefs.h
<<_ACEOF
13084 #define HAVE_LIBSELINUX 1
13087 LIBS
="-lselinux $LIBS"
13090 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
13095 # for contrib/uuid-ossp
13096 if test "$with_uuid" = bsd
; then
13097 # On BSD, the UUID functions are in libc
13098 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
13099 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
13102 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
13105 elif test "$with_uuid" = e2fs
; then
13106 # On macOS, the UUID functions are in libc
13107 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13108 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13112 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13113 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13114 $as_echo_n "(cached) " >&6
13116 ac_check_lib_save_LIBS
=$LIBS
13117 LIBS
="-luuid $LIBS"
13118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13121 /* Override any GCC internal prototype to avoid an error.
13122 Use char because int might match the return type of a GCC
13123 builtin and then its argument prototype would still apply. */
13127 char uuid_generate ();
13131 return uuid_generate ();
13136 if ac_fn_c_try_link
"$LINENO"; then :
13137 ac_cv_lib_uuid_uuid_generate
=yes
13139 ac_cv_lib_uuid_uuid_generate
=no
13141 rm -f core conftest.err conftest.
$ac_objext \
13142 conftest
$ac_exeext conftest.
$ac_ext
13143 LIBS
=$ac_check_lib_save_LIBS
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13146 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13147 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13150 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13155 elif test "$with_uuid" = ossp
; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13157 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13158 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13159 $as_echo_n "(cached) " >&6
13161 ac_check_lib_save_LIBS
=$LIBS
13162 LIBS
="-lossp-uuid $LIBS"
13163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13172 char uuid_export ();
13176 return uuid_export ();
13181 if ac_fn_c_try_link
"$LINENO"; then :
13182 ac_cv_lib_ossp_uuid_uuid_export
=yes
13184 ac_cv_lib_ossp_uuid_uuid_export
=no
13186 rm -f core conftest.err conftest.
$ac_objext \
13187 conftest
$ac_exeext conftest.
$ac_ext
13188 LIBS
=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13191 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13192 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13193 UUID_LIBS
="-lossp-uuid"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13196 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13197 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13198 $as_echo_n "(cached) " >&6
13200 ac_check_lib_save_LIBS
=$LIBS
13201 LIBS
="-luuid $LIBS"
13202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply. */
13211 char uuid_export ();
13215 return uuid_export ();
13220 if ac_fn_c_try_link
"$LINENO"; then :
13221 ac_cv_lib_uuid_uuid_export
=yes
13223 ac_cv_lib_uuid_uuid_export
=no
13225 rm -f core conftest.err conftest.
$ac_objext \
13226 conftest
$ac_exeext conftest.
$ac_ext
13227 LIBS
=$ac_check_lib_save_LIBS
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13230 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13231 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13234 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13248 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13249 if ${ac_cv_header_stdbool_h+:} false
; then :
13250 $as_echo_n "(cached) " >&6
13252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 #include <stdbool.h>
13257 "error: bool is not defined"
13260 "error: false is not defined"
13263 "error: false is not 0"
13266 "error: true is not defined"
13269 "error: true is not 1"
13271 #ifndef __bool_true_false_are_defined
13272 "error: __bool_true_false_are_defined is not defined"
13275 struct s { _Bool s: 1; _Bool t; } s;
13277 char a[true == 1 ? 1 : -1];
13278 char b[false == 0 ? 1 : -1];
13279 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13280 char d[(bool) 0.5 == true ? 1 : -1];
13281 /* See body of main program for 'e'. */
13282 char f[(_Bool) 0.0 == false ? 1 : -1];
13284 char h[sizeof (_Bool)];
13285 char i[sizeof s.t];
13286 enum { j = false, k = true, l = false * true, m = true * 256 };
13287 /* The following fails for
13288 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13290 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13291 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13292 /* Catch a bug in an HP-UX C compiler. See
13293 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13294 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13306 /* Refer to every declared value, to avoid compiler optimizations. */
13307 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13308 + !m + !n + !o + !p + !q + !pq);
13314 if ac_fn_c_try_compile
"$LINENO"; then :
13315 ac_cv_header_stdbool_h
=yes
13317 ac_cv_header_stdbool_h
=no
13319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13322 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13323 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13324 if test "x$ac_cv_type__Bool" = xyes
; then :
13326 cat >>confdefs.h
<<_ACEOF
13327 #define HAVE__BOOL 1
13334 if test $ac_cv_header_stdbool_h = yes; then
13336 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13341 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h sys
/epoll.h sys
/event.h sys
/personality.h sys
/prctl.h sys
/procctl.h sys
/signalfd.h sys
/ucred.h termios.h ucred.h
13343 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13344 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13345 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13346 cat >>confdefs.h
<<_ACEOF
13347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13355 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13356 for ac_header
in readline
/readline.h
13358 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13359 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13360 cat >>confdefs.h
<<_ACEOF
13361 #define HAVE_READLINE_READLINE_H 1
13365 for ac_header
in readline.h
13367 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13368 if test "x$ac_cv_header_readline_h" = xyes
; then :
13369 cat >>confdefs.h
<<_ACEOF
13370 #define HAVE_READLINE_H 1
13374 as_fn_error $?
"readline header not found
13375 If you have readline already installed, see config.log for details on the
13376 failure. It is possible the compiler isn't looking in the proper directory.
13377 Use --without-readline to disable readline support." "$LINENO" 5
13386 for ac_header
in readline
/history.h
13388 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13389 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13390 cat >>confdefs.h
<<_ACEOF
13391 #define HAVE_READLINE_HISTORY_H 1
13395 for ac_header
in history.h
13397 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13398 if test "x$ac_cv_header_history_h" = xyes
; then :
13399 cat >>confdefs.h
<<_ACEOF
13400 #define HAVE_HISTORY_H 1
13404 as_fn_error $?
"history header not found
13405 If you have readline already installed, see config.log for details on the
13406 failure. It is possible the compiler isn't looking in the proper directory.
13407 Use --without-readline to disable readline support." "$LINENO" 5
13418 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13419 # Some installations of libedit usurp /usr/include/readline/, which seems
13420 # bad practice, since in combined installations readline will have its headers
13421 # there. We might have to resort to AC_EGREP checks to make sure we found
13422 # the proper header...
13423 for ac_header
in editline
/readline.h
13425 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13426 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13427 cat >>confdefs.h
<<_ACEOF
13428 #define HAVE_EDITLINE_READLINE_H 1
13432 for ac_header
in readline.h
13434 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13435 if test "x$ac_cv_header_readline_h" = xyes
; then :
13436 cat >>confdefs.h
<<_ACEOF
13437 #define HAVE_READLINE_H 1
13441 for ac_header
in readline
/readline.h
13443 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13444 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13445 cat >>confdefs.h
<<_ACEOF
13446 #define HAVE_READLINE_READLINE_H 1
13450 as_fn_error $?
"readline header not found
13451 If you have libedit already installed, see config.log for details on the
13452 failure. It is possible the compiler isn't looking in the proper directory.
13453 Use --without-readline to disable libedit support." "$LINENO" 5
13466 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13467 # not be there at all. Hence, don't complain if not found. We must check
13468 # though, since in yet other versions it is an independent header.
13469 for ac_header
in editline
/history.h
13471 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13472 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13473 cat >>confdefs.h
<<_ACEOF
13474 #define HAVE_EDITLINE_HISTORY_H 1
13478 for ac_header
in history.h
13480 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13481 if test "x$ac_cv_header_history_h" = xyes
; then :
13482 cat >>confdefs.h
<<_ACEOF
13483 #define HAVE_HISTORY_H 1
13487 for ac_header
in readline
/history.h
13489 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13490 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13491 cat >>confdefs.h
<<_ACEOF
13492 #define HAVE_READLINE_HISTORY_H 1
13509 if test "$with_zlib" = yes; then
13510 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13511 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13514 as_fn_error $?
"zlib header not found
13515 If you have zlib already installed, see config.log for details on the
13516 failure. It is possible the compiler isn't looking in the proper directory.
13517 Use --without-zlib to disable zlib support." "$LINENO" 5
13523 if test -z "$LZ4"; then
13526 # Extract the first word of "$ac_prog", so it can be a program name with args.
13527 set dummy
$ac_prog; ac_word
=$2
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529 $as_echo_n "checking for $ac_word... " >&6; }
13530 if ${ac_cv_path_LZ4+:} false
; then :
13531 $as_echo_n "(cached) " >&6
13535 ac_cv_path_LZ4
="$LZ4" # Let the user override the test with a path.
13538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13539 for as_dir
in $PATH
13542 test -z "$as_dir" && as_dir
=.
13543 for ac_exec_ext
in '' $ac_executable_extensions; do
13544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13545 ac_cv_path_LZ4
="$as_dir/$ac_word$ac_exec_ext"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556 LZ4
=$ac_cv_path_LZ4
13557 if test -n "$LZ4"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13559 $as_echo "$LZ4" >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13566 test -n "$LZ4" && break
13570 # Report the value of LZ4 in configure's output in all cases.
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
13572 $as_echo_n "checking for LZ4... " >&6; }
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13574 $as_echo "$LZ4" >&6; }
13577 if test "$with_lz4" = yes; then
13578 ac_fn_c_check_header_mongrel
"$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
13579 if test "x$ac_cv_header_lz4_h" = xyes
; then :
13582 as_fn_error $?
"lz4.h header file is required for LZ4" "$LINENO" 5
13588 if test -z "$ZSTD"; then
13589 for ac_prog
in zstd
13591 # Extract the first word of "$ac_prog", so it can be a program name with args.
13592 set dummy
$ac_prog; ac_word
=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if ${ac_cv_path_ZSTD+:} false
; then :
13596 $as_echo_n "(cached) " >&6
13600 ac_cv_path_ZSTD
="$ZSTD" # Let the user override the test with a path.
13603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13604 for as_dir
in $PATH
13607 test -z "$as_dir" && as_dir
=.
13608 for ac_exec_ext
in '' $ac_executable_extensions; do
13609 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13610 ac_cv_path_ZSTD
="$as_dir/$ac_word$ac_exec_ext"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13621 ZSTD
=$ac_cv_path_ZSTD
13622 if test -n "$ZSTD"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13624 $as_echo "$ZSTD" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13631 test -n "$ZSTD" && break
13635 # Report the value of ZSTD in configure's output in all cases.
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
13637 $as_echo_n "checking for ZSTD... " >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13639 $as_echo "$ZSTD" >&6; }
13642 if test "$with_zstd" = yes; then
13643 ac_fn_c_check_header_mongrel
"$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
13644 if test "x$ac_cv_header_zstd_h" = xyes
; then :
13647 as_fn_error $?
"zstd.h header file is required for ZSTD" "$LINENO" 5
13653 if test "$with_gssapi" = yes ; then
13654 for ac_header
in gssapi
/gssapi.h
13656 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13657 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13658 cat >>confdefs.h
<<_ACEOF
13659 #define HAVE_GSSAPI_GSSAPI_H 1
13663 for ac_header
in gssapi.h
13665 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13667 cat >>confdefs.h
<<_ACEOF
13668 #define HAVE_GSSAPI_H 1
13672 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13681 for ac_header
in gssapi
/gssapi_ext.h
13683 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
13684 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes
; then :
13685 cat >>confdefs.h
<<_ACEOF
13686 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
13690 for ac_header
in gssapi_ext.h
13692 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi_ext.h" "ac_cv_header_gssapi_ext_h" "$ac_includes_default"
13693 if test "x$ac_cv_header_gssapi_ext_h" = xyes
; then :
13694 cat >>confdefs.h
<<_ACEOF
13695 #define HAVE_GSSAPI_EXT_H 1
13699 as_fn_error $?
"gssapi_ext.h header file is required for GSSAPI" "$LINENO" 5
13710 if test -z "$OPENSSL"; then
13711 for ac_prog
in openssl
13713 # Extract the first word of "$ac_prog", so it can be a program name with args.
13714 set dummy
$ac_prog; ac_word
=$2
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if ${ac_cv_path_OPENSSL+:} false
; then :
13718 $as_echo_n "(cached) " >&6
13722 ac_cv_path_OPENSSL
="$OPENSSL" # Let the user override the test with a path.
13725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13726 for as_dir
in $PATH
13729 test -z "$as_dir" && as_dir
=.
13730 for ac_exec_ext
in '' $ac_executable_extensions; do
13731 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_path_OPENSSL
="$as_dir/$ac_word$ac_exec_ext"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 OPENSSL
=$ac_cv_path_OPENSSL
13744 if test -n "$OPENSSL"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
13746 $as_echo "$OPENSSL" >&6; }
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13753 test -n "$OPENSSL" && break
13757 # Report the value of OPENSSL in configure's output in all cases.
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13759 $as_echo_n "checking for OPENSSL... " >&6; }
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
13761 $as_echo "$OPENSSL" >&6; }
13764 pgac_openssl_version
="$($OPENSSL version 2> /dev/null || echo openssl not found)"
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: using openssl: $pgac_openssl_version" >&5
13766 $as_echo "$as_me: using openssl: $pgac_openssl_version" >&6;}
13767 if test "$with_ssl" = openssl
; then
13768 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13769 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
13772 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13776 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13777 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
13780 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13786 if test "$with_pam" = yes ; then
13787 for ac_header
in security
/pam_appl.h
13789 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13790 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
13791 cat >>confdefs.h
<<_ACEOF
13792 #define HAVE_SECURITY_PAM_APPL_H 1
13796 for ac_header
in pam
/pam_appl.h
13798 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13799 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13800 cat >>confdefs.h
<<_ACEOF
13801 #define HAVE_PAM_PAM_APPL_H 1
13805 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13816 if test "$with_bsd_auth" = yes ; then
13817 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13818 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13821 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13827 if test "$with_systemd" = yes ; then
13828 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13829 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13832 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13838 if test "$with_libxml" = yes ; then
13839 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13840 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13843 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13849 if test "$with_libxslt" = yes ; then
13850 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13851 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13854 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13860 if test "$with_ldap" = yes ; then
13861 if test "$PORTNAME" != "win32"; then
13862 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13863 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13866 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13871 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13872 if ${pgac_cv_ldap_safe+:} false
; then :
13873 $as_echo_n "(cached) " >&6
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13878 #if !defined(LDAP_VENDOR_VERSION) || \
13879 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13880 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13891 if ac_fn_c_try_compile
"$LINENO"; then :
13892 pgac_cv_ldap_safe
=yes
13894 pgac_cv_ldap_safe
=no
13896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13899 $as_echo "$pgac_cv_ldap_safe" >&6; }
13901 if test "$pgac_cv_ldap_safe" != yes; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13903 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13904 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13905 *** also uses LDAP will crash on exit." >&5
13906 $as_echo "$as_me: WARNING:
13907 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13908 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13909 *** also uses LDAP will crash on exit." >&2;}
13912 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13913 #include <windows.h>
13916 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13919 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13926 if test "$with_bonjour" = yes ; then
13927 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13928 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13931 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13937 # for contrib/uuid-ossp
13938 if test "$with_uuid" = bsd
; then
13939 for ac_header
in uuid.h
13941 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13942 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13943 cat >>confdefs.h
<<_ACEOF
13944 #define HAVE_UUID_H 1
13946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13952 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13955 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13960 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13965 elif test "$with_uuid" = e2fs
; then
13966 for ac_header
in uuid
/uuid.h
13968 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13969 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13970 cat >>confdefs.h
<<_ACEOF
13971 #define HAVE_UUID_UUID_H 1
13973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #include <uuid/uuid.h>
13978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13979 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13982 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13987 for ac_header
in uuid.h
13989 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13990 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13991 cat >>confdefs.h
<<_ACEOF
13992 #define HAVE_UUID_H 1
13994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14000 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14003 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
14008 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
14017 elif test "$with_uuid" = ossp
; then
14018 for ac_header
in ossp
/uuid.h
14020 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
14021 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
14022 cat >>confdefs.h
<<_ACEOF
14023 #define HAVE_OSSP_UUID_H 1
14025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 #include <ossp/uuid.h>
14030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14031 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14034 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
14039 for ac_header
in uuid.h
14041 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14042 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14043 cat >>confdefs.h
<<_ACEOF
14044 #define HAVE_UUID_H 1
14046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14052 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14055 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
14060 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
14071 if test "$PORTNAME" = "win32" ; then
14072 for ac_header
in crtdefs.h
14074 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
14075 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
14076 cat >>confdefs.h
<<_ACEOF
14077 #define HAVE_CRTDEFS_H 1
14087 ## Types, structures, compiler characteristics
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14091 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14092 if ${ac_cv_c_bigendian+:} false
; then :
14093 $as_echo_n "(cached) " >&6
14095 ac_cv_c_bigendian
=unknown
14096 # See if we're dealing with a universal compiler.
14097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #ifndef __APPLE_CC__
14100 not a universal capable compiler
14105 if ac_fn_c_try_compile
"$LINENO"; then :
14107 # Check for potential -arch flags. It is not universal unless
14108 # there are at least two -arch flags with different values.
14111 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14112 if test -n "$ac_prev"; then
14114 i?
86 | x86_64 | ppc | ppc64
)
14115 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14118 ac_cv_c_bigendian
=universal
14124 elif test "x$ac_word" = "x-arch"; then
14129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14130 if test $ac_cv_c_bigendian = unknown
; then
14131 # See if sys/param.h defines the BYTE_ORDER macro.
14132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14134 #include <sys/types.h>
14135 #include <sys/param.h>
14140 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14143 bogus endian macros
14150 if ac_fn_c_try_compile
"$LINENO"; then :
14151 # It does; now see whether it defined to BIG_ENDIAN or not.
14152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 #include <sys/types.h>
14155 #include <sys/param.h>
14160 #if BYTE_ORDER != BIG_ENDIAN
14168 if ac_fn_c_try_compile
"$LINENO"; then :
14169 ac_cv_c_bigendian
=yes
14171 ac_cv_c_bigendian
=no
14173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14177 if test $ac_cv_c_bigendian = unknown
; then
14178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14181 #include <limits.h>
14186 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14187 bogus endian macros
14194 if ac_fn_c_try_compile
"$LINENO"; then :
14195 # It does; now see whether it defined to _BIG_ENDIAN or not.
14196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14198 #include <limits.h>
14203 #ifndef _BIG_ENDIAN
14211 if ac_fn_c_try_compile
"$LINENO"; then :
14212 ac_cv_c_bigendian
=yes
14214 ac_cv_c_bigendian
=no
14216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14220 if test $ac_cv_c_bigendian = unknown
; then
14221 # Compile a test program.
14222 if test "$cross_compiling" = yes; then :
14223 # Try to guess by grepping values from an object file.
14224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 short int ascii_mm[] =
14227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14228 short int ascii_ii[] =
14229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14230 int use_ascii (int i) {
14231 return ascii_mm[i] + ascii_ii[i];
14233 short int ebcdic_ii[] =
14234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14235 short int ebcdic_mm[] =
14236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14237 int use_ebcdic (int i) {
14238 return ebcdic_mm[i] + ebcdic_ii[i];
14245 return use_ascii (foo) == use_ebcdic (foo);
14250 if ac_fn_c_try_compile
"$LINENO"; then :
14251 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14252 ac_cv_c_bigendian
=yes
14254 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14255 if test "$ac_cv_c_bigendian" = unknown
; then
14256 ac_cv_c_bigendian
=no
14258 # finding both strings is unlikely to happen, but who knows?
14259 ac_cv_c_bigendian
=unknown
14263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14267 $ac_includes_default
14272 /* Are we little or big endian? From Harbison&Steele. */
14276 char c[sizeof (long int)];
14279 return u.c[sizeof (long int) - 1] == 1;
14285 if ac_fn_c_try_run
"$LINENO"; then :
14286 ac_cv_c_bigendian
=no
14288 ac_cv_c_bigendian
=yes
14290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14297 $as_echo "$ac_cv_c_bigendian" >&6; }
14298 case $ac_cv_c_bigendian in #(
14300 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14306 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14310 as_fn_error $?
"unknown endianness
14311 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14315 $as_echo_n "checking for inline... " >&6; }
14316 if ${ac_cv_c_inline+:} false
; then :
14317 $as_echo_n "(cached) " >&6
14320 for ac_kw
in inline __inline__ __inline
; do
14321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 #ifndef __cplusplus
14325 static $ac_kw foo_t static_foo () {return 0; }
14326 $ac_kw foo_t foo () {return 0; }
14330 if ac_fn_c_try_compile
"$LINENO"; then :
14331 ac_cv_c_inline
=$ac_kw
14333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14334 test "$ac_cv_c_inline" != no
&& break
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14339 $as_echo "$ac_cv_c_inline" >&6; }
14341 case $ac_cv_c_inline in
14344 case $ac_cv_c_inline in
14346 *) ac_val
=$ac_cv_c_inline;;
14348 cat >>confdefs.h
<<_ACEOF
14349 #ifndef __cplusplus
14350 #define inline $ac_val
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14357 $as_echo_n "checking for printf format archetype... " >&6; }
14358 if ${pgac_cv_printf_archetype+:} false
; then :
14359 $as_echo_n "(cached) " >&6
14361 pgac_cv_printf_archetype
=gnu_printf
14362 ac_save_c_werror_flag
=$ac_c_werror_flag
14363 ac_c_werror_flag
=yes
14364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 extern void pgac_write(int ignore, const char *fmt,...)
14367 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14371 pgac_write(0, "error %s: %m", "foo");
14376 if ac_fn_c_try_compile
"$LINENO"; then :
14377 ac_archetype_ok
=yes
14381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14382 ac_c_werror_flag
=$ac_save_c_werror_flag
14384 if [ "$ac_archetype_ok" = no
]; then
14385 pgac_cv_printf_archetype
=__syslog__
14386 ac_save_c_werror_flag
=$ac_c_werror_flag
14387 ac_c_werror_flag
=yes
14388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 extern void pgac_write(int ignore, const char *fmt,...)
14391 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14395 pgac_write(0, "error %s: %m", "foo");
14400 if ac_fn_c_try_compile
"$LINENO"; then :
14401 ac_archetype_ok
=yes
14405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 ac_c_werror_flag
=$ac_save_c_werror_flag
14408 if [ "$ac_archetype_ok" = no
]; then
14409 pgac_cv_printf_archetype
=printf
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14414 $as_echo "$pgac_cv_printf_archetype" >&6; }
14416 cat >>confdefs.h
<<_ACEOF
14417 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14422 $as_echo_n "checking for _Static_assert... " >&6; }
14423 if ${pgac_cv__static_assert+:} false
; then :
14424 $as_echo_n "(cached) " >&6
14426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14432 ({ _Static_assert(1, "foo"); })
14437 if ac_fn_c_try_link
"$LINENO"; then :
14438 pgac_cv__static_assert
=yes
14440 pgac_cv__static_assert
=no
14442 rm -f core conftest.err conftest.
$ac_objext \
14443 conftest
$ac_exeext conftest.
$ac_ext
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14446 $as_echo "$pgac_cv__static_assert" >&6; }
14447 if test x
"$pgac_cv__static_assert" = xyes
; then
14449 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14453 $as_echo_n "checking for typeof... " >&6; }
14454 if ${pgac_cv_c_typeof+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 pgac_cv_c_typeof
=no
14458 for pgac_kw
in typeof __typeof__ decltype
; do
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14473 if ac_fn_c_try_compile
"$LINENO"; then :
14474 pgac_cv_c_typeof
=$pgac_kw
14476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14477 test "$pgac_cv_c_typeof" != no
&& break
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14481 $as_echo "$pgac_cv_c_typeof" >&6; }
14482 if test "$pgac_cv_c_typeof" != no
; then
14484 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14486 if test "$pgac_cv_c_typeof" != typeof
; then
14488 cat >>confdefs.h
<<_ACEOF
14489 #define typeof $pgac_cv_c_typeof
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14495 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14496 if ${pgac_cv__types_compatible+:} false
; then :
14497 $as_echo_n "(cached) " >&6
14499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14505 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14510 if ac_fn_c_try_compile
"$LINENO"; then :
14511 pgac_cv__types_compatible
=yes
14513 pgac_cv__types_compatible
=no
14515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14518 $as_echo "$pgac_cv__types_compatible" >&6; }
14519 if test x
"$pgac_cv__types_compatible" = xyes
; then
14521 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14525 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14526 if ${pgac_cv__builtin_constant_p+:} false
; then :
14527 $as_echo_n "(cached) " >&6
14529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14532 static int y[__builtin_constant_p(x) ? x : 1];
14533 static int z[__builtin_constant_p("string literal") ? 1 : x];
14537 if ac_fn_c_try_compile
"$LINENO"; then :
14538 pgac_cv__builtin_constant_p
=yes
14540 pgac_cv__builtin_constant_p
=no
14542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14545 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14546 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14548 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14552 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14553 if ${pgac_cv__builtin_unreachable+:} false
; then :
14554 $as_echo_n "(cached) " >&6
14556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14562 __builtin_unreachable();
14567 if ac_fn_c_try_link
"$LINENO"; then :
14568 pgac_cv__builtin_unreachable
=yes
14570 pgac_cv__builtin_unreachable
=no
14572 rm -f core conftest.err conftest.
$ac_objext \
14573 conftest
$ac_exeext conftest.
$ac_ext
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14576 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14577 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14579 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14583 $as_echo_n "checking for computed goto support... " >&6; }
14584 if ${pgac_cv_computed_goto+:} false
; then :
14585 $as_echo_n "(cached) " >&6
14587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14593 void *labeladdrs[] = {&&my_label};
14594 goto *labeladdrs[0];
14602 if ac_fn_c_try_compile
"$LINENO"; then :
14603 pgac_cv_computed_goto
=yes
14605 pgac_cv_computed_goto
=no
14607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14610 $as_echo "$pgac_cv_computed_goto" >&6; }
14611 if test x
"$pgac_cv_computed_goto" = xyes
; then
14613 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14616 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14620 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14622 cat >>confdefs.h
<<_ACEOF
14623 #define HAVE_STRUCT_TM_TM_ZONE 1
14630 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14631 #include <sys/ipc.h>
14632 #include <sys/sem.h>
14635 if test "x$ac_cv_type_union_semun" = xyes
; then :
14637 cat >>confdefs.h
<<_ACEOF
14638 #define HAVE_UNION_SEMUN 1
14644 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
14646 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14648 cat >>confdefs.h
<<_ACEOF
14649 #define HAVE_SOCKLEN_T 1
14655 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14656 #include <sys/socket.h>
14659 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14661 cat >>confdefs.h
<<_ACEOF
14662 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14670 $as_echo_n "checking for locale_t... " >&6; }
14671 if ${pgac_cv_type_locale_t+:} false
; then :
14672 $as_echo_n "(cached) " >&6
14674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676 #include <locale.h>
14686 if ac_fn_c_try_compile
"$LINENO"; then :
14687 pgac_cv_type_locale_t
=yes
14689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 #include <xlocale.h>
14701 if ac_fn_c_try_compile
"$LINENO"; then :
14702 pgac_cv_type_locale_t
='yes (in xlocale.h)'
14704 pgac_cv_type_locale_t
=no
14706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14711 $as_echo "$pgac_cv_type_locale_t" >&6; }
14712 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14714 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14718 # MSVC doesn't cope well with defining restrict to __restrict, the
14719 # spelling it understands, because it conflicts with
14720 # __declspec(restrict). Therefore we define pg_restrict to the
14721 # appropriate definition, which presumably won't conflict.
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14723 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14724 if ${ac_cv_c_restrict+:} false
; then :
14725 $as_echo_n "(cached) " >&6
14727 ac_cv_c_restrict
=no
14728 # The order here caters to the fact that C++ does not require restrict.
14729 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 typedef int * int_ptr;
14733 int foo (int_ptr $ac_kw ip) {
14740 int * $ac_kw t = s;
14747 if ac_fn_c_try_compile
"$LINENO"; then :
14748 ac_cv_c_restrict
=$ac_kw
14750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14751 test "$ac_cv_c_restrict" != no
&& break
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14756 $as_echo "$ac_cv_c_restrict" >&6; }
14758 case $ac_cv_c_restrict in
14760 no
) $as_echo "#define restrict /**/" >>confdefs.h
14762 *) cat >>confdefs.h
<<_ACEOF
14763 #define restrict $ac_cv_c_restrict
14768 if test "$ac_cv_c_restrict" = "no"; then
14771 pg_restrict
="$ac_cv_c_restrict"
14774 cat >>confdefs.h
<<_ACEOF
14775 #define pg_restrict $pg_restrict
14779 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14780 #include <getopt.h>
14783 if test "x$ac_cv_type_struct_option" = xyes
; then :
14785 cat >>confdefs.h
<<_ACEOF
14786 #define HAVE_STRUCT_OPTION 1
14795 # On x86_64, check if we can compile a popcntq instruction
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
14797 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
14798 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
14799 $as_echo_n "(cached) " >&6
14801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14807 long long x = 1; long long r;
14808 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
14813 if ac_fn_c_try_compile
"$LINENO"; then :
14814 pgac_cv_have_x86_64_popcntq
=yes
14816 pgac_cv_have_x86_64_popcntq
=no
14818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
14821 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
14822 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
14824 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
14829 # On PPC, check if compiler accepts "i"(x) when __builtin_constant_p(x).
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
14831 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
14832 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
14833 $as_echo_n "(cached) " >&6
14835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14838 addi(int ra, int si)
14841 if (__builtin_constant_p(si))
14842 __asm__ __volatile__(
14843 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
14846 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
14855 if ac_fn_c_try_compile
"$LINENO"; then :
14856 pgac_cv_have_i_constraint__builtin_constant_p
=yes
14858 pgac_cv_have_i_constraint__builtin_constant_p
=no
14860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
14863 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
14864 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
14866 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
14872 # Check largefile support. You might think this is a system service not a
14873 # compiler characteristic, but you'd be wrong. We must check this before
14874 # probing existence of related functions such as fseeko, since the largefile
14875 # defines can affect what is generated for that.
14876 if test "$PORTNAME" != "win32"; then
14877 # Check whether --enable-largefile was given.
14878 if test "${enable_largefile+set}" = set; then :
14879 enableval
=$enable_largefile;
14882 if test "$enable_largefile" != no
; then
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14885 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14886 if ${ac_cv_sys_largefile_CC+:} false
; then :
14887 $as_echo_n "(cached) " >&6
14889 ac_cv_sys_largefile_CC
=no
14890 if test "$GCC" != yes; then
14893 # IRIX 6.2 and later do not support large files by default,
14894 # so use the C compiler's -n32 option if that helps.
14895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 #include <sys/types.h>
14898 /* Check that off_t can represent 2**63 - 1 correctly.
14899 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14900 since some C++ compilers masquerading as C compilers
14901 incorrectly reject 9223372036854775807. */
14902 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14904 && LARGE_OFF_T % 2147483647 == 1)
14914 if ac_fn_c_try_compile
"$LINENO"; then :
14917 rm -f core conftest.err conftest.
$ac_objext
14919 if ac_fn_c_try_compile
"$LINENO"; then :
14920 ac_cv_sys_largefile_CC
=' -n32'; break
14922 rm -f core conftest.err conftest.
$ac_objext
14926 rm -f conftest.
$ac_ext
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14930 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14931 if test "$ac_cv_sys_largefile_CC" != no
; then
14932 CC
=$CC$ac_cv_sys_largefile_CC
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14936 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14937 if ${ac_cv_sys_file_offset_bits+:} false
; then :
14938 $as_echo_n "(cached) " >&6
14941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14943 #include <sys/types.h>
14944 /* Check that off_t can represent 2**63 - 1 correctly.
14945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14946 since some C++ compilers masquerading as C compilers
14947 incorrectly reject 9223372036854775807. */
14948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14950 && LARGE_OFF_T % 2147483647 == 1)
14960 if ac_fn_c_try_compile
"$LINENO"; then :
14961 ac_cv_sys_file_offset_bits
=no
; break
14963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966 #define _FILE_OFFSET_BITS 64
14967 #include <sys/types.h>
14968 /* Check that off_t can represent 2**63 - 1 correctly.
14969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14970 since some C++ compilers masquerading as C compilers
14971 incorrectly reject 9223372036854775807. */
14972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14974 && LARGE_OFF_T % 2147483647 == 1)
14984 if ac_fn_c_try_compile
"$LINENO"; then :
14985 ac_cv_sys_file_offset_bits
=64; break
14987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14988 ac_cv_sys_file_offset_bits
=unknown
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14993 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14994 case $ac_cv_sys_file_offset_bits in #(
14997 cat >>confdefs.h
<<_ACEOF
14998 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15003 if test $ac_cv_sys_file_offset_bits = unknown
; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15005 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15006 if ${ac_cv_sys_large_files+:} false
; then :
15007 $as_echo_n "(cached) " >&6
15010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012 #include <sys/types.h>
15013 /* Check that off_t can represent 2**63 - 1 correctly.
15014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15015 since some C++ compilers masquerading as C compilers
15016 incorrectly reject 9223372036854775807. */
15017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15019 && LARGE_OFF_T % 2147483647 == 1)
15029 if ac_fn_c_try_compile
"$LINENO"; then :
15030 ac_cv_sys_large_files
=no
; break
15032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035 #define _LARGE_FILES 1
15036 #include <sys/types.h>
15037 /* Check that off_t can represent 2**63 - 1 correctly.
15038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15039 since some C++ compilers masquerading as C compilers
15040 incorrectly reject 9223372036854775807. */
15041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15043 && LARGE_OFF_T % 2147483647 == 1)
15053 if ac_fn_c_try_compile
"$LINENO"; then :
15054 ac_cv_sys_large_files
=1; break
15056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15057 ac_cv_sys_large_files
=unknown
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15062 $as_echo "$ac_cv_sys_large_files" >&6; }
15063 case $ac_cv_sys_large_files in #(
15066 cat >>confdefs.h
<<_ACEOF
15067 #define _LARGE_FILES $ac_cv_sys_large_files
15080 # The cast to long int works around a bug in the HP C Compiler
15081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15083 # This bug is HP SR number 8606223364.
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15085 $as_echo_n "checking size of off_t... " >&6; }
15086 if ${ac_cv_sizeof_off_t+:} false
; then :
15087 $as_echo_n "(cached) " >&6
15089 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15092 if test "$ac_cv_type_off_t" = yes; then
15093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15095 as_fn_error
77 "cannot compute sizeof (off_t)
15096 See \`config.log' for more details" "$LINENO" 5; }
15098 ac_cv_sizeof_off_t
=0
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15104 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15108 cat >>confdefs.h
<<_ACEOF
15109 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15114 # If we don't have largefile support, can't handle segment size >= 2GB.
15115 if test "$ac_cv_sizeof_off_t" -lt 8; then
15116 if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
15117 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15121 # The cast to long int works around a bug in the HP C Compiler
15122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15124 # This bug is HP SR number 8606223364.
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15126 $as_echo_n "checking size of bool... " >&6; }
15127 if ${ac_cv_sizeof_bool+:} false
; then :
15128 $as_echo_n "(cached) " >&6
15130 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15131 #include <stdbool.h>
15136 if test "$ac_cv_type_bool" = yes; then
15137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15139 as_fn_error
77 "cannot compute sizeof (bool)
15140 See \`config.log' for more details" "$LINENO" 5; }
15142 ac_cv_sizeof_bool
=0
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15148 $as_echo "$ac_cv_sizeof_bool" >&6; }
15152 cat >>confdefs.h
<<_ACEOF
15153 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15158 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
15160 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
15166 ## Functions, global variables
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15170 $as_echo_n "checking for int timezone... " >&6; }
15171 if ${pgac_cv_var_int_timezone+:} false
; then :
15172 $as_echo_n "(cached) " >&6
15174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15182 res = timezone / 60;
15184 res = _timezone / 60;
15190 if ac_fn_c_try_link
"$LINENO"; then :
15191 pgac_cv_var_int_timezone
=yes
15193 pgac_cv_var_int_timezone
=no
15195 rm -f core conftest.err conftest.
$ac_objext \
15196 conftest
$ac_exeext conftest.
$ac_ext
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15199 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15200 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15202 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15206 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15207 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15208 $as_echo_n "(cached) " >&6
15210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15212 #include <stdlib.h>
15213 #include <locale.h>
15224 if ac_fn_c_try_compile
"$LINENO"; then :
15225 pgac_cv_func_wcstombs_l
='yes'
15227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <stdlib.h>
15230 #include <locale.h>
15231 #include <xlocale.h>
15242 if ac_fn_c_try_compile
"$LINENO"; then :
15243 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15245 pgac_cv_func_wcstombs_l
='no'
15247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15252 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15253 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15255 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15259 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15260 # symbols that that library has no business exposing to the world. Pending
15261 # acquisition of a clue by those developers, ignore libedit (including its
15262 # possible alias of libreadline) while checking for everything else.
15263 LIBS_including_readline
="$LIBS"
15264 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15266 for ac_func
in backtrace_symbols copyfile copy_file_range 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
15268 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15269 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15270 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15271 cat >>confdefs.h
<<_ACEOF
15272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15279 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15281 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15282 if ${pgac_cv__builtin_bswap16+:} false
; then :
15283 $as_echo_n "(cached) " >&6
15285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15289 call__builtin_bswap16(int x)
15291 return __builtin_bswap16(x);
15301 if ac_fn_c_try_link
"$LINENO"; then :
15302 pgac_cv__builtin_bswap16
=yes
15304 pgac_cv__builtin_bswap16
=no
15306 rm -f core conftest.err conftest.
$ac_objext \
15307 conftest
$ac_exeext conftest.
$ac_ext
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15310 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15311 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15313 cat >>confdefs.h
<<_ACEOF
15314 #define HAVE__BUILTIN_BSWAP16 1
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15319 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15320 if ${pgac_cv__builtin_bswap32+:} false
; then :
15321 $as_echo_n "(cached) " >&6
15323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15327 call__builtin_bswap32(int x)
15329 return __builtin_bswap32(x);
15339 if ac_fn_c_try_link
"$LINENO"; then :
15340 pgac_cv__builtin_bswap32
=yes
15342 pgac_cv__builtin_bswap32
=no
15344 rm -f core conftest.err conftest.
$ac_objext \
15345 conftest
$ac_exeext conftest.
$ac_ext
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15348 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15349 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15351 cat >>confdefs.h
<<_ACEOF
15352 #define HAVE__BUILTIN_BSWAP32 1
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15357 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15358 if ${pgac_cv__builtin_bswap64+:} false
; then :
15359 $as_echo_n "(cached) " >&6
15361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15365 call__builtin_bswap64(long int x)
15367 return __builtin_bswap64(x);
15377 if ac_fn_c_try_link
"$LINENO"; then :
15378 pgac_cv__builtin_bswap64
=yes
15380 pgac_cv__builtin_bswap64
=no
15382 rm -f core conftest.err conftest.
$ac_objext \
15383 conftest
$ac_exeext conftest.
$ac_ext
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15386 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15387 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15389 cat >>confdefs.h
<<_ACEOF
15390 #define HAVE__BUILTIN_BSWAP64 1
15394 # We assume that we needn't test all widths of these explicitly:
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15396 $as_echo_n "checking for __builtin_clz... " >&6; }
15397 if ${pgac_cv__builtin_clz+:} false
; then :
15398 $as_echo_n "(cached) " >&6
15400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15404 call__builtin_clz(unsigned int x)
15406 return __builtin_clz(x);
15416 if ac_fn_c_try_link
"$LINENO"; then :
15417 pgac_cv__builtin_clz
=yes
15419 pgac_cv__builtin_clz
=no
15421 rm -f core conftest.err conftest.
$ac_objext \
15422 conftest
$ac_exeext conftest.
$ac_ext
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15425 $as_echo "$pgac_cv__builtin_clz" >&6; }
15426 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15428 cat >>confdefs.h
<<_ACEOF
15429 #define HAVE__BUILTIN_CLZ 1
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15434 $as_echo_n "checking for __builtin_ctz... " >&6; }
15435 if ${pgac_cv__builtin_ctz+:} false
; then :
15436 $as_echo_n "(cached) " >&6
15438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15442 call__builtin_ctz(unsigned int x)
15444 return __builtin_ctz(x);
15454 if ac_fn_c_try_link
"$LINENO"; then :
15455 pgac_cv__builtin_ctz
=yes
15457 pgac_cv__builtin_ctz
=no
15459 rm -f core conftest.err conftest.
$ac_objext \
15460 conftest
$ac_exeext conftest.
$ac_ext
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15463 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15464 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15466 cat >>confdefs.h
<<_ACEOF
15467 #define HAVE__BUILTIN_CTZ 1
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15472 $as_echo_n "checking for __builtin_popcount... " >&6; }
15473 if ${pgac_cv__builtin_popcount+:} false
; then :
15474 $as_echo_n "(cached) " >&6
15476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15480 call__builtin_popcount(unsigned int x)
15482 return __builtin_popcount(x);
15492 if ac_fn_c_try_link
"$LINENO"; then :
15493 pgac_cv__builtin_popcount
=yes
15495 pgac_cv__builtin_popcount
=no
15497 rm -f core conftest.err conftest.
$ac_objext \
15498 conftest
$ac_exeext conftest.
$ac_ext
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15501 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15502 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15504 cat >>confdefs.h
<<_ACEOF
15505 #define HAVE__BUILTIN_POPCOUNT 1
15509 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15510 # so it needs a different test function.
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15512 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15513 if ${pgac_cv__builtin_frame_address+:} false
; then :
15514 $as_echo_n "(cached) " >&6
15516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15520 call__builtin_frame_address(void)
15522 return __builtin_frame_address(0);
15532 if ac_fn_c_try_link
"$LINENO"; then :
15533 pgac_cv__builtin_frame_address
=yes
15535 pgac_cv__builtin_frame_address
=no
15537 rm -f core conftest.err conftest.
$ac_objext \
15538 conftest
$ac_exeext conftest.
$ac_ext
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
15541 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
15542 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
15544 cat >>confdefs.h
<<_ACEOF
15545 #define HAVE__BUILTIN_FRAME_ADDRESS 1
15550 # We require 64-bit fseeko() to be available, but run this check anyway
15551 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15553 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15554 if ${ac_cv_sys_largefile_source+:} false
; then :
15555 $as_echo_n "(cached) " >&6
15558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560 #include <sys/types.h> /* for off_t */
15565 int (*fp) (FILE *, off_t, int) = fseeko;
15566 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15571 if ac_fn_c_try_link
"$LINENO"; then :
15572 ac_cv_sys_largefile_source
=no
; break
15574 rm -f core conftest.err conftest.
$ac_objext \
15575 conftest
$ac_exeext conftest.
$ac_ext
15576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 #define _LARGEFILE_SOURCE 1
15579 #include <sys/types.h> /* for off_t */
15584 int (*fp) (FILE *, off_t, int) = fseeko;
15585 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15590 if ac_fn_c_try_link
"$LINENO"; then :
15591 ac_cv_sys_largefile_source
=1; break
15593 rm -f core conftest.err conftest.
$ac_objext \
15594 conftest
$ac_exeext conftest.
$ac_ext
15595 ac_cv_sys_largefile_source
=unknown
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15600 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15601 case $ac_cv_sys_largefile_source in #(
15604 cat >>confdefs.h
<<_ACEOF
15605 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15611 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15612 # in glibc 2.1.3, but that breaks too many other things.
15613 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15614 if test $ac_cv_sys_largefile_source != unknown
; then
15616 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15621 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15622 # by calling it, 2009-04-02
15623 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15624 # The Clang compiler raises a warning for an undeclared identifier that matches
15625 # a compiler builtin function. All extant Clang versions are affected, as of
15626 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15627 # C and Objective C languages, but Clang does report an error under C++ and
15630 # Passing -fno-builtin to the compiler would suppress this problem. That
15631 # strategy would have the advantage of being insensitive to stray warnings, but
15632 # it would make tests less realistic.
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15634 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15635 if ${ac_cv_c_decl_report+:} false
; then :
15636 $as_echo_n "(cached) " >&6
15638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15649 if ac_fn_c_try_compile
"$LINENO"; then :
15650 if test -s conftest.err
; then :
15651 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15652 # valid AC_CHECK_DECL input. No library function is consistently available
15653 # on freestanding implementations, so test against a dummy declaration.
15654 # Include always-available headers on the off chance that they somehow
15656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15659 #include <limits.h>
15660 #include <stdarg.h>
15661 #include <stddef.h>
15662 extern void ac_decl (int, char *);
15667 (void) ac_decl ((int) 0, (char *) 0);
15677 if ac_fn_c_try_compile
"$LINENO"; then :
15678 if test -s conftest.err
; then :
15679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15681 as_fn_error $?
"cannot detect from compiler exit status or warnings
15682 See \`config.log' for more details" "$LINENO" 5; }
15684 ac_cv_c_decl_report
=warning
15687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15689 as_fn_error $?
"cannot compile a simple declaration test
15690 See \`config.log' for more details" "$LINENO" 5; }
15692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15696 as_fn_error $?
"compiler does not report undeclared identifiers
15697 See \`config.log' for more details" "$LINENO" 5; }
15700 ac_cv_c_decl_report
=error
15702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15705 $as_echo "$ac_cv_c_decl_report" >&6; }
15707 case $ac_cv_c_decl_report in
15708 warning
) ac_c_decl_warn_flag
=yes ;;
15709 *) ac_c_decl_warn_flag
= ;;
15712 if test "$PORTNAME" != "solaris"; then :
15714 for ac_func
in posix_fadvise
15716 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15717 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
15718 cat >>confdefs.h
<<_ACEOF
15719 #define HAVE_POSIX_FADVISE 1
15725 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
15727 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
15733 cat >>confdefs.h
<<_ACEOF
15734 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
15740 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
15742 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
15748 cat >>confdefs.h
<<_ACEOF
15749 #define HAVE_DECL_FDATASYNC $ac_have_decl
15752 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
15753 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
15759 cat >>confdefs.h
<<_ACEOF
15760 #define HAVE_DECL_STRLCAT $ac_have_decl
15762 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
15763 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
15769 cat >>confdefs.h
<<_ACEOF
15770 #define HAVE_DECL_STRLCPY $ac_have_decl
15772 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15773 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
15779 cat >>confdefs.h
<<_ACEOF
15780 #define HAVE_DECL_STRNLEN $ac_have_decl
15784 # We can't use AC_CHECK_FUNCS to detect these functions, because it
15785 # won't handle deployment target restrictions on macOS
15786 ac_fn_c_check_decl
"$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
15788 if test "x$ac_cv_have_decl_preadv" = xyes
; then :
15794 cat >>confdefs.h
<<_ACEOF
15795 #define HAVE_DECL_PREADV $ac_have_decl
15798 ac_fn_c_check_decl
"$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
15800 if test "x$ac_cv_have_decl_pwritev" = xyes
; then :
15806 cat >>confdefs.h
<<_ACEOF
15807 #define HAVE_DECL_PWRITEV $ac_have_decl
15811 # This is probably only present on macOS, but may as well check always
15812 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15814 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
15820 cat >>confdefs.h
<<_ACEOF
15821 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15825 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15826 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
15827 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15830 case " $LIBOBJS " in
15831 *" explicit_bzero.$ac_objext "* ) ;;
15832 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
15838 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
15839 if test "x$ac_cv_func_getopt" = xyes
; then :
15840 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15843 case " $LIBOBJS " in
15844 *" getopt.$ac_objext "* ) ;;
15845 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15851 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15852 if test "x$ac_cv_func_getpeereid" = xyes
; then :
15853 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15856 case " $LIBOBJS " in
15857 *" getpeereid.$ac_objext "* ) ;;
15858 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
15864 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15865 if test "x$ac_cv_func_inet_aton" = xyes
; then :
15866 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15869 case " $LIBOBJS " in
15870 *" inet_aton.$ac_objext "* ) ;;
15871 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
15877 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15878 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
15879 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15882 case " $LIBOBJS " in
15883 *" mkdtemp.$ac_objext "* ) ;;
15884 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
15890 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
15891 if test "x$ac_cv_func_strlcat" = xyes
; then :
15892 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15895 case " $LIBOBJS " in
15896 *" strlcat.$ac_objext "* ) ;;
15897 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
15903 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15904 if test "x$ac_cv_func_strlcpy" = xyes
; then :
15905 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15908 case " $LIBOBJS " in
15909 *" strlcpy.$ac_objext "* ) ;;
15910 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
15916 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
15917 if test "x$ac_cv_func_strnlen" = xyes
; then :
15918 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15921 case " $LIBOBJS " in
15922 *" strnlen.$ac_objext "* ) ;;
15923 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
15931 ac_fn_c_check_func
"$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
15932 if test "x$ac_cv_func_pthread_barrier_wait" = xyes
; then :
15933 $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
15936 case " $LIBOBJS " in
15937 *" pthread_barrier_wait.$ac_objext "* ) ;;
15938 *) LIBOBJS
="$LIBOBJS pthread_barrier_wait.$ac_objext"
15946 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
15947 # Cygwin and (apparently, based on test results) Mingw both
15948 # have a broken strtof(), so substitute its implementation.
15949 # That's not a perfect fix, since it doesn't avoid double-rounding,
15950 # but we have no better options.
15951 case " $LIBOBJS " in
15952 *" strtof.$ac_objext "* ) ;;
15953 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
15958 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
15961 # Similarly, use system's getopt_long() only if system provides struct option.
15962 if test x
"$ac_cv_type_struct_option" = xyes
; then
15963 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15964 if test "x$ac_cv_func_getopt_long" = xyes
; then :
15965 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15968 case " $LIBOBJS " in
15969 *" getopt_long.$ac_objext "* ) ;;
15970 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15978 case " $LIBOBJS " in
15979 *" getopt_long.$ac_objext "* ) ;;
15980 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15986 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
15987 # (i.e., allow '-' as a flag character), so use our version on those platforms.
15988 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
15989 case " $LIBOBJS " in
15990 *" getopt.$ac_objext "* ) ;;
15991 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15997 # mingw has adopted a GNU-centric interpretation of optind/optreset,
15998 # so always use our version on Windows.
15999 if test "$PORTNAME" = "win32"; then
16000 case " $LIBOBJS " in
16001 *" getopt.$ac_objext "* ) ;;
16002 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16006 case " $LIBOBJS " in
16007 *" getopt_long.$ac_objext "* ) ;;
16008 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16014 # Win32 (really MinGW) support
16015 if test "$PORTNAME" = "win32"; then
16016 for ac_func
in _configthreadlocale
16018 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16019 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16020 cat >>confdefs.h
<<_ACEOF
16021 #define HAVE__CONFIGTHREADLOCALE 1
16027 case " $LIBOBJS " in
16028 *" dirmod.$ac_objext "* ) ;;
16029 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16033 case " $LIBOBJS " in
16034 *" kill.$ac_objext "* ) ;;
16035 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16039 case " $LIBOBJS " in
16040 *" open.$ac_objext "* ) ;;
16041 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16045 case " $LIBOBJS " in
16046 *" system.$ac_objext "* ) ;;
16047 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16051 case " $LIBOBJS " in
16052 *" win32common.$ac_objext "* ) ;;
16053 *) LIBOBJS
="$LIBOBJS win32common.$ac_objext"
16057 case " $LIBOBJS " in
16058 *" win32dlopen.$ac_objext "* ) ;;
16059 *) LIBOBJS
="$LIBOBJS win32dlopen.$ac_objext"
16063 case " $LIBOBJS " in
16064 *" win32env.$ac_objext "* ) ;;
16065 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16069 case " $LIBOBJS " in
16070 *" win32error.$ac_objext "* ) ;;
16071 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16075 case " $LIBOBJS " in
16076 *" win32fdatasync.$ac_objext "* ) ;;
16077 *) LIBOBJS
="$LIBOBJS win32fdatasync.$ac_objext"
16081 case " $LIBOBJS " in
16082 *" win32gai_strerror.$ac_objext "* ) ;;
16083 *) LIBOBJS
="$LIBOBJS win32gai_strerror.$ac_objext"
16087 case " $LIBOBJS " in
16088 *" win32getrusage.$ac_objext "* ) ;;
16089 *) LIBOBJS
="$LIBOBJS win32getrusage.$ac_objext"
16093 case " $LIBOBJS " in
16094 *" win32link.$ac_objext "* ) ;;
16095 *) LIBOBJS
="$LIBOBJS win32link.$ac_objext"
16099 case " $LIBOBJS " in
16100 *" win32ntdll.$ac_objext "* ) ;;
16101 *) LIBOBJS
="$LIBOBJS win32ntdll.$ac_objext"
16105 case " $LIBOBJS " in
16106 *" win32pread.$ac_objext "* ) ;;
16107 *) LIBOBJS
="$LIBOBJS win32pread.$ac_objext"
16111 case " $LIBOBJS " in
16112 *" win32pwrite.$ac_objext "* ) ;;
16113 *) LIBOBJS
="$LIBOBJS win32pwrite.$ac_objext"
16117 case " $LIBOBJS " in
16118 *" win32security.$ac_objext "* ) ;;
16119 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16123 case " $LIBOBJS " in
16124 *" win32setlocale.$ac_objext "* ) ;;
16125 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16129 case " $LIBOBJS " in
16130 *" win32stat.$ac_objext "* ) ;;
16131 *) LIBOBJS
="$LIBOBJS win32stat.$ac_objext"
16136 # Cygwin needs only a bit of that
16137 if test "$PORTNAME" = "cygwin"; then
16138 case " $LIBOBJS " in
16139 *" dirmod.$ac_objext "* ) ;;
16140 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16146 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16147 if test "x$ac_cv_func_syslog" = xyes
; then :
16148 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16149 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16151 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16160 $as_echo_n "checking for opterr... " >&6; }
16161 if ${pgac_cv_var_int_opterr+:} false
; then :
16162 $as_echo_n "(cached) " >&6
16164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #include <unistd.h>
16170 extern int opterr; opterr = 1;
16175 if ac_fn_c_try_link
"$LINENO"; then :
16176 pgac_cv_var_int_opterr
=yes
16178 pgac_cv_var_int_opterr
=no
16180 rm -f core conftest.err conftest.
$ac_objext \
16181 conftest
$ac_exeext conftest.
$ac_ext
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16184 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16185 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16187 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16192 $as_echo_n "checking for optreset... " >&6; }
16193 if ${pgac_cv_var_int_optreset+:} false
; then :
16194 $as_echo_n "(cached) " >&6
16196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 #include <unistd.h>
16202 extern int optreset; optreset = 1;
16207 if ac_fn_c_try_link
"$LINENO"; then :
16208 pgac_cv_var_int_optreset
=yes
16210 pgac_cv_var_int_optreset
=no
16212 rm -f core conftest.err conftest.
$ac_objext \
16213 conftest
$ac_exeext conftest.
$ac_ext
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16216 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16217 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16219 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16223 if test "$with_icu" = yes; then
16224 ac_save_CPPFLAGS
=$CPPFLAGS
16225 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16227 # Verify we have ICU's header files
16228 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16229 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16232 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16237 CPPFLAGS
=$ac_save_CPPFLAGS
16240 if test "$with_llvm" = yes; then
16242 # Check which functionality is present
16243 SAVE_CPPFLAGS
="$CPPFLAGS"
16244 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16245 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16247 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16253 cat >>confdefs.h
<<_ACEOF
16254 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16256 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16258 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16264 cat >>confdefs.h
<<_ACEOF
16265 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16268 CPPFLAGS
="$SAVE_CPPFLAGS"
16272 # Lastly, restore full LIBS list and check for readline/libedit symbols
16273 LIBS
="$LIBS_including_readline"
16275 if test "$with_readline" = yes; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
16277 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
16278 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
16279 $as_echo_n "(cached) " >&6
16281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16284 #if defined(HAVE_READLINE_READLINE_H)
16285 #include <readline/readline.h>
16286 #elif defined(HAVE_EDITLINE_READLINE_H)
16287 #include <editline/readline.h>
16288 #elif defined(HAVE_READLINE_H)
16289 #include <readline.h>
16295 rl_completion_suppress_quote = 1;
16300 if ac_fn_c_try_link
"$LINENO"; then :
16301 pgac_cv_var_rl_completion_suppress_quote
=yes
16303 pgac_cv_var_rl_completion_suppress_quote
=no
16305 rm -f core conftest.err conftest.
$ac_objext \
16306 conftest
$ac_exeext conftest.
$ac_ext
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
16309 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
16310 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
16312 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
16316 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
16317 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
16318 $as_echo_n "(cached) " >&6
16320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16323 #if defined(HAVE_READLINE_READLINE_H)
16324 #include <readline/readline.h>
16325 #elif defined(HAVE_EDITLINE_READLINE_H)
16326 #include <editline/readline.h>
16327 #elif defined(HAVE_READLINE_H)
16328 #include <readline.h>
16334 rl_filename_quote_characters = "x";
16339 if ac_fn_c_try_link
"$LINENO"; then :
16340 pgac_cv_var_rl_filename_quote_characters
=yes
16342 pgac_cv_var_rl_filename_quote_characters
=no
16344 rm -f core conftest.err conftest.
$ac_objext \
16345 conftest
$ac_exeext conftest.
$ac_ext
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
16348 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
16349 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
16351 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
16355 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
16356 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
16357 $as_echo_n "(cached) " >&6
16359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16362 #if defined(HAVE_READLINE_READLINE_H)
16363 #include <readline/readline.h>
16364 #elif defined(HAVE_EDITLINE_READLINE_H)
16365 #include <editline/readline.h>
16366 #elif defined(HAVE_READLINE_H)
16367 #include <readline.h>
16373 rl_filename_quoting_function = 0;
16378 if ac_fn_c_try_link
"$LINENO"; then :
16379 pgac_cv_var_rl_filename_quoting_function
=yes
16381 pgac_cv_var_rl_filename_quoting_function
=no
16383 rm -f core conftest.err conftest.
$ac_objext \
16384 conftest
$ac_exeext conftest.
$ac_ext
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
16387 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
16388 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
16390 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
16394 for ac_func
in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
16396 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16397 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16398 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16399 cat >>confdefs.h
<<_ACEOF
16400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16409 # This test makes sure that run tests work at all. Sometimes a shared
16410 # library is found by the linker, but the runtime linker can't find it.
16411 # This check should come after all modifications of compiler or linker
16412 # variables, and before any other run tests.
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16414 $as_echo_n "checking test program... " >&6; }
16415 if test "$cross_compiling" = yes; then :
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16417 $as_echo "cross-compiling" >&6; }
16419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 int main() { return 0; }
16423 if ac_fn_c_try_run
"$LINENO"; then :
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16425 $as_echo "ok" >&6; }
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16428 $as_echo "failed" >&6; }
16430 Could not execute a simple test program. This may be a problem
16431 related to locating shared libraries. Check the file 'config.log'
16432 for the exact reason." "$LINENO" 5
16434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16439 # --------------------
16440 # Run tests below here
16441 # --------------------
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16445 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16446 if ${pgac_cv_type_long_int_64+:} false
; then :
16447 $as_echo_n "(cached) " >&6
16449 if test "$cross_compiling" = yes; then :
16450 # If cross-compiling, check the size reported by the compiler and
16451 # trust that the arithmetic works.
16452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16458 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16459 test_array [0] = 0;
16460 return test_array [0];
16466 if ac_fn_c_try_compile
"$LINENO"; then :
16467 pgac_cv_type_long_int_64
=yes
16469 pgac_cv_type_long_int_64
=no
16471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475 typedef long int ac_int64;
16478 * These are globals to discourage the compiler from folding all the
16479 * arithmetic tests down to compile-time constants.
16481 ac_int64 a = 20000001;
16482 ac_int64 b = 40000005;
16484 int does_int64_work()
16488 if (sizeof(ac_int64) != 8)
16489 return 0; /* definitely not the right size */
16491 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16501 return (! does_int64_work());
16504 if ac_fn_c_try_run
"$LINENO"; then :
16505 pgac_cv_type_long_int_64
=yes
16507 pgac_cv_type_long_int_64
=no
16509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16515 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16517 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
16518 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
16520 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16525 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
16526 pg_int64_type
="long int"
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16529 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16530 if ${pgac_cv_type_long_long_int_64+:} false
; then :
16531 $as_echo_n "(cached) " >&6
16533 if test "$cross_compiling" = yes; then :
16534 # If cross-compiling, check the size reported by the compiler and
16535 # trust that the arithmetic works.
16536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16542 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16543 test_array [0] = 0;
16544 return test_array [0];
16550 if ac_fn_c_try_compile
"$LINENO"; then :
16551 pgac_cv_type_long_long_int_64
=yes
16553 pgac_cv_type_long_long_int_64
=no
16555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 typedef long long int ac_int64;
16562 * These are globals to discourage the compiler from folding all the
16563 * arithmetic tests down to compile-time constants.
16565 ac_int64 a = 20000001;
16566 ac_int64 b = 40000005;
16568 int does_int64_work()
16572 if (sizeof(ac_int64) != 8)
16573 return 0; /* definitely not the right size */
16575 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16585 return (! does_int64_work());
16588 if ac_fn_c_try_run
"$LINENO"; then :
16589 pgac_cv_type_long_long_int_64
=yes
16591 pgac_cv_type_long_long_int_64
=no
16593 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16594 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16599 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16601 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
16602 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
16604 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16608 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16609 pg_int64_type
="long long int"
16611 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
16616 cat >>confdefs.h
<<_ACEOF
16617 #define PG_INT64_TYPE $pg_int64_type
16621 # Select the printf length modifier that goes with that, too.
16622 if test x
"$pg_int64_type" = x
"long long int" ; then
16623 INT64_MODIFIER
='"ll"'
16625 INT64_MODIFIER
='"l"'
16629 cat >>confdefs.h
<<_ACEOF
16630 #define INT64_MODIFIER $INT64_MODIFIER
16634 # has to be down here, rather than with the other builtins, because
16635 # the test uses PG_INT64_TYPE.
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16637 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16638 if ${pgac_cv__builtin_op_overflow+:} false
; then :
16639 $as_echo_n "(cached) " >&6
16641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16644 PG_INT64_TYPE a = 1;
16645 PG_INT64_TYPE b = 1;
16646 PG_INT64_TYPE result;
16652 oflo = __builtin_mul_overflow(a, b, &result);
16657 if ac_fn_c_try_link
"$LINENO"; then :
16658 pgac_cv__builtin_op_overflow
=yes
16660 pgac_cv__builtin_op_overflow
=no
16662 rm -f core conftest.err conftest.
$ac_objext \
16663 conftest
$ac_exeext conftest.
$ac_ext
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16666 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16667 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
16669 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16673 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16674 # The cast to long int works around a bug in the HP C Compiler
16675 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16676 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16677 # This bug is HP SR number 8606223364.
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16679 $as_echo_n "checking size of void *... " >&6; }
16680 if ${ac_cv_sizeof_void_p+:} false
; then :
16681 $as_echo_n "(cached) " >&6
16683 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16686 if test "$ac_cv_type_void_p" = yes; then
16687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16689 as_fn_error
77 "cannot compute sizeof (void *)
16690 See \`config.log' for more details" "$LINENO" 5; }
16692 ac_cv_sizeof_void_p
=0
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16698 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16702 cat >>confdefs.h
<<_ACEOF
16703 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16707 # The cast to long int works around a bug in the HP C Compiler
16708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16710 # This bug is HP SR number 8606223364.
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16712 $as_echo_n "checking size of size_t... " >&6; }
16713 if ${ac_cv_sizeof_size_t+:} false
; then :
16714 $as_echo_n "(cached) " >&6
16716 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16719 if test "$ac_cv_type_size_t" = yes; then
16720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16722 as_fn_error
77 "cannot compute sizeof (size_t)
16723 See \`config.log' for more details" "$LINENO" 5; }
16725 ac_cv_sizeof_size_t
=0
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16731 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16735 cat >>confdefs.h
<<_ACEOF
16736 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16740 # The cast to long int works around a bug in the HP C Compiler
16741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16743 # This bug is HP SR number 8606223364.
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16745 $as_echo_n "checking size of long... " >&6; }
16746 if ${ac_cv_sizeof_long+:} false
; then :
16747 $as_echo_n "(cached) " >&6
16749 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16752 if test "$ac_cv_type_long" = yes; then
16753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16755 as_fn_error
77 "cannot compute sizeof (long)
16756 See \`config.log' for more details" "$LINENO" 5; }
16758 ac_cv_sizeof_long
=0
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16764 $as_echo "$ac_cv_sizeof_long" >&6; }
16768 cat >>confdefs.h
<<_ACEOF
16769 #define SIZEOF_LONG $ac_cv_sizeof_long
16774 # Determine memory alignment requirements for the basic C data types.
16776 # The cast to long int works around a bug in the HP C Compiler,
16777 # see AC_CHECK_SIZEOF for more information.
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16779 $as_echo_n "checking alignment of short... " >&6; }
16780 if ${ac_cv_alignof_short+:} false
; then :
16781 $as_echo_n "(cached) " >&6
16783 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16785 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16787 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16790 if test "$ac_cv_type_short" = yes; then
16791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16793 as_fn_error
77 "cannot compute alignment of short
16794 See \`config.log' for more details" "$LINENO" 5; }
16796 ac_cv_alignof_short
=0
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16802 $as_echo "$ac_cv_alignof_short" >&6; }
16806 cat >>confdefs.h
<<_ACEOF
16807 #define ALIGNOF_SHORT $ac_cv_alignof_short
16811 # The cast to long int works around a bug in the HP C Compiler,
16812 # see AC_CHECK_SIZEOF for more information.
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16814 $as_echo_n "checking alignment of int... " >&6; }
16815 if ${ac_cv_alignof_int+:} false
; then :
16816 $as_echo_n "(cached) " >&6
16818 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16820 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16822 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16825 if test "$ac_cv_type_int" = yes; then
16826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16828 as_fn_error
77 "cannot compute alignment of int
16829 See \`config.log' for more details" "$LINENO" 5; }
16831 ac_cv_alignof_int
=0
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16837 $as_echo "$ac_cv_alignof_int" >&6; }
16841 cat >>confdefs.h
<<_ACEOF
16842 #define ALIGNOF_INT $ac_cv_alignof_int
16846 # The cast to long int works around a bug in the HP C Compiler,
16847 # see AC_CHECK_SIZEOF for more information.
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16849 $as_echo_n "checking alignment of long... " >&6; }
16850 if ${ac_cv_alignof_long+:} false
; then :
16851 $as_echo_n "(cached) " >&6
16853 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16855 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16857 typedef struct { char x; long y; } ac__type_alignof_;"; then :
16860 if test "$ac_cv_type_long" = yes; then
16861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16863 as_fn_error
77 "cannot compute alignment of long
16864 See \`config.log' for more details" "$LINENO" 5; }
16866 ac_cv_alignof_long
=0
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
16872 $as_echo "$ac_cv_alignof_long" >&6; }
16876 cat >>confdefs.h
<<_ACEOF
16877 #define ALIGNOF_LONG $ac_cv_alignof_long
16881 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16882 # The cast to long int works around a bug in the HP C Compiler,
16883 # see AC_CHECK_SIZEOF for more information.
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
16885 $as_echo_n "checking alignment of long long int... " >&6; }
16886 if ${ac_cv_alignof_long_long_int+:} false
; then :
16887 $as_echo_n "(cached) " >&6
16889 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
16891 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16893 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
16896 if test "$ac_cv_type_long_long_int" = yes; then
16897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16899 as_fn_error
77 "cannot compute alignment of long long int
16900 See \`config.log' for more details" "$LINENO" 5; }
16902 ac_cv_alignof_long_long_int
=0
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
16908 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
16912 cat >>confdefs.h
<<_ACEOF
16913 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
16918 # The cast to long int works around a bug in the HP C Compiler,
16919 # see AC_CHECK_SIZEOF for more information.
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16921 $as_echo_n "checking alignment of double... " >&6; }
16922 if ${ac_cv_alignof_double+:} false
; then :
16923 $as_echo_n "(cached) " >&6
16925 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16927 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16929 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16932 if test "$ac_cv_type_double" = yes; then
16933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16935 as_fn_error
77 "cannot compute alignment of double
16936 See \`config.log' for more details" "$LINENO" 5; }
16938 ac_cv_alignof_double
=0
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16944 $as_echo "$ac_cv_alignof_double" >&6; }
16948 cat >>confdefs.h
<<_ACEOF
16949 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16954 # Compute maximum alignment of any basic type.
16956 # We require 'double' to have the strictest alignment among the basic types,
16957 # because otherwise the C ABI might impose 8-byte alignment on some of the
16958 # other C types that correspond to TYPALIGN_DOUBLE SQL types. That could
16959 # cause a mismatch between the tuple layout and the C struct layout of a
16960 # catalog tuple. We used to carefully order catalog columns such that any
16961 # fixed-width, attalign=4 columns were at offsets divisible by 8 regardless
16962 # of MAXIMUM_ALIGNOF to avoid that, but we no longer support any platforms
16963 # where TYPALIGN_DOUBLE != MAXIMUM_ALIGNOF.
16965 # We assume without checking that long's alignment is at least as strong as
16966 # char, short, or int. Note that we intentionally do not consider any types
16967 # wider than 64 bits, as allowing MAXIMUM_ALIGNOF to exceed 8 would be too
16968 # much of a penalty for disk and memory space.
16970 MAX_ALIGNOF
=$ac_cv_alignof_double
16972 if test $ac_cv_alignof_long -gt $MAX_ALIGNOF ; then
16973 as_fn_error $?
"alignment of 'long' is greater than the alignment of 'double'" "$LINENO" 5
16975 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $ac_cv_alignof_long_long_int -gt $MAX_ALIGNOF ; then
16976 as_fn_error $?
"alignment of 'long long int' is greater than the alignment of 'double'" "$LINENO" 5
16979 cat >>confdefs.h
<<_ACEOF
16980 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16985 # Some platforms predefine the types int8, int16, etc. Only check
16986 # a (hopefully) representative subset.
16987 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
16989 if test "x$ac_cv_type_int8" = xyes
; then :
16991 cat >>confdefs.h
<<_ACEOF
16992 #define HAVE_INT8 1
16997 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
16999 if test "x$ac_cv_type_uint8" = xyes
; then :
17001 cat >>confdefs.h
<<_ACEOF
17002 #define HAVE_UINT8 1
17007 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17009 if test "x$ac_cv_type_int64" = xyes
; then :
17011 cat >>confdefs.h
<<_ACEOF
17012 #define HAVE_INT64 1
17017 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17019 if test "x$ac_cv_type_uint64" = xyes
; then :
17021 cat >>confdefs.h
<<_ACEOF
17022 #define HAVE_UINT64 1
17029 # Some compilers offer a 128-bit integer scalar type.
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17031 $as_echo_n "checking for __int128... " >&6; }
17032 if ${pgac_cv__128bit_int+:} false
; then :
17033 $as_echo_n "(cached) " >&6
17035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17039 * We don't actually run this test, just link it to verify that any support
17040 * functions needed for __int128 are present.
17042 * These are globals to discourage the compiler from folding all the
17043 * arithmetic tests down to compile-time constants. We do not have
17044 * convenient support for 128bit literals at this point...
17046 __int128 a = 48828125;
17047 __int128 b = 97656250;
17054 a = (a << 12) + 1; /* 200000000001 */
17055 b = (b << 12) + 5; /* 400000000005 */
17056 /* try the most relevant arithmetic ops */
17059 /* must use the results, else compiler may optimize arithmetic away */
17067 if ac_fn_c_try_link
"$LINENO"; then :
17068 pgac_cv__128bit_int
=yes
17070 pgac_cv__128bit_int
=no
17072 rm -f core conftest.err conftest.
$ac_objext \
17073 conftest
$ac_exeext conftest.
$ac_ext
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17076 $as_echo "$pgac_cv__128bit_int" >&6; }
17077 if test x
"$pgac_cv__128bit_int" = xyes
; then
17078 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17079 # If not cross-compiling, we can test for bugs and disable use of __int128
17080 # with buggy compilers. If cross-compiling, hope for the best.
17081 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17083 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17084 if ${pgac_cv__128bit_int_bug+:} false
; then :
17085 $as_echo_n "(cached) " >&6
17087 if test "$cross_compiling" = yes; then :
17088 pgac_cv__128bit_int_bug
="assuming ok"
17090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17091 /* end confdefs.h. */
17093 /* This must match the corresponding code in c.h: */
17094 #if defined(__GNUC__) || defined(__SUNPRO_C)
17095 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17096 #elif defined(_MSC_VER)
17097 #define pg_attribute_aligned(a) __declspec(align(a))
17099 typedef __int128 int128a
17100 #if defined(pg_attribute_aligned)
17101 pg_attribute_aligned(8)
17105 void pass_by_val(void *buffer, int128a par) { holder = par; }
17111 long int i64 = 97656225L << 12;
17113 pass_by_val(main, (int128a) i64);
17122 if ac_fn_c_try_run
"$LINENO"; then :
17123 pgac_cv__128bit_int_bug
=ok
17125 pgac_cv__128bit_int_bug
=broken
17127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17133 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17134 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17136 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17138 # The cast to long int works around a bug in the HP C Compiler,
17139 # see AC_CHECK_SIZEOF for more information.
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17141 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17142 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17143 $as_echo_n "(cached) " >&6
17145 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17147 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17149 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17152 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17155 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17156 See \`config.log' for more details" "$LINENO" 5; }
17158 ac_cv_alignof_PG_INT128_TYPE
=0
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17164 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17168 cat >>confdefs.h
<<_ACEOF
17169 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17176 # Check for various atomic operations now that we have checked how to declare
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17179 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17180 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17181 $as_echo_n "(cached) " >&6
17183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17190 __sync_lock_test_and_set(&lock, 1);
17191 __sync_lock_release(&lock);
17196 if ac_fn_c_try_link
"$LINENO"; then :
17197 pgac_cv_gcc_sync_char_tas
="yes"
17199 pgac_cv_gcc_sync_char_tas
="no"
17201 rm -f core conftest.err conftest.
$ac_objext \
17202 conftest
$ac_exeext conftest.
$ac_ext
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17205 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17206 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17208 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17212 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17213 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17214 $as_echo_n "(cached) " >&6
17216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17223 __sync_lock_test_and_set(&lock, 1);
17224 __sync_lock_release(&lock);
17229 if ac_fn_c_try_link
"$LINENO"; then :
17230 pgac_cv_gcc_sync_int32_tas
="yes"
17232 pgac_cv_gcc_sync_int32_tas
="no"
17234 rm -f core conftest.err conftest.
$ac_objext \
17235 conftest
$ac_exeext conftest.
$ac_ext
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17238 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17239 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17241 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17245 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17246 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17247 $as_echo_n "(cached) " >&6
17249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17256 __sync_val_compare_and_swap(&val, 0, 37);
17261 if ac_fn_c_try_link
"$LINENO"; then :
17262 pgac_cv_gcc_sync_int32_cas
="yes"
17264 pgac_cv_gcc_sync_int32_cas
="no"
17266 rm -f core conftest.err conftest.
$ac_objext \
17267 conftest
$ac_exeext conftest.
$ac_ext
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17270 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17271 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17273 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17277 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17278 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17279 $as_echo_n "(cached) " >&6
17281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17287 PG_INT64_TYPE lock = 0;
17288 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17293 if ac_fn_c_try_link
"$LINENO"; then :
17294 pgac_cv_gcc_sync_int64_cas
="yes"
17296 pgac_cv_gcc_sync_int64_cas
="no"
17298 rm -f core conftest.err conftest.
$ac_objext \
17299 conftest
$ac_exeext conftest.
$ac_ext
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17302 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17303 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17305 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17309 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17310 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17311 $as_echo_n "(cached) " >&6
17313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17321 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17326 if ac_fn_c_try_link
"$LINENO"; then :
17327 pgac_cv_gcc_atomic_int32_cas
="yes"
17329 pgac_cv_gcc_atomic_int32_cas
="no"
17331 rm -f core conftest.err conftest.
$ac_objext \
17332 conftest
$ac_exeext conftest.
$ac_ext
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17335 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17336 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17338 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17342 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17343 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17344 $as_echo_n "(cached) " >&6
17346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17347 /* end confdefs.h. */
17352 PG_INT64_TYPE val = 0;
17353 PG_INT64_TYPE expect = 0;
17354 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17359 if ac_fn_c_try_link
"$LINENO"; then :
17360 pgac_cv_gcc_atomic_int64_cas
="yes"
17362 pgac_cv_gcc_atomic_int64_cas
="no"
17364 rm -f core conftest.err conftest.
$ac_objext \
17365 conftest
$ac_exeext conftest.
$ac_ext
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17368 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17369 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17371 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17376 # Check for x86 cpuid instruction
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17378 $as_echo_n "checking for __get_cpuid... " >&6; }
17379 if ${pgac_cv__get_cpuid+:} false
; then :
17380 $as_echo_n "(cached) " >&6
17382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17388 unsigned int exx[4] = {0, 0, 0, 0};
17389 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17395 if ac_fn_c_try_link
"$LINENO"; then :
17396 pgac_cv__get_cpuid
="yes"
17398 pgac_cv__get_cpuid
="no"
17400 rm -f core conftest.err conftest.
$ac_objext \
17401 conftest
$ac_exeext conftest.
$ac_ext
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17404 $as_echo "$pgac_cv__get_cpuid" >&6; }
17405 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17407 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid_count" >&5
17412 $as_echo_n "checking for __get_cpuid_count... " >&6; }
17413 if ${pgac_cv__get_cpuid_count+:} false
; then :
17414 $as_echo_n "(cached) " >&6
17416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17417 /* end confdefs.h. */
17422 unsigned int exx[4] = {0, 0, 0, 0};
17423 __get_cpuid_count(7, 0, &exx[0], &exx[1], &exx[2], &exx[3]);
17429 if ac_fn_c_try_link
"$LINENO"; then :
17430 pgac_cv__get_cpuid_count
="yes"
17432 pgac_cv__get_cpuid_count
="no"
17434 rm -f core conftest.err conftest.
$ac_objext \
17435 conftest
$ac_exeext conftest.
$ac_ext
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid_count" >&5
17438 $as_echo "$pgac_cv__get_cpuid_count" >&6; }
17439 if test x
"$pgac_cv__get_cpuid_count" = x
"yes"; then
17441 $as_echo "#define HAVE__GET_CPUID_COUNT 1" >>confdefs.h
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17446 $as_echo_n "checking for __cpuid... " >&6; }
17447 if ${pgac_cv__cpuid+:} false
; then :
17448 $as_echo_n "(cached) " >&6
17450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 #include <intrin.h>
17456 unsigned int exx[4] = {0, 0, 0, 0};
17457 __get_cpuid(exx[0], 1);
17463 if ac_fn_c_try_link
"$LINENO"; then :
17464 pgac_cv__cpuid
="yes"
17466 pgac_cv__cpuid
="no"
17468 rm -f core conftest.err conftest.
$ac_objext \
17469 conftest
$ac_exeext conftest.
$ac_ext
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17472 $as_echo "$pgac_cv__cpuid" >&6; }
17473 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17475 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuidex" >&5
17480 $as_echo_n "checking for __cpuidex... " >&6; }
17481 if ${pgac_cv__cpuidex+:} false
; then :
17482 $as_echo_n "(cached) " >&6
17484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486 #include <intrin.h>
17490 unsigned int exx[4] = {0, 0, 0, 0};
17491 __get_cpuidex(exx[0], 7, 0);
17497 if ac_fn_c_try_link
"$LINENO"; then :
17498 pgac_cv__cpuidex
="yes"
17500 pgac_cv__cpuidex
="no"
17502 rm -f core conftest.err conftest.
$ac_objext \
17503 conftest
$ac_exeext conftest.
$ac_ext
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuidex" >&5
17506 $as_echo "$pgac_cv__cpuidex" >&6; }
17507 if test x
"$pgac_cv__cpuidex" = x
"yes"; then
17509 $as_echo "#define HAVE__CPUIDEX 1" >>confdefs.h
17513 # Check for XSAVE intrinsics
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xgetbv with CFLAGS=" >&5
17517 $as_echo_n "checking for _xgetbv with CFLAGS=... " >&6; }
17518 if ${pgac_cv_xsave_intrinsics_+:} false
; then :
17519 $as_echo_n "(cached) " >&6
17521 pgac_save_CFLAGS
=$CFLAGS
17522 CFLAGS
="$pgac_save_CFLAGS "
17523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525 #include <immintrin.h>
17529 return _xgetbv(0) & 0xe0;
17534 if ac_fn_c_try_link
"$LINENO"; then :
17535 pgac_cv_xsave_intrinsics_
=yes
17537 pgac_cv_xsave_intrinsics_
=no
17539 rm -f core conftest.err conftest.
$ac_objext \
17540 conftest
$ac_exeext conftest.
$ac_ext
17541 CFLAGS
="$pgac_save_CFLAGS"
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_xsave_intrinsics_" >&5
17544 $as_echo "$pgac_cv_xsave_intrinsics_" >&6; }
17545 if test x
"$pgac_cv_xsave_intrinsics_" = x
"yes"; then
17547 pgac_xsave_intrinsics
=yes
17550 if test x
"$pgac_xsave_intrinsics" != x
"yes"; then
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xgetbv with CFLAGS=-mxsave" >&5
17552 $as_echo_n "checking for _xgetbv with CFLAGS=-mxsave... " >&6; }
17553 if ${pgac_cv_xsave_intrinsics__mxsave+:} false
; then :
17554 $as_echo_n "(cached) " >&6
17556 pgac_save_CFLAGS
=$CFLAGS
17557 CFLAGS
="$pgac_save_CFLAGS -mxsave"
17558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 #include <immintrin.h>
17564 return _xgetbv(0) & 0xe0;
17569 if ac_fn_c_try_link
"$LINENO"; then :
17570 pgac_cv_xsave_intrinsics__mxsave
=yes
17572 pgac_cv_xsave_intrinsics__mxsave
=no
17574 rm -f core conftest.err conftest.
$ac_objext \
17575 conftest
$ac_exeext conftest.
$ac_ext
17576 CFLAGS
="$pgac_save_CFLAGS"
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_xsave_intrinsics__mxsave" >&5
17579 $as_echo "$pgac_cv_xsave_intrinsics__mxsave" >&6; }
17580 if test x
"$pgac_cv_xsave_intrinsics__mxsave" = x
"yes"; then
17581 CFLAGS_XSAVE
="-mxsave"
17582 pgac_xsave_intrinsics
=yes
17586 if test x
"$pgac_xsave_intrinsics" = x
"yes"; then
17588 $as_echo "#define HAVE_XSAVE_INTRINSICS 1" >>confdefs.h
17593 # Check for AVX-512 popcount intrinsics
17597 if test x
"$host_cpu" = x
"x86_64"; then
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm512_popcnt_epi64 with CFLAGS=" >&5
17599 $as_echo_n "checking for _mm512_popcnt_epi64 with CFLAGS=... " >&6; }
17600 if ${pgac_cv_avx512_popcnt_intrinsics_+:} false
; then :
17601 $as_echo_n "(cached) " >&6
17603 pgac_save_CFLAGS
=$CFLAGS
17604 CFLAGS
="$pgac_save_CFLAGS "
17605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17607 #include <immintrin.h>
17611 const char buf[sizeof(__m512i)];
17612 PG_INT64_TYPE popcnt = 0;
17613 __m512i accum = _mm512_setzero_si512();
17614 const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf);
17615 const __m512i cnt = _mm512_popcnt_epi64(val);
17616 accum = _mm512_add_epi64(accum, cnt);
17617 popcnt = _mm512_reduce_add_epi64(accum);
17618 /* return computed value, to prevent the above being optimized away */
17619 return popcnt == 0;
17624 if ac_fn_c_try_link
"$LINENO"; then :
17625 pgac_cv_avx512_popcnt_intrinsics_
=yes
17627 pgac_cv_avx512_popcnt_intrinsics_
=no
17629 rm -f core conftest.err conftest.
$ac_objext \
17630 conftest
$ac_exeext conftest.
$ac_ext
17631 CFLAGS
="$pgac_save_CFLAGS"
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_avx512_popcnt_intrinsics_" >&5
17634 $as_echo "$pgac_cv_avx512_popcnt_intrinsics_" >&6; }
17635 if test x
"$pgac_cv_avx512_popcnt_intrinsics_" = x
"yes"; then
17637 pgac_avx512_popcnt_intrinsics
=yes
17640 if test x
"$pgac_avx512_popcnt_intrinsics" != x
"yes"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm512_popcnt_epi64 with CFLAGS=-mavx512vpopcntdq -mavx512bw" >&5
17642 $as_echo_n "checking for _mm512_popcnt_epi64 with CFLAGS=-mavx512vpopcntdq -mavx512bw... " >&6; }
17643 if ${pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw+:} false
; then :
17644 $as_echo_n "(cached) " >&6
17646 pgac_save_CFLAGS
=$CFLAGS
17647 CFLAGS
="$pgac_save_CFLAGS -mavx512vpopcntdq -mavx512bw"
17648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650 #include <immintrin.h>
17654 const char buf[sizeof(__m512i)];
17655 PG_INT64_TYPE popcnt = 0;
17656 __m512i accum = _mm512_setzero_si512();
17657 const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf);
17658 const __m512i cnt = _mm512_popcnt_epi64(val);
17659 accum = _mm512_add_epi64(accum, cnt);
17660 popcnt = _mm512_reduce_add_epi64(accum);
17661 /* return computed value, to prevent the above being optimized away */
17662 return popcnt == 0;
17667 if ac_fn_c_try_link
"$LINENO"; then :
17668 pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw
=yes
17670 pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw
=no
17672 rm -f core conftest.err conftest.
$ac_objext \
17673 conftest
$ac_exeext conftest.
$ac_ext
17674 CFLAGS
="$pgac_save_CFLAGS"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" >&5
17677 $as_echo "$pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" >&6; }
17678 if test x
"$pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" = x
"yes"; then
17679 CFLAGS_POPCNT
="-mavx512vpopcntdq -mavx512bw"
17680 pgac_avx512_popcnt_intrinsics
=yes
17684 if test x
"$pgac_avx512_popcnt_intrinsics" = x
"yes"; then
17685 PG_POPCNT_OBJS
="pg_popcount_avx512.o pg_popcount_avx512_choose.o"
17687 $as_echo "#define USE_AVX512_POPCNT_WITH_RUNTIME_CHECK 1" >>confdefs.h
17694 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17696 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17697 # with the default compiler flags. If not, check if adding the -msse4.2
17698 # flag helps. CFLAGS_CRC is set to -msse4.2 if that's required.
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17700 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17701 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17702 $as_echo_n "(cached) " >&6
17704 pgac_save_CFLAGS
=$CFLAGS
17705 CFLAGS
="$pgac_save_CFLAGS "
17706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 #include <nmmintrin.h>
17712 unsigned int crc = 0;
17713 crc = _mm_crc32_u8(crc, 0);
17714 crc = _mm_crc32_u32(crc, 0);
17715 /* return computed value, to prevent the above being optimized away */
17721 if ac_fn_c_try_link
"$LINENO"; then :
17722 pgac_cv_sse42_crc32_intrinsics_
=yes
17724 pgac_cv_sse42_crc32_intrinsics_
=no
17726 rm -f core conftest.err conftest.
$ac_objext \
17727 conftest
$ac_exeext conftest.
$ac_ext
17728 CFLAGS
="$pgac_save_CFLAGS"
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17731 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17732 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17734 pgac_sse42_crc32_intrinsics
=yes
17737 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17739 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17740 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17741 $as_echo_n "(cached) " >&6
17743 pgac_save_CFLAGS
=$CFLAGS
17744 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747 #include <nmmintrin.h>
17751 unsigned int crc = 0;
17752 crc = _mm_crc32_u8(crc, 0);
17753 crc = _mm_crc32_u32(crc, 0);
17754 /* return computed value, to prevent the above being optimized away */
17760 if ac_fn_c_try_link
"$LINENO"; then :
17761 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17763 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17765 rm -f core conftest.err conftest.
$ac_objext \
17766 conftest
$ac_exeext conftest.
$ac_ext
17767 CFLAGS
="$pgac_save_CFLAGS"
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17770 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17771 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
17772 CFLAGS_CRC
="-msse4.2"
17773 pgac_sse42_crc32_intrinsics
=yes
17778 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17779 # define __SSE4_2__ in that case.
17780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17781 /* end confdefs.h. */
17788 #error __SSE4_2__ not defined
17795 if ac_fn_c_try_compile
"$LINENO"; then :
17798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17800 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17802 # First check if __crc32c* intrinsics can be used with the default compiler
17803 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17804 # CFLAGS_CRC is set if the extra flag is required.
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17806 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17807 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
17808 $as_echo_n "(cached) " >&6
17810 pgac_save_CFLAGS
=$CFLAGS
17811 CFLAGS
="$pgac_save_CFLAGS "
17812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814 #include <arm_acle.h>
17818 unsigned int crc = 0;
17819 crc = __crc32cb(crc, 0);
17820 crc = __crc32ch(crc, 0);
17821 crc = __crc32cw(crc, 0);
17822 crc = __crc32cd(crc, 0);
17823 /* return computed value, to prevent the above being optimized away */
17829 if ac_fn_c_try_link
"$LINENO"; then :
17830 pgac_cv_armv8_crc32c_intrinsics_
=yes
17832 pgac_cv_armv8_crc32c_intrinsics_
=no
17834 rm -f core conftest.err conftest.
$ac_objext \
17835 conftest
$ac_exeext conftest.
$ac_ext
17836 CFLAGS
="$pgac_save_CFLAGS"
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17839 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17840 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
17842 pgac_armv8_crc32c_intrinsics
=yes
17845 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17847 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17848 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
17849 $as_echo_n "(cached) " >&6
17851 pgac_save_CFLAGS
=$CFLAGS
17852 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
17853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 #include <arm_acle.h>
17859 unsigned int crc = 0;
17860 crc = __crc32cb(crc, 0);
17861 crc = __crc32ch(crc, 0);
17862 crc = __crc32cw(crc, 0);
17863 crc = __crc32cd(crc, 0);
17864 /* return computed value, to prevent the above being optimized away */
17870 if ac_fn_c_try_link
"$LINENO"; then :
17871 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
17873 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
17875 rm -f core conftest.err conftest.
$ac_objext \
17876 conftest
$ac_exeext conftest.
$ac_ext
17877 CFLAGS
="$pgac_save_CFLAGS"
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17880 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17881 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
17882 CFLAGS_CRC
="-march=armv8-a+crc"
17883 pgac_armv8_crc32c_intrinsics
=yes
17888 # Check for LoongArch CRC intrinsics to do CRC calculations.
17890 # Check if __builtin_loongarch_crcc_* intrinsics can be used
17891 # with the default compiler flags.
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w" >&5
17893 $as_echo_n "checking for __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w... " >&6; }
17894 if ${pgac_cv_loongarch_crc32c_intrinsics+:} false
; then :
17895 $as_echo_n "(cached) " >&6
17897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17903 unsigned int crc = 0;
17904 crc = __builtin_loongarch_crcc_w_b_w(0, crc);
17905 crc = __builtin_loongarch_crcc_w_h_w(0, crc);
17906 crc = __builtin_loongarch_crcc_w_w_w(0, crc);
17907 crc = __builtin_loongarch_crcc_w_d_w(0, crc);
17908 /* return computed value, to prevent the above being optimized away */
17914 if ac_fn_c_try_link
"$LINENO"; then :
17915 pgac_cv_loongarch_crc32c_intrinsics
=yes
17917 pgac_cv_loongarch_crc32c_intrinsics
=no
17919 rm -f core conftest.err conftest.
$ac_objext \
17920 conftest
$ac_exeext conftest.
$ac_ext
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_loongarch_crc32c_intrinsics" >&5
17923 $as_echo "$pgac_cv_loongarch_crc32c_intrinsics" >&6; }
17924 if test x
"$pgac_cv_loongarch_crc32c_intrinsics" = x
"yes"; then
17925 pgac_loongarch_crc32c_intrinsics
=yes
17931 # Select CRC-32C implementation.
17933 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17934 # use the special CRC instructions for calculating CRC-32C. If we're not
17935 # targeting such a processor, but we can nevertheless produce code that uses
17936 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17937 # implementations and select which one to use at runtime, depending on whether
17938 # SSE 4.2 is supported by the processor we're running on.
17940 # Similarly, if we are targeting an ARM processor that has the CRC
17941 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17942 # we're not targeting such a processor, but can nevertheless produce code that
17943 # uses the CRC instructions, compile both, and select at runtime.
17945 # You can skip the runtime check by setting the appropriate USE_*_CRC32 flag to 1
17946 # in the template or configure command line.
17948 # If we are targeting a LoongArch processor, CRC instructions are
17949 # always available (at least on 64 bit), so no runtime check is needed.
17950 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
"" && test x
"$USE_LOONGARCH_CRC32C" = x
""; then
17951 # Use Intel SSE 4.2 if available.
17952 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
17955 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17956 # the runtime check.
17957 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
17958 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
17960 # Use ARM CRC Extension if available.
17961 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_CRC" = x
""; then
17964 # ARM CRC Extension, with runtime check?
17965 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
17966 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
17968 # LoongArch CRCC instructions.
17969 if test x
"$pgac_loongarch_crc32c_intrinsics" = x
"yes"; then
17970 USE_LOONGARCH_CRC32C
=1
17972 # fall back to slicing-by-8 algorithm, which doesn't require any
17973 # special CPU support.
17974 USE_SLICING_BY_8_CRC32C
=1
17982 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17984 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17985 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
17987 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17989 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17991 $as_echo "SSE 4.2" >&6; }
17993 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17995 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17997 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17999 $as_echo "SSE 4.2 with runtime check" >&6; }
18001 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
18003 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
18005 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18007 $as_echo "ARMv8 CRC instructions" >&6; }
18009 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18011 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18013 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18015 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18017 if test x
"$USE_LOONGARCH_CRC32C" = x
"1"; then
18019 $as_echo "#define USE_LOONGARCH_CRC32C 1" >>confdefs.h
18021 PG_CRC32C_OBJS
="pg_crc32c_loongarch.o"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LoongArch CRCC instructions" >&5
18023 $as_echo "LoongArch CRCC instructions" >&6; }
18026 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18028 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18030 $as_echo "slicing-by-8" >&6; }
18039 # Select semaphore implementation type.
18040 if test "$PORTNAME" != "win32"; then
18041 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18042 # Need sem_open for this
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18044 $as_echo_n "checking for library containing sem_open... " >&6; }
18045 if ${ac_cv_search_sem_open+:} false
; then :
18046 $as_echo_n "(cached) " >&6
18048 ac_func_search_save_LIBS
=$LIBS
18049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18062 return sem_open ();
18067 for ac_lib
in '' rt pthread
; do
18068 if test -z "$ac_lib"; then
18069 ac_res
="none required"
18072 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18074 if ac_fn_c_try_link
"$LINENO"; then :
18075 ac_cv_search_sem_open
=$ac_res
18077 rm -f core conftest.err conftest.
$ac_objext \
18079 if ${ac_cv_search_sem_open+:} false
; then :
18083 if ${ac_cv_search_sem_open+:} false
; then :
18086 ac_cv_search_sem_open
=no
18088 rm conftest.
$ac_ext
18089 LIBS
=$ac_func_search_save_LIBS
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18092 $as_echo "$ac_cv_search_sem_open" >&6; }
18093 ac_res
=$ac_cv_search_sem_open
18094 if test "$ac_res" != no
; then :
18095 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18096 USE_NAMED_POSIX_SEMAPHORES
=1
18100 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18101 # Need sem_init for this
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18103 $as_echo_n "checking for library containing sem_init... " >&6; }
18104 if ${ac_cv_search_sem_init+:} false
; then :
18105 $as_echo_n "(cached) " >&6
18107 ac_func_search_save_LIBS
=$LIBS
18108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18111 /* Override any GCC internal prototype to avoid an error.
18112 Use char because int might match the return type of a GCC
18113 builtin and then its argument prototype would still apply. */
18121 return sem_init ();
18126 for ac_lib
in '' rt pthread
; do
18127 if test -z "$ac_lib"; then
18128 ac_res
="none required"
18131 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18133 if ac_fn_c_try_link
"$LINENO"; then :
18134 ac_cv_search_sem_init
=$ac_res
18136 rm -f core conftest.err conftest.
$ac_objext \
18138 if ${ac_cv_search_sem_init+:} false
; then :
18142 if ${ac_cv_search_sem_init+:} false
; then :
18145 ac_cv_search_sem_init
=no
18147 rm conftest.
$ac_ext
18148 LIBS
=$ac_func_search_save_LIBS
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18151 $as_echo "$ac_cv_search_sem_init" >&6; }
18152 ac_res
=$ac_cv_search_sem_init
18153 if test "$ac_res" != no
; then :
18154 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18155 USE_UNNAMED_POSIX_SEMAPHORES
=1
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18160 $as_echo_n "checking which semaphore API to use... " >&6; }
18161 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18163 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18165 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18166 sematype
="named POSIX"
18168 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18170 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18172 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18173 sematype
="unnamed POSIX"
18176 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18178 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18179 sematype
="System V"
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18183 $as_echo "$sematype" >&6; }
18186 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18188 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18192 # Select shared-memory implementation type.
18193 if test "$PORTNAME" != "win32"; then
18195 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18197 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18200 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18202 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18205 # Select random number source. If a TLS library is used then it will be the
18206 # first choice, else the native platform sources (Windows API or /dev/urandom)
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18209 $as_echo_n "checking which random number source to use... " >&6; }
18210 if test x
"$with_ssl" = x
"openssl" ; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18212 $as_echo "OpenSSL" >&6; }
18213 elif test x
"$PORTNAME" = x
"win32" ; then
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18215 $as_echo "Windows native" >&6; }
18216 elif test x
"$cross_compiling" = x
"yes"; then
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming /dev/urandom" >&5
18218 $as_echo "assuming /dev/urandom" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18221 $as_echo "/dev/urandom" >&6; }
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18223 $as_echo_n "checking for /dev/urandom... " >&6; }
18224 if ${ac_cv_file__dev_urandom+:} false
; then :
18225 $as_echo_n "(cached) " >&6
18227 test "$cross_compiling" = yes &&
18228 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18229 if test -r "/dev/urandom"; then
18230 ac_cv_file__dev_urandom
=yes
18232 ac_cv_file__dev_urandom
=no
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18236 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18237 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18242 if test x
"$ac_cv_file__dev_urandom" = x
"no" ; then
18244 no source of strong random numbers was found
18245 PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
18249 # If not set in template file, set bytes to use libc memset()
18250 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18251 MEMSET_LOOP_LIMIT
=1024
18254 cat >>confdefs.h
<<_ACEOF
18255 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18260 if test "$enable_nls" = yes ; then
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18263 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18264 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18265 $as_echo_n "(cached) " >&6
18267 ac_func_search_save_LIBS
=$LIBS
18268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 /* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18277 char bind_textdomain_codeset ();
18281 return bind_textdomain_codeset ();
18286 for ac_lib
in '' intl
; do
18287 if test -z "$ac_lib"; then
18288 ac_res
="none required"
18291 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18293 if ac_fn_c_try_link
"$LINENO"; then :
18294 ac_cv_search_bind_textdomain_codeset
=$ac_res
18296 rm -f core conftest.err conftest.
$ac_objext \
18298 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18302 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18305 ac_cv_search_bind_textdomain_codeset
=no
18307 rm conftest.
$ac_ext
18308 LIBS
=$ac_func_search_save_LIBS
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18311 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18312 ac_res
=$ac_cv_search_bind_textdomain_codeset
18313 if test "$ac_res" != no
; then :
18314 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18317 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18320 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18321 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18324 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18328 if test -z "$MSGFMT"; then
18329 for ac_prog
in msgfmt
18331 # Extract the first word of "$ac_prog", so it can be a program name with args.
18332 set dummy
$ac_prog; ac_word
=$2
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18334 $as_echo_n "checking for $ac_word... " >&6; }
18335 if ${ac_cv_path_MSGFMT+:} false
; then :
18336 $as_echo_n "(cached) " >&6
18340 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18344 for as_dir
in $PATH
18347 test -z "$as_dir" && as_dir
=.
18348 for ac_exec_ext
in '' $ac_executable_extensions; do
18349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18350 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18361 MSGFMT
=$ac_cv_path_MSGFMT
18362 if test -n "$MSGFMT"; then
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18364 $as_echo "$MSGFMT" >&6; }
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18367 $as_echo "no" >&6; }
18371 test -n "$MSGFMT" && break
18375 # Report the value of MSGFMT in configure's output in all cases.
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18377 $as_echo_n "checking for MSGFMT... " >&6; }
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18379 $as_echo "$MSGFMT" >&6; }
18382 if test -z "$MSGFMT"; then
18383 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18386 $as_echo_n "checking for msgfmt flags... " >&6; }
18387 if ${pgac_cv_msgfmt_flags+:} false
; then :
18388 $as_echo_n "(cached) " >&6
18390 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18391 pgac_cv_msgfmt_flags
=-c
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18395 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18396 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18398 if test -z "$MSGMERGE"; then
18399 for ac_prog
in msgmerge
18401 # Extract the first word of "$ac_prog", so it can be a program name with args.
18402 set dummy
$ac_prog; ac_word
=$2
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18404 $as_echo_n "checking for $ac_word... " >&6; }
18405 if ${ac_cv_path_MSGMERGE+:} false
; then :
18406 $as_echo_n "(cached) " >&6
18410 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18414 for as_dir
in $PATH
18417 test -z "$as_dir" && as_dir
=.
18418 for ac_exec_ext
in '' $ac_executable_extensions; do
18419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18420 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18431 MSGMERGE
=$ac_cv_path_MSGMERGE
18432 if test -n "$MSGMERGE"; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18434 $as_echo "$MSGMERGE" >&6; }
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437 $as_echo "no" >&6; }
18441 test -n "$MSGMERGE" && break
18445 # Report the value of MSGMERGE in configure's output in all cases.
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18447 $as_echo_n "checking for MSGMERGE... " >&6; }
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18449 $as_echo "$MSGMERGE" >&6; }
18452 if test -z "$XGETTEXT"; then
18453 for ac_prog
in xgettext
18455 # Extract the first word of "$ac_prog", so it can be a program name with args.
18456 set dummy
$ac_prog; ac_word
=$2
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18458 $as_echo_n "checking for $ac_word... " >&6; }
18459 if ${ac_cv_path_XGETTEXT+:} false
; then :
18460 $as_echo_n "(cached) " >&6
18464 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18468 for as_dir
in $PATH
18471 test -z "$as_dir" && as_dir
=.
18472 for ac_exec_ext
in '' $ac_executable_extensions; do
18473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18474 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18485 XGETTEXT
=$ac_cv_path_XGETTEXT
18486 if test -n "$XGETTEXT"; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18488 $as_echo "$XGETTEXT" >&6; }
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491 $as_echo "no" >&6; }
18495 test -n "$XGETTEXT" && break
18499 # Report the value of XGETTEXT in configure's output in all cases.
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18501 $as_echo_n "checking for XGETTEXT... " >&6; }
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18503 $as_echo "$XGETTEXT" >&6; }
18509 # Check for Tcl configuration script tclConfig.sh
18510 if test "$with_tcl" = yes; then
18511 if test -z "$TCLSH"; then
18512 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18514 # Extract the first word of "$ac_prog", so it can be a program name with args.
18515 set dummy
$ac_prog; ac_word
=$2
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18517 $as_echo_n "checking for $ac_word... " >&6; }
18518 if ${ac_cv_path_TCLSH+:} false
; then :
18519 $as_echo_n "(cached) " >&6
18523 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18527 for as_dir
in $PATH
18530 test -z "$as_dir" && as_dir
=.
18531 for ac_exec_ext
in '' $ac_executable_extensions; do
18532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18533 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18544 TCLSH
=$ac_cv_path_TCLSH
18545 if test -n "$TCLSH"; then
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18547 $as_echo "$TCLSH" >&6; }
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550 $as_echo "no" >&6; }
18554 test -n "$TCLSH" && break
18558 # Report the value of TCLSH in configure's output in all cases.
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18560 $as_echo_n "checking for TCLSH... " >&6; }
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18562 $as_echo "$TCLSH" >&6; }
18565 if test x
"$TCLSH" = x
""; then
18566 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18570 $as_echo_n "checking for tclConfig.sh... " >&6; }
18571 # Let user override test
18572 if test -z "$TCL_CONFIG_SH"; then
18573 pgac_test_dirs
="$with_tclconfig"
18575 set X
$pgac_test_dirs; shift
18576 if test $# -eq 0; then
18577 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18578 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18579 # On newer macOS, $auto_path frequently doesn't include the place
18580 # where tclConfig.sh actually lives. Append that to the end, so as not
18581 # to break cases where a non-default Tcl installation is being used.
18582 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18583 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18585 set X
$pgac_test_dirs; shift
18589 if test -r "$pgac_dir/tclConfig.sh"; then
18590 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18596 if test -z "$TCL_CONFIG_SH"; then
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18598 $as_echo "no" >&6; }
18599 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18602 $as_echo "$TCL_CONFIG_SH" >&6; }
18608 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18609 eval TCL_LIBS
=\"$TCL_LIBS\"
18610 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18611 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18613 if test "$TCL_SHARED_BUILD" != 1; then
18614 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18615 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18617 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18618 ac_save_CPPFLAGS
=$CPPFLAGS
18619 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18620 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18621 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18624 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18628 CPPFLAGS
=$ac_save_CPPFLAGS
18631 # check for <perl.h>
18632 if test "$with_perl" = yes; then
18633 ac_save_CPPFLAGS
=$CPPFLAGS
18634 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18635 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18637 if test "x$ac_cv_header_perl_h" = xyes
; then :
18640 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18644 # While we're at it, check that we can link to libperl.
18645 # On most platforms, if perl.h is there then libperl.so will be too, but at
18646 # this writing Debian packages them separately. There is no known reason to
18647 # waste cycles on separate probes for the Tcl or Python libraries, though.
18648 # On some Red Hat platforms, the link attempt can fail if we don't use
18649 # CFLAGS_SL while building the test program.
18650 ac_save_CFLAGS
=$CFLAGS
18651 CFLAGS
="$CFLAGS $CFLAGS_SL"
18652 pgac_save_LIBS
=$LIBS
18653 LIBS
="$perl_embed_ldflags"
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18655 $as_echo_n "checking for libperl... " >&6; }
18656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18657 /* end confdefs.h. */
18659 #include <EXTERN.h>
18670 if ac_fn_c_try_link
"$LINENO"; then :
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18672 $as_echo "yes" >&6; }
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
18676 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18678 rm -f core conftest.err conftest.
$ac_objext \
18679 conftest
$ac_exeext conftest.
$ac_ext
18680 LIBS
=$pgac_save_LIBS
18681 CFLAGS
=$ac_save_CFLAGS
18682 CPPFLAGS
=$ac_save_CPPFLAGS
18685 # check for <Python.h>
18686 if test "$with_python" = yes; then
18687 ac_save_CPPFLAGS
=$CPPFLAGS
18688 CPPFLAGS
="$python_includespec $CPPFLAGS"
18689 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18690 if test "x$ac_cv_header_Python_h" = xyes
; then :
18693 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18697 CPPFLAGS
=$ac_save_CPPFLAGS
18701 # Check for documentation-building tools
18703 if test -z "$XMLLINT"; then
18704 for ac_prog
in xmllint
18706 # Extract the first word of "$ac_prog", so it can be a program name with args.
18707 set dummy
$ac_prog; ac_word
=$2
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18709 $as_echo_n "checking for $ac_word... " >&6; }
18710 if ${ac_cv_path_XMLLINT+:} false
; then :
18711 $as_echo_n "(cached) " >&6
18715 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18719 for as_dir
in $PATH
18722 test -z "$as_dir" && as_dir
=.
18723 for ac_exec_ext
in '' $ac_executable_extensions; do
18724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18725 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18736 XMLLINT
=$ac_cv_path_XMLLINT
18737 if test -n "$XMLLINT"; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18739 $as_echo "$XMLLINT" >&6; }
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742 $as_echo "no" >&6; }
18746 test -n "$XMLLINT" && break
18750 # Report the value of XMLLINT in configure's output in all cases.
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18752 $as_echo_n "checking for XMLLINT... " >&6; }
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18754 $as_echo "$XMLLINT" >&6; }
18757 if test -z "$XSLTPROC"; then
18758 for ac_prog
in xsltproc
18760 # Extract the first word of "$ac_prog", so it can be a program name with args.
18761 set dummy
$ac_prog; ac_word
=$2
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18763 $as_echo_n "checking for $ac_word... " >&6; }
18764 if ${ac_cv_path_XSLTPROC+:} false
; then :
18765 $as_echo_n "(cached) " >&6
18769 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18773 for as_dir
in $PATH
18776 test -z "$as_dir" && as_dir
=.
18777 for ac_exec_ext
in '' $ac_executable_extensions; do
18778 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18779 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18790 XSLTPROC
=$ac_cv_path_XSLTPROC
18791 if test -n "$XSLTPROC"; then
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18793 $as_echo "$XSLTPROC" >&6; }
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18796 $as_echo "no" >&6; }
18800 test -n "$XSLTPROC" && break
18804 # Report the value of XSLTPROC in configure's output in all cases.
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18806 $as_echo_n "checking for XSLTPROC... " >&6; }
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18808 $as_echo "$XSLTPROC" >&6; }
18811 if test -z "$FOP"; then
18814 # Extract the first word of "$ac_prog", so it can be a program name with args.
18815 set dummy
$ac_prog; ac_word
=$2
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18817 $as_echo_n "checking for $ac_word... " >&6; }
18818 if ${ac_cv_path_FOP+:} false
; then :
18819 $as_echo_n "(cached) " >&6
18823 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
18826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18827 for as_dir
in $PATH
18830 test -z "$as_dir" && as_dir
=.
18831 for ac_exec_ext
in '' $ac_executable_extensions; do
18832 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18833 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
18834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18844 FOP
=$ac_cv_path_FOP
18845 if test -n "$FOP"; then
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18847 $as_echo "$FOP" >&6; }
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 $as_echo "no" >&6; }
18854 test -n "$FOP" && break
18858 # Report the value of FOP in configure's output in all cases.
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18860 $as_echo_n "checking for FOP... " >&6; }
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18862 $as_echo "$FOP" >&6; }
18865 if test -z "$DBTOEPUB"; then
18866 for ac_prog
in dbtoepub
18868 # Extract the first word of "$ac_prog", so it can be a program name with args.
18869 set dummy
$ac_prog; ac_word
=$2
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18871 $as_echo_n "checking for $ac_word... " >&6; }
18872 if ${ac_cv_path_DBTOEPUB+:} false
; then :
18873 $as_echo_n "(cached) " >&6
18877 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
18880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18881 for as_dir
in $PATH
18884 test -z "$as_dir" && as_dir
=.
18885 for ac_exec_ext
in '' $ac_executable_extensions; do
18886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18887 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
18888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18898 DBTOEPUB
=$ac_cv_path_DBTOEPUB
18899 if test -n "$DBTOEPUB"; then
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18901 $as_echo "$DBTOEPUB" >&6; }
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18904 $as_echo "no" >&6; }
18908 test -n "$DBTOEPUB" && break
18912 # Report the value of DBTOEPUB in configure's output in all cases.
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18914 $as_echo_n "checking for DBTOEPUB... " >&6; }
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18916 $as_echo "$DBTOEPUB" >&6; }
18921 # Check for test tools
18923 if test "$enable_tap_tests" = yes; then
18924 # Make sure we know where prove is.
18925 if test -z "$PROVE"; then
18926 for ac_prog
in prove
18928 # Extract the first word of "$ac_prog", so it can be a program name with args.
18929 set dummy
$ac_prog; ac_word
=$2
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18931 $as_echo_n "checking for $ac_word... " >&6; }
18932 if ${ac_cv_path_PROVE+:} false
; then :
18933 $as_echo_n "(cached) " >&6
18937 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
18940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18941 for as_dir
in $PATH
18944 test -z "$as_dir" && as_dir
=.
18945 for ac_exec_ext
in '' $ac_executable_extensions; do
18946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18947 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
18948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958 PROVE
=$ac_cv_path_PROVE
18959 if test -n "$PROVE"; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18961 $as_echo "$PROVE" >&6; }
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18964 $as_echo "no" >&6; }
18968 test -n "$PROVE" && break
18972 # Report the value of PROVE in configure's output in all cases.
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18974 $as_echo_n "checking for PROVE... " >&6; }
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18976 $as_echo "$PROVE" >&6; }
18979 if test -z "$PROVE"; then
18980 as_fn_error $?
"prove not found" "$LINENO" 5
18982 # Check for necessary Perl modules. You might think we should use
18983 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
18984 # installation than perl, eg on MSys, so we have to check using prove.
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
18986 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
18987 __CONFIG_HOST_OS__
=$host_os; export __CONFIG_HOST_OS__
18988 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
18989 if test $?
-eq 0; then
18990 # log the module version details, but don't show them interactively
18991 echo "$modulestderr" >&5
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18993 $as_echo "yes" >&6; }
18995 # on failure, though, show the results to the user
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
18997 $as_echo "$modulestderr" >&6; }
18998 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
19002 # If compiler will take -Wl,--as-needed (or various platform-specific
19003 # spellings thereof) then add that to LDFLAGS. This is much easier than
19004 # trying to filter LIBS to the minimum for each executable.
19005 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19006 # libreadline; therefore we postpone testing it until we know what library
19007 # dependencies readline has. The test code will try to link with $LIBS.
19008 if test "$with_readline" = yes; then
19009 link_test_func
=readline
19011 link_test_func
=exit
19014 if test "$PORTNAME" = "darwin"; then
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS" >&5
19016 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS... " >&6; }
19017 if ${pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs+:} false
; then :
19018 $as_echo_n "(cached) " >&6
19020 pgac_save_LDFLAGS
=$LDFLAGS
19021 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19022 if test "$cross_compiling" = yes; then :
19023 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
="assuming no"
19025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19027 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19036 if ac_fn_c_try_run
"$LINENO"; then :
19037 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=yes
19039 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=no
19041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19045 LDFLAGS
="$pgac_save_LDFLAGS"
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&5
19048 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&6; }
19049 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" = x
"yes"; then
19050 LDFLAGS
="${LDFLAGS} -Wl,-dead_strip_dylibs"
19054 elif test "$PORTNAME" = "openbsd"; then
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS" >&5
19056 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS... " >&6; }
19057 if ${pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic+:} false
; then :
19058 $as_echo_n "(cached) " >&6
19060 pgac_save_LDFLAGS
=$LDFLAGS
19061 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19062 if test "$cross_compiling" = yes; then :
19063 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
="assuming no"
19065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19067 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19076 if ac_fn_c_try_run
"$LINENO"; then :
19077 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=yes
19079 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=no
19081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19085 LDFLAGS
="$pgac_save_LDFLAGS"
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&5
19088 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&6; }
19089 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" = x
"yes"; then
19090 LDFLAGS
="${LDFLAGS} -Wl,-Bdynamic"
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed, for LDFLAGS" >&5
19096 $as_echo_n "checking whether $CC supports -Wl,--as-needed, for LDFLAGS... " >&6; }
19097 if ${pgac_cv_prog_cc_LDFLAGS__Wl___as_needed+:} false
; then :
19098 $as_echo_n "(cached) " >&6
19100 pgac_save_LDFLAGS
=$LDFLAGS
19101 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19102 if test "$cross_compiling" = yes; then :
19103 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
="assuming no"
19105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19107 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19116 if ac_fn_c_try_run
"$LINENO"; then :
19117 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=yes
19119 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=no
19121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19125 LDFLAGS
="$pgac_save_LDFLAGS"
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&5
19128 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&6; }
19129 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" = x
"yes"; then
19130 LDFLAGS
="${LDFLAGS} -Wl,--as-needed"
19136 # For linkers that understand --export-dynamic, add that to the LDFLAGS_EX_BE
19137 # (backend specific ldflags). One some platforms this will always fail (e.g.,
19138 # windows), but on others it depends on the choice of linker (e.g., solaris).
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE" >&5
19140 $as_echo_n "checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... " >&6; }
19141 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic+:} false
; then :
19142 $as_echo_n "(cached) " >&6
19144 pgac_save_LDFLAGS
=$LDFLAGS
19145 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--export-dynamic"
19146 if test "$cross_compiling" = yes; then :
19147 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
="assuming no"
19149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h. */
19151 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19160 if ac_fn_c_try_run
"$LINENO"; then :
19161 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=yes
19163 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=no
19165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19166 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19169 LDFLAGS
="$pgac_save_LDFLAGS"
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&5
19172 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&6; }
19173 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" = x
"yes"; then
19174 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,--export-dynamic"
19179 # Create compiler version string
19180 if test x
"$GCC" = x
"yes" ; then
19181 cc_string
=`${CC} --version | sed q`
19182 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19183 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19184 cc_string
=`${CC} -V 2>&1 | sed q`
19190 cat >>confdefs.h
<<_ACEOF
19191 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19195 # Supply a numeric version string for use by 3rd party add-ons
19196 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19197 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
19198 $AWK '{printf "%d
%04d
", $1, $2}'`"
19200 cat >>confdefs.h
<<_ACEOF
19201 #define PG_VERSION_NUM $PG_VERSION_NUM
19206 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19207 # literally, so that it's possible to override it at build time using
19208 # a command like "make ... PG_SYSROOT=path". This has to be done after
19209 # we've finished all configure checks that depend on CPPFLAGS.
19210 # The same for LDFLAGS, too.
19211 if test x
"$PG_SYSROOT" != x
; then
19212 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19213 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19218 # Begin output steps
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19221 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19223 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19225 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19227 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19228 # Currently only used when LLVM is used
19229 if test "$with_llvm" = yes ; then
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19231 $as_echo "$as_me: using CXX=$CXX" >&6;}
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19233 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19235 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19237 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19239 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19242 # prepare build tree if outside source tree
19243 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19244 # Note 2: /bin/pwd might be better than shell's built-in at getting
19245 # a symlink-free name.
19246 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19250 if test "$no_create" != yes; then
19251 $as_echo_n "preparing build tree... " >&6
19252 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19253 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19254 || as_fn_error $?
"failed" "$LINENO" 5
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19256 $as_echo "done" >&6; }
19262 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19265 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}"
19268 if test "$PORTNAME" = "win32"; then
19269 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19273 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19276 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19279 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19282 cat >confcache
<<\_ACEOF
19283 # This file is a shell script that caches the results of configure
19284 # tests run on this system so they can be shared between configure
19285 # scripts and configure runs, see configure's option --config-cache.
19286 # It is not useful on other systems. If it contains results you don't
19287 # want to keep, you may remove or edit it.
19289 # config.status only pays attention to the cache file if you give it
19290 # the --recheck option to rerun configure.
19292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19294 # following values.
19298 # The following way of writing the cache mishandles newlines in values,
19299 # but we know of no workaround that is simple, portable, and efficient.
19300 # So, we kill variables containing newlines.
19301 # Ultrix sh set writes to stderr and can't be redirected directly,
19302 # and sets the high bit in the cache file unless we assign to the vars.
19304 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19305 eval ac_val
=\$
$ac_var
19309 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19313 _ | IFS | as_nl
) ;; #(
19314 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19315 *) { eval $ac_var=; unset $ac_var;} ;;
19321 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19322 *${as_nl}ac_space
=\
*)
19323 # `set' does not quote correctly, so add quotes: double-quote
19324 # substitution turns \\\\ into \\, and sed turns \\ into \.
19327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19330 # `set' quotes correctly as required by POSIX, so do not add quotes.
19331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19340 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19342 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19344 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19345 if test -w "$cache_file"; then
19346 if test "x$cache_file" != "x/dev/null"; then
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19348 $as_echo "$as_me: updating cache $cache_file" >&6;}
19349 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19350 cat confcache
>"$cache_file"
19352 case $cache_file in #(
19354 mv -f confcache
"$cache_file"$$
&&
19355 mv -f "$cache_file"$$
"$cache_file" ;; #(
19357 mv -f confcache
"$cache_file" ;;
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19363 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19368 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19369 # Let make expand exec_prefix.
19370 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19372 DEFS
=-DHAVE_CONFIG_H
19377 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19378 # 1. Remove the extension, and $U if already installed.
19379 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19380 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19382 # will be set to the directory where LIBOBJS objects are built.
19383 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19384 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19386 LIBOBJS
=$ac_libobjs
19388 LTLIBOBJS
=$ac_ltlibobjs
19393 : "${CONFIG_STATUS=./config.status}"
19395 ac_clean_files_save
=$ac_clean_files
19396 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19398 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19400 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19402 # Generated by $as_me.
19403 # Run this file to recreate the current configuration.
19404 # Compiler output produced by configure, useful for debugging
19405 # configure, is in config.log if it exists.
19408 ac_cs_recheck=false
19411 SHELL=\${CONFIG_SHELL-$SHELL}
19414 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19415 ## -------------------- ##
19416 ## M4sh Initialization. ##
19417 ## -------------------- ##
19419 # Be more Bourne compatible
19420 DUALCASE
=1; export DUALCASE
# for MKS sh
19421 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19425 # is contrary to our usage. Disable this feature.
19426 alias -g '${1+"$@"}'='"$@"'
19427 setopt NO_GLOB_SUBST
19429 case `(set -o) 2>/dev/null` in #(
19441 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19442 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19445 # Prefer a ksh shell builtin over an external printf program on Solaris,
19446 # but without wasting forks for bash or zsh.
19447 if test -z "$BASH_VERSION$ZSH_VERSION" \
19448 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19449 as_echo='print
-r --'
19450 as_echo_n='print
-rn --'
19451 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19452 as_echo='printf %s
\n'
19453 as_echo_n='printf %s
'
19455 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19456 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19457 as_echo_n='/usr
/ucb
/echo -n'
19459 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19460 as_echo_n_body='eval
19464 expr "X$arg" : "X\\(.*\\)$as_nl";
19465 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19467 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19469 export as_echo_n_body
19470 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19472 export as_echo_body
19473 as_echo='sh
-c $as_echo_body as_echo
'
19476 # The user is always right.
19477 if test "${PATH_SEPARATOR+set}" != set; then
19479 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19480 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19487 # We need space, tab and new line, in precisely that order. Quoting is
19488 # there to prevent editors from complaining about space-tab.
19489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19490 # splitting by setting IFS to empty value.)
19493 # Find who we are. Look in the path if we contain no directory separator.
19496 *[\\/]* ) as_myself=$0 ;;
19497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19498 for as_dir in $PATH
19501 test -z "$as_dir" && as_dir=.
19502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19508 # We did not find ourselves, most probably we were run as `sh COMMAND'
19509 # in which case we are not to be found in the path.
19510 if test "x$as_myself" = x
; then
19513 if test ! -f "$as_myself"; then
19514 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19518 # Unset variables that we do not need and which cause bugs (e.g. in
19519 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19520 # suppresses any "Segmentation fault" message there. '((' could
19521 # trigger a bug in pdksh 5.2.14.
19522 for as_var
in BASH_ENV ENV MAIL MAILPATH
19523 do eval test x\
${$as_var+set} = xset \
19524 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19537 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19540 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19541 # ----------------------------------------
19542 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19543 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19544 # script with STATUS, using 1 if that was 0.
19547 as_status
=$1; test $as_status -eq 0 && as_status
=1
19549 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19550 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19552 $as_echo "$as_me: error: $2" >&2
19553 as_fn_exit
$as_status
19557 # as_fn_set_status STATUS
19558 # -----------------------
19559 # Set $? to STATUS, without forking.
19560 as_fn_set_status
()
19563 } # as_fn_set_status
19565 # as_fn_exit STATUS
19566 # -----------------
19567 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19571 as_fn_set_status
$1
19577 # Portably unset VAR.
19580 { eval $1=; unset $1;}
19582 as_unset
=as_fn_unset
19583 # as_fn_append VAR VALUE
19584 # ----------------------
19585 # Append the text in VALUE to the end of the definition contained in VAR. Take
19586 # advantage of any shell optimizations that allow amortized linear growth over
19587 # repeated appends, instead of the typical quadratic growth present in naive
19589 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19590 eval 'as_fn_append ()
19601 # as_fn_arith ARG...
19602 # ------------------
19603 # Perform arithmetic evaluation on the ARGs, and store the result in the
19604 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19605 # must be portable across $(()) and expr.
19606 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19607 eval 'as_fn_arith ()
19614 as_val
=`expr "$@" || test $? -eq 1`
19619 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19620 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19626 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19627 as_basename
=basename
19632 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19638 as_me
=`$as_basename -- "$0" ||
19639 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19640 X"$0" : 'X\(//\)$' \| \
19641 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19643 sed '/^.*\/\([^/][^/]*\)\/*$/{
19657 # Avoid depending upon Character Ranges.
19658 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19659 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19660 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19661 as_cr_digits
='0123456789'
19662 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19664 ECHO_C
= ECHO_N
= ECHO_T
=
19665 case `echo -n x` in #(((((
19667 case `echo 'xy\c'` in
19668 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19670 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19677 rm -f conf$$ conf$$.exe conf$$.
file
19678 if test -d conf$$.dir
; then
19679 rm -f conf$$.dir
/conf$$.
file
19682 mkdir conf$$.dir
2>/dev
/null
19684 if (echo >conf$$.
file) 2>/dev
/null
; then
19685 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19687 # ... but there are two gotchas:
19688 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19689 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19690 # In both cases, we have to default to `cp -pR'.
19691 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19693 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19701 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19702 rmdir conf$$.dir
2>/dev
/null
19707 # Create "$as_dir" as a directory, including parents if necessary.
19712 -*) as_dir
=.
/$as_dir;;
19714 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19718 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19719 *) as_qdir
=$as_dir;;
19721 as_dirs
="'$as_qdir' $as_dirs"
19722 as_dir
=`$as_dirname -- "$as_dir" ||
19723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19724 X"$as_dir" : 'X\(//\)[^/]' \| \
19725 X"$as_dir" : 'X\(//\)$' \| \
19726 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19727 $as_echo X"$as_dir" |
19728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19732 /^X\(\/\/\)[^/].*/{
19745 test -d "$as_dir" && break
19747 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19748 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19752 if mkdir
-p .
2>/dev
/null
; then
19753 as_mkdir_p
='mkdir -p "$as_dir"'
19755 test -d .
/-p && rmdir .
/-p
19760 # as_fn_executable_p FILE
19761 # -----------------------
19762 # Test if FILE is an executable regular file.
19763 as_fn_executable_p
()
19765 test -f "$1" && test -x "$1"
19766 } # as_fn_executable_p
19767 as_test_x
='test -x'
19768 as_executable_p
=as_fn_executable_p
19770 # Sed expression to map a string onto a valid CPP name.
19771 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19773 # Sed expression to map a string onto a valid variable name.
19774 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19778 ## ----------------------------------- ##
19779 ## Main body of $CONFIG_STATUS script. ##
19780 ## ----------------------------------- ##
19782 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19785 # Save the log message, to keep $0 and so on meaningful, and to
19786 # report actual input values of CONFIG_FILES etc. instead of their
19787 # values after options handling.
19789 This file was extended by PostgreSQL $as_me 17.0, which was
19790 generated by GNU Autoconf 2.69. Invocation command line was
19792 CONFIG_FILES = $CONFIG_FILES
19793 CONFIG_HEADERS = $CONFIG_HEADERS
19794 CONFIG_LINKS = $CONFIG_LINKS
19795 CONFIG_COMMANDS = $CONFIG_COMMANDS
19798 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19803 case $ac_config_files in *"
19804 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19807 case $ac_config_headers in *"
19808 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19813 # Files that config.status was made for.
19814 config_files="$ac_config_files"
19815 config_headers="$ac_config_headers"
19816 config_links="$ac_config_links"
19817 config_commands="$ac_config_commands"
19821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19823 \`$as_me' instantiates files and other configuration actions
19824 from templates according to the current configuration. Unless the files
19825 and actions are specified as TAGs, all are instantiated by default.
19827 Usage: $0 [OPTION]... [TAG]...
19829 -h, --help print this help, then exit
19830 -V, --version print version number and configuration settings, then exit
19831 --config print configuration, then exit
19832 -q, --quiet, --silent
19833 do not print progress messages
19834 -d, --debug don't remove temporary files
19835 --recheck update $as_me by reconfiguring in the same conditions
19836 --file=FILE[:TEMPLATE]
19837 instantiate the configuration file FILE
19838 --header=FILE[:TEMPLATE]
19839 instantiate the configuration header FILE
19841 Configuration files:
19844 Configuration headers:
19847 Configuration links:
19850 Configuration commands:
19853 Report bugs to <pgsql-bugs@lists.postgresql.org>.
19854 PostgreSQL home page: <https://www.postgresql.org/>."
19857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19858 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19860 PostgreSQL config.status 17.0
19861 configured by $0, generated by GNU Autoconf 2.69,
19862 with options \\"\$ac_cs_config\\"
19864 Copyright (C) 2012 Free Software Foundation, Inc.
19865 This config.status script is free software; the Free Software Foundation
19866 gives unlimited permission to copy, distribute and modify it."
19873 test -n "\$AWK" || AWK=awk
19876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19877 # The default lists apply if the user does not specify any file.
19883 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19884 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19888 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19900 # Handling of the options.
19901 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19903 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19904 $as_echo "$ac_cs_version"; exit ;;
19905 --config |
--confi |
--conf |
--con |
--co |
--c )
19906 $as_echo "$ac_cs_config"; exit ;;
19907 --debug |
--debu |
--deb |
--de |
--d |
-d )
19909 --file |
--fil |
--fi |
--f )
19912 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19913 '') as_fn_error $?
"missing file argument" ;;
19915 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19916 ac_need_defaults
=false
;;
19917 --header |
--heade |
--head |
--hea )
19920 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19922 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19923 ac_need_defaults
=false
;;
19925 # Conflict between --help and --header
19926 as_fn_error $?
"ambiguous option: \`$1'
19927 Try \`$0 --help' for more information.";;
19928 --help |
--hel |
-h )
19929 $as_echo "$ac_cs_usage"; exit ;;
19930 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19931 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19934 # This is an error.
19935 -*) as_fn_error $?
"unrecognized option: \`$1'
19936 Try \`$0 --help' for more information." ;;
19938 *) as_fn_append ac_config_targets
" $1"
19939 ac_need_defaults
=false
;;
19945 ac_configure_extra_args
=
19947 if $ac_cs_silent; then
19949 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 if \$ac_cs_recheck; then
19955 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19957 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19958 CONFIG_SHELL='$SHELL'
19959 export CONFIG_SHELL
19964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19969 ## Running $as_me. ##
19975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19980 # Handling of arguments.
19981 for ac_config_target
in $ac_config_targets
19983 case $ac_config_target in
19984 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19985 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
19986 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
19987 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19988 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19989 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19990 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19991 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
19992 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
19993 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
19994 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
19996 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20001 # If the user did not use the arguments to specify the items to instantiate,
20002 # then the envvar interface is used. Set only those that are not.
20003 # We use the long form for the default assignment because of an extremely
20004 # bizarre bug on SunOS 4.1.3.
20005 if $ac_need_defaults; then
20006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20008 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20012 # Have a temporary directory for convenience. Make it in the build tree
20013 # simply because there is no reason against having it here, and in addition,
20014 # creating and moving files from /tmp can sometimes cause problems.
20015 # Hook for its removal unless debugging.
20016 # Note that there is a small window in which the directory will not be cleaned:
20017 # after its creation but before its name has been assigned to `$tmp'.
20021 trap 'exit_status=$?
20022 : "${ac_tmp:=$tmp}"
20023 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20025 trap 'as_fn_exit 1' 1 2 13 15
20027 # Create a (secure) tmp directory for tmp files.
20030 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20034 tmp
=.
/conf$$
-$RANDOM
20035 (umask 077 && mkdir
"$tmp")
20036 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20039 # Set up the scripts for CONFIG_FILES section.
20040 # No need to generate them if there are no CONFIG_FILES.
20041 # This happens for instance with `./config.status config.h'.
20042 if test -n "$CONFIG_FILES"; then
20045 ac_cr
=`echo X | tr X '\015'`
20046 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20047 # But we know of no other shell where ac_cr would be empty at this
20048 # point, so we can use a bashism as a fallback.
20049 if test "x$ac_cr" = x
; then
20050 eval ac_cr
=\$
\'\\r
\'
20052 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20053 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20056 ac_cs_awk_cr
=$ac_cr
20059 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20064 echo "cat >conf$$subs.awk <<_ACEOF" &&
20065 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20067 } >conf$$subs.sh ||
20068 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20069 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20071 for ac_last_try in false false false false false :; do
20072 . ./conf$$subs.sh ||
20073 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20075 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20076 if test $ac_delim_n = $ac_delim_num; then
20078 elif $ac_last_try; then
20079 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20081 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20084 rm -f conf$$subs.sh
20086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20087 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20091 s/^/S["/; s
/!.
*/"]=/
20101 s/\(.\{148\}\)..*/\1/
20103 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20108 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20115 s/\(.\{148\}\)..*/\1/
20117 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20121 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20126 ' <conf$$subs.awk | sed '
20131 ' >>$CONFIG_STATUS || ac_write_fail=1
20132 rm -f conf$$subs.awk
20133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20135 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20136 for (key in S) S_is_set[key] = 1
20142 nfields = split(line, field, "@
")
20144 len = length(field[1])
20145 for (i = 2; i < nfields; i++) {
20147 keylen = length(key)
20148 if (S_is_set[key]) {
20150 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20151 len += length(value) + length(field[++i])
20162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20163 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20164 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20167 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20168 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20171 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20172 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20173 # trailing colons and then remove the whole line if VPATH becomes empty
20174 # (actually we leave an empty line to preserve line numbers).
20175 if test "x
$srcdir" = x.; then
20176 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20195 fi # test -n "$CONFIG_FILES"
20197 # Set up the scripts for CONFIG_HEADERS section.
20198 # No need to generate them if there are no CONFIG_HEADERS.
20199 # This happens for instance with `./config.status Makefile'.
20200 if test -n "$CONFIG_HEADERS"; then
20201 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20205 # Transform confdefs.h into an awk script `defines.awk', embedded as
20206 # here-document in config.status, that substitutes the proper values into
20207 # config.h.in to produce config.h.
20209 # Create a delimiter string that does not exist in confdefs.h, to ease
20210 # handling of long lines.
20212 for ac_last_try in false false :; do
20213 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20214 if test -z "$ac_tt"; then
20216 elif $ac_last_try; then
20217 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20219 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20223 # For the awk script, D is an array of macro values keyed by name,
20224 # likewise P contains macro parameters if any. Preserve backslash
20225 # newline sequences.
20227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20229 s/.\{148\}/&'"$ac_delim"'/g
20232 s/^[ ]*#[ ]*define[ ][ ]*/ /
20239 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20241 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20246 D["\
1"]=" \
3\\\\\\n
"\\/p
20248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20253 s/.\{148\}/&'"$ac_delim"'/g
20258 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20261 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20263 ' <confdefs.h | sed '
20264 s/'"$ac_delim"'/"\\\
20265 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20268 for (key in D) D_is_set[key] = 1
20271 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20273 split(line, arg, " ")
20274 if (arg[1] == "#") {
20278 defundef
= substr
(arg
[1], 2)
20281 split(mac1
, mac2
, "(") #)
20283 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20284 if (D_is_set
[macro
]) {
20285 # Preserve the white space surrounding the "#".
20286 print prefix
"define", macro P
[macro
] D
[macro
]
20289 # Replace #undef with comments. This is necessary, for example,
20290 # in the case of _POSIX_SOURCE, which is predefined and required
20291 # on some systems where configure will not decide to define it.
20292 if (defundef
== "undef") {
20293 print
"/*", prefix defundef
, macro
, "*/"
20301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20302 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20303 fi # test -n "$CONFIG_HEADERS"
20306 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20311 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20313 case $ac_mode$ac_tag in
20315 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20316 :[FH
]-) ac_tag
=-:-;;
20317 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20334 -) ac_f
="$ac_tmp/stdin";;
20335 *) # Look for the file first in the build tree, then in the source tree
20336 # (if the path is not absolute). The absolute path cannot be DOS-style,
20337 # because $ac_f cannot contain `:'.
20341 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20343 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20345 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20346 as_fn_append ac_file_inputs
" '$ac_f'"
20349 # Let's still pretend it is `configure' which instantiates (i.e., don't
20350 # use $as_me), people would be surprised to read:
20351 # /* config.h. Generated by config.status. */
20352 configure_input
='Generated from '`
20353 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20355 if test x
"$ac_file" != x-
; then
20356 configure_input
="$ac_file. $configure_input"
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20358 $as_echo "$as_me: creating $ac_file" >&6;}
20360 # Neutralize special characters interpreted by sed in replacement strings.
20361 case $configure_input in #(
20362 *\
&* |
*\|
* |
*\\* )
20363 ac_sed_conf_input
=`$as_echo "$configure_input" |
20364 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20365 *) ac_sed_conf_input
=$configure_input;;
20369 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20370 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20375 ac_dir
=`$as_dirname -- "$ac_file" ||
20376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20377 X"$ac_file" : 'X\(//\)[^/]' \| \
20378 X"$ac_file" : 'X\(//\)$' \| \
20379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20380 $as_echo X"$ac_file" |
20381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20385 /^X\(\/\/\)[^/].*/{
20398 as_dir
="$ac_dir"; as_fn_mkdir_p
20402 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20404 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20405 # A ".." for each directory in $ac_dir_suffix.
20406 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20407 case $ac_top_builddir_sub in
20408 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20409 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20412 ac_abs_top_builddir
=$ac_pwd
20413 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20414 # for backward compatibility:
20415 ac_top_builddir
=$ac_top_build_prefix
20418 .
) # We are building in place.
20420 ac_top_srcdir
=$ac_top_builddir_sub
20421 ac_abs_top_srcdir
=$ac_pwd ;;
20422 [\\/]* | ?
:[\\/]* ) # Absolute name.
20423 ac_srcdir
=$srcdir$ac_dir_suffix;
20424 ac_top_srcdir
=$srcdir
20425 ac_abs_top_srcdir
=$srcdir ;;
20426 *) # Relative name.
20427 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20428 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20429 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20431 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20441 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20442 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20444 ac_MKDIR_P
=$MKDIR_P
20446 [\\/$
]* | ?
:[\\/]* ) ;;
20447 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20452 # If the template does not know about datarootdir, expand it.
20453 # FIXME: This hack should be removed a few years after 2.60.
20454 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20465 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20466 *datarootdir
*) ac_datarootdir_seen
=yes;;
20467 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20469 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20472 ac_datarootdir_hack='
20473 s&@datadir@&$datadir&g
20474 s&@docdir@&$docdir&g
20475 s&@infodir@&$infodir&g
20476 s&@localedir@&$localedir&g
20477 s&@mandir@&$mandir&g
20478 s&\\\${datarootdir}&$datarootdir&g' ;;
20482 # Neutralize VPATH when `$srcdir' = `.'.
20483 # Shell code in configure.ac might set extrasub.
20484 # FIXME: do we really want to maintain this feature?
20485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20486 ac_sed_extra="$ac_vpsub
20489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20491 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20492 s|@configure_input@|
$ac_sed_conf_input|
;t t
20493 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20494 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20495 s
&@srcdir@
&$ac_srcdir&;t t
20496 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20497 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20498 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20499 s
&@builddir@
&$ac_builddir&;t t
20500 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20501 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20502 s
&@INSTALL@
&$ac_INSTALL&;t t
20503 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20504 $ac_datarootdir_hack
20506 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20507 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20509 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20510 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20511 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20512 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20514 which seems to be undefined. Please make sure it is defined" >&5
20515 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20516 which seems to be undefined. Please make sure it is defined" >&2;}
20518 rm -f "$ac_tmp/stdin"
20520 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20521 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20529 if test x"$ac_file" != x-; then
20531 $as_echo "/* $configure_input */" \
20532 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20533 } >"$ac_tmp/config.h" \
20534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20535 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20537 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20540 mv "$ac_tmp/config.h" "$ac_file" \
20541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20544 $as_echo "/* $configure_input */" \
20545 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20546 || as_fn_error $? "could not create -" "$LINENO" 5
20554 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20557 # Prefer the file from the source tree if names are identical.
20558 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20559 ac_source=$srcdir/$ac_source
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20563 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20565 if test ! -r "$ac_source"; then
20566 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20570 # Try a relative symlink, then a hard link, then a copy.
20572 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20573 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20575 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20576 ln "$ac_source" "$ac_file" 2>/dev/null ||
20577 cp -p "$ac_source" "$ac_file" ||
20578 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20581 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20582 $as_echo "$as_me: executing $ac_file commands" >&6;}
20587 case $ac_file$ac_mode in
20588 "check_win32_symlinks":C)
20589 # Links sometimes fail undetected on Mingw -
20590 # so here we detect it and warn the user
20591 for FILE in $CONFIG_LINKS
20593 # test -e works for symlinks in the MinGW console
20594 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20595 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20598 "src/include/pg_config.h":H)
20599 # Update timestamp for pg_config.h (see Makefile.global)
20600 echo >src/include/stamp-h
20602 "src/include/pg_config_ext.h":H)
20603 # Update timestamp for pg_config_ext.h (see Makefile.global)
20604 echo >src/include/stamp-ext-h
20606 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20614 ac_clean_files=$ac_clean_files_save
20616 test $ac_write_fail = 0 ||
20617 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20620 # configure is writing to config.log, and then calls config.status.
20621 # config.status does its own redirection, appending to config.log.
20622 # Unfortunately, on DOS this fails, as config.log is still kept open
20623 # by configure, so config.status won't be able to
write to it
; its
20624 # output is simply discarded. So we exec the FD to /dev/null,
20625 # effectively closing config.log, so it can be properly (re)opened and
20626 # appended to by config.status. When coming back to configure, we
20627 # need to make the FD available again.
20628 if test "$no_create" != yes; then
20630 ac_config_status_args
=
20631 test "$silent" = yes &&
20632 ac_config_status_args
="$ac_config_status_args --quiet"
20634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20637 # would make configure fail if this is the last instruction.
20638 $ac_cs_success || as_fn_exit
1
20640 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20642 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20646 # Ensure that any meson build directories would reconfigure and see that
20647 # there's a conflicting in-tree build and can error out.
20648 if test "$vpath_build" = "no"; then